7f37a001807a795d4b2bd45ca241566e60a72a23
[fw/sdcc] / ChangeLog
1 2008-05-19  Philipp Klaus Krause <pkk AT spth.de>
2
3         * src/SDCCpeeph.c (callFuncByName):
4           Support nested parenthesis in peephole function arguments (#1967300)
5
6 2008-05-19 Raphael Neider <rneider AT web.de>
7
8         * src/pic16/gen.c (pic16_emitpLabel,pic16_emitpLabelFORCE):
9           fixed duplicate labels (#1911325)
10
11 2008-05-19 Raphael Neider <rneider AT web.de>
12
13         * src/regression/empty.c: suppress warning
14         * src/regression/pointer1.c: enabled index_by_pointer()
15         * src/regression/inline.c: now works for pic16 as well
16
17         * src/pic16/device.c: include dbuf declarations
18         * src/pic16/device.h: removed obsolete prototypes
19
20         * src/pic16/gen.c, src/pic16/gen.h: moved generic pointer tags
21         * src/pic16/glue.c: made purely local functions static,
22           (pic16_printGPointerType, pic16_printIvalCharPtr,
23           pic16_printIvalFuncPtr, pic16_printIvalPtr): fixed initialized
24           generic pointers' tags (#1961866)
25
26         * src/pic16/pcode.c (assignValnums): optimize literal assignments
27
28 2008-05-19 Borut Razem <borut.razem AT siol.net>
29
30         * support/scripts/sdcc.nsi: remove uninstall.exe after uninstallation,
31           fixed typo, uninstall include/pic16/pic16devices.txt
32
33 2008-05-18 Borut Razem <borut.razem AT siol.net>
34
35         * support/Utils/dbuf_string.[ch]: added dbuf_chomp(),
36           the buffer is null terminated
37         * src/device/pic16.c:
38           applied modified patch 1965676: Patch for Win32 16 bit PIC
39         * sdcc_vc_in.h: defined YY_NO_UNISTD_H
40
41 2008-05-16 Maarten Brock <sourceforge.brock AT dse.nl>
42
43         * src/SDCC.lex (check_type),
44         * src/SDCC.y (type_specifier2 TYPE_NAME): fixed bug 1925942
45         * as/hc08/clean.mk,
46         * as/mcs51/clean.mk,
47         * as/z80/clean.mk: also clean *.dep
48         * device/lib/pic16/libsdcc/stack/Makefile,
49         * sim/ucsim/libtool: removed as they are rebuild by configure
50         * src/clean.mk: removed izt, so Makefile is not deleted for distclean
51
52 2008-05-13 Maarten Brock <sourceforge.brock AT dse.nl>
53
54         * src/SDCCast.c (fixupInline, createFunction): save currBlockno in
55           fixupInline instead of createFunction to fix bug 1864577
56           (inlineFindMaxBlockno): removed, use global blockNo
57         * src/SDCCglobl.h: added blockNo
58         * src/z80/peep.c,
59         * src/z80/peep.h: modified properties
60         * support/regression/tests/bug1864577.c: new, added
61
62 2008-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
63
64         * as/mcs51/asdata.c,
65         * as/mcs51/asm.h: added org_cnt
66         * as/mcs51/asmain.c (main, asmbl): fixed bug 1957716, changed old K&R to ANSI
67         * as/mcs51/asout.c: changed old K&R to ANSI
68         * as/mcs51/Makefile.in: use common identifiers
69         * as/hc08/asdata.c,
70         * as/hc08/asexpr.c,
71         * as/hc08/asm.h,
72         * as/hc08/asmain.c,
73         * as/hc08/asout.c,
74         * as/hc08/Makefile.bcc,
75         * as/hc08/Makefile.in: synchronized with as/mcs51/*
76         * sdcc_vc_in.h: added define __func__
77         * src/SDCCast.c (expandInlineFuncs): applied patch 1957148 to fix bug 1717305,
78           Thanks Ruud van Silfhout
79         * support/regression/tests/bug1717305.c: new, added
80
81 2008-05-05 Borut Razem <borut.razem AT siol.net>
82
83         * support/regression/Makefile.in,
84           support/regression/ports/ds390/spec.mk,
85           support/regression/ports/hc08/spec.mk,
86           support/regression/ports/mcs51-common/spec.mk,
87           support/regression/ports/pic14/spec.mk,
88           support/regression/ports/pic16/spec.mk,
89           support/regression/ports/ucz80/spec.mk,
90           support/regression/ports/z80/spec.mk:
91           added INC_DIR and LIBDIR paths
92         * src/ds390/gen.c: removed duplicated selicolon
93
94 2008-05-04 Borut Razem <borut.razem AT siol.net>
95
96         * support/regression/Makefile.in,
97           support/regression/fwk/lib/testfwk.c,
98           support/regression/ports/ds390/spec.mk,
99           support/regression/ports/hc08/spec.mk,
100           support/regression/ports/mcs51-common/spec.mk,
101           support/regression/ports/mcs51-large/spec.mk,
102           support/regression/ports/mcs51-medium/spec.mk,
103           support/regression/ports/mcs51-small/spec.mk,
104           support/regression/ports/mcs51-stack-auto/spec.mk,
105           support/regression/ports/mcs51-xstack-auto/spec.mk,
106           support/regression/ports/pic14/spec.mk,
107           support/regression/ports/pic16/spec.mk,
108           support/regression/ports/ucz80/spec.mk:
109           added possibility to define the sdcc binary directory SDCC_BIN_PATH
110           used to run regeression tests
111
112 2008-05-01 Raphael Neider <rneider AT web.de>
113
114         * doc/sdccman.lyx, support/scripts/inc2h-pic16.pl: updated list of
115           supported devices and instructions to add new ones
116
117 2008-05-01 Raphael Neider <rneider AT web.de>
118
119         * device/include/pic16/adc.h,
120           device/lib/pic16/libio/adc/adcbusy.c,
121           device/lib/pic16/libio/adc/adcopen.c,
122           device/lib/pic16/libio/adc/adcsetch.c: support old 18f242 and new
123           18f2455 style ADC devices, based on patch #1776197
124         * device/lib/pic16/libio/adc/adcclose.c,
125           device/lib/pic16/libio/adc/adcconv.c,
126           device/lib/pic16/libio/adc/adcread.c: cosmetic changes
127         * device/include/pic16/{pic18f2331.h,pic18f2431.h},
128           device/lib/pic16/libdev/{pic18f2331.c,pic18f2431.c}: reuse 18f4331
129         * device/include/pic16/pic18f4431.h,
130           device/lib/pic16/libdev/pic18f4431.c: remove outdated comments
131         * device/lib/pic16/libio/adc.ignore: forbid unhandled devices
132
133 2008-05-01 Raphael Neider <rneider AT web.de>
134
135         * src/pic16/device.h: removed unused field PIC16_device.sfrRange,
136           moved xinst flag into pic16_options_t
137         * src/pic16/device.c (default_device, pic16_list_devices,
138           pic16_find_device): removed references to sfrrange
139         * src/pic16/gen.c (genFunction),
140           src/pic16/glue.c (pic16initialComments),
141           src/pic16/main.c (pic16_optionsTable),
142           src/pic16/ralloc.c (newReg, pic16_writeUsedRegs): updated references
143           to xinst
144         * device/include/pic16/pic16devices.txt: removed sfrrange lines
145
146 2008-04-29 Raphael Neider <rneider AT web.de>
147
148         * src/pic16/devices.inc,
149           device/include/pic16/pic16devices.txt: replaced compiled-in list
150           of devices with a variant parsed at runtime
151         * src/pic16/device.c: added support for parsing pic16devices.txt,
152           clean up
153         * src/pic16/device.h: removed (now) unused fields from PIC_device
154         * src/pic16/main.c: removed #pragma maxram,
155           (_pic16_initPaths): removed bogus generation of search paths,
156           setup the port proper only after the search paths (for
157           pic16devices.txt) are set up,
158           (_pic16_finaliseOptions): moved processor dependant code here
159           from _pic16_initPaths(), clean up
160         * src/pic16/ralloc.c (pic16_init_stack),
161         * src/pic16/ralloc.h,
162         * src/pic16/pcode.c: clean up
163         * device/include/Makefile.in,
164           support/scripts/sdcc.nsi: also install/package pic16devices.txt
165         * support/scripts/inc2h-pic16.pl: updated instructions
166
167 2008-04-29 Raphael Neider <rneider AT web.de>
168
169         * device/include/pic16/{pic18f2480.h, pic18f2580.h, pic18f4423.h,
170           pic18f4480.h, pic18f4523.h, pic18f4580.h, pic18f6585.h, pic18f8585.h},
171           device/lib/pic16/libdev/{pic18f2480.c, pic18f2580.c, pic18f4423.c,
172           pic18f4480.c, pic18f4523.c, pic18f4580.c, pic18f6585.c, pic18f8585.c}:
173           added missing family members and 18f2480/2580/4480/4580 family
174         * device/include/pic16/{pic18f2423.h, pic18f2523.h}: use 18f4523.h
175         * device/include/pic16/pic18f2525.h: use 18f4620.h
176         * device/include/pic16/pic18f6680.h: use 18f8680.h
177         * device/include/pic16/pic18fregs.h,
178           device/lib/pic16/pics.all,
179           src/pic16/devices.inc: add new devices
180         * device/lib/pic16/libdev/{pic18f2423.c, pic18f2523.c}: use 18f4523.c
181         * device/lib/pic16/libdev/pic18f2525.c: use 18f4620.c
182         * device/lib/pic16/libdev/pic18f6680.c: uso 18f8680.c
183         * device/lib/pic16/libio/{adc.ignore, i2c.ignore, usart.ignore}:
184           prevent attempting to build the libio for some new devices
185
186 2008-04-29 Raphael Neider <rneider AT web.de>
187
188         * debugger/mcs51/Makefile.in: fixed paths to sources
189
190 2008-04-25 Borut Razem <borut.razem AT siol.net>
191
192         * as/link/lklibr.c: moved from as/link/z80/lklibr.c
193         * as/link/hc08/lklibr.c, as/link/mcs51/lklibr.c: deleted
194         * as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
195         * as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
196           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
197           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
198           as/link/z80/linkz80.dsp: lklibr.c moved
199         * doc/INSTALL.txt: binary archives in bz2 format
200         * support/cpp/auto-host_vc_in.h: CPP2 replaced with CPP
201
202 2008-04-23 Maarten Brock <sourceforge.brock AT dse.nl>
203
204         * src/SDCCglue.c (printIvalType, printIvalBitFields): fixed bug 1856409
205         * support/regression/tests/bug1856409.c: new, added
206
207 2008-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
208
209         * src/z80/peep.c,
210         * src/mcs51/peep.c: Use werror for error messages.
211         * src/SDCCicode.c (geniCodeConditional),
212         * src/SDCCsymt.c (structElemType): fixed bug 1839321
213         * src/z80/Makefile.bcc,
214         * src/z80/z80.dsp: added src/z80/peep.c/h
215         * support/regression/tests/bug1839321.c: new, added
216
217 2008-04-20 Raphael Neider <rneider AT web.de>
218
219         * device/include/pic16/pic18f2455.h: added bitfields for port C
220
221 2008-04-20 Philipp Klaus Krause <pkk AT spth.de>
222
223         * src/z80/peep.c: Use werror for error messages.
224
225 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
226
227         * src/z80/peep.h (declaration of notUsed()),
228         * src/z80/main.c (enabled notUsed() for z80 port, documented z80_port
229           struct),
230         * src/z80/z80.h (added dependency on peep.h),
231         * src/z80/peep.c (definition of notUsed()): Implemented RFE #1880202
232           for Z80.
233
234 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
235
236         * src/SDCCpeeph.c (added support for notUsed()),
237         * src/mcs51/main.c (added dependency on peep.h, documented mcs51_port
238           struct),
239         * src/port.h (removed dependency on mcs51/peep.h, added declaration
240           for notUsed()): Implemented generic (that is not port-specific) part
241           of RFE #1880202.
242
243 2008-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
244
245         * as/link/mcs51/lkmem.c (summary2): fixed bug 1796077
246         * device/lib/libsdcc.lib,
247         * device/lib/Makefile.in,
248         * support/regression/ports/mcs51-xstack-auto/spec.mk,
249         * device/lib/calloc.c: renamed to _calloc.c
250         * device/lib/free.c: renamed to _free.c
251         * device/lib/malloc.c: renamed to _malloc.c
252         * device/lib/realloc.c: renamed to _realloc.c
253         * src/ds390/gen.c (aopGet, aopPut, genPlusBits, genDataPointerSet,
254           genNearPointerSet, genPagedPointerSet): synchronized with mcs51/gen.c
255         * src/ds390/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq, ifxForOp,
256           genAnd, genOr, genXor, genIfx, gen390Code): fixed bug 1509084
257         * src/mcs51/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq,
258           ifxForOp, genAnd, genOr, genXor, genNearPointerGet,
259           genPagedPointerGet, genFarPointerGet, genCodePointerGet,
260           genGenPointerGet, genIfx, gen51Code): fixed bug 1509084
261         * src/ds390/gen.c,
262         * src/mcs51/gen.c: throughout cosmetic changes for syncing both
263         * src/SDCCsymt.h: updated IS_OP_RUONLY, IS_OP_ACCUSE
264         * support/regression/tests/bug1509084.c: new, added
265
266 2008-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
267
268         * device/include/mcs51/cc2510fx.h: added _XPAGE
269         * device/include/mcs51/compiler.h: cosmetic changes
270
271 2008-03-31 Maarten Brock <sourceforge.brock AT dse.nl>
272
273         * sdcc.dsw: adapted for moved cpp2, added dependency for as_z80 on
274           config
275
276 2008-03-31 Borut Razem <borut.razem AT siol.net>
277
278         * support/cpp2 renamed to support/cpp
279         * support/cpp2/libiberty/filenames.h, support/cpp2/libiberty/hex.c,
280           support/cpp2/libiberty/splay-tree.c,
281           support/cpp2/libiberty/splay-tree.h, support/cpp2/libcpp/macro.c,
282           support/cpp2/libcpp/directives.c,
283           support/cpp2/libcpp/include/cpplib.h,
284           support/cpp2/libcpp/include/symtab.h,
285           support/cpp2/libcpp/include/line-map.h,
286           support/cpp2/libcpp/line-map.c, support/cpp2/libcpp/files.c,
287           support/cpp2/libcpp/init.c, support/cpp2/libcpp/traditional.c,
288           support/cpp2/libcpp/expr.c, support/cpp2/libcpp/internal.h,
289           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/system.h,
290           support/cpp2/libcpp/charset.c: SDCPP synchronized with GCC CPP
291           release version 4.3.0
292         * configure.in, configure, Makefile.in, Makefile.bcc:
293           adapted for moved cpp2
294
295 2008-03-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
296
297         * device/include/hc08/mc68hc908jkjl.h: committed fix for bug #1929739,
298           thanks Alejandro Pustowka <alejo_pustowka AT yahoo.com.mx>
299
300 2008-03-30 Maarten Brock <sourceforge.brock AT dse.nl>
301
302         * src/SDCCloop.c (loopInvariants): applied fix for bug 1717943, thanks
303           Robert Larice
304         * support/regression/tests/bug1717943.c: new, added
305
306 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
307
308         * src/z80/gen.c (assignResultValue): Reverted reversal of order of
309           bytewise return value assignments introduced in last commit.
310
311 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
312
313         * src/z80/gen.c (emitDebug, assignResultValue, genPlus, genMinus,
314           genMult, genJumpTab):
315           Use 16-bit instructions for addition in some additional cases,
316           implemented RFEs #1914251, #1914245, #1922090, #1921382, #1918323.
317
318 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
319
320         * src/z80/ralloc.c (serialRegAssign, allocReg, tryAllocatingRegPair):
321           Implemented RFE #1921450, changed some debug messages.
322
323 2008-03-30 Borut Razem <borut.razem AT siol.net>
324
325         * Small Device C Compiler 2.8.0 released
326         * .version, doc/sdccman.lyx: changed sdcc version to 2.8.1
327         * support/scripts/sdcc.nsi: added finish page; this version
328           was used for 2.8.0 release
329         * doc/knownbugs.html: removed; magically generated by the build
330           process using gen_known_bugs.pl from now on
331
332 2008-03-23 Borut Razem <borut.razem AT siol.net>
333
334         * src/pic/gen.h: Q&D solution for the bug, found by Jim Paris
335           and reverted it, since it was already fixed by Raphael ;-)
336         * doc/knownbugs.html: updated for RC2
337
338 2008-03-22 Raphael Neider <rneider AT web.de>
339
340         * src/SDCCicode.c (getPtrType): avoid unnecessary extra assignments
341           for PIC16 targets
342
343 2008-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
344
345         * src/mcs51/gen.c (adjustArithmeticResult): fixed bug 1839299
346         * support/regression/tests/bug1839277.c: added related testBug1839299
347
348 2008-03-21 Maarten Brock <sourceforge.brock AT dse.nl>
349
350         * src/ds390/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign),
351         * src/mcs51/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign):
352           fixed bug 1839277
353         * src/mcs51/gen.c: throughout only output hex constants
354         * src/SDCCicode.c (getPtrType, geniCodeCast): fixed code size regression
355         * support/regression/tests/bug1839277.c: new, added
356
357 2008-03-21 Philipp Klaus Krause <pkk AT spth.de>
358
359         * src/z80/ralloc.c (callFuncByName): Used // instead of /**/ to fix
360           compilation warning about nested comments.
361
362 2008-03-20 Maarten Brock <sourceforge.brock AT dse.nl>
363
364         * src/SDCCsymt.c (comparePtrType): fixed bug 1921073
365         * support/regression/tests/bug1921073.c: new, added
366
367 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
368
369         * src/z80/SDCCpeeph.c.c (callFuncByName):
370           Commented function parameters.
371
372 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
373
374         * src/z80/ralloc.c (packRegsForAccUse2):
375           disabled a broken accumulator packing optimization (fixed #1292721).
376         * support/regression/tests/bug-1292721: Regression test for #1292721.
377
378 2008-03-16 Raphael Neider <rneider AT web.de>
379
380         * src/pic/gen.c (SetIrp,genNearPointerGet,genNearPointerSet):
381           fixed code bloat regression using a variant of patch #1915618
382
383 2008-03-16 Borut Razem <borut.razem AT siol.net>
384
385         * support/scripts/sdcc.nsi: added section debugging macros, added SDCC
386           icon, changed startup menu for release distribution, code cleaning,
387           create url files instead links in startup menu
388
389 2008-03-16 Maarten Brock <sourceforge.brock AT dse.nl>
390
391         * src/SDCCcse.c (algebraicOpts): fixed bug 1579949
392         * support/regression/tests/bug1579949.c: new, added
393
394 2008-03-14 Paul Stoffregen <paul AT pjrc.com>
395
396         * device/lib/printf_fast.c: fixed bug 1255403
397
398 2008-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
399
400         * doc/sdccman.lyx: enhanced paragraph about bankswitching for mcs51
401         * src/cdbFile.c (cdbWriteBasicSymbol): fixed bug 1909409 for locals
402
403 2008-03-14 Borut Razem <borut.razem AT siol.net>
404
405         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated link-xx and aslink
406           command line options
407         * as/link/hc08/lkmain.c: converted tabs to spaces so that the usage
408           is correctly displayed
409         * as/link/z80/lkmain.c: usage line commented out
410
411 2008-03-13 Borut Razem <borut.razem AT siol.net>
412
413         * doc/sdccman.lyx: corrected to be able to convert to PDF,
414           updated the list pf supported pic14 devices
415
416 2008-03-12 Maarten Brock <sourceforge.brock AT dse.nl>
417
418         * doc/sdccman.lyx: added paragraph about bankswitching for mcs51
419
420 2008-03-12 Borut Razem <borut.razem AT siol.net>
421
422         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated command line options,
423           fixed documentation request #1718191
424         * as/hc80/asmain.c, as/mcs51/asmain.c: added option -c to usage
425         * doc/sdccman.lyx: added description of --no-std-crt0 gbz80
426           command line option
427
428 2008-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
429
430         * src/SDCCast.c (isConformingBody): fixed bug 1505811, thanks Robert Larice
431         * support/regression/tests/bug1505811.c: new, added
432
433 2008-03-09 Raphael Neider <rneider AT web.de>
434
435         * device/include/pic16/pic18f2620.h,
436         * device/include/pic16/pic18f4620.h,
437         * device/lib/pic16/libdev/pic18f2620.c,
438         * device/lib/pic16/libdev/pic18f4525.c,
439         * device/lib/pic16/libdev/pic18f4620.c: merged 18f2525/2620/4525/4620
440           family to consistently use pic18f4620.[ch], fixes #1832562
441
442 2008-03-09 Borut Razem <borut.razem AT siol.net>
443
444         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
445           changed sdcc version to 2.8.0
446         * knownbugs.html: regenerated
447         * support/scripts/gen_known_bugs.pl: added number of open bugs
448
449 2008-03-09 Raphael Neider <rneider AT web.de>
450
451         * src/pic16/gen.c (pic16_mov2w_volatile): NEW, read volatile operands,
452           (genOr): read volatile operand even if the result is known,
453           closes #1511838
454           (genOr,genXor): removed unused legacy code,
455           (genDummyRead): use pic16_mov2w_volatile()
456
457 2008-03-08 Borut Razem <borut.razem AT siol.net>
458
459         * src/SDCCglue.c: fixed bug #1864582: multiple definition of char
460           cons w. --model-large
461         * support/regression/staticinit.c: added regression test for bug
462           #1864582
463
464 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
465
466         * src/ds390/gen.c (pushSide, genPcall),
467         * src/hc08/gen.c (pushSide, genPcall): synchronized with mcs51
468         * src/mcs51/gen.c: cosmetic changes
469         * support/regression/fwk/include/testfwk.h: added macro reentrant
470         * support/regression/tests/bug1908493.c: new, added
471
472 2008-03-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
473
474         * src/SDCCdebug.c:, as/link/lkaomf51.c: Fixed bug 1909409: Pdata in OMF file
475
476 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
477
478         * src/mcs51/gen.c (pushSide, genPcall): fixed bug 1908493
479         * src/SDCCmain.c (preProcess): removed -DSDCC_PARMS_IN_BANK1 because it is
480           already set in ds390/main.c and mcs51/main.c
481
482 2008-03-07 Raphael Neider <rneider AT web.de>
483
484         * src/regression/init0.c: new test for initialized arrays of function
485           pointers
486         * src/regression/Makefile: made a bit more flexible, added init0.c
487         * src/pic/glue.c (emitIvals): hacky fix for initializing from function
488           pointers, closes #1427663
489
490 2008-03-05 Borut Razem <borut.razem AT siol.net>
491
492         * dos/sdccman.lyx: docummented predefined macros SDCC_REVISION,
493           SDCC_PARMS_IN_BANK1, SDCC_FLOAT_REENT and SDCC_INT_LONG_REENT
494
495 2008-03-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
496
497         * support/librarian/sdcclib.c:Added feature request 1908061:
498           Synchronise sdcclib commands with ar.
499
500 2008-03-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
501
502         * src/SDCCmain.c: added predefined macros SDCC_REVISION (RFE #1907229),
503           and (depending on corresponding compiler option) SDCC_PARMS_IN_BANK1,
504           SDCC_FLOAT_REENT, SDCC_INT_LONG_REENT
505         * device/include/mcs51/compiler.h: removed umlauts, added double
506           underscore
507
508 2008-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
509
510         * src/SDCCptropt.c (ptrPseudoSymConvert): fixed bug 1536762
511         * support/regression/tests/bug1536762.c: new, added
512         * src/SDCCutil.c,
513         * src/SDCCutil.h: added getBuildDate()
514         * src/SDCCmain.c (printVersionInfo),
515         * src/SDCCglue.c (initialComments): use getBuildDate() instead of
516           __DATE__
517         * src/*/ralloc.c: removed IS_OP_RUONLY macro
518         * src/ds390/ralloc.c (packRegisters),
519         * src/mcs51/ralloc.c (packRegisters),
520         * src/z80/ralloc.c (packRegisters): applied fix for bug 1618050, thanks
521           Robert Larice
522         * support/regression/tests/bug1618050.c: new, added
523         * src/SDCCsymt.h: fixed typo in DECLSPEC2TXT
524         * support/regression/fwk/include/testfwk.h,
525         * support/regression/tests/bug1838000.c: moved _AUTOMEM and _STATMEM to
526           testfwk.h
527
528 2008-03-04 Raphael Neider <rneider AT web.de>
529
530         * src/pic/gen.c: removed unused prototypes, prevent internal errors
531           on accessing OP_SYM_TYPE(op)
532         * src/pic/gen.h: removed unused prototype of genMinusDec()
533         * src/pic/genarith.c (genMinus): cosmetic changes, rewritten to
534           fix #1876953 (invalid subtraction code), removed unused code
535
536 2008-03-03 Raphael Neider <rneider AT web.de>
537
538         * src/pic/gen.c,
539         * src/pic/gen.h,
540         * src/pic/genarith.c,
541         * src/pic/ralloc.c,
542         * src/pic/ralloc.h: removed AOP_R0, AOP_R1, AOP_DPTR, AOP_DPTR2,
543           AOP_ACC, and *_IDX and adjusted code, removed unused legacy code
544
545 2008-03-03 Raphael Neider <rneider AT web.de>
546
547         * src/pic/device.c (find_device): search user-specified paths first
548           for pic14devices.txt, fixes #1900827
549
550 2008-03-02 Borut Razem <borut.razem AT siol.net>
551
552         * support/scripts/sdcc.nsi: fixed bug in IsNT, LogicLib-isation of
553           AddToPath and RemoveFromPath
554
555 2008-03-01 Borut Razem <borut.razem AT siol.net>
556
557         * support/scripts/sdcc.nsi: reverted MULTIUSER page since it didn't
558           work correctly, added debugging support if -DSDCC.DEBUG command line
559           option is defined
560
561 2008-02-28 Borut Razem <borut.razem AT siol.net>
562
563         * doc/sdccman.lyx: cosmetic changes
564
565 2008-02-28 Maarten Brock <sourceforge.brock AT dse.nl>
566
567         * src/mcs51/ralloc.c (fillGaps): fixed bug 1839671
568         * doc/sdccman.lyx: fixed unmeant removal of spaces
569
570 2008-02-27 Borut Razem <borut.razem AT siol.net>
571
572         * support/scripts/sdcc.nsi: corrected installation directory for
573           current user installation mode
574         * doc/README.txt: added Philipp Klaus Krause to the developers list
575
576 2008-02-27 Maarten Brock <sourceforge.brock AT dse.nl>
577
578         * src/mcs51/gen.c (genUnpackBits): don't generate ifxJump, instead
579           return ifx condition
580           (genNearPointerGet, genPagedPointerGet, genFarPointerGet,
581           genCodePointerGet, genGenPointerGet): cleanup aop before generating
582             ifxJump to fix bug 1838000
583         * src/SDCCsymt.c (aggregateToPointer): fix problem for xstack
584         * support/regression/tests/bug1838000.c: new, added
585         * device/include/mcs51/cc1110.h: new, added, thanks to Pravin Angolkar
586
587 2008-02-26 Borut Razem <borut.razem AT siol.net>
588
589         * src/SDCCast.c, doc/sdccman.lyx: fixed RFE #1901171: inerger promotion
590           of casted varargs
591         * support/scripts/sdcc.nsi: added MULTIUSER page,
592           NSIS upgraded to version 2.35
593
594 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
595
596         * src/mcs51/ralloc.c (isSpiltOnStack): fixed bug 1565152
597         * support/regression/tests/bug1565152.c: new, added
598
599 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
600
601         * src/mcs51/gen.c (genPagedPointerSet): fixed bug 1670148
602         * support/regression/ports/mcs51-xstack-auto/spec.mk: added expf.c
603         * support/regression/tests/bug1670148.c: new, added
604
605 2008-02-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
606
607         * device/include/mcs51/at89c51ed2.h: fixed bug 1901469.
608
609 2008-02-24 Borut Razem <borut.razem AT siol.net>
610
611         * src/SDCCast.c, src/SDCCast.h: fixed bug #1874922: explicit typecast
612           is ineffective for unsigned char parameter
613
614 2008-02-24 Maarten Brock <sourceforge.brock AT dse.nl>
615
616         * src/SDCCast.c (expandInlineFuncs): fixed bug 1875869
617         * src/SDCCglue.c (printIvalBitFields): fixed bug 1806631
618         * support/regression/tests/bitopcse.c: removed hc08 exception, see testfwk.h
619         * support/Util/MySystem.c (my_system): output errorcode when verbose
620
621 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
622
623         * src/z80/gen.c (genMult): Rewrote 8-bit multiplication by constant,
624           implements #1898231
625
626 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
627
628         * device/lib/z80/mul.s: Rewrote __muluchar_rrx_s, to improve 8-bit mult.,
629           implements #1896290
630
631 2008-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
632
633         * src/SDCCast.c (createIvalStruct): fixed bug 1466761
634
635 2008-02-21 Borut Razem <borut.razem AT siol.net>
636
637         * support/regression/Makefile.in,
638           support/regression/ports/ds390/spec.mk,
639           support/regression/ports/hc08/spec.mk,
640           support/regression/ports/mcs51-common/spec.mk,
641           support/regression/ports/pic14/spec.mk,
642           support/regression/ports/pic16/spec.mk,
643           support/regression/ports/ucz80/spec.mk,
644           support/regression/ports/xa51/spec.mk:
645           added CFLAGS when compiling timeout
646
647 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
648
649         * support/regression/tests/bugs-1596270-1736867.c: Regression test for
650           #1596270, #1736867
651
652 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
653
654         * src/SDCClrange.c (findPrevUse): fixed bug 1888147
655         * support/regression/tests/bug1888147.c: new, added
656
657 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
658
659         * src/z80/gen.c: fixed bugs #1596270, #1736867
660
661 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
662
663         * src/z80/gen.c: fixed bug in register pair loading when swapping register
664           contents, mostly fixes #1596270
665
666 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
667
668         * src/z80/peeph.def,
669         * src/z80/peeph-z80.def: moved peephole that breaks gbz80 to z80-specific
670           peepholes, fixes #1806565
671
672 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
673
674         * src/SDCCpeeph.c (operandBaseName): added check for @Ri
675         * src/mcs51/peeph.def (rule 177.c): added operandsNotRelated(%1 %3)
676           fixes bug 1739475, thanks Robert Larice
677           (rule 271): new, added
678
679 2008-02-18 Borut Razem <borut.razem AT siol.net>
680
681         * sim/ucsim/s51.src/Makefile.in: fixed error made in previous commit
682
683 2008-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
684
685         * src/SDCCmain.c (linkEdit): emit -z when using --debug for z80
686
687 2008-02-17 Raphael Neider <rneider AT web.de>
688
689         * src/pic16/genarith.c,
690         * src/pic16/gen.c,
691         * src/pic16/gen.h,
692         * src/pic16/genutils.c: removed unused legacy code,
693           removed unused fields from struct asmop and struct _G
694
695 2008-02-17 Raphael Neider <rneider AT web.de>
696
697         * src/pic16/gen.c (AccRsh): cosmetic changes,
698           (shiftR1Left2ResultSigned,shiftR1Left2Result,shiftL1Left2Result,
699           genRightShiftLiteral): fixed to work with SFRs as result by
700           assigning only once to result,
701           removed a lot of unused/excluded code fragments
702
703 2008-02-17 Raphael Neider <rneider AT web.de>
704
705         * device/include/pic/pic16f88.h,
706         * device/include/pic/pic16f886.h,
707         * device/include/pic/pic16f887.h: added TRISA6 and TRISA7
708
709 2008-02-17 Borut Razem <borut.razem AT siol.net>
710
711         * src/z80/peeph.def: applied patch
712           #1893626: Optimize tail calls on Z80, thanks to Philipp Krause
713         * src/z80/gen.c, src/z80/peeph.def: applied patch
714           #1893510: Improve logical left shift on Z80, thanks to Philipp Krause
715         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
716           sim/ucsim/s51.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
717           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
718           sim/ucsim/main_in.mk: renamed libutil.a to libucsimutil.a in order to
719           enable compilation on Mac OS X 10.5 (Leopard) and XCode v3.0
720
721 2008-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
722
723         * as/link/mcs51/aslink.dsp: removed SDK define
724         * as/link/z80/clean.mk: brought in sync with other ports
725         * as/link/z80/lklibr.c (SdccLib, fndsym): handle the dflag here too
726         * as/hc08/Makefile.bcc,
727         * as/mcs51/Makefile.bcc,
728         * as/z80/Makefile.bcc: noice.c was moved to as/asxxsrc/
729         * src/z80/main.c (_setValues): use the now capitalized -Z,
730           (z80_port, gbz80_port): generate debug information when asked
731
732 2008-02-16 Borut Razem <borut.razem AT siol.net>
733
734         * as/z80/asmain.c, as/z80/asm.h, as/z80/asdata.c,
735           as/link/z80/lkmain.c, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
736           as/z80/Makefile.in. as/z80/Makefile.bcc:
737           applied patch #1893393: patch for as-z80 and link-z80 to generate
738           cdb, thanks to Armin Diehl
739         * as/*/asnoice.c, as/hc08/as_hc08.dsp, as/hc08/Makefile.in,
740           as/mcs51/asx8051.dsp, as/mcs51/Makefile.in:
741           asnoice.c moved to as/asxxsrc/asnoice.c
742         * src/z80/peeph-gbz80.def: applied patch
743           #1880235: Z80 return peephole, thanks to Philipp Krause
744
745 2008-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
746
747         * .version,
748         * doc/sdccman.lyx: bumped version to 2.7.5
749         * src/SDCCsymt.c (compareType, comparePtrType): fixed bug 1281583
750
751 2008-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
752
753         * device/include/pic16/stdlib.h,
754         * device/lib/pic16/libc/stdlib/ltoa.c,
755         * device/lib/pic16/libc/stdio/vfprintf.c: ascii strings are char*
756
757 2008-02-13 Borut Razem <borut.razem AT siol.net>
758
759         * src/SDCCmain.c, src/SDCCglue.c: fixed --c1mode
760         * src/pic16/glue.c, src/SDCCast.c, src/SDCCast.h, src/SDCCBBlock.c,
761           src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c, src/SDCCloop.c,
762           src/SDCCopt.c,  src/SDCCval.c:
763           fixed bug #1890273: SDCC Warning 154 shows wrong filename
764
765 2008-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
766
767         * src/SDCCsymt.c (compareType): fixed bug 1309013
768
769 2008-02-09 Borut Razem <borut.razem AT siol.net>
770
771         * src/SDCCval.c, src/SDCCval.h:
772           code cleaning, added function constChrVal()
773         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c, src/SDCCast.c, src/SDCC.y:
774           call constChrVal() instead constVal()
775
776 2008-02-01 Maarten Brock <sourceforge.brock AT dse.nl>
777
778         * src/SDCCast.c (resolveSymbols): added reentrancy check for parameters
779           of function pointer
780         * src/SDCCerr.h,
781         * src/SDCCerr.c: changed warning W_NONRENT_ARGS to error E_NONRENT_ARGS
782         * support/regression/tests/absolute.c: added TestStruct TestVar (see also
783           bug 1859853)
784
785 2008-02-01 Raphael Neider <rneider AT web.de>
786
787         * device/include/pic/pic16f886.h,
788         * device/include/pic/pic16f887.h: added RA6 and RA7
789
790 2008-01-24 Raphael Neider <rneider AT web.de>
791
792         * device/include/pic/pic16f88.h: added RA6 and RA7
793         * device/lib/pic/libdev/disabled_pic16f886.c,
794         * device/lib/pic/libdev/disabled_pic16f887.c: renamed and enabled
795
796         * src/pic16/devices.inc,
797         * device/include/pic16/pic18f2423.h,
798         * device/include/pic16/pic18f2523.h,
799         * device/include/pic16/pic18fregs.h,
800         * device/lib/pic16/pics.all
801         * device/lib/pic16/libdev/pic18f2423.c,
802         * device/lib/pic16/libdev/pic18f2523.c: added 18f2423 and 18f2523
803         * device/lib/pic16/libio/i2c.ignore,
804         * device/lib/pic16/libio/usart.ignore,
805         * device/lib/pic16/libio/adc.ignore: ignore new devices
806
807 2008-01-23 Maarten Brock <sourceforge.brock AT dse.nl>
808
809         * src/SDCCast.c (createRMW): fixed bug 1582651
810
811 2008-01-20 Borut Razem <borut.razem AT siol.net>
812
813         * src/SDCCcse.c: partially fixed enhancement request
814           #1793872 - multiply by -1 not collapsed
815         * support/regression/tests/arithcsi.c: added regression test
816
817 2008-01-19 Maarten Brock <sourceforge.brock AT dse.nl>
818
819         * as/mcs51/asx8051.dsp: removed define SDK
820         * as/mcs51/i51mch.c (machine): fixed bug 1865114
821         * device/include/asm/ds390/features.h: fixed bug with ds390 & stack-auto
822         * as/link/lklex.c,
823         * as/link/mcs51/lkmain.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
824           cosmetic changes, brought more in sync, changed old K&R to ANSI
825
826 2008-01-13 Borut Razem <borut.razem AT siol.net>
827
828         * support/scripts/sdcc.nsi: added Uninstall/reinstall page, ...
829         * src/SDCCicode.c: fixed bug #1870216 - Error 122: dividing by zero
830
831 2007-12-30 Borut Razem <borut.razem AT siol.net>
832
833         * src/pic16/gen.c: fixed implementation of bitwise operations for
834           pic16 target
835         * support/regression/tests/bitwise.c: added test cases
836
837 2007-12-29 Borut Razem <borut.razem AT siol.net>
838
839         * src/SDCCasm.[ch]: renamed from asm[ch], use dbuf_getline(), ...
840         * src/src.dsp, src/Makefile.bcc, src/Makefile.in, src/common.h,
841           src/SDCCglue.c, src/xa51/main.c: asm.[ch] renamed to SDCCasm.[ch]
842         * support/Util/dbuf_string.[ch]: added function dbuf_getline()
843         * src/ds390/gen.c, src/hc08/gen.c, src/mcs51/gen.c, src/pic16/gen.c,
844           src/pic/gen.c, src/z80/gen.c, src/xa51/gen.c, src/pic16/ralloc.c,
845           src/pic16/pcode.[ch]: added const qualifier
846         * as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
847           as/mcs51/Makefile.bcc, as/mcs51/Makefile.in, as/mcs51/asx8051.dsp,
848           as/z80/Makefile.bcc, as/z80/Makefile.in, as/z80/as_gbz80.dsp,
849           as/z80/as_z80.dsp: added dbuf.[ch] and dbuf_string[ch] to project
850         * as/asxxsrc/aslex.c: use dbuf_getline()
851         * as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/asm.h, as/hc08/m08adr.c,
852           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/asm.h,
853           as/mcs51/i51adr.c, as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c,
854           as/z80/asm.h, as/z80/z80adr.c:
855           changed type of ib and ip to const char *
856
857 2007-12-28 Borut Razem <borut.razem AT siol.net>
858
859         * as/asxxsrc/aslex.c: moved from as/mcs51/aslex.c;
860           introduced (readlin) - long lines are turuncated
861         * as/hc08/as_hc08.dsp, as/mcs51/asx8051.dsp, as/z80/as_gbz80.dsp,
862           as/z80/as_z80.dsp, as/hc08/Makefile.in, as/mcs51/Makefile.in,
863           as/z80/Makefile.in: moved aslex.c to asxxsrc
864         * as/hc08/aslex.c, as/z80/aslex.c: deleted
865         * as/hc08/asmain.c, as/mcs51/asmain.c:
866           added missing initialization of a_addr field
867         * support/regression/tests/long_asm_line.c: added regtest for long
868           assembler line
869
870 2007-12-22 Borut Razem <borut.razem AT siol.net>
871
872         * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
873
874 2007-12-20 Maarten Brock <sourceforge.brock AT dse.nl>
875
876         * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang
877
878 2007-12-16 Borut Razem <borut.razem AT siol.net>
879
880         * device/include/pic16/stdbool.h: removed, since already exists in
881          device/include/; this also fixes bitopcse.c regression test for pic16
882          target
883         * support/regression/fwk/inclusw/testfwk.h: added macro ASSERT_FAILED
884         * src/pic16/glue.c: fixed bug #1851855: generic static pointer
885           dereference doesn't work; covered by regression test bug1399290
886
887 2007-12-05 Borut Razem <borut.razem AT siol.net>
888
889         * doc/sdccman.lyx: fixed bug #1844509 - Correction to Manual 4.6.9
890           Adding new PIC16
891
892 2007-12-01 Borut Razem <borut.razem AT siol.net>
893
894         * sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/mem.cc:
895           corrected handling of the highest_valid_address
896
897 2007-11-17 Raphael Neider <rneider AT web.de>
898
899         * src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
900         * src/pic/glue.c (picglue): emit .file if --debug is given
901
902 2007-11-17 Raphael Neider <rneider AT web.de>
903
904         * src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
905         care when left or right operand resides in result, fixes #1830220
906
907 2007-11-17 Borut Razem <borut.razem AT siol.net>
908
909         * src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
910           #983491 - "Merge duplicate strings function is ineffective"
911         * support/regression/tests/bug-983491.c: regtest disabled
912         * as/asxxsrc: created
913           as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
914           as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
915           as/z80/assym.c, as/hc08/asstore.c, as/mcs51/asstore.c: deleted
916           as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
917           as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
918           as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
919           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
920           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
921           as/link/z80/linkz80.dsp, as/mcs51/Makefile.bcc, as/mcs51/Makefile.in,
922           as/mcs51/asm.h, as/mcs51/asx8051.dsp, as/z80/Makefile.bcc,
923           as/z80/Makefile.in, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
924           as/z80/Makefile.as_hc08, as/mcs51/Makefile.asx8051: modified
925           created as/asxxsrc directory, assym.c and strcpi.c moved into it
926
927 2007-11-15 Maarten Brock <sourceforge.brock AT dse.nl>
928
929         * device/include/stdarg.h: added and removed some casts
930         * src/SDCCsymt.c (compareType): Fully check types between generic and
931           non-generic pointers, also accept ptr-ptr to void-ptr assignments
932
933 2007-11-13 Borut Razem <borut.razem AT siol.net>
934
935         * support/regression/tests/bug-1817005.c:
936           added regtest for bug #1817005 - as-z80 chokes on long labels
937
938 2007-11-12 Borut Razem <borut.razem AT siol.net>
939
940         * as\z80\asmain.c, as\z80\asm.h, as\z80\assym.c, as\z80\asdata.c,
941           as\z80\asout.c, as\z80\aslist.c:
942           fixed bug #1817005 - as-z80 chokes on long labels
943
944 2007-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
945
946         * as/hc08/asmain.c,
947         * as/z80/asmain.c: cosmetic changes
948         * as/hc08/alloc.h,
949         * as/mcs51/alloc.h,
950         * as/z80/alloc.h: removed
951         * as/hc08/assym.c,
952         * as/mcs51/assym.c: replaced alloc.h with stdlib.h
953         * as/link/aslink.h: added LKDIRSEP and, LKDIRSEPSTR
954         * as/link/hc08/Makefile.in,
955         * as/link/mcs51/Makefile.in,
956         * as/link/z80/Makefile.in: added -DUNIX to CFLAGS
957         * as/link/lklex.c,
958         * as/link/mcs51/lkarea.c,
959         * as/link/mcs51/lkmain.c: cosmetic changes
960         * as/link/hc08/lklibr.c,
961         * as/link/z80/lklibr.c,
962         * as/link/mcs51/lklibr.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
963           used cygwin_conv_to_full_posix_path,
964           added warnings, cosmetic changes, brought more in sync
965           changed old K&R into ANSI function declarations
966         * as/link/z80/lklibr.c (loadAdb): added
967         * as/link/z80/lkmain.c: removed -- option from usage text
968
969 2007-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
970
971         * src/mcs51/gen.c (outBitC): optimized for no result
972
973 2007-10-31 Borut Razem <borut.razem AT siol.net>
974
975         * src/SDCCsymt.c: fixed (hopeful properly) bug
976           #1805702 - order of extern matters
977         * support/regression/tests/bug-1805702.c: enabled regtest for bug
978           #1805702
979
980 2007-10-29 Borut Razem <borut.razem AT siol.net>
981
982         * src/SDCCsymt.c: reverted bad fixed of bug #1805702
983           - order of extern matters
984         * support/regression/tests/bug-1805702.c: disabled regtest for bug
985           #1805702
986
987 2007-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
988
989         * src/ds390/peeph.def: replaced 24bitModeAndPortDS390 by
990           24bitMode, portIsDS390
991         * src/mcs51/gen.c (genOr): optimized for RFE 1750727
992         * src/SDCCpeeph.c (flat24bitModeAndPortDS390): removed
993           (notVolatileVariable): also check sloc names,
994           (callFuncByName): moved ftab[] out of function and sorted it by use
995
996 2007-10-28 Maarten Brock <sourceforge.brock AT dse.nl>
997
998         * device/include/stdarg.h: fixed bug in va_start macro for --xstack
999         * src/hc08/gen.c (aopForRemat): aop->aopu.aop_immd.from_cast_remat not set,
1000           aop->aopu.aop_immd.aop_immd2 not filled with (generic) pointer type
1001         * src/SDCCicode.c (geniCodeCast): fixed bug 880197
1002         * support/regression/tests/bug-880197.c: new, added
1003
1004 2007-10-28 Borut Razem <borut.razem AT siol.net>
1005
1006         * support/regression/Makefile.in,
1007           support/regression/ports/mcs51-large/spec.mk,
1008           support/regression/ports/mcs51-xstack-auto/spec.mk,
1009           support/regression/ports/mcs51-stack-auto/spec.mk,
1010           support/regression/ports/mcs51-medium/spec.mk,
1011           support/regression/ports/mcs51-common/spec.mk,
1012           support/regression/ports/mcs51-common/*,
1013           support/regression/ports/mcs51-small/*:
1014           mcs51 renamed to mcs51-common, created mcs51-small
1015         * src/SDCCsymt.c: fixed bug #1805702 - order of extern matters
1016         * support/regression/tests/bug-1805702.c: added regtest for bug
1017           #1805702
1018
1019 2007-10-26 Maarten Brock <sourceforge.brock AT dse.nl>
1020
1021         * src/mcs51/peeph.def: moved rules 257.x to 253.x and re-enabled 253.b,
1022           added new rules 265 - 270
1023         * support/regression/tests/bug1721024.c:new, added
1024         * support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
1025           introduced new test-mcs51 to run all mcs51 tests
1026
1027 2007-10-25 Maarten Brock <sourceforge.brock AT dse.nl>
1028
1029         * support/regression/tests/bug1816470.c: new, added
1030
1031 2007-10-21 Maarten Brock <sourceforge.brock AT dse.nl>
1032
1033         * src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
1034           propagate for *,+,- with float, fixed bug 1816470
1035           (decorateType): cast to resultTypeProp instead of resultType
1036
1037 2007-10-19 Borut Razem <borut.razem AT siol.net>
1038
1039         * src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
1040           function is ineffective" for pic16 tareget
1041         * support/scripts/listerr.c: corrected include path
1042         * device/lib/_itoa.c: fixed bug #1806402 - _itoa and _uitoa leak to
1043           adjacent memory
1044
1045 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
1046
1047         * support/regression/tests/using.c: new, added
1048         * support/regression/tests/vaargs.c: fixed and enabled test
1049
1050 2007-10-18 Borut Razem <borut.razem AT siol.net>
1051
1052         * src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
1053           is ineffective
1054         * support/regression/tests/bug-983491.c: added regtest for bug #983491
1055
1056 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
1057
1058         * doc/sdccman.lyx: documented option --Werror
1059         * src/SDCCsymt.c (checkFunction): fixed bug 1815418 by setting
1060           RegBankUsed[] earlier
1061
1062 2007-10-14 Maarten Brock <sourceforge.brock AT dse.nl>
1063
1064         * device/include/mcs51/p89lpc938.h: new, added, thanks Kyle Guinn
1065         * src/pic/glue.c,
1066         * src/SDCCval.c,
1067         * src/SDCCast.c,
1068         * src/SDCCast.h: replaced AST_LIT_VALUE with AST_FLOAT_VALUE and
1069           AST_ULONG_VALUE
1070         * src/SDCCast.c (decorateType): improved optimization of tri-op
1071         * src/SDCCerr.c (vwerror, setWError),
1072         * src/SDCCerr.h,
1073         * src/SDCCmain.c (parseCmdLine): added option --Werror to treat all
1074           warnings as errors, thanks Stas Sergeev for PATCH 1813211
1075
1076 2007-10-13 Maarten Brock <sourceforge.brock AT dse.nl>
1077
1078         * src/mcs51/gen.c (leftRightUseAcc): use macro IS_OP_ACCUSE
1079         * src/SDCCast.c (decorateType): optimize bit=cond?1:0, RFE 1738430
1080         * support/regression/tests/bug-223113.c,
1081         * support/regression/tests/bug-426632.c,
1082         * support/regression/tests/bug-468811.c,
1083         * support/regression/tests/bug-477835.c,
1084         * support/regression/tests/bug-478094.c,
1085         * support/regression/tests/bug-499644.c,
1086         * support/regression/tests/bug-524209.c,
1087         * support/regression/tests/bug-524211.c,
1088         * support/regression/tests/packcast.c,
1089         * support/regression/tests/structidx.c: added empty tests
1090         * support/regression/tests/bug-607243.c: enabled test
1091
1092 2007-10-06 Borut Razem <borut.razem AT siol.net>
1093
1094         * .version, doc/sdccman.lyx: bumped version to 2.7.4 to indicate the full
1095            support of universal binaries on Mac OS X
1096
1097 2007-10-02 Borut Razem <borut.razem AT siol.net>
1098
1099         * src/SDCCval.h: unified double2ul macro for all platforms
1100         * src/SDCCval.c: fixed bug #1777758 - applied Maarten's patch
1101         * support/regression/tests/bitwise.c: added regtest for bug #1777758
1102
1103 2007-09-30 Borut Razem <borut.razem AT siol.net>
1104
1105         * src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
1106           platforms
1107         * sdcc_vc_in.h: enabled warnings
1108         * src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
1109           unsigned type, result still unsigned
1110         * src/mcs51/peep.c: fixed gcc warning: suggest parentheses around && within ||
1111
1112 2007-09-28 Raphael Neider <rneider AT web.de>
1113
1114         * src/pic/device.c (find_device): prevent buffer underflow error
1115         * src/pic/pcoderegs.c (OptimizeRegUsage): avoid dereferencing
1116           the just destroyed list entry
1117
1118 2007-09-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1119
1120         * doc/sdccman.lyx: there's a dedicated wiki page for cmake and sdcc, thanks
1121           Alexander Neundorf
1122
1123 2007-09-18 Borut Razem <borut.razem AT siol.net>
1124
1125         * src/SDCCval.c: fixed MSVC warning C4146: unary minus operator
1126          applied to unsigned type, result still unsigned
1127
1128 2007-09-17 Borut Razem <borut.razem AT siol.net>
1129
1130         * src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c,
1131           src/SDCCicode.c, src/SDCCopt.c, src/SDCCsymt.c, src/SDCCval.c,
1132           src/SDCCval.h, src/hc08/gen.c, src/avr/gen.c, src/ds390/gen.c,
1133           src/mcs51/gen.c, src/pic/gen.c, src/pic/genarith.c, src/pic/glue.c,
1134           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/genarith.c,
1135           src/pic16/genutils.c, src/pic16/glue.c, src/pic16/main.c,
1136           src/z80/gen.c, src/z80/ralloc.c:
1137           fixed bug #1739860 - sdcc does not work correctly on some platforms
1138           (not finished)
1139           introduced and used ulFromVal(), double2ul(), used strtod() instead sscanf()
1140
1141 2007-09-17 Raphael Neider <rneider AT web.de>
1142
1143         * src/pic16/device.c: reverted to previous version
1144         * device/lib/pic16/Makefile.common.in: quieten gpasm via -Wa,-q
1145
1146 2007-09-16 Raphael Neider <rneider AT web.de>
1147
1148         * src/pic16/device.c (pic16_dump_usection): do not reserve 0 bytes,
1149           as this raises a ton of gpasm warnings, just emit a second label
1150         * src/pic16/devices.inc,
1151         * device/lib/pic16/pics.all,
1152         * device/lib/pic16/libdev/pic18f2585.c,
1153         * device/lib/pic16/libdev/pic18f2680.c,
1154         * device/lib/pic16/libdev/pic18f2682.c,
1155         * device/lib/pic16/libdev/pic18f2685.c,
1156         * device/lib/pic16/libdev/pic18f4585.c,
1157         * device/lib/pic16/libdev/pic18f4680.c,
1158         * device/lib/pic16/libdev/pic18f4682.c,
1159         * device/lib/pic16/libdev/pic18f4685.c,
1160         * device/include/pic16/pic18f2585.h,
1161         * device/include/pic16/pic18f2680.h,
1162         * device/include/pic16/pic18f2682.h,
1163         * device/include/pic16/pic18f2685.h,
1164         * device/include/pic16/pic18f4585.h,
1165         * device/include/pic16/pic18f4680.h,
1166         * device/include/pic16/pic18f4682.h,
1167         * device/include/pic16/pic18f4685.h,
1168         * device/include/pic16/pic18fregs.h: added 18f2585, 18f2680,
1169           18f2682, 18f2685, 18f4585, 18f4680, 18f4682, 18f4685,
1170           patch contributed by Anton Strobl, applied with changes
1171
1172 2007-09-16 Raphael Neider <rneider AT web.de>
1173
1174         * device/include/pic16/pic18f2431.h,
1175         * device/include/pic16/pic18f25j10.h,
1176         * device/include/pic16/pic18f4431.h,
1177         * device/include/pic16/pic18f45j10.h: adopted common include style
1178         * device/include/pic16/pic18f1320.h,
1179         * device/include/pic16/pic18f2320.h,
1180         * device/include/pic16/pic18f2525.h,
1181         * device/include/pic16/pic18f4320.h,
1182         * device/include/pic16/pic18f4525.h: NEW, just include proper .h file
1183         * device/include/pic16/pic18fregs.h: prepared for automatic include
1184           file selection by having DEVICE.h for every DEVICE
1185         * device/lib/pic16/libdev/pic18f2320.c,
1186         * device/lib/pic16/libdev/pic18f4320.c: just include proper .c file
1187
1188         * device/lib/pic16/configure.in,
1189         * device/lib/pic16/configure: use rm -rf instead of rmdir
1190         * device/lib/pic16/Makefile.in: use RMDIR to remove build directories
1191         * device/lib/pic16/libc/stdlib/free.c: avoid warning on pointer cast
1192
1193 2007-09-09 Borut Razem <borut.razem AT siol.net>
1194
1195         * src/SDCCmain.c, src/SDCCutil.c: print newline after printVersionInfo(),
1196           distingush between i386 and ppc Mac OS X versions
1197
1198 2007-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
1199
1200         * src/mcs51/gen.c (genReceive): fixed bug 1788177
1201         * support/regression/tests/bug1788177.c: new, added
1202
1203 2007-09-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1204
1205         * doc/sdccman.lyx: mentioned d52 and cmake, customizing startup code
1206         * device/include/mcs51/lint.h added keyword __naked
1207
1208 2007-09-04 Maarten Brock <sourceforge.brock AT dse.nl>
1209
1210         * src/pic16/glue.c,
1211         * src/pic/glue.c,
1212         * src/SDCCmem.h: removed maxRegBank
1213         * src/SDCCmem.c (allocVariables): removed maxRegBank and moved setting
1214           RegBankUsed[] to checkFunction() in SDCCsymt.c to fix bug 1759839
1215         * src/SDCCsymt.c (checkFunction): set RegBankUsed[] here
1216         * src/mcs51/peep.c (isCallerSaveFunc, termScanAtFunc): changed function
1217           name and behaviour to handle banked functions
1218           (scan4op): and use it to fix bug 1786213
1219
1220 2007-09-03 Raphael Neider <rneider AT web.de>
1221
1222         * device/include/pic16/pic18f248.h,
1223         * device/include/pic16/pic18f258.h,
1224         * device/include/pic16/pic18f448.h,
1225         * device/lib/pic16/libdev/pic18f248.c,
1226         * device/lib/pic16/libdev/pic18f258.c,
1227         * device/lib/pic16/libdev/pic18f448.c: fixed TRISEbits,
1228           added T0CONbits, fixes #1786891
1229
1230 2007-08-29 Maarten Brock <sourceforge.brock AT dse.nl>
1231
1232         * src/ds390/gen.c (genFarPointerSet),
1233         * src/hc08/ralloc.c (packRegisters),
1234         * src/mcs51/ralloc.c (packRegisters),
1235         * src/SDCCcse.c (cseBBlock): check if result is a symbol first to fix
1236           bug 1750318
1237         * src/SDCCicode.h: POINTER_SET can be true for literals too
1238         * support/regression/tests/bug1750318.c: new, added
1239
1240 2007-08-23 Borut Razem <borut.razem AT siol.net>
1241
1242         * debugger/mcs51/sdcdb.c: fixed compilation with older readline
1243           library versions without the completition functionality
1244
1245 2007-08-22 Raphael Neider <rneider AT web.de>
1246
1247         * device/include/pic16/pic18f1220.h,
1248         * device/lib/pic16/libdev/pic18f1220.c: applied patch #1776191
1249
1250 2007-08-12 Borut Razem <borut.razem AT siol.net>
1251
1252         * debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
1253
1254 2007-08-11 Borut Razem <borut.razem AT siol.net>
1255
1256         * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
1257           src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
1258           support/Util/SDCCerr.[ch] moved to src
1259         * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
1260           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
1261           device/examples/ds390/tinitalk/tinitalk.dsp,
1262           device/examples/serialcomm/windows/serialcomm.dsp,
1263           support/librarian/librarian.dsp:
1264           removed linking of unused odbc32.lib and odbccp32.lib
1265         * support/scripts/winres.h:
1266           added for compilation with Visual C++ 2005 Express Edition
1267
1268 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1269
1270         * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
1271           and CKCON1.
1272
1273 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1274
1275         * sdccconf_in.h: update the endian test so that SPARC Solaris
1276           does not throw syntax errors
1277
1278 2007-08-06 Borut Razem <borut.razem AT siol.net>
1279
1280         * doc/sdccman.lyx: removed two index entries which prevented the
1281           generation of sdcc doc archive
1282
1283 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1284
1285         * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
1286           instead of lyx 1.5.0.
1287
1288 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1289
1290         * device/include/hc08/mc68hc908apxx.h: new header contributed by
1291           Lucas Loizaga, with minor modifications. Thanks!
1292
1293 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1294
1295         * doc/sdccman.lyx: Documented --acall-ajmp and described new features
1296           in sdcclib.
1297
1298 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1299
1300         * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
1301           src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
1302           with acall/ajmp.
1303
1304 2007-07-22 Borut Razem <borut.razem AT siol.net>
1305
1306         * configure.in, configure: re-introduced .version
1307         * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
1308           the version reverted to 2.7.0
1309
1310 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
1311
1312         * configure.in,
1313         * doc/sdccman.lyx: bumped version to 2.7.3
1314         * device/include/mcs51/compiler.h: fixed elif->else
1315         * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
1316         * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
1317           (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
1318            enable accuse for bit operands
1319         * src/SDCCmain.c (printVersionInfo),
1320         * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
1321           environment descriptor
1322         * src/SDCCutil.h: added getBuildEnvironment
1323         * src/SDCCglue.c (initialComments): use getBuildEnvironment
1324         * support/regression/tests/bug1464657.c: enabled test test_Peephole251
1325         * support/regression/tests/bug-408972.c: enabled test leftShiftLong
1326         * support/regression/tests/bug1348008.c,
1327         * support/regression/tests/bug1496419.c,
1328         * support/regression/tests/bug1503067.c,
1329         * support/regression/tests/preproc.c: added empty tests
1330
1331 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
1332
1333         * support/regression/tests/bug1678803.c: new, added
1334
1335 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
1336
1337         * as/link/aslink.h,
1338         * as/link/hc08/lkihx.c,
1339         * as/link/hc08/lkrloc.c,
1340         * as/link/mcs51/lkihx.c,
1341         * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
1342           ihxExtendedLinearAddress
1343         * as/link/mcs51/lkrloc.c (relr),
1344         * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
1345           acall/ajmp, see bug 830513
1346
1347 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
1348
1349         * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
1350           (cseBBlock): remember aggr2ptr has been used
1351         * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
1352           (geniCodeAssign): fixed bug 868103
1353         * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
1354           added operandSize prototype
1355         * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
1356           (genDataPointerSet): use max of size of right and result,
1357           (gencjne): added parameter useCarry for optimization,
1358           (genCmpEq): use carry if appropriate,
1359           (genXor): check if operand already in carry
1360         * support/regression/tests/bug-868103.c: enabled test
1361
1362 2007-07-12 Raphael Neider <rneider AT web.de>
1363
1364         * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
1365
1366 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
1367
1368         * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
1369           from Robert Larice, thanks
1370         * support/regression/tests/bitopcse.c,
1371         * support/regression/tests/bitvars.c,
1372         * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
1373         * support/regression/tests/bug-927659.c: enabled test for z80
1374         * support/regression/tests/bug1738367.c: added extra tests by Frieder
1375         * support/regression/tests/bug1745717.c: new, added
1376         * support/regression/tests/literalop.c,
1377         * support/regression/tests/nullstring.c: removed storage definitions that
1378           are now in testfwk.h
1379
1380 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
1381
1382         * device/include/stdbool.h: do not define __bool_true_false_are_defined
1383           and bool for targets that do not fully support it.
1384         * support/regression/tests/bug1546986.c,
1385         * support/regression/tests/bug1723128.c,
1386         * support/regression/tests/bug1734654.c,
1387         * support/regression/tests/bug1738367.c,
1388         * support/regression/tests/constantRange.c: only use bool if allowed
1389
1390 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
1391
1392         * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
1393           Larice, also handle function pointers
1394         * support/regression/tests/bug1749275.c: new, added
1395
1396 2007-07-03 Borut Razem <borut.razem AT siol.net>
1397
1398         * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
1399           src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
1400           #1746528: SDCC should ignore ':' in inline assembler comments
1401         * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
1402
1403 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
1404
1405         * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
1406         * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
1407
1408 2007-06-29 Borut Razem <borut.razem AT siol.net>
1409
1410         * src/SDCCmain.c: fixed bug
1411           #1744746: SDCC #4867: broken option --xram-size
1412
1413 2007-06-28 Borut Razem <borut.razem AT siol.net>
1414
1415         * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
1416           find out the endianess of host machine for ucsim
1417
1418 2007-06-27 Borut Razem <borut.razem AT siol.net>
1419
1420         * support/regression/generate-cases.py: corrected the file name
1421           in warning
1422         * configure.in, configure, sdccconf_in.h: find out the endianess of
1423           host machine
1424         * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
1425           negative size
1426
1427 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
1428
1429         * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
1430
1431 2007-06-26 Borut Razem <borut.razem AT siol.net>
1432
1433         * support/regression/generate-cases.py: display warning if function
1434           list is empty; implemented more flexible rule for detection of
1435           testing functions, allowing return type 'void' in the same line as
1436           the function name in the function definition
1437         * support/regression/tests/bug-1654060.c: corrected test
1438         * support/librarian/sdcclib.c: fixed warning:
1439           format '%s' expects type 'char *', but argument 2 has type 'int'
1440
1441 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1442
1443         * support/librarian/sdcclib.c: Added feature Requests [1510635]
1444           Multiple infiles for sdcclib.
1445
1446 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1447
1448         * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
1449           bug 1731741
1450
1451 2007-06-18 Borut Razem <borut.razem AT siol.net>
1452
1453         * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
1454           how to handle comments, so they have to be removed by the
1455           preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
1456         * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
1457           src/pic16/main.c, src/pic/main.c, src/z80/main.c,
1458           support/Util/SDCCerr.c, support/Util/SDCCerr.h:
1459           table driven option hadling
1460
1461 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
1462
1463         * src/SDCCast.c (decorateType),
1464         * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
1465           iCode to ast level to fix bug 1738367
1466         * support/regression/tests/bug1738367.c: new, added
1467
1468 2007-06-15 Raphael Neider <rneider AT web.de>
1469
1470         * src/pic16/devices.inc,
1471         * device/lib/pic16/pics.all,
1472         * device/include/pic16/pic18fregs.h,
1473         * device/include/pic16/pic18f[24][45]20.h,
1474         * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
1475           18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
1476         * device/lib/pic16/Makefile.in: faster cleanup
1477
1478 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1479
1480         * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
1481
1482 2007-06-13 Raphael Neider <rneider AT web.de>
1483
1484         * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
1485
1486 2007-06-12 Raphael Neider <rneider AT web.de>
1487
1488         * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
1489           suppress bit defines if NO_BIT_DEFINES is #define'd
1490         * device/include/pic/pic*.h: recreated all headers to include
1491           conditional bit defines
1492         * device/include/pic/pic16f886.h,
1493         * device/include/pic/pic16f887.h: fixed based on newer .inc file
1494         * device/include/pic/recreate.sh: script to recreate the complete
1495           device library files based on the currently supported devices
1496
1497 2007-06-12 Borut Razem <borut.razem AT siol.net>
1498
1499         * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
1500           support/regression/Makefile.in, support/scripts/build.mak,
1501           support/scripts/Makefile.snapshot:
1502           use new svn URL scheme
1503         * doc/sdccman.lyx: SDCC Wiki moved to
1504           http://sdcc.wiki.sourceforge.net/
1505
1506 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1507
1508         * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
1509         * support/regression/tests/bug1734654.c: added
1510
1511 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
1512
1513         * src/SDCCast.c (decorateType): optimized '?' for equal operands
1514         * src/SDCCicode.c (geniCodeConditional): optimization for bit result
1515           with literal operands
1516
1517 2007-06-10 Borut Razem <borut.razem AT siol.net>
1518
1519         * as/link/z80/lklibr.c: fixed mingw build warning
1520           lklibr.c:575: warning: implicit declaration of function 'tolower'
1521         * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
1522           src/z80/main.c: move target specific options from src/SDCCmain.c
1523           to src/<target>/main.c
1524
1525 2007-06-09 Borut Razem <borut.razem AT siol.net>
1526
1527         * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
1528           removed unused swap_sense; removed outBitCLong, replaced with outBitC
1529         * support/regression/tests/bug-1294691.c: added
1530
1531 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
1532
1533         * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
1534           can also be static, fixes bug 1733438
1535         * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
1536           have absolute address too
1537           (computeType): added optimization for 'cond ? true : false'
1538         * support/regression/tests/absolute.c: added test for static absolute var
1539
1540 2007-06-08 Raphael Neider <rneider AT web.de>
1541
1542         * src/regression/Makefile: suppress parallel builds, allow easy
1543           switching between pic14/pic16 ports
1544         * src/regression/picregs.h: added pic14/16 header file switch
1545         * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
1546           inline.c,nestfor.c,string1.c}: include "picregs.h"
1547
1548 2007-06-07 Borut Razem <borut.razem AT siol.net>
1549
1550         * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
1551           permanent solution to suppress GCC 4.2.0 c++ warning:
1552           deprecated conversion from string constant to `char *'
1553           use 'const char *' where ever required
1554         * support/regression/generate-cases.py: implemented more flexible rule
1555           for detection of testing functions, allowing white-spaces surrounding
1556           the function name and the 'void' parameter.
1557         * support/regression/tests/constantRange.c,
1558           support/regression/tests/scott-compare3.c: fixed failing regression
1559           tests, uncovered by implementation of more flexible rule for detection
1560           of testing functions
1561
1562 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
1563
1564         * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
1565
1566 2007-06-04 Borut Razem <borut.razem AT siol.net>
1567
1568         * configure.in, configure, config_vc.awk: sdcc version number is now
1569           stored in configure.in; removed .version
1570         * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
1571           doc/INSTALL.txt: version bumped to 2.7.2
1572         * sim/ucsim/configure.in, sim/ucsim/configure:
1573           use "read" to read from .version
1574
1575 2007-06-03 Borut Razem <borut.razem AT siol.net>
1576
1577         * */Makefile.in: removed annoying warning:
1578           Makefile:xx: Makefile.dep: No such file or directory
1579
1580 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
1581
1582         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
1583           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
1584         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
1585         * src/SDCCast.c (resultTypePropagate): propagate for '!',
1586           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
1587           bugfix: only use newBoolLink for bit result type
1588         * src/SDCCicode.c (geniCodeLogic): added param tree,
1589           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
1590           (geniCodeLogicAndOr): use IS_BIT,
1591           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
1592           (ast2iCode): added tree param to geniCodeLogic for comparisons
1593         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
1594         * support/regression/tests/bug1723128.c: added test NotZero
1595
1596 2007-06-01 Borut Razem <borut.razem AT siol.net>
1597
1598         * SDCPP synchronized with GCC CPP release version 4.2.0,
1599           currently the latest release:
1600         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1601           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
1602           support/cpp2/cppdefault.h, support/cpp2/except.h,
1603           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
1604           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
1605           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
1606           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
1607           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
1608           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
1609           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
1610           support/cpp2/opts.h, support/cpp2/output.h,
1611           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
1612           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
1613           support/cpp2/system.h, support/cpp2/version.c,
1614           support/cpp2/Makefile.in: modified
1615         * support/cpp2/opts-common.c: added
1616         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
1617         * device/lib/pic16/libdev/pic18f[24]5j10.c:
1618           search for included source file in local directory
1619         * sim/ucsim/configure, sim/ucsim/configure.in:
1620           temporary solution to suppress GCC 4.2.0 c++ warning:
1621           deprecated conversion from string constant to `char *'
1622
1623 2007-06-01 Raphael Neider <rneider AT web.de>
1624
1625         * device/lib/pic/libdev/pic12f683.c,
1626         * device/include/pic/pic12f683.h: added GPIO bits
1627
1628 2007-06-01 Raphael Neider <rneider AT web.de>
1629
1630         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
1631           quotation marks, clarified role of PIC14 vs. PIC16 ports
1632         * src/pic16/devices.inc,
1633         * device/include/pic16/pic18fregs.h,
1634         * device/include/pic16/pic18f[24][45]j10.h,
1635         * device/lib/pic16/pics.all,
1636         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
1637           18f24j10, 18f25j10, 18f44j10, and 18f45j10
1638         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
1639           for new devices as they are not yet supported by gputils
1640
1641 2007-05-31 Borut Razem <borut.razem AT siol.net>
1642
1643         * Small Device C Compiler 2.7.0 released
1644         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
1645           changed sdcc version to 2.7.1
1646         * support/scripts/sdcc.nsi: added How to create WIN32 release
1647           setup.exe package
1648
1649 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
1650
1651         * doc/sdccman.lyx: documented initialization and allocation of absolute
1652           variables, bit parameter passing, the need for function pointers to be
1653           reentrant and alpha quality support of inline and retrict
1654
1655 2007-05-26 Borut Razem <borut.razem AT siol.net>
1656
1657         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
1658           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
1659         * docs/knownbugs.html: updated
1660
1661 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
1662
1663         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
1664           thanks Jan Waclawek
1665         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
1666           AOP_CRY and ruonly
1667           (gencjneshort): optimized when left is AOP_DIR
1668         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
1669           initializing unions in a struct/array
1670         * support/regression/fwk/include/testfwk.h: added defines for data, near
1671           and far for host and z80
1672         * support/regression/tests/bug1723128.c: new, added
1673
1674 2007-05-22 Borut Razem <borut.razem AT siol.net>
1675
1676         * doc/knownbugs.html: updated
1677
1678 2007-05-21 Raphael Neider <rneider AT web.de>
1679
1680         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
1681           error message instead
1682         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
1683
1684 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
1685
1686         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
1687
1688 2007-05-21 Raphael Neider <rneider AT web.de>
1689
1690         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
1691           closes #1722392
1692         * src/regression/gpsim_assert.h,
1693         * src/regression/Makefile,
1694         * src/regression/pcodeopt.c: regression test for the above fix
1695
1696 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
1697
1698         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
1699           jumps to self, fixed bug 1717281
1700
1701 2007-05-10 Borut Razem <borut.razem AT siol.net>
1702
1703         * support/scripts/gen_known_bugs.pl: cosmetic fix
1704         * doc/knownbugs.html: generated by gen_known_bugs.pl
1705
1706 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1707
1708         * src/SDCCast.c (createFunction): also generate non-inlined version of
1709           function for functions declared as "static inline"
1710         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
1711           function can be inlined after non-inlined version generated.
1712
1713 2007-05-10 Borut Razem <borut.razem AT siol.net>
1714
1715         * support/scripts/gen_known_bugs.pl: added script
1716           which generates knownbugs.html
1717
1718 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
1719
1720         * doc/knownbugs.html: updated for release 2.7.0
1721
1722 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1723
1724         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
1725
1726 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
1727
1728         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
1729           (throughout): updated generating comments
1730         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
1731           (throughout): updated generating comments
1732         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
1733           rule instead of at the second, or it might skip lines when removing the
1734           complete match
1735         * support/regression/tests/bug1714204.c: changed test to foo
1736
1737 2007-05-08 Borut Razem <borut.razem AT siol.net>
1738
1739         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
1740           thanks to SDCC Distributed Compile Farm members,
1741           added Z80 and GBZ80 command line options
1742         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
1743
1744 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
1745
1746         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
1747         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
1748         * support/regression/tests/longlit.c: modified to be tested at all and
1749           to pass the actual test
1750
1751 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1752
1753         * device/include/mcs51/uPSD33xx.h: Added.
1754
1755 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
1756
1757         * device/lib/_gptrput.c,
1758         * device/lib/_gptrget.c: removed old code,
1759          (_gptrgetWord),
1760         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
1761         * support/regression/tests/bug1714204.c: new, added
1762
1763 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1764
1765         * support/regression/tests/regtrack.c: test was never executed
1766           because of the regression test being picky about white spaces.
1767         * device/lib/mcs51/crtclear.asm: added comment
1768
1769 2007-05-06 Raphael Neider <rneider AT web.de>
1770
1771         * device/lib/pic/Makefile.rules,
1772         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
1773           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
1774
1775 2007-05-06 Raphael Neider <rneider AT web.de>
1776
1777         * src/pic16/device.h,
1778         * src/pic16/main.h,
1779         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
1780           _pic16_setDefaultOptions): removed/reordered command-line args
1781         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
1782           devices, regrouped command line args, environment variables),
1783           clarified sone points, added sections on how to add devices to the
1784           PIC14/PIC16 ports
1785
1786 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
1787
1788         * src/z80/peeph.def: fixed bug in rule 2
1789
1790 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
1791
1792         * src/port.h: added TARGET_MCS51_LIKE
1793         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
1794           take advantage of it too
1795         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
1796           (shiftR2Left2Result): Optimized: don't check shifting by 0
1797         * src/z80/peeph-z80.def,
1798         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
1799           modifications, see patch 1700823
1800         * src/mcs51/peep.c (): fixed bug 1712928
1801         * support/regression/tests/bug1712928.c: new, added
1802
1803 2007-05-05 Borut Razem <borut.razem AT siol.net>
1804
1805         * device/lib/pic16/Makefile.common.in,
1806           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
1807           removed bash dependencies
1808
1809 2007-05-01 Borut Razem <borut.razem AT siol.net>
1810
1811         * src/SDCCicode.c:
1812           fixed bug #1710507: --i-code-in-asm makes compile fail
1813           all iCode comments are now one liners
1814         * src/mcs51/gen.c: fixed memory leak
1815
1816 2007-05-01 Raphael Neider <rneider AT web.de>
1817
1818         * device/lib/pic/libdev/*.c
1819         * device/include/pic/*.h: regenerated all device libs from updated
1820           .inc files
1821         * support/scripts/inc2h.pl: documented usage, now uses strict to
1822           catch more bugs
1823
1824 2007-04-30 Borut Razem <borut.razem AT siol.net>
1825
1826         * doc/sdccman.lyx:
1827           fixed bug #1669175: Problem with space in output paths
1828           documented how to use paths with spaces for Windows users
1829
1830 2007-04-29 Borut Razem <borut.razem AT siol.net>
1831
1832         * Fixed svn:eol-style and svn:keywords properties
1833         * src/SDCCval.c: fixed bug
1834           #1592871: Segfault with "large" const arrays of characters
1835           replaced recursion with iteration
1836         * Removed svn:executable property from non-executable files
1837
1838 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
1839
1840         * src/mcs51/gen.c (genRet): fixed bug 1707003
1841
1842 2007-04-27 Raphael Neider <rneider AT web.de>
1843
1844         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
1845           createReachingDefinitions,assignValnums,pic16_destructDF,
1846           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
1847           prevent NULL pointer dereferences
1848         * device/lib/pic/libdev/pic16f886.c,
1849         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
1850           prevent building them, gputils do not really support them yet
1851
1852 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1853
1854         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
1855           helps printf_small. 32 bytes more __idata mem.
1856
1857 2007-04-27 Raphael Neider <rneider AT web.de>
1858
1859         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
1860           return early when pb or pb->pcHead is NULL (patch #1708427)
1861         * src/regression/empty.c,
1862         * src/regression/Makefile: added test with empty functions
1863         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
1864
1865 2007-04-27 Borut Razem <borut.razem AT siol.net>
1866
1867         * src/SDCCast.c: fixed feature request
1868           #1547512: Redundant strings linked when using sizeof("abc")
1869
1870 2007-04-23 Borut Razem <borut.razem AT siol.net>
1871
1872         * doc/sdccman.lyx, src/SDCCmain.c:
1873           peep-hole comments are generated only if --fverbose-asm option is
1874           specified and --no-peep-comments is not, as proposed by Frieder.
1875         * support/regression/Makefile.in: compile regression tests with
1876           --fverbose-asm option so one can "grep" whether a new (or an old)
1877           peephole is (still) applied; requested by Frieder.
1878
1879 2007-04-23 Kevin Buettner <kevin AT buettner.to>
1880
1881         * device/include/pic/pic16f886.h,
1882         * device/include/pic/pic16f887.h,
1883         * device/lib/pic/libdev/pic16f886.c,
1884         * device/lib/pic/libdev/pic16f887.c,
1885         * device/include/pic/pic14devices.txt,
1886         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
1887
1888 2007-04-23 Kevin Buettner <kevin AT buettner.to>
1889
1890         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
1891           fixes #1704666
1892
1893 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1894
1895         * device/lib/_memset.c: assembler version for mcs51
1896
1897 2007-04-22 Borut Razem <borut.razem AT siol.net>
1898
1899         * support/scripts/listerr.c: program to create the list of errors and
1900           warnings list from - added
1901         * doc/sdccman.lyx: removed the note
1902           "For list of warnings and corresponding codes, see err_warn.txt"
1903         * src/SDCCsymt.c: fixed bug #1699804:
1904           Bug with some uses of sizeof(static local array) (MCS51)
1905         * support/regression/tests/bug-1699804.c: added
1906
1907 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
1908
1909         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
1910           (main): added option -i,
1911           (asmbl, case S_INCL): use search_path_fopen,
1912           mostly from patch 1579668 by Peter Miller, thanks
1913         * src/z80/main.c: fixed typo --callee-saves-bc
1914         * device/include/mcs51/compiler.h: added sfrword for Tasking
1915
1916 2007-04-20 Borut Razem <borut.razem AT siol.net>
1917
1918         * src/z80/main.c: replaced reserved keyword asm with asmblr
1919
1920 2007-04-19 Borut Razem <borut.razem AT siol.net>
1921
1922         * src/port.h: use const pointers to strings
1923         * src/SDCCargs.h: declared getStringArg() and getIntArg()
1924         * src/pic16/main.c: include SDCCargs.h
1925         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
1926           const char, since the strings are dynamically allocated
1927         * src/SDCCmain.c: options.code_seg and options.const_seg are
1928           dynamically allocated; check port specific command line options
1929           before the general ones
1930         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
1931
1932 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
1933
1934         * device/include/ds400rom.h,
1935         * device/lib/ds390/lcd390.c,
1936         * device/lib/ds390/memcpyx.c,
1937         * device/lib/ds390/rtc390.c,
1938         * device/lib/ds400/ds400rom.c,
1939         * device/lib/ds400/memcpyx.c,
1940         * device/lib/hc08/_ret.c: more replacements of keywords with their
1941           double underscore equivalents
1942         * device/lib/ds390/Makefile.in,
1943         * device/lib/ds400/Makefile.in,
1944         * device/lib/gbz80/Makefile.in,
1945         * device/lib/hc08/Makefile.in,
1946         * device/lib/mcs51/Makefile.in,
1947         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
1948
1949 2007-04-17 Borut Razem <borut.razem AT siol.net>
1950
1951         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
1952           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
1953           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
1954           to --fverbose-asm, to be gcc'ish
1955
1956 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
1957
1958         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
1959
1960 2007-04-17 Borut Razem <borut.razem AT siol.net>
1961
1962         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
1963         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
1964           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
1965           with their double underscore equivalent
1966
1967 2007-04-14 Borut Razem <borut.razem AT siol.net>
1968
1969         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
1970           source"
1971
1972 2007-04-13 Borut Razem <borut.razem AT siol.net>
1973
1974         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
1975           C99 standard
1976         * device/examples/serialcomm/windows/serial.[ch],
1977           device/examples/serialcomm/windows/test_serialcomm.cpp:
1978           updated by Bela Torok
1979         * device/examples/serialcomm/windows/serialcomm.dsw,
1980           device/examples/serialcomm/windows/serialcomm.dsp: added
1981
1982 2007-04-13 Jan Waclawek <wek AT efton.sk>
1983
1984         * doc/sdccman.lyx: additions and changes at various places
1985           (submitted as #1697136).
1986           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
1987
1988 2007-04-10 Borut Razem <borut.razem AT siol.net>
1989
1990         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
1991           LyX file format changed to 245
1992         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
1993           "FreeWare" replaced with "free open source"
1994
1995 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
1996
1997         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
1998
1999 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
2000
2001         * device/include/pic16/pic18fregs.h,
2002         * device/lib/_bp.c,
2003         * device/lib/_decdptr.c,
2004         * device/lib/_divsint.c,
2005         * device/lib/_divslong.c,
2006         * device/lib/_divuint.c,
2007         * device/lib/_divulong.c,
2008         * device/lib/_fs2schar.c,
2009         * device/lib/_fs2sint.c,
2010         * device/lib/_fs2slong.c,
2011         * device/lib/_fs2uchar.c,
2012         * device/lib/_fs2uint.c,
2013         * device/lib/_fs2ulong.c,
2014         * device/lib/_fsadd.c,
2015         * device/lib/_fscmp.c,
2016         * device/lib/_fsdiv.c,
2017         * device/lib/_fseq.c,
2018         * device/lib/_fsget1arg.c,
2019         * device/lib/_fsget2args.c,
2020         * device/lib/_fsgt.c,
2021         * device/lib/_fslt.c,
2022         * device/lib/_fsmul.c,
2023         * device/lib/_fsneq.c,
2024         * device/lib/_fsnormalize.c,
2025         * device/lib/_fsreturnval.c,
2026         * device/lib/_fsrshift.c,
2027         * device/lib/_fssub.c,
2028         * device/lib/_fsswapargs.c,
2029         * device/lib/_gptrget.c,
2030         * device/lib/_gptrgetc.c,
2031         * device/lib/_gptrput.c,
2032         * device/lib/_logexpf.c,
2033         * device/lib/_modsint.c,
2034         * device/lib/_modslong.c,
2035         * device/lib/_moduint.c,
2036         * device/lib/_modulong.c,
2037         * device/lib/_mulint.c,
2038         * device/lib/_mullong.c,
2039         * device/lib/_schar2fs.c,
2040         * device/lib/_ser.c,
2041         * device/lib/_setjmp.c,
2042         * device/lib/_sint2fs.c,
2043         * device/lib/_slong2fs.c,
2044         * device/lib/_spx.c,
2045         * device/lib/_uchar2fs.c,
2046         * device/lib/_uint2fs.c,
2047         * device/lib/_ulong2fs.c,
2048         * device/lib/asincosf.c,
2049         * device/lib/atanf.c,
2050         * device/lib/calloc.c,
2051         * device/lib/ds390/tinibios.c,
2052         * device/lib/ds400/tinibios.c,
2053         * device/lib/expf.c,
2054         * device/lib/free.c,
2055         * device/lib/hc08/_mulint.c,
2056         * device/lib/logf.c,
2057         * device/lib/malloc.c,
2058         * device/lib/printf_fast.c,
2059         * device/lib/printf_tiny.c,
2060         * device/lib/printfl.c,
2061         * device/lib/realloc.c,
2062         * device/lib/ser_ir.c,
2063         * device/lib/serial.c,
2064         * support/regression/tests/libmullong.c: replaced all special keywords
2065           with their double underscore equivalent
2066         * support/regression/ports/mcs51-xstack-auto/spec.mk,
2067         * device/lib/Makefile.in: compile libs with --std-c99 instead of
2068           --std-sdcc99
2069         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
2070           (genRet): if the bit-symbol is ruonly it already is in the carry
2071         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
2072         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
2073         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
2074           type UCHAR if dest is not bit
2075
2076 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
2077
2078         * device/include/math.h,
2079         * device/lib/cotf.c,
2080         * device/lib/expf.c,
2081         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
2082
2083 2007-04-01 Borut Razem <borut.razem AT siol.net>
2084
2085         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
2086           fixed bug #1692042: input buffer overflow...scanner uses REJECT
2087         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
2088           gcc_unreachable() called internal_error()...
2089
2090 2007-03-30 Raphael Neider <rneider AT web.de>
2091
2092         * src/pic/ralloc.c (isData): suppress garbage debug output
2093
2094 2007-03-28 Borut Razem <borut.razem AT siol.net>
2095
2096         * doc/sdccman.lyx:
2097           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
2098           is developed, built and used worldwide, and the word "night" doesn't
2099           make any sense.
2100
2101 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
2102
2103         * device/include/mcs51/C8051F360.h: new, added
2104         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
2105
2106 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2107
2108         * src/SDCC.y (declaration_specifiers, function_specifier),
2109         * support/Util/SDCCerr.c,
2110         * support/Util/SDCCerr.h,
2111         * src/SDCCsymt.h,
2112         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
2113           inline keyword
2114         * src/SDCCmem.c (deallocParms),
2115         * src/SDCCast.c: support for function inlining, not quite complete
2116         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
2117           'restrict' qualifier
2118
2119 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
2120
2121         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
2122           (saveRBank, unsaveRBank): don't save bits,
2123           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
2124         * support/regression/tests/bug1535242.c: new, added
2125         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
2126           thanks Alexey Shamrin <shamrin AT gmail.com>,
2127           made assert.h header ANSI compliant (added a check for NDEBUG macro,
2128           removed header guard)
2129         * .version,
2130         * sdcc.spec: bumped version to 2.6.5
2131         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
2132
2133 2007-03-22 Borut Razem <borut.razem AT siol.net>
2134
2135         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
2136           fixed bug #1653671: sdcdb integration into ddd is broken
2137
2138 2007-03-22 Raphael Neider <rneider AT web.de>
2139
2140         * src/pic/gen.c (popGetExternal): augmented to also create references
2141           to external variables (not only labels),
2142           (genCall): comment on plan to reduce PAGESEL overhead,
2143           (genFunction, genEndFunction): also save/restore FSR around interrupt
2144           handling code, removed lots of unused code
2145           (genDivOneByte): release acquired temp register
2146         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
2147           of popGetExternal
2148         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
2149           for registers that need to be saved during interrupts (FSR, STATUS,
2150           PCLATH; W needs special handling), currently only FSR is used
2151
2152 2007-03-22 Raphael Neider <rneider AT web.de>
2153
2154         * device/include/pic/pic14devices.txt: 16f688 has only one config word
2155
2156 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2157
2158         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
2159
2160 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
2161
2162         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
2163
2164 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
2165
2166         * as/link/aslink.h: added LKOBJEXT
2167         * as/link/hc08/link_hc08.dsp,
2168         * as/link/hc08/Makefile.bcc,
2169         * as/link/hc08/Makefile.in,
2170         * as/link/mcs51/aslink.dsp,
2171         * as/link/mcs51/Makefile.bcc,
2172         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
2173         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
2174         * as/link/lkaomf51.c: merged and moved
2175         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
2176         * as/link/z80/lkdata.c,
2177         * as/link/lkdata.c: merged and moved
2178         * as/link/hc08/lkmain.c,
2179         * as/link/mcs51/lkmain.c: cosmetic changes
2180         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
2181         * as/link/lklex.c: use LKOBJEXT
2182         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
2183           ANSI-fied functions, removed bubble-sorts
2184         * as/link/z80/lksym.c           as/link/lksym.c: merged,
2185           ANSI-fied functions
2186         * as/link/z80/linkgbz80.dsp,
2187         * as/link/z80/linkz80.dsp,
2188         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
2189           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
2190         * as/link/z80/lkhead.c,
2191         * as/link/z80/lklex.c: deleted
2192         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
2193         * as/link/z80/lkmain.c: added copyfile()
2194
2195 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2196
2197         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
2198
2199 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2200
2201         * device/lib/_strlen.c: assembler version for mcs51
2202
2203 2007-03-13 Raphael Neider <rneider AT web.de>
2204
2205         * device/include/pic16/pic18f2221.h,
2206         * device/include/pic16/pic18f2321.h,
2207         * device/include/pic16/pic18f2331.h,
2208         * device/include/pic16/pic18f4221.h,
2209         * device/include/pic16/pic18f4321.h,
2210         * device/include/pic16/pic18f4331.h: fixed config byte location names
2211         * support/scripts/inc2h-pic16.pl: removed debug output, emit
2212           consistently named config byte locations
2213
2214 2007-03-13 Borut Razem <borut.razem AT siol.net>
2215
2216         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
2217           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
2218           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
2219           as/link/z80/Makefile.in, as/z80/Makefile.in:
2220           introduced LDFLAGS
2221
2222 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2223
2224         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
2225         * device/lib/printf_large.c: pointer was converted to generic
2226         pointer for mcs51 models other than model-small (Maarten noticed)
2227
2228 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2229
2230         * device/include/mcs51/ADuC84x.h: Added.
2231
2232 2007-03-10 Borut Razem <borut.razem AT siol.net>
2233
2234         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
2235           fixed RFE #1624219: double backslashes in filenames;
2236           functions hexEscape(), octalEscape() and copyStr() moved from
2237           SDCCval.c to SDCCutil.c and made them glovbally available
2238
2239 2007-03-09 Borut Razem <borut.razem AT siol.net>
2240
2241         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
2242           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
2243           1673361: Missaligned comments in output files
2244
2245 2007-03-09 Raphael Neider <rneider AT web.de>
2246
2247         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
2248
2249 2007-03-09 Raphael Neider <rneider AT web.de>
2250
2251         * src/pic/gen.c,
2252         * src/pic/glue.c,
2253         * src/pic/ralloc.c: suppress undesired debug output
2254         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
2255
2256 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2257
2258         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
2259
2260 2007-03-07 Borut Razem <borut.razem AT siol.net>
2261
2262         * device/lib/pic16/libdev/pic18f[24][34]31.c:
2263           search include files in the current directory
2264
2265 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
2266
2267         * src/SDCCglue.c (emitMaps, glue),
2268         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
2269           absolute xdata
2270         * support/regression/tests/absolute.c: added xdata test
2271
2272 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
2273
2274         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
2275           added condition to macro, fixes bug 1666080
2276
2277 2007-03-02 Raphael Neider <rneider AT web.de>
2278
2279         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
2280
2281 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2282
2283         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
2284         be cleared. Unconditionally set __XPAGE
2285         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
2286
2287 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2288
2289         * src/SDCCglobl.h,
2290         * src/SDCCmain.c,
2291         * src/mcs51/gen.c,
2292         * src/mcs51/rtrack.c,
2293         * src/ds390/gen.c,
2294         * doc/sdccman.lyx: added --no-gen-comments
2295         * src/mcs51/peeph.def: added 192.b, disabled 185
2296
2297 2007-02-25 Raphael Neider <rneider AT web.de>
2298
2299         * src/pic16/gen.c (genCast): fixed typo
2300         * device/lib/pic16/Makefile.subdir: only install existing files
2301         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
2302
2303 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
2304
2305         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
2306         * device/lib/mcs51/crtclear.asm,
2307         * device/lib/mcs51/crtxclear.asm: renumbered labels
2308         * device/lib/mcs51/Makefile.in: added crtcall.asm
2309         * doc/sdccman.lyx: documented mcs51 crt* library startup code
2310         * src/mcs51/gen.c (movc): removed,
2311           (aopGet, genPlusBits): clear a after loading the carry (possibly from
2312             acc.x or psw.x),
2313           (toCarry, genSend, genRet): added function toCarry,
2314           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
2315           (assignBit, genAssign, genCast): added function assignBit
2316         * src/mcs51/Makefile.bcc: added rtrack.c
2317         * src/mcs51/ralloc.h: made valueKnown a bitfield
2318         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
2319           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
2320           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
2321         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
2322         * src/z80/gen.c: added AOP_IS_PAIRPTR,
2323           (_pop): only pop valid pairs, see gencjneshort,
2324           (gencjneshort): return pair that still needs to be popped, restructured,
2325           (gencjne, genCmpEq): call _pop
2326
2327 2007-02-23 Raphael Neider <rneider AT web.de>
2328
2329         * device/include/pic/pic14devices.txt: 16f684 has only one config word
2330
2331 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2332
2333         * device/include/mcs51/P89LPC925.h: Added.
2334
2335 2007-02-18 Raphael Neider <rneider AT web.de>
2336
2337         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
2338
2339 2007-02-17 Borut Razem <borut.razem AT siol.net>
2340
2341         * support/cpp2/directives.c, support/cpp2/version.c:
2342           synchronized with GCC CPP 4.1.2
2343
2344 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2345
2346         * src/mcs51/rtrack.h,
2347         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
2348           by checking the strings passed by emitcode() to the assembler.
2349           Feel free to change. This in part addresses RFE #482179.
2350           Set environment variable SDCC_RTRACK to enable.
2351         * src/mcs51/gen.c: inserted hooks
2352         * src/mcs51/ralloc.h: added two members to struct regs
2353         * support/regression/tests/regtrack.c: added
2354
2355 2007-02-14 Borut Razem <borut.razem AT siol.net>
2356
2357         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
2358         * Makefile.in: applied patch from Makefile related part of
2359           #1469393: Compiler does not initialize static data
2360
2361 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
2362
2363         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
2364           for better fix of bug 1273984, compiles pic16 rand.c
2365
2366 2007-02-12 Borut Razem <borut.razem AT siol.net>
2367
2368         * src/pic16/main.c: fixed pic16 standard library directory bug
2369
2370 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
2371
2372         * src/hc08/gen.c (genSwap): fix swap regression test
2373
2374 2007-02-10 Borut Razem <borut.razem AT siol.net>
2375
2376         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
2377           with same scope
2378         * support/regression/tests/bug-1654060.c: added regression test for
2379           #1654060
2380
2381 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
2382
2383         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
2384         bit moves in return statement
2385
2386 2007-02-09 Borut Razem <borut.razem AT siol.net>
2387
2388         * src/SDCC.y: fixed bug #1654060 typedef within function causes
2389           syntax error
2390
2391 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
2392
2393         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
2394         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
2395
2396 2007-02-07 Raphael Neider <rneider AT web.de>
2397
2398         * src/pic16/devices.inc,
2399         * device/include/pic16/pic18fregs.h,
2400         * device/include/pic16/pic18f[24][34]31.h,
2401         * device/lib/pic16/libdev/pic18f[24][34]31.c,
2402         * device/lib/pic16/pics.all: added 18f[24][34]31 family
2403         * device/lib/pic16/libio/i2c.ignore: do not build i2c
2404
2405 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
2406
2407         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
2408           can this have lived here for so many years?
2409         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
2410           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
2411         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
2412
2413 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
2414
2415         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
2416         appended by loop induction must be at the very end of the eBBlock
2417
2418 2007-02-05 Kevin Vigor
2419
2420         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
2421
2422 2007-02-05 Borut Razem <borut.razem AT siol.net>
2423
2424         * support/regression/fwk/lib/timeout.c: native WIN32 port,
2425           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
2426
2427 2007-02-03 Borut Razem <borut.razem AT siol.net>
2428
2429         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
2430           applied patch #1646602 option to set default signedness of char to
2431           unsigned, added -funsigned-char command line option,
2432           thanks to Gunther Jehle
2433         * device/lib/Makefile.in: added the -f option to rm so it doesn't
2434           prompt for file deletion a few hundred times (especially the
2435           subversion files, which have ro permissions so it asks for
2436           confirmation), thanks to Simon McAuliffe;
2437           added {} + option to find in order to remove multiple files from a
2438           single rm commad
2439
2440 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2441
2442         * device/include/mcs51/SST89x5xRDx.h: Added.
2443
2444 2007-02-02 Raphael Neider <rneider AT web.de>
2445
2446         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
2447         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
2448
2449 2007-02-01 Raphael Neider <rneider AT web.de>
2450
2451         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
2452           config words again
2453
2454 2007-01-31 Borut Razem <borut.razem AT siol.net>
2455
2456         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
2457           if compiled with GCC. Thanks to Raphael Neider
2458
2459 2007-01-31 Raphael Neider <rneider AT web.de>
2460
2461         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
2462             operand names, handles name and (name + n) for all n,
2463           (sameBank): restructured, also check bank allocation policy,
2464         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
2465           (pic14_operandsAllocatedInSameBank): check whether to operands
2466             will be allocated into the same bank (i.e., section) to reduce
2467             BANKSEL overhead, queried from pcode.c:sameBank,
2468           (pic14printLocals): reintroduced clustering registers into a single
2469             section: all compiler generated symbols will now reside in one
2470             bank (per file), reducing BANKSEL overhead and code size,
2471           (showAllMemmaps): use local dbuf where possible
2472
2473 2007-01-29 Raphael Neider <rneider AT web.de>
2474
2475         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
2476           (call_libraryfunc): retrieve/create symbol and mark as used,
2477           (genFunction): mark defined functions as non-extern and add again
2478            to code memmap for later output
2479         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
2480           (pic14printLocals): reworked for new symbol emission,
2481           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
2482           showAllMemmaps): reworked symbol output using dbufs, added handling
2483             of string literals (still incomplete),
2484           (picglue): removed symbol emission, moved into showAllMemmaps,
2485           (emitSymbolSet): new workhorse for symbol output,
2486           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
2487
2488 2007-01-29 Borut Razem <borut.razem AT siol.net>
2489
2490         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
2491           component contains the extension separator.
2492
2493 2007-01-28 Borut Razem <borut.razem AT siol.net>
2494
2495         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
2496           on WIN32
2497         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
2498           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
2499           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
2500           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
2501           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
2502           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
2503           src/z80/gen.c, support/Util/MySystem.c:
2504           accept slash and backslash as directory separator on WIN32 and
2505           Cygwin ports
2506
2507 2007-01-28 Raphael Neider <rneider AT web.de>
2508
2509         * src/pic16/devices.inc,
2510         * device/include/pic16/pic18f[24][23]21.h,
2511         * device/include/pic16/pic18fregs.h,
2512         * device/lib/pic16/libdev/pic18f[24][23]21.c,
2513         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
2514         * device/lib/pic16/libio/adc.ignore,
2515         * device/lib/pic16/libio/i2c.ignore,
2516         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
2517           family, as gputils do not yet support the devices
2518         * device/lib/pic16/Makefile.subdir: ignore errors on install
2519         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
2520           headers and libraries from gputils .inc files
2521
2522 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
2523
2524         * doc/sdccman.lyx: add printf_fast_f precision limitation note
2525
2526 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
2527
2528         * doc/sdccman.lyx: add printf benchmarks
2529
2530 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
2531
2532         * device/lib/printf_fast.c: fix %c, char promoted to int
2533         * device/lib/printf_tiny.c: fix %c, char promoted to int
2534
2535 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
2536
2537         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
2538
2539 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2540
2541         * support/regression/tests/swap.c: 64 bit hosts failed
2542         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
2543
2544 2007-01-25 Raphael Neider <rneider AT web.de>
2545
2546         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
2547           based on absolute register address, patch by Alex Blond
2548
2549 2007-01-22 Raphael Neider <rneider AT web.de>
2550
2551         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
2552           emitted, do not emit them again...
2553
2554 2007-01-22 Raphael Neider <rneider AT web.de>
2555
2556         * src/regression/bank1.c, src/regression/compare6.c,
2557           src/regression/add.c: cosmetic changes
2558         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
2559         * src/pic/gen.c: fixed global zero and one,
2560           (aopForSym): removed unued code,
2561           (aopGet): assert aop is defined, check and use `index' of
2562             pCodeImmd operands (fixes #1630908),
2563         * src/pic/pcode.c (get_op): added output of generic pointer tag,
2564           (register_reassign): prevent accidental register unification,
2565           (ReuseReg): cosmetic changes (also above)
2566         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
2567           pic14emitStaticSeg): do not emit initialized data,
2568           (printIval*): replaced with working versions,
2569           (pic14createInterruptVect,picglue): use idata for initialized data,
2570             now init data should work in all modules (not only main()),
2571         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
2572
2573 2007-01-21 Borut Razem <borut.razem AT siol.net>
2574
2575         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
2576           use -fPIC or -fpic if they are supported and not ignored
2577         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
2578         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
2579
2580 2007-01-20 Borut Razem <borut.razem AT siol.net>
2581
2582         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
2583           implemented RFE #1470316: allow "$" in variable names
2584
2585 2007-01-20 Raphael Neider <rneider AT web.de>
2586
2587         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
2588
2589 2007-01-20 Raphael Neider <rneider AT web.de>
2590
2591         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
2592         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
2593         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
2594         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
2595           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
2596         * device/lib/pic/libdev/pic*.c,
2597         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
2598         * device/lib/pic/libdev/Makefile.in: show progress
2599
2600 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
2601
2602         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
2603         * support/scripts/sdcc_cygwin_mingw32,
2604         * support/scripts/sdcc_mingw32,
2605         * support/scripts/build.mak: replaced --datadir by --datarootdir for
2606         conformance with autoconf 2.6
2607
2608 2007-01-19 Raphael Neider <rneider AT web.de>
2609
2610         * src/pic/device.c (register_map): fixed list construction
2611         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
2612           (genMod): removed case for genModbits,
2613           (genModbits): removed as now unused/unimplemented
2614         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
2615
2616 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2617
2618         * support/regression/tests/swap.c: added in response to #1638622
2619         * doc/sdccman.lyx: synced version, minor changes
2620
2621 2007-01-18 Borut Razem <borut.razem AT siol.net>
2622
2623         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
2624           thanks to Gunther Jehle
2625         * src/asm.c: don't die if the file drfined in #line couldn't be opened
2626         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
2627           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
2628           use filename in lineno instead.
2629         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
2630           print the file name in ast_print()
2631
2632 2007-01-18 Borut Razem <borut.razem AT siol.net>
2633
2634         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
2635           defined in MSVC
2636         * src/SDCC.lex: stringLiteral() returns const char pointer,
2637           EOF detection in stringLiteral(), fixed asmbuf memory leak,
2638           fixed column counting
2639         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
2640           accept const char pointer as parameter
2641         * src/SDCCdwarf2.c: corrected buffer size
2642
2643 2007-01-17 Borut Razem <borut.razem AT siol.net>
2644
2645         * support/Util/dbuf_string.c: fixed for amd64
2646
2647 2007-01-15 Borut Razem <borut.razem AT siol.net>
2648
2649         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
2650           removed terminal symbol ELIPSIS, since it was never generated by the
2651           lexer and it was wrongly used in parameter_identifier_list rule
2652
2653 2007-01-15 Raphael Neider <rneider AT web.de>
2654
2655         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
2656             code page and data banking description
2657         * src/pic/genarith.c,
2658         * src/pic/gen.h: removed bit arithmetic functions,
2659             updated exit(1) to exit(EXIT_FAILURE)
2660         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
2661         * device/include/pic16/pic18f2455.h,
2662         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
2663             TRISD and TRISE, fixed/added some bit names
2664         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
2665         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
2666             updated pic18f2455.{c,h} instead of duplicating them
2667
2668 2007-01-14 Borut Razem <borut.razem AT siol.net>
2669
2670         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
2671           Cannot debug files that contain spaces in the path name
2672           by converting spaces in asm file name to underscores
2673
2674 2007-01-13 Borut Razem <borut.razem AT siol.net>
2675
2676         * doc/sdccman.lyx: fixed format errors
2677
2678 2007-01-10 Borut Razem <borut.razem AT siol.net>
2679
2680         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
2681           codeseg/constseg #pragma fail
2682         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
2683         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
2684           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
2685           suppoprt/cpp2/sdcpp.[ch]: house cleaning
2686
2687 2007-01-09 Borut Razem <borut.razem AT siol.net>
2688
2689         * get rid of diagnistic.[ch], pretty-print.[ch],
2690           c-pretty-print.[ch], ... used just for error, warning, ...
2691           message formatting
2692         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
2693           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
2694           suppoprt/cpp2/pretty-print.[ch]:
2695           removed
2696         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
2697           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
2698           suppoprt/cpp2/sdcpp.dsp:
2699           changed
2700
2701 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
2702
2703         * device/lib/printf_large.c (output_float): removed recursion,
2704           use smaller buffer on stack for mcs51,
2705           fixed bug printing 1.96
2706         * support/regression/tests/snprintf.c: added test
2707
2708 2007-01-07 Borut Razem <borut.razem AT siol.net>
2709
2710         * use dynamic memory buffers instead temporary files
2711         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
2712           added
2713         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
2714           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
2715           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
2716           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
2717           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
2718           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
2719           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
2720           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
2721           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
2722           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
2723           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
2724           support/Util/dbuf.c, support/Util/dbuf.h:
2725           modified
2726         * .version, sdcc.spec: bumped version to 2.6.4
2727
2728 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
2729
2730         * src/port.h: added TARGET_Z80_LIKE macro
2731         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
2732           output PSEG location if --xram-loc or --xstack-loc was used
2733         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
2734
2735 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
2736
2737         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
2738         * as/as_z80.dsp,   as/z80/as_z80.dsp,
2739         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
2740         * sdcc.dsw: moved project files into subdir
2741         * as/hc08/as_hc08.dsp,
2742         * as/hc08/Makefile.bcc,
2743         * as/hc08/Makefile.in,
2744         * as/mcs51/Makefile.bcc,
2745         * as/mcs51/Makefile.in,
2746         * as/z80/Makefile.bcc,
2747         * as/z80/Makefile.in,
2748         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
2749         * as/hc08/asm.h,
2750         * as/mcs51/asm.h,
2751         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
2752         * as/hc08/asmain.c,
2753         * as/hc08/assym.c,
2754         * as/mcs51/asmain.c,
2755         * as/mcs51/assym.c,
2756         * as/z80/assym.c: removed include "strcmpi.h"
2757         * as/hc08/strcmpi.c,
2758         * as/hc08/strcmpi.h,
2759         * as/mcs51/strcmpi.c,
2760         * as/mcs51/strcmpi.h,
2761         * support/Util/strcmpi.c,
2762         * support/Util/strcmpi.h: removed files
2763         * as/strcmpi.c: added as_strncmpi()
2764
2765 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2766
2767         * sdcc.dsw: Added some dependencies on project config.dsp
2768
2769 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
2770
2771         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
2772           with [di]ram_start to fix a regresion
2773
2774 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
2775
2776         * configure.in: added missing mcs51 in status output
2777         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
2778         directory
2779         * debugger/mcs51/clean.mk (distclean): remove config.h
2780         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
2781         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
2782         options.h, s-options-h and options.c
2783         * support/cpp2/clean.mk: unused, removed
2784         * Makefile.common.in,
2785         * main_in.mk,
2786         * as/Makefile.in,
2787         * as/hc08/Makefile.in,
2788         * as/hc08/clean.mk,
2789         * as/mcs51/Makefile.in,
2790         * as/mcs51/clean.mk,
2791         * as/z80/clean.mk,
2792         * as/z80/conf.mk,
2793         * as/z80/Makefile.in,
2794         * as/z80/clean.mk,
2795         * as/link/Makefile.in,
2796         * as/link/hc08/Makefile.in,
2797         * as/link/hc08/clean.mk,
2798         * as/link/mcs51/Makefile.in,
2799         * as/link/mcs51/clean.mk,
2800         * as/link/z80/Makefile.in,
2801         * as/link/z80/clean.mk,
2802         * as/link/z80/conf.mk,
2803         * debugger/mcs51/Makefile.in,
2804         * debugger/mcs51/clean.mk,
2805         * device/include/Makefile.in,
2806         * device/lib/Makefile.in,
2807         * device/lib/mcs51/Makefile.in,
2808         * device/lib/pic/Makefile.in,
2809         * device/lib/pic/Makefile.common.in,
2810         * device/lib/pic/Makefile.subdir,
2811         * device/lib/pic/Makefile.rules,
2812         * device/lib/pic16/libio/Makefile.in,
2813         * device/lib/pic16/Makefile.subdir,
2814         * device/lib/pic16/libdev/Makefile.in,
2815         * device/lib/pic16/Makefile.rules,
2816         * device/lib/pic16/Makefile.common.in,
2817         * sim/ucsim/avr.src/Makefile.in,
2818         * sim/ucsim/main_in.mk,
2819         * sim/ucsim/cmd.src/Makefile.in,
2820         * sim/ucsim/doc/Makefile.in,
2821         * sim/ucsim/gui.src/Makefile.in,
2822         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
2823         * sim/ucsim/gui.src/serio.src/Makefile.in,
2824         * sim/ucsim/hc08.src/Makefile.in,
2825         * sim/ucsim/libltdl/Makefile.in,
2826         * sim/ucsim/s51.src/Makefile.in,
2827         * sim/ucsim/sim.src/Makefile.in,
2828         * sim/ucsim/sim.src/conf.mk,
2829         * sim/ucsim/xa.src/Makefile.in,
2830         * sim/ucsim/z80.src/Makefile.in,
2831         * src/Makefile.in,
2832         * src/clean.mk,
2833         * src/port.mk,
2834         * support/cpp2/Makefile.in,
2835         * support/librarian/Makefile.in,
2836         * support/librarian/clean.mk,
2837         * support/makebin/Makefile.in,
2838         * support/makebin/clean.mk,
2839         * support/packihx/Makefile.in,
2840         * support/regression/Makefile.in,
2841         * support/regression/ports/ds390/spec.mk,
2842         * support/regression/ports/gbz80/spec.mk,
2843         * support/regression/ports/hc08/spec.mk,
2844         * support/regression/ports/mcs51/spec.mk,
2845         * support/regression/ports/mcs51-large/spec.mk,
2846         * support/regression/ports/mcs51-medium/spec.mk,
2847         * support/regression/ports/mcs51-xstack-auto/spec.mk,
2848         * support/regression/ports/pic14/spec.mk,
2849         * support/regression/ports/pic16/spec.mk,
2850         * support/regression/ports/mcs51-stack-auto/spec.mk,
2851         * support/regression/ports/ucz80/spec.mk,
2852         * support/regression/ports/xa51/spec.mk,
2853         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
2854         adding a slash after $(top_builddir) and/or adding @datarootdir@
2855         * configure.in,
2856         * debugger/mcs51/configure.in,
2857         * device/lib/pic/configure.in,
2858         * device/lib/pic16/configure.in,
2859         * sim/ucsim/configure.in,
2860         * support/cpp2/configure.in,
2861         * support/packihx/configure.in: changed AC_PREREQ to 2.60
2862         * configure,
2863         * debugger/mcs51/configure,
2864         * device/lib/pic/configure,
2865         * device/lib/pic16/configure,
2866         * sim/ucsim/configure,
2867         * support/cpp2/configure,
2868         * support/packihx/configure: generated with autoconf 2.60
2869
2870 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
2871
2872         * as/link/hc08/lkihx.c (newArea),
2873         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
2874
2875 2007-01-02 Borut Razem <borut.razem AT siol.net>
2876
2877         * doc/sdccman.lyx: documented #pragma sdcc_hash
2878         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
2879           initialized to 0
2880         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
2881
2882 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
2883
2884         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
2885         empty 'while'-loop to work correctly, see regression test 'while.c'
2886         * support/regression/tests/while.c: added
2887
2888 2007-01-01 Borut Razem <borut.razem AT siol.net>
2889
2890         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
2891           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
2892           support/cpp2/libcpp/sdcpp.c:
2893           sdcpp specific pragma/directive/option handling moved to sdcpp.c
2894         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
2895         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
2896
2897 2006-12-31 Borut Razem <borut.razem AT siol.net>
2898
2899         * SDCPP synchronized with GCC CPP release version 4.1.1,
2900           currently the latest release:
2901         * support/cpp2/libcpp, support/cpp2/libcpp/include,
2902           support/cpp2/libcpp/include/cpp-id-data.h
2903           support/cpp2/libiberty/fopen_unlocked.c
2904           support/cpp2/libiberty/md5.c
2905           support/cpp2/md5.h
2906           support/cpp2/opt-functions.awk
2907           support/cpp2/opt-gather.awk
2908           support/cpp2/optc-gen.awk
2909           support/cpp2/opth-gen.awk:
2910           added
2911         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
2912           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2913           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
2914           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
2915           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
2916           support/cpp2/diagnostic.h, support/cpp2/except.h,
2917           support/cpp2/hwint.h, support/cpp2/input.h,
2918           support/cpp2/intl.h, support/cpp2/move-if-change,
2919           support/cpp2/opts.c, support/cpp2/opts.h,
2920           support/cpp2/output.h, support/cpp2/prefix.c,
2921           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
2922           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
2923           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
2924           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
2925           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
2926           support/cpp2/version.c:
2927           modified
2928         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
2929           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
2930           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
2931           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
2932           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
2933           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
2934           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
2935           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
2936           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
2937           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
2938           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
2939           moved
2940         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
2941           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
2942           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
2943           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
2944           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
2945           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
2946           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
2947           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
2948           support/cpp2/hashtable.h, support/cpp2/line-map.c,
2949           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
2950           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
2951           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
2952           support/cpp2/system.h:
2953           deleted / moved
2954
2955 2006-12-31 Borut Razem <borut.razem AT siol.net>
2956
2957         * configure.in, configure: fixed bug #1538756: configure dies if bison
2958           and flex are not installed, 2nd try
2959
2960 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
2961
2962         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
2963         400.x for better code in RFE 899102
2964
2965 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
2966
2967         * src/SDCCpeeph.c (deadMove),
2968         * src/port.h,
2969         * src/mcs51/peep.h: renamed 'op' by 'reg'
2970         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
2971         (scan4op): small change for removeDeadMove(), added support for
2972         'callee saves' and/or PACLL function calls,
2973         (removeDeadMove): added, removes superflous 'mov r%1,%2',
2974         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
2975         left in new dispatcher mcs51DeadMove()
2976         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
2977         removeDeadMove()
2978         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
2979
2980 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2981
2982         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
2983           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
2984
2985 2006-12-30 Borut Razem <borut.razem AT siol.net>
2986
2987         * support/cpp2/spacs.h: deleted from svn
2988         * configure.in, configure: fixed bug #1538756: configure dies if bison
2989           and flex are not installed
2990
2991 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
2992
2993         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
2994           with this z80 passes printf float test when enabled
2995         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
2996
2997 2006-12-28 Borut Razem <borut.razem AT siol.net>
2998
2999         * support/cpp2/config.in, support/cpp2/configure.in,
3000           support/cpp2/configure, support/cpp2/Makefile.in:
3001           fix for the solaris build
3002
3003 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3004
3005         * src/SDCC.y (type_specifier2, pointer),
3006         * src/SDCCsymt.h,
3007         * src/SDCCsymt.c (mergeSpec, checkSClass),
3008         * support/Util/SDCCerr.c,
3009         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
3010         * support/valdiag/valdiag.py: Allow test cases to specify
3011           required language standard
3012         * support/valdiag/tests/restrict.c: New file to test restrict keyword
3013         * support/valdiag/tests/tentdecl.c: Supress empty source file error
3014
3015 2006-12-27 Borut Razem <borut.razem AT siol.net>
3016
3017         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
3018         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
3019           mbchar removed
3020         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
3021           fixed for borland C
3022         * support/cpp2/libiberty/Makefile.bcc: updated
3023         * src/pic16/main.c: fixed #pragma udata handling
3024         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
3025
3026 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
3027
3028         * src/SDCCpeeph.c: made labelHashEntry global,
3029         made pcDistance, FBYNAME static,
3030         (pcDistance): made static, use isComment and isLabel,
3031         (deadMove): added,
3032         (getLabelRef): added, extracted from labelRefCount(),
3033         (labelRefCount): use new getLabelRef(),
3034         (callFuncByName): made static, added deadMove,
3035         use isComment and isLabel,
3036         (newPeepRule): made static, set isLabel,
3037         (isLabelDefinition): added parameter isPeepRule to allow '%' in
3038         labels from peephole rules,
3039         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
3040         when isComment or isLabel is set
3041         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
3042         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
3043         to make them global
3044         * src/mcs51/peep.h: added
3045         * src/mcs51/peep.c: added, implements mcs51DeadMove()
3046         * src/port.h: added peep->deadMove to port structure
3047         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
3048         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
3049         deadMove, finally removed no. 1 and 2
3050         * src/mcs51/gen.c,
3051         * src/pic/gen.c,
3052         * src/z80/gen.c,
3053         * src/z80/ralloc.c,
3054         * src/pic16/gen.c,
3055         * src/ds390/gen.c,
3056         * src/hc08/gen.c: mark lines with isComment or isLabel
3057         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
3058         * .version,
3059         * sdcc.spec: bumped version to 2.6.3
3060
3061 2006-12-26 Borut Razem <borut.razem AT siol.net>
3062
3063         * support/cpp2/Makefile.in: added dependency on options.h
3064         * configure: regenerated
3065         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
3066         * support/cpp2/Makefile.in: added vasprintf.c
3067
3068 2006-12-25 Borut Razem <borut.razem AT siol.net>
3069
3070         * SDCPP synchronized with GCC CPP release version 3.4.6,
3071           the latest release before 4.x:
3072         * support/cpp2/Makefile.in, support/cpp2/config.h,
3073           support/cpp2/configure, support/cpp2/configure.in,
3074           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
3075           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
3076           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
3077           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
3078           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
3079           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
3080           support/cpp2/cpptrad.c, support/cpp2/except.h,
3081           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
3082           support/cpp2/hwint.h, support/cpp2/intl.h,
3083           support/cpp2/line-map.c, support/cpp2/line-map.h,
3084           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
3085           support/cpp2/output.h, support/cpp2/prefix.c,
3086           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
3087           support/cpp2/system.h, support/cpp2/version.c:
3088           modified
3089         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
3090           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
3091           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
3092           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
3093           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
3094           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
3095           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
3096           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
3097           support/cpp2/move-if-change, support/cpp2/opts.c,
3098           support/cpp2/opts.h, support/cpp2/opts.sh,
3099           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
3100           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
3101           support/cpp2/win32, support/cpp2/win32/dirent.c,
3102           support/cpp2/win32/dirent.h:
3103           added
3104         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
3105         * support/cpp2/sdcpp.h: renamed from sdcc.h
3106         * sdcppinit.c: deleted
3107
3108 2006-12-23 Borut Razem <borut.razem AT siol.net>
3109
3110         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
3111           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
3112           preproc.c: an other try to fix bug #982435: introduced
3113           -pedantic-parse-number command line option and pedantic_parse_number
3114           pragma
3115
3116 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
3117
3118         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
3119            BSEG handling,
3120           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
3121            corrected overlayed areax addresses, warn about memory overlaps
3122         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
3123         * src/avr/main.c,
3124         * src/ds390/main.c,
3125         * src/hc08/main.c,
3126         * src/mcs51/main.c,
3127         * src/pic16/main.c,
3128         * src/pic/main.c,
3129         * src/xa51/main.c,
3130         * src/z80/main.c,
3131         * src/port.h: added xabs_name and iabs_name
3132         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
3133           (glue, emitMaps): create and emit maps d_abs and i_abs
3134         * src/SDCCglue.h: cosmetic changes
3135         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
3136         * src/SDCCmem.h,
3137         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
3138           (allocDefault): put absolute, initialized globals in them
3139         * support/regression/tests/absolute.c: added absolute bdata test
3140         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
3141
3142 2006-12-20 Borut Razem <borut.razem AT siol.net>
3143
3144         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
3145         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
3146           added regression test for bug #982435
3147
3148 2006-12-18 Borut Razem <borut.razem AT siol.net>
3149
3150         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
3151         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
3152           small cosmetic changes
3153         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
3154         * support/regression/tests/bug-1351710.c: added regression test
3155
3156 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3157
3158         * doc/sdccman.lyx: added the long missed iCode table
3159           "<where is figure II?>", added links to wiki
3160
3161 2006-12-17 Borut Razem <borut.razem AT siol.net>
3162
3163         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
3164           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
3165           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
3166           unified table driven pragma handling, pragma argument type checking
3167         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
3168           current one - version 1.1.3
3169         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
3170
3171 2006-12-13 Raphael Neider <rneider AT web.de>
3172
3173         * src/pic/device.h: removed AssignedMemory structure and macros
3174         * src/pic/device.c: removed global finalMapping (linker assigns
3175             memory locations),
3176           (register_map): add SFRs to remembered memRanges
3177           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
3178           assignFixedRegisters,assignRelocatableRegisters): removed,
3179           (setMaxRAM,validAddress): adapted accordingly,
3180           (pic14_hasSharebank,pic14_getSharedStack): only report and use
3181             reasonably sized sharebanks,
3182         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
3183           (allDefsOutOfRange): removed unused code,
3184         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
3185             handling
3186         * src/pic/pcode.c (register_reassign): removed recursion warning,
3187             fired far too often,
3188         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
3189             to use existing pic14_stringInSet() to avoid duplicate symbols,
3190             tidied up the code a bit,
3191           (pic14printLocals): added in symmetry to printExterns, replaces
3192             writeUsedRegs more or less,
3193           (picglue): call new pic14_printLocals(),
3194         * device/include/pic/pic*.h: removed #pragma memmap directives,
3195             information gathered from include/pic/pic14devices.txt
3196         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
3197
3198 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
3199
3200         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
3201
3202 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3203
3204         * device/include/mcs51/cc2430.h: fixed missing ';'
3205
3206 2006-12-10 Raphael Neider <rneider AT web.de>
3207
3208         * device/lib/pic16/libc/stdio/vfprintf.c,
3209         * device/lib/pic16/libc/stdio/printf_small.c,
3210         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
3211           char arguments, as char varargs are cast to int by the caller,
3212           hopefully fixes #1604915 (other device libraries are still affected)
3213
3214 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3215
3216         * src/mcs51/ralloc.c (packRegsForAssign),
3217         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
3218
3219 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
3220
3221         * device/include/malloc.h: removed init_dynamic_memory
3222         * device/lib/malloc.c: made init_dynamic_memory static and automatically
3223           call it once from malloc. Also use _sdcc_heap[] from _heap.c
3224         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
3225         * device/lib/libsdcc.lib,
3226         * device/lib/Makefile.in,
3227         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
3228         * doc/sdccman.lyx: documented use of new _heap.c
3229         * support/regression/tests/malloc.c: removed init_dynamic_memory
3230         * src/cdbFile.c(spacesToUnderscores): new function,
3231           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
3232           1068030
3233         * device/include/tinibios.h: removed defines for putchar and getchar
3234         * device/lib/ds390/Makefile.in: added putchar.c
3235         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
3236
3237 2006-12-09 Borut Razem <borut.razem AT siol.net>
3238
3239         * support/cpp2/sdcc.h: prevent multiple inclusion
3240         * support/cpp2/options.h: deleted
3241
3242 2006-12-08 Borut Razem <borut.razem AT siol.net>
3243
3244         * support/cpp2/sdcc.h: removed x*alloc() macros
3245         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
3246         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
3247           support/cpp2/sdcpp.sdc: x*alloc files added to the project
3248         * support/cpp2/system.h: moved #include "sdcc.h"
3249         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
3250           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
3251           added
3252         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
3253           -funsigned-char options
3254         * support/cpp2/sdcppmain.c: fixed bug 1611411
3255
3256 2006-12-07 Borut Razem <borut.razem AT siol.net>
3257
3258         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
3259           directive
3260
3261 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
3262
3263         * src/SDCCsymt.c (addDecl): fixed bug 1609244
3264         * src/SDCCmain.c (linkEdit): fixed bug 1609279
3265         * doc/sdccman.lyx,
3266         * .version: bumped to 2.6.2 because a) it's been a while
3267           b) the linker sources have moved c) the preprocessor is upgraded
3268
3269 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3270
3271         * support/regression/tests/snprintf.c: some checks
3272         * lib/src/printf_large.c: %bc: read char instead of int from stack
3273
3274 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
3275
3276         * device/include/mcs51/cc2430.h: inserted _XPAGE
3277
3278 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3279
3280         * device/include/mcs51/cc2430.h: added
3281
3282 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
3283
3284         * device/include/asm/default/features.h,
3285         * device/include/asm/ds390/features.h,
3286         * device/include/mcs51/at89s53.h,
3287         * device/include/ser.h,
3288         * device/include/ser_ir.h,
3289         * device/include/serial.h: changed keywords to double underscore variants,
3290           fixes bug 1590261 some more, thanks Steven Borley
3291
3292 2006-12-01 Raphael Neider <rneider AT web.de>
3293
3294         * src/pic/pcode.c (register_reassign): do not crash on recursive code
3295           but emit warning (recursion is not supported for pic14)
3296
3297 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3298
3299         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
3300         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
3301
3302 2006-11-30 Raphael Neider <rneider AT web.de>
3303
3304         * src/pic/device.c (dump_sfr): always emit symbols
3305         * src/pic/glue.c (pic14printPublics): fixed typo
3306
3307 2006-11-30 Raphael Neider <rneider AT web.de>
3308
3309         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
3310           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
3311           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
3312            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
3313            a sharebank, use a non-shared bank for the stack if none available
3314         * src/pic/device.h (struct memRange): added linked list next field,
3315           added prototypes for above functions
3316         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
3317           (typeRegWithIdx): accept fixed and unfixed stack registers
3318         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
3319           the stack, handle shared and banked stack (except for WSAVE),
3320           (insertBankSel): removed useless optimization (will never fire),
3321           (FixRegisterBanking): added optimization for devices with only one
3322           possibly aliased bank of memory, like 16f84
3323         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
3324           devices have no SHAREBANK in the linker script
3325         * device/include/pic/pic14devices.txt: documented memmap
3326         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
3327
3328 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3329
3330         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
3331           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
3332           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
3333           genhc08Code): switched most of the D (debug) macros to DD (detailed
3334           debug) macros to better control clutter in the generated .asm file.
3335         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
3336           genRightShift): fixed bug with non-constant bit shift stored to
3337           a volatile result (SF Open Discussion forum thread #1616749).
3338           Single byte case is not yet optimized.
3339
3340 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
3341
3342         * device/include/asm/mcs51/features.h,
3343         * device/include/malloc.h,
3344         * device/include/stdio.h: changed keywords to double underscore variants,
3345           fixes bug 1590261
3346
3347 2006-11-27 Borut Razem <borut.razem AT siol.net>
3348
3349         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
3350           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
3351           support/cpp2/output.h, support/cpp2/cppinit.c,
3352           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
3353           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
3354           support/cpp2/cppdefault.c, support/cpp2/system.h,
3355           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
3356           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
3357           support/cpp2/prefix.c, support/cpp2/except.h,
3358           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
3359           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
3360           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
3361           support/cpp2/version.c, support/cpp2/cppmain.c,
3362           support/cpp2/version.h, support/cpp2/hashtable.c,
3363           support/cpp2/cpperror.c:
3364           synchronized with GCC CPP release version 3.3.6,
3365           the latest where cppmain.c still exists.
3366         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
3367           support/cpp2/sdcppinit.c: added
3368
3369 2006-11-27 Borut Razem <borut.razem AT siol.net>
3370
3371         * support/cpp2/cpplex.c:
3372           fixed _asm ... _endasm handling bug, introduce with GCC CPP
3373           synchronization
3374         * support/cpp2/cpplib.c: removed definitions of unused variables
3375
3376 2006-11-26 Borut Razem <borut.razem AT siol.net>
3377
3378         * support/cpp2/libiberty.h: commented out x*alloc() declarations
3379           since they are redefined by macros in support/cpp2/sdcc.h
3380         * support/cpp2/sdcc.h: x*alloc macro redefinition
3381
3382 2006-11-25 Borut Razem <borut.razem AT siol.net>
3383
3384         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
3385           support/cpp2/configure, support/cpp2/Makefile.in,
3386           support/cpp2/cppfiles.c, support/cpp2/output.h,
3387           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
3388           support/cpp2/config.h, support/cpp2/cpplib.h,
3389           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
3390           support/cpp2/cppdefault.c, support/cpp2/config.in,
3391           support/cpp2/system.h, support/cpp2/cpplex.c,
3392           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
3393           support/cpp2/cppdefault.h, support/cpp2/prefix.c
3394           support/cpp2/hwint.h, support/cpp2/mbchar.h,
3395           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
3396           support/cpp2/configure.in, support/cpp2/intl.h,
3397           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
3398           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
3399           support/cpp2/version.c, support/cpp2/cppmain.c,
3400           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
3401           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
3402           support/cpp2/cpperror.c,
3403           support/cpp2/libiberty/safe-ctype.c,
3404           support/cpp2/libiberty/safe-ctype.h,
3405           support/cpp2/libiberty/splay-tree.c,
3406           support/cpp2/libiberty/obstack.c,
3407           support/cpp2/libiberty/lbasename.c,
3408           support/cpp2/libiberty/splay-tree.h,
3409           support/cpp2/libiberty/obstack.h:
3410           synchronized with GCC CPP release version 3.2.3,
3411           the latest before integration of cpp into gcc
3412         * support/cpp2/except.h, support/cpp2/line-map.c,
3413           support/cpp2/line-map.h,
3414           support/cpp2/libiberty/hex.c,
3415           support/cpp2/libiberty/concat.c,
3416           support/cpp2/libiberty/filenames.h: added
3417         * support/cpp2/intl.c: deleted
3418
3419 2006-11-24 Borut Razem <borut.razem AT siol.net>
3420
3421         * src/SDCC.y: enabled compilation of empty source file
3422         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
3423           "ISO C forbids an empty source file"
3424         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
3425           if all the code is ifdefed out.
3426
3427 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3428
3429         * src/hc08/gen.c (genPcall): fix for bug #1601032
3430
3431 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
3432
3433         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
3434         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
3435         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
3436         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
3437         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
3438         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
3439         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
3440         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
3441         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
3442         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
3443         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
3444         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
3445         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
3446         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
3447         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
3448           Renamed to all upper case as per the standard set by SiLabs
3449
3450 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
3451
3452         * device/include/mcs51/C8051F520.h: new, added
3453         * device/include/mcs51/compiler.h: added link about predefined macros
3454
3455 2006-11-23 Raphael Neider <rneider AT web.de>
3456
3457         * src/regression/Makefile: add -L path to fresh library
3458         * src/regression/simulate: emphasize FAILED output
3459         * src/regression/create_stc: output _failures from gpsim
3460         * src/regression/compare4.c,
3461         * src/regression/rotate6.c: fixed char literals,
3462           all compile, all run =8-D
3463
3464         * src/pic/pcode.h: added isPCASMDIR macro
3465         * src/pic/gen.c (genAnd): fixed bit offset
3466         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
3467           packBits): unified register numbering schemes,
3468           (newReg): do not insert stack registers into hash table,
3469           (initStack): unpinned pseudo stack, simplified,
3470           (typeRegWithIdx): fixed retrieval of stack registers,
3471         * src/pic/pcode.c (addpCodeComment,sameBank): added,
3472           (pCodeReplace): removed invalid assertion,
3473           (insertPCodeInstruction): fixed newly added labels,
3474           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
3475           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
3476           DumpFlow): removed unsed (broken?) code,
3477           (insertBankSel): prevent STATUS from being BANKSELed,
3478           (FixRegisterBanking): rewritten from scratch, implemented generic
3479             optimizations (suppress BANKSELs to same register and to registers
3480             present in all banks),
3481           (AnalyzeBanking): update flow after BANKSELection
3482
3483         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
3484             sharebank, let linker place it, mark STKxx symbols as emitted
3485
3486 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3487
3488         * src/regression/arrays.c,
3489         * src/regression/bank1.c,
3490         * src/regression/bool2.c,
3491         * src/regression/compare7.c,
3492         * src/regression/compare8.c,
3493         * src/regression/compare9.c,
3494         * src/regression/compare10.c,
3495         * src/regression/configword.c,
3496         * src/regression/for.c,
3497         * src/regression/mult1.c,
3498         * src/regression/pointer1.c,
3499         * src/regression/rotate6.c,
3500         * src/regression/string1.c,
3501         * src/regression/struct1.c,
3502         * src/regression/Makefile: make PIC14 regression tests run again
3503           (3 fail, 6 won't compile)
3504
3505 2006-11-21 Raphael Neider <rneider AT web.de>
3506
3507         * device/include/pic16/pic18f4550.h,
3508         * device/include/pic16/pic18f4455.h,
3509         * device/lib/pic16/libdev/pic18f4550.c,
3510         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
3511         * configure.in: removed superfluous closing bracket
3512
3513 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3514
3515         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
3516           always positive.
3517
3518 2006-11-21 Raphael Neider <rneider AT web.de>
3519
3520         * src/pic/device.{c,h}: added pic14_getPIC()
3521         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
3522           (genAnd): added PIC code for one case, fixes #1597044
3523         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
3524           SFRs that are present in all banks (e.g., STATUS)
3525
3526 2006-11-20 Raphael Neider <rneider AT web.de>
3527
3528         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
3529           INCFSZ/INCFSZW and declared them as changing Z bit,
3530           (insertPCodeInstruction): correctly invert the above instructions,
3531           fixes #1599333,
3532           (DoBankSelect): don't panic on po_immediates
3533
3534 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
3535
3536         * as/link/aslink.h,
3537         * as/link/mcs51/lkihx.c (newArea),
3538         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
3539         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
3540
3541 2006-11-11 Raphael Neider <rneider AT web.de>
3542
3543         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
3544           bitfield symbols, fixes #1579535 (once more...).
3545
3546 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3547
3548         * support/regression/generate-cases.py,
3549         * support/regression/fwk/include/testfwk.h,
3550         * support/regression/fwk/lib/testfwk.c: used code pointers,
3551           (about 50kByte less code generated for mcs51)
3552
3553 2006-11-06 Borut Razem <borut.razem AT siol.net>
3554
3555         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3556           debugger/mcs51/configure: fixed failed check because the function
3557           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
3558           who submitted the patch for gpsim.
3559         * debugger/mcs51/configure.in: removed the result message
3560         * debugger/mcs51/Makefile.in: fixed the config.status warning
3561           "... seems to ignore the --datarootdir setting"
3562
3563 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
3564
3565         * device/include/mcs51/c8051f020.h,
3566         * device/include/mcs51/c8051f040.h,
3567         * device/include/mcs51/c8051f060.h,
3568         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
3569         * src/z80/gen.c (gencjneshort),
3570         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
3571
3572 2006-10-31 Borut Razem <borut.razem AT siol.net>
3573
3574         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3575           debugger/mcs51/configure: get readline version
3576
3577 2006-10-30 Borut Razem <borut.razem AT siol.net>
3578
3579         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
3580         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3581           debugger/mcs51/configure: locate readline even when cross compiling
3582         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
3583
3584 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3585
3586         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
3587           serial port.
3588
3589 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
3590
3591         * device/include/malloc.h,
3592         * device/lib/calloc.c,
3593         * device/lib/free.c,
3594         * device/lib/malloc.c,
3595         * device/lib/realloc.c: moved definition of struct into sources
3596         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
3597
3598 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
3599
3600         * as/asx8051.dsp: corrected output directories
3601         * as/link/hc08: new directory for hc08 linker
3602         * as/hc08/aslink.h,             as/link/aslink.h,
3603         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
3604         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
3605         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
3606         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
3607         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
3608         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
3609         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
3610         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
3611         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
3612         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
3613         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
3614         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
3615         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
3616         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
3617         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
3618         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
3619         * as/link/hc08/conf.mk,
3620         * configure,
3621         * configure.in,
3622         * Makefile.in,
3623         * sdcc.dsw: moved hc08 linker to as/link/hc08
3624         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
3625         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
3626         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
3627         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
3628         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
3629         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
3630         * as/link/mcs51/aslink.dsp,
3631         * as/link/mcs51/Makefile.in: factored out the common files
3632         * as/hc08/lkstore.c: deleted, use the one already in as/link/
3633         * as/clean.mk: extra cleaning common files
3634         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
3635         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
3636         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
3637
3638 2006-10-29 Raphael Neider <rneider AT web.de>
3639
3640         * src/pic/ralloc.c (newReg): create aliases for registers with
3641           multiple names to fix #1579535 and #1584001,
3642           (regWithIdx,dirregWithName): resolve aliases on lookup
3643         * src/pic/pcode.c (DoBankSelect): die with error message on failing
3644           bankselect
3645         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
3646           to prevent build errors on small devices
3647
3648 2006-10-28 Raphael Neider <rneider AT web.de>
3649
3650         * src/pic/gen.c (genFunction,genCall): drop "same code page"
3651           assumption within interrupt handlers, fixes #1584940
3652         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
3653           "emitted" to avoid emitting them again in udata
3654
3655 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3656
3657         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
3658         Removed.
3659
3660 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3661
3662         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
3663         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
3664         on/off CR to CRLF conversion.
3665
3666 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3667
3668         * doc/sdccman.lyx: updated IRQ section
3669
3670 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3671
3672         * device/lib/serial_io.c: removed
3673         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
3674         replacements for serial_io.c
3675
3676 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
3677
3678         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
3679
3680 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3681
3682         * device/lib/serial_io.c: Default putchar() and getchar() for
3683           mcs51 uses serial port.
3684
3685 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
3686
3687         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
3688
3689 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3690
3691         * support/regression/ports/mcs51/support.c: smaller
3692         _sdcc_external_startup()
3693         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
3694
3695 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
3696
3697         * device/lib/gbz80/crt0.s,
3698         * device/lib/gbz80/crt0_rle.s,
3699         * device/lib/gbz80/div.s,
3700         * device/lib/gbz80/fstubs.s,
3701         * device/lib/gbz80/heap.s,
3702         * device/lib/gbz80/mul.s,
3703         * device/lib/gbz80/putchar.s,
3704         * device/lib/gbz80/stubs.s,
3705         * device/lib/z80/crt0.s,
3706         * device/lib/z80/crt0_rle.s,
3707         * device/lib/z80/div.s,
3708         * device/lib/z80/fstubs.s,
3709         * device/lib/z80/heap.s,
3710         * device/lib/z80/mul.s,
3711         * device/lib/z80/putchar.s,
3712         * device/lib/z80/stubs.s: reverted, I was mistaken
3713
3714 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3715
3716         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
3717         * support/regression/ports/mcs51/support.c: removed race
3718         condition on TI in _putchar allowing to use serial port mode 0
3719
3720 2006-10-20 Borut Razem <borut.razem AT siol.net>
3721
3722         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
3723
3724 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
3725
3726         * device/lib/gbz80/crt0.s,
3727         * device/lib/gbz80/crt0_rle.s,
3728         * device/lib/gbz80/div.s,
3729         * device/lib/gbz80/fstubs.s,
3730         * device/lib/gbz80/heap.s,
3731         * device/lib/gbz80/mul.s,
3732         * device/lib/gbz80/putchar.s,
3733         * device/lib/gbz80/stubs.s,
3734         * device/lib/z80/crt0.s,
3735         * device/lib/z80/crt0_rle.s,
3736         * device/lib/z80/div.s,
3737         * device/lib/z80/fstubs.s,
3738         * device/lib/z80/heap.s,
3739         * device/lib/z80/mul.s,
3740         * device/lib/z80/putchar.s,
3741         * device/lib/z80/stubs.s: removed all leading underscores from area names
3742
3743 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
3744
3745         * support/regression/ports/mcs51/support.c: use highest baudrate so the
3746           regression tests are not waiting in the simulator for simulated
3747           transmission of debug output
3748
3749 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3750
3751         * device/lib/printf_large.c: slightly smaller
3752         * doc/sdccman.lyx: do not use spaces within html links
3753
3754 2006-10-16 Borut Razem <borut.razem AT siol.net>
3755
3756         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
3757           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
3758           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
3759           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
3760           debugger/mcs51/configure:
3761           [ 1185668 ] add gnu readline support to sdcdb - enabled
3762
3763 2006-10-16 Raphael Neider <rneider AT web.de>
3764
3765         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
3766           fixes #1577882, removes close to all banking optimizations
3767
3768 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
3769
3770         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
3771           variables in code memory
3772         * support/regression/tests/absolute.c: added test for this
3773
3774 2006-10-15 Raphael Neider <rneider AT web.de>
3775
3776         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
3777           devices,
3778           (BankSelect): emit BANKSEL before touching linker-placed regs,
3779           fixes #1570934
3780
3781 2006-10-10 Raphael Neider <rneider AT web.de>
3782
3783         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
3784         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
3785         * src/pic/main.c (_pic14_parseOptions),
3786         * src/pic/main.h: mostly reverted to previous state, now use results
3787             from SDCCmain.c's argument parsing
3788
3789 2006-10-10 Borut Razem <borut.razem AT siol.net>
3790
3791         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
3792           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
3793           [ 1185668 ] add gnu readline support to sdcdb -
3794           prepared for READLINE, not enabled yet,
3795           thanks to <tal.bav AT gmail.com>
3796
3797 2006-10-10 Raphael Neider <rneider AT web.de>
3798
3799         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
3800         * src/pic16/devices.inc,
3801         * device/include/pic16 (pic18f[24]620.h),
3802         * device/include/pic18fregs.h,
3803         * device/lib/pic16/pics.all,
3804         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
3805             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
3806             Gary Plumbridge and Anton Strobl
3807
3808 2006-10-10 Raphael Neider <rneider AT web.de>
3809
3810         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
3811           --stack-siz=NUM options to configure the argument passing stack
3812         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
3813         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
3814           (pic14_getSharebankSize): obey --stack-siz=NUM,
3815           (pic14_getSharebankAddress): obey --stack-loc=NUM
3816
3817 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3818
3819         * doc/sdccman.lyx: added to the manual
3820         * doc/figures/ddd_example.png: added (neither pdflatex nor
3821         most browsers seem to like the .eps file)
3822
3823 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
3824
3825         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
3826         to /tmp and /var/tmp acc. LSB
3827         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
3828         RESULT_TYPE_IFX
3829         * support/regression/tests/onebyte.c: added test
3830
3831 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3832
3833         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
3834
3835 2006-10-05 Borut Razem <borut.razem AT siol.net>
3836
3837         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
3838           thanks to dfulab:
3839           - sdcc.dsw: changed property eol-style to CRLF
3840           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
3841
3842 2006-10-04 Raphael Neider <rneider AT web.de>
3843
3844         * device/include/pic/{pic16f84.h,pic16f84a.h},
3845         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
3846           from patch #1522504, thanks to Robas Teodor
3847
3848 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
3849
3850         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
3851           fixes bug 1566015
3852
3853 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
3854
3855         * src/pic16/glue.c (pic16emitMaps),
3856         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
3857         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
3858         * device/lib/pic16/libc/string/memcpypgm2ram.c,
3859         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
3860           Philipp Krause
3861         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
3862         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
3863
3864 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3865
3866         * support/librarian/sdcclib.c: Added option -l.
3867         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
3868           usage totals.
3869         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
3870           using Windows command prompt.
3871
3872 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
3873
3874         * device/lib/libsdcc.lib: added module rand
3875         * src/ds390/ralloc.c (rematStr),
3876         * src/hc08/ralloc.c (rematStr),
3877         * src/mcs51/ralloc.c (rematStr),
3878         * src/z80/ralloc.c (rematStr): made output more consistent
3879         * src/mcs51/gen.c: cosmetic changes
3880
3881 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
3882
3883         * src/port.h: added mem.cabs_name to PORT
3884         * src/ds390/main.c,
3885         * src/hc08/main.c,
3886         * src/mcs51/main.c,
3887         * src/pic16/main.c,
3888         * src/pic/main.c,
3889         * src/xa51/main.c,
3890         * src/z80/main.c: added cabs_name initializers
3891         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
3892           constants
3893           (emitMaps): emit absolutes in code memory into cabs_name
3894         * src/SDCCmem.c,
3895         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
3896         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
3897         * support/regression/fwk/include/testfwk.h: added define for at
3898         * support/regression/tests/absolute.c: added, new
3899
3900 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
3901
3902         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
3903           optimizations, see also patch 887161 by Stas Sergeev
3904         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
3905           to be necessary anymore,
3906           (102, 103, 104, 127): renamed all occurances of bp to _bp
3907
3908 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
3909
3910         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
3911           thanks Weston T. Schmidt for patch 1555221
3912         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
3913         * src/SDCCicode.c(geniCodeMultiply): small optimization
3914
3915 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
3916
3917         * device/include/stdlib.h: added rand prototypes
3918         * device/lib/rand.c: new, added
3919         * device/lib/Makefile.in: added rand.c
3920         * src/z80/peeph.def,
3921         * src/z80/peeph-gbz80.def,
3922         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
3923
3924 2006-09-20 Raphael Neider <rneider AT web.de>
3925
3926         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
3927
3928 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
3929
3930         * as/link/aslink.h: cosmetic changes
3931         * as/link/mcs51/Makefile.in,
3932         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
3933
3934 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
3935
3936         * as/link/aslink.h,
3937         * as/link/mcs51/aslink.h,
3938         * as/link/z80/aslink.h: merged and moved to as/link/
3939         * as/link/lkstore.c,
3940         * as/link/mcs51/lkstore.c: moved to as/link/
3941         * as/link/clean.mk: remove *.o
3942         * as/link/mcs51/alloc.h: deleted
3943         * as/link/mcs51/lkarea.c: added lnksect prototype
3944         * as/link/mcs51/lkdata.c,
3945         * as/link/mcs51/lklex.c,
3946         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
3947         * as/link/mcs51/lkmem.c,
3948         * as/link/mcs51/lknoice.c: removed include strcmpi.h
3949         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
3950         * as/link/mcs51/aslink.dsp,
3951         * as/link/mcs51/Makefile.aslink,
3952         * as/link/mcs51/Makefile.bcc,
3953         * as/link/mcs51/Makefile.in: updated for moved files
3954         * as/link/z80/lkarea.c,
3955         * as/link/z80/lkhead.c,
3956         * as/link/z80/lklex.c,
3957         * as/link/z80/lklibr.c,
3958         * as/link/z80/lklist.c,
3959         * as/link/z80/lkmain.c,
3960         * as/link/z80/lkrloc.c,
3961         * as/link/z80/lksym.c: synced with mcs51
3962         * as/link/z80/lkdata.c,
3963         * as/link/z80/lkeval.c,
3964         * as/link/z80/lkihx.c,
3965         * as/link/z80/lks19.c: cosmetic changes
3966         * as/link/z80/Makefile.in,
3967         * as/link/z80/linkgbz80.dsp,
3968         * as/link/z80/linkz80.dsp: updated for moved files
3969
3970 2006-09-16 Borut Razem <borut.razem AT siol.net>
3971
3972         * debugger/mcs51/sdcdb.c: partially fixed
3973           [ 1203664 ] sdcdb fails to open files w. two "." periods
3974         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
3975           debugger/mcs51/symtab.h: fixed indenting
3976         * configure.in, configure: up to date with latest Maarten's changes
3977
3978 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
3979
3980         as/link/mcs51
3981         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
3982         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
3983         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
3984         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
3985         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
3986         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
3987         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
3988         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
3989         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
3990         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
3991         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
3992         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
3993         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
3994         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
3995         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
3996         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
3997         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
3998         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
3999         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
4000         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
4001         as/link/mcs51/alloc.h,
4002         as/link/mcs51/clean.mk,
4003         as/link/mcs51/conf.mk,
4004         as/link/mcs51/Makefile.bcc,
4005         as/link/mcs51/Makefile.in,
4006         as/link/mcs51/readme.390,
4007         as/link/mcs51/strcmpi.c,
4008         as/link/mcs51/strcmpi.h,
4009         as/mcs51/clean.mk,
4010         as/mcs51/Makefile.bcc,
4011         as/mcs51/Makefile.in,
4012         configure,
4013         Makefile.in,
4014         sdcc.dsw: moved mcs51 linker to as/link/mcs51
4015
4016 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
4017
4018         * as/link,
4019         * as/link/Makefile.in,
4020         * as/link/z80/linkgbz80.dsp,
4021         * as/link/z80/linkz80.dsp,
4022         * configure,
4023         * link,
4024         * link/clean.mk,
4025         * link/Makefile.in,
4026         * link/README,
4027         * link/z80,
4028         * link/z80/aslink.h,
4029         * link/z80/clean.mk,
4030         * link/z80/conf.mk,
4031         * link/z80/linkgbz80.dsp,
4032         * link/z80/linkz80.dsp,
4033         * link/z80/lkarea.c,
4034         * link/z80/lkdata.c,
4035         * link/z80/lkeval.c,
4036         * link/z80/lkgb.c,
4037         * link/z80/lkgg.c,
4038         * link/z80/lkhead.c,
4039         * link/z80/lkihx.c,
4040         * link/z80/lklex.c,
4041         * link/z80/lklibr.c,
4042         * link/z80/lklist.c,
4043         * link/z80/lkmain.c,
4044         * link/z80/lkrloc.c,
4045         * link/z80/lks19.c,
4046         * link/z80/lksym.c,
4047         * link/z80/Makefile.in,
4048         * Makefile.in,
4049         * sdcc.dsw: moved link/ to as/link/
4050
4051 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
4052
4053         * as/mcs51/i51mch.c (machine): fixed warning
4054
4055 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
4056
4057         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
4058
4059 2006-09-09 Borut Razem <borut.razem AT siol.net>
4060
4061         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
4062           sdcdb WIN32 native port
4063         * src/clean.mk: fixed
4064
4065 2006-09-08 Borut Razem <borut.razem AT siol.net>
4066
4067         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
4068
4069 2006-09-08 Raphael Neider <rneider AT web.de>
4070
4071         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
4072         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
4073             to gplink to disable processor mismatch warning and to allow
4074             the use of devices with only aliased (shared) memory banks,
4075           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
4076
4077 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4078
4079         * doc/sdccman.lyx: Some re-formating plus example on using
4080           #pragma preproc_asm +/-
4081
4082 2006-09-07 Borut Razem <borut.razem AT siol.net>
4083
4084         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
4085           section
4086
4087 2006-09-06 Borut Razem <borut.razem AT siol.net>
4088
4089         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
4090           line at sdcc.nsi:153
4091         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
4092
4093 2006-09-05 Borut Razem <borut.razem AT siol.net>
4094
4095         * configure.in, configure: support for winsock2
4096         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
4097           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
4098           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
4099           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
4100           debugger/mcs51/symtab.h: sdcdb WIN32 native port
4101
4102 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
4103
4104         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
4105           and OP_DEFS
4106         * support/regression/tests/bug1551947.c: new, added
4107         * src/SDCCsymt.h: strings are char* not byte*
4108
4109 2006-09-05 Raphael Neider <rneider AT web.de>
4110
4111         * device/lib/pic16/libdev/pic18f4550.c,
4112           device/include/pic16/pic18f4550.h: added PORTD/TRISD
4113             declarations/definitions from patch #1520949
4114
4115 2006-09-05 Raphael Neider <rneider AT web.de>
4116
4117         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
4118           byte-aligned bitfields, fixes #1539278
4119
4120 2006-09-05 Raphael Neider <rneider AT web.de>
4121
4122         * src/pic/gen.c (genReceive): skip unreferenced arguments,
4123           fixes #1544120
4124
4125 2006-09-04 Borut Razem <borut.razem AT siol.net>
4126
4127         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
4128         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
4129           -mno-cygwin is a part of the compiler name
4130         * support/scripts/sdcc_mingw32: don't disable ucsim
4131
4132 2006-09-03 Borut Razem <borut.razem AT siol.net>
4133
4134         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
4135         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
4136
4137 2006-09-03 Raphael Neider <rneider AT web.de>
4138
4139         * src/pic/ralloc.c,
4140         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
4141           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
4142           fixes #1550049
4143
4144 2006-09-01 Borut Razem <borut.razem AT siol.net>
4145
4146         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
4147           to make ppc-osx happy
4148
4149 2006-08-31 Borut Razem <borut.razem AT siol.net>
4150
4151         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
4152         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
4153         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
4154         * support/regression/ports/ds390/spec.mk,
4155           support/regression/ports/mcs51/spec.mk,
4156           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
4157           To run regression tests in mingw environment:
4158           make DEV_NULL=NUL CC=gcc
4159
4160 2006-08-30 Borut Razem <borut.razem AT siol.net>
4161
4162         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
4163           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
4164           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
4165           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
4166           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
4167           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
4168           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
4169           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
4170           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
4171           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
4172           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
4173           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
4174           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
4175           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
4176           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
4177           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
4178           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
4179           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
4180           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
4181           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
4182           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
4183           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
4184           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
4185           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
4186           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
4187           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
4188           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
4189           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
4190           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
4191           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
4192           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
4193           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
4194           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
4195           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
4196           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
4197           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
4198           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4199           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
4200           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
4201           ucsim WIN32 native port
4202
4203 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4204
4205         * doc/sdccman.lyx: added note on dynamic memory heap initialization
4206
4207 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4208
4209         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
4210         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
4211
4212 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
4213
4214         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
4215         * support/regression/tests/bug1546986.c: new, added
4216         * as/mcs51/.cvsignore,
4217         * debugger/mcs51/.cvsignore,
4218         * src/.cvsignore: deleted
4219
4220 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4221
4222         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
4223           definitions)
4224
4225 2006-08-20 Borut Razem <borut.razem AT siol.net>
4226
4227         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
4228           removed cl_listen_console::match(), cl_console::match(),
4229           restructured cl_commander::proc_input()
4230
4231 2006-08-16 Borut Razem <borut.razem AT siol.net>
4232
4233         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
4234           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
4235           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
4236
4237 2006-08-14 Borut Razem <borut.razem AT siol.net>
4238
4239         * support/regression/Makefile.in,
4240           support/regression/ports/pic14/gpsim.cmd,
4241           support/regression/ports/pic14/spec.mk,
4242           support/regression/ports/pic14/support.c:
4243           added pic14 regression test
4244
4245 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
4246
4247         * as/doc/asxhtm.html: documented changed ABS behaviour
4248         * as/doc/README: fixed some typos
4249
4250 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
4251
4252         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
4253           not defined on host
4254
4255 2006-08-12 Borut Razem <borut.razem AT siol.net>
4256
4257         * support/regression/fwk/include/testfwk.h,
4258           support/regression/fwk/lib/testfwk.c,
4259           support/regression/generate-cases.py,
4260           support/regression/Makefile.in:
4261           regression test framework does not depend on function pointers and
4262           variable arguments
4263
4264 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
4265
4266         * device/include/stddef.h: c temporary hack to fix bug 1518273
4267
4268 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4269
4270         * device/include/mcs51/cc2510fx.h: added
4271         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
4272           to projects.
4273
4274 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
4275
4276         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
4277         * as/z80/Makefile.in: added strcmpi.c
4278         * as/z80/z80adr.c: added upper case registers and lower case conditionals
4279         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
4280
4281 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
4282
4283         * device/lib/gbz80/asm_strings.s,
4284         * device/lib/gbz80/crt0_rle.s,
4285         * device/lib/gbz80/div.s,
4286         * device/lib/gbz80/mul.s,
4287         * device/lib/gbz80/shift.s,
4288         * device/lib/z80/asm_strings.s,
4289         * device/lib/z80/crt0_rle.s,
4290         * device/lib/z80/div.s,
4291         * device/lib/z80/mul.s,
4292         * device/lib/z80/shift.s: changed to all lower case menmonics except the
4293           flags which are all upper case
4294
4295 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
4296
4297         * as/z80/asm.h: made CASE_SENSITIVE 1
4298         * link/z80/aslink.h: made CASE_SENSITIVE 1
4299         * src/z80/gen.c (throughout): made all conditionals upper case
4300         * support/regression/tests/bug1503067.c: new
4301
4302 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
4303
4304         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
4305           (shiftIntoPair): added case 2 for PAIR_IY,
4306           (setupToPreserveCarry): replaced parameters with iCode and check if
4307            PAIR_DE is in use to fix bug 1399290,
4308           (genPlus, genMinus): updated call to setupToPreserveCarry
4309         * support/regression/tests/bug1399290.c: new
4310
4311 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
4312
4313         * device/lib/Makefile.in (Z80SOURCES): enabled float support
4314         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
4315         * src/ds390/gen.c (shiftRLong),
4316         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
4317         * src/mcs51/gen.c (sameReg): changed to sameByte,
4318           (xch_a_aopGet): new,
4319           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
4320            shiftRLong): fixed bug 1533966
4321         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
4322           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
4323         * support/regression/Makefile.in: disabled z80, enabled ucz80
4324         * support/regression/tests/float_trans.c: enabled test for z80 and host
4325         * support/regression/tests/shifts2.c: new, for testing bug 1533966
4326
4327 2006-08-01 Borut Razem <borut.razem AT siol.net>
4328
4329         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
4330           comparison is always false due to limited range of data type
4331           on PPC64 machine (openpower-linux1) where "char = unsigned char"
4332
4333 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
4334
4335         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
4336         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
4337         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
4338         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
4339
4340 2006-07-31 Borut Razem <borut.razem AT siol.net>
4341
4342         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
4343           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
4344           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
4345           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
4346           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
4347           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
4348           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
4349           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
4350           enable ucsim mingw compilation. Serial port is disabled,
4351           since it uses termios.h API, which is not available on native
4352           WIN32
4353
4354 2006-07-31 Borut Razem <borut.razem AT siol.net>
4355
4356         * Small Device C Compiler 2.6.0 released
4357         * support/scripts/sdcc.nsi: added FULL_DOC option
4358         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
4359
4360 2006-07-28 Borut Razem <borut.razem AT siol.net>
4361
4362         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
4363         * doc/INSTALL.txt: updated
4364
4365 2006-07-27 Borut Razem <borut.razem AT siol.net>
4366
4367         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
4368           device/lib/pic/libdev/Makefile.in: fixed bug
4369           [ 1438354 ] pic libsdcc: distclean doesn't work
4370         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
4371           device/lib/pic16/libio/Makefile.in: fixed bug
4372           [ 1438344 ] pic16 lib: clean doesn't work properly
4373         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
4374
4375 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
4376
4377         * device/lib/pic/libsdcc/fsdiv.c,
4378         * device/lib/pic/libsdcc/fsmul.c,
4379         * device/lib/pic16/libsdcc/float/fsdiv.c,
4380         * device/lib/pic16/libsdcc/float/fsmul.c,
4381         * device/lib/_fsdiv.c,
4382         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
4383         * support/regression/tests/bug1520966.c: added
4384         * doc/knownbugs.html: removed [ 1520966 ] from the list
4385
4386 2006-07-25 Borut Razem <borut.razem AT siol.net>
4387
4388         * configure.in, configure, sdccconf_in.h: fixed bug
4389           [ 1519095 ] regression test onebyte.c fails on ppc64 host
4390         * doc/knownbugs.html: removed [ 1519095 ] from the list
4391
4392 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
4393
4394         * doc/knownbugs.html: added, contains list of known bugs at release
4395         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
4396
4397 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
4398
4399         * device/include/mcs51/compiler.h: added SFRX for xdata based special
4400           function registers and corrected defaults with additional warning
4401         * device/lib/malloc.c: cosmetic changes
4402         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
4403         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
4404           (fillGaps): and used it
4405
4406 2006-07-20 Raphael Neider <rneider AT web.de>
4407
4408         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
4409           output unless SDCCPICDEBUG is set
4410         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
4411           output if SILENT is set
4412
4413 2006-07-11 Borut Razem <borut.razem AT siol.net>
4414
4415         * doc/README.txt: updated
4416
4417 2006-07-10 Borut Razem <borut.razem AT siol.net>
4418
4419         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
4420           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
4421           in WIN32 installation
4422         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
4423           release candidate 1
4424
4425 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
4426
4427         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
4428         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
4429
4430 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
4431
4432         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
4433
4434 2006-07-06 Borut Razem <borut.razem AT siol.net>
4435
4436         * support/regression/tests/bitfields.c:
4437           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
4438         * support/regression/tests/constantRange.c:
4439           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
4440
4441 2006-07-04 Borut Razem <borut.razem AT siol.net>
4442
4443         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
4444           src/port.mk,
4445           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
4446           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
4447           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
4448           reverted changes from 2006-07-03
4449         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
4450         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
4451           added CPPFLAGS, used by the host port
4452
4453 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
4454
4455         * support/regression/valdiag/tests/switch.c,
4456         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
4457         * support/regression/tests/libmullong.c: fixed for host
4458         * support/regression/ports/host/spec.mk: disable all warnings for host,
4459         SDCC runs with --less-pedantic too
4460
4461 2006-07-03 Borut Razem <borut.razem AT siol.net>
4462
4463         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
4464           defined CPPFLAGS
4465         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
4466         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
4467           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
4468           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
4469           include ../port.mk
4470         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
4471           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
4472           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
4473           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
4474
4475 2006-07-02 Raphael Neider <rneider AT web.de>
4476
4477         * src/pic16/devices.inc,
4478         * device/include/pic16/pic18fregs.h,
4479         * device/include/pic16/pic18f4550.h,
4480         * device/lib/pic16/pics.all,
4481         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
4482
4483 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
4484
4485         * as/hc08/lkaomf51.c (OutputName),
4486         * as/mcs51/lkaomf51.c (OutputName),
4487         * as/z80/asmain.c (asmbl),
4488         * src/ds390/main.c (asmLineNodeFromLineNode),
4489         * src/hc08/ralloc.c (hc08_assignRegisters),
4490         * src/mcs51/main.c (asmLineNodeFromLineNode),
4491         * src/xa51/ralloc.c (checkRegMask),
4492         * src/xa51/gen.c (emitcode),
4493         * src/z80/gen.c (_emit2),
4494         * src/SDCCast.c (searchLitOp),
4495         * src/SDCCglobl.h,
4496         * support/packihx/packihx.c,
4497         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
4498         * src/ds390/gen.c (aopPutUsesAcc),
4499         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
4500         * support/regression/tests/libmullong.c (mullong_wrapper),
4501         * src/SDCCsymt.c (powof2),
4502         * src/SDCCast.c,
4503         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
4504         * src/SDCCsymt.h: added TYPE_TARGET_*
4505         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
4506         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
4507         SDCCast because 1) header problems 2) this is the right place
4508         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
4509         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
4510         prototype
4511
4512 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
4513
4514         * src/SDCCicode.h: removed buggy semicolon in unused macro
4515         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
4516         search for previous definiton of auto symbols too,
4517         (findPrevUse): fixed logic of emitWarnings
4518
4519 2006-06-26 Raphael Neider <rneider AT web.de>
4520
4521         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
4522           PCLATH and PCLATU on interrupts, potentially fixes #1505141
4523
4524 2006-06-25 Raphael Neider <rneider AT web.de>
4525
4526         * device/lib/pic/libm: NEW, added math library functions
4527         * device/lib/pic/libsdcc: NEW; added float support functions
4528         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
4529         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
4530           NEW, added math related headers
4531         * device/include/asm/pic/features.h: NEW
4532         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
4533           (popGet): allow larger offsets for AOP_PCODE,
4534           (genDataPointerSet): handle literals explicitly, more debug output,
4535           (genAssign): fixed for float using aopLiteral ;-)
4536         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
4537           GOTO initialisation routine
4538         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
4539           flag on registers, fixes #1469043 (local variables do not work)
4540         * src/pic/main.c (_pic14_do_link),
4541         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
4542           available
4543
4544 2006-06-25 Borut Razem <borut.razem AT siol.net>
4545
4546         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
4547           characters printed (not including the trailing '\0' used to end
4548           output to strings). Problem detected in regression test bug-927659.c.
4549           NOTE: printf() family functions should return int instead
4550           unsigned int!
4551         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
4552           specifier are printed as themselves
4553         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
4554           support flags, width and precision specifiers
4555
4556 2006-06-24 Borut Razem <borut.razem AT siol.net>
4557
4558         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
4559           to the list of sdcc tagrets not supporting bit type
4560         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
4561           testfor pic16 due to bug:
4562           [ 1511794 ] pic16: regression test bug-895992.c fails
4563
4564 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
4565
4566         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
4567         * src/SDCCglue.c (initPointer), fixed bug 1496419
4568         * support/regression/tests/bug1496419.c: new, added
4569
4570 2006-06-22 Borut Razem <borut.razem AT siol.net>
4571
4572         * support/regression/ports/pic16/support.c: use gpsim usart module from
4573           libgpsim_modules library
4574
4575 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4576
4577         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
4578         IP0H to IPH0.
4579
4580 2006-06-19 Raphael Neider <rneider AT web.de>
4581
4582         * src/pic/glue.h,src/pic16/glue.h: added prototypes
4583         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
4584           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
4585           (pic14printExterns,pic14printPublics,pic16printPublics,
4586           pic16_printExterns): use new functions to emit symbols
4587           (picglue,pic16glue): emit publics before emitting externs
4588         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
4589           locally defined functions to avoid bug #1443651
4590         * support/regression/tests/bug-716242.c: removed pic16 workaround
4591         * support/regression/ports/pic16/spec.mk: ignore errors during build
4592
4593 2006-06-19 Raphael Neider <rneider AT web.de>
4594
4595         * src/pic/glue.h: added pic14aopLiteral prototype
4596         * src/pic/glue.c (pic14aopLiteral): return unsigned int
4597         * src/pic/gen.c: removed stdint.h dependency
4598           (aopGet): use Safe_strdup()
4599           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
4600           (genDataPointerSet): use pic14aopLiteral()
4601         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
4602           for pic16; thanks to Bernhard and Maarten
4603
4604 2006-06-18 Borut Razem <borut.razem AT siol.net>
4605
4606         * support/regression/tests/structflexarray.c: flexible array members
4607           not supported by gcc < 3
4608         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
4609           GUI tool by default
4610         * src/pic/gen.c: don't include [p]strdin.h on solaris
4611         * support/Util/pstdint.h: addad svn attributes
4612         * support/regression/tests/constantRange.c,
4613           support/regression/tests/rotate.c: include inttypes.h instead
4614           stdint.h on solaris, addad svn attributes
4615
4616 2006-06-18 Raphael Neider <rneider AT web.de>
4617
4618         * src/SDCCsymt.c (initCSupport): change return type of divschar to
4619           int for PIC16
4620         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
4621           (pic16_genMinusBits): simplified sign-extension
4622           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
4623             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
4624             adjusted to correctly handle mixed-signed operands, disabled
4625             now unused multiplciation routines
4626         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
4627           (assignResultValue): added argument denoting the size of the result
4628             as returned by the function (fixes upcasts in assigning from
4629             function calls: char foo(); int i = foo();)
4630           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
4631             function result to assignResultValue
4632           (genMult): disabled inlined multiplication code
4633           (genDiv): augmented to also handle the modulus operator, fixed to
4634             handle mixed-signed operands correctly
4635           (genMod): simply call genDiv, disabled unused code
4636           (genAssign): fixed missing (sign-)extension on result
4637         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
4638             valid char operands, allow signed operands for native code, added
4639             division and modulo operator handling
4640         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
4641
4642         As a consequence, onebyte.c (if split into two files) and muldiv.c
4643         pass regression tests.
4644
4645 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4646
4647         * doc/Makefile.in: two runs of makeindex seem needed to get
4648         correct page references in the index of sdccman.pdf
4649         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
4650
4651 2006-06-17 Borut Razem <borut.razem AT siol.net>
4652
4653         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
4654
4655 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4656
4657         * doc/sdccman.lyx: updated, added (porting source code, debugging),
4658         mentioned ec2drv and paulmon
4659
4660 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
4661
4662         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
4663           consecutive abs areas
4664           (find_empty_space, allocate_space): added map to handle codemap or
4665            xdatamap,
4666           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
4667            absolute idata and xdata
4668         * as/mcs51/lkmem.c (summary2): updated legend
4669
4670 2006-06-16 Raphael Neider <rneider AT web.de>
4671
4672         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
4673
4674 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
4675
4676         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
4677           1208515
4678         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
4679
4680 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
4681
4682         * src/port.h (struct PORT): added field gp_tags, to hold the tag
4683         value of generic pointers,
4684         * src/avr/main.c,
4685           src/ds390/main.c,
4686           src/hc08/main.c,
4687           src/izt/i186.c,
4688           src/izt/tlcs900h.c,
4689           src/mcs51/main.c,
4690           src/pic/main.c,
4691           src/pic16/main.c,
4692           src/xa51/main.c,
4693           src/z80/main.c: PORT structure, added elements for gp_tags field,
4694         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
4695         fields in the PORT structure of each port,
4696         * src/SDCCast.c (decorateType): allow processing of generic pointers
4697         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
4698         S_FIXED symbols
4699
4700 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
4701
4702         * link/z80/lkgb.c,
4703         * link/z80/lkgg.c,
4704         * src/pic16/gen.c,
4705         * src/pic16/main.c,
4706         * src/pic16/pcode.c,
4707         * src/pic/main.c,
4708         * src/pic/pcoderegs.c,
4709         * src/SDCCicode.c,
4710         * src/SDCCmain.c,
4711         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
4712           bug 1504689 on minGW
4713
4714 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4715
4716         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
4717
4718 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
4719
4720         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
4721
4722 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
4723
4724         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
4725           for optimization
4726
4727 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
4728
4729         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
4730         to a char variable. Fixed bug #1504211
4731         * device/include/pic16/adc.h,
4732         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
4733         and fixed bug #1364390
4734
4735 2006-06-10 Borut Razem <borut.razem AT siol.net>
4736
4737         * CVSROOT: removed the CVS left-over
4738
4739 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
4740
4741         * as/hc08/asmain.c (asexit),
4742         * as/hc08/lkmain.c (lkexit),
4743         * as/mcs51/asmain.c (asexit),
4744         * as/mcs51/lkmain.c (lkexit),
4745         * src/SDCCglue.c (DEFSETFUNC),
4746         * src/SDCCmain.c (linkEdit, assemble),
4747         * support/librarian/sdcclib.c (AddRel),
4748           replaced unlink() by standard C remove()
4749         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
4750         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
4751           gatherImplicitVariables): new, added to fix bug 608752,
4752           (createFunction): added gatherImplicitVariables()
4753         * src/SDCCast.h: added createRMW prototype
4754         * src/SDCCsymt.h (struct symbol): added infertype
4755         * support/regression/tests/bug608752.c: new, added
4756
4757 2006-06-10 Raphael Neider <rneider AT web.de>
4758
4759         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
4760           multibyte dummy reads (fixes #1503234)
4761
4762 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
4763
4764         * device/include/mcs51/compiler.h: new, added header file to enable
4765           creating common sfr definition header files for different compilers
4766
4767 2006-06-05 Raphael Neider <rneider AT web.de>
4768
4769         * src/pic16/{pcode.h,genarith.c}:
4770           introduced pCodeOp combining any two pCodeOps (previously only
4771           two register operands could be combined), removed pcop2 from
4772           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
4773         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
4774         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
4775           rewritten to use new PO_TWO_OPS
4776         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
4777         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
4778           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
4779           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
4780           (pic16_get_op): embraced return arg to allow #define return(x),
4781             added new case for combined opcodes
4782           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
4783           (pic16_pCode2str,pic16_getRegFrompCodeOp,
4784            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
4785
4786 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
4787
4788         * src/SDCCval.c (checkConstantRange): added
4789         * src/SDCCval.h: added checkConstantRange
4790         * support/Util/SDCCerr.c,
4791         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
4792         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
4793         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
4794         * src/SDCCast.c (decorateType): added checkConstantRange,
4795         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
4796         can be emitted with the correct always true/false warning,
4797         added optimization for double '!';
4798         result of decorateType() must be assigned back to the tree, because
4799         decorateType() can change the tree
4800         * src/SDCCicode.c (geniCodeLogic),
4801         (geniCodeAssign): replaced new checkConstantRange, added warnings,
4802         (checkConstantRange): removed, it was only a fragment which never
4803         emitted a warning
4804         * src/SDCCsymt.c (computeType): fixed promotion for
4805         "-1 < (unsigned bit) b"
4806         * src/pic/ralloc.c (packRegsForAssign),
4807         * src/pic16/ralloc.c (packRegsForAssign),
4808         * src/hc08/ralloc.c (packRegsForAssign),
4809         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
4810         from mcs51
4811         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
4812         * support/regression/tests/constantRange.c: added
4813         * support/valdiag/tests/constantRange.c: added
4814         * support/valdiag/valdiag.py: added -DPORT_HOST=1
4815
4816 2006-06-02 Borut Razem <borut.razem AT siol.net>
4817
4818         * support/regression/ports/pic16/support.c: increase stack size
4819           to 255 bytes
4820         * support/regression/Makefile.in: sort tests by name so that the
4821           resutlts can be compared on different machines / platforms
4822
4823 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
4824
4825         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
4826         * src/ds390/gen.c (emitLabel): new, added,
4827           (genDjnz): fixed stack overflow bug,
4828           (throughout): cosmetic changes to sync with mcs51/gen.c,
4829           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
4830         * src/mcs51/gen.c (genEndFunction): small optimization,
4831           (throughout): cosmetic changes to sync with ds390/gen.c
4832
4833 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
4834
4835         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
4836           (_print_format): fixed printing pointers
4837         * src/mcs51/gen.c (emitLabel, movb): new, added,
4838           (genAssign): small optimization,
4839           (genDjnz): fixed stack overflow bug,
4840           (throughout): replaced sprintf with SNPRINTF,
4841           replaced mcs51_regWithIdx with REG_WITH_INDEX,
4842           replaced emitcode("mov", "b,...") with MOVB(...),
4843           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
4844           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
4845         * src/mcs51/peeph.def: added rules 140 and 264
4846         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
4847           so they may get optimized into registers
4848
4849 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
4850
4851         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
4852           immediately when encountered,
4853           (printUsage): always use stderr even on windows
4854
4855 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
4856
4857         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
4858         (processParms): fixed bug #1247551
4859         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
4860         parseCmdLine, main): print '--version' to stdout,
4861         print 'help' to stdout if --help is given,
4862         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
4863         arguments are given; fixed --help
4864
4865 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
4866
4867         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
4868         * support/regression/tests/bug-1493710.c: added
4869
4870 2006-05-27 Borut Razem <borut.razem AT siol.net>
4871
4872         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
4873           static instead auto
4874         * support/regression/ports/pic16/support.c: increase stack size
4875           from default 64 bytes to 128 bytes
4876         * support/regression/tests/staticinit.c,
4877           support/regression/tests/float.c: regression tests fully enabled
4878           for pic16 port by putting the initialized data arrays into the code
4879           section
4880         * support/regression/ports/pic16/spec.mk: don't link default libraries.
4881           This was changed by mistake in the previous version.
4882
4883 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
4884
4885         * src/pic16/gen.c (genFunction, genEndFunction): some
4886         beautifications, fixed bug with falsely restoring FSR2 in large
4887         stack model, thanks to Beau E. Cox for reporting the bug
4888
4889 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
4890
4891         * debugger/mcs51/break.c,
4892         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
4893           use %p to print pointers, made address variables unsigned
4894         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
4895         * debugger/mcs51/symtab.c (parseSymbol): must return something
4896         * src/mcs51/gen.c (aopForSym): small optimization,
4897            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
4898           (freeAsmop): added missing break,
4899           (aopPut): removed parameter bvolatile, determine it inside the function,
4900           (saveRegisters, unsaveRegisters): small optimization,
4901           (genIpush): removed pointless check,
4902           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
4903           replaced sprintf with SNPRINTF,
4904           replaced strcpy with strncpyz,
4905           updated aopPut calls,
4906           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
4907         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
4908
4909 2006-05-24 Borut Razem <borut.razem AT siol.net>
4910
4911         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
4912           modification of test for the pic16 port, put the array to the code
4913           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
4914
4915 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4916
4917         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
4918         * support/Util/pstdint.h: added
4919
4920 2006-05-22 Borut Razem <borut.razem AT siol.net>
4921
4922         * src/regression/Makefile: removed bool2.c test, added -q linker option
4923         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
4924           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
4925           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
4926           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
4927           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
4928           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
4929           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
4930           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
4931           define SUPPORT_BIT_TYPES 0, removed unused bit variables
4932
4933 2006-05-22 Raphael Neider <rneider AT web.de>
4934
4935         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
4936           bug #1492360 (problematic due to generic pointers, see code)
4937
4938 2006-05-22 Borut Razem <borut.razem AT siol.net>
4939
4940         * support/regression/ports/pic16/specs.mk: removed stack size linker
4941           directive
4942         * support/regression/tests/array.c,
4943           support/regression/tests/bitopcse.c,
4944           support/regression/tests/bug-908454.c,
4945           support/regression/tests/malloc.c: modified for pic16 regression test
4946         * support/regression/tests/bitfields.c:
4947           pic16 - excluded bitfileds of size > 8
4948         * support/regression/tests/bp.c: pic16 - reduced data size
4949         * support/regression/tests/bug-221100.c: pic16 - reduced data size
4950         * support/regression/tests/bug-460010.c:
4951           pic16 - used the absolute address the fits in memory
4952         * support/regression/tests/bug-716242.c:
4953           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
4954         * support/regression/tests/float.c:
4955           pic16 - excluded - data size too big
4956         * support/regression/tests/onebyte.c:
4957           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
4958         * support/regression/tests/shifts.c:
4959           pic16 - function names probably have to differ in first X characters
4960           (gpasm limitation?)
4961         * support/regression/tests/staticinit.c:
4962           pic16 - excluded some tests due error: no target memory available for
4963           section ".idata"
4964
4965 2006-05-22 Borut Razem <borut.razem AT siol.net>
4966
4967         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
4968           second try. Thanks Stas Sergeev once more.
4969
4970 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
4971
4972         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
4973           (genLeftShift, genRightShift): fixed bug 1491627
4974         * src/hc08/peeph.def (rules 7, 8.x): added
4975         * support/regression/tests/shifts.c (ShiftLeftByParam,
4976           ShiftRightByParam, testShiftByParam): added to test variable shifting
4977
4978 2006-05-20 Raphael Neider <rneider AT web.de>
4979
4980         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
4981         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
4982           (allocReg): add only new registers to dynAllocRegs,
4983           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
4984             #1489055, #1445850, and probably #1483693
4985
4986 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
4987
4988         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
4989         bug in for-loop that didn't emit the last of CONFIG and ID registers
4990
4991 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
4992
4993         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
4994           with offset
4995         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
4996           1489016, 1434401 and 1490124
4997         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
4998           1489016, 1434401 and 1490124
4999
5000 2006-05-17 Borut Razem <borut.razem AT siol.net>
5001
5002         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
5003           thanks Stas Sergeev
5004
5005 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
5006
5007         * device/include/mcs51/P89c51RD2.h,
5008         * device/include/mcs51/P89LPC901.h,
5009         * device/include/mcs51/P89LPC922.h,
5010         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
5011
5012 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
5013
5014         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
5015         to fix missing stack pragma in compiled binary object file,
5016
5017 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
5018
5019         * support/packihx/configure.in,
5020         * support/packihx/configure: removed warning, autoconf >= 2.5x can
5021         determine sizeof basic types even while cross compiling
5022
5023 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
5024
5025         * src/avr/gen.c (aopop),
5026         * src/ds390/gen.c (aopOp),
5027         * src/hc08/gen.c (aopOp),
5028         * src/mcs51/gen.c (aopop),
5029         * src/pic16/gen.c (pic16_aopOp),
5030         * src/pic/gen.c (aopOp),
5031         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
5032         if size of operand is smaller than spill location
5033
5034 2006-05-12 Borut Razem <borut.razem AT siol.net>
5035
5036         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
5037           have to have CR/LF line endings even if they are checked out on *nix
5038           or on WIN32 in cygwin binmode
5039
5040 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
5041
5042         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
5043         * device/include/ds80c390.h: added sfr16 definitions
5044         * src/ds390/gen.c,
5045         * src/ds390/gen.h,
5046         * src/ds390/main.c,
5047         * src/ds390/ralloc.c,
5048         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
5049           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
5050           bit returning functions
5051         * support/regression/tests/sfr16.c: enabled test on ds390
5052
5053 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5054
5055         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
5056         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
5057
5058 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
5059
5060         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
5061         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
5062           (cl_address_space constructor): removed expensive initialization,
5063           (cl_address_space::get_cell): extended for late initialization,
5064           (cl_address_space::*): use late initialization,
5065           (cl_address_decoder::activate): removed expensive initialization,
5066           This reduced regression test running time by 25%
5067
5068 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
5069
5070         * packihx/,
5071         * configure.in,
5072         * configure,
5073         * sdcc.dsw,
5074         * Makefile.bcc,
5075         * Makefile.in,
5076         * support/packihx/Makefile.in,
5077         * support/packihx/clean.mk,
5078         * support/packihx/Makefile.bcc,
5079         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
5080
5081 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5082
5083         * src/SDCCval.c (valNot): fix for regression test failure
5084           of not.c on big endian hosts
5085
5086 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
5087
5088         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
5089
5090 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5091
5092         * device/lib/mcs51/Makefile.in: changed string comparison operator
5093           to = for POSIX compliance; == is bash extension
5094
5095 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
5096
5097         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
5098           kosmonaut_pirx
5099
5100 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
5101
5102         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
5103         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
5104         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
5105         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
5106         bug report #1478657,
5107
5108 2006-05-05 Borut Razem <borut.razem AT siol.net>
5109
5110         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
5111           making the html
5112
5113 2006-05-02 Borut Razem <borut.razem AT siol.net>
5114
5115         * doc/Makefile.in: removed *.ind dependency since there is no rule to
5116           create *.ind, which made make to fail if invoked with -j 2
5117
5118 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
5119
5120         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
5121           Hubert Sack for patch 1479782
5122
5123 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
5124
5125         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
5126
5127 2006-05-01 Raphael Neider <rneider AT web.de>
5128
5129         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
5130           (create_pic): store only prefix-free device name,
5131           (init_pic): check for device names with "16" prefix,
5132           (list_valid_pics),
5133         * src/pic/device.h (struct PIC_device),
5134         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
5135             stored device name,
5136         * device/include/pic/pic12f{635,675,629,683}.h,
5137         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
5138         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
5139         * device/include/pic/pic16f505.h,
5140         * device/lib/pic/libdev/pic16f505.c: removed
5141         * device/include/pic/pic14devices.txt: added support for pic12f
5142             devices, removed unsupported non 16-bit devices
5143             [above changes provided by patch from Zik Saleeba]
5144         * src/pic/*, src/pic16/*, device/include/pic16/*,
5145           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
5146
5147 2006-05-01 Borut Razem <borut.razem AT siol.net>
5148
5149         * configure.in, configure, doc/Makefile.in:
5150           sync with nightly build makefile - latex, dvipdf and dvips
5151           not needed any more
5152
5153 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
5154
5155         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
5156         in the library source
5157
5158 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
5159
5160         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
5161
5162 2006-04-28 Raphael Neider <rneider AT web.de>
5163
5164         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
5165         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
5166           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
5167         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
5168
5169 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
5170
5171         * device/lib/pic/libdev/Makefile.in,
5172         * device/lib/hc08/Makefile.in,
5173         * device/lib/gbz80/Makefile.in,
5174         * device/lib/z80/Makefile.in,
5175         * device/lib/ds390/Makefile.in,
5176         * device/lib/ds400/Makefile.in: added srcdir to include search path,
5177         thanks to Borut for the bug report
5178         * configure.in,
5179         * configure: always create doc/Makefile independent from --enable-doc
5180         * Makefile.in: always install from directory doc independent from
5181         --enable-doc
5182         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
5183         removed
5184         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
5185         * doc/Makefile.in: install *.txt if present
5186         * device/include/Makefile.in (install): added installation of pic/*.inc
5187         and pic/*.txt files again, they were erroneously removed
5188
5189 2006-04-28 Raphael Neider <rneider AT web.de>
5190
5191         * src/pic/{gen.c,main.h,pcode.c},
5192         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
5193             concerning signedness with casts
5194
5195 2006-04-28 Raphael Neider <rneider AT web.de>
5196
5197         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
5198             definition of an interrupt handler,
5199         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
5200             interrupt handler stuff from picglue() to separate routine,
5201           (picglue): enabled definition of intr handlers in files w/o main()
5202
5203 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5204
5205         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
5206           compilation with MSVC 2005 Express Edition (VC8)
5207
5208 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
5209
5210         * device/lib/Makefile: fixed build of gbz80 lib
5211
5212 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5213
5214         * support/regression/tests/bug-460010.c,
5215         * support/regression/tests/bug-524691.c,
5216         * support/regression/tests/bug-716242.c: removed conditional defines
5217           that are already in testfwk.h
5218
5219 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
5220
5221         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
5222           (AccAXRsh1): added, shift right by 1,
5223           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
5224            AccAXLrl1
5225         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
5226
5227 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
5228
5229         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
5230         remove cast to same type
5231         * src/SDCCast.c (decorateType): fix for RFE 1475742,
5232         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
5233         * as/z80/Makefile,
5234         * link/z80/Makefile: removed, they have moved to
5235         Makefile.in files
5236         * configure,
5237         * configure.in: replaced duplicate message about ucsim by missing sdcpp
5238         * install-sh: fix bug #1204398 by setting umask 0022
5239         * device/lib/Makefile: separate build of z80 and gbz80 lib
5240
5241 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
5242
5243         Enabled VPATH feature: changed nearly all Makefiles (149 files).
5244         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
5245
5246         One basic decision: e.g. src/clean.mk includes further files. In order
5247         to make this work there are two solutions:
5248         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
5249           run configure on them. This way they can use
5250           'include $(srcdir)/port-clean.mk'
5251         - always include clean.mk by the Makefile at the same level. To avoid
5252           that `make clean` tries to include and build Makefile.dep the
5253           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
5254           implemented, because now even `make uninstall` doesn't create
5255           Makefile.in. clean.mk could be eliminated by pasting it in
5256           Makefile.in.
5257
5258         * debugger/mcs51/Makefile.in: build own objects from library sources
5259         (SLIB, SDCC) in current directory
5260
5261         * configure, configure.in: renamed --disable-device-lib-build in
5262         --disable-device-lib; added --enable-doc, the required tools are
5263         searched by configure; added result message; the toolchain for the
5264         belonging ports are now only built, if the port is enabled.
5265
5266         * support/regression/*: all output is written in directory gen, because
5267         the fwk and ports directories don't livet in the build tree using vpath
5268
5269         * doc/sdccman.lyx: renamed --disable-device-lib-build to
5270         --disable-device-lib, added --enable-doc, added section VPATH
5271
5272         * sim/ucsim/configure.in,
5273         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
5274         z80 are enabled by default
5275
5276 2006-04-24 Raphael Neider <rneider AT web.de>
5277
5278         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
5279             to config word, "pic14_"-prefixed some extern functions
5280           (pic14_emitConfigWord): emit __config directive(s) if assignment to
5281             config word has been found
5282         * src/pic/device.h: added prototypes
5283         * src/pic/pcode.c: added "pic14_"-prefix where needed
5284         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
5285             fixup
5286         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
5287             words,
5288           (pic14emitRegularMap): ignore config words,
5289           (pic14createInterruptVect): moved generating __config directives away
5290           (picglue): have __config directives emitted
5291
5292 2006-04-24 Borut Razem <borut.razem AT siol.net>
5293
5294         * doc/Makefile: sync with nightly build makefile
5295
5296 2006-04-24 Raphael Neider <rneider AT web.de>
5297
5298         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
5299             registers that have not been assigned proper liveranges,
5300             fixes #1469504 and #1474602,
5301           (pCodeRegOptimizeRegUsage): fixed typo in comment
5302
5303 2006-04-24 Borut Razem <borut.razem AT siol.net>
5304
5305         * device/examples/main8051.c: deleted - it was removed from CVS
5306           24.mar.2000 and after that modified 18.feb.2001, so it reappered
5307           after the transition to Subversion
5308         * src/SDCCalloc.h: deleted - it was removed  from CVS
5309           3.feb.2001 and after that modified 18.feb.2001, so it reappered
5310           after the transition to Subversion
5311         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
5312           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
5313           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
5314           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
5315
5316 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
5317
5318         * as/asx8051.dsp: added mcs51/strcmpi.h
5319         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
5320         * as/hc08/aslink.h: updated lnksect prototype
5321         * as/hc08/asm.h,
5322         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
5323         * as/hc08/asmain.c,
5324         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
5325           (newdot): handle A_ABS
5326         * as/hc08/asout.c,
5327         * as/mcs51/asout.c (outarea): output address
5328         * as/hc08/lkaomf51.c,
5329         * as/mcs51/lkaomf51.c: disabled unused array UsageType
5330         * as/hc08/m08pst.c,
5331         * as/mcs51/i51pst.c,
5332         * as/z80/z80pst.c: "ABS" is not A_OVR
5333         * as/hc08/lkarea.c (newarea): read a_addr,
5334           (lnkarea): added codemap array, sort absolute areas to the front,
5335            combine all GSINITx/GSFINAL,
5336           (find_empty_space, allocate_space): new functions,
5337           (lnksect): return next address, handle absolute sections
5338         * as/mcs51/lkarea.c (newarea): read a_addr,
5339           lnksect2 prototype changed,
5340           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
5341           (find_empty_space, allocate_space): new, factored out of lnksect2,
5342           (lnksect2): return next address, handle absolute sections
5343         * as/hc08/lkhead.c,
5344         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
5345         * as/hc08/lklibr.c (addfile, fndsym),
5346         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
5347           index out of range and detect both '\' and '/'
5348         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
5349         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
5350           regression tests (ds390 cannot return bool yet)
5351         * doc/sdccman.lyx: changed version number, document changed --no-peep,
5352           document critical interrupts on z80, document changed SDCC define
5353         * src/asm.c (_asxxxx_mapping): fixed .org directive,
5354           (_a390_mapping): added .org directive
5355         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
5356           (genMultOneByte): fixed warnings
5357         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
5358           ones
5359         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
5360         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
5361           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
5362         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
5363         * src/pic16/main.c: removed newReg prototype
5364         * src/pic16/pcode.c,
5365         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
5366           warnings
5367         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
5368           ones
5369         * src/pic16/ralloc.c
5370         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
5371           to fix warnings
5372         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
5373           from short to PIC_OPTYPE
5374         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
5375         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
5376           optype from short to PIC_OPTYPE
5377         * src/port.h: made int_size unsigned to fix warnings
5378         * src/SDCC.y: fixed warning on MSVC
5379         * src/SDCCicode.c (getArraySizePtr): return unsigned int
5380         * src/SDCCopt.c (convertToFcall): fixed warnings
5381         * src/SDCCsymt.h: removed double prototype for genSymName
5382         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
5383           offset int to fix warnings
5384
5385 2006-04-22 Borut Razem <borut.razem AT siol.net>
5386
5387         * doc/sdccman.lyx, */Makefile, */Makefile.in:
5388           references to CVS replaced with Subversion
5389
5390 2006-04-21 Borut Razem <borut.razem AT siol.net>
5391
5392         * doc/sdccman.lyx, */Makefile, */Makefile.in:
5393           references to CVS replaced with Subversion
5394
5395 2006-04-19 Borut Razem <borut.razem AT siol.net>
5396
5397         * src/version.awk: adapted for svn
5398         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
5399           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
5400           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
5401           /binutils-avr/etc/*.vi, *.jin: removed all properties
5402           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
5403
5404 2006-04-19 Borut Razem <borut.razem AT siol.net>
5405
5406         * CVS to Subversion migration completed
5407
5408 2006-04-18 Borut Razem <borut.razem AT siol.net>
5409
5410         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
5411           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
5412
5413 2006-04-17 Borut Razem <borut.razem AT siol.net>
5414
5415         * device/include/Makefile.in: added pic/*.inc to the installation
5416
5417 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
5418
5419         * support/regression/collate-results.py: fixed output in case of
5420         a valdiag error
5421         * support/regression/generate-cases.py: fixed splitting of pathnames
5422         with dots
5423         * as/hc08/lklibr.c (addfile),
5424         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
5425
5426 2006-04-11 Raphael Neider <rneider AT web.de>
5427
5428         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
5429         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
5430         * src/pic16/pcode.c (assignValnums): fixed #1460578
5431
5432 2006-04-11 Raphael Neider <rneider AT web.de>
5433
5434         * device/lib/pic/libdev/*.c,
5435         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
5436           fixes #1468739, enables compilation in --std-c99 mode
5437         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
5438
5439 2006-04-11 Raphael Neider <rneider AT web.de>
5440
5441         * src/pic/device.c (find_device): removed debug output
5442           (list_valid_pics): enabled verbose listing of supported devices
5443         * device/include/stdbool.h: define bool as char for pic14/16 as well
5444
5445 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5446
5447         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
5448
5449 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
5450
5451         * .version: bumped version to 2.5.6
5452         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
5453
5454 2006-04-06 Raphael Neider <rneider AT web.de>
5455
5456         * .version: bumped version to 2.5.6 (pic14 ABI changed)
5457         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
5458         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
5459           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
5460             pic14_constructAbsMap
5461           (pic14printPublics): declare absolute global symbols as global
5462           (pic14createInterruptVect),
5463         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
5464           (newReg): assume new registers unused, use correct name in
5465             hashtable (reg->name instead of name), more debugLog output
5466         * src/pic/device.h (PIC_device): added fields for verbose output
5467         * src/pic/device.c: moved device definition to pic14devices.txt,
5468             added routines for runtime parsing of pic14devices.txt,
5469             added support for second config word
5470         * src/pic/main.c (_process_pragma): removed #pragma maxram,
5471           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
5472           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
5473           (_pic14_parseOptions): moved pCodeInitRegisters here
5474           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
5475         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
5476           (pCodeInitRegisters): rewrapped comments, perpared new approach to
5477             handling the pseudo stack
5478         * device/lib/Makefile.in: ignore failures in objects-pic16,
5479         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
5480         * device/lib/pic/NEWS: document new dependency on picXXX.lib
5481         * device/lib/pic/Makefile.subdir,
5482         * device/lib/pic16/Makefile.subdir: improved clean rules
5483         * device/lib/pic/libdev/: NEW, pic14 device libraries
5484         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
5485         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
5486         * device/include/Makefile.in: create subdir and install pic14 headers
5487         * device/include/pic/p16f_common.inc: removed unused declarations
5488         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
5489             PICs from inc2h.pl v1.6,
5490             replaced BIT_AT macros with struct declarations
5491         * device/include/pic/pic14devices.txt: definition of supported devices,
5492             all above improvements contributed by Zik Saleeba, thanks
5493         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
5494         * support/scripts/sdcc.nsi: also install pic14 device libraries and
5495             headers
5496
5497 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
5498
5499         * device/include/mcs51/c8051f410.h: added interrupt numbers,
5500         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
5501           thanks to Charles Olds
5502
5503 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5504
5505         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
5506
5507 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
5508
5509         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
5510         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
5511         * support/regression/bug1464657.c: added, new test
5512
5513 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5514
5515         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
5516           version number
5517
5518 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5519
5520         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
5521           --no-peep and --peep-file <file> are used don't use default rules but
5522           do use the <file>
5523
5524 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5525
5526         * src/mcs51/gen.c (genCall): fixed bug 1457608
5527
5528 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5529
5530         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
5531         changes seem to cause (trigger?) problems with the build system.
5532
5533 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
5534
5535         * src/SDCCpeeph.c (operandsLiteral): new, added,
5536           (callFuncByName): inserted operandsLiteral
5537         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
5538
5539 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5540
5541         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
5542         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
5543
5544 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
5545
5546         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
5547           implemented patch 1120823 Thanks to Willy De la Court (normal
5548           interrupts need an interrupt number now if they are made critical),
5549           and enabled nesting of critical functions though not for gbz80
5550           (genCritical, genEndCritical): added functions
5551           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
5552         * src/z80/mappings.i: added "ei" to all mappings
5553
5554 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5555
5556         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
5557         submitted by the Debian SDCC maintainer Aurelien Jarno:
5558         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
5559         archive with gcc 4.1 on mips and wrote the patch"
5560
5561 2006-03-16 Raphael Neider <rneider AT web.de>
5562
5563         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
5564           the left operand is shorter than the result (c* = lit-c* + int),
5565           fixes bug #1450796
5566         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
5567           OP_SYMBOL
5568
5569 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
5570
5571         * src/.version: increased version number to 2.5.5
5572         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
5573         linking is done manually in pic16 port's _linkEdit,
5574         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
5575         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
5576         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
5577         allocate asmop as AOP_ACC,
5578         (aopForRemat): added parameter 'bool result' in function declaration,
5579         (pic16_aopGet): return AOP_ACC when accessing WREG,
5580         (pic16_popGetTempReg): minor modification,
5581         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
5582         'pic16_allocWithIdx',
5583         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
5584         calling function in absolute addresses,
5585         (genAssign): take into account AOP_ACC asmop,
5586         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
5587         * src/pic16/pcoderegs.c: some debug functions and lines added,
5588         * src/pic16/ralloc.c (decodeRegType): added but commented out,
5589         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
5590         register too,
5591         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
5592         call to allocReg, not by manually allocating a new one,
5593         (pic16_assignRegisters): now before going through the register
5594         allocating functions mark all registers as free. This eliminates some
5595         side effects resulting from peephole parser done earlier in the backbone
5596
5597 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
5598
5599         * src/SDCCicode.c (geniCodeLogic),
5600         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
5601
5602 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
5603
5604         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
5605           (genSend): bugfix, do not allocate and free twice,
5606           (shiftRLong): handle partially overlapping aops
5607         * support/regression/tests/bitopcse.c: fixed warning redefined idata
5608
5609 2006-03-08 Borut Razem <borut.razem AT siol.net>
5610
5611         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
5612           for pic16
5613
5614 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
5615
5616         * support/regression/tests/bug1409955.c: new, added
5617         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
5618         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
5619           (aopForSym, aopOp): increment asmop.allocated if reused,
5620           (freeAsmop): decrement asmop.allocated and check for zero instead of
5621           using asmop.freed,
5622           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
5623           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
5624            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
5625            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
5626            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
5627            genSignedRightShift, genRightShift, genDataPointerGet,
5628            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
5629            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
5630             in reverse order from allocation,
5631           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
5632             added swappedLR to keep track
5633         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
5634           pdata & code for GCC, z80, gbz80 & hc08
5635         * support/regression/tests/zeropad.c: moved defines to testfwk.h
5636
5637 2006-03-08 Raphael Neider <rneider AT web.de>
5638
5639         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
5640
5641 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
5642
5643         * device/include/mcs51/c8051f410.h: new SiLabs mcu
5644         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
5645         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
5646
5647 2006-03-06 Borut Razem <borut.razem AT siol.net>
5648
5649         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
5650           made the linker quiet
5651
5652 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
5653
5654         * src/pic16/gen.c (genPcall): fixed bug #1443644
5655         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
5656         which dumps before the function entry point a data byte which represents
5657         the number of the local variables used by the specified function, added
5658         'xinst' for initial support for Extended Instruction Support,
5659         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
5660         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
5661         port->fun_prefix anymore (may change later),
5662         (genFunction, genEndFunction): do not store/restore local registers for
5663         _main (this should take care the --main-return command line option in
5664         the future),
5665         (genOr): removed some legacy pic-port instructions,
5666         * src/pic16/genarith.c (genAddLit): re-enabled old code because
5667         performing operations with SFR's causes data to be written more than
5668         once to each SFR. Perhaps SFRs should be handled in special cases...
5669         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
5670         pcode.h
5671         * src/pic16/main.c (_process_pragma): stack bound checking did not take
5672         into account for stack starting position,
5673         (struct OPTIONS pic16_optionsTable): added command line argument
5674         --extended or -y for Extended Instruction Support,
5675         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
5676         (deassignLRs): *** perhaps the most important change, old 'for' code
5677         (commented out for reference), didn't account for some registers which
5678         were left marked 'not free' after a pointer operation. The change
5679         reduces register usage a lot in some cases
5680
5681 2006-03-04 Borut Razem <borut.razem AT siol.net>
5682
5683         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
5684           _clean
5685         * support/regression/tests/bug-524697.c: decreased array size for
5686           mcs51 to fit into the internal RAM
5687         * support/regression/Makefile.in: a little bit more verbose
5688
5689 2006-03-03 Borut Razem <borut.razem AT siol.net>
5690
5691         * support/regression/fwk/lib/testfwk.c,
5692           support/regression/fwk/include/testfwk.h: introduced function
5693           _prints(), nonrecursive _printn(), call _initEmu() from main()
5694         * support/regression/ports/gbz80/support.asm,
5695           support/regression/ports/ucz80/support.asm,
5696           support/regression/ports/z80/support.asm,
5697           support/regression/ports/ds390/support.c,
5698           support/regression/ports/hc08/support.c,
5699           support/regression/ports/host/support.c,
5700           support/regression/ports/mcs51/support.c,
5701           support/regression/ports/xa51/support.c: added empty _initEmu()
5702           function
5703         * support/regression/ports/pic16/gpsim.cmd,
5704           support/regression/ports/pic16/spec.mk,
5705           support/regression/ports/pic16/support.c,
5706           support/regression/Makefile.in: added pic16 regression test
5707
5708 2006-03-01 Raphael Neider <rneider AT web.de>
5709
5710         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
5711           genConstPointerGet): use safe way of generating MOVFF to cover
5712             literals as well as registers, fixes bug #1440527
5713         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
5714             dereference
5715           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
5716             more correctly, fixes bug #1232186
5717           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
5718         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
5719             gplink guess the correct processor in more cases, applied patch
5720             from Till Riedel attached to and fixing bug #1436552
5721
5722 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5723
5724         * support/regression/tests/array.c: added, contains check for #1434401
5725         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
5726
5727 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
5728
5729         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
5730         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
5731         * device/include/mcs51/c8051f326.h,
5732         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
5733         * device/include/mcs51/c8051f000.h,
5734         * device/include/mcs51/c8051f018.h,
5735         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
5736           PCON_IDLE,PCON_STOP and added sfr16 definitions
5737
5738 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
5739
5740         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
5741           genGetWord): fixed bug 1409955
5742
5743 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
5744
5745         * device/include/hc08/mc68hc908gp32.h,
5746         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
5747
5748 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
5749
5750         * src/SDCCast.c (constExprValue): return NULL if not a value
5751         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
5752         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
5753         * support/regression/tests/bitfields.c: enabled signed bitfield for all
5754
5755 2006-02-13 Borut Razem <borut.razem AT siol.net>
5756
5757         * src/regression/ptrarg.c: added, fails due to bug #1430967
5758         * src/regression/Makefile: ptrarg.c added, ...
5759
5760 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
5761
5762         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
5763         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
5764
5765 2006-02-11 Borut Razem <borut.razem AT siol.net>
5766
5767         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
5768           print "Processor: xxx" message to stdout only if --verbose
5769
5770 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
5771
5772         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
5773         * support/regression/tests/bug1426356.c: added
5774         * support/regression/tests/bitfields.c: removed 2 tests
5775
5776 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
5777
5778         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
5779         * device/include/mcs51/c8051f330.h,
5780         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
5781           PCON_IDLE,PCON_STOP and added sfr16 definitions
5782         * device/lib/_divsint.c,
5783         * device/lib/_divuint.c,
5784         * device/lib/_divulong.c,
5785         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
5786           register bank bug for small stackauto
5787
5788 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
5789
5790         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
5791
5792 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
5793
5794         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
5795         * all.dsp: corrected several bin paths
5796         * device/include/mcs51/c8051f120.h,
5797         * device/include/mcs51/c8051f300.h,
5798         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
5799           to PCON_IDLE,PCON_STOP
5800         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
5801         * device/lib/printf_large.c (output_float): fixed bug 1388703
5802         * support/regression/tests/bug1057979.c: added test for bug 1388703
5803
5804 2006-02-08 Raphael Neider <rneider AT web.de>
5805
5806         * src/pic/pcode.c (pciTRIS): fixed typo,
5807           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
5808           (LinkFlow): fixed handling of flows that end in a call,
5809           (ReuseReg): perform safety check earlier
5810         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
5811             to work with flows at the beginning of a pBlock,
5812             fixes #1426557 (Symbol not previously defined),
5813           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
5814             usage information
5815           (RemoveUnusedRegisters): update register usage info
5816         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
5817             created, reuse existing ones instead
5818         * src/pic/gen.c (genPcall): fixed #1424719
5819
5820 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
5821
5822         * link/z80/lkmain.c,
5823         * link/z80/lklex.c,
5824         * link/z80/lkdata.c,
5825         * link/z80/aslink.h: fixed build on current cygwin:
5826         replaced getline() by lk_getline()
5827
5828 2006-02-01 Borut Razem <borut.razem AT siol.net>
5829
5830         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
5831           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
5832           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
5833           src/regression/bool1.c, src/regression/bool2.c,
5834           src/regression/bool3.c, src/regression/call1.c,
5835           src/regression/compare.c, src/regression/compare10.c,
5836           src/regression/compare2.c, src/regression/compare3.c,
5837           src/regression/compare4.c, src/regression/compare5.c,
5838           src/regression/compare6.c, src/regression/compare7.c,
5839           src/regression/compare8.c, src/regression/compare9.c,
5840           src/regression/configword.c, src/regression/for.c,
5841           src/regression/inline.c, src/regression/mult1.c,
5842           src/regression/nestfor.c, src/regression/or1.c,
5843           src/regression/pointer1.c, src/regression/ptrfunc.c,
5844           src/regression/rotate1.c, src/regression/rotate2.c,
5845           src/regression/rotate3.c, src/regression/rotate4.c,
5846           src/regression/rotate5.c, src/regression/rotate6.c,
5847           src/regression/rotate7.c, src/regression/string1.c,
5848           src/regression/struct1.c, src/regression/sub.c,
5849           src/regression/sub2.c, src/regression/switch1.c,
5850           src/regression/while.c, src/regression/xor.c,
5851           src/regression/create_stc, src/regression/simulate,
5852           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
5853           regression tests
5854         * src/regression/gpsim_assert.h: added
5855
5856 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
5857
5858         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
5859         ((void (code *) (void)) 0) ();
5860         * as/hc08/aslex.c,
5861         * as/hc08/aslink.h,
5862         * as/hc08/asm.h,
5863         * as/hc08/asmain.c,
5864         * as/hc08/lkdata.c,
5865         * as/hc08/lklex.c,
5866         * as/hc08/lkmain.c,
5867         * as/mcs51/aslex.c,
5868         * as/mcs51/aslink.h,
5869         * as/mcs51/asm.h,
5870         * as/mcs51/asmain.c,
5871         * as/mcs51/lkdata.c,
5872         * as/mcs51/lklex.c,
5873         * as/mcs51/lkmain.c,
5874         * as/z80/aslex.c,
5875         * as/z80/asm.h,
5876         * as/z80/asmain.c: fixed build on current cygwin:
5877         replaced getline() by as_getline()
5878
5879 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
5880
5881         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
5882         declarator in the symbol chain
5883         * src/SDCCsymt.h,
5884         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
5885         parameter list for function pointers
5886         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
5887         * support/regression/tests/bug-716242.c: added
5888
5889 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
5890
5891         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
5892         offset if possible
5893         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
5894
5895 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
5896
5897         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
5898         inifinitely recurseable, added static
5899         * support/regression/tests/bug-1408066.c: added
5900
5901 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
5902
5903         * src/SDCCicode.h,
5904         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
5905         renamed, added possibility to create "postLoopLbl"-labels
5906         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
5907         newiTempLoopHeaderLabel
5908         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
5909         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
5910         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
5911         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
5912         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
5913         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
5914         (basicInduction): fixed bug #136564, made static,
5915         (loopInduction): changed parameter of basicInduction, made static,
5916         (addPostLoopBlock): added
5917         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
5918         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
5919         findLoopEndSeq
5920         * support/regression/tests/bug-136564.c: added
5921         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
5922         --std-sdcc99 to LIBSDCCFLAGS
5923
5924 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
5925
5926         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
5927         while loop
5928         * support/regression/tests/bug-1406131.c: added
5929
5930 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
5931
5932         * src/SDCCast.c (decorateType): fix promotion of unary minus
5933         * src/SDCCsymt.c (computeType): beautified
5934         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
5935         (valUnaryPM, valComplement): fix sign and promotion,
5936         (valNot): ANSI: result type is int (SDCC: unsigned char)
5937         * support/regression/tests/uminus.c: speedup by removing superflous
5938         test case 'int'
5939         * support/regression/tests/onebyte.c: added promotion and signedness
5940         tests for unary minus
5941         * support/regressions/tests/bug-477927.c: disable warning about
5942         uninitialized variables
5943         * support/regression/tests/not.c: added
5944
5945 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
5946
5947         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
5948         * src/mcs51/gen.c (gen51Code): show final register usage after
5949         fillGaps in asm with --i-code-in-asm
5950         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
5951         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
5952         incUsed, rliveClear, adjustIChain): made static,
5953         (setFromRange): excluded because it's unused,
5954         (findPrevUseSym, markWholeLoop): added,
5955         (findPrevUse): rewritten; fixes bug 895992; now a complete search
5956         through all branches of predecessors enables sdcc to emit the warning
5957         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
5958         (rlivePoint): made static, added parameter emitWarnings which is only
5959         true during the first run out of two,
5960         (findRecursiveSucc, findRecursivePred): removed,
5961         (computeLiveRanges): made static, added parameter emitWarnings,
5962         (dumpIcRlive): added for debugging only
5963         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
5964         removed prototype of setFromRange()
5965         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
5966         in call of computeLiveRanges()
5967         * support/regression/tests/bug-895992.c: added
5968         * support/regression/tests/bug-971834.c: added
5969         * support/valdiag/tests/bug-895992.c: added
5970         * support/valdiag/tests/bug-971834.c: added
5971
5972 2005-12-18 Raphael Neider <rneider AT web.de>
5973
5974         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
5975           (genUnpackBits): improved code for direct operands,
5976           (genPackBits): improved code for literal assignment to bitfields
5977             and for direct destination operands (no FSR indirection),
5978             prevented redundant AND, fixes #1362800,
5979           (AccLsh): added parameter to disable masking of the result
5980         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
5981           skip instructions with side-effects (like incfsz),
5982           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
5983         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
5984         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
5985           fixes #1375263
5986
5987 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
5988
5989         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
5990         volatile variables as spill location
5991
5992 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
5993
5994         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
5995         replacing literals
5996         * support/regression/tests/bug-1376320.c: added
5997
5998 2005-12-08 Raphael Neider <rneider AT web.de>
5999
6000         * src/pic/device.c: renamed is_shared to pic14_is_shared
6001         * src/pic/gen.c (genIfx): re-enabled handling of sbits
6002         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
6003           (is_valid_identifier): added for above workaround
6004
6005 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
6006
6007         * device/lib/Makefile.in: fixed to enable port-specific-objects
6008         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
6009           char, thanks Hubert Sack
6010         * doc/sdccman.lyx: documented --xstack-loc,
6011           elaborated a bit more on interrupts and pitfalls,
6012           removed "setjmp/longjmp unsupported",
6013           documented some unsupported C99 features
6014         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
6015         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
6016           if, thanks Hubert Sack
6017         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
6018         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
6019           make make_library
6020         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
6021           regression tests can report resource usage (rfe 700441)
6022         * support/regression/collate-results.py: report resource usage
6023         * support/regression/ports/ds390/spec.mk,
6024         * support/regression/ports/hc08/spec.mk,
6025         * support/regression/ports/mcs51/spec.mk,
6026         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
6027         * support/regression/ports/ds390/uCsim.cmd,
6028         * support/regression/ports/hc08/uCsim.cmd,
6029         * support/regression/ports/mcs51/uCsim.cmd,
6030         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
6031         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
6032           library, use the default one
6033         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
6034           building the library
6035
6036 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
6037
6038         * config.dsp: added dependency on .version and configure_vc.awk
6039         * device/include/setjmp.h: updated for --stack-auto and --xstack
6040         * device/include/mcs51/at89c51snd1c.h: corrected line endings
6041         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
6042         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
6043         * device/lib/libsdcc.lib: added _setjmp
6044         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
6045           (decorateType): fixed bug 1372851,
6046           (optimizeGetHbit): fixed warning
6047         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
6048           array initialisation
6049         * support/regression/tests/bug1057979.c: added test for bug 1358192
6050         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
6051
6052 2005-12-03 Borut Razem <borut.razem AT siol.net>
6053
6054         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
6055           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
6056
6057 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
6058
6059         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
6060         createIval): implement symbol independant "flexible array member",
6061         (createIvalCharPtr): implemented flexible array initialisation with a
6062         string
6063         * src/SDCCsymt.c (copyStruct): removed,
6064         (getSize): fixed misleading comment,
6065         (getAllocSize): removed, the additional allocation size is now in
6066         sym->flexArrayLength,
6067         (checkStructFlexArray): new, syntax checks for flexible array members,
6068         (compStructSize): added syntax checks for "flexible array members"
6069         (copyStruct): removed,
6070         (copyLinkChain): removed inefficient fix for bug 770487
6071         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
6072         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
6073         symbol->flexArrayLength
6074         * src/SDCCerr.c,
6075         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
6076         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
6077         * support/regression/tests/structflexarray.c: added
6078         * support/valdiag/tests/structflexiblearray.c: added
6079
6080 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
6081
6082         * src/SDCCast.c (decorateType): fixed bug 1368489
6083         * support/Util/SDCCerr.c,
6084         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
6085
6086 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6087
6088         * device/include/mcs51/at89c51snd1c.h: added file submitted by
6089           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
6090
6091 2005-11-27 Borut Razem <borut.razem AT siol.net>
6092
6093         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
6094           support/cpp2/mkdeps.h: added command line option
6095           -obj-ext=<extension> to SDCPP to define object file externion, used
6096           for generation of make dependencies (-M)
6097         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
6098
6099 2005-11-26 Borut Razem <borut.razem AT siol.net>
6100
6101         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
6102           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
6103           added pic and pic16 libraries
6104
6105 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6106
6107         * device/include/float.h: Corrected typo in prototype of __fsgt
6108
6109 2005-11-25 Borut Razem <borut.razem AT siol.net>
6110
6111         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
6112           added creation of model-mcs51-stack-auto libraries
6113
6114 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
6115
6116         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
6117         and fields-list too
6118         * src/SDCCast.c (createIvalArray): removed obsolete comment
6119
6120 2005-11-24 Borut Razem <borut.razem AT siol.net>
6121
6122         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
6123           added missing device/lib/mcs51/crt*.asm sources
6124
6125 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
6126
6127         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
6128
6129 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
6130
6131         * device/lib/_fs2schar.c,
6132         * device/lib/_fs2sint.c,
6133         * device/lib/_fs2slong.c: optimized inline asm
6134
6135 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6136
6137         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
6138           Better handling of floats between -1.0 and 0.0.
6139
6140 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6141
6142         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
6143           (the missing "if"s prohibited removal of redundant labels)
6144
6145 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6146
6147         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
6148           Properly convert floats between -1.0 and 0.0 to long, int, and char
6149           types (max integer value of negative floats tends to zero).
6150         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
6151           Removed changes made so to work properly with floats between
6152           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
6153           and _fs2char.c
6154
6155 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
6156
6157         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
6158         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
6159         (genCast) cosmetic change
6160         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
6161         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
6162         from mcs51
6163         * support/regression/tests/bitfields (testSignedBitfields): added
6164
6165 2005-11-18 Borut Razem <borut.razem AT siol.net>
6166
6167         * sdcc/device/lib/Makefile.in: remove all unnecessary files
6168         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
6169           introduced SILENT option to make building of pic16 libraries less
6170
6171 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6172
6173         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
6174           Now they work properly with floats between -1.0 and 0.0
6175         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
6176
6177 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
6178
6179         * src/SDCCicode.c (printOperand): added missing else
6180
6181 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
6182
6183         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
6184         reformatted for better readability
6185         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
6186         signed bitfields
6187
6188 2005-11-17 Borut Razem <borut.razem AT siol.net>
6189
6190         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
6191           introduced SILENT option to make building of pic16 libraries less
6192           verbose - used for nightly snapshot build
6193         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
6194           available on Win32 platforms.
6195         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
6196           medium, large, pic and pic16
6197
6198 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6199
6200         * device/lib/printf_large.c: Temporary patch for bug 1358192:
6201           printf("%f"...) sets fraction to zero.
6202
6203 2005-11-16 Raphael Neider <rneider AT web.de>
6204
6205         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
6206           fixes #1357221
6207         * src/pic/gen.c (genIfx): implemented for CARRY bit
6208         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
6209           to generic pointers, fixes #1357332,
6210           (pic16_movLit2f): NEW,
6211           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
6212
6213 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
6214
6215         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
6216
6217 2005-11-11 Raphael Neider <rneider AT web.de>
6218
6219         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
6220         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
6221           compute pointer's type from operand,
6222           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
6223           improved single bit reads, fixes bug #1353379
6224
6225 2005-11-09 Borut Razem <borut.razem AT siol.net>
6226
6227         * support/scripts/sdcc.nsi: added lib/pic to the package
6228
6229 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
6230
6231         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
6232
6233 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
6234
6235         * support/regression/tests/bug1348008.c: added
6236         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
6237         * support/regression/tests/bug1337835.c: updated comment
6238
6239 2005-11-06 Borut Razem <borut.razem AT siol.net>
6240
6241         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
6242           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
6243           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
6244           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
6245           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
6246           dynamic construction of cl_error_class and derivates - 2.nd try
6247
6248 2005-11-05 Borut Razem <borut.razem AT siol.net>
6249
6250         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
6251           bug, which caused Bus Errors on sparc solaris
6252
6253 2005-11-04 Borut Razem <borut.razem AT siol.net>
6254
6255         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
6256           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
6257           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
6258           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
6259           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
6260           and derivates to resolve the initialization problem on OSX
6261
6262 2005-11-02 Borut Razem <borut.razem AT siol.net>
6263
6264         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
6265           corrected typo - #include <winsock2.h>
6266
6267 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
6268
6269         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
6270           (_asxxxx_mapping): added org directive for future enhancements
6271
6272 2005-11-01 Borut Razem <borut.razem AT siol.net>
6273
6274         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
6275           enabled sockets on WIN32
6276         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
6277
6278 2005-10-31 Borut Razem <borut.razem AT siol.net>
6279
6280         * support/regression/generate-cases.py: escape backslashes in {testcase}:
6281           WIN32 backslash path delimiters should be escaped when used in C strings
6282         * support/regression/tests/bitfields.c: exclude failing assertions for
6283           __CYGWIN32__ and __MINGW32__ hosts
6284
6285 2005-10-30 Borut Razem <borut.razem AT siol.net>
6286
6287         * src/SDCCutil.c: corrected double comparison typo
6288
6289 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
6290
6291         * device/lib/medium/Makefile: added for new memory model medium
6292         * device/include/asm/mcs51/features.h: updated for medium/pdata
6293         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
6294           added Multiply & Accumulate sbit's and MAC0_PAGE define
6295         * device/include/mcs51/c8051f300.h: added sfr16 definitions
6296         * device/include/mcs51/c8051f310.h: added sfr16 definitions
6297         * device/lib/_mullong.c: update for medium model
6298         * device/lib/incl.mk: added medium model
6299         * doc/sdccman.lyx: documented medium model
6300         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
6301         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
6302         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
6303         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
6304           (allocParms): set SCLS and OCLS to pdata for medium model
6305         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
6306           for pdata,
6307           (powof2): return <0 if not power of 2
6308         * src/avr/gen.c (genBitWise): use updated powof2
6309         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
6310           (shiftR2Left2Result): small optimization in setup, save acc when storing,
6311           (shiftLLeftOrResult): use B if necessary
6312         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
6313         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
6314         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
6315         * support/regression/Makefile.in: added test-mcs51-medium
6316         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
6317
6318 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
6319
6320         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
6321         specifier unsigned
6322         * device/lib/time.c (mktime): fixed bug 1334315
6323
6324 2005-10-28 Raphael Neider <rneider AT web.de>
6325
6326         * device/include/pic/p16f_common.inc: added common declarations
6327         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
6328
6329 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
6330
6331         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
6332           (aopPutUsesAcc): added to predict accumulator use,
6333           (assignResultValue): save acc if necessary,
6334           (genMinusDec): store result if indirectly addressed,
6335           (genDivOneByte):  save acc if necessary,
6336           (movLeft2Result): bugfix if left already in acc,
6337           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
6338             attention to accumulator use (esp. pdata),
6339           (genReceive): receive pdata correctly
6340         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
6341         * src/SDCCicode.h: added isOperandInPagedSpace prototype
6342
6343 2005-10-27 Raphael Neider <rneider AT web.de>
6344
6345         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
6346
6347 2005-10-27 Raphael Neider <rneider AT web.de>
6348
6349         * .version: changed version to 2.5.4
6350         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
6351         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
6352           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
6353             arithmetics support routines
6354         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
6355         * device/lib/Makefile.in: also create installdir for pic
6356
6357         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
6358           pic14 port as well
6359         * src/pic/device.c (dump_sfr): rewritten to delegate register
6360           placement to the linker (use `extern sym' rather than sym EQU addr),
6361           (validAddress): fixed to check last specified address
6362         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
6363           (popGetLit): truncate literal value to 8 bit,
6364           (popGet): moved assert to more appropriate place
6365           (popGetExternal): create pCode operand from and mark the according
6366             symbol as being `extern'
6367           (popGetAddr): added sanity check on immediate's offset, provide
6368             GPOINTER tag on demand
6369           (aopPut): fixed for immediates,
6370           (mov2w_op): move operand's address or contents to WREG (depending on
6371             operand type), safer variant of mov2w,
6372           (movwf,call_libraryfunc): NEW, handy abbreviations,
6373           (get_argument_pcop,get_return_val_pcop,pass_argument,
6374           get_returnvalue): interface for accessing function parameters and
6375             return values,
6376           (assignResultValuei,genRet): use new parameter/return value interface
6377           (pic14_getDataSize): back to old version handling generic pointers,
6378           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
6379             provided implementation and/or fixed old one,
6380           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
6381             calls, removed legacy 8051 reference code
6382           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
6383           (loadSignToC): NEW, move the operands sign bit to CARRY,
6384           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
6385             genRightShiftSigned, accepts negative shift counts,
6386           (setup_fsr): load FSR and adjust IRP (indirect memory access),
6387           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
6388             generic pointers, __data pointers and __code pointers,
6389           (genUnpackBits,genPackBits): rewritten to work with generic pointers
6390             and signed bitfields, limit bitfields to 8 bit,
6391           (genDataPointerGet): fixed number of bytes read,
6392           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
6393           (genPointerGet,genPointerSet): fixed handling of __code pointers,
6394             pointers to constant data are no longer assumed to point to __code
6395             space, removed invalid pointer types,
6396           (bitpatternFromVal): retrieve the PICs representation of an integer
6397             or float literal,
6398           (genDataPointerSet): fixed assigning to po_immediate operands,
6399           (genGenPointerSet): implemented as library call,
6400           (genIfx): fixed incorrect condition,
6401           (genAddrOf): limit generic pointers' addresses to 2 bytes,
6402             provide GPOINTER tag according to destination's storage class,
6403           (genCast): added code to handle casting to generic pointers, added
6404             sign-/zero extension of the result
6405           (aop_isLitLike,op_isLitLike): fixed handling of immediates
6406         * src/pic/gen.h: added macros to access IRP bit in STATUS register
6407         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
6408           extend the result
6409         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
6410           address/register resides in the shared banks
6411           (emitSymbolToFile): improved to handle global and `pinned' symbols,
6412             put all variables into separate sections (have the linker arrange
6413             them)
6414           (picglue): put init code and interrupt handlers in separate sections
6415         * src/pic/main.c: added port specific options table, modified to PORT
6416           structure to make GPOINTERs 3 byte, added pic14_options
6417           (_pic14_do_link): private linking routine (update paths to libraries,
6418             add libsdcc.lib by default)
6419         * src/pic/main.h: declare pic14_options
6420         * src/pic/pcode.c: fixed instructions i/o relations,
6421           (RegCond): reverted to correct version,
6422           (newpCodeOpLit): truncate literals to 8 bit,
6423           (genericPrint): added debug output,
6424           (getRegFromInstruction): fixed for various operand types, simplified
6425           (BuildFlow): fixed broken handling of isntructions with labels
6426           (LinkFlow): start at last instruction in flow (skip trailing comments),
6427             pass the flow on to the next instruction after CALL
6428           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
6429           (insertPCodeInstruction): fixed inserting after a skip instruction,
6430           (DoBankSelect): fixed for labeled instructions
6431           (OptimizepBlock): honor --nopeep switch
6432           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
6433         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
6434         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
6435           (pCodeOptime2pCodes): allow disabling this optimization via
6436             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
6437             but is still buggy), started implementation of a dataflow based
6438             pCode optimization (CSE + dead code elimination)
6439           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
6440         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
6441           names are independant of the stack location and therefore portable across
6442           devices
6443
6444 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
6445
6446         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
6447           (selectSpil): fixed bug 1337835 by not spilling bit variables
6448         * support/regression/tests/bug1337835.c: added test for this bug
6449         * src/mcs51/peeph.def: restart after rule 3.c,
6450           addded rules 263.x to optimize loading constants
6451
6452 2005-10-26 Raphael Neider <rneider AT web.de>
6453
6454         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
6455         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
6456           (genAssign): emit warning when casting literals to generic pointer
6457             type, also applies when taking the address of a fixed variable,
6458           (genCast): improved casting to generic pointers
6459         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
6460           extern variables, added verbose error message
6461         * device/include/pic16/{string.h,errno.h}: added #pragma library c
6462
6463 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
6464
6465         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
6466         carry must be complemented too
6467         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
6468         could be emitted by genMinus
6469         * src/SDCCval.c (constVal): fixed bug 1305065
6470
6471 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
6472
6473         * src/SDCCast.c (addCast): added promotion for bit variables
6474         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
6475         promotion casts + optimisation
6476         (optimizeGetWord): fix warning 'i' might be used uninitialized
6477         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
6478         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
6479
6480 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
6481
6482         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
6483         all chars are promoted to int; promotion should be handled in SDCCast.c
6484
6485 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6486
6487         * device/lib/_strcmp.c: Fixed bug 1326457
6488
6489 2005-10-11 Raphael Neider <rneider AT web.de>
6490
6491         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
6492         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
6493
6494 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
6495
6496         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
6497         * support/regression/tests/sfr16.c: added test for the sfr32 bug
6498
6499 2005-10-04 Raphael Neider <rneider AT web.de>
6500
6501         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
6502           device/lib/pic16/pics.all: added pic18f1320
6503         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
6504
6505 2005-09-30 Raphael Neider <rneider AT web.de>
6506
6507         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
6508         * src/pic16/devices.inc: NEW, provides device descriptions
6509         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
6510
6511 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
6512
6513         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
6514           GETHBIT
6515
6516 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
6517
6518         * doc/sdccman.lyx: updated Highest Order Bit documentation,
6519           documented Any Order Bit, Higher Order Byte and Higher Order Word
6520         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
6521         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
6522           (optimizeGetAbit): new, to get any bit, not only the high bit,
6523           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
6524           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
6525           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
6526           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
6527             RIGHT_OP: also try GETBYTE, GETWORD optimization,
6528             GETABIT, GETBYTE, GETWORD: decorate them,
6529           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
6530           (ast_print): added GETABIT, GETBYTE, GETWORD
6531         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
6532         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
6533           (geniCodeBinary): new generic binary icode,
6534           (ast2iCode): added GETABIT, GETBYTE, GETWORD
6535         * src/port.h: updated comment for PORT.hasExtBitOp
6536         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
6537           (genGetByte): new, to get a single byte,
6538           (genGetWord): new, to get a word from a long,
6539           (gen51Code): added GETABIT, GETBYTE, GETWORD
6540         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
6541
6542 2005-09-23 Raphael Neider <rneider AT web.de>
6543
6544         * configure.in, configure: have device/lib/pic configured
6545         * device/lib/Makefile.in: added model-pic14
6546         * device/lib/clean.mk: added pic/ to clean rule
6547         * device/lib/pic: added rudimentary pic14 library providing support
6548           functions for multiplication/division/generic pointer access
6549         * src/SDCCopt.c (convilong): mark support functions as extern
6550           for pic14 port as well
6551         * src/pic/gen.c (genMult): added assertions,
6552           (genpic14Code): emit warning on unhandled iCodes
6553         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
6554         * src/pic/pcode.c (pCodeOpCopy),
6555         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
6556           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
6557           SFR_REGISTER}), made safe for future extensions
6558         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
6559           instructions even if preceeded by SKIP instructions (also remove
6560           them); removed unused code
6561         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
6562           prevents leaving parts of the structure uninitialized after copying
6563
6564 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
6565
6566         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
6567           ago by me
6568         * support/regression/tests/addsub.c: added test for the bug
6569
6570 2005-09-21 Raphael Neider <rneider AT web.de>
6571
6572         * device/include/pic16/pic18f1220.h,
6573           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
6574         * device/lib/pic16/Makefile.rules: added missing opening paren
6575         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
6576           are provided in genutils.c,
6577           (genUminusFloat,genUminus,genCmpEq): added asserts on different
6578           operand/result sizes,
6579           (genCmp): assert on NULL pointers first, then check deref'ed values
6580         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
6581           result size
6582
6583 2005-09-18 Raphael Neider <rneider AT web.de>
6584
6585         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
6586           as these are now unused,
6587           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
6588         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
6589           local, avoids uninitialized pointer dereference on r->name
6590         * src/pic16/ralloc.c (newReg): fixed indentation
6591
6592 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
6593
6594         * src/SDCCval.c (constVal): fixed bug 730366
6595         * support/Util/SDCCerr.c,
6596         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
6597
6598 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
6599
6600         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
6601
6602 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
6603
6604         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
6605
6606 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
6607
6608         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
6609           (hex2dec): made hex_digit unsigned char, removed ascii dependance
6610         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
6611           (hex2dec): made hex_digit unsigned char, removed ascii dependance
6612         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
6613         * packihx/packihx.c (hexDigit): made c unsigned char
6614         * as/mcs51/lklibr.c (fndsym),
6615         * link/z80/lkgb.c (gb),
6616         * link/z80/lklibr.c (fndsym),
6617         * link/z80/lkrloc.c (relr),
6618         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
6619         * src/SDCC.lex (checkCurrFile, process_pragma),
6620         * src/SDCCglue.c (spacesToUnderscores),
6621         * src/SDCCmain.c (setParseWithComma, processFile),
6622         * src/asm.c (tvsprintf, printCLine),
6623         * src/avr/gen.c (emitcode, aopPut),
6624         * src/ds390/gen.c (emitcode),
6625         * src/hc08/gen.c (emitcode, emitinline),
6626         * src/mcs51/gen.c (emitcode, genInline),
6627         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
6628           tokenizeLineNode),
6629         * src/pic/ralloc.c (debugLog),
6630         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
6631           tokenizeLineNode),
6632         * src/pic16/ralloc.c (debugLog),
6633         * src/z80/main.c (_process_pragma):
6634            made all ctype.h function calls safe
6635         * src/SDCCopt.c: include math.h for fabs
6636         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
6637           and used them throughout the code to make ctype.h function calls safe
6638         * src/ds390/main.c (asmLineNodeFromLineNode),
6639         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
6640         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
6641            unsigned char*
6642         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
6643           (newpCodeAsmDir): made ctype.h function calls safe
6644         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
6645           pic16_emitcode):  made lbp unsigned char*
6646         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
6647           (pic16_newpCodeAsmDir): made ctype.h function calls safe
6648         * src/xa51/gen.c (emitcode),
6649         * src/z80/gen.c (_emit2): made lbp unsigned char*
6650         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
6651            char*
6652
6653 2005-09-05 Raphael Neider <rneider AT web.de>
6654
6655         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
6656           access bank splitpoint
6657
6658 2005-09-05 Raphael Neider <rneider AT web.de>
6659
6660         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
6661
6662 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
6663
6664         * .version: changed to version 2.5.3
6665         * doc/sdccman.lyx: changed version to 2.5.3,
6666           documented --codeseg and --constseg and pragma codeseg and constseg,
6667           documented bit parameters (reentrant) and bit returning
6668         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
6669            currFunc->recvSize, but is this ok for all ports?
6670           (ast2iCode): result of ~ on unsigned char must be cast to int for
6671            bool to work
6672         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
6673           function pointers in bit space
6674         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
6675           (processFuncArgs): call port.reg_parm() with reentrancy info
6676         * src/port.h,
6677         * src/avr/main.c,
6678         * src/ds390/main.c,
6679         * src/hc08/main.c,
6680         * src/pic/main.c,
6681         * src/pic16/main.c,
6682         * src/xa51/main.c,
6683         * src/z80/main.c: port.reg_parm prototype extended with
6684           "bool reentrant" parameter
6685         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
6686           options.stackAuto for allocating bit register parameters
6687         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
6688           (genSend): set BitBankUsed if it is,
6689           (selectRegBank): factored out of genCall for use in genPcall,
6690           (genCall): removed redundant dtype assignmen, use selectRegBank,
6691           (genPcall): handle returning in Carry properly, save in F0 if needed,
6692           (genReceive): handle bit register parameters
6693         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
6694           (mcs51_assignRegisters): enable bit registers for all reentrant
6695            functions and don't set BitBankUsed unconditionally
6696         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
6697         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
6698         * support/regression/tests/funptrs.c: added tests for BOOL and for return
6699
6700 2005-08-27 Borut Razem <borut.razem AT siol.net>
6701
6702         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
6703         ppc-osx (Darwin) does not support -u option. It seems that it is
6704         supported only on Linux - GNU cp
6705
6706 2005-08-25 Borut Razem <borut.razem AT siol.net>
6707
6708         * sim/ucsim/gui.src/serio.src/Makefile.in,
6709           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
6710           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
6711           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
6712           install and strip, since the strip at /usr/ccs/bin should be used
6713           on solaris
6714
6715 2005-08-24 Borut Razem <borut.razem AT siol.net>
6716
6717         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
6718
6719 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
6720
6721         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
6722         ffffffffu
6723
6724 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
6725
6726         * as/mcs51/aslink.h: completed lkrloc.c prototypes
6727         * as/mcs51/lkmain.c (link_main): fixed warning
6728         * device/include/stdbool.h: ds390 has no advanced bit support yet
6729         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
6730         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
6731         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
6732           and updated their macros
6733         * src/SDCCval.c (constVal): updated comment for renamed b_long
6734
6735 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
6736
6737         * as/mcs51/asdata.c: changed ctype['['] to BINOP
6738         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
6739           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
6740           (oprio): set priority for '['
6741         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
6742            and adb_24_bit
6743         * as/mcs51/asm.h: added defines R_BIT and S_BIT
6744         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
6745         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
6746         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
6747           added overlayable BIT_BANK area
6748         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
6749           (summary2): explain 'T' in legenda
6750         * as/mcs51/lkrloc.c: replaced old K&R style,
6751           (relr): added R_BIT processing,
6752           (errmsg): added "Bit-addressable relocation error",
6753           (adb_bit): added for converting from byte- to bit-addressable space,
6754           (adb_24_bit): added for converting from byte- to bit-addressable space
6755         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
6756            used in reentrant functions now even as return value
6757         * device/lib/_gptrput.c (_gptrput): removed obsolete code
6758         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
6759           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
6760         * src/SDCCglobl.h: added indicator BitBankUsed
6761         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
6762            the bit registers b0-b7
6763         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
6764           (geniCodeCast): fixed bug 1263853,
6765           (geniCodeLogicAndOr): put result in bool or char,
6766           (geniCodeReceive): added parameter func for accessing the return type,
6767           (geniCodeFunctionBody): pass func to geniCodeReceive
6768         * src/SDCCmain.c: added indicator BitBankUsed
6769         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
6770         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
6771           (checkSClass): don't put automatic bool/bit on stack,
6772           (checkFunction): removed check on function cannot return bit
6773         * src/SDCCsymt.h: added newBoolLink prototype
6774         * src/mcs51/gen.c (rb1regs): added bit registers,
6775           (movc): created for assigning to carry,
6776           (pushReg, popReg): created for pushing registers,
6777           (sameRegs): check both AOP_REG and AOP_CRY types,
6778           (aopOp): handle bit registers,
6779           (aopPut): optimization no self-assign,
6780           (saveRegisters): push reg->base (bits) only once for bit registers,
6781            and use pushReg,
6782           (unsaveRegisters): pop reg->base only once and use popReg,
6783           (assignResultValue): added parameter func and return in carry for bits,
6784           (genIpush): optimization no reload in A if not changed,
6785           (genSend): bit parameters in reentrant functions are passed in bit
6786            registers by first assigning to bits in B, then save registers and
6787            copy B to bits,
6788           (genCall): handle returning in Carry properly, save it in F0 if needed,
6789           (genPcall): updated assignResultValue call, this is not safe yet for bit
6790            returning function !!!
6791           (genFunction): don't generate equ's for bit registers and use pushReg,
6792           (genEndFunction): take care of bit returning functions and use popReg,
6793           (genRet): return bit in Carry,
6794           (genIfx): optimize bit registers and other directly addressable bits,
6795           (genReceive): updated assignResultValue call
6796         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
6797           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
6798            registers when using stack-auto
6799         * src/mcs51/ralloc.c (_G): added allBitregs,
6800           (regs8051): added the bit registers,
6801           (createStackSpil): use macro IS_BIT,
6802           (getRegBit): added to allocate a bit register, else spill,
6803           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
6804           (updateRegUsage): factored out to ease stepping while debugging,
6805           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
6806            also allocate bit registers,
6807           (fillGaps): handle bit registers,
6808           (findAllBitregs): added to create bit vector with all bit registers,
6809           (mcs51_allBitregs): returns this bit vector,
6810           (mcs51_assignRegisters): when using stack-auto use bit registers for
6811            passing parameters and creating local variables
6812         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
6813
6814 2005-08-22 Borut Razem <borut.razem AT siol.net>
6815
6816         * device/lib/Makefile.in: replaced find option -or with -o
6817           to make it run on solaris
6818
6819 2005-08-22 Raphael Neider <rneider AT web.de>
6820
6821         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
6822           fixes #1265442 (crash on Solaris)
6823
6824 2005-08-20 Borut Razem <borut.razem AT siol.net>
6825
6826         * configure, configure.in: added tests for libsocket and libnsl libraries,
6827           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
6828           from support/regression/Makefile.in
6829         * support/regression/Makefile.in: added
6830         * device/lib/pic16/Makefile.common.in: force make to use bash shell
6831         * sim/ucsim/libtool: regenerated on sparc-solaris
6832         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
6833           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
6834           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
6835           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
6836           sparc-solaris, which doesn't use GNU ld linker
6837         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
6838         * as/Makefile: find on sparc-solaris does not support -maxdepth option
6839
6840 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
6841
6842         * src/mcs51/peeph.def: updated comments
6843
6844 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6845
6846         * device/lib/_gptrget.c,
6847         * device/lib/_gptrput.c: slightly shorter
6848         * doc/sdccman.lyx: incremented version
6849         * src/mcs51/peeph.def: moved peephole comments to the line of first
6850           change to better keep line correlation, reanimated 186.e
6851         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
6852
6853 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
6854
6855         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
6856           David Saxton with quotes around file name.
6857
6858 2005-08-15 Borut Razem <borut.razem AT siol.net>
6859
6860         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
6861           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
6862           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
6863           make tests run on x86_64 platform
6864
6865 2005-08-13 Raphael Neider <rneider AT web.de>
6866
6867         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
6868           as it might be executed DURING a build (parallel make is wonderful)
6869
6870 2005-08-13 Raphael Neider <rneider AT web.de>
6871
6872         * device/lib/Makefile.in (port-specific-objects-pic16):
6873           revert to cp $(PORT)/bin/*.* $(PORTDIR)
6874         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
6875           dependency
6876         * device/lib/pic16/Makefile.rules: build subdirs before creating
6877           the library, removed builddir rule, create $(builddir) early in
6878           recurse rule, use empty recurse rule for leaf directories
6879         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
6880           mkdir errors (race condition), removed duplicate suffix "hex"
6881           from clean rules
6882         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
6883         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
6884           prevents mkdir -p from aborting on Alpha
6885
6886 2005-08-12 Raphael Neider <rneider AT web.de>
6887
6888         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
6889           db-statements in order to allow for arrays of pointers in code
6890           sections to be placed without interspersed 0-padding, fixes
6891           bug #1256215
6892         * (emitStatistics): fixed division by zero for pic18f1220
6893         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
6894           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
6895         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
6896         * (pic16_pCodeConstString): keep track of already emitted string
6897           literals to prevent "duplicate definitions of symbol _str_NR"
6898         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
6899           debug message
6900         * device/lib/Makefile.in: ignore failing PIC16 library builds
6901         * device/lib/pic16/Makefile: do not build if gputils are missing
6902         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
6903
6904 2005-08-10 Raphael Neider <rneider AT web.de>
6905
6906         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
6907           my last commit)
6908
6909 2005-08-10 Raphael Neider <rneider AT web.de>
6910
6911         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
6912           Rokas' patch to add the new fixed point type "__fixed16x16"
6913         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
6914           functions for __fixed16x16 arithmetics
6915         * device/lib/pic16: reimplemented the build system to support
6916           a separate build directory, better handling of libio (create
6917           the library in a separate subdir for each architecture) and
6918           easier configuration (centralized in Makefile.common)
6919
6920 2005-08-07 Raphael Neider <rneider AT web.de>
6921
6922         * src/pic16/gen.c (genrshTwo): fixed sign extension
6923         * src/pic16/device.c: added pic18f2320, 4220 and 4320
6924         * device/include/pic16/pic18f2220.h: changed some bit definitions,
6925           added T0CONbits
6926         * device/include/pic16/pic18f4220.h: NEW, header for
6927           pic18f4220 and pic18f4320
6928         * device/include/pic16/pic18fregs.h: added new devices,
6929           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
6930         * device/include/pic16/signal.h: resolved name clashes
6931           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
6932           to also allow testing for interrupt enable bits, added
6933           comments on how to use the macros
6934         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
6935         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
6936           register definitions for the devices
6937         * device/lib/pic16/pics.all: added new devices
6938         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
6939           allocated memory
6940         * device/lib/pic16/libc/stdlib/memfree: do not count
6941           the block header as free memory
6942         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
6943           simplified and added missing end-of-blocklist-marker
6944           (reported by Peter Onion, fixes #1252814)
6945         * (_mergeHeapBlock): fixed loop condition
6946         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
6947           len==0, restructured code
6948         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
6949           up a bit, reduced bitfield accesses, prevent endless loops
6950           in case of heap corruption
6951         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
6952           "unreferenced arguments/must return a value" warnings
6953         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
6954           replaced BAUDREG with SPBRG
6955         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
6956           device/lib/pic16/debug/gstack/gstack.c: replaced
6957           _naked, _asm, _endasm with __naked, __asm, __endasm
6958
6959 2005-08-05 Raphael Neider <rneider AT web.de>
6960
6961         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
6962           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
6963
6964 2005-08-05 Borut Razem <borut.razem AT siol.net>
6965
6966         * device/lib/Makefile.in: added missing ';'
6967         * configure: removed ^M characters
6968
6969 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6970
6971         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
6972           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
6973           License
6974
6975 2005-08-04 Borut Razem <borut.razem AT siol.net>
6976
6977         * configure.in: pic16 libraries build 2nd try - enable running
6978           configure in device/lib/pic16
6979         * configure: regenerated from configure.in
6980         * device/lib/Makefile.in: create $(PORT)/bin directory
6981
6982 2005-08-03 Raphael Neider <rneider AT web.de>
6983
6984         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
6985           to get/set values via pointers
6986         * (genUnpackBits,genPackBits): changed detection of
6987           ptr->bitfield vs. sym.bitfield, fixed access via generic
6988           pointers, removed dead (wrong) code for multibyte bitfields
6989         * (genNearPointerGet, genGenPointerGet): removed useless code,
6990           fixed bitfield detection, fixes #1250594
6991         * (genNearPointerSet): removed useless code
6992         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
6993           and introduced macro pic16_emitpcode that conditionally emits
6994           the origin of the following pCode (useful for debugging SDCC)
6995         * src/pic16/pcode.c: changed (and disabled) some debug outputs
6996         * (createDefmap): fixed handling of LFSR for --optimize-df
6997
6998 2005-08-02 Borut Razem <borut.razem AT siol.net>
6999
7000         * device/lib/Makefile.in: pic16 libraries build enabled since
7001           gputils-0.13.2 are now localy installed at sourceforge's compile farm
7002
7003 2005-08-02 Raphael Neider <rneider AT web.de>
7004
7005         * src/pic16/gen.c (genPackBits): removed deprecated warning
7006         * (genGenPointerSet): fixed bitfield detection
7007
7008 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7009
7010         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
7011
7012 2005-07-31 Raphael Neider <rneider AT web.de>
7013
7014         * device/lib/pic16/libdev/pic18f458.c,
7015           device/include/pic16/pic18f458.h: added missing T0CONbits
7016
7017 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
7018
7019         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
7020
7021 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
7022
7023         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
7024
7025 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7026
7027         * device/include/mcs51/at89c51ed2.h: added.
7028
7029 2005-07-23 Raphael Neider <rneider AT web.de>
7030
7031         * src/pic/gen.h: added emitpcode macro for debugging
7032         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
7033           and replace by macro adding debug information on demand
7034         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
7035         * (gencjne): tried to fix; replaced with correct (slower) code
7036         * (gen{Unp,P}ackBits): fixed single bit access
7037         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
7038         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
7039           previous instruction
7040         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
7041           register has to be handled with care (forbidding movement
7042           of assignments/uses, removing assignments completely, ...)
7043         * (pCodeOptime2pCodes): make use of regIsSpecial
7044         * added lots of debugging output (commented out)
7045         * src/pic/rallloc.c (deassignLRs): prevent operand registers
7046           from being reused as result UNLESS it is known to work
7047
7048 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
7049
7050         * support/Util/dbuf.h: include <stddef.h> for size_t
7051         * .version: changed to version 2.5.2
7052
7053 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7054
7055         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
7056
7057 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7058
7059         * src/hc08/gen.c (genMinus): fixed bug #1241835,
7060           (genModOneByte): removed needless psha/pula
7061
7062 2005-07-22 Raphael Neider <rneider AT web.de>
7063
7064         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
7065           have PIC14 handled like PIC16, fixes broken pic14 linker calls
7066         * src/pic/gen.c (resolveIfx): do not "invent" labels
7067         * (genSkipc): changed to positive logic
7068         * (genSkipCond): removed as no longer needed
7069         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
7070           backport from PIC16
7071         * (genLeftShift): check operands are in different registers
7072         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
7073           INCF does not update CARRY...
7074         * src/pic/main.c: fixed _linkCmd
7075         * src/pic/pcode.c (unlinkpCode): added inactive code
7076         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
7077           alive (do not assign result and operand overlapping registers)
7078
7079 2005-07-22 Raphael Neider <rneider AT web.de>
7080
7081         * src/pic/device.c (dump_sfr): replaced register declaration with
7082           call to emitSymbolToFile() to avoid duplicate symbols
7083         * (assignRelocatableRegisters): do not declare external symbols
7084         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
7085           right (take size of type, not etype)
7086         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
7087         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
7088         * (packRegsForAccUse): disabled assignment of WREG as
7089           the result reg to prevent occurence of just fixed #1235003,
7090           fixes #1242954
7091         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
7092           symbols (avoids duplicate symbols in .asm file)
7093         * (pic14emitRegularMap): use emitSymbolToFile()
7094         * src/pic/gen.c (aopOp): fixed spillLocation handling
7095         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
7096         * (genDataPointerSet): removed unneccessary variables/output
7097
7098 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
7099
7100         * as/mcs51/lkarea.c: enlarged codemap for banked memory
7101         * device/lib/mcs51/crtbank.asm: added # to 0x0F
7102
7103 2005-07-21 Raphael Neider <rneider AT web.de>
7104
7105         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
7106           architecture cannot handle them efficiently, fixes bug #1235003
7107         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
7108           check for empty sets before using them (fixes bug #1232190)
7109
7110 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
7111
7112         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
7113           (lnksect2): generate warnings for memory overlap
7114         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
7115           constseg to set the name of these segments so you can instruct the linker
7116           to place them in banks
7117         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
7118         * src/SDCCglobl.h: added MODEL_HUGE to enum,
7119           added code_seg and const_seg to options
7120         * src/SDCCglue.c (emitMaps): use options.const_seg,
7121           (createInterruptVect): put interrupt vectors in segment HOME,
7122           (glue): put HOME before static segment and put the main glue in HOME,
7123           (glue): use options.code_seg
7124         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
7125         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
7126           these segments so you can instruct the linker to place them in banks
7127           (linkEdit): use code_loc for HOME segment which should be the first
7128           segment in code memory now
7129         * src/SDCCmem.c: fixed more stuff like bug 1238386
7130         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
7131           (changePointer): don't change function pointers to code pointers for
7132           banked functions,
7133           (compareType): added exceptional check for banked function pointers
7134         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
7135         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
7136           after static in code memory
7137         * src/mcs51/gen.c: added aopLiteralLong prototype,
7138           (aopForSym): use getSize for functions,
7139           (genCall): generate banked calls over one trampoline __sdcc_banked_call
7140           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
7141           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
7142           the segment,
7143           (genPcall): use call for literal function pointers and generate banked
7144           calls over the one trampoline so there's only one place for the user to
7145           modify according to his/hers hardware,
7146           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
7147           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
7148         * src/mcs51/main.c: added keyword banked,
7149           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
7150         * support/Util/SDCCerr.c,
7151         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
7152           needed for passing the bank and address to the trampoline
7153         * device/lib/mcs51/crtbank.asm: added for bankswitching
7154         * device/lib/mcs51/Makefile: added crtbank
7155
7156 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7157
7158         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
7159           for fields at offset 0 of a struct or union as reported
7160           on 2005-07-07 in the developer mailing list.
7161
7162 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
7163
7164         * src/SDCCmem.c: fixed bug 1238386
7165
7166 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7167
7168         * src/mcs51/peeph.def: added labelrefcounting for peepholes
7169           (patch #1144962), added peephole 300, enabled 259.x
7170         * doc/sdccman.lyx: removed screenshot and provided link instead
7171
7172 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7173
7174         * doc/sdccman.lyx: added section about debugging with ddd
7175         * doc/figures/ddd_example.eps: screenshot of debugging session
7176
7177 2005-07-04 Raphael Neider <rneider AT web.de>
7178
7179         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
7180           like CODE pointers, fixes #1115683
7181         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
7182           call, fixes bugs #1232211, #1228110,
7183           fixed wrong casts to pCodeFlow from pCodeInstructions
7184
7185 2005-07-04 Raphael Neider <rneider AT web.de>
7186
7187         * src/pic/gen.c (popGet): changed assert to allow for
7188           bit operands
7189         * (popGetAddr): changed signature to provide
7190           an additional index, patched all call sites
7191         * (genCmpEq): handle literal-like operands correctly
7192         * (genAddrOf): added sanity checks on __code/__data pointers
7193         * (genAssign): added handling of symbols from __code section
7194         * (gencjne): do not generate code for comparisons whose result
7195           is neither stored nor used, fixes bug #1171114
7196         * (AccLsh, AccRsh): operate on operand instead of WREG
7197         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
7198           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
7199           by known count
7200         * rewrote complete shift-by-literal logic, commented unused
7201           functions out
7202         * (genConstPointerGet): get multiple bytes (if result size > 1),
7203           fixed handling of non-immediate addresses
7204         * (genPointerGet): handle CODE pointers like CONST pointers
7205         * (genpic14Code): insert C-SRC lines as Cource-pCodes
7206         * ({aop,op}_isLitLike): NEW, single place to decide whether an
7207           operand is to be treated as a literal or not
7208         * (mov2w,genPcall,genCmpEq),
7209           src/pic/genarith.c: use aop_isLitLike() to decide between
7210           literal/register contents
7211         * (addSign): added missing offset
7212         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
7213           only emit comment in debug-mode,
7214           use {aop,op}_isLitLike throughout the file
7215         * src/pic/glue.c: fix initializers for pointers (work in progress)
7216         * src/pic/pcode.c (get_op): honor index on _const symbols
7217         * ({reset,dump}pCodeStatistics): NEW, estimate code size
7218         * (dumppBlock): added pCode size estimation
7219         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
7220           check for IS_SYMOP before OP_SYMBOL'ing
7221         * fixed indentation, compacted switch-statements
7222         * (allocReg): find free register and allocate it instead of
7223           allocating new registers all the time
7224         * (deassignLRs): prevent POINTER_GET's from being assigned the same
7225           registers as its operands (necessary only for multibyte GETs)
7226
7227 2005-07-01 Raphael Neider <rneider AT web.de>
7228
7229         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
7230           debugging .asm-output macros FENTRY + FEXIT
7231         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
7232           way... I wonder...
7233         * (emitpComment): NEW, printf to pCode
7234         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
7235           offset handling
7236         * (popGetAddr): NEW, variant of popGet to access an immediates
7237           high(er) bytes instead of the n'th byte of memory they reference,
7238           replaced popGet with popGetAddr where neccessary
7239         * (genDataPointerGet): reactivated and fixed implementation
7240         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
7241           accesses
7242         * (genDataPointerSet): fixed multibyte assignments
7243         * (genpic14Code): fixed --i-code-in-asm handling
7244         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
7245         * (genPlus): fixed index-out-of-bounds error
7246         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
7247         * src/pic/ralloc.c: added debugging output macro FENTRY2
7248         * (spillThis): fixed indentation, enbraced for-body for clarity
7249         * (rematStr): commented out as now unused
7250         * (regTypeNum): commented out special spill case (overwrites
7251           arbitrary values)
7252         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
7253
7254 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
7255
7256         * doc/sdccman.lyx: documented sfr16/sfr32,
7257           added example for using storage class with function pointers
7258         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
7259
7260 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
7261
7262         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
7263         * device/lib/_itoa.c,
7264         * device/lib/_ltoa.c: optimized codesize
7265         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
7266           but don't know how to suppress the double warning.
7267         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
7268         * support/Util/SDCCerr.c,
7269         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
7270
7271 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
7272
7273         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
7274           fixed old K&R prototypes
7275         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
7276         * device/lib/_gptrget.c,
7277         * device/lib/_gptrgetc.c,
7278         * device/lib/_gptrput.c: changed versions for new memory indicator values,
7279           also new versions for small generic pointers and banked generic pointers
7280         * src/port.h: added const_name
7281         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
7282         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
7283         * src/SDCCcse.c (findPrevIc): check all associative operators
7284         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
7285         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
7286         * src/SDCCmem.c: updated comments,
7287           set far-space to 0 for pdata, results in optimized code
7288         * src/SDCCmem.h: added macro CONST_NAME
7289         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
7290           moving the info into the highest bits, see also gptrget/gptrput
7291         * src/src.dsp: added sdcc.ico to project files
7292         * src/avr/gen.c (genCast): fixed bug 0x%d
7293         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
7294         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
7295           relation between ptr_type and DCL_TYPE,
7296           (genCast): fixed bug 0x%d
7297         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
7298           (CODE)" for const_name
7299         * src/hc08/gen.c (genCast): fixed bug 0x%d
7300         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
7301           (hc08_port): added "CONST (CODE)" for const_name
7302         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
7303           (aopForRemat, adjustArithmeticResult): disconnected direct relation
7304           between ptr_type and DCL_TYPE,
7305           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
7306           operand* and took AOP() inside function so sfr-ness can be checked,
7307           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
7308           new prototype,
7309           (genFunction, genEndFunction): optimized stack setup,
7310           (genMinus): optimized for literals with ending zeroes (in bytes),
7311           (genCast): fixed bug 0x%d
7312         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
7313           (mcs51_port): added "CONST (CODE)" for const_name
7314         * src/mcs51/peeph.def: made rule 226 more generic
7315         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
7316         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
7317         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
7318         * src/z80/main.c (z80_port): added NULL for const_name,
7319           (gbz80_port): added NULL for const_name
7320         * support/regression/tests/bug663539.c,
7321         * support/regression/tests/sfr16.c: new tests
7322
7323 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7324
7325         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
7326
7327 2005-06-24 Raphael Neider <rneider AT web.de>
7328
7329         * device/lib/pic16/libdev/pic18f[68][567]20.c:
7330           corrected typos...
7331         * device/include/pic16/signal.h: added USBIF
7332           and SIG_USB
7333
7334 2005-06-24 Raphael Neider <rneider AT web.de>
7335
7336         * device/lib/pic16/libdev/pic18f2455.c,
7337           device/include/pic16/pic18f2455.h: NEW
7338         * device/include/pic16/pic18fregs.h,
7339           device/lib/pic16/pics.all,
7340           src/pic16/device.c: added 18f2455
7341         * device/lib/pic16/libdev/pic18f[68][567]20.c,
7342           device/include/pic16/{pic18f[68][567].h,usart.h}:
7343           replaced MULTIPLE_USARTS define with more relaible
7344           compatibility sfrs (for USART access)
7345
7346 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
7347
7348         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
7349           and the output asm file line is printed on two lines.
7350
7351 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7352
7353         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
7354           BGT, BLE, BHI, and BLS instructions
7355         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
7356           genCmpEq): removed
7357         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
7358           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
7359           fixes bug #1216342
7360         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
7361
7362 2005-06-15 Raphael Neider <rneider AT web.de>
7363
7364         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
7365         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
7366         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
7367           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
7368           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
7369
7370 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7371
7372         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
7373           Marcel Telka in bug #1215704
7374
7375 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
7376
7377         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
7378           located in shared memory bank.
7379
7380 2005-05-31 Raphael Neider <rneider AT web.de>
7381
7382         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
7383           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
7384           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
7385
7386 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
7387
7388         * device/lib/_strncpy.c: fixed the fix
7389
7390 2005-05-26 Raphael Neider <rneider AT web.de>
7391
7392         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
7393           initializers with \0, bug #1208187
7394         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
7395           intializers with \0, bug #1208187
7396
7397 2005-05-26 Raphael Neider <rneider AT web.de>
7398
7399         * src/pic16/glue.c (pic16_printIvalChar): fixed string
7400           initializers with \0, bug #1208187
7401         * src/pic16/main.c (_process_pragma): added sanity checks
7402           for stack position and size, emit warnings when appropriate
7403
7404 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
7405
7406         * device/lib/_strncpy.c: fixed not filling with \0
7407
7408 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7409
7410         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
7411           createFunction),
7412         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
7413           compound_statement),
7414         * src/SDCCsymt.h,
7415         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
7416
7417 2005-05-24 Raphael Neider <rneider AT web.de>
7418
7419         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
7420
7421 2005-05-24 Raphael Neider <rneider AT web.de>
7422
7423         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
7424           TRISE definitions, closes bug #1162453
7425
7426 2005-05-22 Raphael Neider <rneider AT web.de>
7427
7428         * src/pic16/main.c (_process_pragma): check for missing
7429           arguments to pragmas code and udata
7430         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
7431           consistency fixes to match other headers (thanks to Jim Paris)
7432         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
7433
7434 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
7435
7436         * src/SDCCicode.c (isOperandEqual): fixed missing ;
7437
7438 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
7439
7440         * support/regression/tests/bug1198642.c: new test
7441         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
7442         * src/SDCCcse.c (findPrevIc): added comment, please have a look
7443         * support/scripts/resource.h,
7444         * support/scripts/resource.rc,
7445         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
7446         * support/scripts/sdcc.ico: added 32x32 icon
7447
7448 2005-05-18 Raphael Neider <rneider AT web.de>
7449
7450         * device/lib/pic16/libdev/pic18f*.c,
7451         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
7452           keywords to "__sfr" and "__at (X)"
7453         * device/include/pic16/pic18fregs.h: added pic18f4520
7454         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
7455           #1203088 (MPLAB compatibility)
7456
7457 2005-05-17 Raphael Neider <rneider AT web.de>
7458
7459         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
7460         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
7461         * device/lib/pic16/pics.all: added new devices
7462         * src/pic16/device.c: added support for pic18f4520
7463
7464 2005-05-16 Raphael Neider <rneider AT web.de>
7465         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
7466         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
7467         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
7468           convenience function for bit access
7469
7470 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
7471
7472         * device/lib/printf_large.c: fixed bug 1193299
7473         * support/regression/tests/bug1057979.c: added test %3.3s
7474
7475 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7476
7477         * device/include/mcs51/8051.h,
7478         * device/include/mcs51/8052.h: made parseable with lint
7479         * device/include/mcs51/lint.h: added include file for (sp)lint
7480         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
7481         * doc/cdbfileformat.lyx,
7482         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
7483
7484 2005-05-14 Raphael Neider <rneider AT web.de>
7485
7486         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
7487         * device/lib/pic16/libc/stdlib/itoa.c (new)
7488         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
7489         * device/lib/pic16/libio/Makefile: exclude subdir according to
7490           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
7491         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
7492         * src/pic16/gen.c (genFunction): prevent annoying warning
7493         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
7494           nameclashes on BeOS
7495         * support/cpp2/cppmain.c (cpp_output_string): new
7496         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
7497           fixes bug 1116802
7498
7499 2005-05-13 Borut Razem <borut.razem AT siol.net>
7500
7501         * src/SDCCmain.c (linkEdit): fixed bug 1195202
7502
7503 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7504
7505         * .version: changed to version 2.5.1; back to bleeding edge development
7506
7507 2005-05-11 Borut Razem <borut.razem AT siol.net>
7508
7509         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
7510           generate PDF version 1.3 documents
7511
7512 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7513
7514         * .version: changed to version 2.5.0
7515
7516 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7517
7518         * doc/sdccman.lyx: updated weblinks, index and smaller updates
7519
7520 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7521
7522         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
7523         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
7524         well as many smaller updates.
7525         * .version: changed to version 2.5.0-pre1
7526
7527 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7528
7529         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
7530
7531 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
7532
7533         * support/regression/tests/bug1185672.c: added
7534         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
7535           bug 1185672
7536         * src/mcs51/gen.c (genCall): added comments, made it look safer
7537         * src/mcs51/gen.c (genEndFunction): simplified
7538
7539 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
7540
7541         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
7542
7543 2005-04-14 Borut Razem <borut.razem AT siol.net>
7544
7545         * fixed bug 1045046 - SIGSEGV with really simple code?:
7546           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
7547           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
7548
7549 2005-04-14 Borut Razem <borut.razem AT siol.net>
7550
7551         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
7552           src/pic16/device.h: temporarily disabled experimental #inline pragma
7553           for 2.5.0 release
7554
7555 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
7556
7557         * device/include/z80/stdio.h,
7558         * device/include/z80/string.h: removed these highly incomplete files so
7559           SDCC can use the default ones in device/include/
7560
7561 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7562
7563         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
7564         gcc warning.
7565         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
7566         fix sdcpp warnings.
7567
7568 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
7569
7570         * device/include/malloc.h: removed redundant __reentrant prototypes
7571         * device/lib/_mullong.c: added working xstack variant in asm (C version
7572           doesn't pass regression tests)
7573         * device/lib/bpx.c: used __data and made bpx char for mcs51
7574         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
7575           (createFunction): fixed bug with xstackPtr
7576         * src/SDCCcse.c: corrected comments
7577         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
7578           (killDeadCode, eBBlockFromiCode): removed unused code
7579         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
7580           corrected comments
7581         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
7582           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
7583           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
7584           (genModOneByte): fixed warning in MSVC
7585         * src/mcs51/main.c (): added comments
7586         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
7587
7588 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
7589
7590         * src/SDCCmain.c (linkEdit): oops, changed one line too many
7591
7592 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
7593
7594         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
7595
7596 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
7597
7598         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
7599         characters arrays of larger size than the declared one.
7600
7601 2005-04-10 Borut Razem <borut.razem AT siol.net>
7602
7603         * src/pic/gen.c (genInline),
7604           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
7605           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
7606           (findNextInstruction), (findPrevInstruction),
7607           (findInstructionUsingLabel),
7608           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
7609         * src/pic/pcode.c (findLabel): added missing '\n'
7610         * src/src.dsp: added SDCCdwarf2.c to the project
7611
7612 2005-04-09 Borut Razem <borut.razem AT siol.net>
7613
7614         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
7615
7616 2005-04-08 Raphael Neider <rneider AT web.de>
7617
7618         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
7619           into the chain after a given one) and mergeDefmapSymbols (combine
7620           defmap entries for each symbol per pcode)
7621         * (createDefmap): have defmap entries merged in the end
7622         * (defmapReplaceSymRef): split defmap entries covering two accesses to
7623           a symbol before replacing one access type's symbol, merge symbols in
7624           the end (replacement symbol might already have an entry)
7625         * (assignValnums): keep reference to written WREG intact
7626
7627 2005-04-08 Raphael Neider <rneider AT web.de>
7628
7629         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
7630           Alpha)
7631
7632 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
7633
7634         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
7635         bytes
7636
7637 2005-04-07 Raphael Neider <rneider AT web.de>
7638
7639         * device/include/pic16/usart.h: added compatibility defines for
7640           devices with more than one USART
7641         * device/include/pic16/pic18f[68][567]20.h: activated above defines
7642
7643 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7644
7645         * device/lib/Makefile.in: updated for port specific include
7646
7647 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7648
7649         * support/regression/ports/mcs51/spec.mk: added mcs51 include
7650
7651 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7652
7653         * device/include/8051.h,
7654         * device/include/8052.h,
7655         * device/include/at89S8252.h,
7656         * device/include/at89c55.h,
7657         * device/include/at89x051.h,
7658         * device/include/at89x51.h,
7659         * device/include/at89x52.h,
7660         * device/include/mcs51reg.h,
7661         * device/include/reg51.h,
7662         * device/include/reg764.h,
7663         * device/include/regc515c.h,
7664         * device/include/sab80515.h: (re)moved these 12 files
7665         * device/include/mcs51/8051.h,
7666         * device/include/mcs51/8052.h,
7667         * device/include/mcs51/at89S8252.h,
7668         * device/include/mcs51/at89c55.h,
7669         * device/include/mcs51/at89x051.h,
7670         * device/include/mcs51/at89x51.h,
7671         * device/include/mcs51/at89x52.h,
7672         * device/include/mcs51/mcs51reg.h,
7673         * device/include/mcs51/reg51.h,
7674         * device/include/mcs51/reg764.h,
7675         * device/include/mcs51/regc515c.h,
7676         * device/include/mcs51/sab80515.h: and added them here
7677
7678 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
7679
7680         * device/include/stdarg.h: changed SDCC specific keywords to double
7681           underlined form.
7682         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
7683           mcs51 and ds390.
7684         * device/include/hc08/mc68hc908gp32.h,
7685         * device/include/hc08/mc68hc908jb8.h,
7686         * device/include/hc08/mc68hc908jkjl.h,
7687         * device/include/hc08/mc68hc908qy.h: fixed comments
7688         * device/include/mcs51/README: updated
7689         * device/include/mcs51/c8051f120.h: added PINRSF
7690         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
7691         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
7692           amidst code. Also inline is not supported.
7693
7694 2005-04-06 Raphael Neider <rneider AT web.de>
7695
7696         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
7697         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
7698           callers stack/frame pointers
7699
7700 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
7701
7702         * device/include/pic16/usart.h: added, missing in previous commit,
7703         * device/include/pic16/adc.h: fixed typo,
7704         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
7705         commit,
7706         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
7707         <p18fxxx.inc>
7708         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
7709         uninitialized because a bug appears with gplink
7710         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
7711         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
7712         complains for unrecognised option
7713
7714 2005-04-05 Raphael Neider <rneider AT web.de>
7715
7716         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
7717           structs as well (using memcpy)
7718         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
7719           on ISRs (GOTO has no label)
7720         * src/pic16/device.h: added OF_OPTIMIZE_DF
7721         * src/pic16/main.c: added compiler switch --optimize-df to enable the
7722           new data flow analysis/optimization
7723         * src/pic16/pcode.c: added (prototypes for and implementation of)
7724           dataflow analysis functions, fixed pCodeInstructions' inCond and
7725           outCond values, made RCALL a branch instruction
7726         * (pic16_unlinkpCode): keep C line if possible
7727         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
7728           C line moved if possible
7729         * (pic16_getRegFrompCodeOp): NEW, improved version of...
7730         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
7731           to use new pic16_getRegFrompCodeOp (works for more SFRs)
7732         * (pic16_BuildFlow): fixed skip instructions with label (did not start
7733           new flow)
7734         * (pic16_getJumptabpCode): NEW, needed in...
7735         * (LinkFlow): fixed handling of jumptables, calls and conditional
7736           branches
7737         * (pic16_InsertCommentAfter): NEW
7738         * (pic16_pCodeReplace): made verbose and flow preserving
7739         * (AnalyzeFlow): added call to data flow analysis
7740         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
7741         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
7742         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
7743
7744 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7745
7746         * src/SDCCast.c (decorateType): fixed bug #1105626
7747
7748 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
7749
7750         * device/include/asm/pic16/features.h,
7751         * pic18f*.h headers,
7752         * device/include/pic16/adc.h,
7753         * device/include/pic16/delay.h,
7754         * device/include/pic16/i2c.h,
7755         * device/include/pic16/malloc.h,
7756         * device/include/pic16/stdio.h,
7757         * device/include/pic16/stdlib.h,
7758         * device/include/pic16/string.h,
7759         * device/lib/pic16/libc/stdio/printf_tiny.c,
7760         * device/lib/pic16/libc/stdio/printf_small.c,
7761         * device/lib/pic16/libc/stdio/strmgpsim.c,
7762         * device/lib/pic16/libc/stdio/strmmssp.c,
7763         * device/lib/pic16/libc/stdio/strmusart.c,
7764         * device/lib/pic16/libc/stdio/vfprintf.c,
7765         * device/lib/pic16/libc/stdlib/ltoa.c,
7766         * device/lib/pic16/libc/stdlib/putchar.c,
7767         * device/lib/pic16/libc/stdlib/x_ftoa.c,
7768         * device/lib/pic16/libc/stdlib/memchrpgm.c,
7769         * device/lib/pic16/libc/stdlib/memchrram.c,
7770         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
7771         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
7772         * device/lib/pic16/libio/adc/adcbusy.c,
7773         * device/lib/pic16/libio/adc/adcread.c,
7774         * device/lib/pic16/libio/adc/adcsetch.c,
7775         * device/lib/pic16/libio/usart/ubaud.c,
7776         * device/lib/pic16/libio/usart/ubusy.c,
7777         * device/lib/pic16/libio/usart/udrdy.c,
7778         * device/lib/pic16/libio/usart/uopen.c,
7779         * device/lib/pic16/libio/usart/uputc.c,
7780         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
7781         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
7782         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
7783         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
7784         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
7785         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
7786         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
7787         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
7788         specific keywords to double underlined form,
7789         * device/lib/pic16/libc/Makefile.rules,
7790         * device/lib/pic16/libsdcc/Makefile.rules,
7791         * device/lib/pic16/libm/Makefile,
7792         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
7793         to compile with C standard set in Makefile.common
7794         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
7795         rand.c and crc.c in compilation process,
7796         * device/lib/pic16/libsdcc/int/divuint.c,
7797         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
7798         `c' from signed to unsigned,
7799         * device/lib/pic16/startup/crt0.c,
7800         * device/lib/pic16/startup/crt0i.c,
7801         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
7802         keywords to double underlined form, bug fixes in _do_cinit function
7803         which prevented the correct initialization of the .idata segment,
7804         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
7805         core to enter a infinite loop
7806         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
7807
7808 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7809
7810         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
7811
7812 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7813
7814         * device/include/Makefile.in: add support for hc08 subdirectory
7815         * device/include/hc08/: new subdirectory
7816         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
7817         Lucas Loizaga, thanks!
7818         * device/include/hc08/mc68hc908qy.h,
7819         * device/include/hc08/mc68hc908gp32.h,
7820         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
7821         their own directory. Changed internal macro names to use the compiler
7822         reserved namespace. Changed SDCC specific keywords to double
7823         underlined form.
7824         * device/include/math.h,
7825         * device/include/malloc.h,
7826         * device/include/stdarg.h,
7827         * device/include/stdbool.h
7828         * device/include/string.h,
7829         * device/include/tinibios.h,
7830         * device/include/ds400rom.h,
7831         * device/include/8051.h,
7832         * device/include/8052.h,
7833         * device/include/80c51xa.h,
7834         * device/include/at89c55.h,
7835         * device/include/at89S8252.h,
7836         * device/include/at89x51.h,
7837         * device/include/at89x52.h,
7838         * device/include/ds80c390.h,
7839         * device/include/reg764.h,
7840         * device/include/regc515c.h,
7841         * device/include/sab80515.h,
7842         * device/include/mcs51/c8051f000.h,
7843         * device/include/mcs51/c8051f018.h,
7844         * device/include/mcs51/c8051f020.h,
7845         * device/include/mcs51/c8051f040.h,
7846         * device/include/mcs51/c8051f060.h,
7847         * device/include/mcs51/c8051f120.h,
7848         * device/include/mcs51/c8051f300.h,
7849         * device/include/mcs51/c8051f310.h,
7850         * device/include/mcs51/c8051f320.h,
7851         * device/include/mcs51/c8051f330.h,
7852         * device/include/mcs51/c8051f350.h,
7853         * device/include/z180.h: Changed SDCC specific keywords to double
7854         underlined form.
7855
7856 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
7857
7858         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
7859         18F4455,
7860         * (pic16_assignConfigWordValue): disable testing of configuration
7861         register value with config mask,
7862         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
7863         function with port->fun_prefix,
7864         * (genFunction): when generating a naked interrupt function never
7865         create an absolute segment placed in interrupt vector address, place
7866         the actual interrupt function at IVA instead, when an interrupt
7867         function is generated with unspecified interrupt then do not create
7868         the absolute section,
7869         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
7870         code for generating a call to generic pointer get/put function with
7871         a call to function pic16_callGenericPointer(),
7872         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
7873         the call to the generic pointer get/put functions with prefixing the
7874         function name with port->fun_prefix,
7875         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
7876         * src/pic16/main.c (_process_pragma): prefix function with
7877         port->fun_prefix,
7878         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
7879         calling assembler, old 18Fxxxx macro is deprecated,
7880         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
7881         PC_ASMDIR in while condition,
7882         * (findInstruction): add PC_ASMDIR in while condition,
7883         * (buildCallTree): prefix main with port->fun_prefix,
7884         * (pic16_pCode2str): fixed bug that didn't emit the memory access
7885         identifier for variable with banked access in instructions BTFSS,
7886         BTFSC, BCF, BSF, BTG
7887         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
7888         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
7889         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
7890         perform optimization when enviroment variable NO_REG_OPT is set,
7891         * (insideLRBlock): NEW, return 1 if register is inside an
7892         INF_LOCALREGS block,
7893         * (RemoveRegFromLRBlock): remove a register that is completely
7894         eliminated by register optimization, but it is still left in local
7895         register store/restore in/from stack block,
7896         * (Remove2pcodes): after removing register, check to see if it
7897         should be removed from local register store/restore in/from stack
7898         block,
7899         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
7900         DUMMY_READ_VOLATILE,
7901
7902         * device/include/pic16/adc.h: minor prototype modifications and
7903         update,
7904         * device/include/pic16/malloc.h: added GPL notice various
7905         modifications,
7906         * device/include/pic16/stdint.h: NEW, standard header for ints
7907         * device/include/pic16/delay.h: NEW, header for delay functions,
7908         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
7909         delay1mtcy,
7910         * device/include/pic16/signal.h: NEW, header providing helper macros
7911         for implementing signal handlers,
7912         * device/include/pic16/stdio.h: added prototypes for functions,
7913         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
7914         prototypes for stdin and stdout, added macro PUTCHAR to
7915         automatically implement putchar function prototype,
7916         * device/include/pic16/usart.h: modified and updated USART library,
7917         * device/lib/pic16/libio/adc/,
7918         * device/lib/pic16/libio/i2c: some modifications to improve library
7919         performance,
7920         * device/lib/pic16/libc/stdio/: modifications for the new printf*
7921         family of functions,
7922         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
7923         family of functions and other sources,
7924         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
7925         of the PIC18Fxx[28] devices,
7926         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
7927         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
7928         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
7929         _do_cinit function, because the previous failed when local variables
7930         where not placed in the same memory bank,
7931         * device/lib/pic16/libsdcc/char/: various modifications to improve
7932         library performance,
7933         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
7934         information on the new functions of the c library and more...
7935
7936 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7937
7938         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
7939
7940 2005-03-26 Raphael Neider <rneider AT web.de>
7941
7942         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
7943           if condition == CARRY)
7944         * (genCmp): adapted to new genSkipc semantics
7945         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
7946           on rIfx (genCmp was broken)
7947
7948 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7949
7950         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
7951         * src/z80/main.c (_keywords[]),
7952         * src/SDCCglobal.h (struct options),
7953         * src/SDCC.y,
7954         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
7955         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
7956         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
7957         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
7958         always available in leading double underscore form. The C99 support is
7959         mostly missing, but it's a start.
7960         * support/regression/tests/bug-227710.c: fixed nonconforming use of
7961         reserved identifier "__data".
7962
7963 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
7964
7965         * src/mcs51/peeph.def: fixed bug 1170013
7966
7967 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
7968
7969         * device/include/mcs51reg.h: fixed bug 842007
7970
7971 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7972
7973         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
7974         last time.
7975
7976 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7977
7978         * src/port.h (struct PORT),
7979         * src/avr/ralloc.c (avr_assignRegisters),
7980         * src/avr/main.c,
7981         * src/ds390/ralloc.c (ds390_assignRegisters),
7982         * src/ds390/main.c,
7983         * src/hc08/ralloc.c (hc08_assignRegisters),
7984         * src/hc08/main.c,
7985         * src/mcs51/ralloc.c (mcs51_assignRegisters),
7986         * src/mcs51/main.c,
7987         * src/pic/ralloc.c (pic14_assignRegisters),
7988         * src/pic/main.c,
7989         * src/pic16/ralloc.c (pic16_assignRegisters),
7990         * src/pic16/main.c,
7991         * src/xa51/ralloc.c (xa51_assignRegisters),
7992         * src/xa51/main.c,
7993         * src/z80/ralloc.c (z80_assignRegisters),
7994         * src/z80/ralloc.h,
7995         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
7996         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
7997         * src/SDCCcse.h,
7998         * src/SDCCdflow.c (computeDataFlow),
7999         * src/SDCCdflow.h,
8000         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
8001         * src/SDCCloop.h,
8002         * src/SDCCcflow.c (*),
8003         * src/SDCCcflow.h,
8004         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
8005         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
8006         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
8007         immedDom() returning wrong block; probably fixes bug #1160833)
8008
8009 2005-03-20 Borut Razem <borut.razem AT siol.net>
8010
8011         * support/scripts/inc2h.pl: WIN32 port
8012
8013 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
8014
8015         * device/lib/makefile.in: added abs.c and labs.c
8016
8017 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
8018
8019         * device/include/stdint.h: added
8020         * device/lib/abs.c: added
8021         * device/lib/labs.c: added
8022         * device/include/stdlib.h: added abs() and labs() prototypes
8023         * device/lib/libsdcc.lib: added abs and labs
8024         * device/include/float.h,
8025         * device/lib/_fsmul.c,
8026         * device/lib/printf_fast.c,
8027         * device/lib/printf_tiny.c: updated comments
8028
8029 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8030
8031         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
8032         bug #1164313
8033
8034 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8035
8036         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
8037         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
8038
8039 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
8040
8041         * device/lib/printf_large.c: removed inline assembly for portability and
8042           readability. Use printf_fast if speed or size are more important.
8043         * src/pic16/gen.c: removed conditions around use of DEBUGpc
8044         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
8045
8046 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
8047
8048         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
8049         prevent compiler warning
8050
8051 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
8052
8053         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
8054         moved to level 0 and declared as static. Also they are explicit
8055         placed in access bank. This was necessery because some times they
8056         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
8057         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
8058         optimizations. Currently only compare to unsigned char is implemented,
8059         * src/pic16/gen.c: added fReturnIdx array,
8060         * (struct resolvedIfx) is moved to gen.h and made public,
8061         * (struct _G): added sregsAlloc and sregsAllocSet fields,
8062         * (aopForSym): added an optimization to directly store in stack of
8063         the operand of a SEND iCode,
8064         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
8065         but as registers instead (AOP_REG) using the fReturnIdx array,
8066         * (pic16_freeAsmop): remove the freed register from the
8067         _G.sregsAlloc field,
8068         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
8069         a compare of 'WREG',
8070         * (pic16_popGetTempRegCond): changed function prototype, now
8071         function takes also a bitVector argument v which holds the current
8072         set of registers that are allocated for stack access by aopForSym,
8073         registers allocated in aopForSym for accessing stack symbols are not
8074         any more part of the functions usedRegs field,
8075         * (genCall): some times aopOp is called for a stack variable to be
8076         send, aopForSym might perform the push, if this is true make sure
8077         that genCall doesn't push the variable twice by testing _G.resDirect,
8078         * (genFunction): changed testing for unspecified interrupt number
8079         from 256 to INTNO_UNSPEC,
8080         * modified selection scheme of frame pointer generation. Previously
8081         if function did use local registers a frame pointer was generated,
8082         now a frame pointer is generated only if function has arguments
8083         (that need PLUSW2 register access), or has stack arguments, or the
8084         compiler is not instructed to omit the frame pointer,
8085         * (genEndFunction): before restoring local registers that were saved
8086         in the function preamble, also restore the registers that *might*
8087         have been allocated for stack access,
8088         * (genRet): removed some old comments,
8089         * (genCmp, the active (RN's) version): added a call to the
8090         pic16_genCmp_special function to perform the compare with a more
8091         robust and optimized way,
8092         * (genInline): a feature has been added in inline code generation,
8093         which allows a wildcard variable substitution when writing inline
8094         assembly. Code is incomplete and experimental therefore undocumented,
8095         * (genCast): changed order of aopOp for result and right to allow
8096         aopForSym to directly load the result if possible,
8097         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
8098         perform an optimized compare on some selected special occasions,
8099         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
8100         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
8101         generate an IVT any more,
8102         * src/pic16/main.c (pic16_optionsTable): added command line option
8103         --optimize-cmp,
8104         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
8105         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
8106         macros,
8107         * src/pic16/NOTES: Raphael Neider added in list of active developers
8108         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
8109         jumptable_end to prevent bug #,
8110         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
8111         inCond and outCond fields,
8112         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
8113         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
8114         turn off register spilling,
8115         * (packRegsForOneUse): synced with other ports' versions although it
8116         is not used currently,
8117         * (pic16_packRegisters): added an optimization while reading
8118         structure bitfields, some registers may be saved (malloc code is
8119         decreased by 80 bytes)
8120
8121 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
8122
8123         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
8124         left is a bitfield, if yes, then don't optimize assignment. Perhaps
8125         this can be optimized more?
8126
8127 2005-03-10 Raphael Neider <rneider AT web.de>
8128
8129         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
8130           genNearPointerGet): (hopefully) fixed access to bitfields via
8131           pointers (p->bitN = x; and x = p->bitN; failed)
8132
8133 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
8134
8135         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
8136
8137 2005-03-09 Raphael Neider <rneider AT web.de>
8138
8139         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
8140
8141 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
8142
8143         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
8144         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
8145           (regTypeNum): set REG_BIT type if necessary
8146         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
8147         * support/regression/tests/critical.c: check bug 1144613
8148
8149 2005-03-02 Raphael Neider <rneider AT web.de>
8150
8151         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
8152
8153 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8154
8155         * src/avr/ralloc.c (serialRegAssign),
8156         * src/ds390/ralloc.c (serialRegAssign),
8157         * src/hc08/ralloc.c (serialRegAssign),
8158         * src/mcs51/ralloc.c (serialRegAssign),
8159         * src/pic/ralloc.c (serialRegAssign),
8160         * src/pic16/ralloc.c (serialRegAssign),
8161         * src/xa51/ralloc.c (serialRegAssign),
8162         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
8163
8164 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
8165
8166         * src/SDCCast.c (decorateType): fixed bug 1124787
8167
8168 2005-02-20 Hubert Sack <sack AT digiplan.de>
8169         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8170
8171         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
8172         patch #1121755
8173
8174 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8175
8176         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
8177         to keep the correct label reference count when adding/removing references
8178         to labels. A peephole file using this is appended to patch #1144962.
8179
8180 2005-02-14 Raphael Neider <rneider AT web.de>
8181
8182         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
8183         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
8184         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
8185           retrievals of result operand's value on assignment
8186
8187 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
8188
8189         * device/include/pic16/string.h: modified prototype for memccpy()
8190         to memccpy(void *, void *, char, size_t)
8191         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
8192         check whether to omit frame pointer or not,
8193         * (genInline): convert all occurences of "\n" to LF in inline
8194         assembler blocks, this helps formatting the inline text,
8195         * (pic16_loadFSR0): modified prototype,
8196         * (genNearPointerGet, genNearPointerSet): reorganization of code,
8197         removed some 8051 legacy code,
8198         * (genPackBits): enabled handling bitfields exceeding one byte in size,
8199         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
8200         before allocating temporary registers in functions,
8201
8202 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
8203
8204         * support/regression/tests/bitvars.c: corrected the "fix"
8205
8206 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
8207
8208         * support/regression/tests/bitvars.c,
8209         * support/regression/tests/bitwise.c,
8210         * support/regression/tests/rotate.c: "fixed" problems on Alpha
8211
8212 2005-02-10 Raphael Neider <rneider AT web.de>
8213
8214         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
8215           different size for Alpha
8216         * src/pic16/gen.c (genCmpEq) : improved compare with 0
8217
8218 2005-02-09 Raphael Neider <rneider AT web.de>
8219
8220         * src/SDCC.lex(doPragma) : save and restore warning options as well
8221           (also added new stack plus clone- and copyAndFreeSDCCERRG())
8222         * have #pragma less_pedantic set the errorlevel to WARNING
8223           (fixes #1117001)
8224         * (cloneOptimize) : fixed wrong malloc's size
8225         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
8226           facilitate correct handling of #pragma (save|restore)
8227
8228 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
8229
8230         * src/mcs51/gen.c: removed non-standard C nameless struct/union
8231
8232 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
8233
8234         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
8235
8236 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
8237
8238         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
8239
8240 2005-02-02 Raphael Neider <rneider AT web.de>
8241
8242         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
8243         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
8244         * (pic16_storeForReturn): fixed to allow returning function pointers
8245         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
8246         * device/include/pic16/{stddef.h,stdbool.h}: added
8247
8248 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
8249
8250         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
8251
8252 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
8253
8254         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
8255         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
8256          appeared to be required
8257
8258 2005-01-31 Borut Razem <borut.razem AT siol.net>
8259
8260         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
8261           include/mcs51 and include/z80 directories to the package
8262
8263 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8264
8265         * src/hc08/gen.c (genFunction): fixed bug #1112752
8266
8267 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8268
8269         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
8270
8271 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8272
8273         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
8274
8275 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
8276
8277         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
8278
8279 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
8280
8281         * device/include/c8051fxxx.h: removed these 6 files
8282         * device/include/mcs51/c8051fxxx.h: added these 11 new files
8283
8284 2005-01-26 Raphael Neider <rneider AT web.de>
8285
8286         * src/pic16/gen.c (genAssign): fixed assignment from longs
8287           in codespace (were cut to three bytes)
8288         * (genDummyRead): implemented (except for CODESPACE...),
8289           fixed bug #1108575
8290         * src/pic16/glue.c (emitStatistics): beautified
8291         * device/lib/pic16/libm/Makefile: added include path
8292
8293 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8294
8295         * src/z80/gen.c (aopPut): fixed bug #1103902
8296
8297 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8298
8299         * device/lib/expf.c: fixed bug #1095792
8300
8301 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
8302
8303         * device/lib/pic16/libm: added Math library sources
8304
8305 2005-01-24 Raphael Neider <rneider AT web.de>
8306
8307         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
8308           to enable upcast to pCodeOpReg2 (there is no type tag to
8309           differenciate the two and pic16_popGet2p cast into PCOR2)
8310         * src/pic16/main.c (_process_pragma): fixed another malloc bug
8311           (sizeof(sectNames) changed to sizeof(sectName))
8312           Both patches fix segfaults under MinGW.
8313
8314 2005-01-23 Raphael Neider <rneider AT web.de>
8315
8316         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
8317           Safe_[mc]?alloc()'ed variables
8318         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
8319           of (byte sized) temporaries (assign them to WREG for now)
8320         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
8321           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
8322           this might fix SIGSEGVs on MinGW...
8323         * src/SDCCopt.c (killDeadCode): restored original behaviour
8324           (volatile operands might get thrown away though)
8325
8326 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
8327
8328         * src/pic16/gen.c: fixed bug #1106975,
8329         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
8330         pointer update, INTCON is saved, global interrupts are disabled and
8331         restored after updateing TOS.
8332         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
8333         * added function attribute 'shadowregs' to take advantage of shadow
8334         registers,
8335         * added function attribute 'wparam' as an alternative to the wparam
8336         pragma,
8337         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
8338         user declares a non-ISR function as 'shadowregs',
8339         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
8340
8341 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
8342
8343         * .version: bumped version number to 2.4.8
8344         * device/lib/pic16/pics.all: list of PIC18F devices supported by
8345         pic16 port,
8346         * device/lib/pic16/libio/i2c/: I2C module support library,
8347         * device/include/pic16/i2c.h: I2C support library header,
8348         * device/lib/pic16/libc/stdio/: standard IO support sources,
8349         * (printf_small.c): printf_small() source, supports float print,
8350         * (printf_tiny.c): printf_tiny() source, does not support floats,
8351         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
8352         enable global optimizations for entire library source, other
8353         Makefiles in the source tree are also modified to reflect this,
8354         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
8355         function,
8356         * doc/sdccman.lyx: updated to reflect new changes,
8357         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
8358         sym->onStack if-case,
8359         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
8360         sbit, idata, _idata, xdata, _xdata,
8361         * added pragma library, to link an external library, (see doc),
8362         * removed command line options, --pomit-config-words, --pomit-ivt,
8363         --pleave-reset-vector,
8364         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
8365         when calling assembler to reflect memory model used, also define
8366         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
8367         reflect stack model used,
8368         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
8369         on stack return NULL,
8370
8371 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
8372
8373         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
8374           of the operands is volatile. Fixes #1020220
8375
8376 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
8377
8378         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
8379         * (OptimizeRegUsage): make sure that there is really no other flow where
8380           the first pCode is used
8381
8382 2005-01-22 Raphael Neider <rneider AT web.de>
8383
8384         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
8385           to fix #1106967 (pCode->seq are not set up correctly)
8386
8387 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8388
8389         * src/SDCCglue.c (glue): make sure code area is declared before the
8390         static initialization area.
8391
8392 2005-01-21 Raphael Neider <rneider AT web.de>
8393
8394         * device/lib/Makefile.in: fixed test for pic16 install dir
8395         * device/lib/pic16/*/Makefile*: modified compile flags to enable
8396           optimizations
8397         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
8398           added --optimize-goto compiler switch and pragma wparam documentation
8399         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
8400         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
8401           and PRODH closing bug #1071770 (peephole optimizer)
8402
8403 2005-01-19 Raphael Neider <rneider AT web.de>
8404
8405         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
8406           cmdLine buffers (used when calling sdcpp...) are large enough
8407           (MAX_PATH=256 truncates arguments leading to system halts when
8408           used in MinGW...)
8409         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
8410         * (genUminus): rewritten to for efficiency
8411         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
8412           used uninitialized in some cases)
8413         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
8414           copy the third byte from the int -- now assumes 0x80 (data memory)
8415         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
8416           operands (genAddLit expects the iCode's operands to swapped as
8417           well), fixed leftover bytes (crashed for short left operands)
8418         * (pic16_genMinusDec): performance improvements, removed false
8419           PIC14 emitSKPNCs
8420         * (pic16_genMinus): fixed to cope with differently sized operands
8421         * src/pic16/glue.c (pic16_glue): added new banksel optimization
8422           for --obanksel > 1
8423         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
8424         * src/pic16/graph.[ch]: implementation of directed graphs, used by
8425           new banksel optimization
8426         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
8427           analysis for temporary registers (segfaults...)
8428         * src/pic16/peeph.def: added rule
8429
8430 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
8431
8432         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
8433         which converts a float number to its ASCII representation
8434         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
8435         functions to convert the fractional and integer part of a float to ASCII,
8436         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
8437         realloc.c): added _MALLOC_SPEC to explicit place variables in data
8438         ram
8439         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
8440         _STATMEM macros,
8441         * device/include/pic16/adc.h: added GPL info,
8442         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
8443         a pCodeOp as tested operand,
8444         * (genNearPointerGet): optimized bit testing, does not use
8445         intermediate register for bit value, test directly instead with
8446         BTFSS, BTFSC, works only for single bits,
8447         * (genpic16Code): dump the name of the iCode in the asm,
8448         * src/pic16/ralloc.c (decodeOp): removed static declaration and
8449         renamed to pic16_decodeOp,
8450         * (serialRegAssign): do not allocate a temporary register for iCode
8451         sequences that test a single bit for 1/0
8452
8453 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
8454
8455         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
8456         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
8457         access stack and frame pointers. They are initially assigned to
8458         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
8459         accessing SFRs. Updated all occurences of modification of stack or
8460         frame pointer in gen.c and pcode.c,
8461         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
8462         assigning of a literal value to pointers,
8463         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
8464         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
8465         selected
8466
8467 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
8468
8469         * doc/sdccman.lyx: update documentation about stack pragma, added
8470         some info for stack memory models
8471
8472 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8473
8474         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
8475
8476 2005-01-08 Raphael Neider <rneider AT web.de>
8477
8478         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
8479           udata sections to fix bug #1097823
8480
8481 2005-01-05 Raphael Neider <rneider AT web.de>
8482
8483         * src/pic16/gen.c (genGenericShift): added handling of differently
8484           sized left operand and result
8485
8486 2005-01-04 Raphael Neider <rneider AT web.de>
8487
8488         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
8489         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
8490           to hold the condition bit)
8491         * added new version of genCmp (old code available via #define)
8492         * added new version of genShiftLeft/genShiftRight in a generic
8493           way, now supports shifting by negative values
8494         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
8495           shiftCount (expected by genGenericShift)
8496         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
8497         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
8498           dump
8499         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
8500           is an invalid literal too...)
8501
8502 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
8503
8504         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
8505         from Raphael Neider,
8506         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
8507         for 8-bit literals. This fixes some literal operands which are sign
8508         extended to 16-bits ints when instruction needs only 8-bits.
8509
8510 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
8511
8512         * device/lib/logf.c: added mcs51 assembly version
8513         * device/lib/expf.c: added mcs51 assembly version
8514         * device/lib/_logexpf.c: new shared asm code for expf and logf
8515         * device/include/math.h: add defines for assembly math library
8516         * device/lib/Makefile.in: build new _logexpf.c
8517         * device/lib/libfloat.lib: use new _logexpf.c
8518
8519 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
8520
8521         * src/pic/device.c
8522         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
8523           device types which have less than 0x7f registers.
8524
8525 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
8526
8527         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
8528
8529 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
8530
8531         * device/lib/printf_fast.c: only build on supported arch.
8532         * device/lib/printf_tiny.c: only build on supported arch.
8533         * device/lib/printf_fast_f.c: only build if asm float lib
8534         * device/lib/_fsget1arg.c: only build if asm float lib
8535         * device/lib/_fsget2args.c: only build if asm float lib
8536         * device/lib/_fsnormalize.c: only build if asm float lib
8537         * device/lib/_fsreturnval.c: only build if asm float lib
8538         * device/lib/_fsrshift.c: only build if asm float lib
8539         * device/lib/_fsswapargs.c: only build if asm float lib
8540         * device/include/stdio.h: don't provide print_fast,
8541           print_fast_f, print_tiny prototypes if --xstack used
8542
8543 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
8544
8545         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
8546         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
8547           to the SOURCES
8548
8549 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
8550
8551         * device/lib/printf_fast_f.c: same as printf_fast, but
8552           with floating point enabled
8553         * device/lib/printf_fast.c: minor tweaks
8554         * device/include/stdio.h: add printf_fast_f
8555
8556 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
8557
8558         * src/SDCCmain.c: make --float-reent default for mcs51
8559         * device/lib/_fsadd.c: added mcs51 assembly version
8560         * device/lib/_fssub.c: added mcs51 assembly version
8561         * device/lib/_fsmul.c: added mcs51 assembly version
8562         * device/lib/_fsdiv.c: added mcs51 assembly version
8563         * device/lib/_fseq.c: added mcs51 assembly version
8564         * device/lib/_fsneq.c: added mcs51 assembly version
8565         * device/lib/_fsgt.c: added mcs51 assembly version
8566         * device/lib/_fslt.c: added mcs51 assembly version
8567         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
8568         * device/lib/Makefile.in: add _fscmp to build
8569         * device/lib/libfloat.lib: add _fscmp to build
8570
8571 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
8572
8573         * device/lib/_fs2slong.c: added mcs51 assembly version
8574         * device/lib/_fs2sint.c: added mcs51 assembly version
8575         * device/lib/_fs2schar.c: added mcs51 assembly version
8576         * device/lib/_fs2ulong.c: added mcs51 assembly version
8577         * device/lib/_fs2uint.c: added mcs51 assembly version
8578         * device/lib/_fs2uchar.c: added mcs51 assembly version
8579         * device/lib/_slong2fs.c: added mcs51 assembly version
8580         * device/lib/_sint2fs.c: added mcs51 assembly version
8581         * device/lib/_schar2fs.c: added mcs51 assembly version
8582         * device/lib/_ulong2fs.c: added mcs51 assembly version
8583         * device/lib/_uint2fs.c: added mcs51 assembly version
8584         * device/lib/_uchar2fs.c: added mcs51 assembly version
8585         * device/include/float.h: added #define to select asm vs c
8586
8587 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
8588
8589         * device/lib/printf_fast.c: improvements to float output
8590         * device/include/float.h: add defines for assembly float library
8591         * device/lib/_fsget1arg.c: receive 1 float arg
8592         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
8593         * device/lib/_fsnormalize.c: normalize a float
8594         * device/lib/_fsreturnval.c: return float, various helper routines
8595         * device/lib/_fsrshift.c: right shift a float's mantissa
8596         * device/lib/_fsswapargs.c: swap 2 floats
8597         * device/lib/Makefile.in: build these 6 new files for mcs51
8598         * device/lib/libfloat.lib: add these 6 files to the library
8599
8600 2004-12-26 Borut Razem <borut.razem AT siol.net>
8601
8602         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
8603           built by gcc 3.4.2
8604
8605 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
8606
8607         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
8608           and fully reentrant and register bank neutral.
8609         * device/lib/printf_fast.c: added float (not enabled by default),
8610           added compact/slower integer (also not enabled by default),
8611           improved size/speed of fast integer code, other minor changes
8612         * device/include/stdio.h, device/lib/Makefile.in,
8613           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
8614
8615 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
8616
8617         * src/pic16/pcode.c: declaring variables other than at the start of a
8618           block is not supported in C by VC6.
8619
8620 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
8621
8622         * applied a previous patch from Raphael Neider that wasn't included
8623         in the previous commits, which fixes infinite loops within jumptable
8624         improvements,
8625         * made some fixes that previous patches introduced
8626
8627 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
8628
8629         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
8630         that fixes an issue with AOP_PCODE asmop's offset,
8631         * (pic16_popCopyReg): update instance field too,
8632         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
8633         function of pic port,
8634         * (genCmp, genAnd, genAssign),
8635         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
8636
8637 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
8638
8639         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
8640         variables initial values to idata section,
8641         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
8642         variables in some functions. This utilizes parmBytes field of iCode
8643         structure to hold the offset of the variable in stack. (might be
8644         able to use the stack field too?)
8645         * applied patch from Raphael Neider # ### , # ###
8646         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
8647         variable initial values in idata section,
8648         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
8649         for static variables with initial value
8650         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
8651         applied fix in while loop from Raphael Neider.
8652
8653 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
8654
8655         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
8656         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
8657         * src/ds390/ralloc.c (serialRegAssign): spill bits
8658         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
8659         * support/Util/SDCCerr.c,
8660         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
8661         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
8662         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
8663
8664 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
8665
8666         * device/include/sdcc-lib.h: inserted LGPL, added includes
8667           asm/ds390/features.h and asm/mcs51/features.h
8668         * device/include/asm/default/features.h,
8669         * device/include/asm/gbz80/features.h,
8670         * device/include/asm/z80/features.h: added empty _AUTOMEM
8671           and _STATMEM
8672         * device/include/asm/ds390/features.h,
8673         * device/include/asm/mcs51/features.h: added files with defines for
8674           _AUTOMEM and _STATMEM indicating automatic and static storage class
8675         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
8676         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
8677         * src/SDCCicode.c (geniCodeCast),
8678         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
8679         * src/SDCCloop.c (loopInduction): removed unused variable lr
8680         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
8681           to convertToFcall to include char modulo (RFE 1065037), added check
8682           if left operand is unsigned and use abs of literal value
8683         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
8684           as it doesn't work after conversion from peephole.def to peephole.rul
8685         * src/mcs51/gen.c (toBoolean): added check for size,
8686           (genModOneByte): optimized code for signed char modulo a literal
8687           power of 2 (thanks to Hubert Sack),
8688           (genRRC): removed unnecessary "clr c",
8689           (genRLC): replaced "add a,acc" with cheaper "rlc a"
8690         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
8691           jump optimization,
8692           swapped rules 256.c and 256.d,
8693           extended 256.d by using new multiple checks (thanks Erik),
8694           added rules 256.e and 256.f,
8695           updated rule 261.a and 261.b to new generated code
8696         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
8697
8698 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8699
8700         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
8701           induction related bugs, including first part of bug #1074377
8702
8703 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
8704
8705         * applied patch from bug-report #1076292,
8706         * applied patches for genAnd and Goto-optimizations for Raphael
8707         Neider,
8708         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
8709         dump a less iCode information,
8710         * src/pic16/device.h (pic16_options_t): added field debgen,
8711         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
8712         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
8713         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
8714         puclic,
8715         * (various functions): added macros FENTRY and FENTRY2 to functions,
8716         to emit function prologue,
8717         * (various functions): fixed indentation,
8718         * (genNearPointerGet): fixed loading of FSR0,
8719         * (genPackBits): applied patch from Raphael Neider to fix updating
8720         of FSR0 and touching only the modified bits,
8721         * src/pic16/genarith.c (various functions): added macros FENTRY to
8722         emit function prologue in comments,
8723         * src/pic16/pcode.h: added functions debugf2, debugf3,
8724         * src/pic16/ralloc.c: partial fix for packForPush caused
8725         segmentation fault,
8726
8727 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8728
8729         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
8730           <stsp AT users.sourceforge.net> with reversed byte order
8731         * support/regression/tests/rotate.c: added (ds390 skips some tests)
8732
8733 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8734
8735         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
8736           bug #1074377
8737         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
8738         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
8739
8740 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
8741
8742         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
8743
8744 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8745
8746         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
8747           conditions,
8748           (setFromConditionArgs): friendly operand parser for peephole rules,
8749           (operandBaseName, operandsNotRelated): new peephole condition
8750           "operandsNotRelated" -- similar to "operandsNotSame", but takes
8751           architecture specific register naming into account, handles n-way
8752           comparisons, and supports quoted literals
8753         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
8754
8755 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8756
8757         * src/mcs51/peeph.def: fixed bug #1076940
8758
8759 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
8760
8761         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
8762
8763 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8764
8765         Adding support for replacing ljmps with sjmps in jumptables
8766         generated for switch statements. For now you need to set the
8767         environment variable SDCC_SJMP_JUMPTABLE to enable this.
8768         Now 4 algorithms for mcs51 jumptable generation are used:
8769         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
8770         addresses loaded pc-relative for up to 112 cases and stack-pushing
8771         target addresses loaded with offset from dptr for up to 256 cases.
8772
8773         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
8774         * src/mcs51/main.c: adapted constants for switch table generation
8775         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
8776
8777 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
8778
8779         * device/lib/printf_large.c (_print_format): fixed bug 1073386
8780         * support/regression/tests/bug1057979.c: added test for bug 1073386
8781
8782 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
8783
8784         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
8785         compilers
8786
8787 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
8788
8789         * src/pic16/device.h,
8790         * src/pic16/genarith.c,
8791         * src/pic16/glue.c,
8792         * src/pic16/main.c,
8793         * src/pic16/pcode.c: applied patches #1068154 and #1070213
8794
8795 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
8796
8797         Large cummulative patch for pic16 port.
8798         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
8799         to call when a stack overflow occurs,
8800         * (malloc.h): added CVS Id tag,
8801         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
8802         variable,
8803         * added libc directory. The current version of LibC contains string
8804         functions, ctype functions and macros and some functions of the
8805         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
8806         be extensively tested in the future. Standard disclaimer here.
8807         Library is not automatically build yet. But one can build it by
8808         invoking 'make' inside the libc directory.
8809         * added ADC library under libio. Preliminary version yet.
8810
8811         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
8812         * src/pic16/gen.c (aopForRemat): asmop size is filled by
8813         aopForRemat() now and not by pic16_aopOp(),
8814         * (pic16_popGetTempReg): removed warning messgae when allocating
8815         temporary registers, its a buggy feature and will be removed,
8816         * (pic16_popGet): set register instance field in AOP_CRY,
8817         * (pic16_outBitC): fixed for results in size greater than 1,
8818         * (genUminusFloat): fixed for pic16, ported code from mcs51,
8819         * (pic16_storeForReturn): optimized return of 0,
8820         * (genCmp): experimental code for new genCmp which uses PIC18's
8821         special compare&skip instructions. Initial tests fail some times
8822         with variables grater than 1 byte in size, so new code is disabled,
8823         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
8824         a single bit,
8825         * (genCast): began a fix to optimize the casting of a bit to another
8826         bit, now assigning a bitfield to another bitfield will fail, sorry,
8827         * src/pic16/main.c: disabled the use of lr-support feature,
8828         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
8829         * added some function prototypes, added function _debugf prototype,
8830         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
8831         bits with offset (case PO_GPR_BIT),
8832         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
8833         command line,
8834         * (isBankInstruction): modified to return 0 for no banking instruction,
8835         and 1 for banking instruction,
8836         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
8837         caused stop processing pCodes after a inline assembly block,
8838         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
8839         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
8840         registers when it shouldn't,
8841         * src/pic16/ralloc.c (allocReg): add preliminary support for
8842         supporting a limited set of temporary registers,
8843
8844 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8845
8846         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
8847           genDataPointerSet): ensure assignments always copy in MSB to LSB
8848           order,
8849           (loadRegFromAop): recognize CLRH optimization,
8850           (genFunction): optimize RECEIVE iCodes in reentrant functions
8851
8852 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8853
8854         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
8855           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
8856           selected.
8857         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
8858         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
8859           contiguous with data
8860
8861 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8862
8863         * device/lib/_gptrget.c (_gptrget),
8864         * device/lib/_gptrgetc.c (_gptrgetc),
8865         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
8866           instead of sjmp to ret
8867         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
8868           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
8869
8870 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
8871
8872         * .version: bumped version to 2.4.7
8873         * device/lib/_gptrget.c (_gptrget): is now _naked
8874         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
8875         * device/lib/_gptrput.c (_gptrput): is now _naked
8876         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
8877           (createFunction): fixed xstack
8878         * src/SDCCglue.c (emitMaps): set allocation required for bit area
8879         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
8880           or bit either,
8881           (geniCodeCritical): store original interrupt state in an iTemp bit
8882           var unless stack-auto
8883         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
8884         * src/SDCCmain.c (setIncludePath): added include/target to search path
8885         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
8886         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
8887           prototype,
8888           (processFuncArgs): put bit vars in bit area
8889         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
8890           unsaveRBank): fixed xstack,
8891           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
8892           (genFunction, genEndFunction): fixed xstack,
8893           (genAssign): optimization don't walk backwards through mem
8894         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
8895         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
8896         * support/regression/Makefile: also make library (for stack-auto) when
8897           making "all" and added "test-mcs51-xstack-auto"
8898         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
8899         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
8900         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
8901         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
8902         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
8903           make-library by MAKE_LIBRARY
8904         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
8905           regression tests for xstack
8906         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
8907         * support/regression/tests/critical.c: test for critical on mcs51
8908
8909 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8910
8911         * support/regression/ports/ucz80/spec.mk: use include and lib files from
8912           built version of sdcc instead of installed version
8913
8914 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
8915
8916         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
8917         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
8918           vprintf.c now
8919         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
8920         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
8921           WARNING: remove device/lib/build/z80/printf.o by hand when
8922           updating from previous build!
8923         * device/lib/z80/printf.c: updated comment
8924         * support/regression/tests/bug1057979.c: test all ports now
8925         * support/regression/tests/bug1065458.c: file added
8926
8927 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8928
8929         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
8930           *_start and *_end symbols for static functions
8931
8932 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
8933
8934         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
8935           and search crt0.o in all library paths,
8936           (setIncludePath): proper handling of --nostdinc,
8937           (setLibPath): proper handling of --nostdlib
8938         * support/regression/Makefile,
8939         * support/regression/ports/ds390/spec.mk,
8940         * support/regression/ports/gbz80/spec.mk,
8941         * support/regression/ports/hc08/spec.mk,
8942         * support/regression/ports/mcs51/spec.mk,
8943         * support/regression/ports/mcs51-large/spec.mk,
8944         * support/regression/ports/mcs51-stack-auto/spec.mk,
8945         * support/regression/ports/z80/spec.mk: use include and lib files from
8946           built version of sdcc instead of installed version
8947         * doc/sdccman.lyx: fixed typo in --nostdinc
8948
8949 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
8950
8951         * src/pic/pcode.c,
8952         * src/pic/device.c,
8953         * src/pic/ralloc.c,
8954         * src/pic/gen.c : added support to generate code for struct bit fields.
8955
8956 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
8957
8958         * as/xa51/xa_version.h,
8959         * device/include/errno.h,
8960         * device/include/regc515c.h,
8961         * device/lib/_itoa.c,
8962         * device/lib/_ltoa.c,
8963         * device/lib/ser_ir_cts_rts.c,
8964         * sim/ucsim/xa.src/glob.cc,
8965         * sim/ucsim/xa.src/inst_gen.cc,
8966         * sim/ucsim/xa.src/xa_bit.cc,
8967         * sim/ucsim/xa.src/xa_sfr.cc,
8968         * sim/ucsim/z80.src/inst_dd.cc,
8969         * sim/ucsim/z80.src/inst_fdcb.cc,
8970         * support/scripts/keil2sdcc.pl,
8971         * src/pic16/pic16.dsp,
8972         * src/pic16/pic16a.dsp: corrected cvs line endings
8973         * device/lib/printf_large.c: fixed bug 1057979
8974         * src/pic16/gen.c: fixed non-C standard code
8975         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
8976         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
8977         * support/regression/ports/mcs51/support.c: reload T1 asap
8978         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
8979           pdata use and clear idata startup behaviour
8980         * support/regression/tests/bug1057979.c: added
8981
8982 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
8983
8984         * device/examples/ds390/ow390/ad26.h,
8985         * device/examples/ds390/ow390/cnt1d.h,
8986         * device/examples/ds390/ow390/crcutil.c,
8987         * device/examples/ds390/ow390/ownet.h,
8988         * device/examples/ds390/ow390/owsesu.c,
8989         * device/examples/ds390/ow390/swt12.h,
8990         * device/examples/ds390/ow390/swtoper.c,
8991         * device/examples/ds390/ow390/temp10.h,
8992         * device/examples/ds390/ow390/thermodl.c,
8993         * device/examples/ds390/tinitalk/tinitalk.dsp,
8994         * device/examples/ds390/tinitalk/tinitalk.dsw,
8995         * device/examples/mcs51/clock/hw.h,
8996         * device/examples/mcs51/simple2/go.bat,
8997         * device/examples/serialcomm/windows/serial.h,
8998         * device/examples/xa51/dummy.c,
8999         * device/examples/xa51/hello.c,
9000         * device/include/80c51xa.h,
9001         * device/include/at89x051.h: corrected cvs line endings
9002
9003 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
9004
9005         * src/pic16/main.c (options): added command line --gstack, to trace
9006         stack over/under flows,
9007         * added pragma 'wparam' to allow passing first byte of function
9008         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
9009         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
9010         call to __gstack_test function and sets up the symbol as extern,
9011         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
9012         * popaop): added call to pic16_testStackOverflow,
9013         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
9014         wparamList list,
9015         * (genCall, genPcall): now all parameters are passed via stack
9016         except in functions that are pass to wparam pragma in which WREG is
9017         used too,
9018         * (genPcall): REENTRANT flag is checked to see if variable prototype
9019         contains reentrant keyword, don't call a non-reentrant function, via
9020         a reentrant function pointer or vice versa, functions are never
9021         passed via WREG,
9022         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
9023         D.Winkler,
9024         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
9025         SIGSEGV when accessing a NULL register stucture,
9026         * (pic16_printGPointerType): modified to handle UPPER modifier for
9027         function initializers, changed prototype of function to simpler one,
9028         * (pic16_printIvalFuncPtr): check to see if function is already
9029         added in externs list,
9030         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
9031         optimized a move from W to SFR with a move to the same register
9032         later after a CALL,
9033         * device/lib/pic16/debug: NEW directory, contains debug features
9034         which are enabled when linking with libdebug.lib, currently command
9035         line option --gstack enables stack pointer tracing for over/under
9036         flow, corresponding sources are in debug/gstack
9037
9038 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
9039
9040         * doc/sdccman.lyx: updated SDCC version,
9041         * (PIC16 port): update list of command line options,
9042         * src/pic16/device.h (structure pic16_options_t): added field gstack
9043         to enable stack overflow tracing on push/pops,
9044         * src/pic16/device.c (statistics structure): added statistics
9045         structure,
9046         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
9047         pic16_dump_int_registers): increase statistics counters for each
9048         * variable which is encountered
9049         * (pic16_dump_usection): emit each .udata variable to its own udata
9050         section,
9051         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
9052         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
9053         parameters via stack, otherwise use old scheme,
9054         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
9055         assembler output file,
9056         * src/pic16/main.c: added command line options --gstack to enable
9057         push/pop tracing for stack overflow,
9058         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
9059         instructions): added size of each instruction,
9060         * (pic16_countInstruction): estimate size of instructions in
9061         the_pFile list, inline assembly blocks are not counted,
9062         * (pic16_FixRegisterBanking): trace previous register usage, when
9063         banksel optimizations is greater than 0, don't emit a redudant
9064         banksel directive,
9065
9066 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
9067
9068         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
9069         * src/pic16/ralloc.c : applied same fix for pic16.
9070         * src/pic/gen.c : tidied it up a little.
9071
9072 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9073
9074         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
9075         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
9076
9077 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9078
9079         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
9080
9081 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9082
9083         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
9084         non-reentrant function __modsint in the interrupt function (thus
9085         corrupting math operations during serial I/O)
9086         * device/lib/ser_ir.c: as above, changed buffersize
9087         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
9088         256.c,d for zeroing
9089         * doc/Makefile: added option -t for rsync
9090
9091 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9092
9093         * src/SDCCast.h (struct ast),
9094         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
9095
9096 2004-10-20 Borut Razem <borut.razem AT siol.net>
9097
9098         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
9099         package
9100
9101 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
9102
9103         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
9104         makefile targets,
9105         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
9106         support functions to replace long sequences of MOVFF's from access
9107         bank registers to stack and vice versa,
9108         * src/pic16/device.h: added new field opt_flags, where optimization
9109         flags can be set to enable certain features,
9110         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
9111         * pBlock, (genFunction, genEndFunction): surroung loop for
9112         saving/loading used registers in stack with PC_INFO pCodes,
9113         INF_LREGS. Code in between can then be optimized by pCode optimizer
9114         to support function calls,
9115         * (genDataPointerSet): fixed bug which loaded float fields in
9116         structures with corrupt data,
9117         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
9118         in a standard way debug info on stderr. Feature used for developing
9119         and debugging only,
9120         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
9121         obsolete chunks of code,
9122         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
9123         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
9124         * pic16/src/pcode.c (pic16_newpCodeInfo,
9125         * (pic16_newpCodeOpLocalRegs),
9126         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
9127         feature,
9128         * (pic16_pCodeConstString): printing of the initial value of a
9129         symbol as a comment is inhibited since parsing was already done by
9130         copyStr and output is corrupt,
9131         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
9132
9133 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9134
9135         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
9136
9137 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
9138
9139         * as/mcs51/lkarea.c: removed old K&R style,
9140           (lnksect): changed check on boundary error,
9141           (lnksect2): changed check on boundary error,
9142           (lnksect2): extend XSTK to end of page if size = 1
9143         * as/mcs51/lkmain.c: removed old K&R style,
9144           (Areas51): create l_IRAM symbol
9145         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
9146         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
9147           model-mcs51-stack-auto, added model-mcs51-xstack-auto
9148         * device/lib/_mullong.c: added version to be compiled with xstack
9149         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
9150         * device/lib/mcs51/crtxclear.asm: clear pdata as well
9151         * device/lib/mcs51/crtxstack.asm: fixed comment
9152         * src/SDCCglue.c: maxInterrupts defaults to 0,
9153           (emitMaps): added pdata,
9154           (createInterruptVect): (re)moved default,
9155           (glue): added pdata,
9156           (glue): moved __start__xstack to XSTK with default size 1
9157         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
9158           and options.float_rent when options.stackAuto is set,
9159           (linkEdit): only write XDATA_NAME if provided on command line
9160         * src/SDCCmem.h,
9161         * src/SDCCmem.c: added pdata
9162         * src/port.h: added pdata_name to PORT
9163         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
9164           (saveRegisters, unsaveRegisters): removed usage of B,
9165           (genMinus): fixed accumulator clash,
9166           (genJumpTab): added comment, this needs another look
9167         * src/mcs51/gen.c: added check for "B in use" paranoia,
9168           added pushB() and popB()
9169         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
9170           chance
9171         * src/avr/main.c,
9172         * src/ds390/main.c,
9173         * src/hc08/main.c,
9174         * src/mcs51/main.c,
9175         * src/pic/main.c,
9176         * src/pic16/main.c,
9177         * src/xa51/main.c,
9178         * src/z80/main.c: (reset_regparms) made void parameter explicit and
9179           added PSEG (PAG,XDATA) or NULL to port specifier
9180         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
9181         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
9182           (_mcs51_genInitStartup): removed __start__xstack equ,
9183           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
9184         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
9185         * src/z80/gen.c (_rleAppend): fixed warnings
9186         * support/regression/tests/zeropad.c: added pdata test
9187         * .version: bumped to 2.4.6
9188
9189 2004-10-17 Borut Razem <borut.razem AT siol.net>
9190
9191         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
9192         as a part of nightly build
9193
9194 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
9195
9196         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
9197         WREG holds the first byte function parameters,
9198         * (aopForSym): take special case for symbols which are in FARSPACE
9199         but in CODESPACE too,
9200         * (assignResultValue): modified to take into account _G.useWreg,
9201         * (genCall): don't use wreg for parameter passing when function is
9202         declared as reentrant, too, added optimization INCF to stack
9203         pointer when stack parameter count is 1,
9204         * (genFunction, genEndFunction): refurnished and fixed to not using
9205         wreg for passing parameters when function has varargs or is
9206         reentrant, fixed bug with symbol name compare for generating
9207         functions in absolute address,
9208         * (pic16_storeForReturn): refurnished,
9209         * (genCmp): began writing a new version of the function, not ready
9210         yet, therefore it is disabled,
9211         * (genAssign): do not read code memory when assigning a function to
9212         a pointer function,
9213         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
9214         array of characters, not pointer,
9215         * (pic16initialComments): in debug mode emit an .ident directive for
9216         the assembler,
9217         * (_process_pragma): emit a new warning type (internal to pic16)
9218         when setting stack to default length, emit a similar warning when
9219         placing a function at absolute address and address is not word aligned
9220         * (_pic16_parseOptions): added 'return TRUE' statement,
9221         * (_pic16_linkEdit): if compiling a source, then add the source's
9222         file object, first in the list of objects to link,
9223
9224 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
9225
9226         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
9227         * src/pic/main.c : removed VC warning.
9228         * src/pic/gen.c : changed comment.
9229
9230 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
9231
9232         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
9233         reference to a deprecated symbol _GPTRREG was causing failure to
9234         link. Thanks G. M. Gallant for the info.
9235
9236 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
9237
9238         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
9239         comments for Bugs item #954788.
9240
9241 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
9242
9243         * src/pic16/device.c (pic16_dump_gsection,
9244         * pic16_groupRegistersInSection): handle symbols declared to be in
9245         access bank differently,
9246         * src/pic16/gen.c (struct _G): added field resDirect,
9247         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
9248         send values read from stack directly to result and don't allocate
9249         temporary values,
9250         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
9251         same registers,
9252         * (pic16_sameRegsOfs): NEW,
9253         * (freeAsmop): if _G.resDirect is set then do not mark registers as
9254         free because they were not allocated from temporary pool,
9255         * pic16_popRegFromString): workaround to fix a problem with
9256         allocating variables twice or never,
9257         * (genGenPointerGet): using PRODL instead of FSR0H,
9258         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
9259         instead of FSR0H,
9260         * (genAssign): take advantage of the _G.resDirect flag,
9261         * (genCast): around line 11844, use mov2f instead of directly
9262         MOVFF'ing between operands to account for literal values,
9263         * src/pic16/genutils.c: some new debug functions for gpsim have been
9264         added,
9265         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
9266         float with integer part only,
9267         * src/pic16/main.c (_process_pragma): handle pragma udata access to
9268         place variables in access bank
9269         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
9270         updated sources to reflect recent changes in gen.c
9271
9272 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
9273
9274         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
9275         sources that searched for headers in installation path, now the
9276         device/include/pic16 is used,
9277         * src/pic16/glue.c (pic16glue),
9278         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
9279         .line directives if not in debug mode, this suppresses assembler's
9280         warnings for ignored directives
9281
9282 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
9283
9284         * src/port.h: made reset_regparms prototype void parameter explicit.
9285         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
9286         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
9287         * doc/sdccman.lyx: documented warning disabling and how to use
9288           printf_large to make it print floats.
9289         * device/include/stdbool.h: NEW
9290         * device/lib/_atof.c,
9291         * device/lib/_divuint.c,
9292         * device/lib/_divulong.c,
9293         * device/lib/expf.c,
9294         * device/lib/printf_large.c,
9295         * device/lib/sincosf.c,
9296         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
9297         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
9298           a completely reentrant lib.
9299
9300 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
9301
9302         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
9303         * device/include/pic16/stdio.h: fixed bug with colon
9304
9305 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
9306
9307         * device/include/pic16/stdio.h,
9308         * device/include/pic16/stdlib.h,
9309         * device/include/pic16/math.h: NEW
9310         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
9311         declared as _naked to reduce overhead
9312         * device/lib/Makefile.in (target port-specific-objects-pic16):
9313         changed * to *.* so to ignore the CVS directory,
9314         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
9315         stacked variables back in stack,
9316         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
9317         corruption
9318
9319 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
9320
9321         * .version: bumped version number to 2.4.5
9322         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
9323         * support/Util/SDCCerr.c (messages structure): added entry for
9324         W_POSSBUG2
9325
9326         Large cumulative patch for pic16 port and libraries.
9327         * device/include/pic16/sdcc-lib.h,
9328         * device/include/pic16/stdarg.h,
9329         * device/include/asm/pic16/features.h,
9330         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
9331         * device/include/pic16/float.h: changes reentrant keyword with
9332         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
9333         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
9334         updated target build-libraries to include objects from gptr,
9335         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
9336         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
9337         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
9338         all function headings,
9339         * src/SDCCmain.c: added global parameter userIncDirsSet,
9340         * (parseCmdLine): when option -I is encountered add directory to
9341         userIncDirsSet too,
9342         * src/version.awk: added space between control and long,
9343         * src/pic16/NOTES: added some notes for the port,
9344         * src/pic16/gen.c: added prototype for mov2fp function,
9345         * (fReturnpic16[]): properly named return value registers,
9346         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
9347         * (aopForSym): added code to handle symbols with onStack flag set,
9348         symbols onStack are allocated PTRSIZE bytes,
9349         * (aopFreeAsmop): handles special case where asmops are stack objects,
9350         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
9351         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
9352         added argument lock to trace flaws in allocating temporary registers
9353         when developing port,
9354         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
9355         * (pic16_popRegFromString): reenabled allocating a direct register
9356         from string,
9357         * (assignResultValue): various beautifications,
9358         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
9359         referenced function argument,
9360         * (genIpush): reenabled to allow stacked arguments, handles only
9361         ic->parmPush iCodes,
9362         * (genCall, genPcall): major changes to allow for variable argument
9363         functions, fixed a bug with falsely restoring stack pointer after
9364         returning from call,
9365         * (genFunction): pending code for critical function,
9366         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
9367         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
9368         * (genNearPointerGet): fixed bug with indirect reading, was always
9369         reading from INDF0
9370         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
9371         pointers,
9372         * (genAddrOf): rewrote code to take address of a stacked function parameter
9373         * (genCast): fixed casting to generic pointer type,
9374         * src/pic16/gen.h: added AOP_STA,
9375         * (struct asmop): added field stk,
9376         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
9377         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
9378         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
9379         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
9380         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
9381         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
9382         generic pointers,
9383         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
9384         and library paths,
9385         * (pic16_port structure): generic pointer size is set to 3,
9386         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
9387         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
9388         compiler warning,
9389         * src/pic16/ralloc.c (allocReg): prevent allocating register when
9390         operand is an iTemp,
9391
9392 2004-09-24 Martin Helmling <mh AT octo-soft.de>
9393
9394         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
9395         * debugger/mcs51/simi.c: addapt new syntax of s51
9396
9397 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
9398
9399         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
9400         * src/pic16/pcode.c: commented out some calls to free() in order to
9401         fix bug #989576,
9402
9403 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9404
9405         * src/SDCCicode.h,
9406         * src/SDCCicode.c (isiCodeInFunctionCall),
9407         * src/avr/ralloc.c (selectSpil),
9408         * src/pic/ralloc.c (selectSpil),
9409         * src/pic16/ralloc.c (selectSpil),
9410         * src/ds390/ralloc.c (selectSpil),
9411         * src/hc08/ralloc.c (selectSpil),
9412         * src/xa51/ralloc.c (selectSpil),
9413         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
9414         stack in the middle of a function call sequence (fixes bug #1020268)
9415         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
9416         costs associated with the minimum switch case.
9417
9418 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9419
9420         * src/SDCC.lex: fixed bug #1030549
9421
9422 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9423
9424         * src/SDCCcse.h (struct cseDef),
9425         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
9426         over a function call if the CSE is derived from a symbol whose
9427         address has been taken (fixes bug #1029883)
9428         * support/regression/tests/bug-1029883: a new regression test for
9429         this bug
9430
9431 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9432
9433         * src/hc08/gen.c (emitinline): fixed bug #1029778
9434         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
9435         to a cast object is no longer a syntax error ("fixes" bug #1030006,
9436         and starts toward RFE #905167)
9437
9438 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
9439
9440         * src/pic16/gen.c (mov2f): New function to move an operand to
9441         another without considering if it is a literal or a register,
9442         * (pic16_sameRegs): don't check if they are both AOP_REG,
9443         * (AccRsh): removed andmask=0 lines,
9444         * (genLeftShift): duplicated to be improved in future versions,
9445         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
9446         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
9447         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
9448         * (pic16initMnemonics): added initialization for POC_INFSNZW,
9449         * (insertBankSwitch): fixed inserting banksel directives algorithm
9450         for instructions that follow a skip instruction, this fixes a report
9451         for broken subtraction code generation,
9452         * src/pic16/ralloc.c (deassignLRs): do not free register if current
9453         iCode is a left op, just in case result and right share the same
9454         registers
9455
9456 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9457
9458         * src/hc08/main.c,
9459         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
9460         preservation of HX
9461         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
9462         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
9463         on 2004-09-12; it was buggy
9464
9465 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
9466
9467         * src/SDCCsymt.h: removed RESULT_CHECK
9468         * src/SDCCast.c,
9469         * src/SDCCglue.c,
9470         * src/SDCCval.c,
9471         * src/pic/glue.c,
9472         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
9473
9474 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
9475
9476         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
9477         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
9478         configuration values no more rejected by compiler, they are assigned
9479         to configuration registers with a warning message instead,
9480         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
9481         the for-loop so last conf register is emitted too,
9482         * (_pic16_initPaths): link library libsdcc.lib by default,
9483         * (_hasNativeMulFor): modified test for multiplication according to
9484         Raphael Neider's remarks. Integer multiplication is also done with
9485         support functions,
9486         * device/include/pic16/pic18fregs.h: corrected type error in while
9487         testing and including 18f6720 header file
9488
9489 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
9490
9491         * src/pic16/device.h (pic16_options): removed field use_crt,
9492         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
9493         until an optimization to handle single bits is added,
9494         * (pic16_loadFSR0): moved before genUnpackBits,
9495         * (genAnd): some white lines removed,
9496         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
9497         leave_reset flags in pic16_options when using crt modules,
9498
9499 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
9500
9501         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
9502           for bugs 898889 & 979599. Also used some safer print instructions.
9503
9504 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
9505
9506         * src/pic16/device.h (pic16_options_t): added field use_crt,
9507         crt_name, no_crt,
9508         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
9509         catch a probable future bug,
9510         * src/pic16/gen.c: aopIdx function commented out,
9511         * (genAssign): commented out old code which used aopIdx,
9512         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
9513         code, added if conditionals to take into account the --use-crt
9514         command line options,
9515         * src/pic16/main.c (pic16_optionsTable): added new command line
9516         options, --use-crt= and --no-crt,
9517         * (_pic16_linkEdit): now the proper crt object is added in the
9518         linker command line except than when --no-crt is specified,
9519         * src/pic16/pcode.c,
9520         * src/pic16/pcode.h: added some structures and functions for a new
9521         optimization scheme to compansate for instruction overhead between
9522         same iCodes, this scheme is currently under development and is not
9523         working in any way,
9524         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
9525         to && operator,
9526         * device/lib/pic16/startup/crt0i.c,
9527         * device/lib/pic16/startup/crt0iz.c: added global char variable
9528         __uflags to force the generation of an idata section
9529
9530 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
9531
9532         * doc/Makefile,
9533         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
9534         * doc/sdccman.lyx: updated sdcc version to 2.4.4
9535
9536 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9537
9538         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
9539         Frieder) and clarified the default code optimization mode
9540
9541 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9542
9543         * src/SDCC.lex (doPragma, process_pragma),
9544         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
9545         "opt_code_size", and "opt_code_balanced"
9546         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
9547         regrouped options by category, added support for category headers
9548         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
9549         and "--opt-code-size"
9550         * doc/sdccman.lyx: documented these new options and pragmas
9551         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
9552         preference into account
9553
9554 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
9555
9556         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
9557           geniCodePreDec): Fixed bug 904237 by generating a warning
9558         * src/SDCCerr.h,
9559         * src/SDCCerr.c: added warning W_SIZEOF_VOID
9560
9561 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
9562
9563         * src/pic/device.c : When no max ram set validate full memory range.
9564         * src/pic/pcode.c,
9565         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
9566
9567 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
9568
9569         * device/lib/_gptrget.c,
9570         * device/lib/_gptrput.c: updated comment
9571         * device/lib/calloc.c,
9572         * device/lib/free.c,
9573         * device/lib/malloc.c,
9574         * device/lib/realloc.c: added LGPL, made them reentrant-safe
9575         * src/SDCCcse.c (cseBBlock),
9576         * src/SDCCicode.c (printOperand, geniCodeArray),
9577         * src/SDCCicode.h (struct operand): fixed bug 868103
9578         * support/regression/tests/bug-868103.c: added
9579         * src/SDCCast.c (searchLitOp),
9580         * src/SDCCcse.h (struct cseDef),
9581         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
9582         * src/SDCCicode.h (struct operand),
9583         * src/SDCCsymt.h (struct sym_link),
9584         * src/avr/gen.c (hasInc),
9585         * src/ds390/gen.c (hasInc),
9586         * src/hc08/gen.c (genPlusIncr, hasInc),
9587         * src/mcs51/gen.c (hasInc),
9588         * src/pic16/glue.c (pic16_printIvalChar),
9589         * src/pic16/ralloc.c (regWithIdx),
9590         * src/xa51/gen.c (hasInc) : removed warnings
9591         * src/SDCCast.c (createBlock): added comment ???
9592         * src/hc08/ralloc.c: updated comments
9593
9594 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9595
9596         * doc/sdccman.lyx: updated section on switch statements, added
9597         section about semaphore locking
9598         * doc/Makefile: added option -info for latex2html
9599         * device/lib/_gptrget.c,
9600         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
9601
9602 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
9603
9604         * src/pic/device.h,
9605         * src/pic/device.c,
9606         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
9607          maxram is less than 0x100.
9608
9609 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
9610
9611         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
9612
9613 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9614
9615         * src/port.h,
9616         * src/mcs51/main.c,
9617         * src/ds390/main.c,
9618         * src/z80/main.c,
9619         * src/hc08/main.c,
9620         * src/pic/main.c,
9621         * src/pic16/main.c,
9622         * src/avr/main.c,
9623         * src/xa51/main.c
9624         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
9625         a jump table is the best form for a switch statement, including
9626         automatic insertion of missing cases to make the case range
9627         continuous. Developed in collaboration with Frieder Ferlemann.
9628
9629 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9630
9631         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
9632         accumulator result if it needs sign extension
9633
9634 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9635
9636         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
9637
9638 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9639
9640         * device/lib/gbz80/printf.c,
9641         * device/lib/z80/printf.c: removed define for NULL
9642
9643 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9644
9645         * as/xa51/xa_link.c,
9646         * device/examples/ds390/ow390/ad26.c,
9647         * device/examples/ds390/ow390/cnt1d.c,
9648         * device/examples/ds390/ow390/counter.c,
9649         * device/examples/ds390/ow390/ds2480.h,
9650         * device/examples/ds390/ow390/ds2480ut.c,
9651         * device/examples/ds390/ow390/findtype.c,
9652         * device/examples/ds390/ow390/gethumd.c,
9653         * device/examples/ds390/ow390/owllu.c,
9654         * device/examples/ds390/ow390/ownetu.c,
9655         * device/examples/ds390/ow390/swt12.c,
9656         * device/examples/ds390/ow390/swtloop.c,
9657         * device/examples/ds390/ow390/temp.c,
9658         * device/examples/ds390/ow390/temp10.c,
9659         * device/examples/ds390/ow390/thermo21.c,
9660         * device/examples/ds390/ow390/tinilnk.c,
9661         * device/examples/ds390/ow390/tstfind.c,
9662         * device/examples/serialcomm/windows/serial.cpp,
9663         * device/examples/serialcomm/windows/test_serialcomm.cpp,
9664         * device/include/reg51.h: fixed line endings for cvs
9665
9666 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9667
9668         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
9669         packRegsForAccUse, packRegisters): new accumulator register
9670         packing algorithm
9671         * support/regression/ports/hc08/support.c (_putchar): suppress
9672         warning of unused variable
9673         * src/SDCCicode.c: added SWAP entry to codeTable
9674
9675 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
9676
9677         * device/lib/sprintf.c: forgot to add this file before previous commit
9678
9679 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
9680
9681         * src/pic16/gen.c (genPackBits): added operand right in function
9682         parameters, load result directly if p_type is POINTER (that is
9683         called by genNearPointerSet)
9684         * (genUnPackBits): added operand left in function parameters,
9685         * (genNearPointerGet, genNearPointerSet): prevent the loading of
9686         FSR0 if accessing bitfields,
9687
9688 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
9689
9690         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
9691           _print_format; updated printf, sprintf, vsprintf
9692         * device/include/asm/default/features.h: corrected comment/define
9693         * device/lib/Makefile.in: added sprintf.c
9694         * device/lib/libsdcc.lib: added sprintf module
9695         * device/lib/printf_large.c,
9696         * device/lib/vprintf.c,
9697         * device/lib/sprintf.c: totally refactored printf_large and vprintf
9698           into these 3 files
9699         * support/regression/Makefile: changed ALL_PORTS into a usefull default
9700         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
9701         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
9702           hc08 test
9703         * support/regression/tests/zeropad.c: define idata as data for hc08
9704
9705 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9706
9707         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
9708         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
9709         labels are referenced at least once (even if a reference is not found)
9710         * src/hc08/gen.c (emitcode): set isComment flag for comments
9711         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
9712         loads), rules 6a..6b (optimize jumps to return)
9713
9714 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9715
9716         * device/lib/acosf.c (acosf),
9717         * device/lib/asinf.c (asinf),
9718         * device/lib/atanf.c (atanf),
9719         * device/lib/ceilf.c (ceilf),
9720         * device/lib/cosf.c (cosf),
9721         * device/lib/coshf.c (coshf),
9722         * device/lib/cotf.c (cotf),
9723         * device/lib/fabsf.c (fabsf),
9724         * device/lib/floorf.c (floorf),
9725         * device/lib/log10f.c (log10f),
9726         * device/lib/logf.c (logf),
9727         * device/lib/sinf.c (sinf),
9728         * device/lib/sinhf.c (sinhf),
9729         * device/lib/sqrtf.c (sqrtf),
9730         * device/lib/tanf.c (tanf),
9731         * device/lib/tanhf.c (tanhf),
9732         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
9733         replaced all instances of "reentrant" in the library functions
9734         defined in math.h with this macro.
9735         * support/regression/tests/float_trans.c: reenabled test for hc08
9736
9737 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
9738
9739         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
9740         erroneously deleted
9741
9742 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9743
9744         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
9745         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
9746         multi-byte volatile operands are used
9747         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
9748         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
9749         initialization to area GSINIT0 so that it would always precede
9750         any static initializers in GSINIT
9751         * support/regression/tests/zeropad.c: fixed idata define for hc08
9752         * support/regression/tests/bug-927659.c,
9753         * support/regression/tests/float_trans.c: disabled tests for hc08
9754         pending missing library routines
9755         * .version: increased version number to 2.4.4 - hc08 port now passes
9756         regression tests
9757
9758
9759 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
9760
9761         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
9762         * Makefile.common.in,
9763         * as/Makefile,
9764         * as/hc08/Makefile.in,
9765         * as/mcs51/Makefile.in,
9766         * as/z80/Makefile.in,
9767         * debugger/mcs51/Makefile.in,
9768         * device/include/Makefile.in,
9769         * device/lib/Makefile.in,
9770         * doc/Makefile,
9771         * link/Makefile,
9772         * link/z80/Makefile.in,
9773         * packihx/Makefile.in,
9774         * sim/ucsim/main_in.mk,
9775         * sim/ucsim/avr.src/Makefile.in,
9776         * sim/ucsim/doc/Makefile.in,
9777         * sim/ucsim/gui.src/serio.src/Makefile.in,
9778         * sim/ucsim/hc08.src/Makefile.in,
9779         * sim/ucsim/s51.src/Makefile.in,
9780         * sim/ucsim/xa.src/Makefile.in,
9781         * sim/ucsim/z80.src/Makefile.in,
9782         * src/Makefile.in,
9783         * support/cpp2/Makefile.in,
9784         * support/librarian/Makefile,
9785         * support/makebin/Makefile: added DESTDIR to the install path proposed
9786         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
9787         * doc/sdccman.lyx: added DESTDIR documentation
9788
9789 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
9790
9791         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
9792         instruction for interrupt handlers, use fast returns when returning
9793         from high priority interrupts
9794
9795 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9796
9797         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
9798         code generation
9799         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
9800         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
9801         bugs, ported much of Bernhard's code from mcs51
9802         * src/mcs51/gen.c (genSend),
9803         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
9804         than one when calling a reentrant function
9805         * device/lib/_mullong.c: defined an alternate struct layout for big
9806         endian ports (hc08)
9807
9808 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9809
9810         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
9811         test
9812
9813 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9814
9815         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
9816         are sane and complete before asking the port its prefered parameter
9817         passing method (fixes bug #1017633)
9818         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
9819         and _ret3
9820
9821 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9822
9823         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
9824         problem in bitfields >= 8 bits.
9825
9826 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9827
9828         * src/SDCCsymt.c: undid changes that were not meant to be committed
9829
9830 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9831
9832         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
9833
9834 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9835
9836         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
9837           copied and wrong bit got inverted
9838
9839 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9840
9841         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
9842         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
9843         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
9844         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
9845         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
9846         assignments to bitfields at known addresses
9847         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
9848         reads from bitfields at known addresses
9849         * src/hc08/ralloc.c (packRegisters),
9850         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
9851         genhc08Code): optimize pointer get values used as conditionals
9852         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
9853         and branch
9854
9855 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9856
9857         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
9858         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
9859         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
9860         as conditionals
9861
9862 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9863
9864         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
9865
9866 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9867
9868         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
9869         related problems
9870
9871 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
9872
9873         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
9874
9875 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9876
9877         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
9878         mcs51 port
9879
9880 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
9881
9882         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
9883
9884 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9885
9886         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
9887         cases use more compact code.
9888
9889 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
9890
9891         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
9892
9893 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9894
9895         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
9896
9897 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9898
9899         * src/SDCCsymt.h,
9900         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
9901         parameter of changePointer() from symbol* to sym_link*
9902         * src/SDCCast.c (decorateType): call changePointer() for CAST op
9903         * src/SDCCsymt.c (compareType): void* type is castable to other
9904         pointers, but not necesarily an exact match.
9905         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
9906         is no longer blindly treated as an exact match.
9907         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
9908
9909 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
9910
9911         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
9912
9913 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
9914
9915         * src/pic/gen.c,
9916         * src/pic/pcode.c,
9917         * src/pic/ralloc.h,
9918         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
9919
9920 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
9921
9922         * src/pic/device.c,
9923         * src/pic/device.h,
9924         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
9925
9926 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9927
9928         * src/mcs51/gen.c (emitcode): fixed bug #992819
9929
9930 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
9931
9932         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
9933           there's no need to make it worse
9934
9935 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9936
9937         * src/mcs51/ralloc.c (deassignLR),
9938         * src/ds390/ralloc.c (deassignLR),
9939         * src/hc08/ralloc.c (deassignLR),
9940         * src/z80/ralloc.c (deassignLR),
9941         * src/pic/ralloc.c (deassignLR),
9942         * src/pic16/ralloc.c (deassignLR),
9943         * src/avr/ralloc.c (deassignLR),
9944         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
9945         rlivePoint): fixed another part of bug #971834
9946
9947 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9948
9949         * src/z80/main.c: enabled "critical" keyword
9950         * src/z80/mappings.i,
9951         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
9952         functions (fixes bug #979646)
9953         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
9954
9955 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9956
9957         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
9958           such as c:\mydir.
9959
9960 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
9961
9962         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
9963           doesn't disable too much optimizations
9964
9965 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
9966
9967         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
9968
9969 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
9970
9971         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
9972
9973 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
9974
9975         * src/pic/gen.c tidied up tabs
9976         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
9977         * src/pic/main.c tidied up tabs
9978         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
9979         * src/pic/pcoderegs.c tidied up tabs
9980         * src/pic/ralloc.c tidied up tabs
9981
9982 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
9983
9984         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
9985         to S_FIXED for pic16 port and when symbol is not in level 0,
9986         allocate for S_REGISTER storage class and pic16 port, too,
9987         * src/pic16/device.h: prototype for checkSym,
9988         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
9989         * (pic16_assignConfigWordValue): test the value and the mask to
9990         validate that the value is suitable for the configuration word,
9991         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
9992         collect extern declared symbols, don't emit symbol twice, check
9993         first if symbol is in publics set first,
9994         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
9995         * added command line '--fstack' which enables an experimental
9996         feature for stack access, too buggy to be used yet...
9997         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
9998         * (pic16_allocDirReg): when register has storage class S_REGISTER
9999         allocate in pic16_dynAccessRegs,
10000         * device/include/pic16/pic18f????.h: modified configuration word
10001         naming convention, words started as CONFIG0H but should be CONFIG1H
10002
10003 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
10004
10005         * device/include/mcs51reg.h: fixed bug 970993
10006
10007 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
10008
10009         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
10010         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
10011         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
10012         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
10013         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
10014         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
10015           error/warning numbers,
10016           added function setWarningDisabled()
10017         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
10018         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
10019           _memcmp.c _memmove.c calloc.c realloc.c free.c
10020         * support/regression/tests/malloc.c: added tests for new functionality
10021         * support/regression/tests/zeropad.c: added tests for truncated initializers
10022           and initialized char arrays starting with '\x0'
10023         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
10024
10025 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
10026
10027         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
10028
10029 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10030
10031         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
10032         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
10033         peephole 177.e. Thanks to anonymous
10034
10035 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
10036
10037         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
10038         function isn't used in the source but referenced as a
10039         variable initializer then declare it as extern in .asm file
10040
10041 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
10042
10043         * .version: increased version number to 2.4.3
10044
10045         Adding version extension according to ChangeLog CVS revision
10046         * src/Makefile.in (target all): added dependency 'version.h'
10047         * (rule version.h): added rule to create version.h from ChangeLog,
10048         * (rule dep): added dependency version.h,
10049         * src/version.awk: AWK script to create version.h
10050         * src/SDCCdwarf2.c (dwWriteModule),
10051         * src/SDCCglue.c (initialComments),
10052         * src/SDCCmain.c (printVersionInfo): modified to write after
10053         version string the version extension number,
10054         * src/SDCCutil.c: included "version.h"
10055         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
10056         number,
10057         * src/SDCCutil.h: added prototype for getBuildNumber
10058
10059         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
10060         includeDirsSet, too,
10061         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
10062         const char [] is found in function prototype...
10063
10064         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
10065         moving to WREG with source is already in WREG,
10066         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
10067         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
10068         * (aopForSym): stack'ed symbols are partially supported, added
10069         if-clause to support symbols in FARSPACE,
10070         * (sameRegs): added test for AOP_ACC to see if registers are same,
10071         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
10072         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
10073         * (pic16_popRegFromString): will not allocate a new register if it
10074         doesn't find one by name, bug may have introduced...
10075         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
10076         * (genIpush): revived to use pic16 port's stack,
10077         * (genAddrOf): added incomplete case for stack'ed operand,
10078         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
10079         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
10080         can handle multibyte operands,
10081         * src/pic16/glue.c (pic16_printIval*): some debug info added,
10082         * (pic16initialComments): added message for MPLAB compatibility
10083         mode enabled,
10084         * src/pic16/main.h: prototype for pic16_mplab_comp,
10085         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
10086         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
10087         * (_pic16_linkEdit): NEW, handles link stage, transferred here
10088         because of increased complexity of procedure,
10089         * (_process_pragma): stack pragma changed to format 'stack pos len',
10090         emit symbol '_stack_end' to conform with gplink,
10091         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
10092         to search for register,
10093         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
10094         PO_GPR_REGISTER,
10095         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
10096         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
10097         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
10098         case for PO_GPR_REGISTER,
10099         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
10100         dies, the new era is ahead !...
10101         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
10102         pic16_dynInternalRegs,
10103         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
10104         * (pic16_allocDirReg): minor optimizations and bug fixes,
10105         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
10106
10107         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
10108         load stack and frame pointer with address of 'stack_end' symbol
10109
10110 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
10111
10112         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
10113         without source code but only variable initializers
10114
10115 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
10116
10117         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
10118         external are not declared as extern to reduce overhead while linking
10119
10120 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
10121
10122         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
10123
10124 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
10125
10126         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
10127           Yee Keat for the patch
10128         * src/SDCCast.c (decorateType): fixed bug #979599
10129         * src/ds390/gen.h: removed local fReturnSizeDS390
10130         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
10131         * src/ds390/gen.c (genAnd, genOr, genXor),
10132         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
10133
10134 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
10135
10136         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
10137         add relFilesSet to $3, manipulate $2 to handle linking of object
10138         files without source files in command line,
10139         * device/include/pic16 (all headers): added ID location macros,
10140         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
10141         entries for ID location bytes,
10142         * (pic16_assignIdByteValue): NEW,
10143         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
10144         added field dumpcalltree to pic16_options_t,
10145         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
10146         is used instead of pic16_Gstack_base_addr, check if (ifx) before
10147         emitting rFalseIfx label after check_carry label,
10148         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
10149         pic16_emitDIRegs), NEW
10150         * (pic16glue): dump .calltree file when option --calltree found,
10151         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
10152         * (_pic16_genAssemblerPreamble): emit ID locations after
10153         configuration registers,
10154         * (pic16_linkCmd): modifications of the link command,
10155         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
10156         * (pic16_pCodeInitRegisters): don't init stack registers,
10157         * (pic16_findPrevInstruction): fixed bug,
10158         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
10159         bug with immediate registers,
10160         * (buildCallTree): traces stack push and pop,
10161         * (pct2): dump also stack usage for each function,
10162         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
10163         * (pic16_allocDirReg): various modifications,
10164         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
10165         fixed to 1,
10166
10167 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
10168
10169         * src/pic16/pcode.c: removed buggy double colon
10170
10171 2004-07-01 Borut Razem <borut.razem AT siol.net>
10172
10173         * support/scripts/sdcc.nsi: added include/pic16 to setup
10174
10175 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
10176
10177         * device/lib/Makefile.in: fixed bug in target objects-pic16,
10178         * device/lib/pic16/Makefile: prefixed with dash (-) command under
10179         target 'clean',
10180         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
10181         specific command line arguments. Also added sample lkr script
10182         for placing a variable at a specific memory bank.
10183         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
10184         at a specific memory bank,
10185         * (pic16_dump_isection): fixed bug which caused string literals to
10186         be omitted when dumping idata section,
10187         * (pic16_groupRegistersInSection): added code to handle registers
10188         in specific memory banks,
10189         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
10190         public, all references are renamed too,
10191         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
10192         AOP_DPTR2,
10193         * (pic16_storeForReturn): added case to handle when dest is WREG,
10194         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
10195         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
10196         pic16_rel_udata, check to see if that register is marked as being
10197         a member of a specific memory bank,
10198         * (pic16_printIvalCharPtr): added code to add string literals either
10199         to code or the idata sections,
10200         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
10201         also accept the 'udata' pragma,
10202         * src/pic16/main.h: new structure types sectName and sectSym
10203         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
10204         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
10205         * (pic16_findPrevInstruction): fixed, it returned nothing,
10206         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
10207         instruction combinations,
10208         * (pic16_FixRegisterBanking): heavily reorganised,
10209         * (pic16_AnalyzeBanking): if generating banksel directives is
10210         disabled, then don't call FixRegisterBanking at all,
10211         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
10212         completely removed,
10213         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
10214
10215 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
10216
10217         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
10218         Phuah Yee Keat <yk.phuah AT nestac.com>
10219
10220 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
10221
10222         * src/pic16/glue.c (pic16createInterruptVect): function now emits
10223         correctly the IVT even if it is relocated to some other location
10224
10225 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
10226
10227         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
10228         * device/include/pic16/pic18f2220.h: NEW,
10229         * device/lib/pic16/libdev/pic18f2220.c: NEW,
10230         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
10231         * src/pic16/device.c (struct Pics16): added info for 18f2220,
10232         * src/pic16/device.h (struct pic16_options): added ivt_loc and
10233         nodefaultlibs, ivt_loc is the location of the interrupt vector
10234         table, and nodefaultlibs signs that default libraries should not be
10235         linked in link stage,
10236         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
10237         according to --ivt-loc argument,
10238         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
10239         when pragma stack is found,
10240
10241 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10242
10243         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
10244         256 (range check), 257 (do while), 258.a-f (bit banging
10245         f.e. on 3-wire SPI bus)
10246
10247 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10248
10249         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
10250         variables used exclusively within a loop
10251
10252 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
10253
10254         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
10255
10256 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10257
10258         * src/SDCClrange.c (computeClash): fixed bug #971834
10259
10260 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10261
10262         * src/mcs51/gen.c (genCmp): fixed bug #975903
10263         * src/hc08/gen.c (operandsEqu),
10264         * src/ds390/gen.c (operandsEqu),
10265         * src/z80/gen.c (operandsEqu),
10266         * src/pic/gen.c (operandsEqu),
10267         * src/pic16/gen.c (operandsEqu),
10268         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
10269         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
10270
10271 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10272
10273         * src/SDCCcse.c (cseBBlock): fixed bug #966963
10274
10275 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
10276
10277         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
10278         default case in switch statement,
10279         * glue.c (pic16_initPointer): expr is initialised via decoarteType
10280         to eliminate problem with initialisation of pointers, but problem
10281         still exists,
10282         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
10283         * (emitStaticSegment): removed various lines emitting debug info,
10284         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
10285         added processor registers for utilizing EEPROM,
10286         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
10287         configurable and set 8
10288
10289 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
10290
10291         * .version: increased version number to 2.4.2,
10292
10293         Cumulative patch for pic16 port
10294         * src/pic16/device.c: changed scheme to dump initial values for
10295         variables in idata segment, all print_idata* functions were removed,
10296         now the pic16_printIval* will be called,
10297         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
10298         * _pic16_printPointerType, pic16_printPointerType,
10299         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
10300         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
10301         NEW, similar to the respective functions in SDCCglue.c,
10302         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
10303         way, emitting hex bytes,
10304         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
10305
10306 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10307
10308         * src/avr/ralloc.c (serialRegAssign),
10309         * src/xa51/ralloc.c (serialRegAssign),
10310         * src/pic/ralloc.c (serialRegAssign),
10311         * src/pic16/ralloc.c (serialRegAssign),
10312         * src/hc08/ralloc.c (serialRegAssign),
10313         * src/z80/ralloc.c (serialRegAssign),
10314         * src/ds390/ralloc.c (serialRegAssign),
10315         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
10316
10317 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10318
10319         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
10320         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
10321
10322 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
10323
10324         Cumulative patch for pic16 port:
10325         * src/pic16/device.h (typedef PIC16_device) modified fields for
10326         defining microcontrollers,
10327         * src/pic16/device.c: added new info for all devices in Pics16 array,
10328         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
10329         to be optimised out by the pCode optimiser,
10330         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
10331         specially, bug reported by G.M. Gallant,
10332         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
10333         as force'd so that cannot be optimised out by pCode optimiser,
10334         * src/pic16/pcode.c,
10335         * src/pic16/pcodepeeph.c,
10336         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
10337         they are disabled by default, but can be enabled explicit with
10338         command argument --denable-peeps, for testing,
10339         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
10340         --pomit-ivt in COMPILE_FLAGS
10341
10342 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
10343
10344         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
10345           compilation on MSVC
10346
10347 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
10348
10349         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
10350
10351 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10352
10353         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
10354         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
10355
10356 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
10357
10358         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
10359         would only assign 0x300001 register.
10360
10361 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
10362
10363         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
10364         in COMPILE_FLAGS. Thanks to G. Gallant for report.
10365
10366 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10367
10368         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
10369         for ds80c400
10370         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
10371         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
10372         added peephole 254 (left shift), 255 (jump table)
10373
10374 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
10375
10376         * device/lib/Makefile.in: removed comment line with model-pic16,
10377         * (target port-specific-objects-pic16): the libraries and objects
10378         are copied to the build directory form the device/lib/pic16/bin
10379         directory
10380
10381         Cumulative patch concerning pic16 port:
10382         * library directory has been re-organized,
10383         * added support for PIC18F1220,
10384         * added headers and library sources for chips 18f1220,18f6520,
10385         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
10386
10387         * configuration registers setting has changed, now each supported
10388         device has a complete description of the registers it uses,
10389         * all initialisations are moved to idata sections, these section
10390         can be absolute or relocatable,
10391         * fixed initialisation of codespace variables,
10392         * fixed warning about PCLATU and gpsim,
10393         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
10394         * (genAssign): use table reads when assigning from variables in codespace,
10395         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
10396         char/int variables placed in codespace,
10397         * (pic16_emitConfigRegs): NEW, emits a list with configuration
10398         registers set in .asm file, no need for --pomit-config-words anymore,
10399         * (pic16glue): some 8051 legacy segments are commented out
10400         (to be removed completely),
10401         * added support for alternative assembler and linker with --asm=
10402         and --link= command line arguments,
10403         * peepholes are disabled automatically in the port, no need to
10404         specify on command line,
10405         * port supports natively char/int/long multiplication, but converts
10406         all divisions to support functions,
10407         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
10408         to the file set in variable $2,
10409         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
10410         strings in ASCII format and not in hex,
10411         * ralloc.c (serialRegAssign): added a triplet of conditional calls
10412         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
10413         allocate proper register if iCodes aren't temporary,
10414
10415 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
10416
10417         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
10418
10419 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
10420
10421         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
10422         is commented out
10423
10424 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10425
10426         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
10427         computed address is reused
10428         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
10429         multi-byte bitfields
10430
10431 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
10432
10433         * src/z80/gen.c: (genArrayInit): must check for pointers too
10434
10435 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
10436
10437         * support/regression/tests/zeropad.c: never meant to commit the
10438           nestedstruct test: removed, added check for GCC version
10439
10440 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
10441
10442         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
10443         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
10444         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
10445           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
10446           bugs 928906 and 954082 half-empty initializers
10447         * src/SDCCsymt.h,
10448         * src/SDCCsymt.c (getAllocSize): added for above fix
10449         * src/z80/gen.c (genArrayInit): fixed bug 741044
10450         * support/regression/tests/zeropad.c: added tests
10451
10452 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
10453
10454         * src/pic16/device.c (pic16_dump_section): corrected bug which
10455         caused some symbols of the libraries to be misplaced
10456
10457 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
10458
10459         * src/pic16/glue.c,
10460         * src/pic16/ralloc.h,
10461         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
10462         to fix conflict with pic port
10463
10464 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
10465
10466         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
10467         externs configuration variables,
10468         * src/pic16/ralloc.h,
10469         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
10470         prototype in header, commented out some debug messages
10471
10472 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
10473
10474         * src/pic16/glue.c,
10475         * src/pic16/main.c,
10476         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
10477         for gpasm COFF object generation. Thanks to D. Hawkins for
10478         his patch info
10479
10480 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10481
10482         * src/ds390/main.c,
10483         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
10484         Brock for spotting this)
10485         * src/ds390/gen.c (genEndFunction),
10486         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
10487         interrupt handler and critical. Disable push/pop optimizations when
10488         peephole optimizations disabled.
10489
10490 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
10491
10492         Updated pic16 library sources and headers.
10493         * device/lib/pic16/pic18f*/ ,
10494         * device/include/pic16/*.h: modified to handle structured SFR
10495         definitions
10496
10497 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
10498
10499         * src/port.h (PORT structure): added hook initPaths, now each
10500         port can declare its own default search paths,
10501         which can been seen with the --print-search-dirs option,
10502         see pic16 port for example,
10503         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
10504         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
10505         * (doPrintSearchDirs): NEW, replaces in a central manner the
10506         printing of search dirs which was split in set*Paths functions,
10507         * (main): added call to port->initPaths and doPrintSearchDirs,
10508         * src/avr/main.c,
10509         * src/ds390/main.c,
10510         * src/hc08/main.c,
10511         * src/izt/i186.c,
10512         * src/izt/tlcs900h.c,
10513         * src/mcs51/main.c,
10514         * src/pic/main.c,
10515         * src/pic16/main.c: modified port structures to reflect addition of
10516         initPaths hook,
10517
10518         * src/pic16/device.c (regCompare): registers are finally sorted by name,
10519         * (pic16_dump_section): for registers in same address reserve memory once,
10520         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
10521         to no_banksel,
10522         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
10523         result is greater in size than right or left,
10524         * (pic16_genUMult8X8_8): there are some cases where the result can
10525         be 16 bits size, so handle these,
10526         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
10527         * (pic16_outBitC): modified to emit pcodes,
10528         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
10529         or not,
10530         * (genDivOneByte): implemented algorithm to divide 8-bits,
10531         * (genCmp): uncommented goto, but issues still exist,
10532         * (genAnd): fixed a bug with variables >8bits,
10533         * (genPackBits): optimization added that uses BCF/BSF to change a
10534         single bit,
10535         * (genAssign): fixed bug when assigning floating point literals,
10536         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
10537         __sdcc_gsinit_startup label,
10538         * src/pic16/main.c (_pic16_init): removed search directory
10539         initialisations,
10540         * (_pic16_initPaths): NEW, used to initialise search directories,
10541         * (_hasNativeMulFor): support functions for all except char/int
10542         multiplication, and char division,
10543         * (PIC16_port struct): modified entry for native mul support,
10544         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
10545         no_banksel option,
10546         * (buildCallTree): call to register_usage is ifdef'ed out,
10547
10548 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10549
10550         * device/include/string.h: applied Stas Sergeev's patch to make this
10551         header file compatible with the preprocessor -Wundef option
10552         * src/SDCCmain.c (main): abort compilation if preprocessor reports
10553         failure (fixes bug #941458)
10554
10555 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10556
10557         * src/SDCCopt.c (killDeadCode): fixed bug #907733
10558         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
10559         that the variable, not the function, should be static
10560         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
10561         to be consistent with non-literal case
10562
10563 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10564
10565         * src/SDCCast.c (isConformingBody): fixed bug #949967
10566         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
10567         convilong): fixed bug #952086
10568
10569 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10570
10571         * src/SDCCmem.c (allocVariables): fixed bug #955321
10572
10573 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10574
10575         * src/hc08/main.c (_hc08_genAssemblerEnd),
10576         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
10577         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
10578         completely eliminated the use of a temporary file
10579         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
10580         when more than one file linked
10581         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
10582
10583 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10584
10585         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
10586         which fixes bug #543481
10587         * support/regression/tests/bug-751703.c: fixed comments left from a
10588         cut and paste error
10589         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
10590         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
10591         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
10592         scopes
10593         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
10594         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
10595         are now changed to underscores in moduleName
10596
10597 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10598
10599         * as/mcs51/lkmem.c: better fix for bug #954173
10600
10601 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
10602         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10603
10604         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
10605         * device/include/c8051f000.h,
10606         * device/include/c8051f120.h,
10607         * device/include/c8051f300.h,
10608         * device/include/c8051f310.h,
10609         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
10610         PWM16) and detab'ed
10611
10612 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10613
10614         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
10615         and mailing lists, doc'ed --no-peep-comments, removed reference
10616         to knoppix (newest version has no LyX/LaTeX), other minor changes
10617         * src/SDCCglue.c (glue): save 2 bytes stack space with
10618         option --main-return. The ljmp could probably be avoided too
10619
10620 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10621
10622         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
10623
10624 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10625
10626         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
10627         * src/SDCCopt.c (isLocalWithoutDef),
10628         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
10629         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
10630         (credit to Maarten Brock for patch #949363, on which this is based)
10631         * support/regression/tests/bug-751703.c: some test cases of extern used
10632         within inner scopes.
10633
10634 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10635
10636         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
10637         SPEC_STRUCT
10638         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
10639         struct definitions
10640         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
10641         dwWriteLabel): fix to create valid debugger symbols even when
10642         the module name has non-alphanumeric symbols in it
10643         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
10644         when a variable's allocation has been optimized away
10645
10646
10647 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10648
10649         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
10650         * src/hc08/main.c,
10651         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
10652         * src/mcs51/main.c,
10653         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
10654         * src/ds390/main.c,
10655         * src/z80/gen.c (z80_emitDebuggerSymbol),
10656         * src/z80/main.c,
10657         * src/pic/gen.c (pic14_emitDebuggerSymbol),
10658         * src/pic/main.c,
10659         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
10660         * src/pic16/main.c,
10661         * src/avr/gen.c (avr_emitDebuggerSymbol),
10662         * src/avr/main.c,
10663         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
10664         * src/xa51/main.c,
10665         * src/SDCCdebug.c (emitDebuggerSymbol),
10666         * src/SDCCdebug.h,
10667         * src/port.h: added a debugger struct to the port struct. Added a
10668         callback for defining debugger symbols
10669
10670         * src/SDCCast.c (createLabel),
10671         * src/SDCC.y (labeled_statement): mark all compiler generated labels
10672         with isitmp = 1
10673         * src/SDCCicode.h,
10674         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
10675         iCode back to the ast for the function
10676
10677         * src/hc08/ralloc.c (hc08_assignRegisters),
10678         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
10679         unneeded fields from the regs struct.
10680         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
10681         pushReg() & pullReg() functions instead of emitcode()
10682
10683         * src/hc08/gen.c (genLabel, genhc08Code),
10684         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
10685
10686         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
10687         debugger hooks
10688
10689         * src/hc08/gen.c (genEndFunction, genhc08Code),
10690         * src/hc08/gen.h,
10691         * src/mcs51/gen.c (genEndFunction, gen51Code),
10692         * src/mcs51/gen.h,
10693         * src/ds390/gen.c (genEndFunction, gen390Code),
10694         * src/ds390/gen.h,
10695         * src/z80/gen.c (genEndFunction, genZ80Code),
10696         * src/z80/gen.h,
10697         * src/z80/z80.h,
10698         * src/pic/gen.c (genEndFunction, genpic14Code),
10699         * src/pic/gen.h,
10700         * src/pic16/gen.c (genEndFunction, genpic16Code),
10701         * src/pic16/gen.h,
10702         * src/avr/gen.c (genEndFunction, genAVRCode),
10703         * src/avr/gen.h,
10704         * src/xa51/gen.c (genEndFunction, genXA51Code),
10705         * src/xa51/gen.h,
10706         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
10707         specific code to cdbFile.c and out of the backend code generators
10708
10709         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
10710         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
10711         starting address is now 0
10712
10713         * as/hc08/asm.h,
10714         * as/hc08/m08pst.c,
10715         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
10716         assembler directive for DWARF support
10717         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
10718
10719         * src/src.dsp,
10720         * src/Makefile.in,
10721         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
10722
10723 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10724
10725         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
10726         and inappropriate peephole optimization in jump tables
10727
10728 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10729
10730         * as/hc08/m08pst.c,
10731         * src/SDCCglue.c: sdccopt works for the hc08 port now
10732
10733 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
10734
10735         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
10736
10737 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10738
10739         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
10740
10741 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10742
10743         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
10744         rules
10745         * src/SDCCmain.c,
10746         * src/SDCCglobl.h,
10747         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
10748         comments from the peephole optimizer replacement rules
10749         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
10750         symbols
10751         * src/SDCCcse.c (updateSpillLocation),
10752         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
10753         equivalents
10754         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
10755         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
10756         objects far pointers
10757
10758 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10759
10760         * src/SDCCsymt.h: a missing part of my last change
10761         * src/pic/ralloc.c (regTypeNum),
10762         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
10763
10764 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10765
10766         * src/SDCCicode.h,
10767         * src/SDCCicode.c (aggrToPtrDclType),
10768         * src/SDCCptropt.h,
10769         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
10770         ptrPseudoSymConvert),
10771         * src/pic/ralloc.c (regTypeNum),
10772         * src/pic16/ralloc.c (regTypeNum),
10773         * src/hc08/ralloc.c (regTypeNum),
10774         * src/ds390/ralloc.c (regTypeNum),
10775         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
10776         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
10777
10778 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10779
10780         * link/z80/lkmain.c (afile),
10781         * as/hc08/lkmain.c (afile),
10782         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
10783         prevent a pointer problem when a filename has no directory and
10784         no extension specified.
10785
10786 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10787
10788         * link/z80/lkmain.c (afile): allow periods in directory names
10789         * link/z80/lkmain.c (afile),
10790         * as/mcs51/lkmain.c (afile),
10791         * as/hc08/lkmain.c (afile): allow linker script file to have an
10792         extension other than ".lnk"
10793         * link/z80/lklex.c (getfid),
10794         * link/z80/lkmain.c (parse),
10795         * as/mcs51/lklex.c (getfid),
10796         * as/mcs51/lkmain.c (parse),
10797         * as/hc08/lklex.c (getfid),
10798         * as/hc08/lkmain.c (parse): Support comments in the linker script
10799         file on lines by themselves and after filenames
10800
10801 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10802
10803         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
10804
10805 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10806
10807         * src/z80/peeph-z80.def: removed some peephole rules that don't
10808         work with multibyte arithmetic (fixed bug #937126)
10809         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
10810         to registers and not global variables
10811         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
10812         geniCodePreInc, geniCodePostDec, geniCodePreDec,
10813         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
10814         checking for assignments not internally generated (fixed bug #931895)
10815         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
10816         structure member (fixed bug #930072)
10817
10818 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10819
10820         * src/SDCCmain.c (linkEdit),
10821         * src/hc08/main.c (_hc08_parseOptions),
10822         * as/hc08/Makefile.in,
10823         * as/hc08/aslink.h,
10824         * as/hc08/asm.h,
10825         * as/hc08/m08pst.c,
10826         * as/hc08/lkrloc.c (relr, rele),
10827         * as/hc08/lkarea.c (lnkarea)
10828         * as/hc08/lkmain.c (afile, parse),
10829         * as/hc08/lkelf.c: support for ELF output
10830         * as/hc08/lks19.c (s19),
10831         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
10832
10833 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10834
10835         * as/mcs51/lkihx.c: Fixed bug #899105.
10836
10837 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10838
10839         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
10840         .dsp files from Unix to DOS.
10841
10842 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10843
10844         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
10845         function pointers; we have been compliant for several months now.
10846         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
10847         change that was accidently commented out
10848         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
10849         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
10850         bug #922319
10851
10852 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10853
10854         * src/hc08/gen.c: output of all of the internal debugging information
10855         is now controlled by the D() macro; it is disabled by default
10856
10857 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10858
10859         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
10860         harder to keep the same registers during a CAST iCode
10861         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
10862         long via int can be done in a single cast, if the signedness is
10863         correct.
10864         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
10865         putchar() in tinibios.c in ds390's library
10866
10867 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
10868
10869         * src/SDCCast.c (decorateType): fixed bug #898889,
10870         cast result of a literal complement too
10871         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
10872         fixed check for bitfields
10873
10874 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
10875
10876         * src/SDCCicode.c (geniCodeLogic): made it static,
10877         (geniCodeLogicAndOr): added in order to fix bug #905492,
10878         (ast2iCode): fixed bug #905492
10879         * support/regression/tests/bug-905492.c: added
10880         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
10881         (processParms): fixed bug #927659: don't copy parms, this will clear
10882         decorated flag
10883         * support/regression/tests/bug-927659.c: added
10884
10885 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
10886
10887         * src/SDCCast.c (addCast): don't cast float to char
10888         * device/lib/libsdcc.lib: added _memmove
10889
10890 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
10891
10892         * device/lib/large/Makefile: fixed parallel execution by
10893         replacing `make` by `$(MAKE)`
10894
10895 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10896
10897         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
10898         offsets (fixes bug #923936)
10899
10900 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
10901
10902         * device/lib/small/Makefile: fixed parallel execution by
10903         replacing `make` by `$(MAKE)`
10904
10905 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
10906
10907         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
10908
10909 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
10910
10911         * src/pic/gen.c (genCpl): multi-byte complements were not working.
10912         * src/regression/Makefile: Regression test was not running.
10913
10914 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
10915
10916         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
10917         complement if possible
10918         * src/SDCCval.c (valComplement),
10919         * src/SDCCicode.c (operandOperation): fixed complement of literal
10920         * support/regression/tests/onebyte.c (testComplement): added
10921
10922 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
10923
10924         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
10925         return an optimized tree; actually replace actParm with the new tree
10926         * src/SDCCast.h: added some parantheses to remove side effects
10927         * support/regression/tests/bug-920866.c
10928
10929 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
10930         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
10931         Bit operands were not being handled properly in the pic14 port.
10932         (now src/regression/add.c passes again).
10933
10934 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10935
10936         * src/SDCC.y (labeled_statement): case and default no longer require
10937         a following statement (RFE #893037)
10938
10939 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10940
10941         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
10942         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
10943         disabled (fixes bug #916294)
10944         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
10945         "mov a,acc"; patch provided by Lenny Story
10946         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
10947
10948 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10949
10950         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
10951         functions
10952         * src/ds390/gen.c (genFunction, genEndFunction),
10953         * src/ds390/ralloc.c (ds390_assignRegisters),
10954         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
10955         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
10956         pushed if there are parameters passed on the stack. Also, a cleaner
10957         way to decide if r0/r1 should be pushed/popped. (Together they fix
10958         bug #918693)
10959
10960 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10961
10962         * doc/sdccman.lyx,
10963         * device/lib/mcs51/crtpagesfr.asm,
10964         * device/lib/mcs51/crtxinit.asm,
10965         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
10966         to avoid confusion with Si Lab's SFRPAGE register.
10967
10968 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10969
10970         * src/SDCCglue.c (emitMaps): allow public sfr variables
10971         * src/SDCCglue.c (initialComments): include compiler build date
10972         with compiler version and put the timestamp of the generated
10973         assembly file on a serperate line to be less confusing.
10974         * src/port.h: added genInitStartup hook
10975         * src/avr/main.c,
10976         * src/ds390/main.c,
10977         * src/hc08/main.c,
10978         * src/pic/main.c,
10979         * src/pic16/main.c,
10980         * src/xa51/main.c,
10981         * src/z80/main.c: genInitStartup initialize as NULL (default to
10982         historical behaviour)
10983         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
10984         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
10985         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
10986         library instead of hard coding it into the compiler.
10987         * support/regression/ports/mcs51-stack-auto/spec.mk,
10988         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
10989         * device/lib/mcs51/Makefile,
10990         * device/lib/small/Makefile,
10991         * device/lib/large/Makefile,
10992         * device/lib/mcs51/crtpagesfr.asm,
10993         * device/lib/mcs51/crtstart.asm,
10994         * device/lib/mcs51/crtxclear.asm,
10995         * device/lib/mcs51/crtxinit.asm,
10996         * device/lib/mcs51/crtclear.asm,
10997         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
10998         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
10999         and into user configurable files.
11000         * device/lib/clean.mk: clean mcs51 directory too
11001         * support/regression/tests/longlit.c: added static to T1 declaration
11002         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
11003         accesses in the initialization code
11004
11005 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11006
11007         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
11008         OSCTRIMVAL as noted in bug #916008
11009
11010 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11011
11012         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
11013         in loops with multiple exits (reported as incorrect registers
11014         used by Martin Helmling in Sdcc-user list)
11015
11016 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11017
11018         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
11019         made ds390 register extensions look less like error messages
11020
11021 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11022
11023         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
11024         reported by Adam Wozniak in Sdcc-user list
11025
11026 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
11027
11028         * src/SDCCast.c (decorateType): fixed with bug and promotion in
11029         arithmetic optimizations, added debug output
11030
11031 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
11032
11033         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
11034         * sdcc.spec: updated and split sdcc into 3 rpms
11035         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
11036         needed for literals of LEFT_OP and '+'
11037         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
11038         introduced RESULT_TYPE_NOPROM
11039         (geniCodeMultiply): fixed logic for decision if mul is optimized to
11040         left shift
11041         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
11042         limited promotion to int only for '*'
11043         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
11044
11045 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
11046
11047         * src/pic16/gen.c (genSkip),
11048         (genc16bit2lit), (gencjneshort): commented out
11049         (is_LitOp): new helper function, checks operand type
11050         (genCmpEq): rewritten
11051
11052 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
11053
11054         * support/regression/tests/bug-908454.c: added
11055
11056 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
11057
11058         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
11059         * src/SDCCicode.c (usualBinaryConversions): op needs int type
11060         (geniCodeCast): cosmetic, don't preserve bit storage class
11061         (geniCodeLeftShift): added promotion
11062         (geniCodeLogic): fixed regression
11063         * src/SDCCsymt.c (computeTypeOr): accept bits too
11064         (compareType): 2nd part of fix for bug #908454, needed for bitfields
11065
11066 2004-03-07  Borut Razem <borut.razem AT siol.net>
11067
11068         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
11069
11070 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
11071
11072         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
11073         version of pic16_genPackRegisters which does not check if ic is a
11074         CAST operator,
11075         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
11076         function cause string1.c regression test fails
11077
11078 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
11079
11080         * sim/ucsim/configure.in,
11081         * sim/ucsim/configure,
11082         * sim/ucsim/doc/Makefile.in: use docdir
11083         * src/SDCC.y: fixed sbit atrributes
11084         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
11085         * src/SDCCast.c (decorateType): |^& need special promotion handling
11086         * src/SDCCast.h,
11087         * src/SDCCsymt.h: moved definition of RESULT_TYPE
11088         * src/SDCCsymt.h (computeType),
11089         * src/SDCCicode.c: computeType() needs op
11090         * src/SDCCsymt.c (checkTypeSanity),
11091         * doc/sddman.lyx: "plain" bitfields are unsigned
11092         * src/SDCCsymt.c (computeTypeOr): added
11093         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
11094         |^& ops
11095         * src/SDCCval.c (val*): computeType() needs op
11096         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
11097         * support/regression/tests/onebyte.c: added tests for |^&
11098
11099 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
11100
11101         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
11102         for writing icode into asm output.
11103
11104 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
11105
11106         * src/pic16/device.c: added some debug lines enabled
11107         with macro DEBUG_CHECK,
11108         * src/pic16/genarith.c: more debug in genPlus,
11109         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
11110         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
11111         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
11112         * (aopForSym): onStack symbols are re-placed in data memspace,
11113         and onStack flag is cleared,
11114         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
11115         copy temporary pcodeop,
11116         * (genPcall): added warning for not updating PCLATU,
11117         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
11118         always true for pic16 port,
11119         * (genMultOneWord): NEW, supports integer multiplication,
11120         * (genMult): modified to call genMultOneWord,
11121         * (ifxForOp): added warning when return NULL,
11122         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
11123         flag is set before call to operandFromSymbol for implicit
11124         added structures,
11125         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
11126         options.intlong_rent are set by default,
11127         * (_hasNativeMulFor): modified to allow port generation of integer
11128         multiplication,
11129         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
11130         set regtype to REG_SFR for all registers, restricting seting the
11131         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
11132
11133 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11134
11135         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
11136         more than 500 times in the regression tests
11137
11138 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11139
11140         * support/Util/SDCCerr.h,
11141         * support/Util/SDCCerr.c,
11142         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
11143         enumerator_list),
11144         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
11145         for symbol conflicts.
11146         * support/valdiags/tests/enum.c,
11147         * support/valdiags/tests/tentdecl.c,
11148         * support/valdiags/tests/struct.c: expect possible error messages
11149         referring to original symbol definitions.
11150         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
11151         * src/SDCCsymt.h,
11152         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
11153
11154 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
11155
11156         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
11157
11158 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
11159
11160         * src/pic16/ralloc.c (newReg): fixed bug #908929
11161
11162 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11163
11164         * src/ds390/gen.c: added missing #include "main.h"
11165
11166 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
11167
11168         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
11169         checking if symbol is already in set,
11170         * src/pic16/device.h: prototype for checkAddSym,
11171         * src/pic16/gen.c: (_G): added entry interruptvector,
11172         * (assignResultValue): removed some commented out lines,
11173         * (genFunction): check for ISR via sym->type, absolute section for
11174         interrupt code is created via a new pBlock, the goto instruction is
11175         placed now correctly at the interrupt vector position, changed all
11176         references from ivec to _G.interruptvector,
11177         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
11178         is the interrupt is a high priority one, same for return from ISR,
11179         * src/pic16/glue.c: changed all calls of addSetHead for publics and
11180         externs to calls of checkAddSym,
11181         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
11182         pic16_pcode_verbose flag is set,
11183         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
11184         * src/pic16/pcoderegs.c: message about how many registers are saved
11185         will only be emitted if pic16_pcode_verbose flag is set,
11186
11187 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11188
11189         * src/ds390/ralloc.h,
11190         * src/ds390/ralloc.c (ds390_regWithIdx),
11191         * src/ds390/gen.c (emitcode),
11192         * src/ds390/main.h,
11193         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
11194         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
11195         ds390operandCompare, getRegsRead, getRegsWritten,
11196         initializeAsmLineNode): customized instruction size calculation for
11197         ds390, started basis for some register optimizations
11198         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
11199         corresponding assembly output
11200         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
11201         missing push/pop of r0/r1. Optimized push/pops
11202
11203 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11204
11205         * src/mcs51/main.c (instructionSize): fixed ACALL size
11206         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
11207
11208 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
11209
11210         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
11211         the sorting of rlist with NULL elements
11212         * (print_idataType, print_idata): NEW to create idata sections
11213         * src/pic16/device.h: idataSymSet new variable
11214         * src/pic16/gen.c (genFunction): fixed some bugs in string
11215         comparing, improved the absolute section creation for ISRs,
11216         added FSR0L/FSR0H in registers that are saved in an ISR,
11217         * (genInline): fixed the processing of inline snippets,
11218         now they undergo no process by the peephole optimizer
11219         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
11220         are placed in idataSymSet,
11221         * (pic16emitStaticSeg): extern symbols are added in externs,
11222         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
11223         switching when aboslute variables are placed in access bank memory
11224         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
11225         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
11226         commented out with #if,
11227         * (pic16_packRegisters): reintroduce the check for CAST because some
11228         symbols are not correctly handled,
11229         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
11230         pCodeInstruction instead of pCode,
11231         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
11232         pCodeAsmDir definition,
11233         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
11234         directive, then the argument directive is emitted without the leading
11235         tab, hack for inline labels which must be in the first column,
11236         * (compareLabel,pic16_findNextInstruction),
11237         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
11238         * (insertBankSwitch): modified for the new pCodeAsmDir,
11239
11240 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11241         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
11242
11243         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
11244         instance,
11245         * (pushSide): commented out with #if,
11246         * (assignResultValue): fixed some typos in saving
11247         registers,
11248         * (genPcall): FIXED and sync'ed with genCall,
11249         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
11250         * (genNearPointerGet): fixed to handle some more cases,
11251         implementation scheme via table reads,
11252         * (genConstPointerGet): modified to access code memory correct,
11253         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
11254         and improved to handle some cases
11255         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
11256         instead of "RETLW" for init data
11257         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
11258         not IN_DIRSPACE, work around to reduce bank switching when aboslute
11259         variables are placed in access bank memory (<0x80 and >=0xf80),
11260         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
11261         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
11262         TBLWT_POSTDEC,TBLWT_PREINC
11263         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
11264         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
11265         directives
11266         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
11267         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
11268         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
11269         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
11270
11271 2004-02-29  Borut Razem <borut.razem AT siol.net>
11272
11273         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
11274         support/Util/findme.h, support/Util/system.h: enhance binary relative
11275         search for lib and include by using findProgramPath()
11276
11277 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11278
11279         * src/SDCCpeeph.h,
11280         * src/SDCCpeeph.c (pcDistance),
11281         * src/port.h,
11282         * src/mcs51/ralloc.h,
11283         * src/mcs51/ralloc.c (mcs51_regWithIdx),
11284         * src/mcs51/main.h,
11285         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
11286         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
11287         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
11288         size calculation port specific, started basis for some register
11289         optimizations
11290         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
11291         missing push/pop of r0/r1. Optimized push/pops
11292         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
11293         * device/lib/_modsint.c (_modsint),
11294         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
11295         and stack version so regression tests pass
11296
11297 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
11298
11299         * src/Makefile.in (dep): include SLIBOBJS in dependency check
11300         * src/SDCCast.c (decorateType): catch another small optimization
11301         with '?' operator
11302         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
11303         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
11304         modified to finally use computeType() all over SDCC,
11305         see Feature Request #877103
11306         * src/SDCCval.h: cosmetic
11307         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
11308         valCompare(); regression tested in muldiv.c
11309         * support/regression/tests/muldiv.c (testMod): mod sign follows
11310         dividend only
11311
11312 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
11313
11314         * src/SDCCast.c (decorateType): fixed bug #902362
11315         * doc/INSTALL.txt: fixed install instructions for win32
11316
11317 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
11318
11319         * device/include/Makefile.in (install): fixed by replacing spaces
11320         by tabs
11321         * doc/README.txt,
11322         * doc/INSTALL.txt: updated for release
11323         * doc/sdccman.lyx: added warning for --xstack being buggy
11324
11325 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
11326
11327         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
11328         to eliminate build warnings.
11329         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
11330
11331 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
11332            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11333
11334         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
11335         removed -penable-stack, added comment for stack pragma, added
11336         warning for not initializing the stack/frame registers, removed
11337         comment at interrupts section
11338
11339         Stack is made permanent, there is no ability to disable stack usage.
11340         * src/pic16/device.h,
11341         * src/pic16/device.c: removed all references to USE_STACK macro,
11342         * src/pic16/device.c (pic16_dump_section): when no elements in
11343         rlist, free rlist before return,
11344         * (pic16_dump_int_registers): NEW, internal registers are a new set
11345         of general purpose registers reused by each function,
11346         * (checkAddReg): returns 1 if registers is added to set,
11347         * (pic16_groupRegistersInSection): when a registers is of type
11348         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
11349         * src/pic16/device.h: memRange and Assigned Memory are deleted,
11350         SRCASECMP macro is moved here from device.c
11351         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
11352         PO_PCLATU, PO_PRODL, PO_PRODH,
11353         * (pic16_pCodeOpType, genMinus,
11354         changed compares to "a" register, with AOP_ACC,
11355         * (pic16_genPlus): fixed some bugs and indented properly,
11356         * (pic16_addSign): changed size to size+offset in the MOVWF
11357         instruction,
11358         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
11359         multiply 8-bit operand by literal, result is 8-bit,
11360         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
11361         multiply 2 8-bit operand, result is 8-bit,
11362         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
11363         genUMult8X*_16,
11364         * src/pic16/gen.c: changed accUse to contain WREG only,
11365         * (pic16_emitcomment): renamed to pic16_emitpcomment,
11366         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
11367         true, do not use immediate addressing any more unless sym is a
11368         pointer in codespace,
11369         * (aopForRemat): do not use immediate addressing when symbol not in
11370         codespace and when symbol's address is requested,
11371         * (aopOp): for-loop in if(sym->accUse) is modified for the new
11372         accUse size (= 1),
11373         * (aopGet): added case for AOP_ACC and don't return "accumulator
11374         bug" but WREG instead,
11375         * (popGetTempReg): pushes contents of temporary register in stack,
11376         * (popReleaseTempReg): pops contents of temporary register from
11377         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
11378         * (pic16_popGet): separated case AOP_ACC to return register WREG
11379         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
11380         or PO_IMMEDIATE and initializes their instance/offset appropriately,
11381         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
11382         the use of immediate pointers to certain cases only.
11383
11384         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
11385         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
11386         * (assignResultValue, genCall, genRet): modified to use the new
11387         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
11388         genPcall is still broken,
11389         * (genFunction): added code to create 'A' type pBlocks when
11390         interrupt functions are generated, code not extensively tested yet,
11391         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
11392         * (genEndFunction): modified so ISRs pop stored registers from stack,
11393         * (genMultOneByte): cleanup,
11394         * (AccRsh): added flag andmask, to and result with appropriate mask,
11395         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
11396         * (genDataPointerGet): fixed and reenabled its use,
11397         * (genNearDataPointerGet): bugs fixed,
11398         * (genDataPointerSet): bugs fixed,
11399         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
11400         pic16_DumpSymbol, pic16_DumpOp,
11401         * src/pic16/genutils.h: function prototypes for the above functions,
11402         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
11403         pointers,
11404         * (pic16emitRegularMap): many many many improvements, but needs a
11405         major cleanup,
11406         * src/pic16/main.c: enable_stack in pic16_options is removed,
11407         * (_pic16_parseOptions): removed command line options -penable-stack,
11408         * (_process_pragma): emit stack symbol only when stack pragma is
11409         processed,
11410         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
11411         redirected to FSR0L/FSR0H pair,
11412         * (pic16_get_op, pic16_get_op2): modifications and improvements,
11413         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
11414         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
11415         for immediates,
11416         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
11417         * (dumpPicOptype): NEW,
11418         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
11419         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
11420         with movff instruction,
11421         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
11422         added pic16_int_regs, some packRegsFor* functions are commented out,
11423         because produce errors,
11424         * src/pic16/NOTES: minor modifications
11425
11426 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11427
11428         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
11429         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
11430         --pack-iram.
11431         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
11432         * as/mcs51/lkaomf51.c: fixed bug #895763
11433
11434 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
11435
11436         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
11437
11438 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11439
11440         * doc/sdccman.lyx: added details about the HC08 storage classes and
11441         interrupts, fixed the register usage info for z80 & gbz80
11442
11443 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
11444
11445         * doc/sdccman.lyx: added more pic16 port documentation
11446         * device/include/pic16/: added header pic18fregs.h
11447
11448 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
11449
11450         * doc/sdccman.lyx: added Vangelis' contribution
11451
11452 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11453
11454         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
11455         extend to the next CALL or PCALL, not just to the next CALL.
11456
11457 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
11458
11459         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
11460
11461 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11462
11463         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
11464         bug #895752 and a better fix for bug #716790
11465
11466 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11467
11468         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
11469
11470 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11471
11472         * doc/sdccman.lyx: minor changes, minor changed
11473
11474 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
11475
11476         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
11477         which can't handle SDCC_NEWONEBYTEOPS,
11478         (geniCodeMultiply): removed conversion from mult to shift for pic14
11479         and pic16
11480
11481 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11482
11483         * src/hc08/gen.h,
11484         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
11485         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
11486         thus fixing bug #895406
11487
11488 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
11489
11490         * device/lib/_modsint.c,
11491         * device/lib/_modslong.c: sign follows divisor only
11492         * src/hc08/gen.c (genMultOneByte): if result size is 1,
11493         signs or signedness can be ignored
11494         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
11495         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
11496         added optimization for IFX,
11497         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
11498         arguments;
11499         reenabled optimization for IFX, which was removed on 2004-01-11
11500         * src/SDCCast.h: added return type IFX
11501         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
11502         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
11503         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
11504         SDCC_OLDONEBYTEOPS selects the old behaviour
11505         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
11506         changed again and commented promotion rule
11507         * src/SDCCval.c (valDiv): promotion no longer necessary
11508         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
11509         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
11510         rewritten
11511         * support/regression/tests/onebyte.c: added
11512
11513 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
11514
11515         * gen.c (genInline): reverted to old code for assemnling inline
11516         code because of bug reported James Chadd
11517
11518 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
11519
11520         * ralloc.h: missing declarations from previous patch,
11521         seems that patch for ralloc.h was never applied, fixed
11522
11523 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11524            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
11525
11526         * pcode.c,
11527         * pcode.h,
11528         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
11529         indirect addressing. Marked FSR0 as deprecated
11530         * gen.c (pointerCode): commented out, not needed now
11531         (pic16_popGet2p): new MOVFF helper function
11532         (genGenPointerGet),
11533         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
11534         (shiftRLong): removed duplicate debugging info
11535
11536 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11537
11538         * src/ds390/gen.c (genNearPointerGet),
11539         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
11540         optimization with bits, but not bitfields.
11541         * src/ds390/ralloc.c (packRegisters),
11542         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
11543
11544 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
11545
11546         * src/SDCCcse.c (algebraicOpts): copy operands before modification
11547
11548 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11549
11550         * src/SDCCsymt.h,
11551         * src/SDCCicode.c (operandFromSymbol),
11552         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
11553         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
11554         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
11555         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
11556         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
11557         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
11558         bug #892038
11559         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
11560         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
11561         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
11562         * src/SDCCsymt.c (newSymbol),
11563         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
11564         enumerator_list),
11565         * src/SDCCval.h,
11566         * src/SDCCval.c (newiList): fixed bug #885705
11567
11568 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11569
11570         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
11571         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
11572
11573 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11574
11575         * device/include/c8051f120.h,
11576         * device/include/c8051f300.h,
11577         * device/include/c8051f310.h: added/updated header files for Silicon
11578         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
11579         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
11580         in new section Submitting patches
11581
11582 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11583
11584         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
11585         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11586         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11587         genGenPointerSet),
11588         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
11589         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11590         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11591         genGenPointerSet),
11592         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
11593         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11594         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11595         genGenPointerSet),
11596         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
11597         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11598         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11599         genGenPointerSet): fixed bug #892400
11600         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
11601         to eliminate build warnings.
11602         * src/SDCCast.c (processParms),
11603         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
11604         fixed bug 751859
11605         * support/valdiag/valdiag.py: added GCC to the list of defines active
11606         when compiling with gcc
11607
11608 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11609
11610         * support/Util/SDCCerr.h,
11611         * support/Util/SDCCerr.c,
11612         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
11613         with an incomplete type (fixed bug #883734)
11614         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
11615
11616 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11617
11618         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
11619
11620 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11621
11622         * src/SDCCast.c (decorateType),
11623         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
11624         function pointer implementation
11625         * support/regression/tests/funptrs.c: added tests to verify both forms
11626         of function pointers work correctly. Added tests to verify parameters
11627         are passed in the correct order.
11628
11629 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
11630
11631         * device.c (regCompare): registers are sorted by ascending
11632         address and increasing size,
11633         * main.c (_pic16_finaliseOptions): removed the declaration
11634         of compiler macro MCU. Now a macro of the format pic18fxxxx
11635         will be defined from the command line
11636
11637 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11638             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
11639
11640         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
11641         PCOP_RLCF was overwritten!
11642         * gen.c (genSkip): commented out calls to pic16_emitcode,
11643         * (genCmpEQ): fixed "long" compares, only high word did get compared,
11644         * (genlshTwo),
11645         * (genRRC): added debugging info,
11646         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
11647         overwritten while shifting,
11648         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
11649         overwritten while shifting,
11650         * (AccLsh),
11651         * (AccRsh),
11652         * (shiftLLeftOrResult),
11653         * (shiftRLeftOrResult),
11654         * (shiftRLong),
11655         * (shiftLLong): Implemented with pic16_emitpcode
11656         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
11657         * (genLeftShift): Fixed bug, operand for shift by variable always
11658         was "and"ed with 0x0f,
11659         * (genLeftShiftLiteral),
11660         * (genrshTwo),
11661         * (genRightShiftLiteral): added debugging info,
11662         * (genrshFour): added comment,
11663         * (genRightShift): determined signedness from operand "left"
11664         instead of "result"
11665
11666 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11667
11668         * src/SDCCicode.c (geniCodeParms),
11669         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
11670         function pointers, fixed function pointer bugs #861242 and #861896
11671
11672 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11673
11674         * device/include/c8051f000.h,
11675         * device/include/c8051f120.h,
11676         * device/include/c8051f300.h: added header files for Silicon
11677         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
11678
11679 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
11680
11681         * src/SDCCast.c (processParams): added new type flow and restructured
11682         (gatherAutoInit): added new type flow
11683         (addCast): cosmetic changes
11684         (getLeftResultType): added new type flow for array indices, patch
11685         provided by Stas, see FR #877103
11686         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
11687         array index patch by Stas
11688         * src/SDCCast.h: added prototype getResultTypeFromType()
11689         * src/SDCCval.h,
11690         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
11691         * src/pic/glue.c (pic14emitStaticSeg),
11692         * src/pic16/glue.c (pic16emitStaticSeg),
11693         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
11694         for initialization of symbols
11695         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
11696         * support/Util/SDCCerr.h:
11697         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
11698         * .version: bumped version number to 2.3.8
11699         * device/include/Makefile.in (install),
11700         * doc/Makefile (install): changed to 'rm `find ...`' construct to
11701         avoid warnings
11702
11703 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
11704
11705         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
11706         Slade Rich fixed an optimization bug
11707         * src/pic/pcodepeep.c,
11708         * src/pic/pcoderegs.c
11709         * doc/Makefile (install): added test for directory
11710
11711 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11712
11713         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
11714         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
11715         * src/pic/ralloc.c (getRegPtr, getRegGpr),
11716         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
11717         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
11718         * as/mcs51/asexpr.c (term),
11719         * as/hc08/asexpr.c (term): fixed bug #887146
11720
11721 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11722
11723         * src/z80/gen.c (genMult): handle single byte result product
11724         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
11725         DUMMY_READ_VOLATILE (fixed bug #886367)
11726
11727 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
11728
11729         * support/regression/tests/libmullong.c: fixed logic, on little endian
11730         hosts we ended without a mullong_wrapper()
11731
11732 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11733
11734         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
11735         virus/worm forged address usage.
11736
11737 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
11738
11739         Fixed promotion, it should be done on AST level:
11740         * src/SDCCast.c (addCast): added promotion to int
11741         (decorateType): updated call to upCast()
11742         * src/SDCCicode.c (geniCodeLeftShift): removed call to
11743         usualUnaryConversions()
11744
11745 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
11746
11747         * support/regression/tests/literalop.c (mulWrapper): Added a
11748         wrapper to remove integer overflow warnings.
11749
11750         * support/regression/tests/float_trans.c: Made work on host.
11751
11752         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
11753         location of sz80.
11754
11755         * support/regression/generate-cases.py (main): Changed from inline
11756         to a main method.
11757
11758         * doc/Makefile (install): Changed to depth first to get rid of
11759         missing directory install warning.
11760
11761         * as/Makefile (install-doc): Made work on Mac.
11762
11763 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
11764
11765         * src/SDCCast.c: added an additional type flow in decorateType() of
11766         opposite direction, see feature request #860006; it's enabled at runtime
11767         by setting the environment variable SDCC_NEWTYPEFLOW
11768         * src/SDCCast.h: changed prototype of decorateType()
11769         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
11770         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
11771         'char' to 'int' can be omitted, if both operands are 'unsigned char';
11772         see feature request #877103
11773         * src/SDCCval.c: updated call of decorateType()
11774         (valBitwise): fixed bug #882876
11775         (valMinus): added promotion
11776         (valLogicAndOr): result is unsigned
11777         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
11778         * src/SDCCsymt.c (computeType),
11779         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
11780         must not cause an unsigned operation
11781         * src/pic/glue (pic14emitRegularMap),
11782         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
11783
11784 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
11785
11786         * src/pic/pcode.c (PCodeID): commented out left over debug code
11787
11788 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
11789
11790         * support/valdiag/tests/overflow.c: added shift tests
11791         * src/pic/device.c,
11792         * src/pic/gen.c,
11793         * src/pic/gen.h,
11794         * src/pic/glue.c,
11795         * src/pic/main.c,
11796         * src/pic/pcode.c,
11797         * src/pic/pcode.h,
11798         * src/pic/pcodepeep.c,
11799         * src/pic/pcoderegs.c,
11800         * src/pic/ralloc.c,
11801         * src/pic/ralloc.h: applied patch from Slade Rich;
11802         added support for multiple code pages and multiple RAM banks on the
11803         PIC 14 port. The ASM files now no longer simply assume all the
11804         code / RAM are in the same page / bank. This means the linker can
11805         safely allocate code/RAM of separate ASM files to different pages/banks.
11806         * doc/sdccman.lyx: added Slade's tips
11807         * src/mcs51/peeph.def: fixed bug #880768
11808
11809 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11810
11811         * src/hc08/ralloc.c (rematStr): fixed bug #879282
11812         * src/SDCCast.c (decorateType): fixed bug #880197
11813
11814 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
11815
11816         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
11817         getopt.h.
11818
11819         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
11820         strtof is not part of C89 and isn't included with Mac OS X.
11821
11822 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11823
11824         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
11825         shiftL2Left2Result): fixed bug #879326
11826         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
11827         (genMultOneByte): fixed bug in signed vs unsigned multiplication
11828         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
11829         address fetch for clr instruction
11830         * device/lib/hc08/_mulint.c: created optimized assembly version
11831         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
11832
11833 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
11834
11835         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
11836         proposed in FR #877103
11837
11838 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
11839
11840         * src/SDCCval.c (cheapestVal): added missing checks
11841         * src/SDCCicode.c (usualBinaryConversions): fixed condition
11842         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
11843
11844 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
11845
11846         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
11847         equal operands
11848
11849 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
11850
11851         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
11852         loaded with the linker search paths (-L arguments) and the libraries
11853         to be linked with the current source (-l arguments). Changes
11854         currently will affect only the pic16 port.
11855         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
11856         include path the port specific paths and port specific libraries,
11857         * gplink command now contains the $3 argument,
11858         * src/pic16/device.h,
11859         * src/pic16/device.c,: structure PIC_device is made public and
11860         renamed to PIC16_device, the same for variable Pics which is renamed
11861         to Pics16. Updated all references to them.
11862         * src/pic16/glue.c (pic16glue): corrected bug with code
11863         initialization which bypassed the variable initializations block.
11864
11865         * device/lib/pic16/Makefile.rules: removed --penable-stack from
11866         COMPILE_FLAGS and added the --nostdinc option
11867
11868 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11869
11870         * device/include/mc68hc908jb8.h: Register defs for another member
11871         of the hc08 family. Contributed by Bjorn Bringert - thanks!
11872
11873 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
11874
11875         Documenting changes from previous commits.
11876         * configure.in (version 1.56),
11877         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
11878         when generating output files to configure the pic16 library,
11879         but now I've commented it out, since gputils aren't installed in the
11880         SF compile farm, so library won't compile
11881
11882         * device/lib/Makefile.in (version 1.56): initially I've added in
11883         target 'all' the prerequestive 'model-pic16' so it compiled the
11884         pic16 library, but now I've commented it out for the same reasons
11885         above,
11886         * added targets 'model-pic16' and 'objects-pic16' to compile the
11887         library
11888         * added target 'port-specific-objects-pic16' to handle the
11889         generated libraries and copy them into the build/ directory
11890         * added target 'clean-intermediate-pic16' to clean intermediate
11891         files into pic16 directory
11892         * in target 'installdirs' added line to create directory pic16 in
11893         the installation path
11894
11895         * device/include/Makefile.in (version 1.11): in target 'install'
11896         added lines to copy all header files to installation path,
11897         * in target 'installdirs' added line create directory for pic16
11898         headers in the installation path
11899
11900 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
11901
11902         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
11903          a function call
11904
11905 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
11906
11907         * configure,
11908         * device/lib/configure.in,
11909         * device/lib/configure: fixed for autoconf 2.57
11910
11911 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11912
11913         * src/z80/main.c (_parseOptions): fixed the portmode= command line
11914         option so that it actually works. Made it specific to the z80, since
11915         the gbz80 doesn't have these kinds of I/O ports.
11916
11917 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11918
11919         * device/include/z180.h,
11920         * device/lib/_memcpy.c,
11921         * device/lib/_memmove.c,
11922         * device/lib/_mulint.c,
11923         * device/lib/ser_ir.c,
11924         * device/lib/ser_ir_cts_rts.c,
11925         * device/lib/_strcmp.c,
11926         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
11927         * src/z80/main.c (_process_pragma): add support for pragmas bank and
11928         portmode; added deprecation warning for bank= and protmode= forms.
11929         Also, guard against buffer overflow.
11930         * src/z80/gen.c (aopGet): generate better code for sfr banked read
11931
11932 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11933
11934         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
11935         changed interrupt vector table generation to only emit declared vectors.
11936         * device/include/Makefile.in: added missing backslash
11937         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
11938
11939 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
11940
11941         Mainly changes to support compilation of the device libraries
11942         * src/pic16/device.c: stack is allocated via symbol and not
11943         via literal number. The symbol is placed in the corresponding
11944         position of the data ram
11945         * (pic16_dump_section): relocatable and absolute uninitialized
11946         data are now emitted in sorted order to reduce section naming,
11947         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
11948         weren't marked as being in the access bank,
11949
11950 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
11951
11952         Added portion of GNU PIC Library under the directory
11953         device/include/pic16 and device/lib/pic16. These files
11954         contain the declarations of SFRs for the PIC18Fxx2 devices.
11955         The directory is initialized via configure from toplevel.
11956
11957 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
11958
11959         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
11960         the spilllocations to be compared correctly
11961
11962 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
11963
11964         * src/SDCCast.c (decorateType): fixed bug introduced today
11965
11966 2004-01-12  Borut Razem <borut.razem AT siol.net>
11967
11968         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
11969         doc/sdccman.lyx: upper case pragmas are deprecated
11970
11971 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
11972
11973         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
11974         in simpler and even better code
11975
11976 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
11977
11978         * src/SDCCicode.c (operandOperation): fixed bug #874819
11979         * src/SDCCast.c (decorateType): fixed
11980         char foo (unsigned long ul) { return ul > 0; }
11981
11982 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11983
11984         * doc/sdccman.lyx: Moved and added some sections, small changes
11985         all over. Telling LaTeX to be less strict with word spacing
11986         to better keep the right margin. Changed some notes about
11987         maintainance of the ports in section 3.2.1 - is it OK like this?
11988
11989 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
11990
11991         SDCC source changes:
11992         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
11993         convilong): modified to inform the pic16 port that builtin functions
11994         are external
11995
11996         PIC16 PORT specific changes:
11997         * src/pic16/device.c pic16_dump_equates() added,
11998         processor registers declared internally by the port are emitted in
11999         the translation as equates,
12000         * src/pic16/gen.c: inline code is passed unprocessed to the
12001         translation,
12002         * (pic16_popGetLit2): fnuction modified to take second operand as
12003         pCodeOp pointer and not as literal,
12004         * (popRegFromIdx): prefixed with pic16_,
12005         * (pic16_popCombine2): modified to receive already allocated pCode
12006         operands,
12007         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
12008         * (genFunction): initializes local stack frame and pushes on stack
12009         all the registers used by this function,
12010         * (genEndFunction): restores all registers from stack and restores
12011         stack frame,
12012         * src/pic16/glue.c (pic16emitRegularMap): various changes and
12013         improvements,
12014         * (pic16glue): changed the program startup sequence,
12015         * added new dbName code 'A' for functions placed in absolute section
12016         * src/pic16/main.c: added function attribute _naked,
12017         * added pragma 'code' to place a fnuction at an absolute address,
12018         * added command line arguments --debug-ralloc and --pcode-verbose,
12019         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
12020         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
12021         * (pic16_newpCodeOpLit2): modified to take the second operand as
12022         pCodeOp pointer,
12023         * (pic16_printpBlock): modified to emit each function in a separate
12024         section,
12025         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
12026         UPPER for immediate operands,
12027         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
12028         instruction,
12029         * src/pic16/peeph.def: all peepholes with movff are commented out,
12030         because there is a problem in the pcode peep optimizer,
12031         * src/pic16/ralloc.c: the register allocator can now reuse local
12032         function symbols for another function. This saves register usage.
12033         * src/pic16/ralloc.h: added flag isLocal in structure regs,
12034
12035         Added file src/pic16/NOTES with information about program writing on
12036         the current port version.
12037
12038 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12039
12040         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
12041         and peephole 252 (array access)
12042
12043 2004-01-09  Borut Razem <borut.razem AT siol.net>
12044
12045         * src/SDCCmain.c : fixed #872250: -l command line defined library
12046           files are scanned before standard library files
12047
12048 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12049
12050         * src/SDCCast.c (decorateType): fixed bug #874046
12051
12052 2004-01-09  Borut Razem <borut.razem AT siol.net>
12053
12054         * support/scripts/sdcc.nsi: remove previous installation
12055
12056 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12057
12058         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
12059         bytes for last interrupt vector (mcs51)
12060         * sdcc.spec: fixed typo
12061
12062 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12063
12064         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
12065         gen51Code): more efficient parameter receive for --model-large
12066         ("bug" #845294)
12067
12068 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12069
12070         * src/ds390/main.c,
12071         * src/z80/main.c: added missed needLinkerScript flags (more than
12072         one port structure defined in these file)
12073         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
12074         bug #795325
12075
12076 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
12077
12078         * src/SDCCmain.c: removed various references to DEFAULT_PORT
12079         * src/port.h: added flag needLinkerScript in port->linker
12080         structure to inform whether to create a .lnk file or not,
12081         * src/avr/main.c,
12082         * src/ds390/main.c,
12083         * src/hc08/main.c,
12084         * src/mcs51/main.c,
12085         * src/pic/main.c,
12086         * src/pic16/main.c,
12087         * src/xa51/main.c,
12088         * src/z80/main.c: changed appropriately to configure
12089         needLinkerScript flag
12090         * src/pic/gen.c,
12091         * src/pic16/gen.c (genAddrOf): fixed bug #863624
12092         * src/pic/glue.c: added variable udata_section_name to
12093         override default uninitialized data segment definition for
12094         devices only with SHAREBANK memory (reported from Erik Epetrich)
12095         * (pic14emitOverlay): modified to emit a commented overlay segment
12096         directive when no overlay data exist
12097         * (picglue): modified to emit uninitialized data segment
12098         according to udata_section_name
12099         * src/pic/main.c (_pic14_parseOptions): added command line
12100         options --udata-section-name=[name] to override default
12101         udata definition name
12102         * modified _linkCmd and _asmCmd to include compiler passed
12103         arguments via -W option
12104         * src/pic16/main.c: added $l in _asmCmd, changed extension for
12105         object file from '.rel' to '.o' in port->linker structure,
12106         changed size of fptr from 2 to 3 in port structure
12107
12108 2004-01-07  Borut Razem <borut.razem AT siol.net>
12109
12110         * support/scripts/sdcc.nsi: update PATH
12111         * support/scripts/sdcc.ico: craeted
12112
12113 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
12114
12115         * device/include/Makefile.in: fix install
12116         * doc/Makefile: fix install
12117
12118 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12119
12120         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
12121         in bug #860505
12122         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
12123         how the function variable allocation summary is displayed; also
12124         include information about variables allocated to the overlay
12125         segment
12126
12127 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12128
12129         * as/mcs51/lkmain.c: Help about -Y option
12130         * as/mcs51/lkarea.c: Fixed gcc warnings
12131
12132 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
12133
12134         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
12135         fixed warning
12136         * support/valdiag/tests/overflow.c: added
12137         * src/SDCCast.c (decorateType),
12138         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
12139         LEFT_OP (left shift)
12140
12141 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12142
12143         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
12144         (default behaviour).
12145
12146 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12147
12148         A python script to validate compiler diagnostic messages. It can be
12149         used to verify that sdcc complains about bad c source code and
12150         gives a good location of the error.
12151         * support/valdiag/Makefile,
12152         * support/valdiag/valdiag.py,
12153         * support/valdiag/tests/*
12154
12155 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12156
12157         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
12158         * src/SDCCsymt.c (newEnumType),
12159         * src/SDCCsymt.h
12160         * support/Util/SDCCerr.c,
12161         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
12162         enum related bugs.
12163         * support/regression/tests/enum.c: added test for enum values that
12164         require at least 2 bytes of storage.
12165
12166 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
12167
12168         * src/common.h: added ifndef/define/endif macros
12169         around the header file.
12170         Bug reported from Jesus Calvino-Fraga
12171
12172 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
12173
12174         * sdcc.spec: updated
12175         * device/include/Makefile.in: don't install CVS directories
12176         * device/lib/Makefile.in: added removal of CVS directories after install
12177         * doc/Makefile: fixed install, added local_icons
12178         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
12179         * src/mcs51/gen.c (genRightShift): fixed bug #870788
12180         * src/ds390/gen.c (genRightShift): fixed bug #870788
12181         * src/SDCCast.c (decorateType): fixed bug #870781
12182
12183 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
12184
12185         PIC16 port related changes:
12186         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
12187         added variable stackPos,
12188
12189         * gen.c: genCall, assignResultValue: added support for
12190         pushing/retrieving function parameters to/from stack,
12191         genFunction,genEndFunction: setup stack frame for the
12192         generated function,
12193         genAddrOf: will be changed according to bug 863624
12194
12195         * added files genutils.c and genutils.h which contain gen*
12196         debugged and optimised functions extracted from gen.c
12197
12198         * glue.c: added variable 'externs' which holds extern symbols,
12199         pic16emitRegularMap: is modified to properly handle relocatable
12200          symbols under the new scheme,
12201         pic16createInterruptVect: is modified
12202         pic16printPublics: is modified to emit 'global' assembler directives,
12203         added pic16_printExterns to print extern symbols,
12204         pic16glue: initializes stack/frame pointer in the beginning of
12205         the assembly output. Temporary hack, will be corrected later,
12206         because gplink yet does not support stack and SDCC does not
12207         yet support a type of crt0.o object to create the final binary.
12208
12209         * Removed many lines that contain 8051 legacy code.
12210         * The code is finally placed under a 'code' directive.
12211         * Added port specific options.
12212
12213         * _process_pragma: simplified since now we do not need *special*
12214         include file to define SFR registers. But a separate header
12215         will be needed. This will be developed later.
12216         * _pic16_parseOptions: added, parses port specific options:
12217         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
12218         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
12219         --preplace-udata-with=
12220
12221         * _pic16_setDefaultOptions: modified to initialize section names,
12222         but hack is temporarly out of order since it needs improvement.
12223         * _pic16_genAssemblerPreamble: configuration words are emitted by
12224         their address instead of their name. This part is incomplete and
12225         supports only the 18Fxx2 devices. Other devices will emit an error
12226         during assembly since they do not contain the same set of config
12227         registers
12228         * _pic16_genIVT: is modified,
12229
12230         * pcode.c: added definitions for some hardware registers that are needed
12231         for stack support
12232         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
12233         All PCI entries are updated. Now LFSR is supported.
12234         * Removed pic16_pciTRIS is mentioned by mdubuc in source
12235         * added pic16_newpCodeOpLit2 to support instructions with
12236         two literal arguments
12237         * pic16_pCode2str: corrected code that emits assembler instructions
12238         with two literal operands and those that have an access bit modifier
12239         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
12240         this fixes a bug which caused some labels to be lost, when an
12241         assembler directive was added, i.e. banksel,
12242         * pic16_FixRegisterBanking: improved logic that causes the insertion
12243         of bank switching,
12244         * InlineFunction: functions that are called once, are not any more
12245         inlined. This can be a port option in the future,
12246
12247         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
12248
12249         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
12250         hold the corresponding uninitialized symbols,
12251         * pic16_allocProcessorRegister: registers have explicit marked the
12252         accessBank field,
12253         * pic16_allocInternalRegister: registers are explicit marked as
12254         not used,
12255         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
12256         processing list, so bit registers were lost,
12257         *
12258
12259         * ralloc.h: added field 'accessBank' and original symbol operand
12260         in register definition,
12261         * removed the field isMapped from register definition,
12262
12263         ** Several functions have been removed from various sources:
12264         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
12265         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
12266         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
12267         pic16_assignRelocatableRegisters
12268
12269         ** others have been introduced:
12270         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
12271         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
12272
12273 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
12274
12275         * support/scripts/inc2h.pl: changed definition of BIT_AT
12276         to emit 'sbit at' instead of 'bit at'. This was a request.
12277
12278         PIC16 port related preliminary changes:
12279         * gen.c: prefixed function popRegFromString with
12280         pic16_ and all references to it corrected
12281         * pcode.c: all pic16_pc_* hardware registers prefixed
12282         with underscore (_),
12283         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
12284         * ralloc.c: newReg(): when register is REG_SFR then
12285         set address to rIdx,
12286         pic16_allocProcessorRegister(): marks register wasUsed=0
12287         pic16_writeUsedRegs(): added a call to assign processor
12288         registers via pic16_assignFixedRegisters
12289
12290 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12291
12292         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
12293         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
12294         variables in unused register banks.  Also the SSEG is placed
12295         wherever there is enough space for it, and IDATA can be anywhere
12296         in internal RAM.  For now compile using -Wl-Y[stack_size].
12297         The mem file is different for this option as well, since it
12298         makes no sense of talking about DSEG lenght.
12299
12300 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
12301
12302         * src/SDCClrange.c: fixed bug 869095 that caused segfault
12303         in certain cases, e.g. when ROM assignment, patch provided
12304         from Albert den Haan.
12305
12306 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
12307
12308         Many signedness and type propagation fixes:
12309         * src/SDCCicode.c: made geniCodeCast() static
12310         replaced SPEC_ by IS_ (cosmetic)
12311         (operandOperation): fixed div and mod operation
12312         (usualBinaryConversions): added support for promotion of char
12313         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
12314         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
12315         (geniCodeAdd): an array index will stay unsigned, even if promoted
12316         from char to int
12317         (geniCodeArray): ditto
12318         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
12319         * src/SDCCsymt.c (computeType): added more support for char;
12320         promotion of char is selectable by promoteCharToInt, fixed signedness
12321         for all cases
12322         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
12323         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
12324         * src/SDCCval (val*): replaced signedness calculation by
12325         computeType()
12326         rearranged if-branches (cosmetic)
12327         (valShift): added warning W_SHIFT_CHANGED
12328         (valCompare): fixed problem with different types
12329         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
12330         * support/regression/tests/literalop.c: added many cases
12331         * support/regression/tests/ast_constant_folding.c: changed finally to
12332         'unsigned int'
12333         * .version: new year, new version: 2.3.7
12334         * src/SDCCmain.c (main): applied patch #866468
12335         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
12336         provided by Scott Bronson
12337         * doc/sdccman.lyx: updated documentation for sdcdb
12338         updated and added chapter tips
12339
12340 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12341
12342         * src/SDCCsymt.h: missing from yesterday's commits
12343
12344 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12345
12346         * src/SDCC.y (struct_or_union_specifier),
12347         * support/Util/SDCCerr.c,
12348         * support/Util/SDCCerr.h: verify that struct & union tags are used
12349         as declared.
12350
12351 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12352
12353         * src/SDCCglobl.h: missing from yesterday's commits
12354
12355 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12356
12357         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
12358         sft_attributes, struct_declaration, parameter_declaration,
12359         type_name, start_block, declaration_list),
12360         * src/SDCC.lex (check_type): support redefinition of typedef names
12361
12362 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12363
12364         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
12365         aligned xdata arrays. Erik helped me with the if clause.
12366
12367 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12368
12369         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
12370         warning
12371
12372 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12373
12374         * src/SDCCast.h,
12375         * src/SDCCast.c (newAst_),
12376         * src/SDCCicode.h,
12377         * src/SDCCicode.c (ast2iCode, newiCode),
12378         * src/SDCCglobl.h,
12379         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
12380         expr, statement, expression_statement, selection_statement,
12381         iteration_statement, expr_opt, jump_statement): foundation for tracking
12382         sequence points
12383         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
12384         point code too)
12385
12386 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12387
12388         * support/Util/SDCCerr.c,
12389         * src/SDCCast.h,
12390         * src/SDCCast.c (createCase, createDefault, decorateType),
12391         * src/SDCClabel.c (labelUnreach),
12392         * src/SDCC.y (labeled_statement, jump_statement): More improvements
12393         to error messages.
12394         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
12395         (with thanks to Stas Sergeev)
12396         * device/include/time.h,
12397         * device/lib/time.c (CheckTime): suppress unreachable code warning
12398
12399 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12400
12401         * src/SDCCast.c (createIvalCharPtr),
12402         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
12403         bug #753752)
12404         * support/regression/tests/nullstring.c: tests for these two bugs
12405
12406 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12407
12408         * support/Util/SDCCerr.h,
12409         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
12410         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
12411         about storage class and 'at' used inside struct or union
12412         * src/SDCCBBlock.c (iCodeFromeBBlock),
12413         * src/SDCCcse.c (ifxOptimize),
12414         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
12415         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
12416         printIval, emitStaticSeg, emitOverlay),
12417         * src/SDCClabel.c (deleteIfx),
12418         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
12419         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
12420         gatherAutoInit, processParms),
12421         * support/Util/SDCCerr.h,
12422         * support/Util/SDCCerr.c (werrorfl): Support for better error location
12423         reporting for post-parse errors.
12424
12425 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12426
12427         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
12428         implicit casts via union; they don't work on big endian systems
12429         (possible fix for bug #861138)
12430
12431 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12432
12433         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
12434         * src/mcs51/main.c: fixed the fix for bug #737001
12435
12436 2003-12-15  Borut Razem <borut.razem AT siol.net>
12437
12438         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
12439
12440 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12441
12442         * support/makebin/makebin.c: put output in binary mode
12443
12444 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12445
12446         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
12447         xdata and data memory on startup. Set the environment variable
12448         SDCC_NOGENRAMCLEAR to disable this.
12449         * src/mcs51/peephole.def,
12450         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
12451         (allows non-interrupt and interrupt code to safely compete for a resource
12452         without the non-interrupt code having to disable interrupts)
12453
12454 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12455
12456         * src/SDCCicode.c (geniCodeAdd),
12457         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
12458         with valFromType if type might be a pointer and host is big endian).
12459         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
12460         types, not just integer types.
12461         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
12462         multiply defined with mismatching "at" address.
12463
12464 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12465
12466         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
12467         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
12468         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
12469         with embedded nulls (fixed bug #753752)
12470
12471 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12472
12473         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
12474         Apparently this did not see much testing (endless loop)
12475
12476 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12477
12478         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
12479
12480 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12481
12482         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
12483         gracefully handle NULL memmap pointers
12484
12485 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12486
12487         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
12488         instead of deleting the iCode when an operand is volatile
12489         * src/z80/gen.c (genDummyRead),
12490         * src/mcs51/gen.c (genDummyRead),
12491         * src/ds390/gen.c (genDummyRead),
12492         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
12493         not just IC_RIGHT
12494         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
12495         * src/SDCC.y: fixed bug #850420
12496
12497 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12498
12499         Applied z80 i/o port patch from Peter Townson and fixed some operators
12500         to better handle operands in A register.
12501         * device/include/z180.h
12502         * src/SDCC.y
12503         * src/SDCCglue.c
12504         * src/z80/gen.c
12505         * src/z80/gen.h
12506         * src/z80/main.c
12507         * src/z80/peeph-z80.def
12508         * src/z80/peeph.def
12509         * src/z80/z80.h
12510
12511 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12512
12513         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
12514
12515 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12516
12517         * device/lib/hc08/_mullong.c: Removed extra #endif
12518
12519 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12520
12521         * sim/ucsim/hc08.src/inst.cc,
12522         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
12523         carries from x to h
12524         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
12525         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
12526         * device/include/stdarg.h: fixed varargs for hc08
12527         * device/lib/Makefile.in,
12528         * device/lib/hc08/Makefile,
12529         * device/lib/hc08/_mulint.c,
12530         * device/lib/hc08/_mullong.c: fixed some endian problems
12531
12532 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12533
12534         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
12535         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
12536         * device/lib/_gptrget.c,
12537         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
12538
12539 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12540
12541         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
12542         * src/SDCCast.c (astErrors): fixed bug #846007
12543         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
12544
12545 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12546
12547         * src/SDCCast.c (decorateType): disabled a transformation I added in
12548         revision 1.188 (access to fields of a structure at an absolute address);
12549         it breaks with bitfields, extern declarations, and gcse analysis.
12550         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
12551         could be assigned through a pointer, so don't complain.
12552         * src/SDCCast.c (astErrors),
12553         * src/SDCCast.h,
12554         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
12555
12556 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
12557
12558         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
12559         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
12560         output of __config directives, since gpasm now supports them
12561         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
12562         pre-processor macro, i.e. -DMCU=p18f452
12563         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
12564         and modified to handle 'cast' icode similarly to '=' icode
12565         * src/pic16/device.h (typedef struct PIC_device): added field
12566         'extMIface' to indicate that chip has external memory interface
12567         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
12568         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
12569         18F8720
12570
12571 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12572
12573         * src/SDCC.y (pointer): fixed bug #846006
12574         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
12575         * src/SDCCast.c (decorateType): fixed bug #846009
12576         * src/ds390/peeph.def,
12577         * src/ds390/gen.c (genAnd, genOr),
12578         * src/mcs51/peeph.def,
12579         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
12580
12581 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12582
12583         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
12584         * src/SDCCdflow.c
12585         * src/SDCCcse.c
12586         * src/SDCCcse.h
12587         * src/SDCCBBlock.h
12588         * src/SDCCBBlock.c
12589
12590 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
12591
12592         fixed bug #845089
12593         * src/SDCCbitv.h,
12594         * src/SDCCbitv.c: added function to free a bitvector
12595         * src/SDCClrange.h,
12596         * src/SDCClrange.c: added function to recompute the liveranges
12597         * src/avr/ralloc.c,
12598         * src/ds390/ralloc.c,
12599         * src/hc08/ralloc.c,
12600         * src/mcs51/ralloc.c,
12601         * src/pic/ralloc.c,
12602         * src/pic16/ralloc.c,
12603         * src/xa51/ralloc.c,
12604         * src/z80/ralloc.c: recompute the liveranges after register packing
12605
12606 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
12607
12608         * src/SDCCloop.c (newInduction): fixed bug #845630
12609
12610 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12611
12612         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
12613         inadvertantly left behind from my 2003-11-12 change
12614
12615 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12616
12617         Updated headers I neglected to commit yesterday.
12618         * src/SDCClrange.h,
12619         * src/SDCCicode.h
12620
12621 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12622
12623         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
12624         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
12625         * src/SDCCopt.c (eBBlockFromiCode),
12626         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
12627         the creation of the key hash table from the sequencing so it can be used
12628         earlier (for some GCSE bug fixes still pending)
12629
12630 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12631
12632         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
12633         * support/regression/tests/addsub.c: testing genPlus shortcut
12634
12635 2003-11-15  Borut Razem <borut.razem AT siol.net>
12636
12637         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
12638
12639 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12640
12641         * src/SDCCcse.c (cseBBlock): fixed bug #527779
12642         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
12643         ordering is immaterial.
12644         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
12645
12646 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12647
12648         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
12649         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
12650         (SIGSEV) of bug #840381
12651         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
12652         unlink new file before rename if new and old filenames are the same)
12653
12654 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12655
12656         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
12657         uninitialized variables) for the mcs51. Set environment variable
12658         SDCC_GENRAMCLEAR to test.
12659         xdata initialization slightly shorter
12660
12661 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12662
12663         * src/SDCCsymt.h,
12664         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
12665         #838241 & 780691 (basicly the same bug)
12666         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
12667         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
12668
12669 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
12670
12671         * src/SDCCmain.c (linkEdit): "fix" #834252
12672
12673 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12674
12675         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
12676         * src/SDCCast.h,
12677         * src/SDCC.y: fixed bug #819403
12678
12679 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12680
12681         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
12682         the reentrant attribute.
12683         * src/hc08/gen.c (genPackBits): added missing stack readjustment
12684         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
12685         simulation
12686         * src/SDCCast.c (decorateType): fixed bug with storage class not being
12687         updated during pointer dereference; f.e. ~(((char *)1)*) was being
12688         erroneously reduced to a literal.
12689         * src/hc08/ralloc.c (packRegisters, rematStr),
12690         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
12691         some cases
12692
12693 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12694
12695         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
12696         * doc/sdccman.lyx: changed from 'article' to 'book'
12697         * doc/Makefile: readded test_suite_spec and cdbfileformat
12698
12699 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
12700
12701         * device/include/stdlib.h: include malloc.h to comply with ANSI
12702         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
12703
12704 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12705
12706         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
12707         * doc/clean.mk: also remove *.out files
12708         * doc/sdccman.lyx: some additions, larger top/bottom margins
12709
12710 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12711
12712         * src/SDCC.y: fixed bug #837365
12713         * support/regression/tests/bitopcse.c
12714         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
12715         a symbol (might be valop instead)
12716         * device/lib/Makefile.in: added errno.c to HC08SOURCES
12717         * device/lib/clean.mk: added hc08 to the cleaning list
12718
12719 2003-11-04  Borut Razem <borut.razem AT siol.net>
12720
12721         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
12722           made 2003-11-04
12723         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
12724           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
12725           malloc is declared in standard stdlib.h
12726
12727 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12728
12729         * device/lib/hc08/Makefile: need to clean .rel not .o files
12730         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
12731
12732 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12733
12734         * src/port.h,
12735         * src/hc08/main.c,
12736         * src/mcs51/main.c,
12737         * src/ds390/main.c,
12738         * src/z80/main.c,
12739         * src/avr/main.c,
12740         * src/pic/main.c,
12741         * src/pic16/main.c,
12742         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
12743         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
12744         tests (which uses the port's oclsExpense function)
12745         * src/SDCC.y,
12746         * src/SDCCast.c,
12747         * src/SDCCicode.c,
12748         * src/hc08/gen.c,
12749         * src/ds390/gen.c,
12750         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
12751
12752 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12753
12754         * src/SDCCcse.c (ifxOptimize),
12755         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
12756         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
12757         deleting the IFX iCode.
12758         * src/hc08/ralloc.c: reduced unneeded slocs
12759         * src/hc08/gen.c: fixed bug in asmopToBoolean
12760
12761 2003-11-04  Borut Razem <borut.razem AT siol.net>
12762
12763         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
12764           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
12765           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
12766           transferred to configure
12767
12768 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
12769
12770         Use headers defined in the C[++] standards:
12771         * sim/ucsim/gui.src/serio.src/fileio.cc
12772         * sim/ucsim/gui.src/serio.src/frontend.cc
12773         * sim/ucsim/gui.src/serio.src/main.cc
12774         * sim/ucsim/gui.src/serio.src/posix_signal.cc
12775         * support/Util/NewAlloc.c
12776         * as/hc08/lklibr.c
12777         * as/mcs51/lklibr.c
12778         * as/z80/aslist.c
12779         * as/z80/assym.c
12780
12781 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12782
12783         * Added MSVC projects for hc08 assembler and linker:
12784         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
12785         /as/hc08/link_hc08.dsp
12786
12787 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
12788
12789         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
12790
12791 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
12792
12793         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
12794
12795 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12796
12797         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
12798
12799 2003-10-31  Borut Razem <borut.razem AT siol.net>
12800
12801         * support/cpp2/cpplib.h,
12802           support/cpp2/cpplib.c,
12803           support/cpp2/cpplex.c,
12804           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
12805           to switch _asm block preprocessing on / off. Default is
12806           #pragma preproc_asm +
12807
12808 2003-10-31  Borut Razem <borut.razem AT siol.net>
12809
12810         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
12811           when outputting comment blocks (when executed with -C option) and
12812           _asm (SDCPP specific) blocks
12813
12814 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12815
12816         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
12817
12818 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
12819
12820         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
12821
12822 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
12823
12824         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
12825         * src/SDCCast.c (decorateType): fixed bug #832664
12826
12827 2003-10-31  Borut Razem <borut.razem AT siol.net>
12828
12829         * support/cpp2/cpplex.c: fixed for SDCPP:
12830           comments(when executed with -C option) and _asm blocks
12831           were included even if they where in skipped #if block.
12832           Applied solution from GCC cpp 3.3.2
12833
12834 2003-10-31  Borut Razem <borut.razem AT siol.net>
12835
12836         * src/SDCC.lex: sdcc now understands both formats:
12837           '# <line_number> <file_name>' and
12838           '#line <line_number> <file_name>'
12839         * support/cpp2/cppmain.c: sdcpp now generates the standard
12840           '# <line_number> <file_name>' instead of former
12841           '#line <line_number> <file_name>'
12842
12843 2003-10-30  Borut Razem <borut.razem AT siol.net>
12844
12845         * support/cpp2/cpphash.h,
12846         * support/cpp2/cpplib.h
12847         * support/cpp2/cpplex.c,
12848         * support/cpp2/cppmain.c,
12849         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
12850
12851 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12852
12853         Fixed a number of problems revealed by bug #827883.
12854         * src/SDCCloop.c (loopInvariants): Spill location of the
12855         result operand should be recomputed if extracted from
12856         a loop. Also, don't extract assignments of an iTemp
12857         from a literal.
12858         * src/SDCCast.c (isConformingBody): loop reversal should
12859         not occur if the control variable is involved with a
12860         relational operator.
12861
12862 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
12863
12864         * .version: bumped to 2.3.6 to reflect the big improvements
12865         made by Erik and Klaus. Thanks!
12866
12867 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
12868
12869         Replaced the livrange code.
12870         * src/SDCClrange.c: added new LR code
12871         * src/SDCCloop.c,
12872         * src/SDCCBBlock.h: removed remainig parts from old LR code
12873         * src/ds390/ralloc.c,
12874         * src/ds390/gen.c: minor fixes to make it work with new code
12875
12876 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12877
12878         * as/hc08/asm.h,
12879         * as/hc08/lkrloc.c,
12880         * src/hc08/gen.c,
12881         * src/hc08/ralloc.c: Fix various warnings related to the hc08
12882         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
12883         (tweaked fix for bug #818696)
12884
12885 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12886
12887         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
12888
12889 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12890
12891         * src/SDCCmain.c,
12892         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
12893         * src/mcs51/gen.c (gencjneshort),
12894         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
12895         more efficient (per Scott Bronson's suggestion)
12896
12897 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12898
12899         Extended the semantics of the critical keyword to include
12900         individual statements. See RFE #827755 and #799831
12901         * src/SDCC.y
12902         * src/SDCCicode.c
12903         * src/SDCCopt.c
12904         * src/SDCCast.c
12905         * support/Util/SDCCerr.c
12906         * support/Util/SDCCerr.h
12907         * src/mcs51/gen.c
12908         * src/ds390/gen.c
12909         * src/hc08/gen.c
12910
12911 2003-10-19  Borut Razem <borut.razem AT siol.net>
12912
12913         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
12914
12915 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12916
12917         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
12918         Fixed bug #818696
12919         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
12920         and predecrement operand is displayed
12921
12922 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
12923
12924         * src/SDCCval.c (valMinus): fixed bug #826041
12925
12926 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12927
12928         Some hc08 related updates that I missed earlier
12929         * sim/ucsim/stypes.h
12930         * support/regression/ports/hc08/spec.mk
12931
12932 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12933
12934         New target "hc08" for the Motorola 68hc08 family of micros
12935
12936         * configure
12937         * configure.in
12938         * Makefile
12939         * src/hc08/*
12940         * src/SDCCmain.c
12941         * src/port.h
12942         * sim/ucsim/hc08.src/*
12943         * sim/ucsim/configure.in
12944         * src/ucsim/configure
12945         * sim/ucsim/packages_in.mk
12946         * as/hc08/*
12947         * as/Makefile
12948         * device/include/mc68hc908qy.h
12949         * device/lib/hc08/*
12950         * device/lib/Makefile.in
12951         * support/regression/ports/hc08/*
12952         * support/regression/Makefile
12953
12954 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12955
12956         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
12957         regression test
12958         * src/ds390/gen.c (genCast): fixed bug #821957
12959
12960 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
12961
12962         * device/lib/logf.c: "fixed" overlay bug
12963         * support/regression/ports/host/spec.mk: added m library
12964         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
12965         * support/regression/tests/float_trans: added (for Eric)
12966
12967 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
12968
12969         * src/mcs51/gen.c (genCpl): fixed bug
12970         http://sf.net/mailarchive/message.php?msg_id=6263915
12971
12972 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
12973
12974         * src/SDCCast.c (decorateType): added extended constant folding
12975         * src/SDCCsymt.c (computeType): cleanup
12976         * src/SDCCval.c (valShift): minor optimization
12977         * support/regression/tests/ast_constant_folding.c: added
12978
12979 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12980
12981         * src/SDCCmain.c: removed some unintended changes
12982
12983 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12984
12985         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
12986         * src/z80/gen.c: fixed part of bug #817589
12987         * src/SDCCsymt.c (checkFunction): fixed bug #817895
12988
12989 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
12990
12991         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
12992         * src/SDCCcflow.c
12993         * src/SDCCcse.c
12994         * src/SDCCdflow.c
12995         * src/SDCClabel.c
12996         * src/SDCClrange.c
12997         * src/SDCCmem.c
12998         * src/SDCCopt.c
12999         * src/SDCCpeeph.c
13000         * src/SDCCset.c
13001         * src/avr/ralloc.c
13002         * src/ds390/ralloc.c
13003         * src/izt/ralloc.c
13004         * src/mcs51/ralloc.c
13005         * src/pic/ralloc.c
13006         * src/pic16/ralloc.c
13007         * src/xa51/ralloc.c
13008         * src/z80/ralloc.c
13009         * src/z80/gen.c: removed unused label "release:"
13010
13011 2003-10-06  Borut Razem <borut.razem AT siol.net>
13012
13013         * src/SDCC.lex: removed definition of unused variables
13014           save_optimize and save_options
13015
13016 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
13017
13018         * clean.mk: removed '=' in "-maxdepth=1"
13019         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
13020         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
13021
13022 2003-10-06  Borut Razem <borut.razem AT siol.net>
13023
13024         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
13025           my_unput() replaced by unput()
13026
13027 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
13028
13029         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
13030         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
13031         type-punned pointer will break strict-aliasing rules"
13032         Old LR behaviour is again default; Klaus' LR can be choosen by
13033         defining the environment variable LRKLAUS
13034         * src/SDCCBBlock.h
13035         * src/SDCCloop.c
13036         * src/SDCClrange.c
13037         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
13038         * clean.mk: fixed removal of files in bin/CVS/
13039         * device/lib/clean.mk: fixed removal of directories small and large
13040         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
13041         * src/SDCCicode.c,
13042         * src/SDCCval.c: removed superflous test for pedantic
13043
13044 2003-10-05  Borut Razem <borut.razem AT siol.net>
13045
13046         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
13047           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
13048           message "unmatched #pragma SAVE and #pragma RESTORE"
13049
13050 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13051
13052         * doc/sdccman.lyx: various additions and updates (interrupts, inline
13053           assembly, critical functions, atomic, nojtbound)
13054
13055 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
13056
13057         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
13058         * src/SDCCBBlock.h
13059         * src/SDCCloop.c
13060         * src/SDCCloop.h
13061         * src/SDCClrange.c
13062
13063 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13064
13065         * src/z80/gen.h,
13066         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13067         * src/mcs51/gen.h
13068         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13069         * src/ds390/gen.h
13070         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13071         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
13072         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
13073
13074 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13075
13076         * src/z80/gen.c (genRet): fixed bug #524753
13077         * src/z80/gen.c (genCast): fixed internal error on cast from
13078         pointer to long
13079         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
13080         fix for bug #477835 to the z80
13081         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
13082         for tracking iCodes in the peephole optimizer for z80
13083
13084 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13085
13086         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
13087         the other part of bug #814548
13088         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
13089
13090 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
13091
13092         * src/SDCCcse.c: fixed part of bug #814548
13093
13094 2003-09-28  Borut Razem <borut.razem AT siol.net>
13095
13096         * src/asm.c: rewrite of printILine() to use temporary file instead
13097           a pipe
13098         * src/xa51/main.c: commented out declaration of int rewinds
13099
13100 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13101
13102         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
13103
13104 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13105
13106         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
13107         * src/asm.c (printILine): Fixed bug #811015
13108
13109 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13110
13111         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
13112         freeing.
13113
13114 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13115
13116         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
13117         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
13118         to correctly handle general case of AOP_PAIRPTR
13119         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
13120
13121 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13122
13123         * src/mcs51/ralloc.c (fillGaps),
13124         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
13125         register positioning bug)
13126
13127 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
13128
13129         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
13130
13131 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13132
13133         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
13134         genCodePointerGet, genGenPointerGet, genFarPointerSet,
13135         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
13136         (ralloc doesn't intentionally do this now, but perhaps later)
13137         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
13138         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
13139         register positioning bugs (Fixed bug #762602 and #795325)
13140         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
13141         (Fixed bug #808779)
13142         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
13143         lines that --i-code-in-asm generates
13144
13145 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13146
13147         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
13148         trying to fclose a FILE* that was already closed.
13149
13150 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13151
13152         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
13153         of const struct should be treated as if const themselves)
13154
13155 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
13156
13157         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
13158
13159 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13160
13161         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
13162         Unix (/n) and DOS (/r/n) line terminations.
13163
13164 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13165
13166         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
13167         bug #613775
13168
13169 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13170
13171         * src/mcs51/gen.c (genFunction, genEndFunction),
13172         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
13173         and restore of EA so that stack offsets to parameters are
13174         correct when using both critical and reentrant/stack-auto.
13175         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
13176         size (can be triggered in error if sloc is shared between
13177         different sized objects)
13178         * device/include/float.h: fixed macros to explicitly use
13179         unsigned long where needed
13180
13181 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
13182
13183         Feature req. 799831: added code to allow nesting of critical functions
13184         * src/mcs51/gen.c (genFunction, genEndFunction)
13185         * src/ds390/gen.c (genFunction, genEndFunction)
13186
13187 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13188
13189         * src/SDCCsymt.c (sclsFromPtr),
13190         * src/SDCCsymt.h,
13191         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
13192         support for standard C idiom of memory mapped variables; for
13193         example, *((xdata int*)0x1234) = 1 is now internally equivalent
13194         to xdata int at 0x1234 tempvar = 1.
13195         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
13196         provided by Akiya ISHIDA
13197
13198 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
13199
13200         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
13201         * src/SDCCval.c (constVal): added reduction from int to char
13202         * src/SDCCval.c (valMult, valDiv): fixed sign handling
13203         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
13204         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
13205         to ignore the sign
13206         * support/regression/tests/shifts.c: fixed
13207
13208 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13209
13210         * src/z80/gen.c (genXor): Fixed bug #805445
13211
13212 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13213
13214         Fixed bug #621531 (const & volatile confusion in the type chain).
13215         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
13216         refer to the const or volatile state of the pointer itself.
13217
13218         * src/SDCCast.c
13219         * src/SDCCglue.c
13220         * src/SDCCicode.c
13221         * src/SDCCsymt.c
13222         * src/SDCCval.c
13223         * src/SDCC.y
13224         * src/SDCCsymt.h
13225         * src/pic/gen.c
13226         * src/pic/ralloc.c
13227         * src/pic16/gen.c
13228         * src/pic16/ralloc.c
13229         * support/regression/tests/const.c
13230
13231 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13232
13233         When checking for duplicated modules, use absolute paths
13234         instead of relative paths.  Files changed:
13235
13236         * as/mcs51/lklib.c
13237         * link/z80/lklib.c
13238
13239 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13240
13241         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
13242
13243 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13244
13245         * device/include/string.h: added size_t typedef, changed
13246         prototypes to use size_t, eliminated separate reentrant and
13247         non-reentrant declarations, added _memmove declaration
13248         * device/lib/_memcpy.c: changed to use size_t instead of int,
13249         changed /4 to >>2 to avoid division library call
13250         * device/lib/_memcmp.c,
13251         * device/lib/_memset.c,
13252         * device/lib/_strncat.c,
13253         * device/lib/_strncpy.c,
13254         * device/lib/_strncmp.c: changed to use size_t instead of int
13255         * device/lib/_memmove.c: new file (fixed bug #772294)
13256         * device/lib/Makefile.in: added _memmove.c
13257         * device/lib/z80/asm_strings.s: fixed bug #772290
13258         * support/regression/tests/bitfields.c: attempt to fix host assertion
13259         failure on amd64-unknown-linux2.2
13260
13261 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13262
13263         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
13264         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
13265         * as/z80/asmain.c (main): fixed bug #801766
13266
13267 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
13268
13269         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
13270         compilers
13271
13272 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13273
13274         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
13275         reported in bug #800609
13276
13277 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
13278
13279         * Top header beautifications in src/pic16 directory:
13280           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
13281           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
13282           pcoderegs.h, ralloc.c, ralloc.h
13283         * main.c: added top header and GPL license notice
13284         * pcode.c: fixed the if-conditional warning
13285
13286 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
13287
13288         * device/lib/_mullong.c: replaced int by short for gcc
13289
13290 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13291
13292         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
13293         and JUMPTABLE iCodes properly now (worked by accident before)
13294         * src/mcs51/gen.c (leftRightUseAcc),
13295         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
13296         iCode properly now. Use getSize instead of nRegs since a & b
13297         aren't part of the nRegs tally.
13298
13299 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
13300
13301         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
13302         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
13303           before instructions that use the _STATUS register
13304
13305 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
13306
13307         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
13308         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
13309         fetching of the pointer
13310         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
13311         copied from genNearPointerSet()
13312         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
13313         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
13314         If they pop r0/r1 they must be called in the opposite order than aopOp().
13315         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
13316         (resp. --stack-auto), prepared for --xstack
13317
13318 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13319
13320         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
13321
13322 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
13323
13324         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
13325         these ports have their own __sdcc_external_start()
13326
13327 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
13328
13329         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
13330         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
13331         type for bits was changed. It resulted in bit variables becoming
13332         global, which is not permitted in PIC 14 assembly output.
13333
13334 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13335
13336         * doc/sdccman.lyx: various additions and updates. Rearranged sections
13337
13338 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13339
13340         Z80 and MCS51 linkers complaint if a public symbol is defined
13341         in more than one library module:
13342
13343         * as/mcs51/lklib.c
13344         * link/z80/lklib.c
13345         * as/mcs51/Makefile.in
13346
13347 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13348
13349         A few small changes that speed up the peephole optimizer.
13350
13351         * src/SDCCpeeph.c
13352
13353 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13354
13355         Try to make the peephole optimizer smarter by maintaining
13356         an association between the assembly source code and the
13357         iCodes that originated them. Put this information to use
13358         with a new peephole rule condition "notVolatile" so that
13359         the rules can be aggressive yet still safe.
13360
13361         * src/SDCCpeeph.c
13362         * src/SDCCpeeph.h
13363         * src/mcs51/gen.c
13364         * src/mcs51/peeph.def
13365
13366 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13367
13368         Fixed bug #741761
13369
13370         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
13371         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
13372         if the left or right operand symbols have the accuse flag set.
13373
13374 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13375
13376         Changed the type of the result of the ! (NOT) operator to char;
13377         previously it returned the same type as the source. This allows
13378         us to eliminate all the genFloatNot functions (all of its target
13379         implementations were very buggy) since !float can use the same
13380         code as !long now.
13381
13382         * src/SDCCicode.c (ast2iCode): ! returns char
13383         * src/mcs51/gen.c (genNot, genNotFloat),
13384         * src/ds390/gen.c (genNot, genNotFloat),
13385         * src/z80/gen.c (genNot, genNotFloat),
13386         * src/pic/gen.c (genNot, genNotFloat),
13387         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
13388
13389 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
13390
13391         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
13392         1. Interrupt would not compile properly. Ensure PCLATH register is saved
13393            during interrupts. Ensure WSAVE is located at a shared bank address.
13394         2. Fixed page selection in some places
13395         3. Fixed BTFSS/C to where necessary use registers directly and not simply
13396            the registers name strings.
13397         4. Fixed "signed / unsigned compare" compiler warnings.
13398         5. The PIC port manages its own allocation of the general purpose
13399            registers, but makes no attempt to reuse them. As a result when
13400            compiling it soon runs out of general purpose registers. Some
13401            additional code was added to the files pcode.c and device.c to walk
13402            through the function call tree and rename the registers so that they
13403            get reused.
13404
13405         * src/pic/device.c
13406         * src/pic/gen.c
13407         * src/pic/glue.c
13408         * src/pic/pcode.c
13409         * src/pic/pcode.h
13410         * src/pic/ralloc.c
13411         * src/pic/ralloc.h
13412         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
13413         genPlus() & genMinus() when the result is the same as left or right
13414
13415 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13416
13417         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
13418
13419 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13420
13421         Made bitfield a distinct type from bit so that bitfields
13422         convert as per ANSI C and bits retain their traditional
13423         boolean style behaviour. Implemented bitfield support in
13424         the z80 port.
13425
13426         * src/SDCCsymt.h,
13427         * src/SDCCsymt.c,
13428         * src/SDCCast.c,
13429         * src/cdbFile.c,
13430         * src/mcs51/gen.c,
13431         * src/ds390/gen.c: bit v bitfield split
13432         * src/z80/gen.c: New support for bitfields
13433         * support/regression/tests/bitfields.c: reenabled z80,
13434         added more tests
13435
13436 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13437
13438         Rules 246.x, 247.x relate to bitfields, the others speed up
13439         access to xdata mapped I/O devices.
13440
13441         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
13442
13443 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13444
13445         Cleaned up genPackBits and genUnpackBits and added two helper
13446         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
13447         for literal assignments in genPackBits (thanks to Frieder for
13448         reminding me).
13449
13450         * src/mcs51/gen.c
13451         * src/ds390/gen.c
13452
13453 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13454
13455         Fixed bug #748310 (pointer to function type mishandled when the
13456         function name is omitted). Also fixed a SIGSEGV when a function
13457         attribute (reentrant, etc) is used on a non-function or on a
13458         function but misplaced before the parameter list.
13459
13460         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
13461         bug #748310
13462         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
13463         * support/Util/SDCCerr.h,
13464         * support/Util/SDCCerr.c: Added func attr misuse error msg
13465
13466 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
13467
13468         Fixed bug #787649 by anonymous
13469         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
13470         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
13471
13472 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13473
13474         Fixed numerous bitfield problems.
13475
13476         * src/SDCC.y: More bitfield related error checking
13477         * src/SDCCsymt.h,
13478         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
13479         * support/Util/SDCCerr.h,
13480         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
13481         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
13482         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
13483         * support/regression/tests/bitfields.c: tests added
13484
13485 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13486
13487         Made the constant following the "interrupt" keyword optional. If
13488         omitted, the function will not automatically be given an entry
13489         in the interrupt vector table (similar to #pragma NOIV, but
13490         less syntacticly kludgy). The interrupt number is also now
13491         range checked. Also fixed a bug in the high order bit example
13492         in the manual.
13493
13494         * src/SDCC.y
13495         * src/SDCCmem.c
13496         * src/SDCCglue.c
13497         * src/SDCCsymt.h
13498         * support/Util/SDCCerr.c
13499         * support/Util/SDCCerr.h
13500         * doc/sdccman.lyx
13501
13502 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
13503
13504         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
13505         * src/SDCCicode.c (operandOperation): rewritten some ops
13506         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
13507         * src/SDCCsymt.c (computeType): literals are handled the same way as any
13508         other type
13509         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
13510         be re-activated by defining REDUCE_LITERALS)
13511         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
13512         unsigned, but are signed by default
13513         * src/SDCCval.c (constVal): rearranged
13514         * src/SDCCval.c (valMod): preliminary fix
13515         * src/SDCCval.c (valCastLiteral): use TYPE_* types
13516         * support/regression/literalop.c: added, work in progress
13517
13518 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13519
13520         Generate warnings for useless declarations like "char data;"
13521         that don't do what new users expect.
13522
13523         * src/SDCC.y
13524         * support/Util/SDCCerr.h
13525         * support/Util/SDCCerr.c
13526
13527 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
13528
13529         * src/SDCCval.c (valMult): fix overflow detection of negative int
13530
13531 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13532
13533         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
13534
13535         Changes to support big endian targets:
13536
13537         * src/ports.h
13538         * src/SDCCglue.c
13539         * src/avr/main.c
13540         * src/ds390/main.c
13541         * src/izt/i186.c
13542         * src/mcs51/main.c
13543         * src/pic/main.c
13544         * src/pic16/main.c
13545         * src/xa51/main.c
13546         * src/z80/main.c
13547
13548 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
13549
13550         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
13551         * device/lib/time.c: fixed warning "integer overflow in expression"
13552
13553 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
13554
13555         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
13556         * src/SDCCval.c (constVal): changed default to signed; hex and octal
13557         constants are unsigned; added recognition of "u" flag for unsigned
13558         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
13559         * src/SDCCval.c (valDiv, valMod): fixed signdness
13560         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
13561         signedness of modulo, left and right shift
13562         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
13563         * support/Util/SDCCerr.h: added warning W_INT_OVL
13564         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
13565         * src/SDCCast.c (ast_print): improved output of constants
13566
13567 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13568
13569         Fixed some warnings when building with MSVC:
13570
13571         * as/mcs51/asdata.c
13572         * as/z80/asdata.c
13573         * as/mcs51/asm.h
13574         * as/z80/asm.h
13575         * link/z80/aslink.h
13576         * link/z80/lkdata.c
13577         * link/z80/lkeval.c
13578         * link/z80/lkgb.c
13579         * link/z80/lkihx.c
13580         * link/z80/lks19.c
13581         * link/z80/lksym.c
13582         * support/cpp2/cpplib.c
13583         * src/ds390/gen.c
13584         * src/mcs51/gen.c
13585
13586 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
13587
13588         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
13589
13590 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13591
13592         * support/librarian/clean.mk: Do not remove Makefile.
13593         * support/librarian/Makefile: added.
13594
13595 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13596
13597         Added librarian to MSVC build:
13598         * all.dsp
13599         * sdcc.dsw
13600         * support/librarian/librarian.dsp
13601
13602         'configure' not needed for librarian, removed:
13603         * support/librarian/configure
13604         * support/librarian/configure.in
13605         * support/librarian/config_in.h
13606         * support/librarian/Makefile.in
13607
13608         Hopefully these ones built the librarian and the rest of sdcc properly:
13609         * Makefile
13610         * Makefile.common.in
13611
13612         Messed up 'configure', so revert to previous version:
13613         * configure
13614         * configure.in
13615
13616 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
13617
13618         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
13619         there, while the mantissa of a double is "only" 53 bits wide.
13620
13621 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13622
13623         Adding sdcclib to the build.  MSVC project coming soon.
13624         Files added/changed:
13625
13626         * support/librarian/clean.mk
13627         * support/librarian/configure
13628         * support/librarian/configure.in
13629         * support/librarian/config_in.h
13630         * support/librarian/Makefile.bcc
13631         * support/librarian/Makefile.in
13632         * support/librarian/sdcclib.c
13633         * Makefile.bcc
13634         * Makefile
13635         * Makefile.common.in
13636         * configure
13637         * configure.in
13638
13639 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13640
13641         Linker now complaints if linked modules have conflicting options, for
13642         example, one compiled using --model-large and another one compiled with
13643         --model-small.  The following files were modified:
13644
13645         * as/mcs51/asdata.c
13646         * as/mcs51/aslink.h
13647         * as/mcs51/asm.h
13648         * as/mcs51/asmain.c
13649         * as/mcs51/asout.c
13650         * as/mcs51/i51pst.c
13651         * as/mcs51/lkdata.c
13652         * as/mcs51/lklibr.c
13653         * as/mcs51/lkmain.c
13654         * as/z80/asdata.c
13655         * as/z80/asm.h
13656         * as/z80/asmain.c
13657         * as/z80/asout.c
13658         * as/z80/z80pst.c
13659         * link/z80/aslink.h
13660         * link/z80/lkdata.c
13661         * link/z80/lklibr.c
13662         * link/z80/lkmain.c
13663         * src/SDCCglue.c
13664
13665 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13666
13667         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
13668         as/mcs51/lklibr.c: Generate a warning when a library is not found.
13669
13670 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
13671
13672         * src/z80/mappings.i: fix _mul[us][int,long] entries
13673
13674 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13675
13676         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
13677
13678 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
13679
13680         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
13681         * support/regression/tests/bitopcse.c: added
13682         fixed warning:
13683         * src/avr/gen.c:
13684         * src/pic/gen.c:
13685         * src/pic16/gen.c:
13686         * src/z80/gen.c:
13687         * src/xa51/gen.c:
13688
13689 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13690
13691         added support for new library format to z80, gbz80 linkers:
13692         *link/z80/aslink.h
13693         *link/z80/lklex.c
13694         *link/z80/lklib.c
13695         *link/z80/lklist.c
13696
13697 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
13698
13699         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
13700         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
13701
13702 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
13703
13704         added DUMMY_READ_VOLATILE:
13705         * src/SDCC.y:
13706         * src/avr/gen.c:
13707         * src/xa51/gen.c:
13708         * src/z80/gen.c:
13709         * src/pic/gen.c:
13710         * src/pic16/gen.c:
13711         * src/mcs51/gen.c:
13712         * src/ds390/gen.c:
13713         * src/SDCCcse.c (algebraicOpts): many improvements
13714         * src/SDCCcse.h: removed algebraicOpts()
13715         * src/SDCCicode.c (picDummyRead): added
13716
13717 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13718
13719         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
13720         "Insufficient space in data memory".
13721
13722 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13723
13724         * src/mcs51/gen.c: fixed bug #771358
13725         * src/z80/gen.c: fixed bug #759087
13726
13727 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
13728
13729         * src/pic16/glue.c: minor cleanup by Vangelis
13730
13731 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13732
13733         * device/include/regc515c.h: fixed #758477
13734         * device/lib/_gptrget.c: saving some cycles in generic pointer get
13735         * device/lib/_gptrput.c: saved a few bytes
13736         * my tab spacing is 8, yours too?)
13737         * device/lib/_ser.c: process RX bytes earlier than TX bytes
13738         * device/lib/serial.c: process RX bytes earlier than TX bytes
13739         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
13740
13741 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13742
13743         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
13744
13745 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13746
13747     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
13748
13749 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
13750
13751         * device/lib/Makefile.in: bad fix, reverted to 1.43
13752
13753 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
13754
13755         * device/lib/Makefile.in: added missing z80 object files
13756
13757 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
13758
13759         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
13760         pic16 progress by Vangelis:
13761         * src/SDCCglobl.h:
13762         * src/SDCCmain.c:
13763         * src/pic/Makefile:
13764         * src/pic:
13765         * pic/Makefile:
13766         * pic16/device.c:
13767         * pic16/device.h:
13768         * pic16/gen.c:
13769         * pic16/gen.h:
13770         * pic16/genarith.c:
13771         * pic16/glue.c:
13772         * pic16/main.c:
13773         * pic16/pcode.c:
13774         * pic16/pcode.h:
13775         * pic16/pcodepeep.c:
13776         * pic16/peeph.def:
13777
13778 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13779
13780     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
13781
13782 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13783
13784     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
13785     added gbz80 build to MSVC project.
13786     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
13787     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
13788     from 8051 stuff and setup so it links using a .lnk file.
13789
13790 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13791
13792     * support/librarian/sdcclib.c: sdcc librarian.
13793     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
13794     with sdcclib.
13795
13796 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13797
13798     * as/mcs51/lkmain.c: properly handle extensions in function afile.
13799
13800 2003-07-02  Borut Razem <borut.razem AT siol.net>
13801
13802         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
13803         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
13804         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
13805         src/xa51/main.c, src/z80/main.c:
13806         virtualization of glue() function: each port has it's own glue function,
13807         which is accessed by do_glue function pointer in PORT.general structure
13808
13809 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
13810
13811         * DS800C400 fun, improved ROM interface and tinibios.
13812
13813 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
13814
13815         * More support for DS80C400. Now includes beginning of interface to ROM.
13816
13817 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
13818
13819         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
13820
13821 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13822
13823         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
13824
13825 2003-06-19  Borut Razem <borut.razem AT siol.net>
13826
13827         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
13828
13829 2003-06-19  Borut Razem <borut.razem AT siol.net>
13830
13831         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
13832         fixed Z80 port - crt0.o: cannot open.
13833
13834 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
13835
13836         * support/Util/MySystem.c (merge_command): revert bad fix
13837
13838 2003-06-18  Borut Razem <borut.razem AT siol.net>
13839
13840         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
13841
13842 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13843
13844         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
13845         option --use-stdout sends errors to stdout instead of stderr.
13846
13847 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
13848
13849         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
13850
13851 2003-06-15  Borut Razem <borut.razem AT siol.net>
13852
13853         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
13854         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
13855         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
13856         fixed width array of pointers replaced with sets;
13857         multiple include and lib paths ared transferred to preprocessor and linker
13858         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
13859         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
13860         fixed width array of pointers
13861         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
13862         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
13863         fixupPath(), getPathDifference()
13864         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
13865         fixed width array of pointers
13866
13867 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
13868
13869         * src/pic16/ralloc.c: fix warnings
13870         * src/pic16/pcode.c: fix warning
13871
13872 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
13873
13874          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
13875         know all the details, but essentially this set of changes enable
13876         the pic16 port to generate movff instructions and generate assembler
13877         directives,
13878         * src/SDCCmain.c:
13879         * src/pic16/gen.c:
13880         * src/pic16/glue.c:
13881         * src/pic16/pcode.c:
13882         * src/pic16/device.c:
13883         * src/pic16/main.c:
13884         * src/pic16/pcode.h:
13885         * src/pic16/pcoderegs.c:
13886         * src/pic16/ralloc.c:
13887         * src/pic16/ralloc.h:
13888
13889 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13890
13891         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
13892         added option --vc, so sdcc errors and warnings are compatible with
13893         Microsoft Visual Studio.
13894
13895 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13896
13897         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
13898           device/lib/libfloat.lib: added atof function.
13899
13900 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
13901
13902         * doc/sdccman.lyx: updated to Lyx 1.3
13903         * doc/cdbfileformat.lyx: updated to Lyx 1.3
13904         * doc/test_suite_spec.lyx: updated to Lyx 1.3
13905         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
13906
13907 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
13908
13909         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
13910
13911 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13912
13913         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
13914           additions to the "related tools/documentation" section
13915
13916 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
13917
13918         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
13919
13920 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
13921
13922         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
13923         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
13924
13925 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
13926
13927         * doc/sdccman.lyx: fix double dash and other minor things
13928         * doc/Makefile: fix double dash
13929
13930 2003-05-28  Karl Bongers(patches from Martin Helmling)
13931         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
13932           condition and ignore commands.
13933
13934 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13935
13936         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
13937           is in parts still quite out of date, I did changes as far as I felt makes sense
13938           for a non-native english speaker.
13939           Please feel free to add to the manual or to correct my changes.
13940         * doc/Makefile: undid touching the date of intermediate tex files.
13941
13942 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13943
13944         * doc/sdccman.lyx: Manual has an index now
13945
13946 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
13947
13948         Finalize muluint/mulsint and mululong/mulslong merging:
13949         * device/lib/_mulint.c
13950         * device/lib/_mullong.c
13951         * device/lib/gbz80/mul.s
13952         * device/lib/gbz80/stubs.s
13953         * device/lib/z80/mul.s
13954         * device/lib/z80/stubs.s
13955         * src/SDCCsymt.c (initCSupport)
13956
13957 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13958
13959         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
13960         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
13961           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
13962           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
13963           instead of /Zm500.
13964
13965 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13966
13967         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
13968           the regression tests I'm not brave enough to enable 245.b, 245.c
13969         * doc/sdccman.lyx: added latex preamble for hyperref package.
13970           Using pdflatex this will give you a hyperlinked pdf file with
13971           bookmarks. (prepend '%' before /usepackage if this breaks something)
13972
13973 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13974
13975          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
13976
13977 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
13978
13979         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
13980
13981 2003-05-21    <johan AT balder>
13982
13983         * src/SDCCglue.c (printIval): fixed bug #739934
13984
13985 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
13986
13987         Applied patch from bug 737905 (renamed yylineo to mylineno):
13988         * src/altlex.c
13989         * src/SDCCast.c
13990         * src/SDCglobl.h
13991         * src/SDCC.lex
13992         * src/SDCCsymt.c
13993         * src/SDCCval.c
13994         * src/pic16/pcode.c: Cleaned warnings
13995         * src/pic16/pcodeflow.c: Cleaned warnings
13996         * src/pic16/pcoderegs.c: Cleaned warnings
13997
13998 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
13999
14000         * src/pic16/pcode.c: Cleaned warnings
14001         * src/pic16/pcodepeep.c: Cleaned warnings
14002         * src/pic16/ralloc.c: Cleaned warnings
14003
14004 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
14005
14006         * doc/sdccman.lyx: fixed bug 739745
14007         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
14008
14009 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
14010
14011         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
14012         it can be defined with CFLAGS when running configure
14013         * src/SDCCmain.c: fixed compiling + linking with object files
14014
14015 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
14016
14017         * configure.in: configure for pic16 port,
14018             added --disable-pic16-port
14019         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
14020         * src/SDCCmain.c: linkOptions is changed to set *,
14021             added if/endif conditional macros to remove options help
14022             messages from optionsTable when a port is not configured, added
14023             support for the PIc16 port in the ports table, when executing
14024             the compiler with no port specified on command line, a default
14025             port is selected with the new macro DEFAULT_PORT which is
14026             defined in port.h, in setDefaultOptions() linkOptions is removed
14027             from initialization assignment, since now it is a set,
14028             parseCmdLine uses setParseWithComma for linkOptions, in
14029             linkEdit() linkOptions are accessed with new function indexSet()
14030             which returns the i'th item of a set variable. See SDCCset.c, in
14031             linkEdit() when calling buildCmdLine(), added linkOptions as
14032             last argument. Now users can pass arguments to gplink via the
14033             -Wl option, main() uses pic16glue() to glue up pic16 programs
14034         * src/SDCCpeeph.c: various changes to support pic16
14035         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
14036             return the i'th item of the set
14037         * src/SDCCset.h: added function prototype for indexSet()
14038         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
14039         * src/clean.mk: added pic16 in CLEANALLPORTS variable
14040         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
14041             added macro DEFAULT_PORT
14042         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
14043         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
14044             generated
14045         * src/pic16/glue.c: commented out some error producing lines
14046         * src/pic16/main.c: __config directives are commented out to stop
14047             gpasm complaining and test the linkage with gplink, _linkCmd and
14048             _asmCmd changed to be more gplink and gpasm friendly
14049         * src/pic16/peeph.def: peep rule 3 is commented out, since it
14050             produced an error when parsed, peep rule 12 is added to utilize
14051             movff, but it is commented out since the pCode does not support
14052             yet a command with 2 address arguments
14053
14054 2003-05-18    <johan AT balder>
14055
14056         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
14057         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
14058 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
14059
14060         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
14061   Added feature to script commands from file.
14062
14063 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
14064
14065         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
14066         * src/SDCCutil.c: include ctype.h for win32
14067
14068 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
14069
14070         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
14071
14072 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
14073
14074         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
14075   Fixed so you can set breakpoints prior to run, run does not stop
14076   on entry now.  Add tbreak.  Other enhancements and fixes for use
14077   with ddd.
14078
14079 2003-05-12  Borut Razem <borut.razem AT siol.net>
14080
14081         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
14082
14083 2003-05-11  Borut Razem <borut.razem AT siol.net>
14084
14085         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
14086         the path of bin directory, so that PATH is the only env. variable, which has to be set
14087         in case of standard installation.
14088         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
14089         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
14090         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
14091
14092 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
14093
14094         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
14095         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
14096         temp files are in the port dir; clean the gen/test directory when
14097         generating new test.c
14098         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
14099         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
14100         * support/regression/tests/zeropad.c: added
14101
14102 2003-05-09    <johan AT balder>
14103
14104         * src/SDCCglue.c: fixed bug #597940
14105
14106 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
14107
14108         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
14109   cache sfr, optimize next,step, fix off by one sourceline,
14110   support ddd list function.
14111         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
14112
14113 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
14114
14115         * support/regression/HTMLgen.py: added compare_s2f()
14116         * support/regression/Makefile: redo 1.27
14117         * support/regression/generate-cases.py: redo 1.5
14118
14119 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
14120
14121         * support/regression/tests/float.c: workaround 33 bit hex constant
14122         * support/regression/tests/simplefloat.c: fix division for host
14123
14124 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
14125
14126         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
14127         that tame's the PIC's over-aggressive optimizer.
14128
14129 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14130
14131          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
14132          support for MSVC.
14133
14134 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
14135
14136         Initial support for DS80C400. "Hello world" runs on TINIm400
14137         (with polled I/O).
14138
14139 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
14140
14141          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
14142          * Some notes on ddd usage added in debugger/README
14143          Martin Helmling adding more features and fixes for ddd GUI debugger.
14144          Code added for nexti, stepi, up, down, and other adjustments.
14145
14146 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
14147
14148         * src/pic/pCodepeep.c non-wildcard asmops are now handled
14149         * src/pic/peeph.def Added two rules to optimize carry manipulation
14150         * src/pic/* removed debug printfs
14151
14152 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
14153
14154         * debugger/mcs51/cmd.c: added header newalloc.h
14155
14156 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
14157
14158         * as/Makefile: new EXEEXT
14159         * as/z80/Makefile: remove trailing slash of BUILDIR
14160         * as/z80/clean.mk: new EXEEXT
14161         * Makefile.common.in: add to CFLAGS (and others), don't replace it
14162         * support/cpp2/Makefile.in: new EXEEXT
14163         * src/pic/glue.c (pic14emitRegularMap): fixed warning
14164
14165 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
14166
14167         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
14168         EXEEXT was introduced to fix all related problems with targets
14169         "clean", "install" and "uninstall"; a couple of further flaws
14170         especially with "clean" have been fixed too
14171         * as/mcs51/Makefile.in
14172         * as/mcs51/clean.mk
14173         * as/z80/Makefile
14174         * Makefile
14175         * clean.mk
14176         * debugger/mcs51/Makefile.in
14177         * debugger/mcs51/clean.mk
14178         * link/z80/Makefile
14179         * link/z80/Makefile.in
14180         * link/z80/clean.mk
14181         * link/Makefile
14182         * packihx/Makefile.in
14183         * packihx/clean.mk
14184         * sim/ucsim/Makefile
14185         * sim/ucsim/clean.mk
14186         * sim/ucsim/avr.src/Makefile.in
14187         * sim/ucsim/avr.src/clean.mk
14188         * sim/ucsim/s51.src/Makefile.in
14189         * sim/ucsim/s51.src/clean.mk
14190         * sim/ucsim/xa.src/Makefile.in
14191         * sim/ucsim/xa.src/clean.mk
14192         * sim/ucsim/z80.src/Makefile.in
14193         * sim/ucsim/z80.src/clean.mk
14194         * sim/ucsim/main_in.mk
14195         * sim/ucsim/packages_in.mk
14196         * sim/ucsim/gui.src/Makefile.in
14197         * sim/ucsim/gui.src/serio.src/Makefile.in
14198         * sim/ucsim/gui.src/serio.src/clean.mk
14199         * src/Makefile.in
14200         * src/clean.mk
14201         * support/cpp2/Makefile.in
14202         * support/cpp2/clean.mk
14203         * support/makebin/Makefile
14204         * support/makebin/clean.mk
14205         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
14206         * doc/sdccman.lyx: --program-suffix no longer needed
14207
14208 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
14209
14210          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
14211          Martin Helmling added support for ddd GUI debugger.
14212          Code added to display assembly, set variables, and other commands
14213          to interface to ddd.
14214
14215 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
14216
14217         * as/Makefile: fix target clean
14218         * as/clean.mk: fix target clean
14219         * as/z80/clean.mk: fix target clean
14220
14221 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
14222
14223         * Makefile.common.in: added  AT EXEEXT AT
14224         * configure.in: removed all mingw32 stuff
14225         * configure: rebuilt from configure.in
14226         * doc/sdccman.lyx: updated section "installation"
14227         * support/scripts/sdcc_mingw32: adapted to configure
14228         * support/scripts/sdcc_cygwin_mingw32: added
14229
14230 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
14231
14232         * src/pic Added object file support for the PIC port
14233         * src/pic Applied patch from Craig Franklin (this started the object file support)
14234         * src/regression Updated the PIC regression tests for object files
14235
14236 2003-04-20  Borut Razem <borut.razem AT siol.net>
14237
14238         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
14239           lklex.c: In function `getfid':
14240           lklex.c:203: warning: array subscript has type `char'
14241         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
14242           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
14243         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
14244           stack handling macros
14245
14246 2003-04-19  Borut Razem <borut.razem AT siol.net>
14247
14248         * "handling space characters in file path" task:
14249         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
14250         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
14251         * support/Util/MySystem.h: make it self-sufficient
14252         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
14253           src/z80/main.c, sdcc/as/mcs51/lklex.c:
14254           handling space characters in file path
14255         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
14256           (it will be used by assemblers, which have their own includes, e.g. gpasm)
14257         * support/Util/MySystem.c: handling space characters in executable's path
14258
14259 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
14260
14261         * as/z80/Makefile: fix permanent rebuild of z80
14262         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
14263         * support/regression/tests/bitfields.c: added Johan's bitfields.c
14264
14265 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
14266
14267         * src/SDCCopt.c: add special case optimization to replace modulo by
14268           a power of two with a bitwise AND.
14269
14270 2003-04-18    <johan AT balder>
14271
14272         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
14273
14274 2003-04-17    <johan AT balder>
14275
14276         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
14277         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
14278
14279 2003-04-13  Borut Razem <borut.razem AT siol.net>
14280
14281         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
14282         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
14283           fixed mingw problem in adl_NORMALIZE_PATH
14284
14285 2003-04-12  Borut Razem <borut.razem AT siol.net>
14286
14287         * fixed "#pragma SAVE/RESTORE can not be nested":
14288         * src/SDCC.lex: reworked pragma handling functions
14289         * sdcc/src/SDCCglobl.h: reworked stack handling macros
14290         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
14291
14292 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
14293
14294         * src/SDCCutil.c (pathEquivalent): defined but not used
14295         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
14296         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
14297         * configure: rebuilt from configure.in
14298         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
14299         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
14300         * device/include/Makefile.in: replace sdcc_datadir
14301         * device/lib/Makefile.in: replace sdcc_datadir
14302         * Makefile.common.in: add LDFLAGS from configure
14303         * packihx/Makefile.in: use LDFLAGS
14304         * src/Makefile.in: use LDFLAGS
14305         * support/cpp2/Makefile.in: add LDFLAGS from configure
14306         * support/makebin/Makefile: use LDFLAGS
14307         * .version: bumped version number to 2.3.5
14308
14309 2003-04-12  Borut Razem <borut.razem AT siol.net>
14310
14311         * completed "different paths" task:
14312         * src/SDCCmacro.c: fixed bug in handling quotes
14313         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
14314         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
14315
14316 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
14317
14318         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
14319
14320 2003-04-11 kevin Vigor <kevin AT vigor.nu>
14321
14322         * ds390/gen.c ds390/peeph.def: fix bug 706781
14323
14324 2003-04-11  Borut Razem <borut.razem AT siol.net>
14325
14326         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
14327
14328 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
14329
14330         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
14331         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
14332          set - this bit used to not be set...).
14333         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
14334           bad code in PIC Port
14335         * src/regression/and2.c added to test bug 609268
14336         * src/regression/Makefile added and2.c to regression test
14337
14338
14339 2003-04-08    <johan AT CP255758-A>
14340
14341         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
14342         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
14343         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
14344
14345 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
14346
14347         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
14348         fix bug #487815
14349         * support/cpp2/Makefile.in: fix bug #487815
14350         * configure: rebuilt from configure.in
14351         * Makefile.common.in: docdir changed, new path suffixes
14352         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
14353         * sdcc_vc_in.h: reflect changes from sdccconf.h
14354         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
14355         * src/SDCCutil.h: remove BINDIR hack
14356         * doc/sdccman.lyx: update new path hierarchy
14357
14358 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
14359
14360         * src/SDCCpeeph.c: added okToRemoveSLOC test
14361
14362 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
14363
14364         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
14365
14366 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
14367
14368         * src/SDCCpeeph.c: added labelIsReturnOnly test
14369         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
14370
14371 2003-04-05    <johan AT balder>
14372
14373         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
14374         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
14375         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
14376         * src/SDCCast.c: fixed a warning
14377         * src/SDCCast.h: fixed a warning
14378         * src/SDCCicode.c (operandFromAst): fixed a warning
14379
14380 2003-04-04    <johan AT balder>
14381
14382         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
14383         * src/SDCCast.c (decorateType): fixed bug #715076
14384         * src/SDCC.y: fixed bug #702907
14385
14386 2003-04-03    <johan AT balder>
14387
14388         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
14389         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
14390         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
14391         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
14392         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
14393
14394 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
14395
14396         * _decdptr.c: fix return values
14397         * _gptrget.c: fix return values
14398         * _gptrgetc.c: fix return values
14399         * _gptrput.c: fix return values
14400         * _mulint.c: fix return values
14401         * as/z80/Makefile: fix 'make -j' problem
14402
14403 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
14404
14405         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
14406         * configure.in: big cleanup, updated to autoconf 2.5x
14407         * configure: rebuilt from configure.in
14408         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
14409         * sdcc_vc_in.h: reflect changes from sdccconf.h
14410         * doc/Makefile: fixed a flaw in "make install"
14411
14412 2003-04-02    <johan AT balder>
14413
14414         * src/ds390/gen.c (genCmp): no comments
14415         * src/mcs51/gen.c (genCmp): no comments
14416         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
14417         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
14418
14419 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
14420
14421         * support/regression/generate-cases.py: place generated file in given sub directory
14422         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
14423         * support/regression/Makefile: improvements for 'make -j';
14424         side effect: it's simpler and faster now
14425
14426 2003-03-31  Borut Razem <borut.razem AT siol.net>
14427
14428         * src/z80/main.c: link-{port} and as-{port} defined without path
14429         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
14430
14431 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
14432
14433         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
14434
14435 2003-03-30  Borut Razem <borut.razem AT siol.net>
14436
14437         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
14438           changed type of list parameter to set
14439         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
14440         * src/port.h: changed type of do_assemble() parameter to set
14441         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
14442           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
14443           definition of "cppoutfilename" macro with NULL value in preProcess()
14444         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
14445         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
14446         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
14447           replaced with set *binPathSet
14448         * shash_add() deallocates the item, if allready exsists, before adding the new one
14449         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
14450
14451 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
14452
14453         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
14454           a nested for loop bug in the PIC port
14455         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
14456           for loops
14457
14458 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
14459
14460         * support/Util/dbuf.h: remove C++ stuff to make it portable
14461
14462 2003-03-28  Borut Razem <borut.razem AT siol.net>
14463
14464         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
14465           literal strings in stringLiteral()
14466         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
14467         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
14468           to the project
14469
14470 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
14471
14472         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
14473
14474 2003-03-26    <johan AT balder>
14475
14476         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
14477         * src/ds390/gen.c (saveRegisters): catched symbol abuse
14478         * src/SDCCast.c (decorateType): fixed " -v < 3"
14479
14480 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
14481
14482         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
14483         Added Lenny Story's debug infrastructure changes:
14484         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
14485         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
14486         * src/cdbFile.c: added
14487         * src/SDCCdebug.c: added
14488         * src/SDCCdebug.h: added
14489         * src/SDCCast.c (createFunction)
14490         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
14491         * src/SDCCmain.c (parseCmdLine, main)
14492         * src/SDCCmem.c (redoStackOffsets)
14493         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
14494         * src/SDCCsymt.h
14495         * src/common.h
14496         * src/avr/gen.c (genAVRCode)
14497         * src/ds390/gen.c (gen390Code)
14498         * src/mcs51/gen.c (gen51Code)
14499         * src/pic/gen.c (genpic14Code)
14500         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
14501         * src/xa51/gen.c (genXA51Code)
14502         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
14503
14504 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14505
14506         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
14507         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
14508
14509 2003-03-22    <johan AT balder>
14510
14511         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
14512
14513 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
14514
14515         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
14516         * doc/cdbfileformat.lyx: added, written by Lenny Story
14517         * doc/Makefile: added cdbfileformat.lyx
14518         * doc/clean.mk: added cdbfileformat.lyx
14519
14520 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
14521
14522         * src/mcs51/peeph.def: fix bug #705773
14523
14524 2003-03-20    <johan AT balder>
14525
14526         An sfr/sbit can have an "at #" AND an initializer
14527         * src/SDCCsymt.c (checkSClass):
14528         * src/SDCCmem.c (allocGlobal):
14529         * src/SDCCmem.c (allocLocal):
14530         * src/SDCCast.c (createBlock):
14531
14532 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
14533
14534         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
14535
14536 2003-03-16    <johan AT balder>
14537
14538         Undid the hackup of const and volatile, the problem is much bigger
14539         * src/SDCC.y:1.65
14540         * src/SDCCast.c:1.171
14541         * src/SDCCglue.c:1.138
14542         * src/SDCCicode.c:1.146
14543         * src/SDCCsymt.c:1.150
14544         * src/SDCCval.c:1.65
14545
14546 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
14547
14548         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
14549         * src/ds390/gen.c (genAddrOf): fixed bug #704087
14550
14551 2003-03-13    <johan AT balder>
14552
14553         Hackup const and volatile modifiers in type chains a bit:
14554         * src/SDCC.y:1.63
14555         * src/SDCCast.c:1.169
14556         * src/SDCCglue.c:1.136
14557         * src/SDCCicode.c:1.143
14558         * src/SDCCsymt.c1.146
14559         * src/SDCCsymt.h1.59
14560         * src/SDCCval.c:1.63
14561
14562 2003-03-12    <johan AT balder>
14563
14564         * src/SDCCBBlock.h: more LRH debugging junk
14565         * src/SDCCcflow.h: more LRH debugging junk
14566         * src/SDCCloop.c: more LRH debugging junk
14567         * src/SDCC.y (struct_declaration): fixed bug #697590
14568         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
14569         * src/ds390/gen.c (aopForRemat): fixed bug #700031
14570         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
14571
14572 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14573         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
14574         test function names must now match exactly).
14575         * src/SDCCcse.c: added special case in findCheaperOp to allow
14576         extending a short integer. Makes less awful code for bug 700121 test case.
14577
14578 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14579
14580         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
14581         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
14582
14583 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14584
14585         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
14586         actually called (operandsNotEqual() was called for all
14587         operandsNotEqualX tests).
14588
14589 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14590
14591         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
14592         with shorter literals. Fixes bug 700121.
14593
14594 2003-03-11    <johan AT balder>
14595
14596         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
14597
14598 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
14599
14600         * src/SDCCloop.c (mergeRegions): an evil beast is dead
14601         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
14602
14603 2003-03-10  Borut Razem <borut.razem AT siol.net>
14604
14605         * src/SDCCmain.c: pipe preprocessor's output
14606         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
14607         * sdcc_vc_in.h: define pclose as _pclose for WIN32
14608         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
14609         which closes all pipes in pipeSet set
14610         * src/SDCCset.c: free deleted item in function deleteSetItem()
14611         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
14612         moved from z80 to src subproject
14613         * .version: increased version number to 2.3.4
14614
14615 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
14616
14617         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
14618         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
14619         * support/regression/ports/xa51/spec.mk: fix typo
14620
14621 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
14622
14623         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
14624
14625 2003-03-09  Borut Razem <borut.razem AT siol.net>
14626
14627         * src/SDCCmain.c: pipe preprocessor's output
14628         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
14629         * sdcc_vc_in.h: define pclose as _pclose for WIN32
14630         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
14631         which closes all pipes in pipeSet set
14632         * src/SDCCset.c: free deleted item in function deleteSetItem()
14633         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
14634         moved from z80 to src subproject
14635
14636 2003-03-09  Borut Razem <borut.razem AT siol.net>
14637
14638         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
14639         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
14640         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
14641         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
14642         * src/SDCCglobl.h: unification of WIN32 native definitions
14643
14644 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14645
14646         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
14647
14648 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
14649
14650         * src/configure.in:   check for endianess (even while cross-compiling)
14651         * src/configure:      check for endianess (even while cross-compiling)
14652         * src/configure_in.h: check for endianess (even while cross-compiling)
14653         * src/avr/gen.c:        remove old endianess stuff
14654         * src/mcs51/gen.c:      remove old endianess stuff
14655         * src/ds390/gen.c:      remove old endianess stuff
14656         * src/pic/gen.c:        remove old endianess stuff
14657         * src/pic/genarith.c:   remove old endianess stuff
14658         * src/pic/glue.c:       fix endianess check
14659         * src/pic16/gen.c:      remove old endianess stuff
14660         * src/pic16/genarith.c: remove old endianess stuff
14661         * src/pic16/glue.c:     fix endianess check
14662         * src/xa51/gen.c:       remove old endianess stuff
14663         * src/z80/gen.c:        fix endianess check
14664         * src/SDCCglue.c:       fix endianess check
14665         * src/ds390/peeph.def: fix bug 700036
14666
14667 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
14668
14669         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
14670         * src/configure: find appropriate data-types on host for SDCC's int and long
14671         * src/configure.in: find appropriate data-types on host for SDCC's int and long
14672         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
14673         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
14674
14675 2003-03-07    <johan AT balder>
14676
14677         Just a big NOOP:
14678                 some minor cleanups before the big shot
14679                 OP_DEFS and OP_USES now use Kevin's protection
14680                 new option --nolabelopt
14681
14682         * src/SDCCBBlock.c:
14683         * src/SDCCast.c,:
14684         * src/SDCCcflow.c:
14685         * src/SDCCcse.c:
14686         * src/SDCCicode.c:
14687         * src/SDCCicode.h:
14688         * src/SDCClabel.c:
14689         * src/SDCCloop.c:
14690         * src/SDCCmain.c:
14691         * src/ds390/ralloc.c:
14692         * src/mcs51/ralloc.c:
14693         * src/pic/ralloc.c:
14694         * src/xa51/ralloc.c:
14695         * src/z80/ralloc.c:
14696
14697 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
14698
14699         * src/pic/pcode.c (get_op): fix 64 bit warnings
14700         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
14701         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
14702         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
14703         * support/regression/tests/malloc.c: fix 64 bit warnings
14704
14705 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
14706
14707         * src/mcs51/gen.c (genMinus): fixed bug 696436
14708
14709 2003-03-02  Borut Razem <borut.razem AT siol.net>
14710
14711         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
14712
14713 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
14714
14715         * configure.in: test for mkstemp
14716         * sdccconf_in.h: add HAVE_MKSTEMP
14717
14718 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
14719
14720         * device/include/ctype.h: removed warning while using --stack-auto
14721         * device/include/malloc.h: removed warning while using --stack-auto
14722         * device/include/string.h: removed warning while using --stack-auto
14723
14724 2003-02-23  Borut Razem <borut.razem AT siol.net>
14725
14726         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
14727         because NDEBUG is defined (see man assert)
14728         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
14729
14730 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14731
14732         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
14733         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
14734
14735 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14736
14737         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
14738         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
14739
14740 2003-02-18    <johan AT balder>
14741
14742         * as/mcs51/asmain.c (asmbl): module can start with a digit
14743         * as/z80/asmain.c (asmbl): module can start with a digit
14744
14745 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
14746
14747         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
14748         * src/asm.c: fix pipe() for Mingw32
14749
14750 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
14751
14752         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
14753         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
14754         make -V work again; --c1mode reads now from stdin
14755         * doc/sdccman.lyx: added --c1mode
14756         * support/Util/SDCCerr.c: new messages for c1 mode
14757         * support/Util/SDCCerr.h: new messages for c1 mode
14758         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
14759
14760 2003-02-15    <johan AT balder>
14761
14762         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
14763
14764 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
14765
14766         * doc/sdccman.lyx: Environment variables, -o and other minor things
14767
14768 2003-02-14    <johan AT balder>
14769
14770         * src/xa51/main.c: before anyone really tries to use it :)
14771
14772         * Install doc's in share/sdcc/doc
14773         * removed some obsolete files
14774         * Do a proper make distclean and uninstall
14775         M Makefile.common.in
14776         R sdccbuild.sh
14777         M as/Makefile
14778         M device/include/Makefile.in
14779         M device/lib/Makefile.in
14780         M doc/sdccman.lyx
14781         M link/Makefile
14782         M sim/ucsim/doc/Makefile.in
14783         M src/clean.mk
14784         R src/avr/peeph.rul
14785         R src/xa51/peeph.rul
14786         M support/cpp2/Makefile.in
14787         M support/makebin/Makefile
14788
14789
14790 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
14791
14792         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
14793
14794 2003-02-10  Borut Razem <borut.razem AT siol.net>
14795
14796         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
14797         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
14798         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
14799         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
14800         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
14801         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
14802         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
14803         src/z80/Makefile.bcc: Borland Makefile cleanup
14804         * as/z80/Makefile.bcc: Added Borland Makefile
14805         * support/cpp2/borland.h: Removed
14806
14807 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
14808
14809         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
14810         * src/SDCC.lex: new pragma NOIV
14811         * src/SDCCglobl.h: new pragma NOIV
14812         * src/SDCCmem.c: new pragma NOIV
14813
14814 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
14815
14816         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
14817
14818 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
14819
14820         * src/SDCCmain.c: signal handling is switched off by --debug
14821         * doc/Makefile: small fix for install; use clean.mk again
14822         * doc/clean.mk: clean *.pdf and *.html too
14823
14824 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
14825
14826         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
14827         * device/lib/printfl.c: fix a ds390 bug by making it portable
14828         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
14829         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
14830         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
14831         * debugger/mcs51/cmd.c: converted multi-line string literals
14832         * sim/ucsim/globals.cc: converted multi-line string literals
14833         * src/SDCCmain.c: introduced signal handler to remove temp files
14834         * doc/Makefile: small tweaks, implement clean
14835         * doc: removed generated files
14836
14837 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14838
14839         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
14840         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
14841         Address Record is not correctly generated for DS390."
14842
14843 2003-02-02  Borut Razem <borut.razem AT siol.net>
14844
14845         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
14846         * as/mcs51/asm.h: fixed compilation with Borland C
14847         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
14848         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
14849         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
14850         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
14851         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
14852         src/z80/Makefile.bcc: delete $(LIB) only if exist
14853         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
14854
14855 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
14856
14857         * device/include/malloc.h: introduced NULL
14858         * device/include/string.h: introduced NULL
14859         * device/include/stdlib.h: introduced NULL
14860         * device/lib/_memcpy.c: removed NULL
14861         * device/lib/_strcat.c: removed NULL
14862         * device/lib/_strchr.c: removed NULL
14863         * device/lib/_strcmp.c: removed NULL
14864         * device/lib/_strcpy.c: removed NULL
14865         * device/lib/_strcspn.c: removed NULL
14866         * device/lib/_strlen.c: removed NULL
14867         * device/lib/_strncat.c: removed NULL
14868         * device/lib/_strncmp.c: removed NULL
14869         * device/lib/_strncpy.c: removed NULL
14870         * device/lib/_strpbrk.c: removed NULL
14871         * device/lib/_strrchr.c: removed NULL
14872         * device/lib/_strspn.c: removed NULL
14873         * device/lib/_strstr.c: removed NULL
14874         * device/lib/_strtok.c: removed NULL
14875         * device/lib/malloc.c: removed NULL, include own header
14876
14877 2003-02-02    <johan AT balder>
14878
14879         * 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
14880         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
14881         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
14882         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
14883         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
14884         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
14885
14886 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14887
14888         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
14889         area 'DATA'"
14890
14891 2003-02-01    <johan AT balder>
14892
14893         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
14894
14895 2003-01-31    <johan AT CP255758-A>
14896
14897         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
14898
14899 2003-01-30    <johan AT balder>
14900
14901         * src/SDCCBBlock.c: automatic bug detection
14902         * src/SDCCicode.c: automatic bug detection
14903
14904 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14905
14906         * src/SDCCglobl.h:   now --xram-size 0 works
14907         * src/SDCCmain.c:    now --xram-size 0 works
14908
14909 2003-01-29    <johan AT balder>
14910
14911         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
14912
14913 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14914
14915         * as/mcs51/aslink.h: Added options --xram-size and --code-size
14916         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
14917         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
14918         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
14919         * src/SDCCglobl.h:   Added options --xram-size and --code-size
14920         * src/SDCCmain.c:    Added options --xram-size and --code-size
14921
14922 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
14923
14924         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
14925         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
14926
14927 2003-01-27    <johan AT balder>
14928
14929         * src/SDCC.y: fixed bug #613764
14930
14931 2003-01-26    <johan AT balder>
14932
14933         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
14934         * src/SDCCsymt.h: fixed bug #673374
14935         * src/SDCCglue.c: fixed bug #661910
14936         * src/SDCCast.c: fixed bug #458099 and 673374
14937
14938 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
14939
14940         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
14941         * as/mcs51/strcmpi.h: added
14942         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
14943         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
14944         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
14945         * as/mcs51/assym.c: strcmpi -> as_strcmpi
14946         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
14947         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
14948         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
14949         * as/mcs51/Makefile.aslink: new module strcmpi
14950         * as/mcs51/Makefile.asx8051: new module strcmpi
14951         * as/mcs51/Makefil.bcc: new module strcmpi
14952         * as/mcs51/Makefile.in: new module strcmpi
14953         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
14954
14955 2003-01-26    <johan AT balder>
14956
14957         * src/SDCCglue.c: reverted back to 1.124
14958         * src/SDCCast.c: reverted back to 1.156
14959         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
14960
14961 2003-01-25    <johan AT balder>
14962
14963         * src/SDCCglue.c: A better fix for bug #661910
14964         * src/SDCCast.c: A better fix for bug #661910
14965         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
14966
14967 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
14968
14969         * src/Makefile.in: remove spawn.o
14970         * src/SDCCmain.c: remove spawn.h
14971         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
14972         * src/spawn.c: removed
14973         * src/spawn.h: removed
14974         * support/regression/ports/ds390/spec.mk: link with -r
14975
14976 2003-01-24    <johan AT CP255758-A>
14977
14978         * src/ds390/gen.c (aopOp): fixed bug #667458
14979         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
14980         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
14981         (createIvalCharPtr): an ival doesn't always have a storage class anymore
14982
14983 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
14984
14985         * src/mcs51/peeph.def: better assembler identation by Frieder
14986         * src/mcs51/gen.c: better assembler identation by Frieder
14987
14988 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
14989
14990         * as/z80/string.h: removed for gcc 3.2
14991         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
14992         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
14993
14994 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
14995
14996         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
14997         * src/SDCCpeeph.c (replaceRule): fix bug #663503
14998         * support/regression/Makefile: separate temp files for ports
14999         * support/regression/generate-cases.py: separate temp files for ports
15000         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
15001         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
15002
15003 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
15004
15005         * moved tinitalk to device/examples/ds390
15006
15007 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
15008
15009         * as/mcs51/lkmem.c: rflag is for DS390
15010         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
15011         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
15012                          (linkEdit): move mem- and map-files the same way as ihx-files
15013         * src/z80/main.c (_setDefaultOptions): removed --generic
15014         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
15015         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
15016         * src/pic/glue.c (picglue): --c1mode works again
15017         * src/pic16/glue.c (pic16glue): --c1mode works again
15018         * src/asm.c (printCLine): fix #660034
15019
15020 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
15021
15022         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
15023         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
15024         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
15025         * as/mcs51/lkmem (summary): better fix for sp problem
15026         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
15027         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
15028         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
15029                                               remove --stack-after-data
15030
15031 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
15032
15033         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
15034         * src/SDCCutil.c (join): ugly bug: missing '\0'
15035         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
15036
15037 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
15038
15039         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
15040         * src/port.h: typo
15041         * src/pic/main.c (_asmCmd): gpasm supports -o
15042         * src/z80/main.c: more general macros
15043         * device/lib/Makefile.in: remove intermediate files
15044
15045 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
15046
15047         * .version: Bumped version number to 2.3.3
15048         * src/SDCCBBlock.c: new option -o
15049         * src/SDCCglobl.h: new option -o
15050         * src/SDCCglue.c: new option -o
15051         * src/SDCCmain.c: new option -o
15052         * src/asm.c: new option -o
15053         * src/ds390/main.c: new option -o
15054         * src/pic/glue.c: new option -o
15055         * src/pic/pcode.c: new option -o
15056         * src/pic/ralloc.c: new option -o
15057         * src/pic16/glue.c: new option -o
15058         * src/pic16/pcode.c: new option -o
15059         * src/pic16/ralloc.c: new option -o
15060         * src/z80/main.c: new option -o
15061         * device/lib/Makefile.in: use -o
15062         * support/regression/ports/ds390/spec.mk: use -o
15063         * support/regression/ports/gbz80/spec.mk: use -o
15064         * support/regression/ports/mcs51/spec.mk: use -o
15065         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
15066         * support/regression/ports/z80/spec.mk: use -o
15067         * support/regression/ports/ucz80/spec.mk: use -o
15068         * support/regression/ports/xa51/spec.mk: use -o
15069         * support/regression/fwk/lib/timeout.c: fix usage string
15070
15071 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
15072         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
15073
15074 2003-01-07    <johan AT balder>
15075
15076         * src/SDCCast.c (decorateType): fixed bug #600035
15077
15078 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
15079         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
15080         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
15081         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
15082         * src/pic/pcode.c: outcommented unused variable to remove warnings
15083         * src/pic/ralloc.c: outcommented unused variable to remove warnings
15084
15085 2003-01-06    <karl AT turbobit.com>
15086         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
15087    regression tests.
15088
15089 2003-01-06    <johan AT balder>
15090
15091         * src/SDCCicode.c: fixed array add
15092
15093 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
15094         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
15095         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
15096
15097 2003-01-04    <johan AT balder>
15098
15099         * src/SDCCval.c (getNelements): fixed the initialized array of structures
15100
15101 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15102         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
15103
15104 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
15105         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
15106         * support/regression/tests/bug-524697.c: fit mem usage into 8032
15107
15108 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
15109         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
15110
15111 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
15112         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
15113
15114 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
15115         * src/mcs51/main.c: removed {bindir}{sep} from aslink
15116
15117 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15118
15119     * in /sdcc/as/mcs51/ changed these files in order to create an
15120     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
15121     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
15122     following files to include the previous two files: aslink.dsp,
15123     Makefile.aslink, Makefile.bcc, and Makefile.in.
15124
15125     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
15126     .adb instead of .cdb
15127
15128 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15129
15130         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
15131         value from option --iram-size.
15132
15133 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15134
15135         * /sdcc/as/mcs51/lklist.c: added boundary check before using
15136         dram[] array.
15137
15138 2002-09-18    <wiml AT hhhh.org>
15139
15140         * SDCClrange.h: exposed setFromRange() and setToRange()
15141         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
15142           packRegsForAccUse() (bug 542397)
15143         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
15144           multiple times and emitting the fetch operations more than once
15145           added aopGetUsesAcc() function to allow binary operators to
15146           fetch their operands in the correct order; made genMinus() emit
15147           compact code for X = LITERAL - Y
15148
15149 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15150         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
15151         sprintf() in line 1267.
15152
15153 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15154         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
15155         like ports.
15156
15157 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15158         Changes to aslink (All the changes are marked with 'JCF'):
15159
15160         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
15161         summary().
15162
15163         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
15164         area BSEG.  Also moves, if possible, the DATA area down into the internal
15165         ram so more space is available.
15166
15167         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
15168         sflag.
15169
15170         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
15171         not bytes.  Function summary() which creates a memory usage summary
15172         file with extension .mem.  Reports of overlaping stack and small stack
15173         size.  If the space for the stack is less than 16 bytes aslink trows a
15174         warning.
15175
15176         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
15177         the 8051.  Option 'y' for memory summary output file.
15178
15179         Changes to sdcc (All the changes are marked with 'JCF'):
15180
15181         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
15182
15183         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
15184         overlaying area for it (uses RegBankUsed[4]).
15185
15186         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
15187         bank zero as used by default.  By default aslink locates the stack
15188         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
15189         the creation of the .mem file.  Delegates the allocation of data area
15190         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
15191         the begining of the stack area to aslink.
15192
15193         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
15194         glue() in SDCCglue.c creates an area for it.
15195
15196 2002-09-03  Borut Razem <borut.razem AT siol.net>
15197         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
15198         sdcc/src/pic/glue.c:
15199         introduced atexit() handler for teporay files removal in case of
15200         errors, assertions, ...
15201
15202 2002-08-29  Borut Razem <borut.razem AT siol.net>
15203         * sdcc/support/cpp2/auto-host_vc_in.h:
15204         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
15205         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
15206         Maybe there is a similar problem with BORLANDC? It should be checked!
15207
15208         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
15209         corrected improper use of assert: the assignment to clr variable was done inside the assert.
15210         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
15211         was not executed, and the compiler (cl) launched a warning:
15212         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
15213
15214 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
15215         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
15216
15217 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
15218         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
15219
15220         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
15221           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
15222           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
15223           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
15224           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
15225           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
15226           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
15227         - added Release configuration in VS projects
15228         - review of compiler an linker options
15229         - VC .exe files are generated in bin_vc directory, not to interfere
15230           with binaries generated from other projects (cygwin, mingw, bcc ...)
15231
15232         * sdcc/src/yacc.dsp: added
15233
15234         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
15235         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
15236         and insert the version number definitions from .version
15237
15238         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
15239
15240         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
15241         added - genarate auto-host.h using auto-host_vc_in.h as template
15242
15243         * sdcc/sdcc_vc.h,
15244         removed from CVS, generated automatically
15245
15246 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
15247         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
15248
15249 2002-08-11  Borut Razem <borut.razem AT siol.net>
15250         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
15251
15252 2002-08-10  Borut Razem <borut.razem AT siol.net>
15253         * src/SDCCmain.c (main):
15254         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
15255         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
15256         The consequence was that some temporary files were not removed.
15257
15258         * src/SDCCglue.c:
15259         unification of code in functions tempfilename() and tempfile():
15260         function tempnam() is defined in Visual Studio 6.0 and .NET
15261
15262         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
15263
15264         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
15265           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
15266         - removed compiler command line option /WX: Treats all warnings as errors
15267         - update a list of source files, included into the project
15268
15269         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
15270           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
15271         changed project type to Generic Project so that can be correcly converted to VS.NET project
15272
15273         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
15274
15275         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
15276
15277         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
15278
15279         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
15280         added return 0 statements after assert() to make compiler happy
15281
15282         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
15283         added newline in the def file to keep MSC compiler satisfied
15284
15285         * sdcc/src/z80/gen.c:
15286         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
15287           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
15288         - solved MSC error in function aopDump()
15289
15290         * sdcc_vc.h: define PREFIX as "\\sdcc"
15291
15292 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
15293         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
15294
15295 2002-06-22  Scott Dattalo <scott AT dattalo.com>
15296         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
15297         - Rewrote the register banking algorithm.
15298         - Added pCode live-range analysis to registers (for now, only non-used and
15299         singly-used registers optimized away)
15300
15301         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
15302
15303         * 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.
15304
15305 2002-05-10  Scott Dattalo <scott AT dattalo.com>
15306         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
15307
15308 2002-04-22  Michael Hope  <michaelh AT vroom>
15309
15310         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
15311
15312         * configure.in (DD_COPT): Added include support required for gbdk.
15313
15314         * .version: Bumped version number just to increase it.
15315
15316         * src/SDCCmain.c: Added -nostdinc to the default options.
15317
15318 2002-04-15  Michael Hope  <michaelh AT vroom>
15319
15320         * device/lib/z80/printf.c (sprintf): Added.
15321
15322         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
15323
15324         * src/z80/peeph.def: Added transpose redundent load rule.
15325
15326         * src/z80/main.c: Added force callee saves for jaune.
15327
15328         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
15329
15330         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
15331
15332 2002-03-28  Johan Knol  <johan AT balder>
15333
15334         * src/SDCCval.c: fixed bug #532436
15335
15336 2002-03-14  Scott Dattalo <scott AT dattalo.com>
15337         * /src/port.h:
15338         Added "char *Processor" field to the port structure.
15339
15340         * /src/SDCCmain.c:
15341         Added -p option. Allows port dependent processor to be specified.
15342
15343         * all ports:
15344         Initialized the new field char *Processor field to NULL in all ports
15345
15346         * /src/pic/*:
15347         Compiler generated registers for interrupt context saving
15348         were not getting allocated.
15349
15350 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
15351
15352         * /src/SDCCast.c:
15353         Fixed left shift. Will promote the left side of a left shift
15354         if a) left shifting more than size of operand or b) when assigned
15355         to something size > size of left side
15356
15357 2002-03-14  Scott Dattalo <scott AT dattalo.com>
15358         * src/pic/*
15359         tons of changes. Register allocation has been
15360         rewritten. Added customization for the various PICs. Flow
15361         analysis is restructured. ...
15362
15363         * src/pic/device.h:
15364         Added
15365
15366         * src/pic/device.c:
15367         Added. device.c is a PIC port hack to accomodate variations
15368         in PIC devices.
15369
15370 2002-03-13  Michael Hope  <michaelh AT vroom>
15371
15372         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
15373
15374 2002-03-04  johanknol  <johanknol AT manik>
15375
15376         * /src/SDCCval.c: fixed
15377
15378         const unsigned char arr[][2] = { { 0, 1 } };
15379         t18.c:1: error: Initializer element is not constant
15380
15381 2002-03-04  bela  <bela AT manik>
15382
15383         * /device/include/mcs51reg.h:
15384         ds89c420 register definition update
15385
15386 2002-03-03    <johan AT FRIJA>
15387
15388         * support/Util/SDCCerr.c: did something, but don't no why anymore
15389
15390         * support/regression/tests/bug-524691.c: made it a little less shy
15391
15392         * src/SDCCast.c (decorateType): fixed bug #524697
15393
15394         * src/SDCCast.c: made some lineno improvements
15395
15396         * src/SDCCval.c (getNelements): changed warning to error
15397
15398         * src/SDCCglue.c (printIvalArray): changed warning to error
15399
15400         * src/SDCCicode.c: fixed a warning for mingw
15401
15402         * src/SDCCast.c (decorateType): fixed the << promotion for ops
15403
15404         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
15405
15406 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
15407
15408         * src/ds390/peeph.def:
15409         Added some more peephole rules
15410
15411         * src/ds390/gen.c: Various fixes & enhancements
15412
15413         * src/SDCClrange.c, src/SDCClrange.h:
15414         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
15415
15416         * src/ds390/ralloc.c:
15417         various fixes & enhancements (ds390) specific
15418
15419         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
15420         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
15421         from rallocs.
15422
15423         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
15424
15425 2002-03-02    <johan AT FRIJA>
15426
15427         * src/SDCCast.c (decorateType): fixed bug #524708
15428
15429         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
15430
15431         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
15432
15433 2002-03-01  Michael Hope  <michaelh AT vroom>
15434
15435         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
15436
15437         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
15438
15439 2002-03-01    <johan AT FRIJA>
15440
15441         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
15442
15443         * src/SDCCast.c (decorateType): fixed bug #524209
15444
15445         * src/SDCCval.c (valNot): fixed bug #524195
15446
15447 2002-02-26    <johan AT balder>
15448
15449         * src/xa51/gen.c: fixed a warning
15450
15451         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
15452
15453         * src/SDCCast.c (decorateType): fixed bug #522534
15454
15455 2002-02-23    <johan AT balder>
15456
15457         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
15458
15459 2002-02-22    <johan AT balder>
15460
15461         * src/SDCCast.c: fixed bug #514865
15462
15463         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
15464
15465 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
15466
15467         * sdcc/src/SDCCloop.c:
15468         Previous fix was not good. basic blocks that have "break" or "return" are
15469         not really partof a loop , but live ranges used in these blocks should
15470         be live thru the entire loop, so set partOfLoop but don't add them to
15471         loop region
15472
15473 2002-02-21    <johan AT FRIJA>
15474
15475         * src/SDCCcse.c: fixed bug #514308
15476
15477 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
15478
15479         * src/SDCCloop.c:
15480         Fixed BUG #519583. If a conditional block ended in a return/break
15481         statement inside a loop, it was not being considered part of the loop.
15482
15483         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
15484
15485 2002-02-10  Karl Bongers <karl AT turbobit.com>
15486
15487         * debugger/*:
15488         Fixed up SDCDB debugger somewhat.  Updated debugger/README
15489         with lots of comments and notes.
15490
15491         * device/examples/test2.c:
15492         Fix bug, "red" variable not being initialized(compiler complained).
15493
15494         * device/examples/Makefile, examples/test3.c:
15495         Add Makefile in device/examples folder, compiles test3.c
15496         for use as a multiple module SDCDB test case.
15497
15498         * sim/ucsim/cmd.src/cmdset.cc:
15499         Took out debug printfs in ucsim "next" command.
15500
15501         * sim/ucsim/xa.src:
15502         Karl and Johan start ucsim XA support.  Most dissassembly working,
15503         about 75% emulation done(plenty of work remaining).
15504
15505         * sim/ucsim/z80.src:
15506         Add Z80 support to ucsim, add test-ucz80 regression test,
15507         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
15508         Notice z80 compiler fails on examples/test3.c/crc code.
15509
15510 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
15511
15512         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
15513         Added support for --parms-in-bank1
15514
15515         * src/ds390/peeph.def:
15516         added a few more peephole optimzations
15517
15518         * src/ds390/main.c:
15519         1) added __builtin_inp & __builtin_outp used to read in data of given length
15520            from a memory mapped port
15521         2) added __builtin_memcmp
15522         3) added __builtin_swapw swap bytes of a short
15523
15524         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
15525         1) handle multiple send & receives from register bank1
15526         2) ralloc can now allocate DPTR1 to some liveRanges
15527
15528         * src/SDCCsymt.c, src/SDCCsymt.h:
15529         changes to handle multiple sends & receives
15530
15531         * src/SDCCptropt.h:
15532         added some pointer arithmetic optimization
15533
15534         * src/SDCCptropt.c:
15535         added some pointer arithmetic optimizations but not stable yet so not
15536         called from anywhere (will get this working shortly)
15537
15538         * src/SDCCopt.c: fixed for multiple sends & receives
15539
15540         * src/SDCCmain.c:
15541         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
15542         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
15543            set preprocessor defines (depending on options)
15544
15545         * src/SDCCicode.c, src/SDCCicode.h:
15546         changes made to handle multiple sends & receives
15547
15548         * src/SDCCglobl.h:
15549         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
15550
15551         * src/SDCCcse.c, src/SDCCcse.h:
15552         added function findbackward def (to be used in upcoming optimization)
15553
15554         * src/SDCCcflow.c, src/SDCCcflow.h:
15555         added function returnAtEnd - to determine if a basic block terminates with
15556         a RETURN iCode
15557
15558         * src/SDCCast.c, src/SDCCast.h:
15559         added option parms-in-bank1
15560
15561         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
15562         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
15563         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
15564         adjusted for --parms-in-bank1 option
15565
15566         * device/include/string.h:
15567         donot redefine "reentrant" keyword
15568
15569         * device/include/ds80c390.h: Added some more SFRs
15570
15571 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
15572
15573         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
15574
15575 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
15576
15577         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
15578
15579 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
15580
15581         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
15582
15583 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
15584
15585         * Added --xram-movc option
15586
15587 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
15588
15589         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
15590
15591 2002-01-11  Johan Knol
15592
15593         * Added math lib of Jesus Calvino-Fraga
15594
15595 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
15596
15597         * src/SDCCmain.c (processFile): fix processing of ../../src.c
15598         * support/regression/Makefile: new target test-mcs51-stack-auto
15599         * support/regression/ports/mcs51-stack-auto/spec.mk: added
15600
15601 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
15602
15603         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
15604
15605 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
15606
15607         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
15608
15609 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
15610
15611         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
15612
15613         * src/SDCCglue.h: add definition for printIvalChar()
15614
15615 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
15616
15617         * src/SDCCast.c: fix #498138 by Johan
15618
15619         * src/SDCCglue.c: fix #498138 by Johan
15620
15621 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
15622
15623         * support/regression/Makefile: fix clean
15624
15625         * support/regression/ports/ds390/support.c: fix transmission of last character
15626
15627 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
15628
15629         * /sdcc/src/ds390/gen.c:
15630         a) improved computing address of stack variable
15631         b) took out some #if 0 code
15632         c) improved parmBytes adjustment
15633         d) improved genPlusIncr & genMinusIncr
15634         e) genCmp could generate bad code (when left assigned to DPTR)
15635         f) Fixed bug in hasInc
15636
15637         * /sdcc/src/ds390/ralloc.c:
15638         a) packRegsForSupport could mess up live information (Fixed)
15639         b) packRegsDPTRuse could be incorrect for left & right shift
15640
15641         * /sdcc/src/mcs51/ralloc.c:
15642         packRegsForSupport could mess up the live information (Fixed)
15643
15644         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
15645
15646         * /sdcc/src/SDCCast.c:
15647         can reverse a loop even if function call is present as long
15648         as the loop control variable is local & is not passed as parameter
15649
15650 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15651
15652         * /sdcc/ChangeLog: *** empty log message ***
15653
15654         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
15655         More builtin function additions for TININative
15656
15657         * /sdcc/src/ds390/ralloc.c:
15658         Had broken the regression testsuite
15659
15660         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
15661
15662         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
15663         Added funcattr hasStackParms will be set for reentrant functions when there
15664         are paramteres on the stack, this helps in minimizing frame pointer generation
15665         typeFromStr can handle function pointers now
15666
15667         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
15668         *** empty log message ***
15669
15670 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15671
15672         * /src/ds390/gen.c, /src/ds390/main.c:
15673         More builtin function additions for TININative
15674
15675         * /src/ds390/ralloc.c:
15676         Had broken the regression testsuite
15677
15678         * /src/SDCCast.c: Fixed a bug in dumptree
15679
15680         * /src/SDCCsymt.c, /src/SDCCsymt.h:
15681         Added funcattr hasStackParms will be set for reentrant functions when there
15682         are paramteres on the stack, this helps in minimizing frame pointer generation
15683         typeFromStr can handle function pointers now
15684
15685         * /doc/builtins.txt, /doc/TININative.txt:
15686         *** empty log message ***
15687
15688
15689 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15690
15691         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
15692         ALPHA version for -mTININative
15693
15694         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
15695         updated to reflect changes in the port structure
15696
15697         * /src/port.h:
15698         added function do_assemble (similar to do_link) if non-null this function
15699         will be called to do assembly (-mTININative) requires a multi command
15700         assembly
15701         added function genAssemblerEnd will be called to generate assembler Epilogue
15702
15703         * /src/SDCCsymt.c:
15704         added _JavaNative to debug info printing
15705
15706         * /src/SDCCmain.c: added option --tini-libid
15707         added port->do_assemble function (-mTININative) has a multi command assemble
15708
15709         * /src/SDCCglue.c: Disabled "constExpr" check
15710         added port->genAssemblerEnd function
15711
15712         * /src/SDCCglobl.h: Added option --tini-libid value
15713
15714         * /src/SDCCast.h:
15715         tookout optimizeCompare from the header (has no external references)
15716
15717         * /src/SDCCast.c: made one more function "static"
15718
15719 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
15720
15721         * src/z80/mappings.i: Added z80asm support.
15722
15723         * src/z80/main.c: Added z80asm support on --asm=z80asm
15724
15725         * src/z80/gen.c: Fixed asm portability issues.
15726
15727         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
15728
15729         * src/SDCCglue.c (printExterns): Added global/extern split.
15730
15731 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
15732
15733         * support/regression/Makefile: added test for mcs51 model large
15734
15735         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
15736
15737         * support/regression/ports/gbz80/spec.mk: added -mgbz80
15738
15739 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
15740
15741         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
15742
15743 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
15744
15745         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
15746
15747         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
15748
15749 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
15750
15751         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
15752
15753         * support/regression/tests/simplefloat.c: Port to mcs51.
15754
15755 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
15756         * support/regression/tests/bug-485362.c: Added.
15757
15758         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
15759
15760         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
15761
15762         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
15763
15764         * src/z80/gen.c (aopDump): Added a dump function.
15765
15766 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
15767         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
15768
15769         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
15770
15771         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
15772
15773         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
15774
15775         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
15776
15777         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
15778
15779         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
15780
15781         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
15782
15783         * support/regression/ports/ds390/support.c: Use tinibios.
15784
15785         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
15786
15787 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
15788
15789         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
15790         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
15791
15792         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
15793
15794         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
15795
15796 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
15797
15798         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
15799
15800         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
15801         (packRegsForIYUse): Created and optimised.
15802
15803 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
15804
15805         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
15806 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
15807
15808         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
15809
15810         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
15811
15812         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
15813
15814 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15815
15816         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
15817
15818         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
15819
15820 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15821
15822         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
15823
15824         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
15825
15826         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
15827
15828 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
15829
15830         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
15831         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
15832         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
15833
15834         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
15835
15836         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
15837         (genNotFloat): Added.
15838         (genUminusFloat): Added.
15839
15840         * device/lib/z80/Makefile: Added floating pt stubs.
15841
15842         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
15843
15844         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
15845
15846         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
15847
15848 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15849
15850         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
15851
15852         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
15853
15854         * sdcc/support/regression/Makefile: Add port ds390.
15855
15856         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
15857
15858         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
15859
15860         * sdcc/support/regression/ports/ds390/spec.mk: Added.
15861
15862         * sdcc/support/regression/ports/ds390/support.c: Added.
15863
15864         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
15865
15866         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
15867
15868         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
15869
15870 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
15871
15872         * device/include/malloc.h: Added z80 and gbz80 support.
15873
15874         * device/lib/gbz80/heap.s: Added.
15875
15876         * device/lib/z80/heap.s: Added.
15877
15878         * device/lib/malloc.c: Added z80 and gbz80 support.
15879
15880         * support/regression/tests/malloc.c (testMalloc): Added.
15881
15882         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
15883
15884         * support/regression/tests/bug-478094.c: Added.
15885
15886         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
15887
15888 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
15889
15890         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
15891
15892         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
15893
15894         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
15895
15896         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
15897
15898         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
15899
15900 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
15901
15902         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
15903
15904 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
15905
15906         * support/regression/tests/bug-477927.c: Added.
15907
15908         * src/z80/peeph.def: Added minor rules.
15909
15910         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
15911
15912         * src/z80/peeph.def: Added jump optimisation modification.
15913
15914 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
15915
15916         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
15917
15918 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
15919
15920         * support/regression/tests/funptrs.c: Added.
15921
15922 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
15923
15924         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
15925
15926 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
15927
15928         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
15929
15930         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
15931
15932         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
15933         (movLeft2ResultLong): Created.
15934
15935         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
15936         (joinPushes): Added.  Joins two char pushes into a word push.
15937
15938 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
15939
15940         * support/cpp2/Makefile.in (install): Added creation of dest dir.
15941
15942         * support/makebin/Makefile (install): Added creation of dest dir.
15943
15944 2001-10-24 Karl Bongers <karl AT turbobit.com>
15945
15946         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
15947
15948 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
15949
15950         * src/z80/ralloc.c: Turned off faulty pack for one use.
15951
15952         * src/z80/peeph-gbz80.def: Removed redundent restart options.
15953
15954         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
15955
15956 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
15957
15958         * support/regression/Makefile: Improved clean
15959
15960         * support/regression/ports/gbz80/spec.mk: Added clean
15961
15962         * support/regression/ports/host/spec.mk: Added clean
15963
15964         * support/regression/ports/z80/spec.mk: Added clean
15965
15966         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
15967
15968         * support/regression/ports/mcs51/timeout.c: little improvements
15969
15970 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
15971
15972         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
15973
15974         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
15975
15976         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
15977
15978 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
15979
15980         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
15981
15982         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
15983
15984 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
15985         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
15986
15987         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
15988
15989         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
15990
15991         * src/mcs51/main.c (_linkCmd): Added bin path to command.
15992
15993         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
15994
15995         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
15996
15997         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
15998
15999         * support/regression/tests/longor.c: Added.
16000
16001 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
16002
16003         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
16004
16005         * as/mcs51/aslink.h: define PATH_MAX
16006
16007         * as/mcs51/asm.h: define PATH_MAX
16008
16009         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
16010
16011         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
16012
16013         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
16014
16015         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
16016
16017         * src/SDCCglobl.h: define PATH_MAX
16018
16019         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
16020
16021         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
16022
16023 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
16024
16025         * src/z80/gen.c (gencjneshort): Fixed
16026
16027         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
16028
16029 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
16030
16031         * support/regression/tests/bug-469671.c: Added.
16032
16033         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
16034
16035 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
16036
16037         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
16038
16039         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
16040
16041 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
16042
16043         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
16044
16045         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
16046
16047         * src/device/lib/_mullong.c : removed hint: nooverlay bug
16048
16049         * src/device/lib/_divuint.c : removed hint: nooverlay bug
16050
16051         * src/device/lib/_divulong.c: removed hint: nooverlay bug
16052
16053         * src/device/lib/_moduint.c : removed hint: nooverlay bug
16054
16055         * src/device/lib/_modulong.c: removed hint: nooverlay bug
16056
16057 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
16058
16059         * 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.
16060
16061         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
16062
16063         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
16064
16065 2001-10-07    <johan AT FRIJA>
16066
16067         * device/lib/gets.c (gets): fixed the return value.
16068
16069 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
16070         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
16071
16072         * 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.
16073
16074         * 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.
16075
16076         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
16077
16078         * src/pic/gen.c: Removed Safe_strdup.
16079
16080         * configure.in: Added option to enable libgc support.
16081
16082         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
16083         (bitVectUnion): Optimised.
16084         (bitVectIntersect): Optimised.
16085         (bitVectBitsInCommon): Optimised.
16086         (bitVectCplAnd): Optimised.
16087
16088         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
16089
16090 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16091
16092         * src/SDCCmain.c: distinguish between assembler debug and plain options
16093
16094         * src/avr/main.c:   remove standard assembler options
16095
16096         * src/ds390/main.c: remove standard assembler options
16097
16098         * src/mcs51/main.c: remove standard assembler options
16099
16100         * src/port.h: removed "PENDING" comment
16101
16102 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16103
16104         * src/device/lib/_mulint.c  : new, with assember functions
16105
16106         * src/device/lib/_mullong.c : new, with assember functions
16107
16108         * src/device/lib/_divuint.c : with assember functions
16109
16110         * src/device/lib/_divsint.c : with assember functions
16111
16112         * src/device/lib/_divulong.c: with assember functions
16113
16114         * src/device/lib/_divslong.c: with assember functions
16115
16116         * src/device/lib/_moduint.c : with assember functions
16117
16118         * src/device/lib/_modsint.c : with assember functions
16119
16120         * src/device/lib/_modulong.c: with assember functions
16121
16122         * src/device/lib/_modslong.c: with assember functions
16123
16124         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
16125
16126         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
16127
16128         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
16129                                       replaced _mululong.c and _mulslong.c by _mullong.c
16130
16131 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16132
16133         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
16134
16135 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
16136
16137         * src/SDCCglue.c: test, if win32api is available for MINGW
16138
16139 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
16140
16141         * src/SDCCsymt.c: no more _modifier in printTypeChain()
16142         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
16143         * support/regression/ports/gbz80/spec.mk: removed GENERIC
16144         * support/regression/ports/host/spec.mk: removed GENERIC
16145         * support/regression/ports/mcs51/spec.mk: removed GENERIC
16146         * support/regression/ports/z80/spec.mk: removed GENERIC
16147
16148 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
16149
16150         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
16151
16152         * support/regression/tests/bug-467035.c: Created.
16153
16154 2001-10-01    <johan AT FRIJA>
16155
16156         * src/SDCC.y: fixed bug #466586 part 1
16157
16158 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
16159
16160         * SDCCicode.c: z80 has no generic pointers
16161         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
16162
16163 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
16164
16165         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
16166
16167 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
16168
16169         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
16170
16171         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
16172
16173 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
16174
16175         * configure.in: Fixed up so that ucsim is only configured once.
16176
16177         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
16178
16179         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
16180         (getPathDifference): As above.
16181
16182         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
16183
16184         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
16185
16186 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
16187         * .version: Updated to 2.3.1
16188
16189         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
16190         Added copyright header.
16191
16192         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
16193         (assemble): Added support for macro based assembler commands.
16194         (linkEdit): Added support for macro based linker commands.
16195         (preProcess): Changed the pre-processor to use macros.
16196         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
16197         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
16198
16199         * device/lib/z80/crt0.s: Added module name for debugging.
16200
16201 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
16202
16203         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
16204
16205         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
16206
16207         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
16208
16209         * src/Makefile.in: Added SDCCmacro and SDCCutil
16210
16211 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
16212
16213         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
16214
16215 2001-09-16    <johan AT FRIJA>
16216
16217         * 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.
16218
16219 2001-09-15    <johan AT FRIJA>
16220
16221         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
16222         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
16223
16224 2001-09-11    <johan AT FRIJA>
16225
16226         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
16227
16228 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
16229
16230         * support/regression/tests/bug-460444.c: Added test case.
16231
16232         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
16233         (genCast): Added justification for all of the asserts.
16234
16235 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
16236
16237         * support/regression/support.c: _xdata replaced by xdata
16238
16239         * support/regression/spec.mk: removed _generic
16240
16241 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
16242
16243         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
16244
16245         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
16246         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
16247
16248         * src/z80/peeph.def: Added a rule to optimise shift then compare.
16249
16250         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
16251
16252         * support/regression/tests/bug-460010.c: Added test case.
16253
16254         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
16255
16256 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
16257
16258         * support/regression/Makefile: inter-port-clean adjusted for mcs51
16259
16260         * support/regression/testfwk.c: removed workaround for bug #436344
16261
16262         * support/regression/tests/bp.c: use less memory with mcs51
16263
16264         * support/regression/tests/bug-441448.c: use less memory
16265
16266         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
16267
16268         * support/regression/collate-results.py: typo
16269
16270 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
16271
16272         * support/regression/tests/fetchoverlap.c: Added new test case.
16273
16274         * support/regression/tests/bp.c: Added new test case.
16275
16276         * support/regression/tests/bug-448984.c: Added new test case.
16277
16278         * support/regression/tests/pow2shifts.c: Added new test case.
16279
16280         * src/z80/gen.c: Turned off the noise it normally generates for the release.
16281         (genlshTwo): Fixed right shift for count > 8.
16282
16283         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
16284
16285 2001-09-08    <johan AT FRIJA>
16286
16287         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
16288
16289 2001-09-07    <johan AT FRIJA>
16290
16291         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
16292
16293         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
16294
16295 2001-09-06    <johan AT FRIJA>
16296
16297         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
16298         * bernhard noted me at this: "() equals to (void)" (1.38)
16299
16300 2001-09-05    <johan AT FRIJA>
16301
16302         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
16303
16304 2001-09-04    <johan AT FRIJA>
16305
16306         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
16307
16308
16309 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
16310
16311         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
16312
16313 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
16314
16315         * link/z80/aslink.h: Fixed path for PATH_MAX
16316
16317 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
16318
16319         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
16320
16321         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
16322
16323         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
16324
16325         * 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.
16326
16327 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
16328
16329         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
16330         (genCmp): Fixed up genCmp for the GB with longs.
16331
16332         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
16333
16334         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
16335
16336         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
16337
16338         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
16339
16340 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
16341
16342         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
16343
16344 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
16345
16346         * 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.
16347
16348         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
16349
16350 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
16351
16352         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
16353
16354         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
16355
16356 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
16357
16358   * sim/ucsim/configure:    little improvement of Cygwin-detection
16359   * sim/ucsim/configure.in: little improvement of Cygwin-detection
16360   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
16361   * support/regression/tests/bug-221100.c: small changes for mcs51
16362   * support/regression/tests/bug-221168.c: small changes for mcs51
16363   * support/regression/tests/bug-227710.c: small changes for mcs51
16364   * support/regression/tests/staticinit.c: small changes for mcs51
16365   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
16366   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
16367   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
16368
16369 $Revision$