c177b4b54953bb42cfaa6c5545aa30994821d736
[fw/sdcc] / ChangeLog
1 2008-05-01 Raphael Neider <rneider AT web.de>
2
3         * device/include/pic16/adc.h,
4           device/lib/pic16/libio/adc/adcbusy.c,
5           device/lib/pic16/libio/adc/adcopen.c,
6           device/lib/pic16/libio/adc/adcsetch.c: support old 18f242 and new
7           18f2455 style ADC devices, based on patch #1776197
8         * device/lib/pic16/libio/adc/adcclose.c,
9           device/lib/pic16/libio/adc/adcconv.c,
10           device/lib/pic16/libio/adc/adcread.c: cosmetic changes
11         * device/include/pic16/{pic18f2331.h,pic18f2431.h},
12           device/lib/pic16/libdev/{pic18f2331.c,pic18f2431.c}: reuse 18f4331
13         * device/include/pic16/pic18f4431.h,
14           device/lib/pic16/libdev/pic18f4431.c: remove outdated comments
15         * device/lib/pic16/libio/adc.ignore: forbid unhandled devices
16
17 2008-05-01 Raphael Neider <rneider AT web.de>
18
19         * src/pic16/device.h: removed unused field PIC16_device.sfrRange,
20           moved xinst flag into pic16_options_t
21         * src/pic16/device.c (default_device, pic16_list_devices,
22           pic16_find_device): removed references to sfrrange
23         * src/pic16/gen.c (genFunction),
24           src/pic16/glue.c (pic16initialComments),
25           src/pic16/main.c (pic16_optionsTable),
26           src/pic16/ralloc.c (newReg, pic16_writeUsedRegs): updated references
27           to xinst
28         * device/include/pic16/pic16devices.txt: removed sfrrange lines
29
30 2008-04-29 Raphael Neider <rneider AT web.de>
31
32         * src/pic16/devices.inc,
33           device/include/pic16/pic16devices.txt: replaced compiled-in list
34           of devices with a variant parsed at runtime
35         * src/pic16/device.c: added support for parsing pic16devices.txt,
36           clean up
37         * src/pic16/device.h: removed (now) unused fields from PIC_device
38         * src/pic16/main.c: removed #pragma maxram,
39           (_pic16_initPaths): removed bogus generation of search paths,
40           setup the port proper only after the search paths (for
41           pic16devices.txt) are set up,
42           (_pic16_finaliseOptions): moved processor dependant code here
43           from _pic16_initPaths(), clean up
44         * src/pic16/ralloc.c (pic16_init_stack),
45         * src/pic16/ralloc.h,
46         * src/pic16/pcode.c: clean up
47         * device/include/Makefile.in,
48           support/scripts/sdcc.nsi: also install/package pic16devices.txt
49         * support/scripts/inc2h-pic16.pl: updated instructions
50
51 2008-04-29 Raphael Neider <rneider AT web.de>
52
53         * device/include/pic16/{pic18f2480.h, pic18f2580.h, pic18f4423.h,
54           pic18f4480.h, pic18f4523.h, pic18f4580.h, pic18f6585.h, pic18f8585.h},
55           device/lib/pic16/libdev/{pic18f2480.c, pic18f2580.c, pic18f4423.c,
56           pic18f4480.c, pic18f4523.c, pic18f4580.c, pic18f6585.c, pic18f8585.c}:
57           added missing family members and 18f2480/2580/4480/4580 family
58         * device/include/pic16/{pic18f2423.h, pic18f2523.h}: use 18f4523.h
59         * device/include/pic16/pic18f2525.h: use 18f4620.h
60         * device/include/pic16/pic18f6680.h: use 18f8680.h
61         * device/include/pic16/pic18fregs.h,
62           device/lib/pic16/pics.all,
63           src/pic16/devices.inc: add new devices
64         * device/lib/pic16/libdev/{pic18f2423.c, pic18f2523.c}: use 18f4523.c
65         * device/lib/pic16/libdev/pic18f2525.c: use 18f4620.c
66         * device/lib/pic16/libdev/pic18f6680.c: uso 18f8680.c
67         * device/lib/pic16/libio/{adc.ignore, i2c.ignore, usart.ignore}:
68           prevent attempting to build the libio for some new devices
69
70 2008-04-29 Raphael Neider <rneider AT web.de>
71
72         * debugger/mcs51/Makefile.in: fixed paths to sources
73
74 2008-04-25 Borut Razem <borut.razem AT siol.net>
75
76         * as/link/lklibr.c: moved from as/link/z80/lklibr.c
77         * as/link/hc08/lklibr.c, as/link/mcs51/lklibr.c: deleted
78         * as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
79         * as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
80           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
81           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
82           as/link/z80/linkz80.dsp: lklibr.c moved
83         * doc/INSTALL.txt: binary archives in bz2 format
84         * support/cpp/auto-host_vc_in.h: CPP2 replaced with CPP
85
86 2008-04-23 Maarten Brock <sourceforge.brock AT dse.nl>
87
88         * src/SDCCglue.c (printIvalType, printIvalBitFields): fixed bug 1856409
89         * support/regression/tests/bug1856409.c: new, added
90
91 2008-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
92
93         * src/z80/peep.c,
94         * src/mcs51/peep.c: Use werror for error messages.
95         * src/SDCCicode.c (geniCodeConditional),
96         * src/SDCCsymt.c (structElemType): fixed bug 1839321
97         * src/z80/Makefile.bcc,
98         * src/z80/z80.dsp: added src/z80/peep.c/h
99         * support/regression/tests/bug1839321.c: new, added
100
101 2008-04-20 Raphael Neider <rneider AT web.de>
102
103         * device/include/pic16/pic18f2455.h: added bitfields for port C
104
105 2008-04-20 Philipp Klaus Krause <pkk AT spth.de>
106
107         * src/z80/peep.c: Use werror for error messages.
108
109 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
110
111         * src/z80/peep.h (declaration of notUsed()),
112         * src/z80/main.c (enabled notUsed() for z80 port, documented z80_port
113           struct),
114         * src/z80/z80.h (added dependency on peep.h),
115         * src/z80/peep.c (definition of notUsed()): Implemented RFE #1880202
116           for Z80.
117
118 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
119
120         * src/SDCCpeeph.c (added support for notUsed()),
121         * src/mcs51/main.c (added dependency on peep.h, documented mcs51_port
122           struct),
123         * src/port.h (removed dependency on mcs51/peep.h, added declaration
124           for notUsed()): Implemented generic (that is not port-specific) part
125           of RFE #1880202.
126
127 2008-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
128
129         * as/link/mcs51/lkmem.c (summary2): fixed bug 1796077
130         * device/lib/libsdcc.lib,
131         * device/lib/Makefile.in,
132         * support/regression/ports/mcs51-xstack-auto/spec.mk,
133         * device/lib/calloc.c: renamed to _calloc.c
134         * device/lib/free.c: renamed to _free.c
135         * device/lib/malloc.c: renamed to _malloc.c
136         * device/lib/realloc.c: renamed to _realloc.c
137         * src/ds390/gen.c (aopGet, aopPut, genPlusBits, genDataPointerSet,
138           genNearPointerSet, genPagedPointerSet): synchronized with mcs51/gen.c
139         * src/ds390/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq, ifxForOp,
140           genAnd, genOr, genXor, genIfx, gen390Code): fixed bug 1509084
141         * src/mcs51/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq,
142           ifxForOp, genAnd, genOr, genXor, genNearPointerGet,
143           genPagedPointerGet, genFarPointerGet, genCodePointerGet,
144           genGenPointerGet, genIfx, gen51Code): fixed bug 1509084
145         * src/ds390/gen.c,
146         * src/mcs51/gen.c: throughout cosmetic changes for syncing both
147         * src/SDCCsymt.h: updated IS_OP_RUONLY, IS_OP_ACCUSE
148         * support/regression/tests/bug1509084.c: new, added
149
150 2008-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
151
152         * device/include/mcs51/cc2510fx.h: added _XPAGE
153         * device/include/mcs51/compiler.h: cosmetic changes
154
155 2008-03-31 Maarten Brock <sourceforge.brock AT dse.nl>
156
157         * sdcc.dsw: adapted for moved cpp2, added dependency for as_z80 on
158           config
159
160 2008-03-31 Borut Razem <borut.razem AT siol.net>
161
162         * support/cpp2 renamed to support/cpp
163         * support/cpp2/libiberty/filenames.h, support/cpp2/libiberty/hex.c,
164           support/cpp2/libiberty/splay-tree.c,
165           support/cpp2/libiberty/splay-tree.h, support/cpp2/libcpp/macro.c,
166           support/cpp2/libcpp/directives.c,
167           support/cpp2/libcpp/include/cpplib.h,
168           support/cpp2/libcpp/include/symtab.h,
169           support/cpp2/libcpp/include/line-map.h,
170           support/cpp2/libcpp/line-map.c, support/cpp2/libcpp/files.c,
171           support/cpp2/libcpp/init.c, support/cpp2/libcpp/traditional.c,
172           support/cpp2/libcpp/expr.c, support/cpp2/libcpp/internal.h,
173           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/system.h,
174           support/cpp2/libcpp/charset.c: SDCPP synchronized with GCC CPP
175           release version 4.3.0
176         * configure.in, configure, Makefile.in, Makefile.bcc:
177           adapted for moved cpp2
178
179 2008-03-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
180
181         * device/include/hc08/mc68hc908jkjl.h: committed fix for bug #1929739,
182           thanks Alejandro Pustowka <alejo_pustowka AT yahoo.com.mx>
183
184 2008-03-30 Maarten Brock <sourceforge.brock AT dse.nl>
185
186         * src/SDCCloop.c (loopInvariants): applied fix for bug 1717943, thanks
187           Robert Larice
188         * support/regression/tests/bug1717943.c: new, added
189
190 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
191
192         * src/z80/gen.c (assignResultValue): Reverted reversal of order of
193           bytewise return value assignments introduced in last commit.
194
195 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
196
197         * src/z80/gen.c (emitDebug, assignResultValue, genPlus, genMinus,
198           genMult, genJumpTab):
199           Use 16-bit instructions for addition in some additional cases,
200           implemented RFEs #1914251, #1914245, #1922090, #1921382, #1918323.
201
202 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
203
204         * src/z80/ralloc.c (serialRegAssign, allocReg, tryAllocatingRegPair):
205           Implemented RFE #1921450, changed some debug messages.
206
207 2008-03-30 Borut Razem <borut.razem AT siol.net>
208
209         * Small Device C Compiler 2.8.0 released
210         * .version, doc/sdccman.lyx: changed sdcc version to 2.8.1
211         * support/scripts/sdcc.nsi: added finish page; this version
212           was used for 2.8.0 release
213         * doc/knownbugs.html: removed; magically generated by the build
214           process using gen_known_bugs.pl from now on
215
216 2008-03-23 Borut Razem <borut.razem AT siol.net>
217
218         * src/pic/gen.h: Q&D solution for the bug, found by Jim Paris
219           and reverted it, since it was already fixed by Raphael ;-)
220         * doc/knownbugs.html: updated for RC2
221
222 2008-03-22 Raphael Neider <rneider AT web.de>
223
224         * src/SDCCicode.c (getPtrType): avoid unnecessary extra assignments
225           for PIC16 targets
226
227 2008-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
228
229         * src/mcs51/gen.c (adjustArithmeticResult): fixed bug 1839299
230         * support/regression/tests/bug1839277.c: added related testBug1839299
231
232 2008-03-21 Maarten Brock <sourceforge.brock AT dse.nl>
233
234         * src/ds390/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign),
235         * src/mcs51/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign):
236           fixed bug 1839277
237         * src/mcs51/gen.c: throughout only output hex constants
238         * src/SDCCicode.c (getPtrType, geniCodeCast): fixed code size regression
239         * support/regression/tests/bug1839277.c: new, added
240
241 2008-03-21 Philipp Klaus Krause <pkk AT spth.de>
242
243         * src/z80/ralloc.c (callFuncByName): Used // instead of /**/ to fix
244           compilation warning about nested comments.
245
246 2008-03-20 Maarten Brock <sourceforge.brock AT dse.nl>
247
248         * src/SDCCsymt.c (comparePtrType): fixed bug 1921073
249         * support/regression/tests/bug1921073.c: new, added
250
251 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
252
253         * src/z80/SDCCpeeph.c.c (callFuncByName):
254           Commented function parameters.
255
256 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
257
258         * src/z80/ralloc.c (packRegsForAccUse2):
259           disabled a broken accumulator packing optimization (fixed #1292721).
260         * support/regression/tests/bug-1292721: Regression test for #1292721.
261
262 2008-03-16 Raphael Neider <rneider AT web.de>
263
264         * src/pic/gen.c (SetIrp,genNearPointerGet,genNearPointerSet):
265           fixed code bloat regression using a variant of patch #1915618
266
267 2008-03-16 Borut Razem <borut.razem AT siol.net>
268
269         * support/scripts/sdcc.nsi: added section debugging macros, added SDCC
270           icon, changed startup menu for release distribution, code cleaning,
271           create url files instead links in startup menu
272
273 2008-03-16 Maarten Brock <sourceforge.brock AT dse.nl>
274
275         * src/SDCCcse.c (algebraicOpts): fixed bug 1579949
276         * support/regression/tests/bug1579949.c: new, added
277
278 2008-03-14 Paul Stoffregen <paul AT pjrc.com>
279
280         * device/lib/printf_fast.c: fixed bug 1255403
281
282 2008-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
283
284         * doc/sdccman.lyx: enhanced paragraph about bankswitching for mcs51
285         * src/cdbFile.c (cdbWriteBasicSymbol): fixed bug 1909409 for locals
286
287 2008-03-14 Borut Razem <borut.razem AT siol.net>
288
289         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated link-xx and aslink
290           command line options
291         * as/link/hc08/lkmain.c: converted tabs to spaces so that the usage
292           is correctly displayed
293         * as/link/z80/lkmain.c: usage line commented out
294
295 2008-03-13 Borut Razem <borut.razem AT siol.net>
296
297         * doc/sdccman.lyx: corrected to be able to convert to PDF,
298           updated the list pf supported pic14 devices
299
300 2008-03-12 Maarten Brock <sourceforge.brock AT dse.nl>
301
302         * doc/sdccman.lyx: added paragraph about bankswitching for mcs51
303
304 2008-03-12 Borut Razem <borut.razem AT siol.net>
305
306         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated command line options,
307           fixed documentation request #1718191
308         * as/hc80/asmain.c, as/mcs51/asmain.c: added option -c to usage
309         * doc/sdccman.lyx: added description of --no-std-crt0 gbz80
310           command line option
311
312 2008-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
313
314         * src/SDCCast.c (isConformingBody): fixed bug 1505811, thanks Robert Larice
315         * support/regression/tests/bug1505811.c: new, added
316
317 2008-03-09 Raphael Neider <rneider AT web.de>
318
319         * device/include/pic16/pic18f2620.h,
320         * device/include/pic16/pic18f4620.h,
321         * device/lib/pic16/libdev/pic18f2620.c,
322         * device/lib/pic16/libdev/pic18f4525.c,
323         * device/lib/pic16/libdev/pic18f4620.c: merged 18f2525/2620/4525/4620
324           family to consistently use pic18f4620.[ch], fixes #1832562
325
326 2008-03-09 Borut Razem <borut.razem AT siol.net>
327
328         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
329           changed sdcc version to 2.8.0
330         * knownbugs.html: regenerated
331         * support/scripts/gen_known_bugs.pl: added number of open bugs
332
333 2008-03-09 Raphael Neider <rneider AT web.de>
334
335         * src/pic16/gen.c (pic16_mov2w_volatile): NEW, read volatile operands,
336           (genOr): read volatile operand even if the result is known,
337           closes #1511838
338           (genOr,genXor): removed unused legacy code,
339           (genDummyRead): use pic16_mov2w_volatile()
340
341 2008-03-08 Borut Razem <borut.razem AT siol.net>
342
343         * src/SDCCglue.c: fixed bug #1864582: multiple definition of char
344           cons w. --model-large
345         * support/regression/staticinit.c: added regression test for bug
346           #1864582
347
348 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
349
350         * src/ds390/gen.c (pushSide, genPcall),
351         * src/hc08/gen.c (pushSide, genPcall): synchronized with mcs51
352         * src/mcs51/gen.c: cosmetic changes
353         * support/regression/fwk/include/testfwk.h: added macro reentrant
354         * support/regression/tests/bug1908493.c: new, added
355
356 2008-03-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
357
358         * src/SDCCdebug.c:, as/link/lkaomf51.c: Fixed bug 1909409: Pdata in OMF file
359
360 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
361
362         * src/mcs51/gen.c (pushSide, genPcall): fixed bug 1908493
363         * src/SDCCmain.c (preProcess): removed -DSDCC_PARMS_IN_BANK1 because it is
364           already set in ds390/main.c and mcs51/main.c
365
366 2008-03-07 Raphael Neider <rneider AT web.de>
367
368         * src/regression/init0.c: new test for initialized arrays of function
369           pointers
370         * src/regression/Makefile: made a bit more flexible, added init0.c
371         * src/pic/glue.c (emitIvals): hacky fix for initializing from function
372           pointers, closes #1427663
373
374 2008-03-05 Borut Razem <borut.razem AT siol.net>
375
376         * dos/sdccman.lyx: docummented predefined macros SDCC_REVISION,
377           SDCC_PARMS_IN_BANK1, SDCC_FLOAT_REENT and SDCC_INT_LONG_REENT
378
379 2008-03-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
380
381         * support/librarian/sdcclib.c:Added feature request 1908061:
382           Synchronise sdcclib commands with ar.
383
384 2008-03-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
385
386         * src/SDCCmain.c: added predefined macros SDCC_REVISION (RFE #1907229),
387           and (depending on corresponding compiler option) SDCC_PARMS_IN_BANK1,
388           SDCC_FLOAT_REENT, SDCC_INT_LONG_REENT
389         * device/include/mcs51/compiler.h: removed umlauts, added double
390           underscore
391
392 2008-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
393
394         * src/SDCCptropt.c (ptrPseudoSymConvert): fixed bug 1536762
395         * support/regression/tests/bug1536762.c: new, added
396         * src/SDCCutil.c,
397         * src/SDCCutil.h: added getBuildDate()
398         * src/SDCCmain.c (printVersionInfo),
399         * src/SDCCglue.c (initialComments): use getBuildDate() instead of
400           __DATE__
401         * src/*/ralloc.c: removed IS_OP_RUONLY macro
402         * src/ds390/ralloc.c (packRegisters),
403         * src/mcs51/ralloc.c (packRegisters),
404         * src/z80/ralloc.c (packRegisters): applied fix for bug 1618050, thanks
405           Robert Larice
406         * support/regression/tests/bug1618050.c: new, added
407         * src/SDCCsymt.h: fixed typo in DECLSPEC2TXT
408         * support/regression/fwk/include/testfwk.h,
409         * support/regression/tests/bug1838000.c: moved _AUTOMEM and _STATMEM to
410           testfwk.h
411
412 2008-03-04 Raphael Neider <rneider AT web.de>
413
414         * src/pic/gen.c: removed unused prototypes, prevent internal errors
415           on accessing OP_SYM_TYPE(op)
416         * src/pic/gen.h: removed unused prototype of genMinusDec()
417         * src/pic/genarith.c (genMinus): cosmetic changes, rewritten to
418           fix #1876953 (invalid subtraction code), removed unused code
419
420 2008-03-03 Raphael Neider <rneider AT web.de>
421
422         * src/pic/gen.c,
423         * src/pic/gen.h,
424         * src/pic/genarith.c,
425         * src/pic/ralloc.c,
426         * src/pic/ralloc.h: removed AOP_R0, AOP_R1, AOP_DPTR, AOP_DPTR2,
427           AOP_ACC, and *_IDX and adjusted code, removed unused legacy code
428
429 2008-03-03 Raphael Neider <rneider AT web.de>
430
431         * src/pic/device.c (find_device): search user-specified paths first
432           for pic14devices.txt, fixes #1900827
433
434 2008-03-02 Borut Razem <borut.razem AT siol.net>
435
436         * support/scripts/sdcc.nsi: fixed bug in IsNT, LogicLib-isation of
437           AddToPath and RemoveFromPath
438
439 2008-03-01 Borut Razem <borut.razem AT siol.net>
440
441         * support/scripts/sdcc.nsi: reverted MULTIUSER page since it didn't
442           work correctly, added debugging support if -DSDCC.DEBUG command line
443           option is defined
444
445 2008-02-28 Borut Razem <borut.razem AT siol.net>
446
447         * doc/sdccman.lyx: cosmetic changes
448
449 2008-02-28 Maarten Brock <sourceforge.brock AT dse.nl>
450
451         * src/mcs51/ralloc.c (fillGaps): fixed bug 1839671
452         * doc/sdccman.lyx: fixed unmeant removal of spaces
453
454 2008-02-27 Borut Razem <borut.razem AT siol.net>
455
456         * support/scripts/sdcc.nsi: corrected installation directory for
457           current user installation mode
458         * doc/README.txt: added Philipp Klaus Krause to the developers list
459
460 2008-02-27 Maarten Brock <sourceforge.brock AT dse.nl>
461
462         * src/mcs51/gen.c (genUnpackBits): don't generate ifxJump, instead
463           return ifx condition
464           (genNearPointerGet, genPagedPointerGet, genFarPointerGet,
465           genCodePointerGet, genGenPointerGet): cleanup aop before generating
466             ifxJump to fix bug 1838000
467         * src/SDCCsymt.c (aggregateToPointer): fix problem for xstack
468         * support/regression/tests/bug1838000.c: new, added
469         * device/include/mcs51/cc1110.h: new, added, thanks to Pravin Angolkar
470
471 2008-02-26 Borut Razem <borut.razem AT siol.net>
472
473         * src/SDCCast.c, doc/sdccman.lyx: fixed RFE #1901171: inerger promotion
474           of casted varargs
475         * support/scripts/sdcc.nsi: added MULTIUSER page,
476           NSIS upgraded to version 2.35
477
478 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
479
480         * src/mcs51/ralloc.c (isSpiltOnStack): fixed bug 1565152
481         * support/regression/tests/bug1565152.c: new, added
482
483 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
484
485         * src/mcs51/gen.c (genPagedPointerSet): fixed bug 1670148
486         * support/regression/ports/mcs51-xstack-auto/spec.mk: added expf.c
487         * support/regression/tests/bug1670148.c: new, added
488
489 2008-02-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
490
491         * device/include/mcs51/at89c51ed2.h: fixed bug 1901469.
492
493 2008-02-24 Borut Razem <borut.razem AT siol.net>
494
495         * src/SDCCast.c, src/SDCCast.h: fixed bug #1874922: explicit typecast
496           is ineffective for unsigned char parameter
497
498 2008-02-24 Maarten Brock <sourceforge.brock AT dse.nl>
499
500         * src/SDCCast.c (expandInlineFuncs): fixed bug 1875869
501         * src/SDCCglue.c (printIvalBitFields): fixed bug 1806631
502         * support/regression/tests/bitopcse.c: removed hc08 exception, see testfwk.h
503         * support/Util/MySystem.c (my_system): output errorcode when verbose
504
505 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
506
507         * src/z80/gen.c (genMult): Rewrote 8-bit multiplication by constant,
508           implements #1898231
509
510 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
511
512         * device/lib/z80/mul.s: Rewrote __muluchar_rrx_s, to improve 8-bit mult.,
513           implements #1896290
514
515 2008-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
516
517         * src/SDCCast.c (createIvalStruct): fixed bug 1466761
518
519 2008-02-21 Borut Razem <borut.razem AT siol.net>
520
521         * support/regression/Makefile.in,
522           support/regression/ports/ds390/spec.mk,
523           support/regression/ports/hc08/spec.mk,
524           support/regression/ports/mcs51-common/spec.mk,
525           support/regression/ports/pic14/spec.mk,
526           support/regression/ports/pic16/spec.mk,
527           support/regression/ports/ucz80/spec.mk,
528           support/regression/ports/xa51/spec.mk:
529           added CFLAGS when compiling timeout
530
531 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
532
533         * support/regression/tests/bugs-1596270-1736867.c: Regression test for
534           #1596270, #1736867
535
536 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
537
538         * src/SDCClrange.c (findPrevUse): fixed bug 1888147
539         * support/regression/tests/bug1888147.c: new, added
540
541 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
542
543         * src/z80/gen.c: fixed bugs #1596270, #1736867
544
545 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
546
547         * src/z80/gen.c: fixed bug in register pair loading when swapping register
548           contents, mostly fixes #1596270
549
550 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
551
552         * src/z80/peeph.def,
553         * src/z80/peeph-z80.def: moved peephole that breaks gbz80 to z80-specific
554           peepholes, fixes #1806565
555
556 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
557
558         * src/SDCCpeeph.c (operandBaseName): added check for @Ri
559         * src/mcs51/peeph.def (rule 177.c): added operandsNotRelated(%1 %3)
560           fixes bug 1739475, thanks Robert Larice
561           (rule 271): new, added
562
563 2008-02-18 Borut Razem <borut.razem AT siol.net>
564
565         * sim/ucsim/s51.src/Makefile.in: fixed error made in previous commit
566
567 2008-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
568
569         * src/SDCCmain.c (linkEdit): emit -z when using --debug for z80
570
571 2008-02-17 Raphael Neider <rneider AT web.de>
572
573         * src/pic16/genarith.c,
574         * src/pic16/gen.c,
575         * src/pic16/gen.h,
576         * src/pic16/genutils.c: removed unused legacy code,
577           removed unused fields from struct asmop and struct _G
578
579 2008-02-17 Raphael Neider <rneider AT web.de>
580
581         * src/pic16/gen.c (AccRsh): cosmetic changes,
582           (shiftR1Left2ResultSigned,shiftR1Left2Result,shiftL1Left2Result,
583           genRightShiftLiteral): fixed to work with SFRs as result by
584           assigning only once to result,
585           removed a lot of unused/excluded code fragments
586
587 2008-02-17 Raphael Neider <rneider AT web.de>
588
589         * device/include/pic/pic16f88.h,
590         * device/include/pic/pic16f886.h,
591         * device/include/pic/pic16f887.h: added TRISA6 and TRISA7
592
593 2008-02-17 Borut Razem <borut.razem AT siol.net>
594
595         * src/z80/peeph.def: applied patch
596           #1893626: Optimize tail calls on Z80, thanks to Philipp Krause
597         * src/z80/gen.c, src/z80/peeph.def: applied patch
598           #1893510: Improve logical left shift on Z80, thanks to Philipp Krause
599         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
600           sim/ucsim/s51.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
601           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
602           sim/ucsim/main_in.mk: renamed libutil.a to libucsimutil.a in order to
603           enable compilation on Mac OS X 10.5 (Leopard) and XCode v3.0
604
605 2008-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
606
607         * as/link/mcs51/aslink.dsp: removed SDK define
608         * as/link/z80/clean.mk: brought in sync with other ports
609         * as/link/z80/lklibr.c (SdccLib, fndsym): handle the dflag here too
610         * as/hc08/Makefile.bcc,
611         * as/mcs51/Makefile.bcc,
612         * as/z80/Makefile.bcc: noice.c was moved to as/asxxsrc/
613         * src/z80/main.c (_setValues): use the now capitalized -Z,
614           (z80_port, gbz80_port): generate debug information when asked
615
616 2008-02-16 Borut Razem <borut.razem AT siol.net>
617
618         * as/z80/asmain.c, as/z80/asm.h, as/z80/asdata.c,
619           as/link/z80/lkmain.c, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
620           as/z80/Makefile.in. as/z80/Makefile.bcc:
621           applied patch #1893393: patch for as-z80 and link-z80 to generate
622           cdb, thanks to Armin Diehl
623         * as/*/asnoice.c, as/hc08/as_hc08.dsp, as/hc08/Makefile.in,
624           as/mcs51/asx8051.dsp, as/mcs51/Makefile.in:
625           asnoice.c moved to as/asxxsrc/asnoice.c
626         * src/z80/peeph-gbz80.def: applied patch
627           #1880235: Z80 return peephole, thanks to Philipp Krause
628
629 2008-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
630
631         * .version,
632         * doc/sdccman.lyx: bumped version to 2.7.5
633         * src/SDCCsymt.c (compareType, comparePtrType): fixed bug 1281583
634
635 2008-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
636
637         * device/include/pic16/stdlib.h,
638         * device/lib/pic16/libc/stdlib/ltoa.c,
639         * device/lib/pic16/libc/stdio/vfprintf.c: ascii strings are char*
640
641 2008-02-13 Borut Razem <borut.razem AT siol.net>
642
643         * src/SDCCmain.c, src/SDCCglue.c: fixed --c1mode
644         * src/pic16/glue.c, src/SDCCast.c, src/SDCCast.h, src/SDCCBBlock.c,
645           src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c, src/SDCCloop.c,
646           src/SDCCopt.c,  src/SDCCval.c:
647           fixed bug #1890273: SDCC Warning 154 shows wrong filename
648
649 2008-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
650
651         * src/SDCCsymt.c (compareType): fixed bug 1309013
652
653 2008-02-09 Borut Razem <borut.razem AT siol.net>
654
655         * src/SDCCval.c, src/SDCCval.h:
656           code cleaning, added function constChrVal()
657         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c, src/SDCCast.c, src/SDCC.y:
658           call constChrVal() instead constVal()
659
660 2008-02-01 Maarten Brock <sourceforge.brock AT dse.nl>
661
662         * src/SDCCast.c (resolveSymbols): added reentrancy check for parameters
663           of function pointer
664         * src/SDCCerr.h,
665         * src/SDCCerr.c: changed warning W_NONRENT_ARGS to error E_NONRENT_ARGS
666         * support/regression/tests/absolute.c: added TestStruct TestVar (see also
667           bug 1859853)
668
669 2008-02-01 Raphael Neider <rneider AT web.de>
670
671         * device/include/pic/pic16f886.h,
672         * device/include/pic/pic16f887.h: added RA6 and RA7
673
674 2008-01-24 Raphael Neider <rneider AT web.de>
675
676         * device/include/pic/pic16f88.h: added RA6 and RA7
677         * device/lib/pic/libdev/disabled_pic16f886.c,
678         * device/lib/pic/libdev/disabled_pic16f887.c: renamed and enabled
679
680         * src/pic16/devices.inc,
681         * device/include/pic16/pic18f2423.h,
682         * device/include/pic16/pic18f2523.h,
683         * device/include/pic16/pic18fregs.h,
684         * device/lib/pic16/pics.all
685         * device/lib/pic16/libdev/pic18f2423.c,
686         * device/lib/pic16/libdev/pic18f2523.c: added 18f2423 and 18f2523
687         * device/lib/pic16/libio/i2c.ignore,
688         * device/lib/pic16/libio/usart.ignore,
689         * device/lib/pic16/libio/adc.ignore: ignore new devices
690
691 2008-01-23 Maarten Brock <sourceforge.brock AT dse.nl>
692
693         * src/SDCCast.c (createRMW): fixed bug 1582651
694
695 2008-01-20 Borut Razem <borut.razem AT siol.net>
696
697         * src/SDCCcse.c: partially fixed enhancement request
698           #1793872 - multiply by -1 not collapsed
699         * support/regression/tests/arithcsi.c: added regression test
700
701 2008-01-19 Maarten Brock <sourceforge.brock AT dse.nl>
702
703         * as/mcs51/asx8051.dsp: removed define SDK
704         * as/mcs51/i51mch.c (machine): fixed bug 1865114
705         * device/include/asm/ds390/features.h: fixed bug with ds390 & stack-auto
706         * as/link/lklex.c,
707         * as/link/mcs51/lkmain.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
708           cosmetic changes, brought more in sync, changed old K&R to ANSI
709
710 2008-01-13 Borut Razem <borut.razem AT siol.net>
711
712         * support/scripts/sdcc.nsi: added Uninstall/reinstall page, ...
713         * src/SDCCicode.c: fixed bug #1870216 - Error 122: dividing by zero
714
715 2007-12-30 Borut Razem <borut.razem AT siol.net>
716
717         * src/pic16/gen.c: fixed implementation of bitwise operations for
718           pic16 target
719         * support/regression/tests/bitwise.c: added test cases
720
721 2007-12-29 Borut Razem <borut.razem AT siol.net>
722
723         * src/SDCCasm.[ch]: renamed from asm[ch], use dbuf_getline(), ...
724         * src/src.dsp, src/Makefile.bcc, src/Makefile.in, src/common.h,
725           src/SDCCglue.c, src/xa51/main.c: asm.[ch] renamed to SDCCasm.[ch]
726         * support/Util/dbuf_string.[ch]: added function dbuf_getline()
727         * src/ds390/gen.c, src/hc08/gen.c, src/mcs51/gen.c, src/pic16/gen.c,
728           src/pic/gen.c, src/z80/gen.c, src/xa51/gen.c, src/pic16/ralloc.c,
729           src/pic16/pcode.[ch]: added const qualifier
730         * as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
731           as/mcs51/Makefile.bcc, as/mcs51/Makefile.in, as/mcs51/asx8051.dsp,
732           as/z80/Makefile.bcc, as/z80/Makefile.in, as/z80/as_gbz80.dsp,
733           as/z80/as_z80.dsp: added dbuf.[ch] and dbuf_string[ch] to project
734         * as/asxxsrc/aslex.c: use dbuf_getline()
735         * as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/asm.h, as/hc08/m08adr.c,
736           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/asm.h,
737           as/mcs51/i51adr.c, as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c,
738           as/z80/asm.h, as/z80/z80adr.c:
739           changed type of ib and ip to const char *
740
741 2007-12-28 Borut Razem <borut.razem AT siol.net>
742
743         * as/asxxsrc/aslex.c: moved from as/mcs51/aslex.c;
744           introduced (readlin) - long lines are turuncated
745         * as/hc08/as_hc08.dsp, as/mcs51/asx8051.dsp, as/z80/as_gbz80.dsp,
746           as/z80/as_z80.dsp, as/hc08/Makefile.in, as/mcs51/Makefile.in,
747           as/z80/Makefile.in: moved aslex.c to asxxsrc
748         * as/hc08/aslex.c, as/z80/aslex.c: deleted
749         * as/hc08/asmain.c, as/mcs51/asmain.c:
750           added missing initialization of a_addr field
751         * support/regression/tests/long_asm_line.c: added regtest for long
752           assembler line
753
754 2007-12-22 Borut Razem <borut.razem AT siol.net>
755
756         * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
757
758 2007-12-20 Maarten Brock <sourceforge.brock AT dse.nl>
759
760         * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang
761
762 2007-12-16 Borut Razem <borut.razem AT siol.net>
763
764         * device/include/pic16/stdbool.h: removed, since already exists in
765          device/include/; this also fixes bitopcse.c regression test for pic16
766          target
767         * support/regression/fwk/inclusw/testfwk.h: added macro ASSERT_FAILED
768         * src/pic16/glue.c: fixed bug #1851855: generic static pointer
769           dereference doesn't work; covered by regression test bug1399290
770
771 2007-12-05 Borut Razem <borut.razem AT siol.net>
772
773         * doc/sdccman.lyx: fixed bug #1844509 - Correction to Manual 4.6.9
774           Adding new PIC16
775
776 2007-12-01 Borut Razem <borut.razem AT siol.net>
777
778         * sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/mem.cc:
779           corrected handling of the highest_valid_address
780
781 2007-11-17 Raphael Neider <rneider AT web.de>
782
783         * src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
784         * src/pic/glue.c (picglue): emit .file if --debug is given
785
786 2007-11-17 Raphael Neider <rneider AT web.de>
787
788         * src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
789         care when left or right operand resides in result, fixes #1830220
790
791 2007-11-17 Borut Razem <borut.razem AT siol.net>
792
793         * src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
794           #983491 - "Merge duplicate strings function is ineffective"
795         * support/regression/tests/bug-983491.c: regtest disabled
796         * as/asxxsrc: created
797           as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
798           as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
799           as/z80/assym.c, as/hc08/asstore.c, as/mcs51/asstore.c: deleted
800           as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
801           as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
802           as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
803           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
804           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
805           as/link/z80/linkz80.dsp, as/mcs51/Makefile.bcc, as/mcs51/Makefile.in,
806           as/mcs51/asm.h, as/mcs51/asx8051.dsp, as/z80/Makefile.bcc,
807           as/z80/Makefile.in, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
808           as/z80/Makefile.as_hc08, as/mcs51/Makefile.asx8051: modified
809           created as/asxxsrc directory, assym.c and strcpi.c moved into it
810
811 2007-11-15 Maarten Brock <sourceforge.brock AT dse.nl>
812
813         * device/include/stdarg.h: added and removed some casts
814         * src/SDCCsymt.c (compareType): Fully check types between generic and
815           non-generic pointers, also accept ptr-ptr to void-ptr assignments
816
817 2007-11-13 Borut Razem <borut.razem AT siol.net>
818
819         * support/regression/tests/bug-1817005.c:
820           added regtest for bug #1817005 - as-z80 chokes on long labels
821
822 2007-11-12 Borut Razem <borut.razem AT siol.net>
823
824         * as\z80\asmain.c, as\z80\asm.h, as\z80\assym.c, as\z80\asdata.c,
825           as\z80\asout.c, as\z80\aslist.c:
826           fixed bug #1817005 - as-z80 chokes on long labels
827
828 2007-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
829
830         * as/hc08/asmain.c,
831         * as/z80/asmain.c: cosmetic changes
832         * as/hc08/alloc.h,
833         * as/mcs51/alloc.h,
834         * as/z80/alloc.h: removed
835         * as/hc08/assym.c,
836         * as/mcs51/assym.c: replaced alloc.h with stdlib.h
837         * as/link/aslink.h: added LKDIRSEP and, LKDIRSEPSTR
838         * as/link/hc08/Makefile.in,
839         * as/link/mcs51/Makefile.in,
840         * as/link/z80/Makefile.in: added -DUNIX to CFLAGS
841         * as/link/lklex.c,
842         * as/link/mcs51/lkarea.c,
843         * as/link/mcs51/lkmain.c: cosmetic changes
844         * as/link/hc08/lklibr.c,
845         * as/link/z80/lklibr.c,
846         * as/link/mcs51/lklibr.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
847           used cygwin_conv_to_full_posix_path,
848           added warnings, cosmetic changes, brought more in sync
849           changed old K&R into ANSI function declarations
850         * as/link/z80/lklibr.c (loadAdb): added
851         * as/link/z80/lkmain.c: removed -- option from usage text
852
853 2007-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
854
855         * src/mcs51/gen.c (outBitC): optimized for no result
856
857 2007-10-31 Borut Razem <borut.razem AT siol.net>
858
859         * src/SDCCsymt.c: fixed (hopeful properly) bug
860           #1805702 - order of extern matters
861         * support/regression/tests/bug-1805702.c: enabled regtest for bug
862           #1805702
863
864 2007-10-29 Borut Razem <borut.razem AT siol.net>
865
866         * src/SDCCsymt.c: reverted bad fixed of bug #1805702
867           - order of extern matters
868         * support/regression/tests/bug-1805702.c: disabled regtest for bug
869           #1805702
870
871 2007-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
872
873         * src/ds390/peeph.def: replaced 24bitModeAndPortDS390 by
874           24bitMode, portIsDS390
875         * src/mcs51/gen.c (genOr): optimized for RFE 1750727
876         * src/SDCCpeeph.c (flat24bitModeAndPortDS390): removed
877           (notVolatileVariable): also check sloc names,
878           (callFuncByName): moved ftab[] out of function and sorted it by use
879
880 2007-10-28 Maarten Brock <sourceforge.brock AT dse.nl>
881
882         * device/include/stdarg.h: fixed bug in va_start macro for --xstack
883         * src/hc08/gen.c (aopForRemat): aop->aopu.aop_immd.from_cast_remat not set,
884           aop->aopu.aop_immd.aop_immd2 not filled with (generic) pointer type
885         * src/SDCCicode.c (geniCodeCast): fixed bug 880197
886         * support/regression/tests/bug-880197.c: new, added
887
888 2007-10-28 Borut Razem <borut.razem AT siol.net>
889
890         * support/regression/Makefile.in,
891           support/regression/ports/mcs51-large/spec.mk,
892           support/regression/ports/mcs51-xstack-auto/spec.mk,
893           support/regression/ports/mcs51-stack-auto/spec.mk,
894           support/regression/ports/mcs51-medium/spec.mk,
895           support/regression/ports/mcs51-common/spec.mk,
896           support/regression/ports/mcs51-common/*,
897           support/regression/ports/mcs51-small/*:
898           mcs51 renamed to mcs51-common, created mcs51-small
899         * src/SDCCsymt.c: fixed bug #1805702 - order of extern matters
900         * support/regression/tests/bug-1805702.c: added regtest for bug
901           #1805702
902
903 2007-10-26 Maarten Brock <sourceforge.brock AT dse.nl>
904
905         * src/mcs51/peeph.def: moved rules 257.x to 253.x and re-enabled 253.b,
906           added new rules 265 - 270
907         * support/regression/tests/bug1721024.c:new, added
908         * support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
909           introduced new test-mcs51 to run all mcs51 tests
910
911 2007-10-25 Maarten Brock <sourceforge.brock AT dse.nl>
912
913         * support/regression/tests/bug1816470.c: new, added
914
915 2007-10-21 Maarten Brock <sourceforge.brock AT dse.nl>
916
917         * src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
918           propagate for *,+,- with float, fixed bug 1816470
919           (decorateType): cast to resultTypeProp instead of resultType
920
921 2007-10-19 Borut Razem <borut.razem AT siol.net>
922
923         * src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
924           function is ineffective" for pic16 tareget
925         * support/scripts/listerr.c: corrected include path
926         * device/lib/_itoa.c: fixed bug #1806402 - _itoa and _uitoa leak to
927           adjacent memory
928
929 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
930
931         * support/regression/tests/using.c: new, added
932         * support/regression/tests/vaargs.c: fixed and enabled test
933
934 2007-10-18 Borut Razem <borut.razem AT siol.net>
935
936         * src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
937           is ineffective
938         * support/regression/tests/bug-983491.c: added regtest for bug #983491
939
940 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
941
942         * doc/sdccman.lyx: documented option --Werror
943         * src/SDCCsymt.c (checkFunction): fixed bug 1815418 by setting
944           RegBankUsed[] earlier
945
946 2007-10-14 Maarten Brock <sourceforge.brock AT dse.nl>
947
948         * device/include/mcs51/p89lpc938.h: new, added, thanks Kyle Guinn
949         * src/pic/glue.c,
950         * src/SDCCval.c,
951         * src/SDCCast.c,
952         * src/SDCCast.h: replaced AST_LIT_VALUE with AST_FLOAT_VALUE and
953           AST_ULONG_VALUE
954         * src/SDCCast.c (decorateType): improved optimization of tri-op
955         * src/SDCCerr.c (vwerror, setWError),
956         * src/SDCCerr.h,
957         * src/SDCCmain.c (parseCmdLine): added option --Werror to treat all
958           warnings as errors, thanks Stas Sergeev for PATCH 1813211
959
960 2007-10-13 Maarten Brock <sourceforge.brock AT dse.nl>
961
962         * src/mcs51/gen.c (leftRightUseAcc): use macro IS_OP_ACCUSE
963         * src/SDCCast.c (decorateType): optimize bit=cond?1:0, RFE 1738430
964         * support/regression/tests/bug-223113.c,
965         * support/regression/tests/bug-426632.c,
966         * support/regression/tests/bug-468811.c,
967         * support/regression/tests/bug-477835.c,
968         * support/regression/tests/bug-478094.c,
969         * support/regression/tests/bug-499644.c,
970         * support/regression/tests/bug-524209.c,
971         * support/regression/tests/bug-524211.c,
972         * support/regression/tests/packcast.c,
973         * support/regression/tests/structidx.c: added empty tests
974         * support/regression/tests/bug-607243.c: enabled test
975
976 2007-10-06 Borut Razem <borut.razem AT siol.net>
977
978         * .version, doc/sdccman.lyx: bumped version to 2.7.4 to indicate the full
979            support of universal binaries on Mac OS X
980
981 2007-10-02 Borut Razem <borut.razem AT siol.net>
982
983         * src/SDCCval.h: unified double2ul macro for all platforms
984         * src/SDCCval.c: fixed bug #1777758 - applied Maarten's patch
985         * support/regression/tests/bitwise.c: added regtest for bug #1777758
986
987 2007-09-30 Borut Razem <borut.razem AT siol.net>
988
989         * src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
990           platforms
991         * sdcc_vc_in.h: enabled warnings
992         * src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
993           unsigned type, result still unsigned
994         * src/mcs51/peep.c: fixed gcc warning: suggest parentheses around && within ||
995
996 2007-09-28 Raphael Neider <rneider AT web.de>
997
998         * src/pic/device.c (find_device): prevent buffer underflow error
999         * src/pic/pcoderegs.c (OptimizeRegUsage): avoid dereferencing
1000           the just destroyed list entry
1001
1002 2007-09-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1003
1004         * doc/sdccman.lyx: there's a dedicated wiki page for cmake and sdcc, thanks
1005           Alexander Neundorf
1006
1007 2007-09-18 Borut Razem <borut.razem AT siol.net>
1008
1009         * src/SDCCval.c: fixed MSVC warning C4146: unary minus operator
1010          applied to unsigned type, result still unsigned
1011
1012 2007-09-17 Borut Razem <borut.razem AT siol.net>
1013
1014         * src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c,
1015           src/SDCCicode.c, src/SDCCopt.c, src/SDCCsymt.c, src/SDCCval.c,
1016           src/SDCCval.h, src/hc08/gen.c, src/avr/gen.c, src/ds390/gen.c,
1017           src/mcs51/gen.c, src/pic/gen.c, src/pic/genarith.c, src/pic/glue.c,
1018           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/genarith.c,
1019           src/pic16/genutils.c, src/pic16/glue.c, src/pic16/main.c,
1020           src/z80/gen.c, src/z80/ralloc.c:
1021           fixed bug #1739860 - sdcc does not work correctly on some platforms
1022           (not finished)
1023           introduced and used ulFromVal(), double2ul(), used strtod() instead sscanf()
1024
1025 2007-09-17 Raphael Neider <rneider AT web.de>
1026
1027         * src/pic16/device.c: reverted to previous version
1028         * device/lib/pic16/Makefile.common.in: quieten gpasm via -Wa,-q
1029
1030 2007-09-16 Raphael Neider <rneider AT web.de>
1031
1032         * src/pic16/device.c (pic16_dump_usection): do not reserve 0 bytes,
1033           as this raises a ton of gpasm warnings, just emit a second label
1034         * src/pic16/devices.inc,
1035         * device/lib/pic16/pics.all,
1036         * device/lib/pic16/libdev/pic18f2585.c,
1037         * device/lib/pic16/libdev/pic18f2680.c,
1038         * device/lib/pic16/libdev/pic18f2682.c,
1039         * device/lib/pic16/libdev/pic18f2685.c,
1040         * device/lib/pic16/libdev/pic18f4585.c,
1041         * device/lib/pic16/libdev/pic18f4680.c,
1042         * device/lib/pic16/libdev/pic18f4682.c,
1043         * device/lib/pic16/libdev/pic18f4685.c,
1044         * device/include/pic16/pic18f2585.h,
1045         * device/include/pic16/pic18f2680.h,
1046         * device/include/pic16/pic18f2682.h,
1047         * device/include/pic16/pic18f2685.h,
1048         * device/include/pic16/pic18f4585.h,
1049         * device/include/pic16/pic18f4680.h,
1050         * device/include/pic16/pic18f4682.h,
1051         * device/include/pic16/pic18f4685.h,
1052         * device/include/pic16/pic18fregs.h: added 18f2585, 18f2680,
1053           18f2682, 18f2685, 18f4585, 18f4680, 18f4682, 18f4685,
1054           patch contributed by Anton Strobl, applied with changes
1055
1056 2007-09-16 Raphael Neider <rneider AT web.de>
1057
1058         * device/include/pic16/pic18f2431.h,
1059         * device/include/pic16/pic18f25j10.h,
1060         * device/include/pic16/pic18f4431.h,
1061         * device/include/pic16/pic18f45j10.h: adopted common include style
1062         * device/include/pic16/pic18f1320.h,
1063         * device/include/pic16/pic18f2320.h,
1064         * device/include/pic16/pic18f2525.h,
1065         * device/include/pic16/pic18f4320.h,
1066         * device/include/pic16/pic18f4525.h: NEW, just include proper .h file
1067         * device/include/pic16/pic18fregs.h: prepared for automatic include
1068           file selection by having DEVICE.h for every DEVICE
1069         * device/lib/pic16/libdev/pic18f2320.c,
1070         * device/lib/pic16/libdev/pic18f4320.c: just include proper .c file
1071
1072         * device/lib/pic16/configure.in,
1073         * device/lib/pic16/configure: use rm -rf instead of rmdir
1074         * device/lib/pic16/Makefile.in: use RMDIR to remove build directories
1075         * device/lib/pic16/libc/stdlib/free.c: avoid warning on pointer cast
1076
1077 2007-09-09 Borut Razem <borut.razem AT siol.net>
1078
1079         * src/SDCCmain.c, src/SDCCutil.c: print newline after printVersionInfo(),
1080           distingush between i386 and ppc Mac OS X versions
1081
1082 2007-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
1083
1084         * src/mcs51/gen.c (genReceive): fixed bug 1788177
1085         * support/regression/tests/bug1788177.c: new, added
1086
1087 2007-09-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1088
1089         * doc/sdccman.lyx: mentioned d52 and cmake, customizing startup code
1090         * device/include/mcs51/lint.h added keyword __naked
1091
1092 2007-09-04 Maarten Brock <sourceforge.brock AT dse.nl>
1093
1094         * src/pic16/glue.c,
1095         * src/pic/glue.c,
1096         * src/SDCCmem.h: removed maxRegBank
1097         * src/SDCCmem.c (allocVariables): removed maxRegBank and moved setting
1098           RegBankUsed[] to checkFunction() in SDCCsymt.c to fix bug 1759839
1099         * src/SDCCsymt.c (checkFunction): set RegBankUsed[] here
1100         * src/mcs51/peep.c (isCallerSaveFunc, termScanAtFunc): changed function
1101           name and behaviour to handle banked functions
1102           (scan4op): and use it to fix bug 1786213
1103
1104 2007-09-03 Raphael Neider <rneider AT web.de>
1105
1106         * device/include/pic16/pic18f248.h,
1107         * device/include/pic16/pic18f258.h,
1108         * device/include/pic16/pic18f448.h,
1109         * device/lib/pic16/libdev/pic18f248.c,
1110         * device/lib/pic16/libdev/pic18f258.c,
1111         * device/lib/pic16/libdev/pic18f448.c: fixed TRISEbits,
1112           added T0CONbits, fixes #1786891
1113
1114 2007-08-29 Maarten Brock <sourceforge.brock AT dse.nl>
1115
1116         * src/ds390/gen.c (genFarPointerSet),
1117         * src/hc08/ralloc.c (packRegisters),
1118         * src/mcs51/ralloc.c (packRegisters),
1119         * src/SDCCcse.c (cseBBlock): check if result is a symbol first to fix
1120           bug 1750318
1121         * src/SDCCicode.h: POINTER_SET can be true for literals too
1122         * support/regression/tests/bug1750318.c: new, added
1123
1124 2007-08-23 Borut Razem <borut.razem AT siol.net>
1125
1126         * debugger/mcs51/sdcdb.c: fixed compilation with older readline
1127           library versions without the completition functionality
1128
1129 2007-08-22 Raphael Neider <rneider AT web.de>
1130
1131         * device/include/pic16/pic18f1220.h,
1132         * device/lib/pic16/libdev/pic18f1220.c: applied patch #1776191
1133
1134 2007-08-12 Borut Razem <borut.razem AT siol.net>
1135
1136         * debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
1137
1138 2007-08-11 Borut Razem <borut.razem AT siol.net>
1139
1140         * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
1141           src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
1142           support/Util/SDCCerr.[ch] moved to src
1143         * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
1144           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
1145           device/examples/ds390/tinitalk/tinitalk.dsp,
1146           device/examples/serialcomm/windows/serialcomm.dsp,
1147           support/librarian/librarian.dsp:
1148           removed linking of unused odbc32.lib and odbccp32.lib
1149         * support/scripts/winres.h:
1150           added for compilation with Visual C++ 2005 Express Edition
1151
1152 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1153
1154         * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
1155           and CKCON1.
1156
1157 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1158
1159         * sdccconf_in.h: update the endian test so that SPARC Solaris
1160           does not throw syntax errors
1161
1162 2007-08-06 Borut Razem <borut.razem AT siol.net>
1163
1164         * doc/sdccman.lyx: removed two index entries which prevented the
1165           generation of sdcc doc archive
1166
1167 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1168
1169         * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
1170           instead of lyx 1.5.0.
1171
1172 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1173
1174         * device/include/hc08/mc68hc908apxx.h: new header contributed by
1175           Lucas Loizaga, with minor modifications. Thanks!
1176
1177 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1178
1179         * doc/sdccman.lyx: Documented --acall-ajmp and described new features
1180           in sdcclib.
1181
1182 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1183
1184         * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
1185           src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
1186           with acall/ajmp.
1187
1188 2007-07-22 Borut Razem <borut.razem AT siol.net>
1189
1190         * configure.in, configure: re-introduced .version
1191         * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
1192           the version reverted to 2.7.0
1193
1194 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
1195
1196         * configure.in,
1197         * doc/sdccman.lyx: bumped version to 2.7.3
1198         * device/include/mcs51/compiler.h: fixed elif->else
1199         * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
1200         * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
1201           (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
1202            enable accuse for bit operands
1203         * src/SDCCmain.c (printVersionInfo),
1204         * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
1205           environment descriptor
1206         * src/SDCCutil.h: added getBuildEnvironment
1207         * src/SDCCglue.c (initialComments): use getBuildEnvironment
1208         * support/regression/tests/bug1464657.c: enabled test test_Peephole251
1209         * support/regression/tests/bug-408972.c: enabled test leftShiftLong
1210         * support/regression/tests/bug1348008.c,
1211         * support/regression/tests/bug1496419.c,
1212         * support/regression/tests/bug1503067.c,
1213         * support/regression/tests/preproc.c: added empty tests
1214
1215 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
1216
1217         * support/regression/tests/bug1678803.c: new, added
1218
1219 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
1220
1221         * as/link/aslink.h,
1222         * as/link/hc08/lkihx.c,
1223         * as/link/hc08/lkrloc.c,
1224         * as/link/mcs51/lkihx.c,
1225         * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
1226           ihxExtendedLinearAddress
1227         * as/link/mcs51/lkrloc.c (relr),
1228         * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
1229           acall/ajmp, see bug 830513
1230
1231 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
1232
1233         * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
1234           (cseBBlock): remember aggr2ptr has been used
1235         * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
1236           (geniCodeAssign): fixed bug 868103
1237         * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
1238           added operandSize prototype
1239         * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
1240           (genDataPointerSet): use max of size of right and result,
1241           (gencjne): added parameter useCarry for optimization,
1242           (genCmpEq): use carry if appropriate,
1243           (genXor): check if operand already in carry
1244         * support/regression/tests/bug-868103.c: enabled test
1245
1246 2007-07-12 Raphael Neider <rneider AT web.de>
1247
1248         * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
1249
1250 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
1251
1252         * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
1253           from Robert Larice, thanks
1254         * support/regression/tests/bitopcse.c,
1255         * support/regression/tests/bitvars.c,
1256         * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
1257         * support/regression/tests/bug-927659.c: enabled test for z80
1258         * support/regression/tests/bug1738367.c: added extra tests by Frieder
1259         * support/regression/tests/bug1745717.c: new, added
1260         * support/regression/tests/literalop.c,
1261         * support/regression/tests/nullstring.c: removed storage definitions that
1262           are now in testfwk.h
1263
1264 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
1265
1266         * device/include/stdbool.h: do not define __bool_true_false_are_defined
1267           and bool for targets that do not fully support it.
1268         * support/regression/tests/bug1546986.c,
1269         * support/regression/tests/bug1723128.c,
1270         * support/regression/tests/bug1734654.c,
1271         * support/regression/tests/bug1738367.c,
1272         * support/regression/tests/constantRange.c: only use bool if allowed
1273
1274 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
1275
1276         * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
1277           Larice, also handle function pointers
1278         * support/regression/tests/bug1749275.c: new, added
1279
1280 2007-07-03 Borut Razem <borut.razem AT siol.net>
1281
1282         * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
1283           src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
1284           #1746528: SDCC should ignore ':' in inline assembler comments
1285         * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
1286
1287 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
1288
1289         * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
1290         * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
1291
1292 2007-06-29 Borut Razem <borut.razem AT siol.net>
1293
1294         * src/SDCCmain.c: fixed bug
1295           #1744746: SDCC #4867: broken option --xram-size
1296
1297 2007-06-28 Borut Razem <borut.razem AT siol.net>
1298
1299         * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
1300           find out the endianess of host machine for ucsim
1301
1302 2007-06-27 Borut Razem <borut.razem AT siol.net>
1303
1304         * support/regression/generate-cases.py: corrected the file name
1305           in warning
1306         * configure.in, configure, sdccconf_in.h: find out the endianess of
1307           host machine
1308         * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
1309           negative size
1310
1311 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
1312
1313         * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
1314
1315 2007-06-26 Borut Razem <borut.razem AT siol.net>
1316
1317         * support/regression/generate-cases.py: display warning if function
1318           list is empty; implemented more flexible rule for detection of
1319           testing functions, allowing return type 'void' in the same line as
1320           the function name in the function definition
1321         * support/regression/tests/bug-1654060.c: corrected test
1322         * support/librarian/sdcclib.c: fixed warning:
1323           format '%s' expects type 'char *', but argument 2 has type 'int'
1324
1325 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1326
1327         * support/librarian/sdcclib.c: Added feature Requests [1510635]
1328           Multiple infiles for sdcclib.
1329
1330 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1331
1332         * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
1333           bug 1731741
1334
1335 2007-06-18 Borut Razem <borut.razem AT siol.net>
1336
1337         * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
1338           how to handle comments, so they have to be removed by the
1339           preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
1340         * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
1341           src/pic16/main.c, src/pic/main.c, src/z80/main.c,
1342           support/Util/SDCCerr.c, support/Util/SDCCerr.h:
1343           table driven option hadling
1344
1345 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
1346
1347         * src/SDCCast.c (decorateType),
1348         * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
1349           iCode to ast level to fix bug 1738367
1350         * support/regression/tests/bug1738367.c: new, added
1351
1352 2007-06-15 Raphael Neider <rneider AT web.de>
1353
1354         * src/pic16/devices.inc,
1355         * device/lib/pic16/pics.all,
1356         * device/include/pic16/pic18fregs.h,
1357         * device/include/pic16/pic18f[24][45]20.h,
1358         * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
1359           18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
1360         * device/lib/pic16/Makefile.in: faster cleanup
1361
1362 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1363
1364         * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
1365
1366 2007-06-13 Raphael Neider <rneider AT web.de>
1367
1368         * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
1369
1370 2007-06-12 Raphael Neider <rneider AT web.de>
1371
1372         * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
1373           suppress bit defines if NO_BIT_DEFINES is #define'd
1374         * device/include/pic/pic*.h: recreated all headers to include
1375           conditional bit defines
1376         * device/include/pic/pic16f886.h,
1377         * device/include/pic/pic16f887.h: fixed based on newer .inc file
1378         * device/include/pic/recreate.sh: script to recreate the complete
1379           device library files based on the currently supported devices
1380
1381 2007-06-12 Borut Razem <borut.razem AT siol.net>
1382
1383         * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
1384           support/regression/Makefile.in, support/scripts/build.mak,
1385           support/scripts/Makefile.snapshot:
1386           use new svn URL scheme
1387         * doc/sdccman.lyx: SDCC Wiki moved to
1388           http://sdcc.wiki.sourceforge.net/
1389
1390 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1391
1392         * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
1393         * support/regression/tests/bug1734654.c: added
1394
1395 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
1396
1397         * src/SDCCast.c (decorateType): optimized '?' for equal operands
1398         * src/SDCCicode.c (geniCodeConditional): optimization for bit result
1399           with literal operands
1400
1401 2007-06-10 Borut Razem <borut.razem AT siol.net>
1402
1403         * as/link/z80/lklibr.c: fixed mingw build warning
1404           lklibr.c:575: warning: implicit declaration of function 'tolower'
1405         * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
1406           src/z80/main.c: move target specific options from src/SDCCmain.c
1407           to src/<target>/main.c
1408
1409 2007-06-09 Borut Razem <borut.razem AT siol.net>
1410
1411         * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
1412           removed unused swap_sense; removed outBitCLong, replaced with outBitC
1413         * support/regression/tests/bug-1294691.c: added
1414
1415 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
1416
1417         * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
1418           can also be static, fixes bug 1733438
1419         * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
1420           have absolute address too
1421           (computeType): added optimization for 'cond ? true : false'
1422         * support/regression/tests/absolute.c: added test for static absolute var
1423
1424 2007-06-08 Raphael Neider <rneider AT web.de>
1425
1426         * src/regression/Makefile: suppress parallel builds, allow easy
1427           switching between pic14/pic16 ports
1428         * src/regression/picregs.h: added pic14/16 header file switch
1429         * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
1430           inline.c,nestfor.c,string1.c}: include "picregs.h"
1431
1432 2007-06-07 Borut Razem <borut.razem AT siol.net>
1433
1434         * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
1435           permanent solution to suppress GCC 4.2.0 c++ warning:
1436           deprecated conversion from string constant to `char *'
1437           use 'const char *' where ever required
1438         * support/regression/generate-cases.py: implemented more flexible rule
1439           for detection of testing functions, allowing white-spaces surrounding
1440           the function name and the 'void' parameter.
1441         * support/regression/tests/constantRange.c,
1442           support/regression/tests/scott-compare3.c: fixed failing regression
1443           tests, uncovered by implementation of more flexible rule for detection
1444           of testing functions
1445
1446 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
1447
1448         * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
1449
1450 2007-06-04 Borut Razem <borut.razem AT siol.net>
1451
1452         * configure.in, configure, config_vc.awk: sdcc version number is now
1453           stored in configure.in; removed .version
1454         * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
1455           doc/INSTALL.txt: version bumped to 2.7.2
1456         * sim/ucsim/configure.in, sim/ucsim/configure:
1457           use "read" to read from .version
1458
1459 2007-06-03 Borut Razem <borut.razem AT siol.net>
1460
1461         * */Makefile.in: removed annoying warning:
1462           Makefile:xx: Makefile.dep: No such file or directory
1463
1464 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
1465
1466         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
1467           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
1468         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
1469         * src/SDCCast.c (resultTypePropagate): propagate for '!',
1470           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
1471           bugfix: only use newBoolLink for bit result type
1472         * src/SDCCicode.c (geniCodeLogic): added param tree,
1473           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
1474           (geniCodeLogicAndOr): use IS_BIT,
1475           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
1476           (ast2iCode): added tree param to geniCodeLogic for comparisons
1477         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
1478         * support/regression/tests/bug1723128.c: added test NotZero
1479
1480 2007-06-01 Borut Razem <borut.razem AT siol.net>
1481
1482         * SDCPP synchronized with GCC CPP release version 4.2.0,
1483           currently the latest release:
1484         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1485           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
1486           support/cpp2/cppdefault.h, support/cpp2/except.h,
1487           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
1488           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
1489           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
1490           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
1491           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
1492           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
1493           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
1494           support/cpp2/opts.h, support/cpp2/output.h,
1495           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
1496           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
1497           support/cpp2/system.h, support/cpp2/version.c,
1498           support/cpp2/Makefile.in: modified
1499         * support/cpp2/opts-common.c: added
1500         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
1501         * device/lib/pic16/libdev/pic18f[24]5j10.c:
1502           search for included source file in local directory
1503         * sim/ucsim/configure, sim/ucsim/configure.in:
1504           temporary solution to suppress GCC 4.2.0 c++ warning:
1505           deprecated conversion from string constant to `char *'
1506
1507 2007-06-01 Raphael Neider <rneider AT web.de>
1508
1509         * device/lib/pic/libdev/pic12f683.c,
1510         * device/include/pic/pic12f683.h: added GPIO bits
1511
1512 2007-06-01 Raphael Neider <rneider AT web.de>
1513
1514         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
1515           quotation marks, clarified role of PIC14 vs. PIC16 ports
1516         * src/pic16/devices.inc,
1517         * device/include/pic16/pic18fregs.h,
1518         * device/include/pic16/pic18f[24][45]j10.h,
1519         * device/lib/pic16/pics.all,
1520         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
1521           18f24j10, 18f25j10, 18f44j10, and 18f45j10
1522         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
1523           for new devices as they are not yet supported by gputils
1524
1525 2007-05-31 Borut Razem <borut.razem AT siol.net>
1526
1527         * Small Device C Compiler 2.7.0 released
1528         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
1529           changed sdcc version to 2.7.1
1530         * support/scripts/sdcc.nsi: added How to create WIN32 release
1531           setup.exe package
1532
1533 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
1534
1535         * doc/sdccman.lyx: documented initialization and allocation of absolute
1536           variables, bit parameter passing, the need for function pointers to be
1537           reentrant and alpha quality support of inline and retrict
1538
1539 2007-05-26 Borut Razem <borut.razem AT siol.net>
1540
1541         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
1542           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
1543         * docs/knownbugs.html: updated
1544
1545 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
1546
1547         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
1548           thanks Jan Waclawek
1549         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
1550           AOP_CRY and ruonly
1551           (gencjneshort): optimized when left is AOP_DIR
1552         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
1553           initializing unions in a struct/array
1554         * support/regression/fwk/include/testfwk.h: added defines for data, near
1555           and far for host and z80
1556         * support/regression/tests/bug1723128.c: new, added
1557
1558 2007-05-22 Borut Razem <borut.razem AT siol.net>
1559
1560         * doc/knownbugs.html: updated
1561
1562 2007-05-21 Raphael Neider <rneider AT web.de>
1563
1564         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
1565           error message instead
1566         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
1567
1568 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
1569
1570         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
1571
1572 2007-05-21 Raphael Neider <rneider AT web.de>
1573
1574         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
1575           closes #1722392
1576         * src/regression/gpsim_assert.h,
1577         * src/regression/Makefile,
1578         * src/regression/pcodeopt.c: regression test for the above fix
1579
1580 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
1581
1582         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
1583           jumps to self, fixed bug 1717281
1584
1585 2007-05-10 Borut Razem <borut.razem AT siol.net>
1586
1587         * support/scripts/gen_known_bugs.pl: cosmetic fix
1588         * doc/knownbugs.html: generated by gen_known_bugs.pl
1589
1590 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1591
1592         * src/SDCCast.c (createFunction): also generate non-inlined version of
1593           function for functions declared as "static inline"
1594         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
1595           function can be inlined after non-inlined version generated.
1596
1597 2007-05-10 Borut Razem <borut.razem AT siol.net>
1598
1599         * support/scripts/gen_known_bugs.pl: added script
1600           which generates knownbugs.html
1601
1602 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
1603
1604         * doc/knownbugs.html: updated for release 2.7.0
1605
1606 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1607
1608         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
1609
1610 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
1611
1612         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
1613           (throughout): updated generating comments
1614         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
1615           (throughout): updated generating comments
1616         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
1617           rule instead of at the second, or it might skip lines when removing the
1618           complete match
1619         * support/regression/tests/bug1714204.c: changed test to foo
1620
1621 2007-05-08 Borut Razem <borut.razem AT siol.net>
1622
1623         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
1624           thanks to SDCC Distributed Compile Farm members,
1625           added Z80 and GBZ80 command line options
1626         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
1627
1628 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
1629
1630         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
1631         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
1632         * support/regression/tests/longlit.c: modified to be tested at all and
1633           to pass the actual test
1634
1635 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1636
1637         * device/include/mcs51/uPSD33xx.h: Added.
1638
1639 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
1640
1641         * device/lib/_gptrput.c,
1642         * device/lib/_gptrget.c: removed old code,
1643          (_gptrgetWord),
1644         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
1645         * support/regression/tests/bug1714204.c: new, added
1646
1647 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1648
1649         * support/regression/tests/regtrack.c: test was never executed
1650           because of the regression test being picky about white spaces.
1651         * device/lib/mcs51/crtclear.asm: added comment
1652
1653 2007-05-06 Raphael Neider <rneider AT web.de>
1654
1655         * device/lib/pic/Makefile.rules,
1656         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
1657           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
1658
1659 2007-05-06 Raphael Neider <rneider AT web.de>
1660
1661         * src/pic16/device.h,
1662         * src/pic16/main.h,
1663         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
1664           _pic16_setDefaultOptions): removed/reordered command-line args
1665         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
1666           devices, regrouped command line args, environment variables),
1667           clarified sone points, added sections on how to add devices to the
1668           PIC14/PIC16 ports
1669
1670 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
1671
1672         * src/z80/peeph.def: fixed bug in rule 2
1673
1674 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
1675
1676         * src/port.h: added TARGET_MCS51_LIKE
1677         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
1678           take advantage of it too
1679         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
1680           (shiftR2Left2Result): Optimized: don't check shifting by 0
1681         * src/z80/peeph-z80.def,
1682         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
1683           modifications, see patch 1700823
1684         * src/mcs51/peep.c (): fixed bug 1712928
1685         * support/regression/tests/bug1712928.c: new, added
1686
1687 2007-05-05 Borut Razem <borut.razem AT siol.net>
1688
1689         * device/lib/pic16/Makefile.common.in,
1690           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
1691           removed bash dependencies
1692
1693 2007-05-01 Borut Razem <borut.razem AT siol.net>
1694
1695         * src/SDCCicode.c:
1696           fixed bug #1710507: --i-code-in-asm makes compile fail
1697           all iCode comments are now one liners
1698         * src/mcs51/gen.c: fixed memory leak
1699
1700 2007-05-01 Raphael Neider <rneider AT web.de>
1701
1702         * device/lib/pic/libdev/*.c
1703         * device/include/pic/*.h: regenerated all device libs from updated
1704           .inc files
1705         * support/scripts/inc2h.pl: documented usage, now uses strict to
1706           catch more bugs
1707
1708 2007-04-30 Borut Razem <borut.razem AT siol.net>
1709
1710         * doc/sdccman.lyx:
1711           fixed bug #1669175: Problem with space in output paths
1712           documented how to use paths with spaces for Windows users
1713
1714 2007-04-29 Borut Razem <borut.razem AT siol.net>
1715
1716         * Fixed svn:eol-style and svn:keywords properties
1717         * src/SDCCval.c: fixed bug
1718           #1592871: Segfault with "large" const arrays of characters
1719           replaced recursion with iteration
1720         * Removed svn:executable property from non-executable files
1721
1722 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
1723
1724         * src/mcs51/gen.c (genRet): fixed bug 1707003
1725
1726 2007-04-27 Raphael Neider <rneider AT web.de>
1727
1728         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
1729           createReachingDefinitions,assignValnums,pic16_destructDF,
1730           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
1731           prevent NULL pointer dereferences
1732         * device/lib/pic/libdev/pic16f886.c,
1733         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
1734           prevent building them, gputils do not really support them yet
1735
1736 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1737
1738         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
1739           helps printf_small. 32 bytes more __idata mem.
1740
1741 2007-04-27 Raphael Neider <rneider AT web.de>
1742
1743         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
1744           return early when pb or pb->pcHead is NULL (patch #1708427)
1745         * src/regression/empty.c,
1746         * src/regression/Makefile: added test with empty functions
1747         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
1748
1749 2007-04-27 Borut Razem <borut.razem AT siol.net>
1750
1751         * src/SDCCast.c: fixed feature request
1752           #1547512: Redundant strings linked when using sizeof("abc")
1753
1754 2007-04-23 Borut Razem <borut.razem AT siol.net>
1755
1756         * doc/sdccman.lyx, src/SDCCmain.c:
1757           peep-hole comments are generated only if --fverbose-asm option is
1758           specified and --no-peep-comments is not, as proposed by Frieder.
1759         * support/regression/Makefile.in: compile regression tests with
1760           --fverbose-asm option so one can "grep" whether a new (or an old)
1761           peephole is (still) applied; requested by Frieder.
1762
1763 2007-04-23 Kevin Buettner <kevin AT buettner.to>
1764
1765         * device/include/pic/pic16f886.h,
1766         * device/include/pic/pic16f887.h,
1767         * device/lib/pic/libdev/pic16f886.c,
1768         * device/lib/pic/libdev/pic16f887.c,
1769         * device/include/pic/pic14devices.txt,
1770         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
1771
1772 2007-04-23 Kevin Buettner <kevin AT buettner.to>
1773
1774         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
1775           fixes #1704666
1776
1777 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1778
1779         * device/lib/_memset.c: assembler version for mcs51
1780
1781 2007-04-22 Borut Razem <borut.razem AT siol.net>
1782
1783         * support/scripts/listerr.c: program to create the list of errors and
1784           warnings list from - added
1785         * doc/sdccman.lyx: removed the note
1786           "For list of warnings and corresponding codes, see err_warn.txt"
1787         * src/SDCCsymt.c: fixed bug #1699804:
1788           Bug with some uses of sizeof(static local array) (MCS51)
1789         * support/regression/tests/bug-1699804.c: added
1790
1791 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
1792
1793         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
1794           (main): added option -i,
1795           (asmbl, case S_INCL): use search_path_fopen,
1796           mostly from patch 1579668 by Peter Miller, thanks
1797         * src/z80/main.c: fixed typo --callee-saves-bc
1798         * device/include/mcs51/compiler.h: added sfrword for Tasking
1799
1800 2007-04-20 Borut Razem <borut.razem AT siol.net>
1801
1802         * src/z80/main.c: replaced reserved keyword asm with asmblr
1803
1804 2007-04-19 Borut Razem <borut.razem AT siol.net>
1805
1806         * src/port.h: use const pointers to strings
1807         * src/SDCCargs.h: declared getStringArg() and getIntArg()
1808         * src/pic16/main.c: include SDCCargs.h
1809         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
1810           const char, since the strings are dynamically allocated
1811         * src/SDCCmain.c: options.code_seg and options.const_seg are
1812           dynamically allocated; check port specific command line options
1813           before the general ones
1814         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
1815
1816 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
1817
1818         * device/include/ds400rom.h,
1819         * device/lib/ds390/lcd390.c,
1820         * device/lib/ds390/memcpyx.c,
1821         * device/lib/ds390/rtc390.c,
1822         * device/lib/ds400/ds400rom.c,
1823         * device/lib/ds400/memcpyx.c,
1824         * device/lib/hc08/_ret.c: more replacements of keywords with their
1825           double underscore equivalents
1826         * device/lib/ds390/Makefile.in,
1827         * device/lib/ds400/Makefile.in,
1828         * device/lib/gbz80/Makefile.in,
1829         * device/lib/hc08/Makefile.in,
1830         * device/lib/mcs51/Makefile.in,
1831         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
1832
1833 2007-04-17 Borut Razem <borut.razem AT siol.net>
1834
1835         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
1836           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
1837           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
1838           to --fverbose-asm, to be gcc'ish
1839
1840 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
1841
1842         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
1843
1844 2007-04-17 Borut Razem <borut.razem AT siol.net>
1845
1846         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
1847         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
1848           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
1849           with their double underscore equivalent
1850
1851 2007-04-14 Borut Razem <borut.razem AT siol.net>
1852
1853         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
1854           source"
1855
1856 2007-04-13 Borut Razem <borut.razem AT siol.net>
1857
1858         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
1859           C99 standard
1860         * device/examples/serialcomm/windows/serial.[ch],
1861           device/examples/serialcomm/windows/test_serialcomm.cpp:
1862           updated by Bela Torok
1863         * device/examples/serialcomm/windows/serialcomm.dsw,
1864           device/examples/serialcomm/windows/serialcomm.dsp: added
1865
1866 2007-04-13 Jan Waclawek <wek AT efton.sk>
1867
1868         * doc/sdccman.lyx: additions and changes at various places
1869           (submitted as #1697136).
1870           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
1871
1872 2007-04-10 Borut Razem <borut.razem AT siol.net>
1873
1874         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
1875           LyX file format changed to 245
1876         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
1877           "FreeWare" replaced with "free open source"
1878
1879 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
1880
1881         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
1882
1883 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
1884
1885         * device/include/pic16/pic18fregs.h,
1886         * device/lib/_bp.c,
1887         * device/lib/_decdptr.c,
1888         * device/lib/_divsint.c,
1889         * device/lib/_divslong.c,
1890         * device/lib/_divuint.c,
1891         * device/lib/_divulong.c,
1892         * device/lib/_fs2schar.c,
1893         * device/lib/_fs2sint.c,
1894         * device/lib/_fs2slong.c,
1895         * device/lib/_fs2uchar.c,
1896         * device/lib/_fs2uint.c,
1897         * device/lib/_fs2ulong.c,
1898         * device/lib/_fsadd.c,
1899         * device/lib/_fscmp.c,
1900         * device/lib/_fsdiv.c,
1901         * device/lib/_fseq.c,
1902         * device/lib/_fsget1arg.c,
1903         * device/lib/_fsget2args.c,
1904         * device/lib/_fsgt.c,
1905         * device/lib/_fslt.c,
1906         * device/lib/_fsmul.c,
1907         * device/lib/_fsneq.c,
1908         * device/lib/_fsnormalize.c,
1909         * device/lib/_fsreturnval.c,
1910         * device/lib/_fsrshift.c,
1911         * device/lib/_fssub.c,
1912         * device/lib/_fsswapargs.c,
1913         * device/lib/_gptrget.c,
1914         * device/lib/_gptrgetc.c,
1915         * device/lib/_gptrput.c,
1916         * device/lib/_logexpf.c,
1917         * device/lib/_modsint.c,
1918         * device/lib/_modslong.c,
1919         * device/lib/_moduint.c,
1920         * device/lib/_modulong.c,
1921         * device/lib/_mulint.c,
1922         * device/lib/_mullong.c,
1923         * device/lib/_schar2fs.c,
1924         * device/lib/_ser.c,
1925         * device/lib/_setjmp.c,
1926         * device/lib/_sint2fs.c,
1927         * device/lib/_slong2fs.c,
1928         * device/lib/_spx.c,
1929         * device/lib/_uchar2fs.c,
1930         * device/lib/_uint2fs.c,
1931         * device/lib/_ulong2fs.c,
1932         * device/lib/asincosf.c,
1933         * device/lib/atanf.c,
1934         * device/lib/calloc.c,
1935         * device/lib/ds390/tinibios.c,
1936         * device/lib/ds400/tinibios.c,
1937         * device/lib/expf.c,
1938         * device/lib/free.c,
1939         * device/lib/hc08/_mulint.c,
1940         * device/lib/logf.c,
1941         * device/lib/malloc.c,
1942         * device/lib/printf_fast.c,
1943         * device/lib/printf_tiny.c,
1944         * device/lib/printfl.c,
1945         * device/lib/realloc.c,
1946         * device/lib/ser_ir.c,
1947         * device/lib/serial.c,
1948         * support/regression/tests/libmullong.c: replaced all special keywords
1949           with their double underscore equivalent
1950         * support/regression/ports/mcs51-xstack-auto/spec.mk,
1951         * device/lib/Makefile.in: compile libs with --std-c99 instead of
1952           --std-sdcc99
1953         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
1954           (genRet): if the bit-symbol is ruonly it already is in the carry
1955         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
1956         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
1957         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
1958           type UCHAR if dest is not bit
1959
1960 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
1961
1962         * device/include/math.h,
1963         * device/lib/cotf.c,
1964         * device/lib/expf.c,
1965         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
1966
1967 2007-04-01 Borut Razem <borut.razem AT siol.net>
1968
1969         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
1970           fixed bug #1692042: input buffer overflow...scanner uses REJECT
1971         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
1972           gcc_unreachable() called internal_error()...
1973
1974 2007-03-30 Raphael Neider <rneider AT web.de>
1975
1976         * src/pic/ralloc.c (isData): suppress garbage debug output
1977
1978 2007-03-28 Borut Razem <borut.razem AT siol.net>
1979
1980         * doc/sdccman.lyx:
1981           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
1982           is developed, built and used worldwide, and the word "night" doesn't
1983           make any sense.
1984
1985 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
1986
1987         * device/include/mcs51/C8051F360.h: new, added
1988         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
1989
1990 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1991
1992         * src/SDCC.y (declaration_specifiers, function_specifier),
1993         * support/Util/SDCCerr.c,
1994         * support/Util/SDCCerr.h,
1995         * src/SDCCsymt.h,
1996         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
1997           inline keyword
1998         * src/SDCCmem.c (deallocParms),
1999         * src/SDCCast.c: support for function inlining, not quite complete
2000         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
2001           'restrict' qualifier
2002
2003 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
2004
2005         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
2006           (saveRBank, unsaveRBank): don't save bits,
2007           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
2008         * support/regression/tests/bug1535242.c: new, added
2009         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
2010           thanks Alexey Shamrin <shamrin AT gmail.com>,
2011           made assert.h header ANSI compliant (added a check for NDEBUG macro,
2012           removed header guard)
2013         * .version,
2014         * sdcc.spec: bumped version to 2.6.5
2015         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
2016
2017 2007-03-22 Borut Razem <borut.razem AT siol.net>
2018
2019         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
2020           fixed bug #1653671: sdcdb integration into ddd is broken
2021
2022 2007-03-22 Raphael Neider <rneider AT web.de>
2023
2024         * src/pic/gen.c (popGetExternal): augmented to also create references
2025           to external variables (not only labels),
2026           (genCall): comment on plan to reduce PAGESEL overhead,
2027           (genFunction, genEndFunction): also save/restore FSR around interrupt
2028           handling code, removed lots of unused code
2029           (genDivOneByte): release acquired temp register
2030         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
2031           of popGetExternal
2032         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
2033           for registers that need to be saved during interrupts (FSR, STATUS,
2034           PCLATH; W needs special handling), currently only FSR is used
2035
2036 2007-03-22 Raphael Neider <rneider AT web.de>
2037
2038         * device/include/pic/pic14devices.txt: 16f688 has only one config word
2039
2040 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2041
2042         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
2043
2044 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
2045
2046         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
2047
2048 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
2049
2050         * as/link/aslink.h: added LKOBJEXT
2051         * as/link/hc08/link_hc08.dsp,
2052         * as/link/hc08/Makefile.bcc,
2053         * as/link/hc08/Makefile.in,
2054         * as/link/mcs51/aslink.dsp,
2055         * as/link/mcs51/Makefile.bcc,
2056         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
2057         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
2058         * as/link/lkaomf51.c: merged and moved
2059         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
2060         * as/link/z80/lkdata.c,
2061         * as/link/lkdata.c: merged and moved
2062         * as/link/hc08/lkmain.c,
2063         * as/link/mcs51/lkmain.c: cosmetic changes
2064         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
2065         * as/link/lklex.c: use LKOBJEXT
2066         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
2067           ANSI-fied functions, removed bubble-sorts
2068         * as/link/z80/lksym.c           as/link/lksym.c: merged,
2069           ANSI-fied functions
2070         * as/link/z80/linkgbz80.dsp,
2071         * as/link/z80/linkz80.dsp,
2072         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
2073           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
2074         * as/link/z80/lkhead.c,
2075         * as/link/z80/lklex.c: deleted
2076         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
2077         * as/link/z80/lkmain.c: added copyfile()
2078
2079 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2080
2081         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
2082
2083 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2084
2085         * device/lib/_strlen.c: assembler version for mcs51
2086
2087 2007-03-13 Raphael Neider <rneider AT web.de>
2088
2089         * device/include/pic16/pic18f2221.h,
2090         * device/include/pic16/pic18f2321.h,
2091         * device/include/pic16/pic18f2331.h,
2092         * device/include/pic16/pic18f4221.h,
2093         * device/include/pic16/pic18f4321.h,
2094         * device/include/pic16/pic18f4331.h: fixed config byte location names
2095         * support/scripts/inc2h-pic16.pl: removed debug output, emit
2096           consistently named config byte locations
2097
2098 2007-03-13 Borut Razem <borut.razem AT siol.net>
2099
2100         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
2101           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
2102           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
2103           as/link/z80/Makefile.in, as/z80/Makefile.in:
2104           introduced LDFLAGS
2105
2106 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2107
2108         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
2109         * device/lib/printf_large.c: pointer was converted to generic
2110         pointer for mcs51 models other than model-small (Maarten noticed)
2111
2112 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2113
2114         * device/include/mcs51/ADuC84x.h: Added.
2115
2116 2007-03-10 Borut Razem <borut.razem AT siol.net>
2117
2118         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
2119           fixed RFE #1624219: double backslashes in filenames;
2120           functions hexEscape(), octalEscape() and copyStr() moved from
2121           SDCCval.c to SDCCutil.c and made them glovbally available
2122
2123 2007-03-09 Borut Razem <borut.razem AT siol.net>
2124
2125         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
2126           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
2127           1673361: Missaligned comments in output files
2128
2129 2007-03-09 Raphael Neider <rneider AT web.de>
2130
2131         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
2132
2133 2007-03-09 Raphael Neider <rneider AT web.de>
2134
2135         * src/pic/gen.c,
2136         * src/pic/glue.c,
2137         * src/pic/ralloc.c: suppress undesired debug output
2138         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
2139
2140 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2141
2142         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
2143
2144 2007-03-07 Borut Razem <borut.razem AT siol.net>
2145
2146         * device/lib/pic16/libdev/pic18f[24][34]31.c:
2147           search include files in the current directory
2148
2149 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
2150
2151         * src/SDCCglue.c (emitMaps, glue),
2152         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
2153           absolute xdata
2154         * support/regression/tests/absolute.c: added xdata test
2155
2156 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
2157
2158         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
2159           added condition to macro, fixes bug 1666080
2160
2161 2007-03-02 Raphael Neider <rneider AT web.de>
2162
2163         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
2164
2165 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2166
2167         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
2168         be cleared. Unconditionally set __XPAGE
2169         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
2170
2171 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2172
2173         * src/SDCCglobl.h,
2174         * src/SDCCmain.c,
2175         * src/mcs51/gen.c,
2176         * src/mcs51/rtrack.c,
2177         * src/ds390/gen.c,
2178         * doc/sdccman.lyx: added --no-gen-comments
2179         * src/mcs51/peeph.def: added 192.b, disabled 185
2180
2181 2007-02-25 Raphael Neider <rneider AT web.de>
2182
2183         * src/pic16/gen.c (genCast): fixed typo
2184         * device/lib/pic16/Makefile.subdir: only install existing files
2185         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
2186
2187 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
2188
2189         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
2190         * device/lib/mcs51/crtclear.asm,
2191         * device/lib/mcs51/crtxclear.asm: renumbered labels
2192         * device/lib/mcs51/Makefile.in: added crtcall.asm
2193         * doc/sdccman.lyx: documented mcs51 crt* library startup code
2194         * src/mcs51/gen.c (movc): removed,
2195           (aopGet, genPlusBits): clear a after loading the carry (possibly from
2196             acc.x or psw.x),
2197           (toCarry, genSend, genRet): added function toCarry,
2198           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
2199           (assignBit, genAssign, genCast): added function assignBit
2200         * src/mcs51/Makefile.bcc: added rtrack.c
2201         * src/mcs51/ralloc.h: made valueKnown a bitfield
2202         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
2203           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
2204           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
2205         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
2206         * src/z80/gen.c: added AOP_IS_PAIRPTR,
2207           (_pop): only pop valid pairs, see gencjneshort,
2208           (gencjneshort): return pair that still needs to be popped, restructured,
2209           (gencjne, genCmpEq): call _pop
2210
2211 2007-02-23 Raphael Neider <rneider AT web.de>
2212
2213         * device/include/pic/pic14devices.txt: 16f684 has only one config word
2214
2215 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2216
2217         * device/include/mcs51/P89LPC925.h: Added.
2218
2219 2007-02-18 Raphael Neider <rneider AT web.de>
2220
2221         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
2222
2223 2007-02-17 Borut Razem <borut.razem AT siol.net>
2224
2225         * support/cpp2/directives.c, support/cpp2/version.c:
2226           synchronized with GCC CPP 4.1.2
2227
2228 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2229
2230         * src/mcs51/rtrack.h,
2231         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
2232           by checking the strings passed by emitcode() to the assembler.
2233           Feel free to change. This in part addresses RFE #482179.
2234           Set environment variable SDCC_RTRACK to enable.
2235         * src/mcs51/gen.c: inserted hooks
2236         * src/mcs51/ralloc.h: added two members to struct regs
2237         * support/regression/tests/regtrack.c: added
2238
2239 2007-02-14 Borut Razem <borut.razem AT siol.net>
2240
2241         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
2242         * Makefile.in: applied patch from Makefile related part of
2243           #1469393: Compiler does not initialize static data
2244
2245 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
2246
2247         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
2248           for better fix of bug 1273984, compiles pic16 rand.c
2249
2250 2007-02-12 Borut Razem <borut.razem AT siol.net>
2251
2252         * src/pic16/main.c: fixed pic16 standard library directory bug
2253
2254 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
2255
2256         * src/hc08/gen.c (genSwap): fix swap regression test
2257
2258 2007-02-10 Borut Razem <borut.razem AT siol.net>
2259
2260         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
2261           with same scope
2262         * support/regression/tests/bug-1654060.c: added regression test for
2263           #1654060
2264
2265 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
2266
2267         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
2268         bit moves in return statement
2269
2270 2007-02-09 Borut Razem <borut.razem AT siol.net>
2271
2272         * src/SDCC.y: fixed bug #1654060 typedef within function causes
2273           syntax error
2274
2275 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
2276
2277         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
2278         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
2279
2280 2007-02-07 Raphael Neider <rneider AT web.de>
2281
2282         * src/pic16/devices.inc,
2283         * device/include/pic16/pic18fregs.h,
2284         * device/include/pic16/pic18f[24][34]31.h,
2285         * device/lib/pic16/libdev/pic18f[24][34]31.c,
2286         * device/lib/pic16/pics.all: added 18f[24][34]31 family
2287         * device/lib/pic16/libio/i2c.ignore: do not build i2c
2288
2289 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
2290
2291         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
2292           can this have lived here for so many years?
2293         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
2294           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
2295         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
2296
2297 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
2298
2299         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
2300         appended by loop induction must be at the very end of the eBBlock
2301
2302 2007-02-05 Kevin Vigor
2303
2304         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
2305
2306 2007-02-05 Borut Razem <borut.razem AT siol.net>
2307
2308         * support/regression/fwk/lib/timeout.c: native WIN32 port,
2309           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
2310
2311 2007-02-03 Borut Razem <borut.razem AT siol.net>
2312
2313         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
2314           applied patch #1646602 option to set default signedness of char to
2315           unsigned, added -funsigned-char command line option,
2316           thanks to Gunther Jehle
2317         * device/lib/Makefile.in: added the -f option to rm so it doesn't
2318           prompt for file deletion a few hundred times (especially the
2319           subversion files, which have ro permissions so it asks for
2320           confirmation), thanks to Simon McAuliffe;
2321           added {} + option to find in order to remove multiple files from a
2322           single rm commad
2323
2324 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2325
2326         * device/include/mcs51/SST89x5xRDx.h: Added.
2327
2328 2007-02-02 Raphael Neider <rneider AT web.de>
2329
2330         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
2331         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
2332
2333 2007-02-01 Raphael Neider <rneider AT web.de>
2334
2335         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
2336           config words again
2337
2338 2007-01-31 Borut Razem <borut.razem AT siol.net>
2339
2340         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
2341           if compiled with GCC. Thanks to Raphael Neider
2342
2343 2007-01-31 Raphael Neider <rneider AT web.de>
2344
2345         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
2346             operand names, handles name and (name + n) for all n,
2347           (sameBank): restructured, also check bank allocation policy,
2348         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
2349           (pic14_operandsAllocatedInSameBank): check whether to operands
2350             will be allocated into the same bank (i.e., section) to reduce
2351             BANKSEL overhead, queried from pcode.c:sameBank,
2352           (pic14printLocals): reintroduced clustering registers into a single
2353             section: all compiler generated symbols will now reside in one
2354             bank (per file), reducing BANKSEL overhead and code size,
2355           (showAllMemmaps): use local dbuf where possible
2356
2357 2007-01-29 Raphael Neider <rneider AT web.de>
2358
2359         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
2360           (call_libraryfunc): retrieve/create symbol and mark as used,
2361           (genFunction): mark defined functions as non-extern and add again
2362            to code memmap for later output
2363         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
2364           (pic14printLocals): reworked for new symbol emission,
2365           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
2366           showAllMemmaps): reworked symbol output using dbufs, added handling
2367             of string literals (still incomplete),
2368           (picglue): removed symbol emission, moved into showAllMemmaps,
2369           (emitSymbolSet): new workhorse for symbol output,
2370           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
2371
2372 2007-01-29 Borut Razem <borut.razem AT siol.net>
2373
2374         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
2375           component contains the extension separator.
2376
2377 2007-01-28 Borut Razem <borut.razem AT siol.net>
2378
2379         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
2380           on WIN32
2381         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
2382           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
2383           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
2384           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
2385           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
2386           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
2387           src/z80/gen.c, support/Util/MySystem.c:
2388           accept slash and backslash as directory separator on WIN32 and
2389           Cygwin ports
2390
2391 2007-01-28 Raphael Neider <rneider AT web.de>
2392
2393         * src/pic16/devices.inc,
2394         * device/include/pic16/pic18f[24][23]21.h,
2395         * device/include/pic16/pic18fregs.h,
2396         * device/lib/pic16/libdev/pic18f[24][23]21.c,
2397         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
2398         * device/lib/pic16/libio/adc.ignore,
2399         * device/lib/pic16/libio/i2c.ignore,
2400         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
2401           family, as gputils do not yet support the devices
2402         * device/lib/pic16/Makefile.subdir: ignore errors on install
2403         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
2404           headers and libraries from gputils .inc files
2405
2406 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
2407
2408         * doc/sdccman.lyx: add printf_fast_f precision limitation note
2409
2410 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
2411
2412         * doc/sdccman.lyx: add printf benchmarks
2413
2414 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
2415
2416         * device/lib/printf_fast.c: fix %c, char promoted to int
2417         * device/lib/printf_tiny.c: fix %c, char promoted to int
2418
2419 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
2420
2421         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
2422
2423 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2424
2425         * support/regression/tests/swap.c: 64 bit hosts failed
2426         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
2427
2428 2007-01-25 Raphael Neider <rneider AT web.de>
2429
2430         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
2431           based on absolute register address, patch by Alex Blond
2432
2433 2007-01-22 Raphael Neider <rneider AT web.de>
2434
2435         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
2436           emitted, do not emit them again...
2437
2438 2007-01-22 Raphael Neider <rneider AT web.de>
2439
2440         * src/regression/bank1.c, src/regression/compare6.c,
2441           src/regression/add.c: cosmetic changes
2442         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
2443         * src/pic/gen.c: fixed global zero and one,
2444           (aopForSym): removed unued code,
2445           (aopGet): assert aop is defined, check and use `index' of
2446             pCodeImmd operands (fixes #1630908),
2447         * src/pic/pcode.c (get_op): added output of generic pointer tag,
2448           (register_reassign): prevent accidental register unification,
2449           (ReuseReg): cosmetic changes (also above)
2450         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
2451           pic14emitStaticSeg): do not emit initialized data,
2452           (printIval*): replaced with working versions,
2453           (pic14createInterruptVect,picglue): use idata for initialized data,
2454             now init data should work in all modules (not only main()),
2455         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
2456
2457 2007-01-21 Borut Razem <borut.razem AT siol.net>
2458
2459         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
2460           use -fPIC or -fpic if they are supported and not ignored
2461         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
2462         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
2463
2464 2007-01-20 Borut Razem <borut.razem AT siol.net>
2465
2466         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
2467           implemented RFE #1470316: allow "$" in variable names
2468
2469 2007-01-20 Raphael Neider <rneider AT web.de>
2470
2471         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
2472
2473 2007-01-20 Raphael Neider <rneider AT web.de>
2474
2475         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
2476         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
2477         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
2478         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
2479           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
2480         * device/lib/pic/libdev/pic*.c,
2481         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
2482         * device/lib/pic/libdev/Makefile.in: show progress
2483
2484 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
2485
2486         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
2487         * support/scripts/sdcc_cygwin_mingw32,
2488         * support/scripts/sdcc_mingw32,
2489         * support/scripts/build.mak: replaced --datadir by --datarootdir for
2490         conformance with autoconf 2.6
2491
2492 2007-01-19 Raphael Neider <rneider AT web.de>
2493
2494         * src/pic/device.c (register_map): fixed list construction
2495         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
2496           (genMod): removed case for genModbits,
2497           (genModbits): removed as now unused/unimplemented
2498         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
2499
2500 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2501
2502         * support/regression/tests/swap.c: added in response to #1638622
2503         * doc/sdccman.lyx: synced version, minor changes
2504
2505 2007-01-18 Borut Razem <borut.razem AT siol.net>
2506
2507         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
2508           thanks to Gunther Jehle
2509         * src/asm.c: don't die if the file drfined in #line couldn't be opened
2510         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
2511           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
2512           use filename in lineno instead.
2513         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
2514           print the file name in ast_print()
2515
2516 2007-01-18 Borut Razem <borut.razem AT siol.net>
2517
2518         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
2519           defined in MSVC
2520         * src/SDCC.lex: stringLiteral() returns const char pointer,
2521           EOF detection in stringLiteral(), fixed asmbuf memory leak,
2522           fixed column counting
2523         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
2524           accept const char pointer as parameter
2525         * src/SDCCdwarf2.c: corrected buffer size
2526
2527 2007-01-17 Borut Razem <borut.razem AT siol.net>
2528
2529         * support/Util/dbuf_string.c: fixed for amd64
2530
2531 2007-01-15 Borut Razem <borut.razem AT siol.net>
2532
2533         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
2534           removed terminal symbol ELIPSIS, since it was never generated by the
2535           lexer and it was wrongly used in parameter_identifier_list rule
2536
2537 2007-01-15 Raphael Neider <rneider AT web.de>
2538
2539         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
2540             code page and data banking description
2541         * src/pic/genarith.c,
2542         * src/pic/gen.h: removed bit arithmetic functions,
2543             updated exit(1) to exit(EXIT_FAILURE)
2544         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
2545         * device/include/pic16/pic18f2455.h,
2546         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
2547             TRISD and TRISE, fixed/added some bit names
2548         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
2549         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
2550             updated pic18f2455.{c,h} instead of duplicating them
2551
2552 2007-01-14 Borut Razem <borut.razem AT siol.net>
2553
2554         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
2555           Cannot debug files that contain spaces in the path name
2556           by converting spaces in asm file name to underscores
2557
2558 2007-01-13 Borut Razem <borut.razem AT siol.net>
2559
2560         * doc/sdccman.lyx: fixed format errors
2561
2562 2007-01-10 Borut Razem <borut.razem AT siol.net>
2563
2564         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
2565           codeseg/constseg #pragma fail
2566         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
2567         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
2568           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
2569           suppoprt/cpp2/sdcpp.[ch]: house cleaning
2570
2571 2007-01-09 Borut Razem <borut.razem AT siol.net>
2572
2573         * get rid of diagnistic.[ch], pretty-print.[ch],
2574           c-pretty-print.[ch], ... used just for error, warning, ...
2575           message formatting
2576         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
2577           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
2578           suppoprt/cpp2/pretty-print.[ch]:
2579           removed
2580         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
2581           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
2582           suppoprt/cpp2/sdcpp.dsp:
2583           changed
2584
2585 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
2586
2587         * device/lib/printf_large.c (output_float): removed recursion,
2588           use smaller buffer on stack for mcs51,
2589           fixed bug printing 1.96
2590         * support/regression/tests/snprintf.c: added test
2591
2592 2007-01-07 Borut Razem <borut.razem AT siol.net>
2593
2594         * use dynamic memory buffers instead temporary files
2595         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
2596           added
2597         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
2598           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
2599           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
2600           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
2601           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
2602           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
2603           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
2604           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
2605           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
2606           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
2607           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
2608           support/Util/dbuf.c, support/Util/dbuf.h:
2609           modified
2610         * .version, sdcc.spec: bumped version to 2.6.4
2611
2612 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
2613
2614         * src/port.h: added TARGET_Z80_LIKE macro
2615         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
2616           output PSEG location if --xram-loc or --xstack-loc was used
2617         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
2618
2619 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
2620
2621         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
2622         * as/as_z80.dsp,   as/z80/as_z80.dsp,
2623         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
2624         * sdcc.dsw: moved project files into subdir
2625         * as/hc08/as_hc08.dsp,
2626         * as/hc08/Makefile.bcc,
2627         * as/hc08/Makefile.in,
2628         * as/mcs51/Makefile.bcc,
2629         * as/mcs51/Makefile.in,
2630         * as/z80/Makefile.bcc,
2631         * as/z80/Makefile.in,
2632         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
2633         * as/hc08/asm.h,
2634         * as/mcs51/asm.h,
2635         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
2636         * as/hc08/asmain.c,
2637         * as/hc08/assym.c,
2638         * as/mcs51/asmain.c,
2639         * as/mcs51/assym.c,
2640         * as/z80/assym.c: removed include "strcmpi.h"
2641         * as/hc08/strcmpi.c,
2642         * as/hc08/strcmpi.h,
2643         * as/mcs51/strcmpi.c,
2644         * as/mcs51/strcmpi.h,
2645         * support/Util/strcmpi.c,
2646         * support/Util/strcmpi.h: removed files
2647         * as/strcmpi.c: added as_strncmpi()
2648
2649 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2650
2651         * sdcc.dsw: Added some dependencies on project config.dsp
2652
2653 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
2654
2655         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
2656           with [di]ram_start to fix a regresion
2657
2658 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
2659
2660         * configure.in: added missing mcs51 in status output
2661         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
2662         directory
2663         * debugger/mcs51/clean.mk (distclean): remove config.h
2664         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
2665         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
2666         options.h, s-options-h and options.c
2667         * support/cpp2/clean.mk: unused, removed
2668         * Makefile.common.in,
2669         * main_in.mk,
2670         * as/Makefile.in,
2671         * as/hc08/Makefile.in,
2672         * as/hc08/clean.mk,
2673         * as/mcs51/Makefile.in,
2674         * as/mcs51/clean.mk,
2675         * as/z80/clean.mk,
2676         * as/z80/conf.mk,
2677         * as/z80/Makefile.in,
2678         * as/z80/clean.mk,
2679         * as/link/Makefile.in,
2680         * as/link/hc08/Makefile.in,
2681         * as/link/hc08/clean.mk,
2682         * as/link/mcs51/Makefile.in,
2683         * as/link/mcs51/clean.mk,
2684         * as/link/z80/Makefile.in,
2685         * as/link/z80/clean.mk,
2686         * as/link/z80/conf.mk,
2687         * debugger/mcs51/Makefile.in,
2688         * debugger/mcs51/clean.mk,
2689         * device/include/Makefile.in,
2690         * device/lib/Makefile.in,
2691         * device/lib/mcs51/Makefile.in,
2692         * device/lib/pic/Makefile.in,
2693         * device/lib/pic/Makefile.common.in,
2694         * device/lib/pic/Makefile.subdir,
2695         * device/lib/pic/Makefile.rules,
2696         * device/lib/pic16/libio/Makefile.in,
2697         * device/lib/pic16/Makefile.subdir,
2698         * device/lib/pic16/libdev/Makefile.in,
2699         * device/lib/pic16/Makefile.rules,
2700         * device/lib/pic16/Makefile.common.in,
2701         * sim/ucsim/avr.src/Makefile.in,
2702         * sim/ucsim/main_in.mk,
2703         * sim/ucsim/cmd.src/Makefile.in,
2704         * sim/ucsim/doc/Makefile.in,
2705         * sim/ucsim/gui.src/Makefile.in,
2706         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
2707         * sim/ucsim/gui.src/serio.src/Makefile.in,
2708         * sim/ucsim/hc08.src/Makefile.in,
2709         * sim/ucsim/libltdl/Makefile.in,
2710         * sim/ucsim/s51.src/Makefile.in,
2711         * sim/ucsim/sim.src/Makefile.in,
2712         * sim/ucsim/sim.src/conf.mk,
2713         * sim/ucsim/xa.src/Makefile.in,
2714         * sim/ucsim/z80.src/Makefile.in,
2715         * src/Makefile.in,
2716         * src/clean.mk,
2717         * src/port.mk,
2718         * support/cpp2/Makefile.in,
2719         * support/librarian/Makefile.in,
2720         * support/librarian/clean.mk,
2721         * support/makebin/Makefile.in,
2722         * support/makebin/clean.mk,
2723         * support/packihx/Makefile.in,
2724         * support/regression/Makefile.in,
2725         * support/regression/ports/ds390/spec.mk,
2726         * support/regression/ports/gbz80/spec.mk,
2727         * support/regression/ports/hc08/spec.mk,
2728         * support/regression/ports/mcs51/spec.mk,
2729         * support/regression/ports/mcs51-large/spec.mk,
2730         * support/regression/ports/mcs51-medium/spec.mk,
2731         * support/regression/ports/mcs51-xstack-auto/spec.mk,
2732         * support/regression/ports/pic14/spec.mk,
2733         * support/regression/ports/pic16/spec.mk,
2734         * support/regression/ports/mcs51-stack-auto/spec.mk,
2735         * support/regression/ports/ucz80/spec.mk,
2736         * support/regression/ports/xa51/spec.mk,
2737         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
2738         adding a slash after $(top_builddir) and/or adding @datarootdir@
2739         * configure.in,
2740         * debugger/mcs51/configure.in,
2741         * device/lib/pic/configure.in,
2742         * device/lib/pic16/configure.in,
2743         * sim/ucsim/configure.in,
2744         * support/cpp2/configure.in,
2745         * support/packihx/configure.in: changed AC_PREREQ to 2.60
2746         * configure,
2747         * debugger/mcs51/configure,
2748         * device/lib/pic/configure,
2749         * device/lib/pic16/configure,
2750         * sim/ucsim/configure,
2751         * support/cpp2/configure,
2752         * support/packihx/configure: generated with autoconf 2.60
2753
2754 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
2755
2756         * as/link/hc08/lkihx.c (newArea),
2757         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
2758
2759 2007-01-02 Borut Razem <borut.razem AT siol.net>
2760
2761         * doc/sdccman.lyx: documented #pragma sdcc_hash
2762         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
2763           initialized to 0
2764         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
2765
2766 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
2767
2768         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
2769         empty 'while'-loop to work correctly, see regression test 'while.c'
2770         * support/regression/tests/while.c: added
2771
2772 2007-01-01 Borut Razem <borut.razem AT siol.net>
2773
2774         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
2775           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
2776           support/cpp2/libcpp/sdcpp.c:
2777           sdcpp specific pragma/directive/option handling moved to sdcpp.c
2778         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
2779         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
2780
2781 2006-12-31 Borut Razem <borut.razem AT siol.net>
2782
2783         * SDCPP synchronized with GCC CPP release version 4.1.1,
2784           currently the latest release:
2785         * support/cpp2/libcpp, support/cpp2/libcpp/include,
2786           support/cpp2/libcpp/include/cpp-id-data.h
2787           support/cpp2/libiberty/fopen_unlocked.c
2788           support/cpp2/libiberty/md5.c
2789           support/cpp2/md5.h
2790           support/cpp2/opt-functions.awk
2791           support/cpp2/opt-gather.awk
2792           support/cpp2/optc-gen.awk
2793           support/cpp2/opth-gen.awk:
2794           added
2795         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
2796           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2797           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
2798           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
2799           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
2800           support/cpp2/diagnostic.h, support/cpp2/except.h,
2801           support/cpp2/hwint.h, support/cpp2/input.h,
2802           support/cpp2/intl.h, support/cpp2/move-if-change,
2803           support/cpp2/opts.c, support/cpp2/opts.h,
2804           support/cpp2/output.h, support/cpp2/prefix.c,
2805           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
2806           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
2807           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
2808           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
2809           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
2810           support/cpp2/version.c:
2811           modified
2812         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
2813           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
2814           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
2815           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
2816           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
2817           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
2818           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
2819           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
2820           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
2821           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
2822           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
2823           moved
2824         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
2825           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
2826           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
2827           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
2828           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
2829           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
2830           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
2831           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
2832           support/cpp2/hashtable.h, support/cpp2/line-map.c,
2833           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
2834           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
2835           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
2836           support/cpp2/system.h:
2837           deleted / moved
2838
2839 2006-12-31 Borut Razem <borut.razem AT siol.net>
2840
2841         * configure.in, configure: fixed bug #1538756: configure dies if bison
2842           and flex are not installed, 2nd try
2843
2844 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
2845
2846         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
2847         400.x for better code in RFE 899102
2848
2849 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
2850
2851         * src/SDCCpeeph.c (deadMove),
2852         * src/port.h,
2853         * src/mcs51/peep.h: renamed 'op' by 'reg'
2854         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
2855         (scan4op): small change for removeDeadMove(), added support for
2856         'callee saves' and/or PACLL function calls,
2857         (removeDeadMove): added, removes superflous 'mov r%1,%2',
2858         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
2859         left in new dispatcher mcs51DeadMove()
2860         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
2861         removeDeadMove()
2862         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
2863
2864 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2865
2866         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
2867           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
2868
2869 2006-12-30 Borut Razem <borut.razem AT siol.net>
2870
2871         * support/cpp2/spacs.h: deleted from svn
2872         * configure.in, configure: fixed bug #1538756: configure dies if bison
2873           and flex are not installed
2874
2875 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
2876
2877         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
2878           with this z80 passes printf float test when enabled
2879         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
2880
2881 2006-12-28 Borut Razem <borut.razem AT siol.net>
2882
2883         * support/cpp2/config.in, support/cpp2/configure.in,
2884           support/cpp2/configure, support/cpp2/Makefile.in:
2885           fix for the solaris build
2886
2887 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2888
2889         * src/SDCC.y (type_specifier2, pointer),
2890         * src/SDCCsymt.h,
2891         * src/SDCCsymt.c (mergeSpec, checkSClass),
2892         * support/Util/SDCCerr.c,
2893         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
2894         * support/valdiag/valdiag.py: Allow test cases to specify
2895           required language standard
2896         * support/valdiag/tests/restrict.c: New file to test restrict keyword
2897         * support/valdiag/tests/tentdecl.c: Supress empty source file error
2898
2899 2006-12-27 Borut Razem <borut.razem AT siol.net>
2900
2901         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
2902         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
2903           mbchar removed
2904         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
2905           fixed for borland C
2906         * support/cpp2/libiberty/Makefile.bcc: updated
2907         * src/pic16/main.c: fixed #pragma udata handling
2908         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
2909
2910 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
2911
2912         * src/SDCCpeeph.c: made labelHashEntry global,
2913         made pcDistance, FBYNAME static,
2914         (pcDistance): made static, use isComment and isLabel,
2915         (deadMove): added,
2916         (getLabelRef): added, extracted from labelRefCount(),
2917         (labelRefCount): use new getLabelRef(),
2918         (callFuncByName): made static, added deadMove,
2919         use isComment and isLabel,
2920         (newPeepRule): made static, set isLabel,
2921         (isLabelDefinition): added parameter isPeepRule to allow '%' in
2922         labels from peephole rules,
2923         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
2924         when isComment or isLabel is set
2925         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
2926         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
2927         to make them global
2928         * src/mcs51/peep.h: added
2929         * src/mcs51/peep.c: added, implements mcs51DeadMove()
2930         * src/port.h: added peep->deadMove to port structure
2931         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
2932         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
2933         deadMove, finally removed no. 1 and 2
2934         * src/mcs51/gen.c,
2935         * src/pic/gen.c,
2936         * src/z80/gen.c,
2937         * src/z80/ralloc.c,
2938         * src/pic16/gen.c,
2939         * src/ds390/gen.c,
2940         * src/hc08/gen.c: mark lines with isComment or isLabel
2941         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
2942         * .version,
2943         * sdcc.spec: bumped version to 2.6.3
2944
2945 2006-12-26 Borut Razem <borut.razem AT siol.net>
2946
2947         * support/cpp2/Makefile.in: added dependency on options.h
2948         * configure: regenerated
2949         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
2950         * support/cpp2/Makefile.in: added vasprintf.c
2951
2952 2006-12-25 Borut Razem <borut.razem AT siol.net>
2953
2954         * SDCPP synchronized with GCC CPP release version 3.4.6,
2955           the latest release before 4.x:
2956         * support/cpp2/Makefile.in, support/cpp2/config.h,
2957           support/cpp2/configure, support/cpp2/configure.in,
2958           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
2959           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
2960           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
2961           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
2962           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
2963           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
2964           support/cpp2/cpptrad.c, support/cpp2/except.h,
2965           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
2966           support/cpp2/hwint.h, support/cpp2/intl.h,
2967           support/cpp2/line-map.c, support/cpp2/line-map.h,
2968           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
2969           support/cpp2/output.h, support/cpp2/prefix.c,
2970           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
2971           support/cpp2/system.h, support/cpp2/version.c:
2972           modified
2973         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2974           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
2975           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
2976           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
2977           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
2978           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
2979           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
2980           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
2981           support/cpp2/move-if-change, support/cpp2/opts.c,
2982           support/cpp2/opts.h, support/cpp2/opts.sh,
2983           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
2984           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
2985           support/cpp2/win32, support/cpp2/win32/dirent.c,
2986           support/cpp2/win32/dirent.h:
2987           added
2988         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
2989         * support/cpp2/sdcpp.h: renamed from sdcc.h
2990         * sdcppinit.c: deleted
2991
2992 2006-12-23 Borut Razem <borut.razem AT siol.net>
2993
2994         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
2995           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
2996           preproc.c: an other try to fix bug #982435: introduced
2997           -pedantic-parse-number command line option and pedantic_parse_number
2998           pragma
2999
3000 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
3001
3002         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
3003            BSEG handling,
3004           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
3005            corrected overlayed areax addresses, warn about memory overlaps
3006         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
3007         * src/avr/main.c,
3008         * src/ds390/main.c,
3009         * src/hc08/main.c,
3010         * src/mcs51/main.c,
3011         * src/pic16/main.c,
3012         * src/pic/main.c,
3013         * src/xa51/main.c,
3014         * src/z80/main.c,
3015         * src/port.h: added xabs_name and iabs_name
3016         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
3017           (glue, emitMaps): create and emit maps d_abs and i_abs
3018         * src/SDCCglue.h: cosmetic changes
3019         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
3020         * src/SDCCmem.h,
3021         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
3022           (allocDefault): put absolute, initialized globals in them
3023         * support/regression/tests/absolute.c: added absolute bdata test
3024         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
3025
3026 2006-12-20 Borut Razem <borut.razem AT siol.net>
3027
3028         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
3029         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
3030           added regression test for bug #982435
3031
3032 2006-12-18 Borut Razem <borut.razem AT siol.net>
3033
3034         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
3035         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
3036           small cosmetic changes
3037         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
3038         * support/regression/tests/bug-1351710.c: added regression test
3039
3040 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3041
3042         * doc/sdccman.lyx: added the long missed iCode table
3043           "<where is figure II?>", added links to wiki
3044
3045 2006-12-17 Borut Razem <borut.razem AT siol.net>
3046
3047         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
3048           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
3049           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
3050           unified table driven pragma handling, pragma argument type checking
3051         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
3052           current one - version 1.1.3
3053         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
3054
3055 2006-12-13 Raphael Neider <rneider AT web.de>
3056
3057         * src/pic/device.h: removed AssignedMemory structure and macros
3058         * src/pic/device.c: removed global finalMapping (linker assigns
3059             memory locations),
3060           (register_map): add SFRs to remembered memRanges
3061           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
3062           assignFixedRegisters,assignRelocatableRegisters): removed,
3063           (setMaxRAM,validAddress): adapted accordingly,
3064           (pic14_hasSharebank,pic14_getSharedStack): only report and use
3065             reasonably sized sharebanks,
3066         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
3067           (allDefsOutOfRange): removed unused code,
3068         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
3069             handling
3070         * src/pic/pcode.c (register_reassign): removed recursion warning,
3071             fired far too often,
3072         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
3073             to use existing pic14_stringInSet() to avoid duplicate symbols,
3074             tidied up the code a bit,
3075           (pic14printLocals): added in symmetry to printExterns, replaces
3076             writeUsedRegs more or less,
3077           (picglue): call new pic14_printLocals(),
3078         * device/include/pic/pic*.h: removed #pragma memmap directives,
3079             information gathered from include/pic/pic14devices.txt
3080         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
3081
3082 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
3083
3084         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
3085
3086 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3087
3088         * device/include/mcs51/cc2430.h: fixed missing ';'
3089
3090 2006-12-10 Raphael Neider <rneider AT web.de>
3091
3092         * device/lib/pic16/libc/stdio/vfprintf.c,
3093         * device/lib/pic16/libc/stdio/printf_small.c,
3094         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
3095           char arguments, as char varargs are cast to int by the caller,
3096           hopefully fixes #1604915 (other device libraries are still affected)
3097
3098 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3099
3100         * src/mcs51/ralloc.c (packRegsForAssign),
3101         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
3102
3103 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
3104
3105         * device/include/malloc.h: removed init_dynamic_memory
3106         * device/lib/malloc.c: made init_dynamic_memory static and automatically
3107           call it once from malloc. Also use _sdcc_heap[] from _heap.c
3108         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
3109         * device/lib/libsdcc.lib,
3110         * device/lib/Makefile.in,
3111         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
3112         * doc/sdccman.lyx: documented use of new _heap.c
3113         * support/regression/tests/malloc.c: removed init_dynamic_memory
3114         * src/cdbFile.c(spacesToUnderscores): new function,
3115           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
3116           1068030
3117         * device/include/tinibios.h: removed defines for putchar and getchar
3118         * device/lib/ds390/Makefile.in: added putchar.c
3119         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
3120
3121 2006-12-09 Borut Razem <borut.razem AT siol.net>
3122
3123         * support/cpp2/sdcc.h: prevent multiple inclusion
3124         * support/cpp2/options.h: deleted
3125
3126 2006-12-08 Borut Razem <borut.razem AT siol.net>
3127
3128         * support/cpp2/sdcc.h: removed x*alloc() macros
3129         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
3130         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
3131           support/cpp2/sdcpp.sdc: x*alloc files added to the project
3132         * support/cpp2/system.h: moved #include "sdcc.h"
3133         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
3134           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
3135           added
3136         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
3137           -funsigned-char options
3138         * support/cpp2/sdcppmain.c: fixed bug 1611411
3139
3140 2006-12-07 Borut Razem <borut.razem AT siol.net>
3141
3142         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
3143           directive
3144
3145 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
3146
3147         * src/SDCCsymt.c (addDecl): fixed bug 1609244
3148         * src/SDCCmain.c (linkEdit): fixed bug 1609279
3149         * doc/sdccman.lyx,
3150         * .version: bumped to 2.6.2 because a) it's been a while
3151           b) the linker sources have moved c) the preprocessor is upgraded
3152
3153 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3154
3155         * support/regression/tests/snprintf.c: some checks
3156         * lib/src/printf_large.c: %bc: read char instead of int from stack
3157
3158 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
3159
3160         * device/include/mcs51/cc2430.h: inserted _XPAGE
3161
3162 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3163
3164         * device/include/mcs51/cc2430.h: added
3165
3166 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
3167
3168         * device/include/asm/default/features.h,
3169         * device/include/asm/ds390/features.h,
3170         * device/include/mcs51/at89s53.h,
3171         * device/include/ser.h,
3172         * device/include/ser_ir.h,
3173         * device/include/serial.h: changed keywords to double underscore variants,
3174           fixes bug 1590261 some more, thanks Steven Borley
3175
3176 2006-12-01 Raphael Neider <rneider AT web.de>
3177
3178         * src/pic/pcode.c (register_reassign): do not crash on recursive code
3179           but emit warning (recursion is not supported for pic14)
3180
3181 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3182
3183         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
3184         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
3185
3186 2006-11-30 Raphael Neider <rneider AT web.de>
3187
3188         * src/pic/device.c (dump_sfr): always emit symbols
3189         * src/pic/glue.c (pic14printPublics): fixed typo
3190
3191 2006-11-30 Raphael Neider <rneider AT web.de>
3192
3193         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
3194           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
3195           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
3196            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
3197            a sharebank, use a non-shared bank for the stack if none available
3198         * src/pic/device.h (struct memRange): added linked list next field,
3199           added prototypes for above functions
3200         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
3201           (typeRegWithIdx): accept fixed and unfixed stack registers
3202         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
3203           the stack, handle shared and banked stack (except for WSAVE),
3204           (insertBankSel): removed useless optimization (will never fire),
3205           (FixRegisterBanking): added optimization for devices with only one
3206           possibly aliased bank of memory, like 16f84
3207         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
3208           devices have no SHAREBANK in the linker script
3209         * device/include/pic/pic14devices.txt: documented memmap
3210         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
3211
3212 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3213
3214         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
3215           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
3216           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
3217           genhc08Code): switched most of the D (debug) macros to DD (detailed
3218           debug) macros to better control clutter in the generated .asm file.
3219         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
3220           genRightShift): fixed bug with non-constant bit shift stored to
3221           a volatile result (SF Open Discussion forum thread #1616749).
3222           Single byte case is not yet optimized.
3223
3224 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
3225
3226         * device/include/asm/mcs51/features.h,
3227         * device/include/malloc.h,
3228         * device/include/stdio.h: changed keywords to double underscore variants,
3229           fixes bug 1590261
3230
3231 2006-11-27 Borut Razem <borut.razem AT siol.net>
3232
3233         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
3234           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
3235           support/cpp2/output.h, support/cpp2/cppinit.c,
3236           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
3237           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
3238           support/cpp2/cppdefault.c, support/cpp2/system.h,
3239           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
3240           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
3241           support/cpp2/prefix.c, support/cpp2/except.h,
3242           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
3243           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
3244           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
3245           support/cpp2/version.c, support/cpp2/cppmain.c,
3246           support/cpp2/version.h, support/cpp2/hashtable.c,
3247           support/cpp2/cpperror.c:
3248           synchronized with GCC CPP release version 3.3.6,
3249           the latest where cppmain.c still exists.
3250         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
3251           support/cpp2/sdcppinit.c: added
3252
3253 2006-11-27 Borut Razem <borut.razem AT siol.net>
3254
3255         * support/cpp2/cpplex.c:
3256           fixed _asm ... _endasm handling bug, introduce with GCC CPP
3257           synchronization
3258         * support/cpp2/cpplib.c: removed definitions of unused variables
3259
3260 2006-11-26 Borut Razem <borut.razem AT siol.net>
3261
3262         * support/cpp2/libiberty.h: commented out x*alloc() declarations
3263           since they are redefined by macros in support/cpp2/sdcc.h
3264         * support/cpp2/sdcc.h: x*alloc macro redefinition
3265
3266 2006-11-25 Borut Razem <borut.razem AT siol.net>
3267
3268         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
3269           support/cpp2/configure, support/cpp2/Makefile.in,
3270           support/cpp2/cppfiles.c, support/cpp2/output.h,
3271           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
3272           support/cpp2/config.h, support/cpp2/cpplib.h,
3273           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
3274           support/cpp2/cppdefault.c, support/cpp2/config.in,
3275           support/cpp2/system.h, support/cpp2/cpplex.c,
3276           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
3277           support/cpp2/cppdefault.h, support/cpp2/prefix.c
3278           support/cpp2/hwint.h, support/cpp2/mbchar.h,
3279           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
3280           support/cpp2/configure.in, support/cpp2/intl.h,
3281           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
3282           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
3283           support/cpp2/version.c, support/cpp2/cppmain.c,
3284           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
3285           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
3286           support/cpp2/cpperror.c,
3287           support/cpp2/libiberty/safe-ctype.c,
3288           support/cpp2/libiberty/safe-ctype.h,
3289           support/cpp2/libiberty/splay-tree.c,
3290           support/cpp2/libiberty/obstack.c,
3291           support/cpp2/libiberty/lbasename.c,
3292           support/cpp2/libiberty/splay-tree.h,
3293           support/cpp2/libiberty/obstack.h:
3294           synchronized with GCC CPP release version 3.2.3,
3295           the latest before integration of cpp into gcc
3296         * support/cpp2/except.h, support/cpp2/line-map.c,
3297           support/cpp2/line-map.h,
3298           support/cpp2/libiberty/hex.c,
3299           support/cpp2/libiberty/concat.c,
3300           support/cpp2/libiberty/filenames.h: added
3301         * support/cpp2/intl.c: deleted
3302
3303 2006-11-24 Borut Razem <borut.razem AT siol.net>
3304
3305         * src/SDCC.y: enabled compilation of empty source file
3306         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
3307           "ISO C forbids an empty source file"
3308         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
3309           if all the code is ifdefed out.
3310
3311 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3312
3313         * src/hc08/gen.c (genPcall): fix for bug #1601032
3314
3315 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
3316
3317         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
3318         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
3319         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
3320         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
3321         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
3322         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
3323         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
3324         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
3325         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
3326         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
3327         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
3328         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
3329         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
3330         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
3331         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
3332           Renamed to all upper case as per the standard set by SiLabs
3333
3334 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
3335
3336         * device/include/mcs51/C8051F520.h: new, added
3337         * device/include/mcs51/compiler.h: added link about predefined macros
3338
3339 2006-11-23 Raphael Neider <rneider AT web.de>
3340
3341         * src/regression/Makefile: add -L path to fresh library
3342         * src/regression/simulate: emphasize FAILED output
3343         * src/regression/create_stc: output _failures from gpsim
3344         * src/regression/compare4.c,
3345         * src/regression/rotate6.c: fixed char literals,
3346           all compile, all run =8-D
3347
3348         * src/pic/pcode.h: added isPCASMDIR macro
3349         * src/pic/gen.c (genAnd): fixed bit offset
3350         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
3351           packBits): unified register numbering schemes,
3352           (newReg): do not insert stack registers into hash table,
3353           (initStack): unpinned pseudo stack, simplified,
3354           (typeRegWithIdx): fixed retrieval of stack registers,
3355         * src/pic/pcode.c (addpCodeComment,sameBank): added,
3356           (pCodeReplace): removed invalid assertion,
3357           (insertPCodeInstruction): fixed newly added labels,
3358           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
3359           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
3360           DumpFlow): removed unsed (broken?) code,
3361           (insertBankSel): prevent STATUS from being BANKSELed,
3362           (FixRegisterBanking): rewritten from scratch, implemented generic
3363             optimizations (suppress BANKSELs to same register and to registers
3364             present in all banks),
3365           (AnalyzeBanking): update flow after BANKSELection
3366
3367         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
3368             sharebank, let linker place it, mark STKxx symbols as emitted
3369
3370 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3371
3372         * src/regression/arrays.c,
3373         * src/regression/bank1.c,
3374         * src/regression/bool2.c,
3375         * src/regression/compare7.c,
3376         * src/regression/compare8.c,
3377         * src/regression/compare9.c,
3378         * src/regression/compare10.c,
3379         * src/regression/configword.c,
3380         * src/regression/for.c,
3381         * src/regression/mult1.c,
3382         * src/regression/pointer1.c,
3383         * src/regression/rotate6.c,
3384         * src/regression/string1.c,
3385         * src/regression/struct1.c,
3386         * src/regression/Makefile: make PIC14 regression tests run again
3387           (3 fail, 6 won't compile)
3388
3389 2006-11-21 Raphael Neider <rneider AT web.de>
3390
3391         * device/include/pic16/pic18f4550.h,
3392         * device/include/pic16/pic18f4455.h,
3393         * device/lib/pic16/libdev/pic18f4550.c,
3394         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
3395         * configure.in: removed superfluous closing bracket
3396
3397 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3398
3399         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
3400           always positive.
3401
3402 2006-11-21 Raphael Neider <rneider AT web.de>
3403
3404         * src/pic/device.{c,h}: added pic14_getPIC()
3405         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
3406           (genAnd): added PIC code for one case, fixes #1597044
3407         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
3408           SFRs that are present in all banks (e.g., STATUS)
3409
3410 2006-11-20 Raphael Neider <rneider AT web.de>
3411
3412         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
3413           INCFSZ/INCFSZW and declared them as changing Z bit,
3414           (insertPCodeInstruction): correctly invert the above instructions,
3415           fixes #1599333,
3416           (DoBankSelect): don't panic on po_immediates
3417
3418 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
3419
3420         * as/link/aslink.h,
3421         * as/link/mcs51/lkihx.c (newArea),
3422         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
3423         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
3424
3425 2006-11-11 Raphael Neider <rneider AT web.de>
3426
3427         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
3428           bitfield symbols, fixes #1579535 (once more...).
3429
3430 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3431
3432         * support/regression/generate-cases.py,
3433         * support/regression/fwk/include/testfwk.h,
3434         * support/regression/fwk/lib/testfwk.c: used code pointers,
3435           (about 50kByte less code generated for mcs51)
3436
3437 2006-11-06 Borut Razem <borut.razem AT siol.net>
3438
3439         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3440           debugger/mcs51/configure: fixed failed check because the function
3441           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
3442           who submitted the patch for gpsim.
3443         * debugger/mcs51/configure.in: removed the result message
3444         * debugger/mcs51/Makefile.in: fixed the config.status warning
3445           "... seems to ignore the --datarootdir setting"
3446
3447 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
3448
3449         * device/include/mcs51/c8051f020.h,
3450         * device/include/mcs51/c8051f040.h,
3451         * device/include/mcs51/c8051f060.h,
3452         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
3453         * src/z80/gen.c (gencjneshort),
3454         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
3455
3456 2006-10-31 Borut Razem <borut.razem AT siol.net>
3457
3458         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3459           debugger/mcs51/configure: get readline version
3460
3461 2006-10-30 Borut Razem <borut.razem AT siol.net>
3462
3463         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
3464         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3465           debugger/mcs51/configure: locate readline even when cross compiling
3466         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
3467
3468 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3469
3470         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
3471           serial port.
3472
3473 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
3474
3475         * device/include/malloc.h,
3476         * device/lib/calloc.c,
3477         * device/lib/free.c,
3478         * device/lib/malloc.c,
3479         * device/lib/realloc.c: moved definition of struct into sources
3480         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
3481
3482 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
3483
3484         * as/asx8051.dsp: corrected output directories
3485         * as/link/hc08: new directory for hc08 linker
3486         * as/hc08/aslink.h,             as/link/aslink.h,
3487         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
3488         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
3489         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
3490         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
3491         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
3492         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
3493         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
3494         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
3495         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
3496         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
3497         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
3498         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
3499         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
3500         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
3501         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
3502         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
3503         * as/link/hc08/conf.mk,
3504         * configure,
3505         * configure.in,
3506         * Makefile.in,
3507         * sdcc.dsw: moved hc08 linker to as/link/hc08
3508         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
3509         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
3510         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
3511         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
3512         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
3513         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
3514         * as/link/mcs51/aslink.dsp,
3515         * as/link/mcs51/Makefile.in: factored out the common files
3516         * as/hc08/lkstore.c: deleted, use the one already in as/link/
3517         * as/clean.mk: extra cleaning common files
3518         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
3519         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
3520         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
3521
3522 2006-10-29 Raphael Neider <rneider AT web.de>
3523
3524         * src/pic/ralloc.c (newReg): create aliases for registers with
3525           multiple names to fix #1579535 and #1584001,
3526           (regWithIdx,dirregWithName): resolve aliases on lookup
3527         * src/pic/pcode.c (DoBankSelect): die with error message on failing
3528           bankselect
3529         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
3530           to prevent build errors on small devices
3531
3532 2006-10-28 Raphael Neider <rneider AT web.de>
3533
3534         * src/pic/gen.c (genFunction,genCall): drop "same code page"
3535           assumption within interrupt handlers, fixes #1584940
3536         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
3537           "emitted" to avoid emitting them again in udata
3538
3539 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3540
3541         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
3542         Removed.
3543
3544 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3545
3546         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
3547         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
3548         on/off CR to CRLF conversion.
3549
3550 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3551
3552         * doc/sdccman.lyx: updated IRQ section
3553
3554 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3555
3556         * device/lib/serial_io.c: removed
3557         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
3558         replacements for serial_io.c
3559
3560 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
3561
3562         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
3563
3564 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3565
3566         * device/lib/serial_io.c: Default putchar() and getchar() for
3567           mcs51 uses serial port.
3568
3569 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
3570
3571         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
3572
3573 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3574
3575         * support/regression/ports/mcs51/support.c: smaller
3576         _sdcc_external_startup()
3577         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
3578
3579 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
3580
3581         * device/lib/gbz80/crt0.s,
3582         * device/lib/gbz80/crt0_rle.s,
3583         * device/lib/gbz80/div.s,
3584         * device/lib/gbz80/fstubs.s,
3585         * device/lib/gbz80/heap.s,
3586         * device/lib/gbz80/mul.s,
3587         * device/lib/gbz80/putchar.s,
3588         * device/lib/gbz80/stubs.s,
3589         * device/lib/z80/crt0.s,
3590         * device/lib/z80/crt0_rle.s,
3591         * device/lib/z80/div.s,
3592         * device/lib/z80/fstubs.s,
3593         * device/lib/z80/heap.s,
3594         * device/lib/z80/mul.s,
3595         * device/lib/z80/putchar.s,
3596         * device/lib/z80/stubs.s: reverted, I was mistaken
3597
3598 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3599
3600         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
3601         * support/regression/ports/mcs51/support.c: removed race
3602         condition on TI in _putchar allowing to use serial port mode 0
3603
3604 2006-10-20 Borut Razem <borut.razem AT siol.net>
3605
3606         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
3607
3608 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
3609
3610         * device/lib/gbz80/crt0.s,
3611         * device/lib/gbz80/crt0_rle.s,
3612         * device/lib/gbz80/div.s,
3613         * device/lib/gbz80/fstubs.s,
3614         * device/lib/gbz80/heap.s,
3615         * device/lib/gbz80/mul.s,
3616         * device/lib/gbz80/putchar.s,
3617         * device/lib/gbz80/stubs.s,
3618         * device/lib/z80/crt0.s,
3619         * device/lib/z80/crt0_rle.s,
3620         * device/lib/z80/div.s,
3621         * device/lib/z80/fstubs.s,
3622         * device/lib/z80/heap.s,
3623         * device/lib/z80/mul.s,
3624         * device/lib/z80/putchar.s,
3625         * device/lib/z80/stubs.s: removed all leading underscores from area names
3626
3627 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
3628
3629         * support/regression/ports/mcs51/support.c: use highest baudrate so the
3630           regression tests are not waiting in the simulator for simulated
3631           transmission of debug output
3632
3633 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3634
3635         * device/lib/printf_large.c: slightly smaller
3636         * doc/sdccman.lyx: do not use spaces within html links
3637
3638 2006-10-16 Borut Razem <borut.razem AT siol.net>
3639
3640         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
3641           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
3642           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
3643           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
3644           debugger/mcs51/configure:
3645           [ 1185668 ] add gnu readline support to sdcdb - enabled
3646
3647 2006-10-16 Raphael Neider <rneider AT web.de>
3648
3649         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
3650           fixes #1577882, removes close to all banking optimizations
3651
3652 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
3653
3654         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
3655           variables in code memory
3656         * support/regression/tests/absolute.c: added test for this
3657
3658 2006-10-15 Raphael Neider <rneider AT web.de>
3659
3660         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
3661           devices,
3662           (BankSelect): emit BANKSEL before touching linker-placed regs,
3663           fixes #1570934
3664
3665 2006-10-10 Raphael Neider <rneider AT web.de>
3666
3667         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
3668         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
3669         * src/pic/main.c (_pic14_parseOptions),
3670         * src/pic/main.h: mostly reverted to previous state, now use results
3671             from SDCCmain.c's argument parsing
3672
3673 2006-10-10 Borut Razem <borut.razem AT siol.net>
3674
3675         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
3676           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
3677           [ 1185668 ] add gnu readline support to sdcdb -
3678           prepared for READLINE, not enabled yet,
3679           thanks to <tal.bav AT gmail.com>
3680
3681 2006-10-10 Raphael Neider <rneider AT web.de>
3682
3683         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
3684         * src/pic16/devices.inc,
3685         * device/include/pic16 (pic18f[24]620.h),
3686         * device/include/pic18fregs.h,
3687         * device/lib/pic16/pics.all,
3688         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
3689             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
3690             Gary Plumbridge and Anton Strobl
3691
3692 2006-10-10 Raphael Neider <rneider AT web.de>
3693
3694         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
3695           --stack-siz=NUM options to configure the argument passing stack
3696         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
3697         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
3698           (pic14_getSharebankSize): obey --stack-siz=NUM,
3699           (pic14_getSharebankAddress): obey --stack-loc=NUM
3700
3701 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3702
3703         * doc/sdccman.lyx: added to the manual
3704         * doc/figures/ddd_example.png: added (neither pdflatex nor
3705         most browsers seem to like the .eps file)
3706
3707 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
3708
3709         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
3710         to /tmp and /var/tmp acc. LSB
3711         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
3712         RESULT_TYPE_IFX
3713         * support/regression/tests/onebyte.c: added test
3714
3715 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3716
3717         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
3718
3719 2006-10-05 Borut Razem <borut.razem AT siol.net>
3720
3721         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
3722           thanks to dfulab:
3723           - sdcc.dsw: changed property eol-style to CRLF
3724           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
3725
3726 2006-10-04 Raphael Neider <rneider AT web.de>
3727
3728         * device/include/pic/{pic16f84.h,pic16f84a.h},
3729         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
3730           from patch #1522504, thanks to Robas Teodor
3731
3732 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
3733
3734         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
3735           fixes bug 1566015
3736
3737 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
3738
3739         * src/pic16/glue.c (pic16emitMaps),
3740         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
3741         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
3742         * device/lib/pic16/libc/string/memcpypgm2ram.c,
3743         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
3744           Philipp Krause
3745         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
3746         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
3747
3748 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3749
3750         * support/librarian/sdcclib.c: Added option -l.
3751         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
3752           usage totals.
3753         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
3754           using Windows command prompt.
3755
3756 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
3757
3758         * device/lib/libsdcc.lib: added module rand
3759         * src/ds390/ralloc.c (rematStr),
3760         * src/hc08/ralloc.c (rematStr),
3761         * src/mcs51/ralloc.c (rematStr),
3762         * src/z80/ralloc.c (rematStr): made output more consistent
3763         * src/mcs51/gen.c: cosmetic changes
3764
3765 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
3766
3767         * src/port.h: added mem.cabs_name to PORT
3768         * src/ds390/main.c,
3769         * src/hc08/main.c,
3770         * src/mcs51/main.c,
3771         * src/pic16/main.c,
3772         * src/pic/main.c,
3773         * src/xa51/main.c,
3774         * src/z80/main.c: added cabs_name initializers
3775         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
3776           constants
3777           (emitMaps): emit absolutes in code memory into cabs_name
3778         * src/SDCCmem.c,
3779         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
3780         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
3781         * support/regression/fwk/include/testfwk.h: added define for at
3782         * support/regression/tests/absolute.c: added, new
3783
3784 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
3785
3786         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
3787           optimizations, see also patch 887161 by Stas Sergeev
3788         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
3789           to be necessary anymore,
3790           (102, 103, 104, 127): renamed all occurances of bp to _bp
3791
3792 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
3793
3794         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
3795           thanks Weston T. Schmidt for patch 1555221
3796         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
3797         * src/SDCCicode.c(geniCodeMultiply): small optimization
3798
3799 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
3800
3801         * device/include/stdlib.h: added rand prototypes
3802         * device/lib/rand.c: new, added
3803         * device/lib/Makefile.in: added rand.c
3804         * src/z80/peeph.def,
3805         * src/z80/peeph-gbz80.def,
3806         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
3807
3808 2006-09-20 Raphael Neider <rneider AT web.de>
3809
3810         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
3811
3812 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
3813
3814         * as/link/aslink.h: cosmetic changes
3815         * as/link/mcs51/Makefile.in,
3816         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
3817
3818 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
3819
3820         * as/link/aslink.h,
3821         * as/link/mcs51/aslink.h,
3822         * as/link/z80/aslink.h: merged and moved to as/link/
3823         * as/link/lkstore.c,
3824         * as/link/mcs51/lkstore.c: moved to as/link/
3825         * as/link/clean.mk: remove *.o
3826         * as/link/mcs51/alloc.h: deleted
3827         * as/link/mcs51/lkarea.c: added lnksect prototype
3828         * as/link/mcs51/lkdata.c,
3829         * as/link/mcs51/lklex.c,
3830         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
3831         * as/link/mcs51/lkmem.c,
3832         * as/link/mcs51/lknoice.c: removed include strcmpi.h
3833         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
3834         * as/link/mcs51/aslink.dsp,
3835         * as/link/mcs51/Makefile.aslink,
3836         * as/link/mcs51/Makefile.bcc,
3837         * as/link/mcs51/Makefile.in: updated for moved files
3838         * as/link/z80/lkarea.c,
3839         * as/link/z80/lkhead.c,
3840         * as/link/z80/lklex.c,
3841         * as/link/z80/lklibr.c,
3842         * as/link/z80/lklist.c,
3843         * as/link/z80/lkmain.c,
3844         * as/link/z80/lkrloc.c,
3845         * as/link/z80/lksym.c: synced with mcs51
3846         * as/link/z80/lkdata.c,
3847         * as/link/z80/lkeval.c,
3848         * as/link/z80/lkihx.c,
3849         * as/link/z80/lks19.c: cosmetic changes
3850         * as/link/z80/Makefile.in,
3851         * as/link/z80/linkgbz80.dsp,
3852         * as/link/z80/linkz80.dsp: updated for moved files
3853
3854 2006-09-16 Borut Razem <borut.razem AT siol.net>
3855
3856         * debugger/mcs51/sdcdb.c: partially fixed
3857           [ 1203664 ] sdcdb fails to open files w. two "." periods
3858         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
3859           debugger/mcs51/symtab.h: fixed indenting
3860         * configure.in, configure: up to date with latest Maarten's changes
3861
3862 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
3863
3864         as/link/mcs51
3865         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
3866         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
3867         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
3868         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
3869         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
3870         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
3871         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
3872         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
3873         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
3874         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
3875         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
3876         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
3877         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
3878         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
3879         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
3880         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
3881         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
3882         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
3883         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
3884         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
3885         as/link/mcs51/alloc.h,
3886         as/link/mcs51/clean.mk,
3887         as/link/mcs51/conf.mk,
3888         as/link/mcs51/Makefile.bcc,
3889         as/link/mcs51/Makefile.in,
3890         as/link/mcs51/readme.390,
3891         as/link/mcs51/strcmpi.c,
3892         as/link/mcs51/strcmpi.h,
3893         as/mcs51/clean.mk,
3894         as/mcs51/Makefile.bcc,
3895         as/mcs51/Makefile.in,
3896         configure,
3897         Makefile.in,
3898         sdcc.dsw: moved mcs51 linker to as/link/mcs51
3899
3900 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
3901
3902         * as/link,
3903         * as/link/Makefile.in,
3904         * as/link/z80/linkgbz80.dsp,
3905         * as/link/z80/linkz80.dsp,
3906         * configure,
3907         * link,
3908         * link/clean.mk,
3909         * link/Makefile.in,
3910         * link/README,
3911         * link/z80,
3912         * link/z80/aslink.h,
3913         * link/z80/clean.mk,
3914         * link/z80/conf.mk,
3915         * link/z80/linkgbz80.dsp,
3916         * link/z80/linkz80.dsp,
3917         * link/z80/lkarea.c,
3918         * link/z80/lkdata.c,
3919         * link/z80/lkeval.c,
3920         * link/z80/lkgb.c,
3921         * link/z80/lkgg.c,
3922         * link/z80/lkhead.c,
3923         * link/z80/lkihx.c,
3924         * link/z80/lklex.c,
3925         * link/z80/lklibr.c,
3926         * link/z80/lklist.c,
3927         * link/z80/lkmain.c,
3928         * link/z80/lkrloc.c,
3929         * link/z80/lks19.c,
3930         * link/z80/lksym.c,
3931         * link/z80/Makefile.in,
3932         * Makefile.in,
3933         * sdcc.dsw: moved link/ to as/link/
3934
3935 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
3936
3937         * as/mcs51/i51mch.c (machine): fixed warning
3938
3939 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
3940
3941         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
3942
3943 2006-09-09 Borut Razem <borut.razem AT siol.net>
3944
3945         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
3946           sdcdb WIN32 native port
3947         * src/clean.mk: fixed
3948
3949 2006-09-08 Borut Razem <borut.razem AT siol.net>
3950
3951         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
3952
3953 2006-09-08 Raphael Neider <rneider AT web.de>
3954
3955         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
3956         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
3957             to gplink to disable processor mismatch warning and to allow
3958             the use of devices with only aliased (shared) memory banks,
3959           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
3960
3961 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3962
3963         * doc/sdccman.lyx: Some re-formating plus example on using
3964           #pragma preproc_asm +/-
3965
3966 2006-09-07 Borut Razem <borut.razem AT siol.net>
3967
3968         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
3969           section
3970
3971 2006-09-06 Borut Razem <borut.razem AT siol.net>
3972
3973         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
3974           line at sdcc.nsi:153
3975         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
3976
3977 2006-09-05 Borut Razem <borut.razem AT siol.net>
3978
3979         * configure.in, configure: support for winsock2
3980         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
3981           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
3982           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
3983           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
3984           debugger/mcs51/symtab.h: sdcdb WIN32 native port
3985
3986 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
3987
3988         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
3989           and OP_DEFS
3990         * support/regression/tests/bug1551947.c: new, added
3991         * src/SDCCsymt.h: strings are char* not byte*
3992
3993 2006-09-05 Raphael Neider <rneider AT web.de>
3994
3995         * device/lib/pic16/libdev/pic18f4550.c,
3996           device/include/pic16/pic18f4550.h: added PORTD/TRISD
3997             declarations/definitions from patch #1520949
3998
3999 2006-09-05 Raphael Neider <rneider AT web.de>
4000
4001         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
4002           byte-aligned bitfields, fixes #1539278
4003
4004 2006-09-05 Raphael Neider <rneider AT web.de>
4005
4006         * src/pic/gen.c (genReceive): skip unreferenced arguments,
4007           fixes #1544120
4008
4009 2006-09-04 Borut Razem <borut.razem AT siol.net>
4010
4011         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
4012         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
4013           -mno-cygwin is a part of the compiler name
4014         * support/scripts/sdcc_mingw32: don't disable ucsim
4015
4016 2006-09-03 Borut Razem <borut.razem AT siol.net>
4017
4018         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
4019         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
4020
4021 2006-09-03 Raphael Neider <rneider AT web.de>
4022
4023         * src/pic/ralloc.c,
4024         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
4025           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
4026           fixes #1550049
4027
4028 2006-09-01 Borut Razem <borut.razem AT siol.net>
4029
4030         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
4031           to make ppc-osx happy
4032
4033 2006-08-31 Borut Razem <borut.razem AT siol.net>
4034
4035         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
4036         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
4037         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
4038         * support/regression/ports/ds390/spec.mk,
4039           support/regression/ports/mcs51/spec.mk,
4040           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
4041           To run regression tests in mingw environment:
4042           make DEV_NULL=NUL CC=gcc
4043
4044 2006-08-30 Borut Razem <borut.razem AT siol.net>
4045
4046         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
4047           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
4048           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
4049           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
4050           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
4051           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
4052           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
4053           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
4054           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
4055           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
4056           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
4057           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
4058           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
4059           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
4060           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
4061           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
4062           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
4063           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
4064           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
4065           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
4066           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
4067           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
4068           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
4069           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
4070           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
4071           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
4072           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
4073           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
4074           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
4075           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
4076           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
4077           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
4078           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
4079           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
4080           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
4081           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
4082           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4083           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
4084           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
4085           ucsim WIN32 native port
4086
4087 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4088
4089         * doc/sdccman.lyx: added note on dynamic memory heap initialization
4090
4091 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4092
4093         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
4094         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
4095
4096 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
4097
4098         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
4099         * support/regression/tests/bug1546986.c: new, added
4100         * as/mcs51/.cvsignore,
4101         * debugger/mcs51/.cvsignore,
4102         * src/.cvsignore: deleted
4103
4104 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4105
4106         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
4107           definitions)
4108
4109 2006-08-20 Borut Razem <borut.razem AT siol.net>
4110
4111         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
4112           removed cl_listen_console::match(), cl_console::match(),
4113           restructured cl_commander::proc_input()
4114
4115 2006-08-16 Borut Razem <borut.razem AT siol.net>
4116
4117         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
4118           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
4119           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
4120
4121 2006-08-14 Borut Razem <borut.razem AT siol.net>
4122
4123         * support/regression/Makefile.in,
4124           support/regression/ports/pic14/gpsim.cmd,
4125           support/regression/ports/pic14/spec.mk,
4126           support/regression/ports/pic14/support.c:
4127           added pic14 regression test
4128
4129 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
4130
4131         * as/doc/asxhtm.html: documented changed ABS behaviour
4132         * as/doc/README: fixed some typos
4133
4134 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
4135
4136         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
4137           not defined on host
4138
4139 2006-08-12 Borut Razem <borut.razem AT siol.net>
4140
4141         * support/regression/fwk/include/testfwk.h,
4142           support/regression/fwk/lib/testfwk.c,
4143           support/regression/generate-cases.py,
4144           support/regression/Makefile.in:
4145           regression test framework does not depend on function pointers and
4146           variable arguments
4147
4148 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
4149
4150         * device/include/stddef.h: c temporary hack to fix bug 1518273
4151
4152 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4153
4154         * device/include/mcs51/cc2510fx.h: added
4155         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
4156           to projects.
4157
4158 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
4159
4160         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
4161         * as/z80/Makefile.in: added strcmpi.c
4162         * as/z80/z80adr.c: added upper case registers and lower case conditionals
4163         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
4164
4165 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
4166
4167         * device/lib/gbz80/asm_strings.s,
4168         * device/lib/gbz80/crt0_rle.s,
4169         * device/lib/gbz80/div.s,
4170         * device/lib/gbz80/mul.s,
4171         * device/lib/gbz80/shift.s,
4172         * device/lib/z80/asm_strings.s,
4173         * device/lib/z80/crt0_rle.s,
4174         * device/lib/z80/div.s,
4175         * device/lib/z80/mul.s,
4176         * device/lib/z80/shift.s: changed to all lower case menmonics except the
4177           flags which are all upper case
4178
4179 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
4180
4181         * as/z80/asm.h: made CASE_SENSITIVE 1
4182         * link/z80/aslink.h: made CASE_SENSITIVE 1
4183         * src/z80/gen.c (throughout): made all conditionals upper case
4184         * support/regression/tests/bug1503067.c: new
4185
4186 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
4187
4188         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
4189           (shiftIntoPair): added case 2 for PAIR_IY,
4190           (setupToPreserveCarry): replaced parameters with iCode and check if
4191            PAIR_DE is in use to fix bug 1399290,
4192           (genPlus, genMinus): updated call to setupToPreserveCarry
4193         * support/regression/tests/bug1399290.c: new
4194
4195 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
4196
4197         * device/lib/Makefile.in (Z80SOURCES): enabled float support
4198         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
4199         * src/ds390/gen.c (shiftRLong),
4200         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
4201         * src/mcs51/gen.c (sameReg): changed to sameByte,
4202           (xch_a_aopGet): new,
4203           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
4204            shiftRLong): fixed bug 1533966
4205         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
4206           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
4207         * support/regression/Makefile.in: disabled z80, enabled ucz80
4208         * support/regression/tests/float_trans.c: enabled test for z80 and host
4209         * support/regression/tests/shifts2.c: new, for testing bug 1533966
4210
4211 2006-08-01 Borut Razem <borut.razem AT siol.net>
4212
4213         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
4214           comparison is always false due to limited range of data type
4215           on PPC64 machine (openpower-linux1) where "char = unsigned char"
4216
4217 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
4218
4219         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
4220         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
4221         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
4222         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
4223
4224 2006-07-31 Borut Razem <borut.razem AT siol.net>
4225
4226         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
4227           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
4228           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
4229           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
4230           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
4231           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
4232           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
4233           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
4234           enable ucsim mingw compilation. Serial port is disabled,
4235           since it uses termios.h API, which is not available on native
4236           WIN32
4237
4238 2006-07-31 Borut Razem <borut.razem AT siol.net>
4239
4240         * Small Device C Compiler 2.6.0 released
4241         * support/scripts/sdcc.nsi: added FULL_DOC option
4242         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
4243
4244 2006-07-28 Borut Razem <borut.razem AT siol.net>
4245
4246         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
4247         * doc/INSTALL.txt: updated
4248
4249 2006-07-27 Borut Razem <borut.razem AT siol.net>
4250
4251         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
4252           device/lib/pic/libdev/Makefile.in: fixed bug
4253           [ 1438354 ] pic libsdcc: distclean doesn't work
4254         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
4255           device/lib/pic16/libio/Makefile.in: fixed bug
4256           [ 1438344 ] pic16 lib: clean doesn't work properly
4257         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
4258
4259 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
4260
4261         * device/lib/pic/libsdcc/fsdiv.c,
4262         * device/lib/pic/libsdcc/fsmul.c,
4263         * device/lib/pic16/libsdcc/float/fsdiv.c,
4264         * device/lib/pic16/libsdcc/float/fsmul.c,
4265         * device/lib/_fsdiv.c,
4266         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
4267         * support/regression/tests/bug1520966.c: added
4268         * doc/knownbugs.html: removed [ 1520966 ] from the list
4269
4270 2006-07-25 Borut Razem <borut.razem AT siol.net>
4271
4272         * configure.in, configure, sdccconf_in.h: fixed bug
4273           [ 1519095 ] regression test onebyte.c fails on ppc64 host
4274         * doc/knownbugs.html: removed [ 1519095 ] from the list
4275
4276 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
4277
4278         * doc/knownbugs.html: added, contains list of known bugs at release
4279         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
4280
4281 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
4282
4283         * device/include/mcs51/compiler.h: added SFRX for xdata based special
4284           function registers and corrected defaults with additional warning
4285         * device/lib/malloc.c: cosmetic changes
4286         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
4287         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
4288           (fillGaps): and used it
4289
4290 2006-07-20 Raphael Neider <rneider AT web.de>
4291
4292         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
4293           output unless SDCCPICDEBUG is set
4294         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
4295           output if SILENT is set
4296
4297 2006-07-11 Borut Razem <borut.razem AT siol.net>
4298
4299         * doc/README.txt: updated
4300
4301 2006-07-10 Borut Razem <borut.razem AT siol.net>
4302
4303         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
4304           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
4305           in WIN32 installation
4306         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
4307           release candidate 1
4308
4309 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
4310
4311         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
4312         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
4313
4314 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
4315
4316         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
4317
4318 2006-07-06 Borut Razem <borut.razem AT siol.net>
4319
4320         * support/regression/tests/bitfields.c:
4321           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
4322         * support/regression/tests/constantRange.c:
4323           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
4324
4325 2006-07-04 Borut Razem <borut.razem AT siol.net>
4326
4327         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
4328           src/port.mk,
4329           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
4330           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
4331           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
4332           reverted changes from 2006-07-03
4333         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
4334         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
4335           added CPPFLAGS, used by the host port
4336
4337 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
4338
4339         * support/regression/valdiag/tests/switch.c,
4340         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
4341         * support/regression/tests/libmullong.c: fixed for host
4342         * support/regression/ports/host/spec.mk: disable all warnings for host,
4343         SDCC runs with --less-pedantic too
4344
4345 2006-07-03 Borut Razem <borut.razem AT siol.net>
4346
4347         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
4348           defined CPPFLAGS
4349         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
4350         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
4351           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
4352           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
4353           include ../port.mk
4354         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
4355           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
4356           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
4357           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
4358
4359 2006-07-02 Raphael Neider <rneider AT web.de>
4360
4361         * src/pic16/devices.inc,
4362         * device/include/pic16/pic18fregs.h,
4363         * device/include/pic16/pic18f4550.h,
4364         * device/lib/pic16/pics.all,
4365         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
4366
4367 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
4368
4369         * as/hc08/lkaomf51.c (OutputName),
4370         * as/mcs51/lkaomf51.c (OutputName),
4371         * as/z80/asmain.c (asmbl),
4372         * src/ds390/main.c (asmLineNodeFromLineNode),
4373         * src/hc08/ralloc.c (hc08_assignRegisters),
4374         * src/mcs51/main.c (asmLineNodeFromLineNode),
4375         * src/xa51/ralloc.c (checkRegMask),
4376         * src/xa51/gen.c (emitcode),
4377         * src/z80/gen.c (_emit2),
4378         * src/SDCCast.c (searchLitOp),
4379         * src/SDCCglobl.h,
4380         * support/packihx/packihx.c,
4381         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
4382         * src/ds390/gen.c (aopPutUsesAcc),
4383         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
4384         * support/regression/tests/libmullong.c (mullong_wrapper),
4385         * src/SDCCsymt.c (powof2),
4386         * src/SDCCast.c,
4387         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
4388         * src/SDCCsymt.h: added TYPE_TARGET_*
4389         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
4390         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
4391         SDCCast because 1) header problems 2) this is the right place
4392         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
4393         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
4394         prototype
4395
4396 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
4397
4398         * src/SDCCicode.h: removed buggy semicolon in unused macro
4399         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
4400         search for previous definiton of auto symbols too,
4401         (findPrevUse): fixed logic of emitWarnings
4402
4403 2006-06-26 Raphael Neider <rneider AT web.de>
4404
4405         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
4406           PCLATH and PCLATU on interrupts, potentially fixes #1505141
4407
4408 2006-06-25 Raphael Neider <rneider AT web.de>
4409
4410         * device/lib/pic/libm: NEW, added math library functions
4411         * device/lib/pic/libsdcc: NEW; added float support functions
4412         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
4413         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
4414           NEW, added math related headers
4415         * device/include/asm/pic/features.h: NEW
4416         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
4417           (popGet): allow larger offsets for AOP_PCODE,
4418           (genDataPointerSet): handle literals explicitly, more debug output,
4419           (genAssign): fixed for float using aopLiteral ;-)
4420         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
4421           GOTO initialisation routine
4422         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
4423           flag on registers, fixes #1469043 (local variables do not work)
4424         * src/pic/main.c (_pic14_do_link),
4425         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
4426           available
4427
4428 2006-06-25 Borut Razem <borut.razem AT siol.net>
4429
4430         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
4431           characters printed (not including the trailing '\0' used to end
4432           output to strings). Problem detected in regression test bug-927659.c.
4433           NOTE: printf() family functions should return int instead
4434           unsigned int!
4435         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
4436           specifier are printed as themselves
4437         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
4438           support flags, width and precision specifiers
4439
4440 2006-06-24 Borut Razem <borut.razem AT siol.net>
4441
4442         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
4443           to the list of sdcc tagrets not supporting bit type
4444         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
4445           testfor pic16 due to bug:
4446           [ 1511794 ] pic16: regression test bug-895992.c fails
4447
4448 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
4449
4450         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
4451         * src/SDCCglue.c (initPointer), fixed bug 1496419
4452         * support/regression/tests/bug1496419.c: new, added
4453
4454 2006-06-22 Borut Razem <borut.razem AT siol.net>
4455
4456         * support/regression/ports/pic16/support.c: use gpsim usart module from
4457           libgpsim_modules library
4458
4459 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4460
4461         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
4462         IP0H to IPH0.
4463
4464 2006-06-19 Raphael Neider <rneider AT web.de>
4465
4466         * src/pic/glue.h,src/pic16/glue.h: added prototypes
4467         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
4468           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
4469           (pic14printExterns,pic14printPublics,pic16printPublics,
4470           pic16_printExterns): use new functions to emit symbols
4471           (picglue,pic16glue): emit publics before emitting externs
4472         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
4473           locally defined functions to avoid bug #1443651
4474         * support/regression/tests/bug-716242.c: removed pic16 workaround
4475         * support/regression/ports/pic16/spec.mk: ignore errors during build
4476
4477 2006-06-19 Raphael Neider <rneider AT web.de>
4478
4479         * src/pic/glue.h: added pic14aopLiteral prototype
4480         * src/pic/glue.c (pic14aopLiteral): return unsigned int
4481         * src/pic/gen.c: removed stdint.h dependency
4482           (aopGet): use Safe_strdup()
4483           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
4484           (genDataPointerSet): use pic14aopLiteral()
4485         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
4486           for pic16; thanks to Bernhard and Maarten
4487
4488 2006-06-18 Borut Razem <borut.razem AT siol.net>
4489
4490         * support/regression/tests/structflexarray.c: flexible array members
4491           not supported by gcc < 3
4492         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
4493           GUI tool by default
4494         * src/pic/gen.c: don't include [p]strdin.h on solaris
4495         * support/Util/pstdint.h: addad svn attributes
4496         * support/regression/tests/constantRange.c,
4497           support/regression/tests/rotate.c: include inttypes.h instead
4498           stdint.h on solaris, addad svn attributes
4499
4500 2006-06-18 Raphael Neider <rneider AT web.de>
4501
4502         * src/SDCCsymt.c (initCSupport): change return type of divschar to
4503           int for PIC16
4504         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
4505           (pic16_genMinusBits): simplified sign-extension
4506           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
4507             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
4508             adjusted to correctly handle mixed-signed operands, disabled
4509             now unused multiplciation routines
4510         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
4511           (assignResultValue): added argument denoting the size of the result
4512             as returned by the function (fixes upcasts in assigning from
4513             function calls: char foo(); int i = foo();)
4514           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
4515             function result to assignResultValue
4516           (genMult): disabled inlined multiplication code
4517           (genDiv): augmented to also handle the modulus operator, fixed to
4518             handle mixed-signed operands correctly
4519           (genMod): simply call genDiv, disabled unused code
4520           (genAssign): fixed missing (sign-)extension on result
4521         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
4522             valid char operands, allow signed operands for native code, added
4523             division and modulo operator handling
4524         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
4525
4526         As a consequence, onebyte.c (if split into two files) and muldiv.c
4527         pass regression tests.
4528
4529 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4530
4531         * doc/Makefile.in: two runs of makeindex seem needed to get
4532         correct page references in the index of sdccman.pdf
4533         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
4534
4535 2006-06-17 Borut Razem <borut.razem AT siol.net>
4536
4537         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
4538
4539 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4540
4541         * doc/sdccman.lyx: updated, added (porting source code, debugging),
4542         mentioned ec2drv and paulmon
4543
4544 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
4545
4546         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
4547           consecutive abs areas
4548           (find_empty_space, allocate_space): added map to handle codemap or
4549            xdatamap,
4550           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
4551            absolute idata and xdata
4552         * as/mcs51/lkmem.c (summary2): updated legend
4553
4554 2006-06-16 Raphael Neider <rneider AT web.de>
4555
4556         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
4557
4558 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
4559
4560         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
4561           1208515
4562         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
4563
4564 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
4565
4566         * src/port.h (struct PORT): added field gp_tags, to hold the tag
4567         value of generic pointers,
4568         * src/avr/main.c,
4569           src/ds390/main.c,
4570           src/hc08/main.c,
4571           src/izt/i186.c,
4572           src/izt/tlcs900h.c,
4573           src/mcs51/main.c,
4574           src/pic/main.c,
4575           src/pic16/main.c,
4576           src/xa51/main.c,
4577           src/z80/main.c: PORT structure, added elements for gp_tags field,
4578         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
4579         fields in the PORT structure of each port,
4580         * src/SDCCast.c (decorateType): allow processing of generic pointers
4581         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
4582         S_FIXED symbols
4583
4584 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
4585
4586         * link/z80/lkgb.c,
4587         * link/z80/lkgg.c,
4588         * src/pic16/gen.c,
4589         * src/pic16/main.c,
4590         * src/pic16/pcode.c,
4591         * src/pic/main.c,
4592         * src/pic/pcoderegs.c,
4593         * src/SDCCicode.c,
4594         * src/SDCCmain.c,
4595         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
4596           bug 1504689 on minGW
4597
4598 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4599
4600         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
4601
4602 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
4603
4604         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
4605
4606 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
4607
4608         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
4609           for optimization
4610
4611 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
4612
4613         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
4614         to a char variable. Fixed bug #1504211
4615         * device/include/pic16/adc.h,
4616         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
4617         and fixed bug #1364390
4618
4619 2006-06-10 Borut Razem <borut.razem AT siol.net>
4620
4621         * CVSROOT: removed the CVS left-over
4622
4623 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
4624
4625         * as/hc08/asmain.c (asexit),
4626         * as/hc08/lkmain.c (lkexit),
4627         * as/mcs51/asmain.c (asexit),
4628         * as/mcs51/lkmain.c (lkexit),
4629         * src/SDCCglue.c (DEFSETFUNC),
4630         * src/SDCCmain.c (linkEdit, assemble),
4631         * support/librarian/sdcclib.c (AddRel),
4632           replaced unlink() by standard C remove()
4633         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
4634         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
4635           gatherImplicitVariables): new, added to fix bug 608752,
4636           (createFunction): added gatherImplicitVariables()
4637         * src/SDCCast.h: added createRMW prototype
4638         * src/SDCCsymt.h (struct symbol): added infertype
4639         * support/regression/tests/bug608752.c: new, added
4640
4641 2006-06-10 Raphael Neider <rneider AT web.de>
4642
4643         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
4644           multibyte dummy reads (fixes #1503234)
4645
4646 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
4647
4648         * device/include/mcs51/compiler.h: new, added header file to enable
4649           creating common sfr definition header files for different compilers
4650
4651 2006-06-05 Raphael Neider <rneider AT web.de>
4652
4653         * src/pic16/{pcode.h,genarith.c}:
4654           introduced pCodeOp combining any two pCodeOps (previously only
4655           two register operands could be combined), removed pcop2 from
4656           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
4657         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
4658         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
4659           rewritten to use new PO_TWO_OPS
4660         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
4661         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
4662           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
4663           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
4664           (pic16_get_op): embraced return arg to allow #define return(x),
4665             added new case for combined opcodes
4666           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
4667           (pic16_pCode2str,pic16_getRegFrompCodeOp,
4668            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
4669
4670 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
4671
4672         * src/SDCCval.c (checkConstantRange): added
4673         * src/SDCCval.h: added checkConstantRange
4674         * support/Util/SDCCerr.c,
4675         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
4676         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
4677         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
4678         * src/SDCCast.c (decorateType): added checkConstantRange,
4679         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
4680         can be emitted with the correct always true/false warning,
4681         added optimization for double '!';
4682         result of decorateType() must be assigned back to the tree, because
4683         decorateType() can change the tree
4684         * src/SDCCicode.c (geniCodeLogic),
4685         (geniCodeAssign): replaced new checkConstantRange, added warnings,
4686         (checkConstantRange): removed, it was only a fragment which never
4687         emitted a warning
4688         * src/SDCCsymt.c (computeType): fixed promotion for
4689         "-1 < (unsigned bit) b"
4690         * src/pic/ralloc.c (packRegsForAssign),
4691         * src/pic16/ralloc.c (packRegsForAssign),
4692         * src/hc08/ralloc.c (packRegsForAssign),
4693         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
4694         from mcs51
4695         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
4696         * support/regression/tests/constantRange.c: added
4697         * support/valdiag/tests/constantRange.c: added
4698         * support/valdiag/valdiag.py: added -DPORT_HOST=1
4699
4700 2006-06-02 Borut Razem <borut.razem AT siol.net>
4701
4702         * support/regression/ports/pic16/support.c: increase stack size
4703           to 255 bytes
4704         * support/regression/Makefile.in: sort tests by name so that the
4705           resutlts can be compared on different machines / platforms
4706
4707 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
4708
4709         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
4710         * src/ds390/gen.c (emitLabel): new, added,
4711           (genDjnz): fixed stack overflow bug,
4712           (throughout): cosmetic changes to sync with mcs51/gen.c,
4713           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
4714         * src/mcs51/gen.c (genEndFunction): small optimization,
4715           (throughout): cosmetic changes to sync with ds390/gen.c
4716
4717 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
4718
4719         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
4720           (_print_format): fixed printing pointers
4721         * src/mcs51/gen.c (emitLabel, movb): new, added,
4722           (genAssign): small optimization,
4723           (genDjnz): fixed stack overflow bug,
4724           (throughout): replaced sprintf with SNPRINTF,
4725           replaced mcs51_regWithIdx with REG_WITH_INDEX,
4726           replaced emitcode("mov", "b,...") with MOVB(...),
4727           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
4728           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
4729         * src/mcs51/peeph.def: added rules 140 and 264
4730         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
4731           so they may get optimized into registers
4732
4733 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
4734
4735         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
4736           immediately when encountered,
4737           (printUsage): always use stderr even on windows
4738
4739 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
4740
4741         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
4742         (processParms): fixed bug #1247551
4743         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
4744         parseCmdLine, main): print '--version' to stdout,
4745         print 'help' to stdout if --help is given,
4746         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
4747         arguments are given; fixed --help
4748
4749 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
4750
4751         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
4752         * support/regression/tests/bug-1493710.c: added
4753
4754 2006-05-27 Borut Razem <borut.razem AT siol.net>
4755
4756         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
4757           static instead auto
4758         * support/regression/ports/pic16/support.c: increase stack size
4759           from default 64 bytes to 128 bytes
4760         * support/regression/tests/staticinit.c,
4761           support/regression/tests/float.c: regression tests fully enabled
4762           for pic16 port by putting the initialized data arrays into the code
4763           section
4764         * support/regression/ports/pic16/spec.mk: don't link default libraries.
4765           This was changed by mistake in the previous version.
4766
4767 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
4768
4769         * src/pic16/gen.c (genFunction, genEndFunction): some
4770         beautifications, fixed bug with falsely restoring FSR2 in large
4771         stack model, thanks to Beau E. Cox for reporting the bug
4772
4773 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
4774
4775         * debugger/mcs51/break.c,
4776         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
4777           use %p to print pointers, made address variables unsigned
4778         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
4779         * debugger/mcs51/symtab.c (parseSymbol): must return something
4780         * src/mcs51/gen.c (aopForSym): small optimization,
4781            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
4782           (freeAsmop): added missing break,
4783           (aopPut): removed parameter bvolatile, determine it inside the function,
4784           (saveRegisters, unsaveRegisters): small optimization,
4785           (genIpush): removed pointless check,
4786           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
4787           replaced sprintf with SNPRINTF,
4788           replaced strcpy with strncpyz,
4789           updated aopPut calls,
4790           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
4791         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
4792
4793 2006-05-24 Borut Razem <borut.razem AT siol.net>
4794
4795         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
4796           modification of test for the pic16 port, put the array to the code
4797           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
4798
4799 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4800
4801         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
4802         * support/Util/pstdint.h: added
4803
4804 2006-05-22 Borut Razem <borut.razem AT siol.net>
4805
4806         * src/regression/Makefile: removed bool2.c test, added -q linker option
4807         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
4808           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
4809           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
4810           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
4811           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
4812           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
4813           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
4814           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
4815           define SUPPORT_BIT_TYPES 0, removed unused bit variables
4816
4817 2006-05-22 Raphael Neider <rneider AT web.de>
4818
4819         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
4820           bug #1492360 (problematic due to generic pointers, see code)
4821
4822 2006-05-22 Borut Razem <borut.razem AT siol.net>
4823
4824         * support/regression/ports/pic16/specs.mk: removed stack size linker
4825           directive
4826         * support/regression/tests/array.c,
4827           support/regression/tests/bitopcse.c,
4828           support/regression/tests/bug-908454.c,
4829           support/regression/tests/malloc.c: modified for pic16 regression test
4830         * support/regression/tests/bitfields.c:
4831           pic16 - excluded bitfileds of size > 8
4832         * support/regression/tests/bp.c: pic16 - reduced data size
4833         * support/regression/tests/bug-221100.c: pic16 - reduced data size
4834         * support/regression/tests/bug-460010.c:
4835           pic16 - used the absolute address the fits in memory
4836         * support/regression/tests/bug-716242.c:
4837           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
4838         * support/regression/tests/float.c:
4839           pic16 - excluded - data size too big
4840         * support/regression/tests/onebyte.c:
4841           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
4842         * support/regression/tests/shifts.c:
4843           pic16 - function names probably have to differ in first X characters
4844           (gpasm limitation?)
4845         * support/regression/tests/staticinit.c:
4846           pic16 - excluded some tests due error: no target memory available for
4847           section ".idata"
4848
4849 2006-05-22 Borut Razem <borut.razem AT siol.net>
4850
4851         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
4852           second try. Thanks Stas Sergeev once more.
4853
4854 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
4855
4856         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
4857           (genLeftShift, genRightShift): fixed bug 1491627
4858         * src/hc08/peeph.def (rules 7, 8.x): added
4859         * support/regression/tests/shifts.c (ShiftLeftByParam,
4860           ShiftRightByParam, testShiftByParam): added to test variable shifting
4861
4862 2006-05-20 Raphael Neider <rneider AT web.de>
4863
4864         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
4865         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
4866           (allocReg): add only new registers to dynAllocRegs,
4867           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
4868             #1489055, #1445850, and probably #1483693
4869
4870 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
4871
4872         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
4873         bug in for-loop that didn't emit the last of CONFIG and ID registers
4874
4875 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
4876
4877         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
4878           with offset
4879         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
4880           1489016, 1434401 and 1490124
4881         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
4882           1489016, 1434401 and 1490124
4883
4884 2006-05-17 Borut Razem <borut.razem AT siol.net>
4885
4886         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
4887           thanks Stas Sergeev
4888
4889 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
4890
4891         * device/include/mcs51/P89c51RD2.h,
4892         * device/include/mcs51/P89LPC901.h,
4893         * device/include/mcs51/P89LPC922.h,
4894         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
4895
4896 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
4897
4898         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
4899         to fix missing stack pragma in compiled binary object file,
4900
4901 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
4902
4903         * support/packihx/configure.in,
4904         * support/packihx/configure: removed warning, autoconf >= 2.5x can
4905         determine sizeof basic types even while cross compiling
4906
4907 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
4908
4909         * src/avr/gen.c (aopop),
4910         * src/ds390/gen.c (aopOp),
4911         * src/hc08/gen.c (aopOp),
4912         * src/mcs51/gen.c (aopop),
4913         * src/pic16/gen.c (pic16_aopOp),
4914         * src/pic/gen.c (aopOp),
4915         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
4916         if size of operand is smaller than spill location
4917
4918 2006-05-12 Borut Razem <borut.razem AT siol.net>
4919
4920         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
4921           have to have CR/LF line endings even if they are checked out on *nix
4922           or on WIN32 in cygwin binmode
4923
4924 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
4925
4926         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
4927         * device/include/ds80c390.h: added sfr16 definitions
4928         * src/ds390/gen.c,
4929         * src/ds390/gen.h,
4930         * src/ds390/main.c,
4931         * src/ds390/ralloc.c,
4932         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
4933           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
4934           bit returning functions
4935         * support/regression/tests/sfr16.c: enabled test on ds390
4936
4937 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4938
4939         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
4940         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
4941
4942 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
4943
4944         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
4945         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
4946           (cl_address_space constructor): removed expensive initialization,
4947           (cl_address_space::get_cell): extended for late initialization,
4948           (cl_address_space::*): use late initialization,
4949           (cl_address_decoder::activate): removed expensive initialization,
4950           This reduced regression test running time by 25%
4951
4952 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
4953
4954         * packihx/,
4955         * configure.in,
4956         * configure,
4957         * sdcc.dsw,
4958         * Makefile.bcc,
4959         * Makefile.in,
4960         * support/packihx/Makefile.in,
4961         * support/packihx/clean.mk,
4962         * support/packihx/Makefile.bcc,
4963         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
4964
4965 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4966
4967         * src/SDCCval.c (valNot): fix for regression test failure
4968           of not.c on big endian hosts
4969
4970 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
4971
4972         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
4973
4974 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4975
4976         * device/lib/mcs51/Makefile.in: changed string comparison operator
4977           to = for POSIX compliance; == is bash extension
4978
4979 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
4980
4981         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
4982           kosmonaut_pirx
4983
4984 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
4985
4986         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
4987         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
4988         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
4989         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
4990         bug report #1478657,
4991
4992 2006-05-05 Borut Razem <borut.razem AT siol.net>
4993
4994         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
4995           making the html
4996
4997 2006-05-02 Borut Razem <borut.razem AT siol.net>
4998
4999         * doc/Makefile.in: removed *.ind dependency since there is no rule to
5000           create *.ind, which made make to fail if invoked with -j 2
5001
5002 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
5003
5004         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
5005           Hubert Sack for patch 1479782
5006
5007 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
5008
5009         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
5010
5011 2006-05-01 Raphael Neider <rneider AT web.de>
5012
5013         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
5014           (create_pic): store only prefix-free device name,
5015           (init_pic): check for device names with "16" prefix,
5016           (list_valid_pics),
5017         * src/pic/device.h (struct PIC_device),
5018         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
5019             stored device name,
5020         * device/include/pic/pic12f{635,675,629,683}.h,
5021         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
5022         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
5023         * device/include/pic/pic16f505.h,
5024         * device/lib/pic/libdev/pic16f505.c: removed
5025         * device/include/pic/pic14devices.txt: added support for pic12f
5026             devices, removed unsupported non 16-bit devices
5027             [above changes provided by patch from Zik Saleeba]
5028         * src/pic/*, src/pic16/*, device/include/pic16/*,
5029           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
5030
5031 2006-05-01 Borut Razem <borut.razem AT siol.net>
5032
5033         * configure.in, configure, doc/Makefile.in:
5034           sync with nightly build makefile - latex, dvipdf and dvips
5035           not needed any more
5036
5037 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
5038
5039         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
5040         in the library source
5041
5042 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
5043
5044         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
5045
5046 2006-04-28 Raphael Neider <rneider AT web.de>
5047
5048         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
5049         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
5050           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
5051         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
5052
5053 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
5054
5055         * device/lib/pic/libdev/Makefile.in,
5056         * device/lib/hc08/Makefile.in,
5057         * device/lib/gbz80/Makefile.in,
5058         * device/lib/z80/Makefile.in,
5059         * device/lib/ds390/Makefile.in,
5060         * device/lib/ds400/Makefile.in: added srcdir to include search path,
5061         thanks to Borut for the bug report
5062         * configure.in,
5063         * configure: always create doc/Makefile independent from --enable-doc
5064         * Makefile.in: always install from directory doc independent from
5065         --enable-doc
5066         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
5067         removed
5068         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
5069         * doc/Makefile.in: install *.txt if present
5070         * device/include/Makefile.in (install): added installation of pic/*.inc
5071         and pic/*.txt files again, they were erroneously removed
5072
5073 2006-04-28 Raphael Neider <rneider AT web.de>
5074
5075         * src/pic/{gen.c,main.h,pcode.c},
5076         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
5077             concerning signedness with casts
5078
5079 2006-04-28 Raphael Neider <rneider AT web.de>
5080
5081         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
5082             definition of an interrupt handler,
5083         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
5084             interrupt handler stuff from picglue() to separate routine,
5085           (picglue): enabled definition of intr handlers in files w/o main()
5086
5087 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5088
5089         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
5090           compilation with MSVC 2005 Express Edition (VC8)
5091
5092 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
5093
5094         * device/lib/Makefile: fixed build of gbz80 lib
5095
5096 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5097
5098         * support/regression/tests/bug-460010.c,
5099         * support/regression/tests/bug-524691.c,
5100         * support/regression/tests/bug-716242.c: removed conditional defines
5101           that are already in testfwk.h
5102
5103 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
5104
5105         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
5106           (AccAXRsh1): added, shift right by 1,
5107           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
5108            AccAXLrl1
5109         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
5110
5111 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
5112
5113         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
5114         remove cast to same type
5115         * src/SDCCast.c (decorateType): fix for RFE 1475742,
5116         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
5117         * as/z80/Makefile,
5118         * link/z80/Makefile: removed, they have moved to
5119         Makefile.in files
5120         * configure,
5121         * configure.in: replaced duplicate message about ucsim by missing sdcpp
5122         * install-sh: fix bug #1204398 by setting umask 0022
5123         * device/lib/Makefile: separate build of z80 and gbz80 lib
5124
5125 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
5126
5127         Enabled VPATH feature: changed nearly all Makefiles (149 files).
5128         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
5129
5130         One basic decision: e.g. src/clean.mk includes further files. In order
5131         to make this work there are two solutions:
5132         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
5133           run configure on them. This way they can use
5134           'include $(srcdir)/port-clean.mk'
5135         - always include clean.mk by the Makefile at the same level. To avoid
5136           that `make clean` tries to include and build Makefile.dep the
5137           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
5138           implemented, because now even `make uninstall` doesn't create
5139           Makefile.in. clean.mk could be eliminated by pasting it in
5140           Makefile.in.
5141
5142         * debugger/mcs51/Makefile.in: build own objects from library sources
5143         (SLIB, SDCC) in current directory
5144
5145         * configure, configure.in: renamed --disable-device-lib-build in
5146         --disable-device-lib; added --enable-doc, the required tools are
5147         searched by configure; added result message; the toolchain for the
5148         belonging ports are now only built, if the port is enabled.
5149
5150         * support/regression/*: all output is written in directory gen, because
5151         the fwk and ports directories don't livet in the build tree using vpath
5152
5153         * doc/sdccman.lyx: renamed --disable-device-lib-build to
5154         --disable-device-lib, added --enable-doc, added section VPATH
5155
5156         * sim/ucsim/configure.in,
5157         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
5158         z80 are enabled by default
5159
5160 2006-04-24 Raphael Neider <rneider AT web.de>
5161
5162         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
5163             to config word, "pic14_"-prefixed some extern functions
5164           (pic14_emitConfigWord): emit __config directive(s) if assignment to
5165             config word has been found
5166         * src/pic/device.h: added prototypes
5167         * src/pic/pcode.c: added "pic14_"-prefix where needed
5168         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
5169             fixup
5170         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
5171             words,
5172           (pic14emitRegularMap): ignore config words,
5173           (pic14createInterruptVect): moved generating __config directives away
5174           (picglue): have __config directives emitted
5175
5176 2006-04-24 Borut Razem <borut.razem AT siol.net>
5177
5178         * doc/Makefile: sync with nightly build makefile
5179
5180 2006-04-24 Raphael Neider <rneider AT web.de>
5181
5182         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
5183             registers that have not been assigned proper liveranges,
5184             fixes #1469504 and #1474602,
5185           (pCodeRegOptimizeRegUsage): fixed typo in comment
5186
5187 2006-04-24 Borut Razem <borut.razem AT siol.net>
5188
5189         * device/examples/main8051.c: deleted - it was removed from CVS
5190           24.mar.2000 and after that modified 18.feb.2001, so it reappered
5191           after the transition to Subversion
5192         * src/SDCCalloc.h: deleted - it was removed  from CVS
5193           3.feb.2001 and after that modified 18.feb.2001, so it reappered
5194           after the transition to Subversion
5195         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
5196           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
5197           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
5198           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
5199
5200 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
5201
5202         * as/asx8051.dsp: added mcs51/strcmpi.h
5203         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
5204         * as/hc08/aslink.h: updated lnksect prototype
5205         * as/hc08/asm.h,
5206         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
5207         * as/hc08/asmain.c,
5208         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
5209           (newdot): handle A_ABS
5210         * as/hc08/asout.c,
5211         * as/mcs51/asout.c (outarea): output address
5212         * as/hc08/lkaomf51.c,
5213         * as/mcs51/lkaomf51.c: disabled unused array UsageType
5214         * as/hc08/m08pst.c,
5215         * as/mcs51/i51pst.c,
5216         * as/z80/z80pst.c: "ABS" is not A_OVR
5217         * as/hc08/lkarea.c (newarea): read a_addr,
5218           (lnkarea): added codemap array, sort absolute areas to the front,
5219            combine all GSINITx/GSFINAL,
5220           (find_empty_space, allocate_space): new functions,
5221           (lnksect): return next address, handle absolute sections
5222         * as/mcs51/lkarea.c (newarea): read a_addr,
5223           lnksect2 prototype changed,
5224           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
5225           (find_empty_space, allocate_space): new, factored out of lnksect2,
5226           (lnksect2): return next address, handle absolute sections
5227         * as/hc08/lkhead.c,
5228         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
5229         * as/hc08/lklibr.c (addfile, fndsym),
5230         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
5231           index out of range and detect both '\' and '/'
5232         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
5233         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
5234           regression tests (ds390 cannot return bool yet)
5235         * doc/sdccman.lyx: changed version number, document changed --no-peep,
5236           document critical interrupts on z80, document changed SDCC define
5237         * src/asm.c (_asxxxx_mapping): fixed .org directive,
5238           (_a390_mapping): added .org directive
5239         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
5240           (genMultOneByte): fixed warnings
5241         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
5242           ones
5243         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
5244         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
5245           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
5246         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
5247         * src/pic16/main.c: removed newReg prototype
5248         * src/pic16/pcode.c,
5249         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
5250           warnings
5251         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
5252           ones
5253         * src/pic16/ralloc.c
5254         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
5255           to fix warnings
5256         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
5257           from short to PIC_OPTYPE
5258         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
5259         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
5260           optype from short to PIC_OPTYPE
5261         * src/port.h: made int_size unsigned to fix warnings
5262         * src/SDCC.y: fixed warning on MSVC
5263         * src/SDCCicode.c (getArraySizePtr): return unsigned int
5264         * src/SDCCopt.c (convertToFcall): fixed warnings
5265         * src/SDCCsymt.h: removed double prototype for genSymName
5266         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
5267           offset int to fix warnings
5268
5269 2006-04-22 Borut Razem <borut.razem AT siol.net>
5270
5271         * doc/sdccman.lyx, */Makefile, */Makefile.in:
5272           references to CVS replaced with Subversion
5273
5274 2006-04-21 Borut Razem <borut.razem AT siol.net>
5275
5276         * doc/sdccman.lyx, */Makefile, */Makefile.in:
5277           references to CVS replaced with Subversion
5278
5279 2006-04-19 Borut Razem <borut.razem AT siol.net>
5280
5281         * src/version.awk: adapted for svn
5282         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
5283           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
5284           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
5285           /binutils-avr/etc/*.vi, *.jin: removed all properties
5286           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
5287
5288 2006-04-19 Borut Razem <borut.razem AT siol.net>
5289
5290         * CVS to Subversion migration completed
5291
5292 2006-04-18 Borut Razem <borut.razem AT siol.net>
5293
5294         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
5295           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
5296
5297 2006-04-17 Borut Razem <borut.razem AT siol.net>
5298
5299         * device/include/Makefile.in: added pic/*.inc to the installation
5300
5301 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
5302
5303         * support/regression/collate-results.py: fixed output in case of
5304         a valdiag error
5305         * support/regression/generate-cases.py: fixed splitting of pathnames
5306         with dots
5307         * as/hc08/lklibr.c (addfile),
5308         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
5309
5310 2006-04-11 Raphael Neider <rneider AT web.de>
5311
5312         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
5313         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
5314         * src/pic16/pcode.c (assignValnums): fixed #1460578
5315
5316 2006-04-11 Raphael Neider <rneider AT web.de>
5317
5318         * device/lib/pic/libdev/*.c,
5319         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
5320           fixes #1468739, enables compilation in --std-c99 mode
5321         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
5322
5323 2006-04-11 Raphael Neider <rneider AT web.de>
5324
5325         * src/pic/device.c (find_device): removed debug output
5326           (list_valid_pics): enabled verbose listing of supported devices
5327         * device/include/stdbool.h: define bool as char for pic14/16 as well
5328
5329 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5330
5331         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
5332
5333 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
5334
5335         * .version: bumped version to 2.5.6
5336         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
5337
5338 2006-04-06 Raphael Neider <rneider AT web.de>
5339
5340         * .version: bumped version to 2.5.6 (pic14 ABI changed)
5341         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
5342         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
5343           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
5344             pic14_constructAbsMap
5345           (pic14printPublics): declare absolute global symbols as global
5346           (pic14createInterruptVect),
5347         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
5348           (newReg): assume new registers unused, use correct name in
5349             hashtable (reg->name instead of name), more debugLog output
5350         * src/pic/device.h (PIC_device): added fields for verbose output
5351         * src/pic/device.c: moved device definition to pic14devices.txt,
5352             added routines for runtime parsing of pic14devices.txt,
5353             added support for second config word
5354         * src/pic/main.c (_process_pragma): removed #pragma maxram,
5355           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
5356           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
5357           (_pic14_parseOptions): moved pCodeInitRegisters here
5358           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
5359         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
5360           (pCodeInitRegisters): rewrapped comments, perpared new approach to
5361             handling the pseudo stack
5362         * device/lib/Makefile.in: ignore failures in objects-pic16,
5363         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
5364         * device/lib/pic/NEWS: document new dependency on picXXX.lib
5365         * device/lib/pic/Makefile.subdir,
5366         * device/lib/pic16/Makefile.subdir: improved clean rules
5367         * device/lib/pic/libdev/: NEW, pic14 device libraries
5368         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
5369         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
5370         * device/include/Makefile.in: create subdir and install pic14 headers
5371         * device/include/pic/p16f_common.inc: removed unused declarations
5372         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
5373             PICs from inc2h.pl v1.6,
5374             replaced BIT_AT macros with struct declarations
5375         * device/include/pic/pic14devices.txt: definition of supported devices,
5376             all above improvements contributed by Zik Saleeba, thanks
5377         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
5378         * support/scripts/sdcc.nsi: also install pic14 device libraries and
5379             headers
5380
5381 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
5382
5383         * device/include/mcs51/c8051f410.h: added interrupt numbers,
5384         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
5385           thanks to Charles Olds
5386
5387 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5388
5389         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
5390
5391 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
5392
5393         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
5394         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
5395         * support/regression/bug1464657.c: added, new test
5396
5397 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5398
5399         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
5400           version number
5401
5402 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5403
5404         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
5405           --no-peep and --peep-file <file> are used don't use default rules but
5406           do use the <file>
5407
5408 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5409
5410         * src/mcs51/gen.c (genCall): fixed bug 1457608
5411
5412 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5413
5414         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
5415         changes seem to cause (trigger?) problems with the build system.
5416
5417 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
5418
5419         * src/SDCCpeeph.c (operandsLiteral): new, added,
5420           (callFuncByName): inserted operandsLiteral
5421         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
5422
5423 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5424
5425         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
5426         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
5427
5428 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
5429
5430         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
5431           implemented patch 1120823 Thanks to Willy De la Court (normal
5432           interrupts need an interrupt number now if they are made critical),
5433           and enabled nesting of critical functions though not for gbz80
5434           (genCritical, genEndCritical): added functions
5435           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
5436         * src/z80/mappings.i: added "ei" to all mappings
5437
5438 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5439
5440         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
5441         submitted by the Debian SDCC maintainer Aurelien Jarno:
5442         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
5443         archive with gcc 4.1 on mips and wrote the patch"
5444
5445 2006-03-16 Raphael Neider <rneider AT web.de>
5446
5447         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
5448           the left operand is shorter than the result (c* = lit-c* + int),
5449           fixes bug #1450796
5450         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
5451           OP_SYMBOL
5452
5453 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
5454
5455         * src/.version: increased version number to 2.5.5
5456         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
5457         linking is done manually in pic16 port's _linkEdit,
5458         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
5459         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
5460         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
5461         allocate asmop as AOP_ACC,
5462         (aopForRemat): added parameter 'bool result' in function declaration,
5463         (pic16_aopGet): return AOP_ACC when accessing WREG,
5464         (pic16_popGetTempReg): minor modification,
5465         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
5466         'pic16_allocWithIdx',
5467         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
5468         calling function in absolute addresses,
5469         (genAssign): take into account AOP_ACC asmop,
5470         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
5471         * src/pic16/pcoderegs.c: some debug functions and lines added,
5472         * src/pic16/ralloc.c (decodeRegType): added but commented out,
5473         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
5474         register too,
5475         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
5476         call to allocReg, not by manually allocating a new one,
5477         (pic16_assignRegisters): now before going through the register
5478         allocating functions mark all registers as free. This eliminates some
5479         side effects resulting from peephole parser done earlier in the backbone
5480
5481 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
5482
5483         * src/SDCCicode.c (geniCodeLogic),
5484         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
5485
5486 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
5487
5488         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
5489           (genSend): bugfix, do not allocate and free twice,
5490           (shiftRLong): handle partially overlapping aops
5491         * support/regression/tests/bitopcse.c: fixed warning redefined idata
5492
5493 2006-03-08 Borut Razem <borut.razem AT siol.net>
5494
5495         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
5496           for pic16
5497
5498 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
5499
5500         * support/regression/tests/bug1409955.c: new, added
5501         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
5502         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
5503           (aopForSym, aopOp): increment asmop.allocated if reused,
5504           (freeAsmop): decrement asmop.allocated and check for zero instead of
5505           using asmop.freed,
5506           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
5507           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
5508            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
5509            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
5510            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
5511            genSignedRightShift, genRightShift, genDataPointerGet,
5512            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
5513            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
5514             in reverse order from allocation,
5515           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
5516             added swappedLR to keep track
5517         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
5518           pdata & code for GCC, z80, gbz80 & hc08
5519         * support/regression/tests/zeropad.c: moved defines to testfwk.h
5520
5521 2006-03-08 Raphael Neider <rneider AT web.de>
5522
5523         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
5524
5525 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
5526
5527         * device/include/mcs51/c8051f410.h: new SiLabs mcu
5528         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
5529         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
5530
5531 2006-03-06 Borut Razem <borut.razem AT siol.net>
5532
5533         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
5534           made the linker quiet
5535
5536 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
5537
5538         * src/pic16/gen.c (genPcall): fixed bug #1443644
5539         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
5540         which dumps before the function entry point a data byte which represents
5541         the number of the local variables used by the specified function, added
5542         'xinst' for initial support for Extended Instruction Support,
5543         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
5544         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
5545         port->fun_prefix anymore (may change later),
5546         (genFunction, genEndFunction): do not store/restore local registers for
5547         _main (this should take care the --main-return command line option in
5548         the future),
5549         (genOr): removed some legacy pic-port instructions,
5550         * src/pic16/genarith.c (genAddLit): re-enabled old code because
5551         performing operations with SFR's causes data to be written more than
5552         once to each SFR. Perhaps SFRs should be handled in special cases...
5553         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
5554         pcode.h
5555         * src/pic16/main.c (_process_pragma): stack bound checking did not take
5556         into account for stack starting position,
5557         (struct OPTIONS pic16_optionsTable): added command line argument
5558         --extended or -y for Extended Instruction Support,
5559         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
5560         (deassignLRs): *** perhaps the most important change, old 'for' code
5561         (commented out for reference), didn't account for some registers which
5562         were left marked 'not free' after a pointer operation. The change
5563         reduces register usage a lot in some cases
5564
5565 2006-03-04 Borut Razem <borut.razem AT siol.net>
5566
5567         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
5568           _clean
5569         * support/regression/tests/bug-524697.c: decreased array size for
5570           mcs51 to fit into the internal RAM
5571         * support/regression/Makefile.in: a little bit more verbose
5572
5573 2006-03-03 Borut Razem <borut.razem AT siol.net>
5574
5575         * support/regression/fwk/lib/testfwk.c,
5576           support/regression/fwk/include/testfwk.h: introduced function
5577           _prints(), nonrecursive _printn(), call _initEmu() from main()
5578         * support/regression/ports/gbz80/support.asm,
5579           support/regression/ports/ucz80/support.asm,
5580           support/regression/ports/z80/support.asm,
5581           support/regression/ports/ds390/support.c,
5582           support/regression/ports/hc08/support.c,
5583           support/regression/ports/host/support.c,
5584           support/regression/ports/mcs51/support.c,
5585           support/regression/ports/xa51/support.c: added empty _initEmu()
5586           function
5587         * support/regression/ports/pic16/gpsim.cmd,
5588           support/regression/ports/pic16/spec.mk,
5589           support/regression/ports/pic16/support.c,
5590           support/regression/Makefile.in: added pic16 regression test
5591
5592 2006-03-01 Raphael Neider <rneider AT web.de>
5593
5594         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
5595           genConstPointerGet): use safe way of generating MOVFF to cover
5596             literals as well as registers, fixes bug #1440527
5597         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
5598             dereference
5599           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
5600             more correctly, fixes bug #1232186
5601           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
5602         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
5603             gplink guess the correct processor in more cases, applied patch
5604             from Till Riedel attached to and fixing bug #1436552
5605
5606 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5607
5608         * support/regression/tests/array.c: added, contains check for #1434401
5609         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
5610
5611 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
5612
5613         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
5614         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
5615         * device/include/mcs51/c8051f326.h,
5616         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
5617         * device/include/mcs51/c8051f000.h,
5618         * device/include/mcs51/c8051f018.h,
5619         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
5620           PCON_IDLE,PCON_STOP and added sfr16 definitions
5621
5622 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
5623
5624         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
5625           genGetWord): fixed bug 1409955
5626
5627 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
5628
5629         * device/include/hc08/mc68hc908gp32.h,
5630         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
5631
5632 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
5633
5634         * src/SDCCast.c (constExprValue): return NULL if not a value
5635         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
5636         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
5637         * support/regression/tests/bitfields.c: enabled signed bitfield for all
5638
5639 2006-02-13 Borut Razem <borut.razem AT siol.net>
5640
5641         * src/regression/ptrarg.c: added, fails due to bug #1430967
5642         * src/regression/Makefile: ptrarg.c added, ...
5643
5644 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
5645
5646         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
5647         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
5648
5649 2006-02-11 Borut Razem <borut.razem AT siol.net>
5650
5651         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
5652           print "Processor: xxx" message to stdout only if --verbose
5653
5654 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
5655
5656         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
5657         * support/regression/tests/bug1426356.c: added
5658         * support/regression/tests/bitfields.c: removed 2 tests
5659
5660 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
5661
5662         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
5663         * device/include/mcs51/c8051f330.h,
5664         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
5665           PCON_IDLE,PCON_STOP and added sfr16 definitions
5666         * device/lib/_divsint.c,
5667         * device/lib/_divuint.c,
5668         * device/lib/_divulong.c,
5669         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
5670           register bank bug for small stackauto
5671
5672 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
5673
5674         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
5675
5676 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
5677
5678         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
5679         * all.dsp: corrected several bin paths
5680         * device/include/mcs51/c8051f120.h,
5681         * device/include/mcs51/c8051f300.h,
5682         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
5683           to PCON_IDLE,PCON_STOP
5684         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
5685         * device/lib/printf_large.c (output_float): fixed bug 1388703
5686         * support/regression/tests/bug1057979.c: added test for bug 1388703
5687
5688 2006-02-08 Raphael Neider <rneider AT web.de>
5689
5690         * src/pic/pcode.c (pciTRIS): fixed typo,
5691           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
5692           (LinkFlow): fixed handling of flows that end in a call,
5693           (ReuseReg): perform safety check earlier
5694         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
5695             to work with flows at the beginning of a pBlock,
5696             fixes #1426557 (Symbol not previously defined),
5697           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
5698             usage information
5699           (RemoveUnusedRegisters): update register usage info
5700         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
5701             created, reuse existing ones instead
5702         * src/pic/gen.c (genPcall): fixed #1424719
5703
5704 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
5705
5706         * link/z80/lkmain.c,
5707         * link/z80/lklex.c,
5708         * link/z80/lkdata.c,
5709         * link/z80/aslink.h: fixed build on current cygwin:
5710         replaced getline() by lk_getline()
5711
5712 2006-02-01 Borut Razem <borut.razem AT siol.net>
5713
5714         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
5715           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
5716           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
5717           src/regression/bool1.c, src/regression/bool2.c,
5718           src/regression/bool3.c, src/regression/call1.c,
5719           src/regression/compare.c, src/regression/compare10.c,
5720           src/regression/compare2.c, src/regression/compare3.c,
5721           src/regression/compare4.c, src/regression/compare5.c,
5722           src/regression/compare6.c, src/regression/compare7.c,
5723           src/regression/compare8.c, src/regression/compare9.c,
5724           src/regression/configword.c, src/regression/for.c,
5725           src/regression/inline.c, src/regression/mult1.c,
5726           src/regression/nestfor.c, src/regression/or1.c,
5727           src/regression/pointer1.c, src/regression/ptrfunc.c,
5728           src/regression/rotate1.c, src/regression/rotate2.c,
5729           src/regression/rotate3.c, src/regression/rotate4.c,
5730           src/regression/rotate5.c, src/regression/rotate6.c,
5731           src/regression/rotate7.c, src/regression/string1.c,
5732           src/regression/struct1.c, src/regression/sub.c,
5733           src/regression/sub2.c, src/regression/switch1.c,
5734           src/regression/while.c, src/regression/xor.c,
5735           src/regression/create_stc, src/regression/simulate,
5736           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
5737           regression tests
5738         * src/regression/gpsim_assert.h: added
5739
5740 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
5741
5742         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
5743         ((void (code *) (void)) 0) ();
5744         * as/hc08/aslex.c,
5745         * as/hc08/aslink.h,
5746         * as/hc08/asm.h,
5747         * as/hc08/asmain.c,
5748         * as/hc08/lkdata.c,
5749         * as/hc08/lklex.c,
5750         * as/hc08/lkmain.c,
5751         * as/mcs51/aslex.c,
5752         * as/mcs51/aslink.h,
5753         * as/mcs51/asm.h,
5754         * as/mcs51/asmain.c,
5755         * as/mcs51/lkdata.c,
5756         * as/mcs51/lklex.c,
5757         * as/mcs51/lkmain.c,
5758         * as/z80/aslex.c,
5759         * as/z80/asm.h,
5760         * as/z80/asmain.c: fixed build on current cygwin:
5761         replaced getline() by as_getline()
5762
5763 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
5764
5765         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
5766         declarator in the symbol chain
5767         * src/SDCCsymt.h,
5768         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
5769         parameter list for function pointers
5770         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
5771         * support/regression/tests/bug-716242.c: added
5772
5773 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
5774
5775         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
5776         offset if possible
5777         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
5778
5779 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
5780
5781         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
5782         inifinitely recurseable, added static
5783         * support/regression/tests/bug-1408066.c: added
5784
5785 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
5786
5787         * src/SDCCicode.h,
5788         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
5789         renamed, added possibility to create "postLoopLbl"-labels
5790         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
5791         newiTempLoopHeaderLabel
5792         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
5793         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
5794         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
5795         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
5796         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
5797         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
5798         (basicInduction): fixed bug #136564, made static,
5799         (loopInduction): changed parameter of basicInduction, made static,
5800         (addPostLoopBlock): added
5801         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
5802         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
5803         findLoopEndSeq
5804         * support/regression/tests/bug-136564.c: added
5805         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
5806         --std-sdcc99 to LIBSDCCFLAGS
5807
5808 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
5809
5810         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
5811         while loop
5812         * support/regression/tests/bug-1406131.c: added
5813
5814 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
5815
5816         * src/SDCCast.c (decorateType): fix promotion of unary minus
5817         * src/SDCCsymt.c (computeType): beautified
5818         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
5819         (valUnaryPM, valComplement): fix sign and promotion,
5820         (valNot): ANSI: result type is int (SDCC: unsigned char)
5821         * support/regression/tests/uminus.c: speedup by removing superflous
5822         test case 'int'
5823         * support/regression/tests/onebyte.c: added promotion and signedness
5824         tests for unary minus
5825         * support/regressions/tests/bug-477927.c: disable warning about
5826         uninitialized variables
5827         * support/regression/tests/not.c: added
5828
5829 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
5830
5831         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
5832         * src/mcs51/gen.c (gen51Code): show final register usage after
5833         fillGaps in asm with --i-code-in-asm
5834         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
5835         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
5836         incUsed, rliveClear, adjustIChain): made static,
5837         (setFromRange): excluded because it's unused,
5838         (findPrevUseSym, markWholeLoop): added,
5839         (findPrevUse): rewritten; fixes bug 895992; now a complete search
5840         through all branches of predecessors enables sdcc to emit the warning
5841         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
5842         (rlivePoint): made static, added parameter emitWarnings which is only
5843         true during the first run out of two,
5844         (findRecursiveSucc, findRecursivePred): removed,
5845         (computeLiveRanges): made static, added parameter emitWarnings,
5846         (dumpIcRlive): added for debugging only
5847         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
5848         removed prototype of setFromRange()
5849         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
5850         in call of computeLiveRanges()
5851         * support/regression/tests/bug-895992.c: added
5852         * support/regression/tests/bug-971834.c: added
5853         * support/valdiag/tests/bug-895992.c: added
5854         * support/valdiag/tests/bug-971834.c: added
5855
5856 2005-12-18 Raphael Neider <rneider AT web.de>
5857
5858         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
5859           (genUnpackBits): improved code for direct operands,
5860           (genPackBits): improved code for literal assignment to bitfields
5861             and for direct destination operands (no FSR indirection),
5862             prevented redundant AND, fixes #1362800,
5863           (AccLsh): added parameter to disable masking of the result
5864         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
5865           skip instructions with side-effects (like incfsz),
5866           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
5867         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
5868         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
5869           fixes #1375263
5870
5871 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
5872
5873         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
5874         volatile variables as spill location
5875
5876 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
5877
5878         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
5879         replacing literals
5880         * support/regression/tests/bug-1376320.c: added
5881
5882 2005-12-08 Raphael Neider <rneider AT web.de>
5883
5884         * src/pic/device.c: renamed is_shared to pic14_is_shared
5885         * src/pic/gen.c (genIfx): re-enabled handling of sbits
5886         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
5887           (is_valid_identifier): added for above workaround
5888
5889 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
5890
5891         * device/lib/Makefile.in: fixed to enable port-specific-objects
5892         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
5893           char, thanks Hubert Sack
5894         * doc/sdccman.lyx: documented --xstack-loc,
5895           elaborated a bit more on interrupts and pitfalls,
5896           removed "setjmp/longjmp unsupported",
5897           documented some unsupported C99 features
5898         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
5899         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
5900           if, thanks Hubert Sack
5901         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
5902         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
5903           make make_library
5904         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
5905           regression tests can report resource usage (rfe 700441)
5906         * support/regression/collate-results.py: report resource usage
5907         * support/regression/ports/ds390/spec.mk,
5908         * support/regression/ports/hc08/spec.mk,
5909         * support/regression/ports/mcs51/spec.mk,
5910         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
5911         * support/regression/ports/ds390/uCsim.cmd,
5912         * support/regression/ports/hc08/uCsim.cmd,
5913         * support/regression/ports/mcs51/uCsim.cmd,
5914         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
5915         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
5916           library, use the default one
5917         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
5918           building the library
5919
5920 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
5921
5922         * config.dsp: added dependency on .version and configure_vc.awk
5923         * device/include/setjmp.h: updated for --stack-auto and --xstack
5924         * device/include/mcs51/at89c51snd1c.h: corrected line endings
5925         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
5926         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
5927         * device/lib/libsdcc.lib: added _setjmp
5928         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
5929           (decorateType): fixed bug 1372851,
5930           (optimizeGetHbit): fixed warning
5931         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
5932           array initialisation
5933         * support/regression/tests/bug1057979.c: added test for bug 1358192
5934         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
5935
5936 2005-12-03 Borut Razem <borut.razem AT siol.net>
5937
5938         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
5939           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
5940
5941 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
5942
5943         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
5944         createIval): implement symbol independant "flexible array member",
5945         (createIvalCharPtr): implemented flexible array initialisation with a
5946         string
5947         * src/SDCCsymt.c (copyStruct): removed,
5948         (getSize): fixed misleading comment,
5949         (getAllocSize): removed, the additional allocation size is now in
5950         sym->flexArrayLength,
5951         (checkStructFlexArray): new, syntax checks for flexible array members,
5952         (compStructSize): added syntax checks for "flexible array members"
5953         (copyStruct): removed,
5954         (copyLinkChain): removed inefficient fix for bug 770487
5955         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
5956         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
5957         symbol->flexArrayLength
5958         * src/SDCCerr.c,
5959         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
5960         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
5961         * support/regression/tests/structflexarray.c: added
5962         * support/valdiag/tests/structflexiblearray.c: added
5963
5964 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
5965
5966         * src/SDCCast.c (decorateType): fixed bug 1368489
5967         * support/Util/SDCCerr.c,
5968         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
5969
5970 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5971
5972         * device/include/mcs51/at89c51snd1c.h: added file submitted by
5973           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
5974
5975 2005-11-27 Borut Razem <borut.razem AT siol.net>
5976
5977         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
5978           support/cpp2/mkdeps.h: added command line option
5979           -obj-ext=<extension> to SDCPP to define object file externion, used
5980           for generation of make dependencies (-M)
5981         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
5982
5983 2005-11-26 Borut Razem <borut.razem AT siol.net>
5984
5985         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
5986           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
5987           added pic and pic16 libraries
5988
5989 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5990
5991         * device/include/float.h: Corrected typo in prototype of __fsgt
5992
5993 2005-11-25 Borut Razem <borut.razem AT siol.net>
5994
5995         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
5996           added creation of model-mcs51-stack-auto libraries
5997
5998 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
5999
6000         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
6001         and fields-list too
6002         * src/SDCCast.c (createIvalArray): removed obsolete comment
6003
6004 2005-11-24 Borut Razem <borut.razem AT siol.net>
6005
6006         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
6007           added missing device/lib/mcs51/crt*.asm sources
6008
6009 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
6010
6011         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
6012
6013 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
6014
6015         * device/lib/_fs2schar.c,
6016         * device/lib/_fs2sint.c,
6017         * device/lib/_fs2slong.c: optimized inline asm
6018
6019 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6020
6021         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
6022           Better handling of floats between -1.0 and 0.0.
6023
6024 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6025
6026         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
6027           (the missing "if"s prohibited removal of redundant labels)
6028
6029 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6030
6031         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
6032           Properly convert floats between -1.0 and 0.0 to long, int, and char
6033           types (max integer value of negative floats tends to zero).
6034         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
6035           Removed changes made so to work properly with floats between
6036           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
6037           and _fs2char.c
6038
6039 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
6040
6041         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
6042         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
6043         (genCast) cosmetic change
6044         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
6045         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
6046         from mcs51
6047         * support/regression/tests/bitfields (testSignedBitfields): added
6048
6049 2005-11-18 Borut Razem <borut.razem AT siol.net>
6050
6051         * sdcc/device/lib/Makefile.in: remove all unnecessary files
6052         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
6053           introduced SILENT option to make building of pic16 libraries less
6054
6055 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6056
6057         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
6058           Now they work properly with floats between -1.0 and 0.0
6059         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
6060
6061 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
6062
6063         * src/SDCCicode.c (printOperand): added missing else
6064
6065 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
6066
6067         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
6068         reformatted for better readability
6069         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
6070         signed bitfields
6071
6072 2005-11-17 Borut Razem <borut.razem AT siol.net>
6073
6074         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
6075           introduced SILENT option to make building of pic16 libraries less
6076           verbose - used for nightly snapshot build
6077         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
6078           available on Win32 platforms.
6079         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
6080           medium, large, pic and pic16
6081
6082 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6083
6084         * device/lib/printf_large.c: Temporary patch for bug 1358192:
6085           printf("%f"...) sets fraction to zero.
6086
6087 2005-11-16 Raphael Neider <rneider AT web.de>
6088
6089         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
6090           fixes #1357221
6091         * src/pic/gen.c (genIfx): implemented for CARRY bit
6092         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
6093           to generic pointers, fixes #1357332,
6094           (pic16_movLit2f): NEW,
6095           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
6096
6097 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
6098
6099         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
6100
6101 2005-11-11 Raphael Neider <rneider AT web.de>
6102
6103         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
6104         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
6105           compute pointer's type from operand,
6106           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
6107           improved single bit reads, fixes bug #1353379
6108
6109 2005-11-09 Borut Razem <borut.razem AT siol.net>
6110
6111         * support/scripts/sdcc.nsi: added lib/pic to the package
6112
6113 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
6114
6115         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
6116
6117 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
6118
6119         * support/regression/tests/bug1348008.c: added
6120         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
6121         * support/regression/tests/bug1337835.c: updated comment
6122
6123 2005-11-06 Borut Razem <borut.razem AT siol.net>
6124
6125         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
6126           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
6127           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
6128           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
6129           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
6130           dynamic construction of cl_error_class and derivates - 2.nd try
6131
6132 2005-11-05 Borut Razem <borut.razem AT siol.net>
6133
6134         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
6135           bug, which caused Bus Errors on sparc solaris
6136
6137 2005-11-04 Borut Razem <borut.razem AT siol.net>
6138
6139         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
6140           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
6141           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
6142           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
6143           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
6144           and derivates to resolve the initialization problem on OSX
6145
6146 2005-11-02 Borut Razem <borut.razem AT siol.net>
6147
6148         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
6149           corrected typo - #include <winsock2.h>
6150
6151 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
6152
6153         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
6154           (_asxxxx_mapping): added org directive for future enhancements
6155
6156 2005-11-01 Borut Razem <borut.razem AT siol.net>
6157
6158         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
6159           enabled sockets on WIN32
6160         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
6161
6162 2005-10-31 Borut Razem <borut.razem AT siol.net>
6163
6164         * support/regression/generate-cases.py: escape backslashes in {testcase}:
6165           WIN32 backslash path delimiters should be escaped when used in C strings
6166         * support/regression/tests/bitfields.c: exclude failing assertions for
6167           __CYGWIN32__ and __MINGW32__ hosts
6168
6169 2005-10-30 Borut Razem <borut.razem AT siol.net>
6170
6171         * src/SDCCutil.c: corrected double comparison typo
6172
6173 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
6174
6175         * device/lib/medium/Makefile: added for new memory model medium
6176         * device/include/asm/mcs51/features.h: updated for medium/pdata
6177         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
6178           added Multiply & Accumulate sbit's and MAC0_PAGE define
6179         * device/include/mcs51/c8051f300.h: added sfr16 definitions
6180         * device/include/mcs51/c8051f310.h: added sfr16 definitions
6181         * device/lib/_mullong.c: update for medium model
6182         * device/lib/incl.mk: added medium model
6183         * doc/sdccman.lyx: documented medium model
6184         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
6185         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
6186         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
6187         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
6188           (allocParms): set SCLS and OCLS to pdata for medium model
6189         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
6190           for pdata,
6191           (powof2): return <0 if not power of 2
6192         * src/avr/gen.c (genBitWise): use updated powof2
6193         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
6194           (shiftR2Left2Result): small optimization in setup, save acc when storing,
6195           (shiftLLeftOrResult): use B if necessary
6196         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
6197         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
6198         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
6199         * support/regression/Makefile.in: added test-mcs51-medium
6200         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
6201
6202 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
6203
6204         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
6205         specifier unsigned
6206         * device/lib/time.c (mktime): fixed bug 1334315
6207
6208 2005-10-28 Raphael Neider <rneider AT web.de>
6209
6210         * device/include/pic/p16f_common.inc: added common declarations
6211         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
6212
6213 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
6214
6215         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
6216           (aopPutUsesAcc): added to predict accumulator use,
6217           (assignResultValue): save acc if necessary,
6218           (genMinusDec): store result if indirectly addressed,
6219           (genDivOneByte):  save acc if necessary,
6220           (movLeft2Result): bugfix if left already in acc,
6221           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
6222             attention to accumulator use (esp. pdata),
6223           (genReceive): receive pdata correctly
6224         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
6225         * src/SDCCicode.h: added isOperandInPagedSpace prototype
6226
6227 2005-10-27 Raphael Neider <rneider AT web.de>
6228
6229         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
6230
6231 2005-10-27 Raphael Neider <rneider AT web.de>
6232
6233         * .version: changed version to 2.5.4
6234         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
6235         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
6236           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
6237             arithmetics support routines
6238         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
6239         * device/lib/Makefile.in: also create installdir for pic
6240
6241         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
6242           pic14 port as well
6243         * src/pic/device.c (dump_sfr): rewritten to delegate register
6244           placement to the linker (use `extern sym' rather than sym EQU addr),
6245           (validAddress): fixed to check last specified address
6246         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
6247           (popGetLit): truncate literal value to 8 bit,
6248           (popGet): moved assert to more appropriate place
6249           (popGetExternal): create pCode operand from and mark the according
6250             symbol as being `extern'
6251           (popGetAddr): added sanity check on immediate's offset, provide
6252             GPOINTER tag on demand
6253           (aopPut): fixed for immediates,
6254           (mov2w_op): move operand's address or contents to WREG (depending on
6255             operand type), safer variant of mov2w,
6256           (movwf,call_libraryfunc): NEW, handy abbreviations,
6257           (get_argument_pcop,get_return_val_pcop,pass_argument,
6258           get_returnvalue): interface for accessing function parameters and
6259             return values,
6260           (assignResultValuei,genRet): use new parameter/return value interface
6261           (pic14_getDataSize): back to old version handling generic pointers,
6262           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
6263             provided implementation and/or fixed old one,
6264           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
6265             calls, removed legacy 8051 reference code
6266           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
6267           (loadSignToC): NEW, move the operands sign bit to CARRY,
6268           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
6269             genRightShiftSigned, accepts negative shift counts,
6270           (setup_fsr): load FSR and adjust IRP (indirect memory access),
6271           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
6272             generic pointers, __data pointers and __code pointers,
6273           (genUnpackBits,genPackBits): rewritten to work with generic pointers
6274             and signed bitfields, limit bitfields to 8 bit,
6275           (genDataPointerGet): fixed number of bytes read,
6276           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
6277           (genPointerGet,genPointerSet): fixed handling of __code pointers,
6278             pointers to constant data are no longer assumed to point to __code
6279             space, removed invalid pointer types,
6280           (bitpatternFromVal): retrieve the PICs representation of an integer
6281             or float literal,
6282           (genDataPointerSet): fixed assigning to po_immediate operands,
6283           (genGenPointerSet): implemented as library call,
6284           (genIfx): fixed incorrect condition,
6285           (genAddrOf): limit generic pointers' addresses to 2 bytes,
6286             provide GPOINTER tag according to destination's storage class,
6287           (genCast): added code to handle casting to generic pointers, added
6288             sign-/zero extension of the result
6289           (aop_isLitLike,op_isLitLike): fixed handling of immediates
6290         * src/pic/gen.h: added macros to access IRP bit in STATUS register
6291         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
6292           extend the result
6293         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
6294           address/register resides in the shared banks
6295           (emitSymbolToFile): improved to handle global and `pinned' symbols,
6296             put all variables into separate sections (have the linker arrange
6297             them)
6298           (picglue): put init code and interrupt handlers in separate sections
6299         * src/pic/main.c: added port specific options table, modified to PORT
6300           structure to make GPOINTERs 3 byte, added pic14_options
6301           (_pic14_do_link): private linking routine (update paths to libraries,
6302             add libsdcc.lib by default)
6303         * src/pic/main.h: declare pic14_options
6304         * src/pic/pcode.c: fixed instructions i/o relations,
6305           (RegCond): reverted to correct version,
6306           (newpCodeOpLit): truncate literals to 8 bit,
6307           (genericPrint): added debug output,
6308           (getRegFromInstruction): fixed for various operand types, simplified
6309           (BuildFlow): fixed broken handling of isntructions with labels
6310           (LinkFlow): start at last instruction in flow (skip trailing comments),
6311             pass the flow on to the next instruction after CALL
6312           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
6313           (insertPCodeInstruction): fixed inserting after a skip instruction,
6314           (DoBankSelect): fixed for labeled instructions
6315           (OptimizepBlock): honor --nopeep switch
6316           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
6317         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
6318         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
6319           (pCodeOptime2pCodes): allow disabling this optimization via
6320             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
6321             but is still buggy), started implementation of a dataflow based
6322             pCode optimization (CSE + dead code elimination)
6323           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
6324         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
6325           names are independant of the stack location and therefore portable across
6326           devices
6327
6328 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
6329
6330         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
6331           (selectSpil): fixed bug 1337835 by not spilling bit variables
6332         * support/regression/tests/bug1337835.c: added test for this bug
6333         * src/mcs51/peeph.def: restart after rule 3.c,
6334           addded rules 263.x to optimize loading constants
6335
6336 2005-10-26 Raphael Neider <rneider AT web.de>
6337
6338         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
6339         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
6340           (genAssign): emit warning when casting literals to generic pointer
6341             type, also applies when taking the address of a fixed variable,
6342           (genCast): improved casting to generic pointers
6343         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
6344           extern variables, added verbose error message
6345         * device/include/pic16/{string.h,errno.h}: added #pragma library c
6346
6347 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
6348
6349         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
6350         carry must be complemented too
6351         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
6352         could be emitted by genMinus
6353         * src/SDCCval.c (constVal): fixed bug 1305065
6354
6355 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
6356
6357         * src/SDCCast.c (addCast): added promotion for bit variables
6358         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
6359         promotion casts + optimisation
6360         (optimizeGetWord): fix warning 'i' might be used uninitialized
6361         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
6362         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
6363
6364 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
6365
6366         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
6367         all chars are promoted to int; promotion should be handled in SDCCast.c
6368
6369 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6370
6371         * device/lib/_strcmp.c: Fixed bug 1326457
6372
6373 2005-10-11 Raphael Neider <rneider AT web.de>
6374
6375         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
6376         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
6377
6378 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
6379
6380         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
6381         * support/regression/tests/sfr16.c: added test for the sfr32 bug
6382
6383 2005-10-04 Raphael Neider <rneider AT web.de>
6384
6385         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
6386           device/lib/pic16/pics.all: added pic18f1320
6387         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
6388
6389 2005-09-30 Raphael Neider <rneider AT web.de>
6390
6391         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
6392         * src/pic16/devices.inc: NEW, provides device descriptions
6393         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
6394
6395 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
6396
6397         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
6398           GETHBIT
6399
6400 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
6401
6402         * doc/sdccman.lyx: updated Highest Order Bit documentation,
6403           documented Any Order Bit, Higher Order Byte and Higher Order Word
6404         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
6405         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
6406           (optimizeGetAbit): new, to get any bit, not only the high bit,
6407           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
6408           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
6409           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
6410           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
6411             RIGHT_OP: also try GETBYTE, GETWORD optimization,
6412             GETABIT, GETBYTE, GETWORD: decorate them,
6413           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
6414           (ast_print): added GETABIT, GETBYTE, GETWORD
6415         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
6416         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
6417           (geniCodeBinary): new generic binary icode,
6418           (ast2iCode): added GETABIT, GETBYTE, GETWORD
6419         * src/port.h: updated comment for PORT.hasExtBitOp
6420         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
6421           (genGetByte): new, to get a single byte,
6422           (genGetWord): new, to get a word from a long,
6423           (gen51Code): added GETABIT, GETBYTE, GETWORD
6424         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
6425
6426 2005-09-23 Raphael Neider <rneider AT web.de>
6427
6428         * configure.in, configure: have device/lib/pic configured
6429         * device/lib/Makefile.in: added model-pic14
6430         * device/lib/clean.mk: added pic/ to clean rule
6431         * device/lib/pic: added rudimentary pic14 library providing support
6432           functions for multiplication/division/generic pointer access
6433         * src/SDCCopt.c (convilong): mark support functions as extern
6434           for pic14 port as well
6435         * src/pic/gen.c (genMult): added assertions,
6436           (genpic14Code): emit warning on unhandled iCodes
6437         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
6438         * src/pic/pcode.c (pCodeOpCopy),
6439         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
6440           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
6441           SFR_REGISTER}), made safe for future extensions
6442         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
6443           instructions even if preceeded by SKIP instructions (also remove
6444           them); removed unused code
6445         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
6446           prevents leaving parts of the structure uninitialized after copying
6447
6448 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
6449
6450         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
6451           ago by me
6452         * support/regression/tests/addsub.c: added test for the bug
6453
6454 2005-09-21 Raphael Neider <rneider AT web.de>
6455
6456         * device/include/pic16/pic18f1220.h,
6457           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
6458         * device/lib/pic16/Makefile.rules: added missing opening paren
6459         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
6460           are provided in genutils.c,
6461           (genUminusFloat,genUminus,genCmpEq): added asserts on different
6462           operand/result sizes,
6463           (genCmp): assert on NULL pointers first, then check deref'ed values
6464         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
6465           result size
6466
6467 2005-09-18 Raphael Neider <rneider AT web.de>
6468
6469         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
6470           as these are now unused,
6471           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
6472         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
6473           local, avoids uninitialized pointer dereference on r->name
6474         * src/pic16/ralloc.c (newReg): fixed indentation
6475
6476 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
6477
6478         * src/SDCCval.c (constVal): fixed bug 730366
6479         * support/Util/SDCCerr.c,
6480         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
6481
6482 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
6483
6484         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
6485
6486 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
6487
6488         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
6489
6490 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
6491
6492         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
6493           (hex2dec): made hex_digit unsigned char, removed ascii dependance
6494         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
6495           (hex2dec): made hex_digit unsigned char, removed ascii dependance
6496         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
6497         * packihx/packihx.c (hexDigit): made c unsigned char
6498         * as/mcs51/lklibr.c (fndsym),
6499         * link/z80/lkgb.c (gb),
6500         * link/z80/lklibr.c (fndsym),
6501         * link/z80/lkrloc.c (relr),
6502         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
6503         * src/SDCC.lex (checkCurrFile, process_pragma),
6504         * src/SDCCglue.c (spacesToUnderscores),
6505         * src/SDCCmain.c (setParseWithComma, processFile),
6506         * src/asm.c (tvsprintf, printCLine),
6507         * src/avr/gen.c (emitcode, aopPut),
6508         * src/ds390/gen.c (emitcode),
6509         * src/hc08/gen.c (emitcode, emitinline),
6510         * src/mcs51/gen.c (emitcode, genInline),
6511         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
6512           tokenizeLineNode),
6513         * src/pic/ralloc.c (debugLog),
6514         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
6515           tokenizeLineNode),
6516         * src/pic16/ralloc.c (debugLog),
6517         * src/z80/main.c (_process_pragma):
6518            made all ctype.h function calls safe
6519         * src/SDCCopt.c: include math.h for fabs
6520         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
6521           and used them throughout the code to make ctype.h function calls safe
6522         * src/ds390/main.c (asmLineNodeFromLineNode),
6523         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
6524         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
6525            unsigned char*
6526         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
6527           (newpCodeAsmDir): made ctype.h function calls safe
6528         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
6529           pic16_emitcode):  made lbp unsigned char*
6530         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
6531           (pic16_newpCodeAsmDir): made ctype.h function calls safe
6532         * src/xa51/gen.c (emitcode),
6533         * src/z80/gen.c (_emit2): made lbp unsigned char*
6534         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
6535            char*
6536
6537 2005-09-05 Raphael Neider <rneider AT web.de>
6538
6539         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
6540           access bank splitpoint
6541
6542 2005-09-05 Raphael Neider <rneider AT web.de>
6543
6544         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
6545
6546 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
6547
6548         * .version: changed to version 2.5.3
6549         * doc/sdccman.lyx: changed version to 2.5.3,
6550           documented --codeseg and --constseg and pragma codeseg and constseg,
6551           documented bit parameters (reentrant) and bit returning
6552         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
6553            currFunc->recvSize, but is this ok for all ports?
6554           (ast2iCode): result of ~ on unsigned char must be cast to int for
6555            bool to work
6556         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
6557           function pointers in bit space
6558         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
6559           (processFuncArgs): call port.reg_parm() with reentrancy info
6560         * src/port.h,
6561         * src/avr/main.c,
6562         * src/ds390/main.c,
6563         * src/hc08/main.c,
6564         * src/pic/main.c,
6565         * src/pic16/main.c,
6566         * src/xa51/main.c,
6567         * src/z80/main.c: port.reg_parm prototype extended with
6568           "bool reentrant" parameter
6569         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
6570           options.stackAuto for allocating bit register parameters
6571         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
6572           (genSend): set BitBankUsed if it is,
6573           (selectRegBank): factored out of genCall for use in genPcall,
6574           (genCall): removed redundant dtype assignmen, use selectRegBank,
6575           (genPcall): handle returning in Carry properly, save in F0 if needed,
6576           (genReceive): handle bit register parameters
6577         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
6578           (mcs51_assignRegisters): enable bit registers for all reentrant
6579            functions and don't set BitBankUsed unconditionally
6580         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
6581         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
6582         * support/regression/tests/funptrs.c: added tests for BOOL and for return
6583
6584 2005-08-27 Borut Razem <borut.razem AT siol.net>
6585
6586         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
6587         ppc-osx (Darwin) does not support -u option. It seems that it is
6588         supported only on Linux - GNU cp
6589
6590 2005-08-25 Borut Razem <borut.razem AT siol.net>
6591
6592         * sim/ucsim/gui.src/serio.src/Makefile.in,
6593           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
6594           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
6595           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
6596           install and strip, since the strip at /usr/ccs/bin should be used
6597           on solaris
6598
6599 2005-08-24 Borut Razem <borut.razem AT siol.net>
6600
6601         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
6602
6603 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
6604
6605         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
6606         ffffffffu
6607
6608 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
6609
6610         * as/mcs51/aslink.h: completed lkrloc.c prototypes
6611         * as/mcs51/lkmain.c (link_main): fixed warning
6612         * device/include/stdbool.h: ds390 has no advanced bit support yet
6613         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
6614         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
6615         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
6616           and updated their macros
6617         * src/SDCCval.c (constVal): updated comment for renamed b_long
6618
6619 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
6620
6621         * as/mcs51/asdata.c: changed ctype['['] to BINOP
6622         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
6623           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
6624           (oprio): set priority for '['
6625         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
6626            and adb_24_bit
6627         * as/mcs51/asm.h: added defines R_BIT and S_BIT
6628         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
6629         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
6630         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
6631           added overlayable BIT_BANK area
6632         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
6633           (summary2): explain 'T' in legenda
6634         * as/mcs51/lkrloc.c: replaced old K&R style,
6635           (relr): added R_BIT processing,
6636           (errmsg): added "Bit-addressable relocation error",
6637           (adb_bit): added for converting from byte- to bit-addressable space,
6638           (adb_24_bit): added for converting from byte- to bit-addressable space
6639         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
6640            used in reentrant functions now even as return value
6641         * device/lib/_gptrput.c (_gptrput): removed obsolete code
6642         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
6643           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
6644         * src/SDCCglobl.h: added indicator BitBankUsed
6645         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
6646            the bit registers b0-b7
6647         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
6648           (geniCodeCast): fixed bug 1263853,
6649           (geniCodeLogicAndOr): put result in bool or char,
6650           (geniCodeReceive): added parameter func for accessing the return type,
6651           (geniCodeFunctionBody): pass func to geniCodeReceive
6652         * src/SDCCmain.c: added indicator BitBankUsed
6653         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
6654         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
6655           (checkSClass): don't put automatic bool/bit on stack,
6656           (checkFunction): removed check on function cannot return bit
6657         * src/SDCCsymt.h: added newBoolLink prototype
6658         * src/mcs51/gen.c (rb1regs): added bit registers,
6659           (movc): created for assigning to carry,
6660           (pushReg, popReg): created for pushing registers,
6661           (sameRegs): check both AOP_REG and AOP_CRY types,
6662           (aopOp): handle bit registers,
6663           (aopPut): optimization no self-assign,
6664           (saveRegisters): push reg->base (bits) only once for bit registers,
6665            and use pushReg,
6666           (unsaveRegisters): pop reg->base only once and use popReg,
6667           (assignResultValue): added parameter func and return in carry for bits,
6668           (genIpush): optimization no reload in A if not changed,
6669           (genSend): bit parameters in reentrant functions are passed in bit
6670            registers by first assigning to bits in B, then save registers and
6671            copy B to bits,
6672           (genCall): handle returning in Carry properly, save it in F0 if needed,
6673           (genPcall): updated assignResultValue call, this is not safe yet for bit
6674            returning function !!!
6675           (genFunction): don't generate equ's for bit registers and use pushReg,
6676           (genEndFunction): take care of bit returning functions and use popReg,
6677           (genRet): return bit in Carry,
6678           (genIfx): optimize bit registers and other directly addressable bits,
6679           (genReceive): updated assignResultValue call
6680         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
6681           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
6682            registers when using stack-auto
6683         * src/mcs51/ralloc.c (_G): added allBitregs,
6684           (regs8051): added the bit registers,
6685           (createStackSpil): use macro IS_BIT,
6686           (getRegBit): added to allocate a bit register, else spill,
6687           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
6688           (updateRegUsage): factored out to ease stepping while debugging,
6689           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
6690            also allocate bit registers,
6691           (fillGaps): handle bit registers,
6692           (findAllBitregs): added to create bit vector with all bit registers,
6693           (mcs51_allBitregs): returns this bit vector,
6694           (mcs51_assignRegisters): when using stack-auto use bit registers for
6695            passing parameters and creating local variables
6696         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
6697
6698 2005-08-22 Borut Razem <borut.razem AT siol.net>
6699
6700         * device/lib/Makefile.in: replaced find option -or with -o
6701           to make it run on solaris
6702
6703 2005-08-22 Raphael Neider <rneider AT web.de>
6704
6705         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
6706           fixes #1265442 (crash on Solaris)
6707
6708 2005-08-20 Borut Razem <borut.razem AT siol.net>
6709
6710         * configure, configure.in: added tests for libsocket and libnsl libraries,
6711           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
6712           from support/regression/Makefile.in
6713         * support/regression/Makefile.in: added
6714         * device/lib/pic16/Makefile.common.in: force make to use bash shell
6715         * sim/ucsim/libtool: regenerated on sparc-solaris
6716         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
6717           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
6718           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
6719           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
6720           sparc-solaris, which doesn't use GNU ld linker
6721         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
6722         * as/Makefile: find on sparc-solaris does not support -maxdepth option
6723
6724 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
6725
6726         * src/mcs51/peeph.def: updated comments
6727
6728 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6729
6730         * device/lib/_gptrget.c,
6731         * device/lib/_gptrput.c: slightly shorter
6732         * doc/sdccman.lyx: incremented version
6733         * src/mcs51/peeph.def: moved peephole comments to the line of first
6734           change to better keep line correlation, reanimated 186.e
6735         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
6736
6737 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
6738
6739         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
6740           David Saxton with quotes around file name.
6741
6742 2005-08-15 Borut Razem <borut.razem AT siol.net>
6743
6744         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
6745           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
6746           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
6747           make tests run on x86_64 platform
6748
6749 2005-08-13 Raphael Neider <rneider AT web.de>
6750
6751         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
6752           as it might be executed DURING a build (parallel make is wonderful)
6753
6754 2005-08-13 Raphael Neider <rneider AT web.de>
6755
6756         * device/lib/Makefile.in (port-specific-objects-pic16):
6757           revert to cp $(PORT)/bin/*.* $(PORTDIR)
6758         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
6759           dependency
6760         * device/lib/pic16/Makefile.rules: build subdirs before creating
6761           the library, removed builddir rule, create $(builddir) early in
6762           recurse rule, use empty recurse rule for leaf directories
6763         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
6764           mkdir errors (race condition), removed duplicate suffix "hex"
6765           from clean rules
6766         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
6767         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
6768           prevents mkdir -p from aborting on Alpha
6769
6770 2005-08-12 Raphael Neider <rneider AT web.de>
6771
6772         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
6773           db-statements in order to allow for arrays of pointers in code
6774           sections to be placed without interspersed 0-padding, fixes
6775           bug #1256215
6776         * (emitStatistics): fixed division by zero for pic18f1220
6777         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
6778           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
6779         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
6780         * (pic16_pCodeConstString): keep track of already emitted string
6781           literals to prevent "duplicate definitions of symbol _str_NR"
6782         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
6783           debug message
6784         * device/lib/Makefile.in: ignore failing PIC16 library builds
6785         * device/lib/pic16/Makefile: do not build if gputils are missing
6786         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
6787
6788 2005-08-10 Raphael Neider <rneider AT web.de>
6789
6790         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
6791           my last commit)
6792
6793 2005-08-10 Raphael Neider <rneider AT web.de>
6794
6795         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
6796           Rokas' patch to add the new fixed point type "__fixed16x16"
6797         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
6798           functions for __fixed16x16 arithmetics
6799         * device/lib/pic16: reimplemented the build system to support
6800           a separate build directory, better handling of libio (create
6801           the library in a separate subdir for each architecture) and
6802           easier configuration (centralized in Makefile.common)
6803
6804 2005-08-07 Raphael Neider <rneider AT web.de>
6805
6806         * src/pic16/gen.c (genrshTwo): fixed sign extension
6807         * src/pic16/device.c: added pic18f2320, 4220 and 4320
6808         * device/include/pic16/pic18f2220.h: changed some bit definitions,
6809           added T0CONbits
6810         * device/include/pic16/pic18f4220.h: NEW, header for
6811           pic18f4220 and pic18f4320
6812         * device/include/pic16/pic18fregs.h: added new devices,
6813           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
6814         * device/include/pic16/signal.h: resolved name clashes
6815           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
6816           to also allow testing for interrupt enable bits, added
6817           comments on how to use the macros
6818         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
6819         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
6820           register definitions for the devices
6821         * device/lib/pic16/pics.all: added new devices
6822         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
6823           allocated memory
6824         * device/lib/pic16/libc/stdlib/memfree: do not count
6825           the block header as free memory
6826         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
6827           simplified and added missing end-of-blocklist-marker
6828           (reported by Peter Onion, fixes #1252814)
6829         * (_mergeHeapBlock): fixed loop condition
6830         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
6831           len==0, restructured code
6832         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
6833           up a bit, reduced bitfield accesses, prevent endless loops
6834           in case of heap corruption
6835         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
6836           "unreferenced arguments/must return a value" warnings
6837         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
6838           replaced BAUDREG with SPBRG
6839         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
6840           device/lib/pic16/debug/gstack/gstack.c: replaced
6841           _naked, _asm, _endasm with __naked, __asm, __endasm
6842
6843 2005-08-05 Raphael Neider <rneider AT web.de>
6844
6845         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
6846           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
6847
6848 2005-08-05 Borut Razem <borut.razem AT siol.net>
6849
6850         * device/lib/Makefile.in: added missing ';'
6851         * configure: removed ^M characters
6852
6853 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6854
6855         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
6856           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
6857           License
6858
6859 2005-08-04 Borut Razem <borut.razem AT siol.net>
6860
6861         * configure.in: pic16 libraries build 2nd try - enable running
6862           configure in device/lib/pic16
6863         * configure: regenerated from configure.in
6864         * device/lib/Makefile.in: create $(PORT)/bin directory
6865
6866 2005-08-03 Raphael Neider <rneider AT web.de>
6867
6868         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
6869           to get/set values via pointers
6870         * (genUnpackBits,genPackBits): changed detection of
6871           ptr->bitfield vs. sym.bitfield, fixed access via generic
6872           pointers, removed dead (wrong) code for multibyte bitfields
6873         * (genNearPointerGet, genGenPointerGet): removed useless code,
6874           fixed bitfield detection, fixes #1250594
6875         * (genNearPointerSet): removed useless code
6876         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
6877           and introduced macro pic16_emitpcode that conditionally emits
6878           the origin of the following pCode (useful for debugging SDCC)
6879         * src/pic16/pcode.c: changed (and disabled) some debug outputs
6880         * (createDefmap): fixed handling of LFSR for --optimize-df
6881
6882 2005-08-02 Borut Razem <borut.razem AT siol.net>
6883
6884         * device/lib/Makefile.in: pic16 libraries build enabled since
6885           gputils-0.13.2 are now localy installed at sourceforge's compile farm
6886
6887 2005-08-02 Raphael Neider <rneider AT web.de>
6888
6889         * src/pic16/gen.c (genPackBits): removed deprecated warning
6890         * (genGenPointerSet): fixed bitfield detection
6891
6892 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6893
6894         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
6895
6896 2005-07-31 Raphael Neider <rneider AT web.de>
6897
6898         * device/lib/pic16/libdev/pic18f458.c,
6899           device/include/pic16/pic18f458.h: added missing T0CONbits
6900
6901 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
6902
6903         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
6904
6905 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
6906
6907         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
6908
6909 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6910
6911         * device/include/mcs51/at89c51ed2.h: added.
6912
6913 2005-07-23 Raphael Neider <rneider AT web.de>
6914
6915         * src/pic/gen.h: added emitpcode macro for debugging
6916         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
6917           and replace by macro adding debug information on demand
6918         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
6919         * (gencjne): tried to fix; replaced with correct (slower) code
6920         * (gen{Unp,P}ackBits): fixed single bit access
6921         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
6922         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
6923           previous instruction
6924         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
6925           register has to be handled with care (forbidding movement
6926           of assignments/uses, removing assignments completely, ...)
6927         * (pCodeOptime2pCodes): make use of regIsSpecial
6928         * added lots of debugging output (commented out)
6929         * src/pic/rallloc.c (deassignLRs): prevent operand registers
6930           from being reused as result UNLESS it is known to work
6931
6932 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
6933
6934         * support/Util/dbuf.h: include <stddef.h> for size_t
6935         * .version: changed to version 2.5.2
6936
6937 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6938
6939         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
6940
6941 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6942
6943         * src/hc08/gen.c (genMinus): fixed bug #1241835,
6944           (genModOneByte): removed needless psha/pula
6945
6946 2005-07-22 Raphael Neider <rneider AT web.de>
6947
6948         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
6949           have PIC14 handled like PIC16, fixes broken pic14 linker calls
6950         * src/pic/gen.c (resolveIfx): do not "invent" labels
6951         * (genSkipc): changed to positive logic
6952         * (genSkipCond): removed as no longer needed
6953         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
6954           backport from PIC16
6955         * (genLeftShift): check operands are in different registers
6956         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
6957           INCF does not update CARRY...
6958         * src/pic/main.c: fixed _linkCmd
6959         * src/pic/pcode.c (unlinkpCode): added inactive code
6960         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
6961           alive (do not assign result and operand overlapping registers)
6962
6963 2005-07-22 Raphael Neider <rneider AT web.de>
6964
6965         * src/pic/device.c (dump_sfr): replaced register declaration with
6966           call to emitSymbolToFile() to avoid duplicate symbols
6967         * (assignRelocatableRegisters): do not declare external symbols
6968         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
6969           right (take size of type, not etype)
6970         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
6971         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
6972         * (packRegsForAccUse): disabled assignment of WREG as
6973           the result reg to prevent occurence of just fixed #1235003,
6974           fixes #1242954
6975         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
6976           symbols (avoids duplicate symbols in .asm file)
6977         * (pic14emitRegularMap): use emitSymbolToFile()
6978         * src/pic/gen.c (aopOp): fixed spillLocation handling
6979         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
6980         * (genDataPointerSet): removed unneccessary variables/output
6981
6982 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
6983
6984         * as/mcs51/lkarea.c: enlarged codemap for banked memory
6985         * device/lib/mcs51/crtbank.asm: added # to 0x0F
6986
6987 2005-07-21 Raphael Neider <rneider AT web.de>
6988
6989         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
6990           architecture cannot handle them efficiently, fixes bug #1235003
6991         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
6992           check for empty sets before using them (fixes bug #1232190)
6993
6994 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
6995
6996         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
6997           (lnksect2): generate warnings for memory overlap
6998         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
6999           constseg to set the name of these segments so you can instruct the linker
7000           to place them in banks
7001         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
7002         * src/SDCCglobl.h: added MODEL_HUGE to enum,
7003           added code_seg and const_seg to options
7004         * src/SDCCglue.c (emitMaps): use options.const_seg,
7005           (createInterruptVect): put interrupt vectors in segment HOME,
7006           (glue): put HOME before static segment and put the main glue in HOME,
7007           (glue): use options.code_seg
7008         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
7009         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
7010           these segments so you can instruct the linker to place them in banks
7011           (linkEdit): use code_loc for HOME segment which should be the first
7012           segment in code memory now
7013         * src/SDCCmem.c: fixed more stuff like bug 1238386
7014         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
7015           (changePointer): don't change function pointers to code pointers for
7016           banked functions,
7017           (compareType): added exceptional check for banked function pointers
7018         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
7019         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
7020           after static in code memory
7021         * src/mcs51/gen.c: added aopLiteralLong prototype,
7022           (aopForSym): use getSize for functions,
7023           (genCall): generate banked calls over one trampoline __sdcc_banked_call
7024           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
7025           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
7026           the segment,
7027           (genPcall): use call for literal function pointers and generate banked
7028           calls over the one trampoline so there's only one place for the user to
7029           modify according to his/hers hardware,
7030           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
7031           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
7032         * src/mcs51/main.c: added keyword banked,
7033           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
7034         * support/Util/SDCCerr.c,
7035         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
7036           needed for passing the bank and address to the trampoline
7037         * device/lib/mcs51/crtbank.asm: added for bankswitching
7038         * device/lib/mcs51/Makefile: added crtbank
7039
7040 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7041
7042         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
7043           for fields at offset 0 of a struct or union as reported
7044           on 2005-07-07 in the developer mailing list.
7045
7046 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
7047
7048         * src/SDCCmem.c: fixed bug 1238386
7049
7050 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7051
7052         * src/mcs51/peeph.def: added labelrefcounting for peepholes
7053           (patch #1144962), added peephole 300, enabled 259.x
7054         * doc/sdccman.lyx: removed screenshot and provided link instead
7055
7056 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7057
7058         * doc/sdccman.lyx: added section about debugging with ddd
7059         * doc/figures/ddd_example.eps: screenshot of debugging session
7060
7061 2005-07-04 Raphael Neider <rneider AT web.de>
7062
7063         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
7064           like CODE pointers, fixes #1115683
7065         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
7066           call, fixes bugs #1232211, #1228110,
7067           fixed wrong casts to pCodeFlow from pCodeInstructions
7068
7069 2005-07-04 Raphael Neider <rneider AT web.de>
7070
7071         * src/pic/gen.c (popGet): changed assert to allow for
7072           bit operands
7073         * (popGetAddr): changed signature to provide
7074           an additional index, patched all call sites
7075         * (genCmpEq): handle literal-like operands correctly
7076         * (genAddrOf): added sanity checks on __code/__data pointers
7077         * (genAssign): added handling of symbols from __code section
7078         * (gencjne): do not generate code for comparisons whose result
7079           is neither stored nor used, fixes bug #1171114
7080         * (AccLsh, AccRsh): operate on operand instead of WREG
7081         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
7082           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
7083           by known count
7084         * rewrote complete shift-by-literal logic, commented unused
7085           functions out
7086         * (genConstPointerGet): get multiple bytes (if result size > 1),
7087           fixed handling of non-immediate addresses
7088         * (genPointerGet): handle CODE pointers like CONST pointers
7089         * (genpic14Code): insert C-SRC lines as Cource-pCodes
7090         * ({aop,op}_isLitLike): NEW, single place to decide whether an
7091           operand is to be treated as a literal or not
7092         * (mov2w,genPcall,genCmpEq),
7093           src/pic/genarith.c: use aop_isLitLike() to decide between
7094           literal/register contents
7095         * (addSign): added missing offset
7096         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
7097           only emit comment in debug-mode,
7098           use {aop,op}_isLitLike throughout the file
7099         * src/pic/glue.c: fix initializers for pointers (work in progress)
7100         * src/pic/pcode.c (get_op): honor index on _const symbols
7101         * ({reset,dump}pCodeStatistics): NEW, estimate code size
7102         * (dumppBlock): added pCode size estimation
7103         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
7104           check for IS_SYMOP before OP_SYMBOL'ing
7105         * fixed indentation, compacted switch-statements
7106         * (allocReg): find free register and allocate it instead of
7107           allocating new registers all the time
7108         * (deassignLRs): prevent POINTER_GET's from being assigned the same
7109           registers as its operands (necessary only for multibyte GETs)
7110
7111 2005-07-01 Raphael Neider <rneider AT web.de>
7112
7113         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
7114           debugging .asm-output macros FENTRY + FEXIT
7115         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
7116           way... I wonder...
7117         * (emitpComment): NEW, printf to pCode
7118         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
7119           offset handling
7120         * (popGetAddr): NEW, variant of popGet to access an immediates
7121           high(er) bytes instead of the n'th byte of memory they reference,
7122           replaced popGet with popGetAddr where neccessary
7123         * (genDataPointerGet): reactivated and fixed implementation
7124         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
7125           accesses
7126         * (genDataPointerSet): fixed multibyte assignments
7127         * (genpic14Code): fixed --i-code-in-asm handling
7128         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
7129         * (genPlus): fixed index-out-of-bounds error
7130         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
7131         * src/pic/ralloc.c: added debugging output macro FENTRY2
7132         * (spillThis): fixed indentation, enbraced for-body for clarity
7133         * (rematStr): commented out as now unused
7134         * (regTypeNum): commented out special spill case (overwrites
7135           arbitrary values)
7136         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
7137
7138 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
7139
7140         * doc/sdccman.lyx: documented sfr16/sfr32,
7141           added example for using storage class with function pointers
7142         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
7143
7144 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
7145
7146         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
7147         * device/lib/_itoa.c,
7148         * device/lib/_ltoa.c: optimized codesize
7149         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
7150           but don't know how to suppress the double warning.
7151         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
7152         * support/Util/SDCCerr.c,
7153         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
7154
7155 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
7156
7157         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
7158           fixed old K&R prototypes
7159         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
7160         * device/lib/_gptrget.c,
7161         * device/lib/_gptrgetc.c,
7162         * device/lib/_gptrput.c: changed versions for new memory indicator values,
7163           also new versions for small generic pointers and banked generic pointers
7164         * src/port.h: added const_name
7165         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
7166         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
7167         * src/SDCCcse.c (findPrevIc): check all associative operators
7168         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
7169         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
7170         * src/SDCCmem.c: updated comments,
7171           set far-space to 0 for pdata, results in optimized code
7172         * src/SDCCmem.h: added macro CONST_NAME
7173         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
7174           moving the info into the highest bits, see also gptrget/gptrput
7175         * src/src.dsp: added sdcc.ico to project files
7176         * src/avr/gen.c (genCast): fixed bug 0x%d
7177         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
7178         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
7179           relation between ptr_type and DCL_TYPE,
7180           (genCast): fixed bug 0x%d
7181         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
7182           (CODE)" for const_name
7183         * src/hc08/gen.c (genCast): fixed bug 0x%d
7184         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
7185           (hc08_port): added "CONST (CODE)" for const_name
7186         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
7187           (aopForRemat, adjustArithmeticResult): disconnected direct relation
7188           between ptr_type and DCL_TYPE,
7189           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
7190           operand* and took AOP() inside function so sfr-ness can be checked,
7191           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
7192           new prototype,
7193           (genFunction, genEndFunction): optimized stack setup,
7194           (genMinus): optimized for literals with ending zeroes (in bytes),
7195           (genCast): fixed bug 0x%d
7196         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
7197           (mcs51_port): added "CONST (CODE)" for const_name
7198         * src/mcs51/peeph.def: made rule 226 more generic
7199         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
7200         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
7201         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
7202         * src/z80/main.c (z80_port): added NULL for const_name,
7203           (gbz80_port): added NULL for const_name
7204         * support/regression/tests/bug663539.c,
7205         * support/regression/tests/sfr16.c: new tests
7206
7207 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7208
7209         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
7210
7211 2005-06-24 Raphael Neider <rneider AT web.de>
7212
7213         * device/lib/pic16/libdev/pic18f[68][567]20.c:
7214           corrected typos...
7215         * device/include/pic16/signal.h: added USBIF
7216           and SIG_USB
7217
7218 2005-06-24 Raphael Neider <rneider AT web.de>
7219
7220         * device/lib/pic16/libdev/pic18f2455.c,
7221           device/include/pic16/pic18f2455.h: NEW
7222         * device/include/pic16/pic18fregs.h,
7223           device/lib/pic16/pics.all,
7224           src/pic16/device.c: added 18f2455
7225         * device/lib/pic16/libdev/pic18f[68][567]20.c,
7226           device/include/pic16/{pic18f[68][567].h,usart.h}:
7227           replaced MULTIPLE_USARTS define with more relaible
7228           compatibility sfrs (for USART access)
7229
7230 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
7231
7232         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
7233           and the output asm file line is printed on two lines.
7234
7235 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7236
7237         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
7238           BGT, BLE, BHI, and BLS instructions
7239         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
7240           genCmpEq): removed
7241         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
7242           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
7243           fixes bug #1216342
7244         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
7245
7246 2005-06-15 Raphael Neider <rneider AT web.de>
7247
7248         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
7249         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
7250         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
7251           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
7252           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
7253
7254 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7255
7256         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
7257           Marcel Telka in bug #1215704
7258
7259 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
7260
7261         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
7262           located in shared memory bank.
7263
7264 2005-05-31 Raphael Neider <rneider AT web.de>
7265
7266         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
7267           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
7268           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
7269
7270 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
7271
7272         * device/lib/_strncpy.c: fixed the fix
7273
7274 2005-05-26 Raphael Neider <rneider AT web.de>
7275
7276         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
7277           initializers with \0, bug #1208187
7278         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
7279           intializers with \0, bug #1208187
7280
7281 2005-05-26 Raphael Neider <rneider AT web.de>
7282
7283         * src/pic16/glue.c (pic16_printIvalChar): fixed string
7284           initializers with \0, bug #1208187
7285         * src/pic16/main.c (_process_pragma): added sanity checks
7286           for stack position and size, emit warnings when appropriate
7287
7288 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
7289
7290         * device/lib/_strncpy.c: fixed not filling with \0
7291
7292 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7293
7294         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
7295           createFunction),
7296         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
7297           compound_statement),
7298         * src/SDCCsymt.h,
7299         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
7300
7301 2005-05-24 Raphael Neider <rneider AT web.de>
7302
7303         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
7304
7305 2005-05-24 Raphael Neider <rneider AT web.de>
7306
7307         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
7308           TRISE definitions, closes bug #1162453
7309
7310 2005-05-22 Raphael Neider <rneider AT web.de>
7311
7312         * src/pic16/main.c (_process_pragma): check for missing
7313           arguments to pragmas code and udata
7314         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
7315           consistency fixes to match other headers (thanks to Jim Paris)
7316         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
7317
7318 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
7319
7320         * src/SDCCicode.c (isOperandEqual): fixed missing ;
7321
7322 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
7323
7324         * support/regression/tests/bug1198642.c: new test
7325         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
7326         * src/SDCCcse.c (findPrevIc): added comment, please have a look
7327         * support/scripts/resource.h,
7328         * support/scripts/resource.rc,
7329         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
7330         * support/scripts/sdcc.ico: added 32x32 icon
7331
7332 2005-05-18 Raphael Neider <rneider AT web.de>
7333
7334         * device/lib/pic16/libdev/pic18f*.c,
7335         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
7336           keywords to "__sfr" and "__at (X)"
7337         * device/include/pic16/pic18fregs.h: added pic18f4520
7338         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
7339           #1203088 (MPLAB compatibility)
7340
7341 2005-05-17 Raphael Neider <rneider AT web.de>
7342
7343         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
7344         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
7345         * device/lib/pic16/pics.all: added new devices
7346         * src/pic16/device.c: added support for pic18f4520
7347
7348 2005-05-16 Raphael Neider <rneider AT web.de>
7349         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
7350         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
7351         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
7352           convenience function for bit access
7353
7354 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
7355
7356         * device/lib/printf_large.c: fixed bug 1193299
7357         * support/regression/tests/bug1057979.c: added test %3.3s
7358
7359 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7360
7361         * device/include/mcs51/8051.h,
7362         * device/include/mcs51/8052.h: made parseable with lint
7363         * device/include/mcs51/lint.h: added include file for (sp)lint
7364         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
7365         * doc/cdbfileformat.lyx,
7366         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
7367
7368 2005-05-14 Raphael Neider <rneider AT web.de>
7369
7370         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
7371         * device/lib/pic16/libc/stdlib/itoa.c (new)
7372         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
7373         * device/lib/pic16/libio/Makefile: exclude subdir according to
7374           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
7375         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
7376         * src/pic16/gen.c (genFunction): prevent annoying warning
7377         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
7378           nameclashes on BeOS
7379         * support/cpp2/cppmain.c (cpp_output_string): new
7380         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
7381           fixes bug 1116802
7382
7383 2005-05-13 Borut Razem <borut.razem AT siol.net>
7384
7385         * src/SDCCmain.c (linkEdit): fixed bug 1195202
7386
7387 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7388
7389         * .version: changed to version 2.5.1; back to bleeding edge development
7390
7391 2005-05-11 Borut Razem <borut.razem AT siol.net>
7392
7393         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
7394           generate PDF version 1.3 documents
7395
7396 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7397
7398         * .version: changed to version 2.5.0
7399
7400 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7401
7402         * doc/sdccman.lyx: updated weblinks, index and smaller updates
7403
7404 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7405
7406         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
7407         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
7408         well as many smaller updates.
7409         * .version: changed to version 2.5.0-pre1
7410
7411 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7412
7413         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
7414
7415 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
7416
7417         * support/regression/tests/bug1185672.c: added
7418         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
7419           bug 1185672
7420         * src/mcs51/gen.c (genCall): added comments, made it look safer
7421         * src/mcs51/gen.c (genEndFunction): simplified
7422
7423 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
7424
7425         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
7426
7427 2005-04-14 Borut Razem <borut.razem AT siol.net>
7428
7429         * fixed bug 1045046 - SIGSEGV with really simple code?:
7430           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
7431           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
7432
7433 2005-04-14 Borut Razem <borut.razem AT siol.net>
7434
7435         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
7436           src/pic16/device.h: temporarily disabled experimental #inline pragma
7437           for 2.5.0 release
7438
7439 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
7440
7441         * device/include/z80/stdio.h,
7442         * device/include/z80/string.h: removed these highly incomplete files so
7443           SDCC can use the default ones in device/include/
7444
7445 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7446
7447         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
7448         gcc warning.
7449         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
7450         fix sdcpp warnings.
7451
7452 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
7453
7454         * device/include/malloc.h: removed redundant __reentrant prototypes
7455         * device/lib/_mullong.c: added working xstack variant in asm (C version
7456           doesn't pass regression tests)
7457         * device/lib/bpx.c: used __data and made bpx char for mcs51
7458         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
7459           (createFunction): fixed bug with xstackPtr
7460         * src/SDCCcse.c: corrected comments
7461         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
7462           (killDeadCode, eBBlockFromiCode): removed unused code
7463         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
7464           corrected comments
7465         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
7466           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
7467           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
7468           (genModOneByte): fixed warning in MSVC
7469         * src/mcs51/main.c (): added comments
7470         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
7471
7472 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
7473
7474         * src/SDCCmain.c (linkEdit): oops, changed one line too many
7475
7476 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
7477
7478         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
7479
7480 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
7481
7482         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
7483         characters arrays of larger size than the declared one.
7484
7485 2005-04-10 Borut Razem <borut.razem AT siol.net>
7486
7487         * src/pic/gen.c (genInline),
7488           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
7489           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
7490           (findNextInstruction), (findPrevInstruction),
7491           (findInstructionUsingLabel),
7492           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
7493         * src/pic/pcode.c (findLabel): added missing '\n'
7494         * src/src.dsp: added SDCCdwarf2.c to the project
7495
7496 2005-04-09 Borut Razem <borut.razem AT siol.net>
7497
7498         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
7499
7500 2005-04-08 Raphael Neider <rneider AT web.de>
7501
7502         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
7503           into the chain after a given one) and mergeDefmapSymbols (combine
7504           defmap entries for each symbol per pcode)
7505         * (createDefmap): have defmap entries merged in the end
7506         * (defmapReplaceSymRef): split defmap entries covering two accesses to
7507           a symbol before replacing one access type's symbol, merge symbols in
7508           the end (replacement symbol might already have an entry)
7509         * (assignValnums): keep reference to written WREG intact
7510
7511 2005-04-08 Raphael Neider <rneider AT web.de>
7512
7513         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
7514           Alpha)
7515
7516 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
7517
7518         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
7519         bytes
7520
7521 2005-04-07 Raphael Neider <rneider AT web.de>
7522
7523         * device/include/pic16/usart.h: added compatibility defines for
7524           devices with more than one USART
7525         * device/include/pic16/pic18f[68][567]20.h: activated above defines
7526
7527 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7528
7529         * device/lib/Makefile.in: updated for port specific include
7530
7531 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7532
7533         * support/regression/ports/mcs51/spec.mk: added mcs51 include
7534
7535 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7536
7537         * device/include/8051.h,
7538         * device/include/8052.h,
7539         * device/include/at89S8252.h,
7540         * device/include/at89c55.h,
7541         * device/include/at89x051.h,
7542         * device/include/at89x51.h,
7543         * device/include/at89x52.h,
7544         * device/include/mcs51reg.h,
7545         * device/include/reg51.h,
7546         * device/include/reg764.h,
7547         * device/include/regc515c.h,
7548         * device/include/sab80515.h: (re)moved these 12 files
7549         * device/include/mcs51/8051.h,
7550         * device/include/mcs51/8052.h,
7551         * device/include/mcs51/at89S8252.h,
7552         * device/include/mcs51/at89c55.h,
7553         * device/include/mcs51/at89x051.h,
7554         * device/include/mcs51/at89x51.h,
7555         * device/include/mcs51/at89x52.h,
7556         * device/include/mcs51/mcs51reg.h,
7557         * device/include/mcs51/reg51.h,
7558         * device/include/mcs51/reg764.h,
7559         * device/include/mcs51/regc515c.h,
7560         * device/include/mcs51/sab80515.h: and added them here
7561
7562 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
7563
7564         * device/include/stdarg.h: changed SDCC specific keywords to double
7565           underlined form.
7566         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
7567           mcs51 and ds390.
7568         * device/include/hc08/mc68hc908gp32.h,
7569         * device/include/hc08/mc68hc908jb8.h,
7570         * device/include/hc08/mc68hc908jkjl.h,
7571         * device/include/hc08/mc68hc908qy.h: fixed comments
7572         * device/include/mcs51/README: updated
7573         * device/include/mcs51/c8051f120.h: added PINRSF
7574         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
7575         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
7576           amidst code. Also inline is not supported.
7577
7578 2005-04-06 Raphael Neider <rneider AT web.de>
7579
7580         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
7581         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
7582           callers stack/frame pointers
7583
7584 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
7585
7586         * device/include/pic16/usart.h: added, missing in previous commit,
7587         * device/include/pic16/adc.h: fixed typo,
7588         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
7589         commit,
7590         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
7591         <p18fxxx.inc>
7592         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
7593         uninitialized because a bug appears with gplink
7594         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
7595         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
7596         complains for unrecognised option
7597
7598 2005-04-05 Raphael Neider <rneider AT web.de>
7599
7600         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
7601           structs as well (using memcpy)
7602         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
7603           on ISRs (GOTO has no label)
7604         * src/pic16/device.h: added OF_OPTIMIZE_DF
7605         * src/pic16/main.c: added compiler switch --optimize-df to enable the
7606           new data flow analysis/optimization
7607         * src/pic16/pcode.c: added (prototypes for and implementation of)
7608           dataflow analysis functions, fixed pCodeInstructions' inCond and
7609           outCond values, made RCALL a branch instruction
7610         * (pic16_unlinkpCode): keep C line if possible
7611         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
7612           C line moved if possible
7613         * (pic16_getRegFrompCodeOp): NEW, improved version of...
7614         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
7615           to use new pic16_getRegFrompCodeOp (works for more SFRs)
7616         * (pic16_BuildFlow): fixed skip instructions with label (did not start
7617           new flow)
7618         * (pic16_getJumptabpCode): NEW, needed in...
7619         * (LinkFlow): fixed handling of jumptables, calls and conditional
7620           branches
7621         * (pic16_InsertCommentAfter): NEW
7622         * (pic16_pCodeReplace): made verbose and flow preserving
7623         * (AnalyzeFlow): added call to data flow analysis
7624         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
7625         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
7626         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
7627
7628 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7629
7630         * src/SDCCast.c (decorateType): fixed bug #1105626
7631
7632 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
7633
7634         * device/include/asm/pic16/features.h,
7635         * pic18f*.h headers,
7636         * device/include/pic16/adc.h,
7637         * device/include/pic16/delay.h,
7638         * device/include/pic16/i2c.h,
7639         * device/include/pic16/malloc.h,
7640         * device/include/pic16/stdio.h,
7641         * device/include/pic16/stdlib.h,
7642         * device/include/pic16/string.h,
7643         * device/lib/pic16/libc/stdio/printf_tiny.c,
7644         * device/lib/pic16/libc/stdio/printf_small.c,
7645         * device/lib/pic16/libc/stdio/strmgpsim.c,
7646         * device/lib/pic16/libc/stdio/strmmssp.c,
7647         * device/lib/pic16/libc/stdio/strmusart.c,
7648         * device/lib/pic16/libc/stdio/vfprintf.c,
7649         * device/lib/pic16/libc/stdlib/ltoa.c,
7650         * device/lib/pic16/libc/stdlib/putchar.c,
7651         * device/lib/pic16/libc/stdlib/x_ftoa.c,
7652         * device/lib/pic16/libc/stdlib/memchrpgm.c,
7653         * device/lib/pic16/libc/stdlib/memchrram.c,
7654         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
7655         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
7656         * device/lib/pic16/libio/adc/adcbusy.c,
7657         * device/lib/pic16/libio/adc/adcread.c,
7658         * device/lib/pic16/libio/adc/adcsetch.c,
7659         * device/lib/pic16/libio/usart/ubaud.c,
7660         * device/lib/pic16/libio/usart/ubusy.c,
7661         * device/lib/pic16/libio/usart/udrdy.c,
7662         * device/lib/pic16/libio/usart/uopen.c,
7663         * device/lib/pic16/libio/usart/uputc.c,
7664         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
7665         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
7666         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
7667         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
7668         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
7669         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
7670         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
7671         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
7672         specific keywords to double underlined form,
7673         * device/lib/pic16/libc/Makefile.rules,
7674         * device/lib/pic16/libsdcc/Makefile.rules,
7675         * device/lib/pic16/libm/Makefile,
7676         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
7677         to compile with C standard set in Makefile.common
7678         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
7679         rand.c and crc.c in compilation process,
7680         * device/lib/pic16/libsdcc/int/divuint.c,
7681         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
7682         `c' from signed to unsigned,
7683         * device/lib/pic16/startup/crt0.c,
7684         * device/lib/pic16/startup/crt0i.c,
7685         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
7686         keywords to double underlined form, bug fixes in _do_cinit function
7687         which prevented the correct initialization of the .idata segment,
7688         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
7689         core to enter a infinite loop
7690         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
7691
7692 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7693
7694         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
7695
7696 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7697
7698         * device/include/Makefile.in: add support for hc08 subdirectory
7699         * device/include/hc08/: new subdirectory
7700         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
7701         Lucas Loizaga, thanks!
7702         * device/include/hc08/mc68hc908qy.h,
7703         * device/include/hc08/mc68hc908gp32.h,
7704         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
7705         their own directory. Changed internal macro names to use the compiler
7706         reserved namespace. Changed SDCC specific keywords to double
7707         underlined form.
7708         * device/include/math.h,
7709         * device/include/malloc.h,
7710         * device/include/stdarg.h,
7711         * device/include/stdbool.h
7712         * device/include/string.h,
7713         * device/include/tinibios.h,
7714         * device/include/ds400rom.h,
7715         * device/include/8051.h,
7716         * device/include/8052.h,
7717         * device/include/80c51xa.h,
7718         * device/include/at89c55.h,
7719         * device/include/at89S8252.h,
7720         * device/include/at89x51.h,
7721         * device/include/at89x52.h,
7722         * device/include/ds80c390.h,
7723         * device/include/reg764.h,
7724         * device/include/regc515c.h,
7725         * device/include/sab80515.h,
7726         * device/include/mcs51/c8051f000.h,
7727         * device/include/mcs51/c8051f018.h,
7728         * device/include/mcs51/c8051f020.h,
7729         * device/include/mcs51/c8051f040.h,
7730         * device/include/mcs51/c8051f060.h,
7731         * device/include/mcs51/c8051f120.h,
7732         * device/include/mcs51/c8051f300.h,
7733         * device/include/mcs51/c8051f310.h,
7734         * device/include/mcs51/c8051f320.h,
7735         * device/include/mcs51/c8051f330.h,
7736         * device/include/mcs51/c8051f350.h,
7737         * device/include/z180.h: Changed SDCC specific keywords to double
7738         underlined form.
7739
7740 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
7741
7742         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
7743         18F4455,
7744         * (pic16_assignConfigWordValue): disable testing of configuration
7745         register value with config mask,
7746         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
7747         function with port->fun_prefix,
7748         * (genFunction): when generating a naked interrupt function never
7749         create an absolute segment placed in interrupt vector address, place
7750         the actual interrupt function at IVA instead, when an interrupt
7751         function is generated with unspecified interrupt then do not create
7752         the absolute section,
7753         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
7754         code for generating a call to generic pointer get/put function with
7755         a call to function pic16_callGenericPointer(),
7756         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
7757         the call to the generic pointer get/put functions with prefixing the
7758         function name with port->fun_prefix,
7759         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
7760         * src/pic16/main.c (_process_pragma): prefix function with
7761         port->fun_prefix,
7762         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
7763         calling assembler, old 18Fxxxx macro is deprecated,
7764         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
7765         PC_ASMDIR in while condition,
7766         * (findInstruction): add PC_ASMDIR in while condition,
7767         * (buildCallTree): prefix main with port->fun_prefix,
7768         * (pic16_pCode2str): fixed bug that didn't emit the memory access
7769         identifier for variable with banked access in instructions BTFSS,
7770         BTFSC, BCF, BSF, BTG
7771         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
7772         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
7773         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
7774         perform optimization when enviroment variable NO_REG_OPT is set,
7775         * (insideLRBlock): NEW, return 1 if register is inside an
7776         INF_LOCALREGS block,
7777         * (RemoveRegFromLRBlock): remove a register that is completely
7778         eliminated by register optimization, but it is still left in local
7779         register store/restore in/from stack block,
7780         * (Remove2pcodes): after removing register, check to see if it
7781         should be removed from local register store/restore in/from stack
7782         block,
7783         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
7784         DUMMY_READ_VOLATILE,
7785
7786         * device/include/pic16/adc.h: minor prototype modifications and
7787         update,
7788         * device/include/pic16/malloc.h: added GPL notice various
7789         modifications,
7790         * device/include/pic16/stdint.h: NEW, standard header for ints
7791         * device/include/pic16/delay.h: NEW, header for delay functions,
7792         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
7793         delay1mtcy,
7794         * device/include/pic16/signal.h: NEW, header providing helper macros
7795         for implementing signal handlers,
7796         * device/include/pic16/stdio.h: added prototypes for functions,
7797         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
7798         prototypes for stdin and stdout, added macro PUTCHAR to
7799         automatically implement putchar function prototype,
7800         * device/include/pic16/usart.h: modified and updated USART library,
7801         * device/lib/pic16/libio/adc/,
7802         * device/lib/pic16/libio/i2c: some modifications to improve library
7803         performance,
7804         * device/lib/pic16/libc/stdio/: modifications for the new printf*
7805         family of functions,
7806         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
7807         family of functions and other sources,
7808         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
7809         of the PIC18Fxx[28] devices,
7810         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
7811         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
7812         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
7813         _do_cinit function, because the previous failed when local variables
7814         where not placed in the same memory bank,
7815         * device/lib/pic16/libsdcc/char/: various modifications to improve
7816         library performance,
7817         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
7818         information on the new functions of the c library and more...
7819
7820 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7821
7822         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
7823
7824 2005-03-26 Raphael Neider <rneider AT web.de>
7825
7826         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
7827           if condition == CARRY)
7828         * (genCmp): adapted to new genSkipc semantics
7829         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
7830           on rIfx (genCmp was broken)
7831
7832 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7833
7834         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
7835         * src/z80/main.c (_keywords[]),
7836         * src/SDCCglobal.h (struct options),
7837         * src/SDCC.y,
7838         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
7839         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
7840         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
7841         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
7842         always available in leading double underscore form. The C99 support is
7843         mostly missing, but it's a start.
7844         * support/regression/tests/bug-227710.c: fixed nonconforming use of
7845         reserved identifier "__data".
7846
7847 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
7848
7849         * src/mcs51/peeph.def: fixed bug 1170013
7850
7851 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
7852
7853         * device/include/mcs51reg.h: fixed bug 842007
7854
7855 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7856
7857         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
7858         last time.
7859
7860 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7861
7862         * src/port.h (struct PORT),
7863         * src/avr/ralloc.c (avr_assignRegisters),
7864         * src/avr/main.c,
7865         * src/ds390/ralloc.c (ds390_assignRegisters),
7866         * src/ds390/main.c,
7867         * src/hc08/ralloc.c (hc08_assignRegisters),
7868         * src/hc08/main.c,
7869         * src/mcs51/ralloc.c (mcs51_assignRegisters),
7870         * src/mcs51/main.c,
7871         * src/pic/ralloc.c (pic14_assignRegisters),
7872         * src/pic/main.c,
7873         * src/pic16/ralloc.c (pic16_assignRegisters),
7874         * src/pic16/main.c,
7875         * src/xa51/ralloc.c (xa51_assignRegisters),
7876         * src/xa51/main.c,
7877         * src/z80/ralloc.c (z80_assignRegisters),
7878         * src/z80/ralloc.h,
7879         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
7880         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
7881         * src/SDCCcse.h,
7882         * src/SDCCdflow.c (computeDataFlow),
7883         * src/SDCCdflow.h,
7884         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
7885         * src/SDCCloop.h,
7886         * src/SDCCcflow.c (*),
7887         * src/SDCCcflow.h,
7888         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
7889         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
7890         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
7891         immedDom() returning wrong block; probably fixes bug #1160833)
7892
7893 2005-03-20 Borut Razem <borut.razem AT siol.net>
7894
7895         * support/scripts/inc2h.pl: WIN32 port
7896
7897 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
7898
7899         * device/lib/makefile.in: added abs.c and labs.c
7900
7901 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
7902
7903         * device/include/stdint.h: added
7904         * device/lib/abs.c: added
7905         * device/lib/labs.c: added
7906         * device/include/stdlib.h: added abs() and labs() prototypes
7907         * device/lib/libsdcc.lib: added abs and labs
7908         * device/include/float.h,
7909         * device/lib/_fsmul.c,
7910         * device/lib/printf_fast.c,
7911         * device/lib/printf_tiny.c: updated comments
7912
7913 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7914
7915         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
7916         bug #1164313
7917
7918 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7919
7920         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
7921         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
7922
7923 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
7924
7925         * device/lib/printf_large.c: removed inline assembly for portability and
7926           readability. Use printf_fast if speed or size are more important.
7927         * src/pic16/gen.c: removed conditions around use of DEBUGpc
7928         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
7929
7930 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
7931
7932         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
7933         prevent compiler warning
7934
7935 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
7936
7937         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
7938         moved to level 0 and declared as static. Also they are explicit
7939         placed in access bank. This was necessery because some times they
7940         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
7941         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
7942         optimizations. Currently only compare to unsigned char is implemented,
7943         * src/pic16/gen.c: added fReturnIdx array,
7944         * (struct resolvedIfx) is moved to gen.h and made public,
7945         * (struct _G): added sregsAlloc and sregsAllocSet fields,
7946         * (aopForSym): added an optimization to directly store in stack of
7947         the operand of a SEND iCode,
7948         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
7949         but as registers instead (AOP_REG) using the fReturnIdx array,
7950         * (pic16_freeAsmop): remove the freed register from the
7951         _G.sregsAlloc field,
7952         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
7953         a compare of 'WREG',
7954         * (pic16_popGetTempRegCond): changed function prototype, now
7955         function takes also a bitVector argument v which holds the current
7956         set of registers that are allocated for stack access by aopForSym,
7957         registers allocated in aopForSym for accessing stack symbols are not
7958         any more part of the functions usedRegs field,
7959         * (genCall): some times aopOp is called for a stack variable to be
7960         send, aopForSym might perform the push, if this is true make sure
7961         that genCall doesn't push the variable twice by testing _G.resDirect,
7962         * (genFunction): changed testing for unspecified interrupt number
7963         from 256 to INTNO_UNSPEC,
7964         * modified selection scheme of frame pointer generation. Previously
7965         if function did use local registers a frame pointer was generated,
7966         now a frame pointer is generated only if function has arguments
7967         (that need PLUSW2 register access), or has stack arguments, or the
7968         compiler is not instructed to omit the frame pointer,
7969         * (genEndFunction): before restoring local registers that were saved
7970         in the function preamble, also restore the registers that *might*
7971         have been allocated for stack access,
7972         * (genRet): removed some old comments,
7973         * (genCmp, the active (RN's) version): added a call to the
7974         pic16_genCmp_special function to perform the compare with a more
7975         robust and optimized way,
7976         * (genInline): a feature has been added in inline code generation,
7977         which allows a wildcard variable substitution when writing inline
7978         assembly. Code is incomplete and experimental therefore undocumented,
7979         * (genCast): changed order of aopOp for result and right to allow
7980         aopForSym to directly load the result if possible,
7981         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
7982         perform an optimized compare on some selected special occasions,
7983         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
7984         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
7985         generate an IVT any more,
7986         * src/pic16/main.c (pic16_optionsTable): added command line option
7987         --optimize-cmp,
7988         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
7989         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
7990         macros,
7991         * src/pic16/NOTES: Raphael Neider added in list of active developers
7992         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
7993         jumptable_end to prevent bug #,
7994         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
7995         inCond and outCond fields,
7996         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
7997         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
7998         turn off register spilling,
7999         * (packRegsForOneUse): synced with other ports' versions although it
8000         is not used currently,
8001         * (pic16_packRegisters): added an optimization while reading
8002         structure bitfields, some registers may be saved (malloc code is
8003         decreased by 80 bytes)
8004
8005 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
8006
8007         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
8008         left is a bitfield, if yes, then don't optimize assignment. Perhaps
8009         this can be optimized more?
8010
8011 2005-03-10 Raphael Neider <rneider AT web.de>
8012
8013         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
8014           genNearPointerGet): (hopefully) fixed access to bitfields via
8015           pointers (p->bitN = x; and x = p->bitN; failed)
8016
8017 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
8018
8019         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
8020
8021 2005-03-09 Raphael Neider <rneider AT web.de>
8022
8023         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
8024
8025 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
8026
8027         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
8028         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
8029           (regTypeNum): set REG_BIT type if necessary
8030         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
8031         * support/regression/tests/critical.c: check bug 1144613
8032
8033 2005-03-02 Raphael Neider <rneider AT web.de>
8034
8035         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
8036
8037 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8038
8039         * src/avr/ralloc.c (serialRegAssign),
8040         * src/ds390/ralloc.c (serialRegAssign),
8041         * src/hc08/ralloc.c (serialRegAssign),
8042         * src/mcs51/ralloc.c (serialRegAssign),
8043         * src/pic/ralloc.c (serialRegAssign),
8044         * src/pic16/ralloc.c (serialRegAssign),
8045         * src/xa51/ralloc.c (serialRegAssign),
8046         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
8047
8048 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
8049
8050         * src/SDCCast.c (decorateType): fixed bug 1124787
8051
8052 2005-02-20 Hubert Sack <sack AT digiplan.de>
8053         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8054
8055         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
8056         patch #1121755
8057
8058 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8059
8060         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
8061         to keep the correct label reference count when adding/removing references
8062         to labels. A peephole file using this is appended to patch #1144962.
8063
8064 2005-02-14 Raphael Neider <rneider AT web.de>
8065
8066         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
8067         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
8068         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
8069           retrievals of result operand's value on assignment
8070
8071 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
8072
8073         * device/include/pic16/string.h: modified prototype for memccpy()
8074         to memccpy(void *, void *, char, size_t)
8075         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
8076         check whether to omit frame pointer or not,
8077         * (genInline): convert all occurences of "\n" to LF in inline
8078         assembler blocks, this helps formatting the inline text,
8079         * (pic16_loadFSR0): modified prototype,
8080         * (genNearPointerGet, genNearPointerSet): reorganization of code,
8081         removed some 8051 legacy code,
8082         * (genPackBits): enabled handling bitfields exceeding one byte in size,
8083         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
8084         before allocating temporary registers in functions,
8085
8086 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
8087
8088         * support/regression/tests/bitvars.c: corrected the "fix"
8089
8090 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
8091
8092         * support/regression/tests/bitvars.c,
8093         * support/regression/tests/bitwise.c,
8094         * support/regression/tests/rotate.c: "fixed" problems on Alpha
8095
8096 2005-02-10 Raphael Neider <rneider AT web.de>
8097
8098         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
8099           different size for Alpha
8100         * src/pic16/gen.c (genCmpEq) : improved compare with 0
8101
8102 2005-02-09 Raphael Neider <rneider AT web.de>
8103
8104         * src/SDCC.lex(doPragma) : save and restore warning options as well
8105           (also added new stack plus clone- and copyAndFreeSDCCERRG())
8106         * have #pragma less_pedantic set the errorlevel to WARNING
8107           (fixes #1117001)
8108         * (cloneOptimize) : fixed wrong malloc's size
8109         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
8110           facilitate correct handling of #pragma (save|restore)
8111
8112 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
8113
8114         * src/mcs51/gen.c: removed non-standard C nameless struct/union
8115
8116 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
8117
8118         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
8119
8120 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
8121
8122         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
8123
8124 2005-02-02 Raphael Neider <rneider AT web.de>
8125
8126         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
8127         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
8128         * (pic16_storeForReturn): fixed to allow returning function pointers
8129         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
8130         * device/include/pic16/{stddef.h,stdbool.h}: added
8131
8132 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
8133
8134         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
8135
8136 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
8137
8138         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
8139         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
8140          appeared to be required
8141
8142 2005-01-31 Borut Razem <borut.razem AT siol.net>
8143
8144         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
8145           include/mcs51 and include/z80 directories to the package
8146
8147 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8148
8149         * src/hc08/gen.c (genFunction): fixed bug #1112752
8150
8151 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8152
8153         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
8154
8155 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8156
8157         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
8158
8159 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
8160
8161         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
8162
8163 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
8164
8165         * device/include/c8051fxxx.h: removed these 6 files
8166         * device/include/mcs51/c8051fxxx.h: added these 11 new files
8167
8168 2005-01-26 Raphael Neider <rneider AT web.de>
8169
8170         * src/pic16/gen.c (genAssign): fixed assignment from longs
8171           in codespace (were cut to three bytes)
8172         * (genDummyRead): implemented (except for CODESPACE...),
8173           fixed bug #1108575
8174         * src/pic16/glue.c (emitStatistics): beautified
8175         * device/lib/pic16/libm/Makefile: added include path
8176
8177 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8178
8179         * src/z80/gen.c (aopPut): fixed bug #1103902
8180
8181 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8182
8183         * device/lib/expf.c: fixed bug #1095792
8184
8185 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
8186
8187         * device/lib/pic16/libm: added Math library sources
8188
8189 2005-01-24 Raphael Neider <rneider AT web.de>
8190
8191         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
8192           to enable upcast to pCodeOpReg2 (there is no type tag to
8193           differenciate the two and pic16_popGet2p cast into PCOR2)
8194         * src/pic16/main.c (_process_pragma): fixed another malloc bug
8195           (sizeof(sectNames) changed to sizeof(sectName))
8196           Both patches fix segfaults under MinGW.
8197
8198 2005-01-23 Raphael Neider <rneider AT web.de>
8199
8200         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
8201           Safe_[mc]?alloc()'ed variables
8202         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
8203           of (byte sized) temporaries (assign them to WREG for now)
8204         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
8205           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
8206           this might fix SIGSEGVs on MinGW...
8207         * src/SDCCopt.c (killDeadCode): restored original behaviour
8208           (volatile operands might get thrown away though)
8209
8210 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
8211
8212         * src/pic16/gen.c: fixed bug #1106975,
8213         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
8214         pointer update, INTCON is saved, global interrupts are disabled and
8215         restored after updateing TOS.
8216         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
8217         * added function attribute 'shadowregs' to take advantage of shadow
8218         registers,
8219         * added function attribute 'wparam' as an alternative to the wparam
8220         pragma,
8221         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
8222         user declares a non-ISR function as 'shadowregs',
8223         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
8224
8225 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
8226
8227         * .version: bumped version number to 2.4.8
8228         * device/lib/pic16/pics.all: list of PIC18F devices supported by
8229         pic16 port,
8230         * device/lib/pic16/libio/i2c/: I2C module support library,
8231         * device/include/pic16/i2c.h: I2C support library header,
8232         * device/lib/pic16/libc/stdio/: standard IO support sources,
8233         * (printf_small.c): printf_small() source, supports float print,
8234         * (printf_tiny.c): printf_tiny() source, does not support floats,
8235         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
8236         enable global optimizations for entire library source, other
8237         Makefiles in the source tree are also modified to reflect this,
8238         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
8239         function,
8240         * doc/sdccman.lyx: updated to reflect new changes,
8241         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
8242         sym->onStack if-case,
8243         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
8244         sbit, idata, _idata, xdata, _xdata,
8245         * added pragma library, to link an external library, (see doc),
8246         * removed command line options, --pomit-config-words, --pomit-ivt,
8247         --pleave-reset-vector,
8248         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
8249         when calling assembler to reflect memory model used, also define
8250         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
8251         reflect stack model used,
8252         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
8253         on stack return NULL,
8254
8255 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
8256
8257         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
8258           of the operands is volatile. Fixes #1020220
8259
8260 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
8261
8262         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
8263         * (OptimizeRegUsage): make sure that there is really no other flow where
8264           the first pCode is used
8265
8266 2005-01-22 Raphael Neider <rneider AT web.de>
8267
8268         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
8269           to fix #1106967 (pCode->seq are not set up correctly)
8270
8271 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8272
8273         * src/SDCCglue.c (glue): make sure code area is declared before the
8274         static initialization area.
8275
8276 2005-01-21 Raphael Neider <rneider AT web.de>
8277
8278         * device/lib/Makefile.in: fixed test for pic16 install dir
8279         * device/lib/pic16/*/Makefile*: modified compile flags to enable
8280           optimizations
8281         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
8282           added --optimize-goto compiler switch and pragma wparam documentation
8283         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
8284         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
8285           and PRODH closing bug #1071770 (peephole optimizer)
8286
8287 2005-01-19 Raphael Neider <rneider AT web.de>
8288
8289         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
8290           cmdLine buffers (used when calling sdcpp...) are large enough
8291           (MAX_PATH=256 truncates arguments leading to system halts when
8292           used in MinGW...)
8293         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
8294         * (genUminus): rewritten to for efficiency
8295         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
8296           used uninitialized in some cases)
8297         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
8298           copy the third byte from the int -- now assumes 0x80 (data memory)
8299         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
8300           operands (genAddLit expects the iCode's operands to swapped as
8301           well), fixed leftover bytes (crashed for short left operands)
8302         * (pic16_genMinusDec): performance improvements, removed false
8303           PIC14 emitSKPNCs
8304         * (pic16_genMinus): fixed to cope with differently sized operands
8305         * src/pic16/glue.c (pic16_glue): added new banksel optimization
8306           for --obanksel > 1
8307         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
8308         * src/pic16/graph.[ch]: implementation of directed graphs, used by
8309           new banksel optimization
8310         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
8311           analysis for temporary registers (segfaults...)
8312         * src/pic16/peeph.def: added rule
8313
8314 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
8315
8316         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
8317         which converts a float number to its ASCII representation
8318         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
8319         functions to convert the fractional and integer part of a float to ASCII,
8320         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
8321         realloc.c): added _MALLOC_SPEC to explicit place variables in data
8322         ram
8323         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
8324         _STATMEM macros,
8325         * device/include/pic16/adc.h: added GPL info,
8326         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
8327         a pCodeOp as tested operand,
8328         * (genNearPointerGet): optimized bit testing, does not use
8329         intermediate register for bit value, test directly instead with
8330         BTFSS, BTFSC, works only for single bits,
8331         * (genpic16Code): dump the name of the iCode in the asm,
8332         * src/pic16/ralloc.c (decodeOp): removed static declaration and
8333         renamed to pic16_decodeOp,
8334         * (serialRegAssign): do not allocate a temporary register for iCode
8335         sequences that test a single bit for 1/0
8336
8337 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
8338
8339         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
8340         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
8341         access stack and frame pointers. They are initially assigned to
8342         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
8343         accessing SFRs. Updated all occurences of modification of stack or
8344         frame pointer in gen.c and pcode.c,
8345         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
8346         assigning of a literal value to pointers,
8347         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
8348         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
8349         selected
8350
8351 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
8352
8353         * doc/sdccman.lyx: update documentation about stack pragma, added
8354         some info for stack memory models
8355
8356 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8357
8358         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
8359
8360 2005-01-08 Raphael Neider <rneider AT web.de>
8361
8362         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
8363           udata sections to fix bug #1097823
8364
8365 2005-01-05 Raphael Neider <rneider AT web.de>
8366
8367         * src/pic16/gen.c (genGenericShift): added handling of differently
8368           sized left operand and result
8369
8370 2005-01-04 Raphael Neider <rneider AT web.de>
8371
8372         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
8373         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
8374           to hold the condition bit)
8375         * added new version of genCmp (old code available via #define)
8376         * added new version of genShiftLeft/genShiftRight in a generic
8377           way, now supports shifting by negative values
8378         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
8379           shiftCount (expected by genGenericShift)
8380         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
8381         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
8382           dump
8383         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
8384           is an invalid literal too...)
8385
8386 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
8387
8388         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
8389         from Raphael Neider,
8390         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
8391         for 8-bit literals. This fixes some literal operands which are sign
8392         extended to 16-bits ints when instruction needs only 8-bits.
8393
8394 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
8395
8396         * device/lib/logf.c: added mcs51 assembly version
8397         * device/lib/expf.c: added mcs51 assembly version
8398         * device/lib/_logexpf.c: new shared asm code for expf and logf
8399         * device/include/math.h: add defines for assembly math library
8400         * device/lib/Makefile.in: build new _logexpf.c
8401         * device/lib/libfloat.lib: use new _logexpf.c
8402
8403 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
8404
8405         * src/pic/device.c
8406         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
8407           device types which have less than 0x7f registers.
8408
8409 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
8410
8411         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
8412
8413 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
8414
8415         * device/lib/printf_fast.c: only build on supported arch.
8416         * device/lib/printf_tiny.c: only build on supported arch.
8417         * device/lib/printf_fast_f.c: only build if asm float lib
8418         * device/lib/_fsget1arg.c: only build if asm float lib
8419         * device/lib/_fsget2args.c: only build if asm float lib
8420         * device/lib/_fsnormalize.c: only build if asm float lib
8421         * device/lib/_fsreturnval.c: only build if asm float lib
8422         * device/lib/_fsrshift.c: only build if asm float lib
8423         * device/lib/_fsswapargs.c: only build if asm float lib
8424         * device/include/stdio.h: don't provide print_fast,
8425           print_fast_f, print_tiny prototypes if --xstack used
8426
8427 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
8428
8429         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
8430         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
8431           to the SOURCES
8432
8433 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
8434
8435         * device/lib/printf_fast_f.c: same as printf_fast, but
8436           with floating point enabled
8437         * device/lib/printf_fast.c: minor tweaks
8438         * device/include/stdio.h: add printf_fast_f
8439
8440 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
8441
8442         * src/SDCCmain.c: make --float-reent default for mcs51
8443         * device/lib/_fsadd.c: added mcs51 assembly version
8444         * device/lib/_fssub.c: added mcs51 assembly version
8445         * device/lib/_fsmul.c: added mcs51 assembly version
8446         * device/lib/_fsdiv.c: added mcs51 assembly version
8447         * device/lib/_fseq.c: added mcs51 assembly version
8448         * device/lib/_fsneq.c: added mcs51 assembly version
8449         * device/lib/_fsgt.c: added mcs51 assembly version
8450         * device/lib/_fslt.c: added mcs51 assembly version
8451         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
8452         * device/lib/Makefile.in: add _fscmp to build
8453         * device/lib/libfloat.lib: add _fscmp to build
8454
8455 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
8456
8457         * device/lib/_fs2slong.c: added mcs51 assembly version
8458         * device/lib/_fs2sint.c: added mcs51 assembly version
8459         * device/lib/_fs2schar.c: added mcs51 assembly version
8460         * device/lib/_fs2ulong.c: added mcs51 assembly version
8461         * device/lib/_fs2uint.c: added mcs51 assembly version
8462         * device/lib/_fs2uchar.c: added mcs51 assembly version
8463         * device/lib/_slong2fs.c: added mcs51 assembly version
8464         * device/lib/_sint2fs.c: added mcs51 assembly version
8465         * device/lib/_schar2fs.c: added mcs51 assembly version
8466         * device/lib/_ulong2fs.c: added mcs51 assembly version
8467         * device/lib/_uint2fs.c: added mcs51 assembly version
8468         * device/lib/_uchar2fs.c: added mcs51 assembly version
8469         * device/include/float.h: added #define to select asm vs c
8470
8471 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
8472
8473         * device/lib/printf_fast.c: improvements to float output
8474         * device/include/float.h: add defines for assembly float library
8475         * device/lib/_fsget1arg.c: receive 1 float arg
8476         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
8477         * device/lib/_fsnormalize.c: normalize a float
8478         * device/lib/_fsreturnval.c: return float, various helper routines
8479         * device/lib/_fsrshift.c: right shift a float's mantissa
8480         * device/lib/_fsswapargs.c: swap 2 floats
8481         * device/lib/Makefile.in: build these 6 new files for mcs51
8482         * device/lib/libfloat.lib: add these 6 files to the library
8483
8484 2004-12-26 Borut Razem <borut.razem AT siol.net>
8485
8486         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
8487           built by gcc 3.4.2
8488
8489 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
8490
8491         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
8492           and fully reentrant and register bank neutral.
8493         * device/lib/printf_fast.c: added float (not enabled by default),
8494           added compact/slower integer (also not enabled by default),
8495           improved size/speed of fast integer code, other minor changes
8496         * device/include/stdio.h, device/lib/Makefile.in,
8497           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
8498
8499 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
8500
8501         * src/pic16/pcode.c: declaring variables other than at the start of a
8502           block is not supported in C by VC6.
8503
8504 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
8505
8506         * applied a previous patch from Raphael Neider that wasn't included
8507         in the previous commits, which fixes infinite loops within jumptable
8508         improvements,
8509         * made some fixes that previous patches introduced
8510
8511 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
8512
8513         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
8514         that fixes an issue with AOP_PCODE asmop's offset,
8515         * (pic16_popCopyReg): update instance field too,
8516         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
8517         function of pic port,
8518         * (genCmp, genAnd, genAssign),
8519         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
8520
8521 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
8522
8523         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
8524         variables initial values to idata section,
8525         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
8526         variables in some functions. This utilizes parmBytes field of iCode
8527         structure to hold the offset of the variable in stack. (might be
8528         able to use the stack field too?)
8529         * applied patch from Raphael Neider # ### , # ###
8530         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
8531         variable initial values in idata section,
8532         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
8533         for static variables with initial value
8534         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
8535         applied fix in while loop from Raphael Neider.
8536
8537 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
8538
8539         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
8540         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
8541         * src/ds390/ralloc.c (serialRegAssign): spill bits
8542         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
8543         * support/Util/SDCCerr.c,
8544         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
8545         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
8546         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
8547
8548 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
8549
8550         * device/include/sdcc-lib.h: inserted LGPL, added includes
8551           asm/ds390/features.h and asm/mcs51/features.h
8552         * device/include/asm/default/features.h,
8553         * device/include/asm/gbz80/features.h,
8554         * device/include/asm/z80/features.h: added empty _AUTOMEM
8555           and _STATMEM
8556         * device/include/asm/ds390/features.h,
8557         * device/include/asm/mcs51/features.h: added files with defines for
8558           _AUTOMEM and _STATMEM indicating automatic and static storage class
8559         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
8560         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
8561         * src/SDCCicode.c (geniCodeCast),
8562         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
8563         * src/SDCCloop.c (loopInduction): removed unused variable lr
8564         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
8565           to convertToFcall to include char modulo (RFE 1065037), added check
8566           if left operand is unsigned and use abs of literal value
8567         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
8568           as it doesn't work after conversion from peephole.def to peephole.rul
8569         * src/mcs51/gen.c (toBoolean): added check for size,
8570           (genModOneByte): optimized code for signed char modulo a literal
8571           power of 2 (thanks to Hubert Sack),
8572           (genRRC): removed unnecessary "clr c",
8573           (genRLC): replaced "add a,acc" with cheaper "rlc a"
8574         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
8575           jump optimization,
8576           swapped rules 256.c and 256.d,
8577           extended 256.d by using new multiple checks (thanks Erik),
8578           added rules 256.e and 256.f,
8579           updated rule 261.a and 261.b to new generated code
8580         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
8581
8582 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8583
8584         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
8585           induction related bugs, including first part of bug #1074377
8586
8587 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
8588
8589         * applied patch from bug-report #1076292,
8590         * applied patches for genAnd and Goto-optimizations for Raphael
8591         Neider,
8592         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
8593         dump a less iCode information,
8594         * src/pic16/device.h (pic16_options_t): added field debgen,
8595         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
8596         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
8597         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
8598         puclic,
8599         * (various functions): added macros FENTRY and FENTRY2 to functions,
8600         to emit function prologue,
8601         * (various functions): fixed indentation,
8602         * (genNearPointerGet): fixed loading of FSR0,
8603         * (genPackBits): applied patch from Raphael Neider to fix updating
8604         of FSR0 and touching only the modified bits,
8605         * src/pic16/genarith.c (various functions): added macros FENTRY to
8606         emit function prologue in comments,
8607         * src/pic16/pcode.h: added functions debugf2, debugf3,
8608         * src/pic16/ralloc.c: partial fix for packForPush caused
8609         segmentation fault,
8610
8611 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8612
8613         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
8614           <stsp AT users.sourceforge.net> with reversed byte order
8615         * support/regression/tests/rotate.c: added (ds390 skips some tests)
8616
8617 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8618
8619         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
8620           bug #1074377
8621         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
8622         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
8623
8624 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
8625
8626         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
8627
8628 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8629
8630         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
8631           conditions,
8632           (setFromConditionArgs): friendly operand parser for peephole rules,
8633           (operandBaseName, operandsNotRelated): new peephole condition
8634           "operandsNotRelated" -- similar to "operandsNotSame", but takes
8635           architecture specific register naming into account, handles n-way
8636           comparisons, and supports quoted literals
8637         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
8638
8639 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8640
8641         * src/mcs51/peeph.def: fixed bug #1076940
8642
8643 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
8644
8645         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
8646
8647 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8648
8649         Adding support for replacing ljmps with sjmps in jumptables
8650         generated for switch statements. For now you need to set the
8651         environment variable SDCC_SJMP_JUMPTABLE to enable this.
8652         Now 4 algorithms for mcs51 jumptable generation are used:
8653         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
8654         addresses loaded pc-relative for up to 112 cases and stack-pushing
8655         target addresses loaded with offset from dptr for up to 256 cases.
8656
8657         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
8658         * src/mcs51/main.c: adapted constants for switch table generation
8659         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
8660
8661 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
8662
8663         * device/lib/printf_large.c (_print_format): fixed bug 1073386
8664         * support/regression/tests/bug1057979.c: added test for bug 1073386
8665
8666 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
8667
8668         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
8669         compilers
8670
8671 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
8672
8673         * src/pic16/device.h,
8674         * src/pic16/genarith.c,
8675         * src/pic16/glue.c,
8676         * src/pic16/main.c,
8677         * src/pic16/pcode.c: applied patches #1068154 and #1070213
8678
8679 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
8680
8681         Large cummulative patch for pic16 port.
8682         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
8683         to call when a stack overflow occurs,
8684         * (malloc.h): added CVS Id tag,
8685         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
8686         variable,
8687         * added libc directory. The current version of LibC contains string
8688         functions, ctype functions and macros and some functions of the
8689         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
8690         be extensively tested in the future. Standard disclaimer here.
8691         Library is not automatically build yet. But one can build it by
8692         invoking 'make' inside the libc directory.
8693         * added ADC library under libio. Preliminary version yet.
8694
8695         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
8696         * src/pic16/gen.c (aopForRemat): asmop size is filled by
8697         aopForRemat() now and not by pic16_aopOp(),
8698         * (pic16_popGetTempReg): removed warning messgae when allocating
8699         temporary registers, its a buggy feature and will be removed,
8700         * (pic16_popGet): set register instance field in AOP_CRY,
8701         * (pic16_outBitC): fixed for results in size greater than 1,
8702         * (genUminusFloat): fixed for pic16, ported code from mcs51,
8703         * (pic16_storeForReturn): optimized return of 0,
8704         * (genCmp): experimental code for new genCmp which uses PIC18's
8705         special compare&skip instructions. Initial tests fail some times
8706         with variables grater than 1 byte in size, so new code is disabled,
8707         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
8708         a single bit,
8709         * (genCast): began a fix to optimize the casting of a bit to another
8710         bit, now assigning a bitfield to another bitfield will fail, sorry,
8711         * src/pic16/main.c: disabled the use of lr-support feature,
8712         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
8713         * added some function prototypes, added function _debugf prototype,
8714         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
8715         bits with offset (case PO_GPR_BIT),
8716         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
8717         command line,
8718         * (isBankInstruction): modified to return 0 for no banking instruction,
8719         and 1 for banking instruction,
8720         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
8721         caused stop processing pCodes after a inline assembly block,
8722         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
8723         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
8724         registers when it shouldn't,
8725         * src/pic16/ralloc.c (allocReg): add preliminary support for
8726         supporting a limited set of temporary registers,
8727
8728 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8729
8730         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
8731           genDataPointerSet): ensure assignments always copy in MSB to LSB
8732           order,
8733           (loadRegFromAop): recognize CLRH optimization,
8734           (genFunction): optimize RECEIVE iCodes in reentrant functions
8735
8736 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8737
8738         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
8739           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
8740           selected.
8741         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
8742         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
8743           contiguous with data
8744
8745 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8746
8747         * device/lib/_gptrget.c (_gptrget),
8748         * device/lib/_gptrgetc.c (_gptrgetc),
8749         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
8750           instead of sjmp to ret
8751         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
8752           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
8753
8754 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
8755
8756         * .version: bumped version to 2.4.7
8757         * device/lib/_gptrget.c (_gptrget): is now _naked
8758         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
8759         * device/lib/_gptrput.c (_gptrput): is now _naked
8760         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
8761           (createFunction): fixed xstack
8762         * src/SDCCglue.c (emitMaps): set allocation required for bit area
8763         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
8764           or bit either,
8765           (geniCodeCritical): store original interrupt state in an iTemp bit
8766           var unless stack-auto
8767         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
8768         * src/SDCCmain.c (setIncludePath): added include/target to search path
8769         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
8770         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
8771           prototype,
8772           (processFuncArgs): put bit vars in bit area
8773         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
8774           unsaveRBank): fixed xstack,
8775           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
8776           (genFunction, genEndFunction): fixed xstack,
8777           (genAssign): optimization don't walk backwards through mem
8778         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
8779         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
8780         * support/regression/Makefile: also make library (for stack-auto) when
8781           making "all" and added "test-mcs51-xstack-auto"
8782         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
8783         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
8784         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
8785         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
8786         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
8787           make-library by MAKE_LIBRARY
8788         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
8789           regression tests for xstack
8790         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
8791         * support/regression/tests/critical.c: test for critical on mcs51
8792
8793 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8794
8795         * support/regression/ports/ucz80/spec.mk: use include and lib files from
8796           built version of sdcc instead of installed version
8797
8798 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
8799
8800         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
8801         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
8802           vprintf.c now
8803         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
8804         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
8805           WARNING: remove device/lib/build/z80/printf.o by hand when
8806           updating from previous build!
8807         * device/lib/z80/printf.c: updated comment
8808         * support/regression/tests/bug1057979.c: test all ports now
8809         * support/regression/tests/bug1065458.c: file added
8810
8811 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8812
8813         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
8814           *_start and *_end symbols for static functions
8815
8816 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
8817
8818         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
8819           and search crt0.o in all library paths,
8820           (setIncludePath): proper handling of --nostdinc,
8821           (setLibPath): proper handling of --nostdlib
8822         * support/regression/Makefile,
8823         * support/regression/ports/ds390/spec.mk,
8824         * support/regression/ports/gbz80/spec.mk,
8825         * support/regression/ports/hc08/spec.mk,
8826         * support/regression/ports/mcs51/spec.mk,
8827         * support/regression/ports/mcs51-large/spec.mk,
8828         * support/regression/ports/mcs51-stack-auto/spec.mk,
8829         * support/regression/ports/z80/spec.mk: use include and lib files from
8830           built version of sdcc instead of installed version
8831         * doc/sdccman.lyx: fixed typo in --nostdinc
8832
8833 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
8834
8835         * src/pic/pcode.c,
8836         * src/pic/device.c,
8837         * src/pic/ralloc.c,
8838         * src/pic/gen.c : added support to generate code for struct bit fields.
8839
8840 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
8841
8842         * as/xa51/xa_version.h,
8843         * device/include/errno.h,
8844         * device/include/regc515c.h,
8845         * device/lib/_itoa.c,
8846         * device/lib/_ltoa.c,
8847         * device/lib/ser_ir_cts_rts.c,
8848         * sim/ucsim/xa.src/glob.cc,
8849         * sim/ucsim/xa.src/inst_gen.cc,
8850         * sim/ucsim/xa.src/xa_bit.cc,
8851         * sim/ucsim/xa.src/xa_sfr.cc,
8852         * sim/ucsim/z80.src/inst_dd.cc,
8853         * sim/ucsim/z80.src/inst_fdcb.cc,
8854         * support/scripts/keil2sdcc.pl,
8855         * src/pic16/pic16.dsp,
8856         * src/pic16/pic16a.dsp: corrected cvs line endings
8857         * device/lib/printf_large.c: fixed bug 1057979
8858         * src/pic16/gen.c: fixed non-C standard code
8859         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
8860         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
8861         * support/regression/ports/mcs51/support.c: reload T1 asap
8862         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
8863           pdata use and clear idata startup behaviour
8864         * support/regression/tests/bug1057979.c: added
8865
8866 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
8867
8868         * device/examples/ds390/ow390/ad26.h,
8869         * device/examples/ds390/ow390/cnt1d.h,
8870         * device/examples/ds390/ow390/crcutil.c,
8871         * device/examples/ds390/ow390/ownet.h,
8872         * device/examples/ds390/ow390/owsesu.c,
8873         * device/examples/ds390/ow390/swt12.h,
8874         * device/examples/ds390/ow390/swtoper.c,
8875         * device/examples/ds390/ow390/temp10.h,
8876         * device/examples/ds390/ow390/thermodl.c,
8877         * device/examples/ds390/tinitalk/tinitalk.dsp,
8878         * device/examples/ds390/tinitalk/tinitalk.dsw,
8879         * device/examples/mcs51/clock/hw.h,
8880         * device/examples/mcs51/simple2/go.bat,
8881         * device/examples/serialcomm/windows/serial.h,
8882         * device/examples/xa51/dummy.c,
8883         * device/examples/xa51/hello.c,
8884         * device/include/80c51xa.h,
8885         * device/include/at89x051.h: corrected cvs line endings
8886
8887 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
8888
8889         * src/pic16/main.c (options): added command line --gstack, to trace
8890         stack over/under flows,
8891         * added pragma 'wparam' to allow passing first byte of function
8892         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
8893         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
8894         call to __gstack_test function and sets up the symbol as extern,
8895         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
8896         * popaop): added call to pic16_testStackOverflow,
8897         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
8898         wparamList list,
8899         * (genCall, genPcall): now all parameters are passed via stack
8900         except in functions that are pass to wparam pragma in which WREG is
8901         used too,
8902         * (genPcall): REENTRANT flag is checked to see if variable prototype
8903         contains reentrant keyword, don't call a non-reentrant function, via
8904         a reentrant function pointer or vice versa, functions are never
8905         passed via WREG,
8906         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
8907         D.Winkler,
8908         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
8909         SIGSEGV when accessing a NULL register stucture,
8910         * (pic16_printGPointerType): modified to handle UPPER modifier for
8911         function initializers, changed prototype of function to simpler one,
8912         * (pic16_printIvalFuncPtr): check to see if function is already
8913         added in externs list,
8914         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
8915         optimized a move from W to SFR with a move to the same register
8916         later after a CALL,
8917         * device/lib/pic16/debug: NEW directory, contains debug features
8918         which are enabled when linking with libdebug.lib, currently command
8919         line option --gstack enables stack pointer tracing for over/under
8920         flow, corresponding sources are in debug/gstack
8921
8922 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
8923
8924         * doc/sdccman.lyx: updated SDCC version,
8925         * (PIC16 port): update list of command line options,
8926         * src/pic16/device.h (structure pic16_options_t): added field gstack
8927         to enable stack overflow tracing on push/pops,
8928         * src/pic16/device.c (statistics structure): added statistics
8929         structure,
8930         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
8931         pic16_dump_int_registers): increase statistics counters for each
8932         * variable which is encountered
8933         * (pic16_dump_usection): emit each .udata variable to its own udata
8934         section,
8935         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
8936         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
8937         parameters via stack, otherwise use old scheme,
8938         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
8939         assembler output file,
8940         * src/pic16/main.c: added command line options --gstack to enable
8941         push/pop tracing for stack overflow,
8942         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
8943         instructions): added size of each instruction,
8944         * (pic16_countInstruction): estimate size of instructions in
8945         the_pFile list, inline assembly blocks are not counted,
8946         * (pic16_FixRegisterBanking): trace previous register usage, when
8947         banksel optimizations is greater than 0, don't emit a redudant
8948         banksel directive,
8949
8950 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
8951
8952         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
8953         * src/pic16/ralloc.c : applied same fix for pic16.
8954         * src/pic/gen.c : tidied it up a little.
8955
8956 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8957
8958         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
8959         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
8960
8961 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8962
8963         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
8964
8965 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8966
8967         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
8968         non-reentrant function __modsint in the interrupt function (thus
8969         corrupting math operations during serial I/O)
8970         * device/lib/ser_ir.c: as above, changed buffersize
8971         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
8972         256.c,d for zeroing
8973         * doc/Makefile: added option -t for rsync
8974
8975 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8976
8977         * src/SDCCast.h (struct ast),
8978         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
8979
8980 2004-10-20 Borut Razem <borut.razem AT siol.net>
8981
8982         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
8983         package
8984
8985 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
8986
8987         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
8988         makefile targets,
8989         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
8990         support functions to replace long sequences of MOVFF's from access
8991         bank registers to stack and vice versa,
8992         * src/pic16/device.h: added new field opt_flags, where optimization
8993         flags can be set to enable certain features,
8994         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
8995         * pBlock, (genFunction, genEndFunction): surroung loop for
8996         saving/loading used registers in stack with PC_INFO pCodes,
8997         INF_LREGS. Code in between can then be optimized by pCode optimizer
8998         to support function calls,
8999         * (genDataPointerSet): fixed bug which loaded float fields in
9000         structures with corrupt data,
9001         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
9002         in a standard way debug info on stderr. Feature used for developing
9003         and debugging only,
9004         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
9005         obsolete chunks of code,
9006         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
9007         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
9008         * pic16/src/pcode.c (pic16_newpCodeInfo,
9009         * (pic16_newpCodeOpLocalRegs),
9010         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
9011         feature,
9012         * (pic16_pCodeConstString): printing of the initial value of a
9013         symbol as a comment is inhibited since parsing was already done by
9014         copyStr and output is corrupt,
9015         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
9016
9017 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9018
9019         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
9020
9021 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
9022
9023         * as/mcs51/lkarea.c: removed old K&R style,
9024           (lnksect): changed check on boundary error,
9025           (lnksect2): changed check on boundary error,
9026           (lnksect2): extend XSTK to end of page if size = 1
9027         * as/mcs51/lkmain.c: removed old K&R style,
9028           (Areas51): create l_IRAM symbol
9029         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
9030         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
9031           model-mcs51-stack-auto, added model-mcs51-xstack-auto
9032         * device/lib/_mullong.c: added version to be compiled with xstack
9033         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
9034         * device/lib/mcs51/crtxclear.asm: clear pdata as well
9035         * device/lib/mcs51/crtxstack.asm: fixed comment
9036         * src/SDCCglue.c: maxInterrupts defaults to 0,
9037           (emitMaps): added pdata,
9038           (createInterruptVect): (re)moved default,
9039           (glue): added pdata,
9040           (glue): moved __start__xstack to XSTK with default size 1
9041         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
9042           and options.float_rent when options.stackAuto is set,
9043           (linkEdit): only write XDATA_NAME if provided on command line
9044         * src/SDCCmem.h,
9045         * src/SDCCmem.c: added pdata
9046         * src/port.h: added pdata_name to PORT
9047         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
9048           (saveRegisters, unsaveRegisters): removed usage of B,
9049           (genMinus): fixed accumulator clash,
9050           (genJumpTab): added comment, this needs another look
9051         * src/mcs51/gen.c: added check for "B in use" paranoia,
9052           added pushB() and popB()
9053         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
9054           chance
9055         * src/avr/main.c,
9056         * src/ds390/main.c,
9057         * src/hc08/main.c,
9058         * src/mcs51/main.c,
9059         * src/pic/main.c,
9060         * src/pic16/main.c,
9061         * src/xa51/main.c,
9062         * src/z80/main.c: (reset_regparms) made void parameter explicit and
9063           added PSEG (PAG,XDATA) or NULL to port specifier
9064         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
9065         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
9066           (_mcs51_genInitStartup): removed __start__xstack equ,
9067           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
9068         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
9069         * src/z80/gen.c (_rleAppend): fixed warnings
9070         * support/regression/tests/zeropad.c: added pdata test
9071         * .version: bumped to 2.4.6
9072
9073 2004-10-17 Borut Razem <borut.razem AT siol.net>
9074
9075         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
9076         as a part of nightly build
9077
9078 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
9079
9080         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
9081         WREG holds the first byte function parameters,
9082         * (aopForSym): take special case for symbols which are in FARSPACE
9083         but in CODESPACE too,
9084         * (assignResultValue): modified to take into account _G.useWreg,
9085         * (genCall): don't use wreg for parameter passing when function is
9086         declared as reentrant, too, added optimization INCF to stack
9087         pointer when stack parameter count is 1,
9088         * (genFunction, genEndFunction): refurnished and fixed to not using
9089         wreg for passing parameters when function has varargs or is
9090         reentrant, fixed bug with symbol name compare for generating
9091         functions in absolute address,
9092         * (pic16_storeForReturn): refurnished,
9093         * (genCmp): began writing a new version of the function, not ready
9094         yet, therefore it is disabled,
9095         * (genAssign): do not read code memory when assigning a function to
9096         a pointer function,
9097         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
9098         array of characters, not pointer,
9099         * (pic16initialComments): in debug mode emit an .ident directive for
9100         the assembler,
9101         * (_process_pragma): emit a new warning type (internal to pic16)
9102         when setting stack to default length, emit a similar warning when
9103         placing a function at absolute address and address is not word aligned
9104         * (_pic16_parseOptions): added 'return TRUE' statement,
9105         * (_pic16_linkEdit): if compiling a source, then add the source's
9106         file object, first in the list of objects to link,
9107
9108 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
9109
9110         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
9111         * src/pic/main.c : removed VC warning.
9112         * src/pic/gen.c : changed comment.
9113
9114 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
9115
9116         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
9117         reference to a deprecated symbol _GPTRREG was causing failure to
9118         link. Thanks G. M. Gallant for the info.
9119
9120 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
9121
9122         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
9123         comments for Bugs item #954788.
9124
9125 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
9126
9127         * src/pic16/device.c (pic16_dump_gsection,
9128         * pic16_groupRegistersInSection): handle symbols declared to be in
9129         access bank differently,
9130         * src/pic16/gen.c (struct _G): added field resDirect,
9131         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
9132         send values read from stack directly to result and don't allocate
9133         temporary values,
9134         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
9135         same registers,
9136         * (pic16_sameRegsOfs): NEW,
9137         * (freeAsmop): if _G.resDirect is set then do not mark registers as
9138         free because they were not allocated from temporary pool,
9139         * pic16_popRegFromString): workaround to fix a problem with
9140         allocating variables twice or never,
9141         * (genGenPointerGet): using PRODL instead of FSR0H,
9142         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
9143         instead of FSR0H,
9144         * (genAssign): take advantage of the _G.resDirect flag,
9145         * (genCast): around line 11844, use mov2f instead of directly
9146         MOVFF'ing between operands to account for literal values,
9147         * src/pic16/genutils.c: some new debug functions for gpsim have been
9148         added,
9149         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
9150         float with integer part only,
9151         * src/pic16/main.c (_process_pragma): handle pragma udata access to
9152         place variables in access bank
9153         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
9154         updated sources to reflect recent changes in gen.c
9155
9156 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
9157
9158         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
9159         sources that searched for headers in installation path, now the
9160         device/include/pic16 is used,
9161         * src/pic16/glue.c (pic16glue),
9162         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
9163         .line directives if not in debug mode, this suppresses assembler's
9164         warnings for ignored directives
9165
9166 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
9167
9168         * src/port.h: made reset_regparms prototype void parameter explicit.
9169         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
9170         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
9171         * doc/sdccman.lyx: documented warning disabling and how to use
9172           printf_large to make it print floats.
9173         * device/include/stdbool.h: NEW
9174         * device/lib/_atof.c,
9175         * device/lib/_divuint.c,
9176         * device/lib/_divulong.c,
9177         * device/lib/expf.c,
9178         * device/lib/printf_large.c,
9179         * device/lib/sincosf.c,
9180         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
9181         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
9182           a completely reentrant lib.
9183
9184 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
9185
9186         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
9187         * device/include/pic16/stdio.h: fixed bug with colon
9188
9189 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
9190
9191         * device/include/pic16/stdio.h,
9192         * device/include/pic16/stdlib.h,
9193         * device/include/pic16/math.h: NEW
9194         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
9195         declared as _naked to reduce overhead
9196         * device/lib/Makefile.in (target port-specific-objects-pic16):
9197         changed * to *.* so to ignore the CVS directory,
9198         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
9199         stacked variables back in stack,
9200         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
9201         corruption
9202
9203 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
9204
9205         * .version: bumped version number to 2.4.5
9206         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
9207         * support/Util/SDCCerr.c (messages structure): added entry for
9208         W_POSSBUG2
9209
9210         Large cumulative patch for pic16 port and libraries.
9211         * device/include/pic16/sdcc-lib.h,
9212         * device/include/pic16/stdarg.h,
9213         * device/include/asm/pic16/features.h,
9214         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
9215         * device/include/pic16/float.h: changes reentrant keyword with
9216         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
9217         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
9218         updated target build-libraries to include objects from gptr,
9219         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
9220         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
9221         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
9222         all function headings,
9223         * src/SDCCmain.c: added global parameter userIncDirsSet,
9224         * (parseCmdLine): when option -I is encountered add directory to
9225         userIncDirsSet too,
9226         * src/version.awk: added space between control and long,
9227         * src/pic16/NOTES: added some notes for the port,
9228         * src/pic16/gen.c: added prototype for mov2fp function,
9229         * (fReturnpic16[]): properly named return value registers,
9230         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
9231         * (aopForSym): added code to handle symbols with onStack flag set,
9232         symbols onStack are allocated PTRSIZE bytes,
9233         * (aopFreeAsmop): handles special case where asmops are stack objects,
9234         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
9235         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
9236         added argument lock to trace flaws in allocating temporary registers
9237         when developing port,
9238         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
9239         * (pic16_popRegFromString): reenabled allocating a direct register
9240         from string,
9241         * (assignResultValue): various beautifications,
9242         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
9243         referenced function argument,
9244         * (genIpush): reenabled to allow stacked arguments, handles only
9245         ic->parmPush iCodes,
9246         * (genCall, genPcall): major changes to allow for variable argument
9247         functions, fixed a bug with falsely restoring stack pointer after
9248         returning from call,
9249         * (genFunction): pending code for critical function,
9250         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
9251         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
9252         * (genNearPointerGet): fixed bug with indirect reading, was always
9253         reading from INDF0
9254         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
9255         pointers,
9256         * (genAddrOf): rewrote code to take address of a stacked function parameter
9257         * (genCast): fixed casting to generic pointer type,
9258         * src/pic16/gen.h: added AOP_STA,
9259         * (struct asmop): added field stk,
9260         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
9261         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
9262         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
9263         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
9264         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
9265         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
9266         generic pointers,
9267         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
9268         and library paths,
9269         * (pic16_port structure): generic pointer size is set to 3,
9270         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
9271         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
9272         compiler warning,
9273         * src/pic16/ralloc.c (allocReg): prevent allocating register when
9274         operand is an iTemp,
9275
9276 2004-09-24 Martin Helmling <mh AT octo-soft.de>
9277
9278         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
9279         * debugger/mcs51/simi.c: addapt new syntax of s51
9280
9281 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
9282
9283         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
9284         * src/pic16/pcode.c: commented out some calls to free() in order to
9285         fix bug #989576,
9286
9287 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9288
9289         * src/SDCCicode.h,
9290         * src/SDCCicode.c (isiCodeInFunctionCall),
9291         * src/avr/ralloc.c (selectSpil),
9292         * src/pic/ralloc.c (selectSpil),
9293         * src/pic16/ralloc.c (selectSpil),
9294         * src/ds390/ralloc.c (selectSpil),
9295         * src/hc08/ralloc.c (selectSpil),
9296         * src/xa51/ralloc.c (selectSpil),
9297         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
9298         stack in the middle of a function call sequence (fixes bug #1020268)
9299         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
9300         costs associated with the minimum switch case.
9301
9302 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9303
9304         * src/SDCC.lex: fixed bug #1030549
9305
9306 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9307
9308         * src/SDCCcse.h (struct cseDef),
9309         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
9310         over a function call if the CSE is derived from a symbol whose
9311         address has been taken (fixes bug #1029883)
9312         * support/regression/tests/bug-1029883: a new regression test for
9313         this bug
9314
9315 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9316
9317         * src/hc08/gen.c (emitinline): fixed bug #1029778
9318         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
9319         to a cast object is no longer a syntax error ("fixes" bug #1030006,
9320         and starts toward RFE #905167)
9321
9322 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
9323
9324         * src/pic16/gen.c (mov2f): New function to move an operand to
9325         another without considering if it is a literal or a register,
9326         * (pic16_sameRegs): don't check if they are both AOP_REG,
9327         * (AccRsh): removed andmask=0 lines,
9328         * (genLeftShift): duplicated to be improved in future versions,
9329         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
9330         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
9331         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
9332         * (pic16initMnemonics): added initialization for POC_INFSNZW,
9333         * (insertBankSwitch): fixed inserting banksel directives algorithm
9334         for instructions that follow a skip instruction, this fixes a report
9335         for broken subtraction code generation,
9336         * src/pic16/ralloc.c (deassignLRs): do not free register if current
9337         iCode is a left op, just in case result and right share the same
9338         registers
9339
9340 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9341
9342         * src/hc08/main.c,
9343         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
9344         preservation of HX
9345         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
9346         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
9347         on 2004-09-12; it was buggy
9348
9349 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
9350
9351         * src/SDCCsymt.h: removed RESULT_CHECK
9352         * src/SDCCast.c,
9353         * src/SDCCglue.c,
9354         * src/SDCCval.c,
9355         * src/pic/glue.c,
9356         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
9357
9358 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
9359
9360         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
9361         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
9362         configuration values no more rejected by compiler, they are assigned
9363         to configuration registers with a warning message instead,
9364         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
9365         the for-loop so last conf register is emitted too,
9366         * (_pic16_initPaths): link library libsdcc.lib by default,
9367         * (_hasNativeMulFor): modified test for multiplication according to
9368         Raphael Neider's remarks. Integer multiplication is also done with
9369         support functions,
9370         * device/include/pic16/pic18fregs.h: corrected type error in while
9371         testing and including 18f6720 header file
9372
9373 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
9374
9375         * src/pic16/device.h (pic16_options): removed field use_crt,
9376         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
9377         until an optimization to handle single bits is added,
9378         * (pic16_loadFSR0): moved before genUnpackBits,
9379         * (genAnd): some white lines removed,
9380         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
9381         leave_reset flags in pic16_options when using crt modules,
9382
9383 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
9384
9385         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
9386           for bugs 898889 & 979599. Also used some safer print instructions.
9387
9388 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
9389
9390         * src/pic16/device.h (pic16_options_t): added field use_crt,
9391         crt_name, no_crt,
9392         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
9393         catch a probable future bug,
9394         * src/pic16/gen.c: aopIdx function commented out,
9395         * (genAssign): commented out old code which used aopIdx,
9396         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
9397         code, added if conditionals to take into account the --use-crt
9398         command line options,
9399         * src/pic16/main.c (pic16_optionsTable): added new command line
9400         options, --use-crt= and --no-crt,
9401         * (_pic16_linkEdit): now the proper crt object is added in the
9402         linker command line except than when --no-crt is specified,
9403         * src/pic16/pcode.c,
9404         * src/pic16/pcode.h: added some structures and functions for a new
9405         optimization scheme to compansate for instruction overhead between
9406         same iCodes, this scheme is currently under development and is not
9407         working in any way,
9408         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
9409         to && operator,
9410         * device/lib/pic16/startup/crt0i.c,
9411         * device/lib/pic16/startup/crt0iz.c: added global char variable
9412         __uflags to force the generation of an idata section
9413
9414 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
9415
9416         * doc/Makefile,
9417         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
9418         * doc/sdccman.lyx: updated sdcc version to 2.4.4
9419
9420 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9421
9422         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
9423         Frieder) and clarified the default code optimization mode
9424
9425 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9426
9427         * src/SDCC.lex (doPragma, process_pragma),
9428         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
9429         "opt_code_size", and "opt_code_balanced"
9430         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
9431         regrouped options by category, added support for category headers
9432         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
9433         and "--opt-code-size"
9434         * doc/sdccman.lyx: documented these new options and pragmas
9435         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
9436         preference into account
9437
9438 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
9439
9440         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
9441           geniCodePreDec): Fixed bug 904237 by generating a warning
9442         * src/SDCCerr.h,
9443         * src/SDCCerr.c: added warning W_SIZEOF_VOID
9444
9445 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
9446
9447         * src/pic/device.c : When no max ram set validate full memory range.
9448         * src/pic/pcode.c,
9449         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
9450
9451 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
9452
9453         * device/lib/_gptrget.c,
9454         * device/lib/_gptrput.c: updated comment
9455         * device/lib/calloc.c,
9456         * device/lib/free.c,
9457         * device/lib/malloc.c,
9458         * device/lib/realloc.c: added LGPL, made them reentrant-safe
9459         * src/SDCCcse.c (cseBBlock),
9460         * src/SDCCicode.c (printOperand, geniCodeArray),
9461         * src/SDCCicode.h (struct operand): fixed bug 868103
9462         * support/regression/tests/bug-868103.c: added
9463         * src/SDCCast.c (searchLitOp),
9464         * src/SDCCcse.h (struct cseDef),
9465         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
9466         * src/SDCCicode.h (struct operand),
9467         * src/SDCCsymt.h (struct sym_link),
9468         * src/avr/gen.c (hasInc),
9469         * src/ds390/gen.c (hasInc),
9470         * src/hc08/gen.c (genPlusIncr, hasInc),
9471         * src/mcs51/gen.c (hasInc),
9472         * src/pic16/glue.c (pic16_printIvalChar),
9473         * src/pic16/ralloc.c (regWithIdx),
9474         * src/xa51/gen.c (hasInc) : removed warnings
9475         * src/SDCCast.c (createBlock): added comment ???
9476         * src/hc08/ralloc.c: updated comments
9477
9478 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9479
9480         * doc/sdccman.lyx: updated section on switch statements, added
9481         section about semaphore locking
9482         * doc/Makefile: added option -info for latex2html
9483         * device/lib/_gptrget.c,
9484         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
9485
9486 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
9487
9488         * src/pic/device.h,
9489         * src/pic/device.c,
9490         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
9491          maxram is less than 0x100.
9492
9493 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
9494
9495         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
9496
9497 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9498
9499         * src/port.h,
9500         * src/mcs51/main.c,
9501         * src/ds390/main.c,
9502         * src/z80/main.c,
9503         * src/hc08/main.c,
9504         * src/pic/main.c,
9505         * src/pic16/main.c,
9506         * src/avr/main.c,
9507         * src/xa51/main.c
9508         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
9509         a jump table is the best form for a switch statement, including
9510         automatic insertion of missing cases to make the case range
9511         continuous. Developed in collaboration with Frieder Ferlemann.
9512
9513 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9514
9515         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
9516         accumulator result if it needs sign extension
9517
9518 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9519
9520         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
9521
9522 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9523
9524         * device/lib/gbz80/printf.c,
9525         * device/lib/z80/printf.c: removed define for NULL
9526
9527 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9528
9529         * as/xa51/xa_link.c,
9530         * device/examples/ds390/ow390/ad26.c,
9531         * device/examples/ds390/ow390/cnt1d.c,
9532         * device/examples/ds390/ow390/counter.c,
9533         * device/examples/ds390/ow390/ds2480.h,
9534         * device/examples/ds390/ow390/ds2480ut.c,
9535         * device/examples/ds390/ow390/findtype.c,
9536         * device/examples/ds390/ow390/gethumd.c,
9537         * device/examples/ds390/ow390/owllu.c,
9538         * device/examples/ds390/ow390/ownetu.c,
9539         * device/examples/ds390/ow390/swt12.c,
9540         * device/examples/ds390/ow390/swtloop.c,
9541         * device/examples/ds390/ow390/temp.c,
9542         * device/examples/ds390/ow390/temp10.c,
9543         * device/examples/ds390/ow390/thermo21.c,
9544         * device/examples/ds390/ow390/tinilnk.c,
9545         * device/examples/ds390/ow390/tstfind.c,
9546         * device/examples/serialcomm/windows/serial.cpp,
9547         * device/examples/serialcomm/windows/test_serialcomm.cpp,
9548         * device/include/reg51.h: fixed line endings for cvs
9549
9550 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9551
9552         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
9553         packRegsForAccUse, packRegisters): new accumulator register
9554         packing algorithm
9555         * support/regression/ports/hc08/support.c (_putchar): suppress
9556         warning of unused variable
9557         * src/SDCCicode.c: added SWAP entry to codeTable
9558
9559 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
9560
9561         * device/lib/sprintf.c: forgot to add this file before previous commit
9562
9563 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
9564
9565         * src/pic16/gen.c (genPackBits): added operand right in function
9566         parameters, load result directly if p_type is POINTER (that is
9567         called by genNearPointerSet)
9568         * (genUnPackBits): added operand left in function parameters,
9569         * (genNearPointerGet, genNearPointerSet): prevent the loading of
9570         FSR0 if accessing bitfields,
9571
9572 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
9573
9574         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
9575           _print_format; updated printf, sprintf, vsprintf
9576         * device/include/asm/default/features.h: corrected comment/define
9577         * device/lib/Makefile.in: added sprintf.c
9578         * device/lib/libsdcc.lib: added sprintf module
9579         * device/lib/printf_large.c,
9580         * device/lib/vprintf.c,
9581         * device/lib/sprintf.c: totally refactored printf_large and vprintf
9582           into these 3 files
9583         * support/regression/Makefile: changed ALL_PORTS into a usefull default
9584         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
9585         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
9586           hc08 test
9587         * support/regression/tests/zeropad.c: define idata as data for hc08
9588
9589 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9590
9591         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
9592         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
9593         labels are referenced at least once (even if a reference is not found)
9594         * src/hc08/gen.c (emitcode): set isComment flag for comments
9595         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
9596         loads), rules 6a..6b (optimize jumps to return)
9597
9598 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9599
9600         * device/lib/acosf.c (acosf),
9601         * device/lib/asinf.c (asinf),
9602         * device/lib/atanf.c (atanf),
9603         * device/lib/ceilf.c (ceilf),
9604         * device/lib/cosf.c (cosf),
9605         * device/lib/coshf.c (coshf),
9606         * device/lib/cotf.c (cotf),
9607         * device/lib/fabsf.c (fabsf),
9608         * device/lib/floorf.c (floorf),
9609         * device/lib/log10f.c (log10f),
9610         * device/lib/logf.c (logf),
9611         * device/lib/sinf.c (sinf),
9612         * device/lib/sinhf.c (sinhf),
9613         * device/lib/sqrtf.c (sqrtf),
9614         * device/lib/tanf.c (tanf),
9615         * device/lib/tanhf.c (tanhf),
9616         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
9617         replaced all instances of "reentrant" in the library functions
9618         defined in math.h with this macro.
9619         * support/regression/tests/float_trans.c: reenabled test for hc08
9620
9621 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
9622
9623         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
9624         erroneously deleted
9625
9626 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9627
9628         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
9629         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
9630         multi-byte volatile operands are used
9631         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
9632         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
9633         initialization to area GSINIT0 so that it would always precede
9634         any static initializers in GSINIT
9635         * support/regression/tests/zeropad.c: fixed idata define for hc08
9636         * support/regression/tests/bug-927659.c,
9637         * support/regression/tests/float_trans.c: disabled tests for hc08
9638         pending missing library routines
9639         * .version: increased version number to 2.4.4 - hc08 port now passes
9640         regression tests
9641
9642
9643 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
9644
9645         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
9646         * Makefile.common.in,
9647         * as/Makefile,
9648         * as/hc08/Makefile.in,
9649         * as/mcs51/Makefile.in,
9650         * as/z80/Makefile.in,
9651         * debugger/mcs51/Makefile.in,
9652         * device/include/Makefile.in,
9653         * device/lib/Makefile.in,
9654         * doc/Makefile,
9655         * link/Makefile,
9656         * link/z80/Makefile.in,
9657         * packihx/Makefile.in,
9658         * sim/ucsim/main_in.mk,
9659         * sim/ucsim/avr.src/Makefile.in,
9660         * sim/ucsim/doc/Makefile.in,
9661         * sim/ucsim/gui.src/serio.src/Makefile.in,
9662         * sim/ucsim/hc08.src/Makefile.in,
9663         * sim/ucsim/s51.src/Makefile.in,
9664         * sim/ucsim/xa.src/Makefile.in,
9665         * sim/ucsim/z80.src/Makefile.in,
9666         * src/Makefile.in,
9667         * support/cpp2/Makefile.in,
9668         * support/librarian/Makefile,
9669         * support/makebin/Makefile: added DESTDIR to the install path proposed
9670         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
9671         * doc/sdccman.lyx: added DESTDIR documentation
9672
9673 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
9674
9675         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
9676         instruction for interrupt handlers, use fast returns when returning
9677         from high priority interrupts
9678
9679 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9680
9681         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
9682         code generation
9683         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
9684         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
9685         bugs, ported much of Bernhard's code from mcs51
9686         * src/mcs51/gen.c (genSend),
9687         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
9688         than one when calling a reentrant function
9689         * device/lib/_mullong.c: defined an alternate struct layout for big
9690         endian ports (hc08)
9691
9692 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9693
9694         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
9695         test
9696
9697 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9698
9699         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
9700         are sane and complete before asking the port its prefered parameter
9701         passing method (fixes bug #1017633)
9702         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
9703         and _ret3
9704
9705 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9706
9707         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
9708         problem in bitfields >= 8 bits.
9709
9710 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9711
9712         * src/SDCCsymt.c: undid changes that were not meant to be committed
9713
9714 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9715
9716         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
9717
9718 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9719
9720         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
9721           copied and wrong bit got inverted
9722
9723 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9724
9725         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
9726         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
9727         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
9728         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
9729         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
9730         assignments to bitfields at known addresses
9731         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
9732         reads from bitfields at known addresses
9733         * src/hc08/ralloc.c (packRegisters),
9734         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
9735         genhc08Code): optimize pointer get values used as conditionals
9736         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
9737         and branch
9738
9739 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9740
9741         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
9742         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
9743         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
9744         as conditionals
9745
9746 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9747
9748         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
9749
9750 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9751
9752         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
9753         related problems
9754
9755 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
9756
9757         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
9758
9759 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9760
9761         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
9762         mcs51 port
9763
9764 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
9765
9766         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
9767
9768 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9769
9770         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
9771         cases use more compact code.
9772
9773 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
9774
9775         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
9776
9777 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9778
9779         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
9780
9781 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9782
9783         * src/SDCCsymt.h,
9784         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
9785         parameter of changePointer() from symbol* to sym_link*
9786         * src/SDCCast.c (decorateType): call changePointer() for CAST op
9787         * src/SDCCsymt.c (compareType): void* type is castable to other
9788         pointers, but not necesarily an exact match.
9789         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
9790         is no longer blindly treated as an exact match.
9791         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
9792
9793 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
9794
9795         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
9796
9797 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
9798
9799         * src/pic/gen.c,
9800         * src/pic/pcode.c,
9801         * src/pic/ralloc.h,
9802         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
9803
9804 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
9805
9806         * src/pic/device.c,
9807         * src/pic/device.h,
9808         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
9809
9810 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9811
9812         * src/mcs51/gen.c (emitcode): fixed bug #992819
9813
9814 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
9815
9816         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
9817           there's no need to make it worse
9818
9819 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9820
9821         * src/mcs51/ralloc.c (deassignLR),
9822         * src/ds390/ralloc.c (deassignLR),
9823         * src/hc08/ralloc.c (deassignLR),
9824         * src/z80/ralloc.c (deassignLR),
9825         * src/pic/ralloc.c (deassignLR),
9826         * src/pic16/ralloc.c (deassignLR),
9827         * src/avr/ralloc.c (deassignLR),
9828         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
9829         rlivePoint): fixed another part of bug #971834
9830
9831 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9832
9833         * src/z80/main.c: enabled "critical" keyword
9834         * src/z80/mappings.i,
9835         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
9836         functions (fixes bug #979646)
9837         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
9838
9839 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9840
9841         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
9842           such as c:\mydir.
9843
9844 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
9845
9846         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
9847           doesn't disable too much optimizations
9848
9849 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
9850
9851         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
9852
9853 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
9854
9855         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
9856
9857 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
9858
9859         * src/pic/gen.c tidied up tabs
9860         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
9861         * src/pic/main.c tidied up tabs
9862         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
9863         * src/pic/pcoderegs.c tidied up tabs
9864         * src/pic/ralloc.c tidied up tabs
9865
9866 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
9867
9868         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
9869         to S_FIXED for pic16 port and when symbol is not in level 0,
9870         allocate for S_REGISTER storage class and pic16 port, too,
9871         * src/pic16/device.h: prototype for checkSym,
9872         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
9873         * (pic16_assignConfigWordValue): test the value and the mask to
9874         validate that the value is suitable for the configuration word,
9875         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
9876         collect extern declared symbols, don't emit symbol twice, check
9877         first if symbol is in publics set first,
9878         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
9879         * added command line '--fstack' which enables an experimental
9880         feature for stack access, too buggy to be used yet...
9881         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
9882         * (pic16_allocDirReg): when register has storage class S_REGISTER
9883         allocate in pic16_dynAccessRegs,
9884         * device/include/pic16/pic18f????.h: modified configuration word
9885         naming convention, words started as CONFIG0H but should be CONFIG1H
9886
9887 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
9888
9889         * device/include/mcs51reg.h: fixed bug 970993
9890
9891 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
9892
9893         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
9894         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
9895         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
9896         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
9897         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
9898         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
9899           error/warning numbers,
9900           added function setWarningDisabled()
9901         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
9902         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
9903           _memcmp.c _memmove.c calloc.c realloc.c free.c
9904         * support/regression/tests/malloc.c: added tests for new functionality
9905         * support/regression/tests/zeropad.c: added tests for truncated initializers
9906           and initialized char arrays starting with '\x0'
9907         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
9908
9909 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
9910
9911         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
9912
9913 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9914
9915         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
9916         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
9917         peephole 177.e. Thanks to anonymous
9918
9919 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
9920
9921         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
9922         function isn't used in the source but referenced as a
9923         variable initializer then declare it as extern in .asm file
9924
9925 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
9926
9927         * .version: increased version number to 2.4.3
9928
9929         Adding version extension according to ChangeLog CVS revision
9930         * src/Makefile.in (target all): added dependency 'version.h'
9931         * (rule version.h): added rule to create version.h from ChangeLog,
9932         * (rule dep): added dependency version.h,
9933         * src/version.awk: AWK script to create version.h
9934         * src/SDCCdwarf2.c (dwWriteModule),
9935         * src/SDCCglue.c (initialComments),
9936         * src/SDCCmain.c (printVersionInfo): modified to write after
9937         version string the version extension number,
9938         * src/SDCCutil.c: included "version.h"
9939         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
9940         number,
9941         * src/SDCCutil.h: added prototype for getBuildNumber
9942
9943         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
9944         includeDirsSet, too,
9945         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
9946         const char [] is found in function prototype...
9947
9948         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
9949         moving to WREG with source is already in WREG,
9950         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
9951         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
9952         * (aopForSym): stack'ed symbols are partially supported, added
9953         if-clause to support symbols in FARSPACE,
9954         * (sameRegs): added test for AOP_ACC to see if registers are same,
9955         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
9956         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
9957         * (pic16_popRegFromString): will not allocate a new register if it
9958         doesn't find one by name, bug may have introduced...
9959         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
9960         * (genIpush): revived to use pic16 port's stack,
9961         * (genAddrOf): added incomplete case for stack'ed operand,
9962         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
9963         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
9964         can handle multibyte operands,
9965         * src/pic16/glue.c (pic16_printIval*): some debug info added,
9966         * (pic16initialComments): added message for MPLAB compatibility
9967         mode enabled,
9968         * src/pic16/main.h: prototype for pic16_mplab_comp,
9969         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
9970         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
9971         * (_pic16_linkEdit): NEW, handles link stage, transferred here
9972         because of increased complexity of procedure,
9973         * (_process_pragma): stack pragma changed to format 'stack pos len',
9974         emit symbol '_stack_end' to conform with gplink,
9975         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
9976         to search for register,
9977         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
9978         PO_GPR_REGISTER,
9979         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
9980         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
9981         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
9982         case for PO_GPR_REGISTER,
9983         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
9984         dies, the new era is ahead !...
9985         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
9986         pic16_dynInternalRegs,
9987         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
9988         * (pic16_allocDirReg): minor optimizations and bug fixes,
9989         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
9990
9991         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
9992         load stack and frame pointer with address of 'stack_end' symbol
9993
9994 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
9995
9996         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
9997         without source code but only variable initializers
9998
9999 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
10000
10001         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
10002         external are not declared as extern to reduce overhead while linking
10003
10004 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
10005
10006         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
10007
10008 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
10009
10010         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
10011           Yee Keat for the patch
10012         * src/SDCCast.c (decorateType): fixed bug #979599
10013         * src/ds390/gen.h: removed local fReturnSizeDS390
10014         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
10015         * src/ds390/gen.c (genAnd, genOr, genXor),
10016         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
10017
10018 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
10019
10020         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
10021         add relFilesSet to $3, manipulate $2 to handle linking of object
10022         files without source files in command line,
10023         * device/include/pic16 (all headers): added ID location macros,
10024         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
10025         entries for ID location bytes,
10026         * (pic16_assignIdByteValue): NEW,
10027         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
10028         added field dumpcalltree to pic16_options_t,
10029         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
10030         is used instead of pic16_Gstack_base_addr, check if (ifx) before
10031         emitting rFalseIfx label after check_carry label,
10032         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
10033         pic16_emitDIRegs), NEW
10034         * (pic16glue): dump .calltree file when option --calltree found,
10035         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
10036         * (_pic16_genAssemblerPreamble): emit ID locations after
10037         configuration registers,
10038         * (pic16_linkCmd): modifications of the link command,
10039         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
10040         * (pic16_pCodeInitRegisters): don't init stack registers,
10041         * (pic16_findPrevInstruction): fixed bug,
10042         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
10043         bug with immediate registers,
10044         * (buildCallTree): traces stack push and pop,
10045         * (pct2): dump also stack usage for each function,
10046         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
10047         * (pic16_allocDirReg): various modifications,
10048         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
10049         fixed to 1,
10050
10051 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
10052
10053         * src/pic16/pcode.c: removed buggy double colon
10054
10055 2004-07-01 Borut Razem <borut.razem AT siol.net>
10056
10057         * support/scripts/sdcc.nsi: added include/pic16 to setup
10058
10059 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
10060
10061         * device/lib/Makefile.in: fixed bug in target objects-pic16,
10062         * device/lib/pic16/Makefile: prefixed with dash (-) command under
10063         target 'clean',
10064         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
10065         specific command line arguments. Also added sample lkr script
10066         for placing a variable at a specific memory bank.
10067         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
10068         at a specific memory bank,
10069         * (pic16_dump_isection): fixed bug which caused string literals to
10070         be omitted when dumping idata section,
10071         * (pic16_groupRegistersInSection): added code to handle registers
10072         in specific memory banks,
10073         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
10074         public, all references are renamed too,
10075         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
10076         AOP_DPTR2,
10077         * (pic16_storeForReturn): added case to handle when dest is WREG,
10078         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
10079         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
10080         pic16_rel_udata, check to see if that register is marked as being
10081         a member of a specific memory bank,
10082         * (pic16_printIvalCharPtr): added code to add string literals either
10083         to code or the idata sections,
10084         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
10085         also accept the 'udata' pragma,
10086         * src/pic16/main.h: new structure types sectName and sectSym
10087         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
10088         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
10089         * (pic16_findPrevInstruction): fixed, it returned nothing,
10090         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
10091         instruction combinations,
10092         * (pic16_FixRegisterBanking): heavily reorganised,
10093         * (pic16_AnalyzeBanking): if generating banksel directives is
10094         disabled, then don't call FixRegisterBanking at all,
10095         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
10096         completely removed,
10097         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
10098
10099 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
10100
10101         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
10102         Phuah Yee Keat <yk.phuah AT nestac.com>
10103
10104 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
10105
10106         * src/pic16/glue.c (pic16createInterruptVect): function now emits
10107         correctly the IVT even if it is relocated to some other location
10108
10109 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
10110
10111         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
10112         * device/include/pic16/pic18f2220.h: NEW,
10113         * device/lib/pic16/libdev/pic18f2220.c: NEW,
10114         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
10115         * src/pic16/device.c (struct Pics16): added info for 18f2220,
10116         * src/pic16/device.h (struct pic16_options): added ivt_loc and
10117         nodefaultlibs, ivt_loc is the location of the interrupt vector
10118         table, and nodefaultlibs signs that default libraries should not be
10119         linked in link stage,
10120         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
10121         according to --ivt-loc argument,
10122         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
10123         when pragma stack is found,
10124
10125 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10126
10127         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
10128         256 (range check), 257 (do while), 258.a-f (bit banging
10129         f.e. on 3-wire SPI bus)
10130
10131 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10132
10133         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
10134         variables used exclusively within a loop
10135
10136 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
10137
10138         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
10139
10140 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10141
10142         * src/SDCClrange.c (computeClash): fixed bug #971834
10143
10144 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10145
10146         * src/mcs51/gen.c (genCmp): fixed bug #975903
10147         * src/hc08/gen.c (operandsEqu),
10148         * src/ds390/gen.c (operandsEqu),
10149         * src/z80/gen.c (operandsEqu),
10150         * src/pic/gen.c (operandsEqu),
10151         * src/pic16/gen.c (operandsEqu),
10152         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
10153         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
10154
10155 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10156
10157         * src/SDCCcse.c (cseBBlock): fixed bug #966963
10158
10159 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
10160
10161         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
10162         default case in switch statement,
10163         * glue.c (pic16_initPointer): expr is initialised via decoarteType
10164         to eliminate problem with initialisation of pointers, but problem
10165         still exists,
10166         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
10167         * (emitStaticSegment): removed various lines emitting debug info,
10168         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
10169         added processor registers for utilizing EEPROM,
10170         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
10171         configurable and set 8
10172
10173 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
10174
10175         * .version: increased version number to 2.4.2,
10176
10177         Cumulative patch for pic16 port
10178         * src/pic16/device.c: changed scheme to dump initial values for
10179         variables in idata segment, all print_idata* functions were removed,
10180         now the pic16_printIval* will be called,
10181         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
10182         * _pic16_printPointerType, pic16_printPointerType,
10183         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
10184         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
10185         NEW, similar to the respective functions in SDCCglue.c,
10186         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
10187         way, emitting hex bytes,
10188         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
10189
10190 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10191
10192         * src/avr/ralloc.c (serialRegAssign),
10193         * src/xa51/ralloc.c (serialRegAssign),
10194         * src/pic/ralloc.c (serialRegAssign),
10195         * src/pic16/ralloc.c (serialRegAssign),
10196         * src/hc08/ralloc.c (serialRegAssign),
10197         * src/z80/ralloc.c (serialRegAssign),
10198         * src/ds390/ralloc.c (serialRegAssign),
10199         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
10200
10201 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10202
10203         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
10204         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
10205
10206 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
10207
10208         Cumulative patch for pic16 port:
10209         * src/pic16/device.h (typedef PIC16_device) modified fields for
10210         defining microcontrollers,
10211         * src/pic16/device.c: added new info for all devices in Pics16 array,
10212         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
10213         to be optimised out by the pCode optimiser,
10214         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
10215         specially, bug reported by G.M. Gallant,
10216         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
10217         as force'd so that cannot be optimised out by pCode optimiser,
10218         * src/pic16/pcode.c,
10219         * src/pic16/pcodepeeph.c,
10220         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
10221         they are disabled by default, but can be enabled explicit with
10222         command argument --denable-peeps, for testing,
10223         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
10224         --pomit-ivt in COMPILE_FLAGS
10225
10226 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
10227
10228         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
10229           compilation on MSVC
10230
10231 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
10232
10233         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
10234
10235 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10236
10237         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
10238         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
10239
10240 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
10241
10242         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
10243         would only assign 0x300001 register.
10244
10245 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
10246
10247         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
10248         in COMPILE_FLAGS. Thanks to G. Gallant for report.
10249
10250 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10251
10252         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
10253         for ds80c400
10254         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
10255         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
10256         added peephole 254 (left shift), 255 (jump table)
10257
10258 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
10259
10260         * device/lib/Makefile.in: removed comment line with model-pic16,
10261         * (target port-specific-objects-pic16): the libraries and objects
10262         are copied to the build directory form the device/lib/pic16/bin
10263         directory
10264
10265         Cumulative patch concerning pic16 port:
10266         * library directory has been re-organized,
10267         * added support for PIC18F1220,
10268         * added headers and library sources for chips 18f1220,18f6520,
10269         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
10270
10271         * configuration registers setting has changed, now each supported
10272         device has a complete description of the registers it uses,
10273         * all initialisations are moved to idata sections, these section
10274         can be absolute or relocatable,
10275         * fixed initialisation of codespace variables,
10276         * fixed warning about PCLATU and gpsim,
10277         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
10278         * (genAssign): use table reads when assigning from variables in codespace,
10279         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
10280         char/int variables placed in codespace,
10281         * (pic16_emitConfigRegs): NEW, emits a list with configuration
10282         registers set in .asm file, no need for --pomit-config-words anymore,
10283         * (pic16glue): some 8051 legacy segments are commented out
10284         (to be removed completely),
10285         * added support for alternative assembler and linker with --asm=
10286         and --link= command line arguments,
10287         * peepholes are disabled automatically in the port, no need to
10288         specify on command line,
10289         * port supports natively char/int/long multiplication, but converts
10290         all divisions to support functions,
10291         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
10292         to the file set in variable $2,
10293         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
10294         strings in ASCII format and not in hex,
10295         * ralloc.c (serialRegAssign): added a triplet of conditional calls
10296         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
10297         allocate proper register if iCodes aren't temporary,
10298
10299 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
10300
10301         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
10302
10303 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
10304
10305         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
10306         is commented out
10307
10308 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10309
10310         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
10311         computed address is reused
10312         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
10313         multi-byte bitfields
10314
10315 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
10316
10317         * src/z80/gen.c: (genArrayInit): must check for pointers too
10318
10319 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
10320
10321         * support/regression/tests/zeropad.c: never meant to commit the
10322           nestedstruct test: removed, added check for GCC version
10323
10324 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
10325
10326         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
10327         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
10328         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
10329           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
10330           bugs 928906 and 954082 half-empty initializers
10331         * src/SDCCsymt.h,
10332         * src/SDCCsymt.c (getAllocSize): added for above fix
10333         * src/z80/gen.c (genArrayInit): fixed bug 741044
10334         * support/regression/tests/zeropad.c: added tests
10335
10336 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
10337
10338         * src/pic16/device.c (pic16_dump_section): corrected bug which
10339         caused some symbols of the libraries to be misplaced
10340
10341 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
10342
10343         * src/pic16/glue.c,
10344         * src/pic16/ralloc.h,
10345         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
10346         to fix conflict with pic port
10347
10348 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
10349
10350         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
10351         externs configuration variables,
10352         * src/pic16/ralloc.h,
10353         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
10354         prototype in header, commented out some debug messages
10355
10356 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
10357
10358         * src/pic16/glue.c,
10359         * src/pic16/main.c,
10360         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
10361         for gpasm COFF object generation. Thanks to D. Hawkins for
10362         his patch info
10363
10364 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10365
10366         * src/ds390/main.c,
10367         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
10368         Brock for spotting this)
10369         * src/ds390/gen.c (genEndFunction),
10370         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
10371         interrupt handler and critical. Disable push/pop optimizations when
10372         peephole optimizations disabled.
10373
10374 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
10375
10376         Updated pic16 library sources and headers.
10377         * device/lib/pic16/pic18f*/ ,
10378         * device/include/pic16/*.h: modified to handle structured SFR
10379         definitions
10380
10381 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
10382
10383         * src/port.h (PORT structure): added hook initPaths, now each
10384         port can declare its own default search paths,
10385         which can been seen with the --print-search-dirs option,
10386         see pic16 port for example,
10387         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
10388         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
10389         * (doPrintSearchDirs): NEW, replaces in a central manner the
10390         printing of search dirs which was split in set*Paths functions,
10391         * (main): added call to port->initPaths and doPrintSearchDirs,
10392         * src/avr/main.c,
10393         * src/ds390/main.c,
10394         * src/hc08/main.c,
10395         * src/izt/i186.c,
10396         * src/izt/tlcs900h.c,
10397         * src/mcs51/main.c,
10398         * src/pic/main.c,
10399         * src/pic16/main.c: modified port structures to reflect addition of
10400         initPaths hook,
10401
10402         * src/pic16/device.c (regCompare): registers are finally sorted by name,
10403         * (pic16_dump_section): for registers in same address reserve memory once,
10404         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
10405         to no_banksel,
10406         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
10407         result is greater in size than right or left,
10408         * (pic16_genUMult8X8_8): there are some cases where the result can
10409         be 16 bits size, so handle these,
10410         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
10411         * (pic16_outBitC): modified to emit pcodes,
10412         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
10413         or not,
10414         * (genDivOneByte): implemented algorithm to divide 8-bits,
10415         * (genCmp): uncommented goto, but issues still exist,
10416         * (genAnd): fixed a bug with variables >8bits,
10417         * (genPackBits): optimization added that uses BCF/BSF to change a
10418         single bit,
10419         * (genAssign): fixed bug when assigning floating point literals,
10420         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
10421         __sdcc_gsinit_startup label,
10422         * src/pic16/main.c (_pic16_init): removed search directory
10423         initialisations,
10424         * (_pic16_initPaths): NEW, used to initialise search directories,
10425         * (_hasNativeMulFor): support functions for all except char/int
10426         multiplication, and char division,
10427         * (PIC16_port struct): modified entry for native mul support,
10428         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
10429         no_banksel option,
10430         * (buildCallTree): call to register_usage is ifdef'ed out,
10431
10432 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10433
10434         * device/include/string.h: applied Stas Sergeev's patch to make this
10435         header file compatible with the preprocessor -Wundef option
10436         * src/SDCCmain.c (main): abort compilation if preprocessor reports
10437         failure (fixes bug #941458)
10438
10439 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10440
10441         * src/SDCCopt.c (killDeadCode): fixed bug #907733
10442         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
10443         that the variable, not the function, should be static
10444         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
10445         to be consistent with non-literal case
10446
10447 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10448
10449         * src/SDCCast.c (isConformingBody): fixed bug #949967
10450         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
10451         convilong): fixed bug #952086
10452
10453 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10454
10455         * src/SDCCmem.c (allocVariables): fixed bug #955321
10456
10457 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10458
10459         * src/hc08/main.c (_hc08_genAssemblerEnd),
10460         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
10461         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
10462         completely eliminated the use of a temporary file
10463         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
10464         when more than one file linked
10465         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
10466
10467 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10468
10469         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
10470         which fixes bug #543481
10471         * support/regression/tests/bug-751703.c: fixed comments left from a
10472         cut and paste error
10473         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
10474         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
10475         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
10476         scopes
10477         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
10478         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
10479         are now changed to underscores in moduleName
10480
10481 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10482
10483         * as/mcs51/lkmem.c: better fix for bug #954173
10484
10485 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
10486         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10487
10488         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
10489         * device/include/c8051f000.h,
10490         * device/include/c8051f120.h,
10491         * device/include/c8051f300.h,
10492         * device/include/c8051f310.h,
10493         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
10494         PWM16) and detab'ed
10495
10496 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10497
10498         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
10499         and mailing lists, doc'ed --no-peep-comments, removed reference
10500         to knoppix (newest version has no LyX/LaTeX), other minor changes
10501         * src/SDCCglue.c (glue): save 2 bytes stack space with
10502         option --main-return. The ljmp could probably be avoided too
10503
10504 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10505
10506         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
10507
10508 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10509
10510         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
10511         * src/SDCCopt.c (isLocalWithoutDef),
10512         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
10513         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
10514         (credit to Maarten Brock for patch #949363, on which this is based)
10515         * support/regression/tests/bug-751703.c: some test cases of extern used
10516         within inner scopes.
10517
10518 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10519
10520         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
10521         SPEC_STRUCT
10522         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
10523         struct definitions
10524         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
10525         dwWriteLabel): fix to create valid debugger symbols even when
10526         the module name has non-alphanumeric symbols in it
10527         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
10528         when a variable's allocation has been optimized away
10529
10530
10531 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10532
10533         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
10534         * src/hc08/main.c,
10535         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
10536         * src/mcs51/main.c,
10537         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
10538         * src/ds390/main.c,
10539         * src/z80/gen.c (z80_emitDebuggerSymbol),
10540         * src/z80/main.c,
10541         * src/pic/gen.c (pic14_emitDebuggerSymbol),
10542         * src/pic/main.c,
10543         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
10544         * src/pic16/main.c,
10545         * src/avr/gen.c (avr_emitDebuggerSymbol),
10546         * src/avr/main.c,
10547         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
10548         * src/xa51/main.c,
10549         * src/SDCCdebug.c (emitDebuggerSymbol),
10550         * src/SDCCdebug.h,
10551         * src/port.h: added a debugger struct to the port struct. Added a
10552         callback for defining debugger symbols
10553
10554         * src/SDCCast.c (createLabel),
10555         * src/SDCC.y (labeled_statement): mark all compiler generated labels
10556         with isitmp = 1
10557         * src/SDCCicode.h,
10558         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
10559         iCode back to the ast for the function
10560
10561         * src/hc08/ralloc.c (hc08_assignRegisters),
10562         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
10563         unneeded fields from the regs struct.
10564         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
10565         pushReg() & pullReg() functions instead of emitcode()
10566
10567         * src/hc08/gen.c (genLabel, genhc08Code),
10568         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
10569
10570         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
10571         debugger hooks
10572
10573         * src/hc08/gen.c (genEndFunction, genhc08Code),
10574         * src/hc08/gen.h,
10575         * src/mcs51/gen.c (genEndFunction, gen51Code),
10576         * src/mcs51/gen.h,
10577         * src/ds390/gen.c (genEndFunction, gen390Code),
10578         * src/ds390/gen.h,
10579         * src/z80/gen.c (genEndFunction, genZ80Code),
10580         * src/z80/gen.h,
10581         * src/z80/z80.h,
10582         * src/pic/gen.c (genEndFunction, genpic14Code),
10583         * src/pic/gen.h,
10584         * src/pic16/gen.c (genEndFunction, genpic16Code),
10585         * src/pic16/gen.h,
10586         * src/avr/gen.c (genEndFunction, genAVRCode),
10587         * src/avr/gen.h,
10588         * src/xa51/gen.c (genEndFunction, genXA51Code),
10589         * src/xa51/gen.h,
10590         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
10591         specific code to cdbFile.c and out of the backend code generators
10592
10593         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
10594         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
10595         starting address is now 0
10596
10597         * as/hc08/asm.h,
10598         * as/hc08/m08pst.c,
10599         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
10600         assembler directive for DWARF support
10601         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
10602
10603         * src/src.dsp,
10604         * src/Makefile.in,
10605         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
10606
10607 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10608
10609         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
10610         and inappropriate peephole optimization in jump tables
10611
10612 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10613
10614         * as/hc08/m08pst.c,
10615         * src/SDCCglue.c: sdccopt works for the hc08 port now
10616
10617 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
10618
10619         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
10620
10621 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10622
10623         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
10624
10625 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10626
10627         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
10628         rules
10629         * src/SDCCmain.c,
10630         * src/SDCCglobl.h,
10631         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
10632         comments from the peephole optimizer replacement rules
10633         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
10634         symbols
10635         * src/SDCCcse.c (updateSpillLocation),
10636         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
10637         equivalents
10638         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
10639         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
10640         objects far pointers
10641
10642 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10643
10644         * src/SDCCsymt.h: a missing part of my last change
10645         * src/pic/ralloc.c (regTypeNum),
10646         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
10647
10648 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10649
10650         * src/SDCCicode.h,
10651         * src/SDCCicode.c (aggrToPtrDclType),
10652         * src/SDCCptropt.h,
10653         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
10654         ptrPseudoSymConvert),
10655         * src/pic/ralloc.c (regTypeNum),
10656         * src/pic16/ralloc.c (regTypeNum),
10657         * src/hc08/ralloc.c (regTypeNum),
10658         * src/ds390/ralloc.c (regTypeNum),
10659         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
10660         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
10661
10662 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10663
10664         * link/z80/lkmain.c (afile),
10665         * as/hc08/lkmain.c (afile),
10666         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
10667         prevent a pointer problem when a filename has no directory and
10668         no extension specified.
10669
10670 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10671
10672         * link/z80/lkmain.c (afile): allow periods in directory names
10673         * link/z80/lkmain.c (afile),
10674         * as/mcs51/lkmain.c (afile),
10675         * as/hc08/lkmain.c (afile): allow linker script file to have an
10676         extension other than ".lnk"
10677         * link/z80/lklex.c (getfid),
10678         * link/z80/lkmain.c (parse),
10679         * as/mcs51/lklex.c (getfid),
10680         * as/mcs51/lkmain.c (parse),
10681         * as/hc08/lklex.c (getfid),
10682         * as/hc08/lkmain.c (parse): Support comments in the linker script
10683         file on lines by themselves and after filenames
10684
10685 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10686
10687         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
10688
10689 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10690
10691         * src/z80/peeph-z80.def: removed some peephole rules that don't
10692         work with multibyte arithmetic (fixed bug #937126)
10693         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
10694         to registers and not global variables
10695         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
10696         geniCodePreInc, geniCodePostDec, geniCodePreDec,
10697         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
10698         checking for assignments not internally generated (fixed bug #931895)
10699         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
10700         structure member (fixed bug #930072)
10701
10702 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10703
10704         * src/SDCCmain.c (linkEdit),
10705         * src/hc08/main.c (_hc08_parseOptions),
10706         * as/hc08/Makefile.in,
10707         * as/hc08/aslink.h,
10708         * as/hc08/asm.h,
10709         * as/hc08/m08pst.c,
10710         * as/hc08/lkrloc.c (relr, rele),
10711         * as/hc08/lkarea.c (lnkarea)
10712         * as/hc08/lkmain.c (afile, parse),
10713         * as/hc08/lkelf.c: support for ELF output
10714         * as/hc08/lks19.c (s19),
10715         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
10716
10717 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10718
10719         * as/mcs51/lkihx.c: Fixed bug #899105.
10720
10721 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10722
10723         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
10724         .dsp files from Unix to DOS.
10725
10726 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10727
10728         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
10729         function pointers; we have been compliant for several months now.
10730         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
10731         change that was accidently commented out
10732         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
10733         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
10734         bug #922319
10735
10736 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10737
10738         * src/hc08/gen.c: output of all of the internal debugging information
10739         is now controlled by the D() macro; it is disabled by default
10740
10741 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10742
10743         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
10744         harder to keep the same registers during a CAST iCode
10745         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
10746         long via int can be done in a single cast, if the signedness is
10747         correct.
10748         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
10749         putchar() in tinibios.c in ds390's library
10750
10751 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
10752
10753         * src/SDCCast.c (decorateType): fixed bug #898889,
10754         cast result of a literal complement too
10755         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
10756         fixed check for bitfields
10757
10758 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
10759
10760         * src/SDCCicode.c (geniCodeLogic): made it static,
10761         (geniCodeLogicAndOr): added in order to fix bug #905492,
10762         (ast2iCode): fixed bug #905492
10763         * support/regression/tests/bug-905492.c: added
10764         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
10765         (processParms): fixed bug #927659: don't copy parms, this will clear
10766         decorated flag
10767         * support/regression/tests/bug-927659.c: added
10768
10769 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
10770
10771         * src/SDCCast.c (addCast): don't cast float to char
10772         * device/lib/libsdcc.lib: added _memmove
10773
10774 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
10775
10776         * device/lib/large/Makefile: fixed parallel execution by
10777         replacing `make` by `$(MAKE)`
10778
10779 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10780
10781         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
10782         offsets (fixes bug #923936)
10783
10784 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
10785
10786         * device/lib/small/Makefile: fixed parallel execution by
10787         replacing `make` by `$(MAKE)`
10788
10789 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
10790
10791         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
10792
10793 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
10794
10795         * src/pic/gen.c (genCpl): multi-byte complements were not working.
10796         * src/regression/Makefile: Regression test was not running.
10797
10798 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
10799
10800         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
10801         complement if possible
10802         * src/SDCCval.c (valComplement),
10803         * src/SDCCicode.c (operandOperation): fixed complement of literal
10804         * support/regression/tests/onebyte.c (testComplement): added
10805
10806 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
10807
10808         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
10809         return an optimized tree; actually replace actParm with the new tree
10810         * src/SDCCast.h: added some parantheses to remove side effects
10811         * support/regression/tests/bug-920866.c
10812
10813 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
10814         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
10815         Bit operands were not being handled properly in the pic14 port.
10816         (now src/regression/add.c passes again).
10817
10818 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10819
10820         * src/SDCC.y (labeled_statement): case and default no longer require
10821         a following statement (RFE #893037)
10822
10823 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10824
10825         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
10826         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
10827         disabled (fixes bug #916294)
10828         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
10829         "mov a,acc"; patch provided by Lenny Story
10830         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
10831
10832 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10833
10834         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
10835         functions
10836         * src/ds390/gen.c (genFunction, genEndFunction),
10837         * src/ds390/ralloc.c (ds390_assignRegisters),
10838         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
10839         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
10840         pushed if there are parameters passed on the stack. Also, a cleaner
10841         way to decide if r0/r1 should be pushed/popped. (Together they fix
10842         bug #918693)
10843
10844 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10845
10846         * doc/sdccman.lyx,
10847         * device/lib/mcs51/crtpagesfr.asm,
10848         * device/lib/mcs51/crtxinit.asm,
10849         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
10850         to avoid confusion with Si Lab's SFRPAGE register.
10851
10852 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10853
10854         * src/SDCCglue.c (emitMaps): allow public sfr variables
10855         * src/SDCCglue.c (initialComments): include compiler build date
10856         with compiler version and put the timestamp of the generated
10857         assembly file on a serperate line to be less confusing.
10858         * src/port.h: added genInitStartup hook
10859         * src/avr/main.c,
10860         * src/ds390/main.c,
10861         * src/hc08/main.c,
10862         * src/pic/main.c,
10863         * src/pic16/main.c,
10864         * src/xa51/main.c,
10865         * src/z80/main.c: genInitStartup initialize as NULL (default to
10866         historical behaviour)
10867         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
10868         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
10869         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
10870         library instead of hard coding it into the compiler.
10871         * support/regression/ports/mcs51-stack-auto/spec.mk,
10872         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
10873         * device/lib/mcs51/Makefile,
10874         * device/lib/small/Makefile,
10875         * device/lib/large/Makefile,
10876         * device/lib/mcs51/crtpagesfr.asm,
10877         * device/lib/mcs51/crtstart.asm,
10878         * device/lib/mcs51/crtxclear.asm,
10879         * device/lib/mcs51/crtxinit.asm,
10880         * device/lib/mcs51/crtclear.asm,
10881         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
10882         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
10883         and into user configurable files.
10884         * device/lib/clean.mk: clean mcs51 directory too
10885         * support/regression/tests/longlit.c: added static to T1 declaration
10886         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
10887         accesses in the initialization code
10888
10889 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10890
10891         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
10892         OSCTRIMVAL as noted in bug #916008
10893
10894 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10895
10896         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
10897         in loops with multiple exits (reported as incorrect registers
10898         used by Martin Helmling in Sdcc-user list)
10899
10900 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10901
10902         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
10903         made ds390 register extensions look less like error messages
10904
10905 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10906
10907         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
10908         reported by Adam Wozniak in Sdcc-user list
10909
10910 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
10911
10912         * src/SDCCast.c (decorateType): fixed with bug and promotion in
10913         arithmetic optimizations, added debug output
10914
10915 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
10916
10917         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
10918         * sdcc.spec: updated and split sdcc into 3 rpms
10919         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
10920         needed for literals of LEFT_OP and '+'
10921         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
10922         introduced RESULT_TYPE_NOPROM
10923         (geniCodeMultiply): fixed logic for decision if mul is optimized to
10924         left shift
10925         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
10926         limited promotion to int only for '*'
10927         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
10928
10929 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
10930
10931         * src/pic16/gen.c (genSkip),
10932         (genc16bit2lit), (gencjneshort): commented out
10933         (is_LitOp): new helper function, checks operand type
10934         (genCmpEq): rewritten
10935
10936 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
10937
10938         * support/regression/tests/bug-908454.c: added
10939
10940 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
10941
10942         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
10943         * src/SDCCicode.c (usualBinaryConversions): op needs int type
10944         (geniCodeCast): cosmetic, don't preserve bit storage class
10945         (geniCodeLeftShift): added promotion
10946         (geniCodeLogic): fixed regression
10947         * src/SDCCsymt.c (computeTypeOr): accept bits too
10948         (compareType): 2nd part of fix for bug #908454, needed for bitfields
10949
10950 2004-03-07  Borut Razem <borut.razem AT siol.net>
10951
10952         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
10953
10954 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
10955
10956         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
10957         version of pic16_genPackRegisters which does not check if ic is a
10958         CAST operator,
10959         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
10960         function cause string1.c regression test fails
10961
10962 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
10963
10964         * sim/ucsim/configure.in,
10965         * sim/ucsim/configure,
10966         * sim/ucsim/doc/Makefile.in: use docdir
10967         * src/SDCC.y: fixed sbit atrributes
10968         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
10969         * src/SDCCast.c (decorateType): |^& need special promotion handling
10970         * src/SDCCast.h,
10971         * src/SDCCsymt.h: moved definition of RESULT_TYPE
10972         * src/SDCCsymt.h (computeType),
10973         * src/SDCCicode.c: computeType() needs op
10974         * src/SDCCsymt.c (checkTypeSanity),
10975         * doc/sddman.lyx: "plain" bitfields are unsigned
10976         * src/SDCCsymt.c (computeTypeOr): added
10977         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
10978         |^& ops
10979         * src/SDCCval.c (val*): computeType() needs op
10980         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
10981         * support/regression/tests/onebyte.c: added tests for |^&
10982
10983 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
10984
10985         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
10986         for writing icode into asm output.
10987
10988 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
10989
10990         * src/pic16/device.c: added some debug lines enabled
10991         with macro DEBUG_CHECK,
10992         * src/pic16/genarith.c: more debug in genPlus,
10993         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
10994         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
10995         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
10996         * (aopForSym): onStack symbols are re-placed in data memspace,
10997         and onStack flag is cleared,
10998         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
10999         copy temporary pcodeop,
11000         * (genPcall): added warning for not updating PCLATU,
11001         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
11002         always true for pic16 port,
11003         * (genMultOneWord): NEW, supports integer multiplication,
11004         * (genMult): modified to call genMultOneWord,
11005         * (ifxForOp): added warning when return NULL,
11006         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
11007         flag is set before call to operandFromSymbol for implicit
11008         added structures,
11009         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
11010         options.intlong_rent are set by default,
11011         * (_hasNativeMulFor): modified to allow port generation of integer
11012         multiplication,
11013         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
11014         set regtype to REG_SFR for all registers, restricting seting the
11015         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
11016
11017 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11018
11019         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
11020         more than 500 times in the regression tests
11021
11022 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11023
11024         * support/Util/SDCCerr.h,
11025         * support/Util/SDCCerr.c,
11026         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
11027         enumerator_list),
11028         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
11029         for symbol conflicts.
11030         * support/valdiags/tests/enum.c,
11031         * support/valdiags/tests/tentdecl.c,
11032         * support/valdiags/tests/struct.c: expect possible error messages
11033         referring to original symbol definitions.
11034         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
11035         * src/SDCCsymt.h,
11036         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
11037
11038 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
11039
11040         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
11041
11042 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
11043
11044         * src/pic16/ralloc.c (newReg): fixed bug #908929
11045
11046 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11047
11048         * src/ds390/gen.c: added missing #include "main.h"
11049
11050 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
11051
11052         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
11053         checking if symbol is already in set,
11054         * src/pic16/device.h: prototype for checkAddSym,
11055         * src/pic16/gen.c: (_G): added entry interruptvector,
11056         * (assignResultValue): removed some commented out lines,
11057         * (genFunction): check for ISR via sym->type, absolute section for
11058         interrupt code is created via a new pBlock, the goto instruction is
11059         placed now correctly at the interrupt vector position, changed all
11060         references from ivec to _G.interruptvector,
11061         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
11062         is the interrupt is a high priority one, same for return from ISR,
11063         * src/pic16/glue.c: changed all calls of addSetHead for publics and
11064         externs to calls of checkAddSym,
11065         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
11066         pic16_pcode_verbose flag is set,
11067         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
11068         * src/pic16/pcoderegs.c: message about how many registers are saved
11069         will only be emitted if pic16_pcode_verbose flag is set,
11070
11071 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11072
11073         * src/ds390/ralloc.h,
11074         * src/ds390/ralloc.c (ds390_regWithIdx),
11075         * src/ds390/gen.c (emitcode),
11076         * src/ds390/main.h,
11077         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
11078         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
11079         ds390operandCompare, getRegsRead, getRegsWritten,
11080         initializeAsmLineNode): customized instruction size calculation for
11081         ds390, started basis for some register optimizations
11082         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
11083         corresponding assembly output
11084         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
11085         missing push/pop of r0/r1. Optimized push/pops
11086
11087 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11088
11089         * src/mcs51/main.c (instructionSize): fixed ACALL size
11090         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
11091
11092 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
11093
11094         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
11095         the sorting of rlist with NULL elements
11096         * (print_idataType, print_idata): NEW to create idata sections
11097         * src/pic16/device.h: idataSymSet new variable
11098         * src/pic16/gen.c (genFunction): fixed some bugs in string
11099         comparing, improved the absolute section creation for ISRs,
11100         added FSR0L/FSR0H in registers that are saved in an ISR,
11101         * (genInline): fixed the processing of inline snippets,
11102         now they undergo no process by the peephole optimizer
11103         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
11104         are placed in idataSymSet,
11105         * (pic16emitStaticSeg): extern symbols are added in externs,
11106         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
11107         switching when aboslute variables are placed in access bank memory
11108         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
11109         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
11110         commented out with #if,
11111         * (pic16_packRegisters): reintroduce the check for CAST because some
11112         symbols are not correctly handled,
11113         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
11114         pCodeInstruction instead of pCode,
11115         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
11116         pCodeAsmDir definition,
11117         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
11118         directive, then the argument directive is emitted without the leading
11119         tab, hack for inline labels which must be in the first column,
11120         * (compareLabel,pic16_findNextInstruction),
11121         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
11122         * (insertBankSwitch): modified for the new pCodeAsmDir,
11123
11124 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11125         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
11126
11127         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
11128         instance,
11129         * (pushSide): commented out with #if,
11130         * (assignResultValue): fixed some typos in saving
11131         registers,
11132         * (genPcall): FIXED and sync'ed with genCall,
11133         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
11134         * (genNearPointerGet): fixed to handle some more cases,
11135         implementation scheme via table reads,
11136         * (genConstPointerGet): modified to access code memory correct,
11137         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
11138         and improved to handle some cases
11139         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
11140         instead of "RETLW" for init data
11141         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
11142         not IN_DIRSPACE, work around to reduce bank switching when aboslute
11143         variables are placed in access bank memory (<0x80 and >=0xf80),
11144         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
11145         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
11146         TBLWT_POSTDEC,TBLWT_PREINC
11147         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
11148         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
11149         directives
11150         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
11151         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
11152         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
11153         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
11154
11155 2004-02-29  Borut Razem <borut.razem AT siol.net>
11156
11157         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
11158         support/Util/findme.h, support/Util/system.h: enhance binary relative
11159         search for lib and include by using findProgramPath()
11160
11161 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11162
11163         * src/SDCCpeeph.h,
11164         * src/SDCCpeeph.c (pcDistance),
11165         * src/port.h,
11166         * src/mcs51/ralloc.h,
11167         * src/mcs51/ralloc.c (mcs51_regWithIdx),
11168         * src/mcs51/main.h,
11169         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
11170         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
11171         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
11172         size calculation port specific, started basis for some register
11173         optimizations
11174         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
11175         missing push/pop of r0/r1. Optimized push/pops
11176         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
11177         * device/lib/_modsint.c (_modsint),
11178         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
11179         and stack version so regression tests pass
11180
11181 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
11182
11183         * src/Makefile.in (dep): include SLIBOBJS in dependency check
11184         * src/SDCCast.c (decorateType): catch another small optimization
11185         with '?' operator
11186         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
11187         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
11188         modified to finally use computeType() all over SDCC,
11189         see Feature Request #877103
11190         * src/SDCCval.h: cosmetic
11191         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
11192         valCompare(); regression tested in muldiv.c
11193         * support/regression/tests/muldiv.c (testMod): mod sign follows
11194         dividend only
11195
11196 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
11197
11198         * src/SDCCast.c (decorateType): fixed bug #902362
11199         * doc/INSTALL.txt: fixed install instructions for win32
11200
11201 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
11202
11203         * device/include/Makefile.in (install): fixed by replacing spaces
11204         by tabs
11205         * doc/README.txt,
11206         * doc/INSTALL.txt: updated for release
11207         * doc/sdccman.lyx: added warning for --xstack being buggy
11208
11209 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
11210
11211         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
11212         to eliminate build warnings.
11213         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
11214
11215 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
11216            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11217
11218         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
11219         removed -penable-stack, added comment for stack pragma, added
11220         warning for not initializing the stack/frame registers, removed
11221         comment at interrupts section
11222
11223         Stack is made permanent, there is no ability to disable stack usage.
11224         * src/pic16/device.h,
11225         * src/pic16/device.c: removed all references to USE_STACK macro,
11226         * src/pic16/device.c (pic16_dump_section): when no elements in
11227         rlist, free rlist before return,
11228         * (pic16_dump_int_registers): NEW, internal registers are a new set
11229         of general purpose registers reused by each function,
11230         * (checkAddReg): returns 1 if registers is added to set,
11231         * (pic16_groupRegistersInSection): when a registers is of type
11232         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
11233         * src/pic16/device.h: memRange and Assigned Memory are deleted,
11234         SRCASECMP macro is moved here from device.c
11235         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
11236         PO_PCLATU, PO_PRODL, PO_PRODH,
11237         * (pic16_pCodeOpType, genMinus,
11238         changed compares to "a" register, with AOP_ACC,
11239         * (pic16_genPlus): fixed some bugs and indented properly,
11240         * (pic16_addSign): changed size to size+offset in the MOVWF
11241         instruction,
11242         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
11243         multiply 8-bit operand by literal, result is 8-bit,
11244         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
11245         multiply 2 8-bit operand, result is 8-bit,
11246         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
11247         genUMult8X*_16,
11248         * src/pic16/gen.c: changed accUse to contain WREG only,
11249         * (pic16_emitcomment): renamed to pic16_emitpcomment,
11250         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
11251         true, do not use immediate addressing any more unless sym is a
11252         pointer in codespace,
11253         * (aopForRemat): do not use immediate addressing when symbol not in
11254         codespace and when symbol's address is requested,
11255         * (aopOp): for-loop in if(sym->accUse) is modified for the new
11256         accUse size (= 1),
11257         * (aopGet): added case for AOP_ACC and don't return "accumulator
11258         bug" but WREG instead,
11259         * (popGetTempReg): pushes contents of temporary register in stack,
11260         * (popReleaseTempReg): pops contents of temporary register from
11261         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
11262         * (pic16_popGet): separated case AOP_ACC to return register WREG
11263         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
11264         or PO_IMMEDIATE and initializes their instance/offset appropriately,
11265         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
11266         the use of immediate pointers to certain cases only.
11267
11268         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
11269         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
11270         * (assignResultValue, genCall, genRet): modified to use the new
11271         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
11272         genPcall is still broken,
11273         * (genFunction): added code to create 'A' type pBlocks when
11274         interrupt functions are generated, code not extensively tested yet,
11275         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
11276         * (genEndFunction): modified so ISRs pop stored registers from stack,
11277         * (genMultOneByte): cleanup,
11278         * (AccRsh): added flag andmask, to and result with appropriate mask,
11279         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
11280         * (genDataPointerGet): fixed and reenabled its use,
11281         * (genNearDataPointerGet): bugs fixed,
11282         * (genDataPointerSet): bugs fixed,
11283         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
11284         pic16_DumpSymbol, pic16_DumpOp,
11285         * src/pic16/genutils.h: function prototypes for the above functions,
11286         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
11287         pointers,
11288         * (pic16emitRegularMap): many many many improvements, but needs a
11289         major cleanup,
11290         * src/pic16/main.c: enable_stack in pic16_options is removed,
11291         * (_pic16_parseOptions): removed command line options -penable-stack,
11292         * (_process_pragma): emit stack symbol only when stack pragma is
11293         processed,
11294         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
11295         redirected to FSR0L/FSR0H pair,
11296         * (pic16_get_op, pic16_get_op2): modifications and improvements,
11297         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
11298         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
11299         for immediates,
11300         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
11301         * (dumpPicOptype): NEW,
11302         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
11303         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
11304         with movff instruction,
11305         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
11306         added pic16_int_regs, some packRegsFor* functions are commented out,
11307         because produce errors,
11308         * src/pic16/NOTES: minor modifications
11309
11310 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11311
11312         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
11313         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
11314         --pack-iram.
11315         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
11316         * as/mcs51/lkaomf51.c: fixed bug #895763
11317
11318 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
11319
11320         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
11321
11322 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11323
11324         * doc/sdccman.lyx: added details about the HC08 storage classes and
11325         interrupts, fixed the register usage info for z80 & gbz80
11326
11327 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
11328
11329         * doc/sdccman.lyx: added more pic16 port documentation
11330         * device/include/pic16/: added header pic18fregs.h
11331
11332 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
11333
11334         * doc/sdccman.lyx: added Vangelis' contribution
11335
11336 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11337
11338         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
11339         extend to the next CALL or PCALL, not just to the next CALL.
11340
11341 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
11342
11343         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
11344
11345 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11346
11347         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
11348         bug #895752 and a better fix for bug #716790
11349
11350 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11351
11352         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
11353
11354 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11355
11356         * doc/sdccman.lyx: minor changes, minor changed
11357
11358 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
11359
11360         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
11361         which can't handle SDCC_NEWONEBYTEOPS,
11362         (geniCodeMultiply): removed conversion from mult to shift for pic14
11363         and pic16
11364
11365 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11366
11367         * src/hc08/gen.h,
11368         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
11369         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
11370         thus fixing bug #895406
11371
11372 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
11373
11374         * device/lib/_modsint.c,
11375         * device/lib/_modslong.c: sign follows divisor only
11376         * src/hc08/gen.c (genMultOneByte): if result size is 1,
11377         signs or signedness can be ignored
11378         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
11379         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
11380         added optimization for IFX,
11381         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
11382         arguments;
11383         reenabled optimization for IFX, which was removed on 2004-01-11
11384         * src/SDCCast.h: added return type IFX
11385         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
11386         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
11387         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
11388         SDCC_OLDONEBYTEOPS selects the old behaviour
11389         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
11390         changed again and commented promotion rule
11391         * src/SDCCval.c (valDiv): promotion no longer necessary
11392         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
11393         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
11394         rewritten
11395         * support/regression/tests/onebyte.c: added
11396
11397 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
11398
11399         * gen.c (genInline): reverted to old code for assemnling inline
11400         code because of bug reported James Chadd
11401
11402 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
11403
11404         * ralloc.h: missing declarations from previous patch,
11405         seems that patch for ralloc.h was never applied, fixed
11406
11407 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11408            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
11409
11410         * pcode.c,
11411         * pcode.h,
11412         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
11413         indirect addressing. Marked FSR0 as deprecated
11414         * gen.c (pointerCode): commented out, not needed now
11415         (pic16_popGet2p): new MOVFF helper function
11416         (genGenPointerGet),
11417         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
11418         (shiftRLong): removed duplicate debugging info
11419
11420 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11421
11422         * src/ds390/gen.c (genNearPointerGet),
11423         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
11424         optimization with bits, but not bitfields.
11425         * src/ds390/ralloc.c (packRegisters),
11426         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
11427
11428 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
11429
11430         * src/SDCCcse.c (algebraicOpts): copy operands before modification
11431
11432 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11433
11434         * src/SDCCsymt.h,
11435         * src/SDCCicode.c (operandFromSymbol),
11436         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
11437         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
11438         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
11439         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
11440         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
11441         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
11442         bug #892038
11443         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
11444         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
11445         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
11446         * src/SDCCsymt.c (newSymbol),
11447         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
11448         enumerator_list),
11449         * src/SDCCval.h,
11450         * src/SDCCval.c (newiList): fixed bug #885705
11451
11452 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11453
11454         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
11455         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
11456
11457 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11458
11459         * device/include/c8051f120.h,
11460         * device/include/c8051f300.h,
11461         * device/include/c8051f310.h: added/updated header files for Silicon
11462         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
11463         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
11464         in new section Submitting patches
11465
11466 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11467
11468         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
11469         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11470         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11471         genGenPointerSet),
11472         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
11473         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11474         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11475         genGenPointerSet),
11476         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
11477         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11478         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11479         genGenPointerSet),
11480         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
11481         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11482         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11483         genGenPointerSet): fixed bug #892400
11484         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
11485         to eliminate build warnings.
11486         * src/SDCCast.c (processParms),
11487         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
11488         fixed bug 751859
11489         * support/valdiag/valdiag.py: added GCC to the list of defines active
11490         when compiling with gcc
11491
11492 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11493
11494         * support/Util/SDCCerr.h,
11495         * support/Util/SDCCerr.c,
11496         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
11497         with an incomplete type (fixed bug #883734)
11498         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
11499
11500 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11501
11502         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
11503
11504 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11505
11506         * src/SDCCast.c (decorateType),
11507         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
11508         function pointer implementation
11509         * support/regression/tests/funptrs.c: added tests to verify both forms
11510         of function pointers work correctly. Added tests to verify parameters
11511         are passed in the correct order.
11512
11513 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
11514
11515         * device.c (regCompare): registers are sorted by ascending
11516         address and increasing size,
11517         * main.c (_pic16_finaliseOptions): removed the declaration
11518         of compiler macro MCU. Now a macro of the format pic18fxxxx
11519         will be defined from the command line
11520
11521 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11522             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
11523
11524         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
11525         PCOP_RLCF was overwritten!
11526         * gen.c (genSkip): commented out calls to pic16_emitcode,
11527         * (genCmpEQ): fixed "long" compares, only high word did get compared,
11528         * (genlshTwo),
11529         * (genRRC): added debugging info,
11530         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
11531         overwritten while shifting,
11532         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
11533         overwritten while shifting,
11534         * (AccLsh),
11535         * (AccRsh),
11536         * (shiftLLeftOrResult),
11537         * (shiftRLeftOrResult),
11538         * (shiftRLong),
11539         * (shiftLLong): Implemented with pic16_emitpcode
11540         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
11541         * (genLeftShift): Fixed bug, operand for shift by variable always
11542         was "and"ed with 0x0f,
11543         * (genLeftShiftLiteral),
11544         * (genrshTwo),
11545         * (genRightShiftLiteral): added debugging info,
11546         * (genrshFour): added comment,
11547         * (genRightShift): determined signedness from operand "left"
11548         instead of "result"
11549
11550 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11551
11552         * src/SDCCicode.c (geniCodeParms),
11553         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
11554         function pointers, fixed function pointer bugs #861242 and #861896
11555
11556 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11557
11558         * device/include/c8051f000.h,
11559         * device/include/c8051f120.h,
11560         * device/include/c8051f300.h: added header files for Silicon
11561         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
11562
11563 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
11564
11565         * src/SDCCast.c (processParams): added new type flow and restructured
11566         (gatherAutoInit): added new type flow
11567         (addCast): cosmetic changes
11568         (getLeftResultType): added new type flow for array indices, patch
11569         provided by Stas, see FR #877103
11570         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
11571         array index patch by Stas
11572         * src/SDCCast.h: added prototype getResultTypeFromType()
11573         * src/SDCCval.h,
11574         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
11575         * src/pic/glue.c (pic14emitStaticSeg),
11576         * src/pic16/glue.c (pic16emitStaticSeg),
11577         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
11578         for initialization of symbols
11579         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
11580         * support/Util/SDCCerr.h:
11581         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
11582         * .version: bumped version number to 2.3.8
11583         * device/include/Makefile.in (install),
11584         * doc/Makefile (install): changed to 'rm `find ...`' construct to
11585         avoid warnings
11586
11587 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
11588
11589         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
11590         Slade Rich fixed an optimization bug
11591         * src/pic/pcodepeep.c,
11592         * src/pic/pcoderegs.c
11593         * doc/Makefile (install): added test for directory
11594
11595 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11596
11597         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
11598         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
11599         * src/pic/ralloc.c (getRegPtr, getRegGpr),
11600         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
11601         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
11602         * as/mcs51/asexpr.c (term),
11603         * as/hc08/asexpr.c (term): fixed bug #887146
11604
11605 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11606
11607         * src/z80/gen.c (genMult): handle single byte result product
11608         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
11609         DUMMY_READ_VOLATILE (fixed bug #886367)
11610
11611 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
11612
11613         * support/regression/tests/libmullong.c: fixed logic, on little endian
11614         hosts we ended without a mullong_wrapper()
11615
11616 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11617
11618         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
11619         virus/worm forged address usage.
11620
11621 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
11622
11623         Fixed promotion, it should be done on AST level:
11624         * src/SDCCast.c (addCast): added promotion to int
11625         (decorateType): updated call to upCast()
11626         * src/SDCCicode.c (geniCodeLeftShift): removed call to
11627         usualUnaryConversions()
11628
11629 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
11630
11631         * support/regression/tests/literalop.c (mulWrapper): Added a
11632         wrapper to remove integer overflow warnings.
11633
11634         * support/regression/tests/float_trans.c: Made work on host.
11635
11636         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
11637         location of sz80.
11638
11639         * support/regression/generate-cases.py (main): Changed from inline
11640         to a main method.
11641
11642         * doc/Makefile (install): Changed to depth first to get rid of
11643         missing directory install warning.
11644
11645         * as/Makefile (install-doc): Made work on Mac.
11646
11647 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
11648
11649         * src/SDCCast.c: added an additional type flow in decorateType() of
11650         opposite direction, see feature request #860006; it's enabled at runtime
11651         by setting the environment variable SDCC_NEWTYPEFLOW
11652         * src/SDCCast.h: changed prototype of decorateType()
11653         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
11654         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
11655         'char' to 'int' can be omitted, if both operands are 'unsigned char';
11656         see feature request #877103
11657         * src/SDCCval.c: updated call of decorateType()
11658         (valBitwise): fixed bug #882876
11659         (valMinus): added promotion
11660         (valLogicAndOr): result is unsigned
11661         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
11662         * src/SDCCsymt.c (computeType),
11663         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
11664         must not cause an unsigned operation
11665         * src/pic/glue (pic14emitRegularMap),
11666         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
11667
11668 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
11669
11670         * src/pic/pcode.c (PCodeID): commented out left over debug code
11671
11672 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
11673
11674         * support/valdiag/tests/overflow.c: added shift tests
11675         * src/pic/device.c,
11676         * src/pic/gen.c,
11677         * src/pic/gen.h,
11678         * src/pic/glue.c,
11679         * src/pic/main.c,
11680         * src/pic/pcode.c,
11681         * src/pic/pcode.h,
11682         * src/pic/pcodepeep.c,
11683         * src/pic/pcoderegs.c,
11684         * src/pic/ralloc.c,
11685         * src/pic/ralloc.h: applied patch from Slade Rich;
11686         added support for multiple code pages and multiple RAM banks on the
11687         PIC 14 port. The ASM files now no longer simply assume all the
11688         code / RAM are in the same page / bank. This means the linker can
11689         safely allocate code/RAM of separate ASM files to different pages/banks.
11690         * doc/sdccman.lyx: added Slade's tips
11691         * src/mcs51/peeph.def: fixed bug #880768
11692
11693 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11694
11695         * src/hc08/ralloc.c (rematStr): fixed bug #879282
11696         * src/SDCCast.c (decorateType): fixed bug #880197
11697
11698 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
11699
11700         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
11701         getopt.h.
11702
11703         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
11704         strtof is not part of C89 and isn't included with Mac OS X.
11705
11706 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11707
11708         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
11709         shiftL2Left2Result): fixed bug #879326
11710         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
11711         (genMultOneByte): fixed bug in signed vs unsigned multiplication
11712         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
11713         address fetch for clr instruction
11714         * device/lib/hc08/_mulint.c: created optimized assembly version
11715         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
11716
11717 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
11718
11719         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
11720         proposed in FR #877103
11721
11722 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
11723
11724         * src/SDCCval.c (cheapestVal): added missing checks
11725         * src/SDCCicode.c (usualBinaryConversions): fixed condition
11726         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
11727
11728 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
11729
11730         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
11731         equal operands
11732
11733 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
11734
11735         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
11736         loaded with the linker search paths (-L arguments) and the libraries
11737         to be linked with the current source (-l arguments). Changes
11738         currently will affect only the pic16 port.
11739         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
11740         include path the port specific paths and port specific libraries,
11741         * gplink command now contains the $3 argument,
11742         * src/pic16/device.h,
11743         * src/pic16/device.c,: structure PIC_device is made public and
11744         renamed to PIC16_device, the same for variable Pics which is renamed
11745         to Pics16. Updated all references to them.
11746         * src/pic16/glue.c (pic16glue): corrected bug with code
11747         initialization which bypassed the variable initializations block.
11748
11749         * device/lib/pic16/Makefile.rules: removed --penable-stack from
11750         COMPILE_FLAGS and added the --nostdinc option
11751
11752 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11753
11754         * device/include/mc68hc908jb8.h: Register defs for another member
11755         of the hc08 family. Contributed by Bjorn Bringert - thanks!
11756
11757 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
11758
11759         Documenting changes from previous commits.
11760         * configure.in (version 1.56),
11761         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
11762         when generating output files to configure the pic16 library,
11763         but now I've commented it out, since gputils aren't installed in the
11764         SF compile farm, so library won't compile
11765
11766         * device/lib/Makefile.in (version 1.56): initially I've added in
11767         target 'all' the prerequestive 'model-pic16' so it compiled the
11768         pic16 library, but now I've commented it out for the same reasons
11769         above,
11770         * added targets 'model-pic16' and 'objects-pic16' to compile the
11771         library
11772         * added target 'port-specific-objects-pic16' to handle the
11773         generated libraries and copy them into the build/ directory
11774         * added target 'clean-intermediate-pic16' to clean intermediate
11775         files into pic16 directory
11776         * in target 'installdirs' added line to create directory pic16 in
11777         the installation path
11778
11779         * device/include/Makefile.in (version 1.11): in target 'install'
11780         added lines to copy all header files to installation path,
11781         * in target 'installdirs' added line create directory for pic16
11782         headers in the installation path
11783
11784 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
11785
11786         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
11787          a function call
11788
11789 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
11790
11791         * configure,
11792         * device/lib/configure.in,
11793         * device/lib/configure: fixed for autoconf 2.57
11794
11795 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11796
11797         * src/z80/main.c (_parseOptions): fixed the portmode= command line
11798         option so that it actually works. Made it specific to the z80, since
11799         the gbz80 doesn't have these kinds of I/O ports.
11800
11801 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11802
11803         * device/include/z180.h,
11804         * device/lib/_memcpy.c,
11805         * device/lib/_memmove.c,
11806         * device/lib/_mulint.c,
11807         * device/lib/ser_ir.c,
11808         * device/lib/ser_ir_cts_rts.c,
11809         * device/lib/_strcmp.c,
11810         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
11811         * src/z80/main.c (_process_pragma): add support for pragmas bank and
11812         portmode; added deprecation warning for bank= and protmode= forms.
11813         Also, guard against buffer overflow.
11814         * src/z80/gen.c (aopGet): generate better code for sfr banked read
11815
11816 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11817
11818         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
11819         changed interrupt vector table generation to only emit declared vectors.
11820         * device/include/Makefile.in: added missing backslash
11821         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
11822
11823 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
11824
11825         Mainly changes to support compilation of the device libraries
11826         * src/pic16/device.c: stack is allocated via symbol and not
11827         via literal number. The symbol is placed in the corresponding
11828         position of the data ram
11829         * (pic16_dump_section): relocatable and absolute uninitialized
11830         data are now emitted in sorted order to reduce section naming,
11831         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
11832         weren't marked as being in the access bank,
11833
11834 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
11835
11836         Added portion of GNU PIC Library under the directory
11837         device/include/pic16 and device/lib/pic16. These files
11838         contain the declarations of SFRs for the PIC18Fxx2 devices.
11839         The directory is initialized via configure from toplevel.
11840
11841 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
11842
11843         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
11844         the spilllocations to be compared correctly
11845
11846 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
11847
11848         * src/SDCCast.c (decorateType): fixed bug introduced today
11849
11850 2004-01-12  Borut Razem <borut.razem AT siol.net>
11851
11852         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
11853         doc/sdccman.lyx: upper case pragmas are deprecated
11854
11855 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
11856
11857         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
11858         in simpler and even better code
11859
11860 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
11861
11862         * src/SDCCicode.c (operandOperation): fixed bug #874819
11863         * src/SDCCast.c (decorateType): fixed
11864         char foo (unsigned long ul) { return ul > 0; }
11865
11866 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11867
11868         * doc/sdccman.lyx: Moved and added some sections, small changes
11869         all over. Telling LaTeX to be less strict with word spacing
11870         to better keep the right margin. Changed some notes about
11871         maintainance of the ports in section 3.2.1 - is it OK like this?
11872
11873 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
11874
11875         SDCC source changes:
11876         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
11877         convilong): modified to inform the pic16 port that builtin functions
11878         are external
11879
11880         PIC16 PORT specific changes:
11881         * src/pic16/device.c pic16_dump_equates() added,
11882         processor registers declared internally by the port are emitted in
11883         the translation as equates,
11884         * src/pic16/gen.c: inline code is passed unprocessed to the
11885         translation,
11886         * (pic16_popGetLit2): fnuction modified to take second operand as
11887         pCodeOp pointer and not as literal,
11888         * (popRegFromIdx): prefixed with pic16_,
11889         * (pic16_popCombine2): modified to receive already allocated pCode
11890         operands,
11891         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
11892         * (genFunction): initializes local stack frame and pushes on stack
11893         all the registers used by this function,
11894         * (genEndFunction): restores all registers from stack and restores
11895         stack frame,
11896         * src/pic16/glue.c (pic16emitRegularMap): various changes and
11897         improvements,
11898         * (pic16glue): changed the program startup sequence,
11899         * added new dbName code 'A' for functions placed in absolute section
11900         * src/pic16/main.c: added function attribute _naked,
11901         * added pragma 'code' to place a fnuction at an absolute address,
11902         * added command line arguments --debug-ralloc and --pcode-verbose,
11903         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
11904         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
11905         * (pic16_newpCodeOpLit2): modified to take the second operand as
11906         pCodeOp pointer,
11907         * (pic16_printpBlock): modified to emit each function in a separate
11908         section,
11909         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
11910         UPPER for immediate operands,
11911         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
11912         instruction,
11913         * src/pic16/peeph.def: all peepholes with movff are commented out,
11914         because there is a problem in the pcode peep optimizer,
11915         * src/pic16/ralloc.c: the register allocator can now reuse local
11916         function symbols for another function. This saves register usage.
11917         * src/pic16/ralloc.h: added flag isLocal in structure regs,
11918
11919         Added file src/pic16/NOTES with information about program writing on
11920         the current port version.
11921
11922 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11923
11924         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
11925         and peephole 252 (array access)
11926
11927 2004-01-09  Borut Razem <borut.razem AT siol.net>
11928
11929         * src/SDCCmain.c : fixed #872250: -l command line defined library
11930           files are scanned before standard library files
11931
11932 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11933
11934         * src/SDCCast.c (decorateType): fixed bug #874046
11935
11936 2004-01-09  Borut Razem <borut.razem AT siol.net>
11937
11938         * support/scripts/sdcc.nsi: remove previous installation
11939
11940 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11941
11942         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
11943         bytes for last interrupt vector (mcs51)
11944         * sdcc.spec: fixed typo
11945
11946 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11947
11948         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
11949         gen51Code): more efficient parameter receive for --model-large
11950         ("bug" #845294)
11951
11952 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11953
11954         * src/ds390/main.c,
11955         * src/z80/main.c: added missed needLinkerScript flags (more than
11956         one port structure defined in these file)
11957         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
11958         bug #795325
11959
11960 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
11961
11962         * src/SDCCmain.c: removed various references to DEFAULT_PORT
11963         * src/port.h: added flag needLinkerScript in port->linker
11964         structure to inform whether to create a .lnk file or not,
11965         * src/avr/main.c,
11966         * src/ds390/main.c,
11967         * src/hc08/main.c,
11968         * src/mcs51/main.c,
11969         * src/pic/main.c,
11970         * src/pic16/main.c,
11971         * src/xa51/main.c,
11972         * src/z80/main.c: changed appropriately to configure
11973         needLinkerScript flag
11974         * src/pic/gen.c,
11975         * src/pic16/gen.c (genAddrOf): fixed bug #863624
11976         * src/pic/glue.c: added variable udata_section_name to
11977         override default uninitialized data segment definition for
11978         devices only with SHAREBANK memory (reported from Erik Epetrich)
11979         * (pic14emitOverlay): modified to emit a commented overlay segment
11980         directive when no overlay data exist
11981         * (picglue): modified to emit uninitialized data segment
11982         according to udata_section_name
11983         * src/pic/main.c (_pic14_parseOptions): added command line
11984         options --udata-section-name=[name] to override default
11985         udata definition name
11986         * modified _linkCmd and _asmCmd to include compiler passed
11987         arguments via -W option
11988         * src/pic16/main.c: added $l in _asmCmd, changed extension for
11989         object file from '.rel' to '.o' in port->linker structure,
11990         changed size of fptr from 2 to 3 in port structure
11991
11992 2004-01-07  Borut Razem <borut.razem AT siol.net>
11993
11994         * support/scripts/sdcc.nsi: update PATH
11995         * support/scripts/sdcc.ico: craeted
11996
11997 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
11998
11999         * device/include/Makefile.in: fix install
12000         * doc/Makefile: fix install
12001
12002 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12003
12004         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
12005         in bug #860505
12006         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
12007         how the function variable allocation summary is displayed; also
12008         include information about variables allocated to the overlay
12009         segment
12010
12011 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12012
12013         * as/mcs51/lkmain.c: Help about -Y option
12014         * as/mcs51/lkarea.c: Fixed gcc warnings
12015
12016 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
12017
12018         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
12019         fixed warning
12020         * support/valdiag/tests/overflow.c: added
12021         * src/SDCCast.c (decorateType),
12022         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
12023         LEFT_OP (left shift)
12024
12025 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12026
12027         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
12028         (default behaviour).
12029
12030 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12031
12032         A python script to validate compiler diagnostic messages. It can be
12033         used to verify that sdcc complains about bad c source code and
12034         gives a good location of the error.
12035         * support/valdiag/Makefile,
12036         * support/valdiag/valdiag.py,
12037         * support/valdiag/tests/*
12038
12039 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12040
12041         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
12042         * src/SDCCsymt.c (newEnumType),
12043         * src/SDCCsymt.h
12044         * support/Util/SDCCerr.c,
12045         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
12046         enum related bugs.
12047         * support/regression/tests/enum.c: added test for enum values that
12048         require at least 2 bytes of storage.
12049
12050 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
12051
12052         * src/common.h: added ifndef/define/endif macros
12053         around the header file.
12054         Bug reported from Jesus Calvino-Fraga
12055
12056 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
12057
12058         * sdcc.spec: updated
12059         * device/include/Makefile.in: don't install CVS directories
12060         * device/lib/Makefile.in: added removal of CVS directories after install
12061         * doc/Makefile: fixed install, added local_icons
12062         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
12063         * src/mcs51/gen.c (genRightShift): fixed bug #870788
12064         * src/ds390/gen.c (genRightShift): fixed bug #870788
12065         * src/SDCCast.c (decorateType): fixed bug #870781
12066
12067 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
12068
12069         PIC16 port related changes:
12070         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
12071         added variable stackPos,
12072
12073         * gen.c: genCall, assignResultValue: added support for
12074         pushing/retrieving function parameters to/from stack,
12075         genFunction,genEndFunction: setup stack frame for the
12076         generated function,
12077         genAddrOf: will be changed according to bug 863624
12078
12079         * added files genutils.c and genutils.h which contain gen*
12080         debugged and optimised functions extracted from gen.c
12081
12082         * glue.c: added variable 'externs' which holds extern symbols,
12083         pic16emitRegularMap: is modified to properly handle relocatable
12084          symbols under the new scheme,
12085         pic16createInterruptVect: is modified
12086         pic16printPublics: is modified to emit 'global' assembler directives,
12087         added pic16_printExterns to print extern symbols,
12088         pic16glue: initializes stack/frame pointer in the beginning of
12089         the assembly output. Temporary hack, will be corrected later,
12090         because gplink yet does not support stack and SDCC does not
12091         yet support a type of crt0.o object to create the final binary.
12092
12093         * Removed many lines that contain 8051 legacy code.
12094         * The code is finally placed under a 'code' directive.
12095         * Added port specific options.
12096
12097         * _process_pragma: simplified since now we do not need *special*
12098         include file to define SFR registers. But a separate header
12099         will be needed. This will be developed later.
12100         * _pic16_parseOptions: added, parses port specific options:
12101         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
12102         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
12103         --preplace-udata-with=
12104
12105         * _pic16_setDefaultOptions: modified to initialize section names,
12106         but hack is temporarly out of order since it needs improvement.
12107         * _pic16_genAssemblerPreamble: configuration words are emitted by
12108         their address instead of their name. This part is incomplete and
12109         supports only the 18Fxx2 devices. Other devices will emit an error
12110         during assembly since they do not contain the same set of config
12111         registers
12112         * _pic16_genIVT: is modified,
12113
12114         * pcode.c: added definitions for some hardware registers that are needed
12115         for stack support
12116         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
12117         All PCI entries are updated. Now LFSR is supported.
12118         * Removed pic16_pciTRIS is mentioned by mdubuc in source
12119         * added pic16_newpCodeOpLit2 to support instructions with
12120         two literal arguments
12121         * pic16_pCode2str: corrected code that emits assembler instructions
12122         with two literal operands and those that have an access bit modifier
12123         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
12124         this fixes a bug which caused some labels to be lost, when an
12125         assembler directive was added, i.e. banksel,
12126         * pic16_FixRegisterBanking: improved logic that causes the insertion
12127         of bank switching,
12128         * InlineFunction: functions that are called once, are not any more
12129         inlined. This can be a port option in the future,
12130
12131         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
12132
12133         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
12134         hold the corresponding uninitialized symbols,
12135         * pic16_allocProcessorRegister: registers have explicit marked the
12136         accessBank field,
12137         * pic16_allocInternalRegister: registers are explicit marked as
12138         not used,
12139         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
12140         processing list, so bit registers were lost,
12141         *
12142
12143         * ralloc.h: added field 'accessBank' and original symbol operand
12144         in register definition,
12145         * removed the field isMapped from register definition,
12146
12147         ** Several functions have been removed from various sources:
12148         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
12149         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
12150         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
12151         pic16_assignRelocatableRegisters
12152
12153         ** others have been introduced:
12154         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
12155         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
12156
12157 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
12158
12159         * support/scripts/inc2h.pl: changed definition of BIT_AT
12160         to emit 'sbit at' instead of 'bit at'. This was a request.
12161
12162         PIC16 port related preliminary changes:
12163         * gen.c: prefixed function popRegFromString with
12164         pic16_ and all references to it corrected
12165         * pcode.c: all pic16_pc_* hardware registers prefixed
12166         with underscore (_),
12167         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
12168         * ralloc.c: newReg(): when register is REG_SFR then
12169         set address to rIdx,
12170         pic16_allocProcessorRegister(): marks register wasUsed=0
12171         pic16_writeUsedRegs(): added a call to assign processor
12172         registers via pic16_assignFixedRegisters
12173
12174 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12175
12176         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
12177         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
12178         variables in unused register banks.  Also the SSEG is placed
12179         wherever there is enough space for it, and IDATA can be anywhere
12180         in internal RAM.  For now compile using -Wl-Y[stack_size].
12181         The mem file is different for this option as well, since it
12182         makes no sense of talking about DSEG lenght.
12183
12184 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
12185
12186         * src/SDCClrange.c: fixed bug 869095 that caused segfault
12187         in certain cases, e.g. when ROM assignment, patch provided
12188         from Albert den Haan.
12189
12190 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
12191
12192         Many signedness and type propagation fixes:
12193         * src/SDCCicode.c: made geniCodeCast() static
12194         replaced SPEC_ by IS_ (cosmetic)
12195         (operandOperation): fixed div and mod operation
12196         (usualBinaryConversions): added support for promotion of char
12197         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
12198         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
12199         (geniCodeAdd): an array index will stay unsigned, even if promoted
12200         from char to int
12201         (geniCodeArray): ditto
12202         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
12203         * src/SDCCsymt.c (computeType): added more support for char;
12204         promotion of char is selectable by promoteCharToInt, fixed signedness
12205         for all cases
12206         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
12207         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
12208         * src/SDCCval (val*): replaced signedness calculation by
12209         computeType()
12210         rearranged if-branches (cosmetic)
12211         (valShift): added warning W_SHIFT_CHANGED
12212         (valCompare): fixed problem with different types
12213         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
12214         * support/regression/tests/literalop.c: added many cases
12215         * support/regression/tests/ast_constant_folding.c: changed finally to
12216         'unsigned int'
12217         * .version: new year, new version: 2.3.7
12218         * src/SDCCmain.c (main): applied patch #866468
12219         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
12220         provided by Scott Bronson
12221         * doc/sdccman.lyx: updated documentation for sdcdb
12222         updated and added chapter tips
12223
12224 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12225
12226         * src/SDCCsymt.h: missing from yesterday's commits
12227
12228 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12229
12230         * src/SDCC.y (struct_or_union_specifier),
12231         * support/Util/SDCCerr.c,
12232         * support/Util/SDCCerr.h: verify that struct & union tags are used
12233         as declared.
12234
12235 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12236
12237         * src/SDCCglobl.h: missing from yesterday's commits
12238
12239 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12240
12241         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
12242         sft_attributes, struct_declaration, parameter_declaration,
12243         type_name, start_block, declaration_list),
12244         * src/SDCC.lex (check_type): support redefinition of typedef names
12245
12246 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12247
12248         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
12249         aligned xdata arrays. Erik helped me with the if clause.
12250
12251 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12252
12253         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
12254         warning
12255
12256 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12257
12258         * src/SDCCast.h,
12259         * src/SDCCast.c (newAst_),
12260         * src/SDCCicode.h,
12261         * src/SDCCicode.c (ast2iCode, newiCode),
12262         * src/SDCCglobl.h,
12263         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
12264         expr, statement, expression_statement, selection_statement,
12265         iteration_statement, expr_opt, jump_statement): foundation for tracking
12266         sequence points
12267         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
12268         point code too)
12269
12270 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12271
12272         * support/Util/SDCCerr.c,
12273         * src/SDCCast.h,
12274         * src/SDCCast.c (createCase, createDefault, decorateType),
12275         * src/SDCClabel.c (labelUnreach),
12276         * src/SDCC.y (labeled_statement, jump_statement): More improvements
12277         to error messages.
12278         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
12279         (with thanks to Stas Sergeev)
12280         * device/include/time.h,
12281         * device/lib/time.c (CheckTime): suppress unreachable code warning
12282
12283 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12284
12285         * src/SDCCast.c (createIvalCharPtr),
12286         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
12287         bug #753752)
12288         * support/regression/tests/nullstring.c: tests for these two bugs
12289
12290 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12291
12292         * support/Util/SDCCerr.h,
12293         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
12294         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
12295         about storage class and 'at' used inside struct or union
12296         * src/SDCCBBlock.c (iCodeFromeBBlock),
12297         * src/SDCCcse.c (ifxOptimize),
12298         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
12299         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
12300         printIval, emitStaticSeg, emitOverlay),
12301         * src/SDCClabel.c (deleteIfx),
12302         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
12303         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
12304         gatherAutoInit, processParms),
12305         * support/Util/SDCCerr.h,
12306         * support/Util/SDCCerr.c (werrorfl): Support for better error location
12307         reporting for post-parse errors.
12308
12309 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12310
12311         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
12312         implicit casts via union; they don't work on big endian systems
12313         (possible fix for bug #861138)
12314
12315 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12316
12317         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
12318         * src/mcs51/main.c: fixed the fix for bug #737001
12319
12320 2003-12-15  Borut Razem <borut.razem AT siol.net>
12321
12322         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
12323
12324 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12325
12326         * support/makebin/makebin.c: put output in binary mode
12327
12328 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12329
12330         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
12331         xdata and data memory on startup. Set the environment variable
12332         SDCC_NOGENRAMCLEAR to disable this.
12333         * src/mcs51/peephole.def,
12334         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
12335         (allows non-interrupt and interrupt code to safely compete for a resource
12336         without the non-interrupt code having to disable interrupts)
12337
12338 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12339
12340         * src/SDCCicode.c (geniCodeAdd),
12341         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
12342         with valFromType if type might be a pointer and host is big endian).
12343         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
12344         types, not just integer types.
12345         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
12346         multiply defined with mismatching "at" address.
12347
12348 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12349
12350         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
12351         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
12352         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
12353         with embedded nulls (fixed bug #753752)
12354
12355 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12356
12357         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
12358         Apparently this did not see much testing (endless loop)
12359
12360 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12361
12362         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
12363
12364 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12365
12366         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
12367         gracefully handle NULL memmap pointers
12368
12369 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12370
12371         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
12372         instead of deleting the iCode when an operand is volatile
12373         * src/z80/gen.c (genDummyRead),
12374         * src/mcs51/gen.c (genDummyRead),
12375         * src/ds390/gen.c (genDummyRead),
12376         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
12377         not just IC_RIGHT
12378         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
12379         * src/SDCC.y: fixed bug #850420
12380
12381 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12382
12383         Applied z80 i/o port patch from Peter Townson and fixed some operators
12384         to better handle operands in A register.
12385         * device/include/z180.h
12386         * src/SDCC.y
12387         * src/SDCCglue.c
12388         * src/z80/gen.c
12389         * src/z80/gen.h
12390         * src/z80/main.c
12391         * src/z80/peeph-z80.def
12392         * src/z80/peeph.def
12393         * src/z80/z80.h
12394
12395 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12396
12397         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
12398
12399 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12400
12401         * device/lib/hc08/_mullong.c: Removed extra #endif
12402
12403 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12404
12405         * sim/ucsim/hc08.src/inst.cc,
12406         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
12407         carries from x to h
12408         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
12409         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
12410         * device/include/stdarg.h: fixed varargs for hc08
12411         * device/lib/Makefile.in,
12412         * device/lib/hc08/Makefile,
12413         * device/lib/hc08/_mulint.c,
12414         * device/lib/hc08/_mullong.c: fixed some endian problems
12415
12416 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12417
12418         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
12419         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
12420         * device/lib/_gptrget.c,
12421         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
12422
12423 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12424
12425         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
12426         * src/SDCCast.c (astErrors): fixed bug #846007
12427         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
12428
12429 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12430
12431         * src/SDCCast.c (decorateType): disabled a transformation I added in
12432         revision 1.188 (access to fields of a structure at an absolute address);
12433         it breaks with bitfields, extern declarations, and gcse analysis.
12434         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
12435         could be assigned through a pointer, so don't complain.
12436         * src/SDCCast.c (astErrors),
12437         * src/SDCCast.h,
12438         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
12439
12440 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
12441
12442         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
12443         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
12444         output of __config directives, since gpasm now supports them
12445         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
12446         pre-processor macro, i.e. -DMCU=p18f452
12447         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
12448         and modified to handle 'cast' icode similarly to '=' icode
12449         * src/pic16/device.h (typedef struct PIC_device): added field
12450         'extMIface' to indicate that chip has external memory interface
12451         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
12452         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
12453         18F8720
12454
12455 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12456
12457         * src/SDCC.y (pointer): fixed bug #846006
12458         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
12459         * src/SDCCast.c (decorateType): fixed bug #846009
12460         * src/ds390/peeph.def,
12461         * src/ds390/gen.c (genAnd, genOr),
12462         * src/mcs51/peeph.def,
12463         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
12464
12465 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12466
12467         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
12468         * src/SDCCdflow.c
12469         * src/SDCCcse.c
12470         * src/SDCCcse.h
12471         * src/SDCCBBlock.h
12472         * src/SDCCBBlock.c
12473
12474 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
12475
12476         fixed bug #845089
12477         * src/SDCCbitv.h,
12478         * src/SDCCbitv.c: added function to free a bitvector
12479         * src/SDCClrange.h,
12480         * src/SDCClrange.c: added function to recompute the liveranges
12481         * src/avr/ralloc.c,
12482         * src/ds390/ralloc.c,
12483         * src/hc08/ralloc.c,
12484         * src/mcs51/ralloc.c,
12485         * src/pic/ralloc.c,
12486         * src/pic16/ralloc.c,
12487         * src/xa51/ralloc.c,
12488         * src/z80/ralloc.c: recompute the liveranges after register packing
12489
12490 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
12491
12492         * src/SDCCloop.c (newInduction): fixed bug #845630
12493
12494 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12495
12496         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
12497         inadvertantly left behind from my 2003-11-12 change
12498
12499 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12500
12501         Updated headers I neglected to commit yesterday.
12502         * src/SDCClrange.h,
12503         * src/SDCCicode.h
12504
12505 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12506
12507         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
12508         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
12509         * src/SDCCopt.c (eBBlockFromiCode),
12510         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
12511         the creation of the key hash table from the sequencing so it can be used
12512         earlier (for some GCSE bug fixes still pending)
12513
12514 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12515
12516         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
12517         * support/regression/tests/addsub.c: testing genPlus shortcut
12518
12519 2003-11-15  Borut Razem <borut.razem AT siol.net>
12520
12521         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
12522
12523 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12524
12525         * src/SDCCcse.c (cseBBlock): fixed bug #527779
12526         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
12527         ordering is immaterial.
12528         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
12529
12530 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12531
12532         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
12533         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
12534         (SIGSEV) of bug #840381
12535         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
12536         unlink new file before rename if new and old filenames are the same)
12537
12538 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12539
12540         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
12541         uninitialized variables) for the mcs51. Set environment variable
12542         SDCC_GENRAMCLEAR to test.
12543         xdata initialization slightly shorter
12544
12545 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12546
12547         * src/SDCCsymt.h,
12548         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
12549         #838241 & 780691 (basicly the same bug)
12550         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
12551         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
12552
12553 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
12554
12555         * src/SDCCmain.c (linkEdit): "fix" #834252
12556
12557 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12558
12559         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
12560         * src/SDCCast.h,
12561         * src/SDCC.y: fixed bug #819403
12562
12563 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12564
12565         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
12566         the reentrant attribute.
12567         * src/hc08/gen.c (genPackBits): added missing stack readjustment
12568         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
12569         simulation
12570         * src/SDCCast.c (decorateType): fixed bug with storage class not being
12571         updated during pointer dereference; f.e. ~(((char *)1)*) was being
12572         erroneously reduced to a literal.
12573         * src/hc08/ralloc.c (packRegisters, rematStr),
12574         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
12575         some cases
12576
12577 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12578
12579         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
12580         * doc/sdccman.lyx: changed from 'article' to 'book'
12581         * doc/Makefile: readded test_suite_spec and cdbfileformat
12582
12583 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
12584
12585         * device/include/stdlib.h: include malloc.h to comply with ANSI
12586         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
12587
12588 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12589
12590         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
12591         * doc/clean.mk: also remove *.out files
12592         * doc/sdccman.lyx: some additions, larger top/bottom margins
12593
12594 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12595
12596         * src/SDCC.y: fixed bug #837365
12597         * support/regression/tests/bitopcse.c
12598         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
12599         a symbol (might be valop instead)
12600         * device/lib/Makefile.in: added errno.c to HC08SOURCES
12601         * device/lib/clean.mk: added hc08 to the cleaning list
12602
12603 2003-11-04  Borut Razem <borut.razem AT siol.net>
12604
12605         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
12606           made 2003-11-04
12607         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
12608           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
12609           malloc is declared in standard stdlib.h
12610
12611 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12612
12613         * device/lib/hc08/Makefile: need to clean .rel not .o files
12614         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
12615
12616 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12617
12618         * src/port.h,
12619         * src/hc08/main.c,
12620         * src/mcs51/main.c,
12621         * src/ds390/main.c,
12622         * src/z80/main.c,
12623         * src/avr/main.c,
12624         * src/pic/main.c,
12625         * src/pic16/main.c,
12626         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
12627         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
12628         tests (which uses the port's oclsExpense function)
12629         * src/SDCC.y,
12630         * src/SDCCast.c,
12631         * src/SDCCicode.c,
12632         * src/hc08/gen.c,
12633         * src/ds390/gen.c,
12634         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
12635
12636 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12637
12638         * src/SDCCcse.c (ifxOptimize),
12639         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
12640         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
12641         deleting the IFX iCode.
12642         * src/hc08/ralloc.c: reduced unneeded slocs
12643         * src/hc08/gen.c: fixed bug in asmopToBoolean
12644
12645 2003-11-04  Borut Razem <borut.razem AT siol.net>
12646
12647         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
12648           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
12649           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
12650           transferred to configure
12651
12652 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
12653
12654         Use headers defined in the C[++] standards:
12655         * sim/ucsim/gui.src/serio.src/fileio.cc
12656         * sim/ucsim/gui.src/serio.src/frontend.cc
12657         * sim/ucsim/gui.src/serio.src/main.cc
12658         * sim/ucsim/gui.src/serio.src/posix_signal.cc
12659         * support/Util/NewAlloc.c
12660         * as/hc08/lklibr.c
12661         * as/mcs51/lklibr.c
12662         * as/z80/aslist.c
12663         * as/z80/assym.c
12664
12665 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12666
12667         * Added MSVC projects for hc08 assembler and linker:
12668         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
12669         /as/hc08/link_hc08.dsp
12670
12671 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
12672
12673         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
12674
12675 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
12676
12677         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
12678
12679 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12680
12681         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
12682
12683 2003-10-31  Borut Razem <borut.razem AT siol.net>
12684
12685         * support/cpp2/cpplib.h,
12686           support/cpp2/cpplib.c,
12687           support/cpp2/cpplex.c,
12688           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
12689           to switch _asm block preprocessing on / off. Default is
12690           #pragma preproc_asm +
12691
12692 2003-10-31  Borut Razem <borut.razem AT siol.net>
12693
12694         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
12695           when outputting comment blocks (when executed with -C option) and
12696           _asm (SDCPP specific) blocks
12697
12698 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12699
12700         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
12701
12702 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
12703
12704         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
12705
12706 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
12707
12708         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
12709         * src/SDCCast.c (decorateType): fixed bug #832664
12710
12711 2003-10-31  Borut Razem <borut.razem AT siol.net>
12712
12713         * support/cpp2/cpplex.c: fixed for SDCPP:
12714           comments(when executed with -C option) and _asm blocks
12715           were included even if they where in skipped #if block.
12716           Applied solution from GCC cpp 3.3.2
12717
12718 2003-10-31  Borut Razem <borut.razem AT siol.net>
12719
12720         * src/SDCC.lex: sdcc now understands both formats:
12721           '# <line_number> <file_name>' and
12722           '#line <line_number> <file_name>'
12723         * support/cpp2/cppmain.c: sdcpp now generates the standard
12724           '# <line_number> <file_name>' instead of former
12725           '#line <line_number> <file_name>'
12726
12727 2003-10-30  Borut Razem <borut.razem AT siol.net>
12728
12729         * support/cpp2/cpphash.h,
12730         * support/cpp2/cpplib.h
12731         * support/cpp2/cpplex.c,
12732         * support/cpp2/cppmain.c,
12733         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
12734
12735 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12736
12737         Fixed a number of problems revealed by bug #827883.
12738         * src/SDCCloop.c (loopInvariants): Spill location of the
12739         result operand should be recomputed if extracted from
12740         a loop. Also, don't extract assignments of an iTemp
12741         from a literal.
12742         * src/SDCCast.c (isConformingBody): loop reversal should
12743         not occur if the control variable is involved with a
12744         relational operator.
12745
12746 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
12747
12748         * .version: bumped to 2.3.6 to reflect the big improvements
12749         made by Erik and Klaus. Thanks!
12750
12751 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
12752
12753         Replaced the livrange code.
12754         * src/SDCClrange.c: added new LR code
12755         * src/SDCCloop.c,
12756         * src/SDCCBBlock.h: removed remainig parts from old LR code
12757         * src/ds390/ralloc.c,
12758         * src/ds390/gen.c: minor fixes to make it work with new code
12759
12760 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12761
12762         * as/hc08/asm.h,
12763         * as/hc08/lkrloc.c,
12764         * src/hc08/gen.c,
12765         * src/hc08/ralloc.c: Fix various warnings related to the hc08
12766         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
12767         (tweaked fix for bug #818696)
12768
12769 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12770
12771         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
12772
12773 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12774
12775         * src/SDCCmain.c,
12776         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
12777         * src/mcs51/gen.c (gencjneshort),
12778         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
12779         more efficient (per Scott Bronson's suggestion)
12780
12781 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12782
12783         Extended the semantics of the critical keyword to include
12784         individual statements. See RFE #827755 and #799831
12785         * src/SDCC.y
12786         * src/SDCCicode.c
12787         * src/SDCCopt.c
12788         * src/SDCCast.c
12789         * support/Util/SDCCerr.c
12790         * support/Util/SDCCerr.h
12791         * src/mcs51/gen.c
12792         * src/ds390/gen.c
12793         * src/hc08/gen.c
12794
12795 2003-10-19  Borut Razem <borut.razem AT siol.net>
12796
12797         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
12798
12799 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12800
12801         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
12802         Fixed bug #818696
12803         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
12804         and predecrement operand is displayed
12805
12806 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
12807
12808         * src/SDCCval.c (valMinus): fixed bug #826041
12809
12810 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12811
12812         Some hc08 related updates that I missed earlier
12813         * sim/ucsim/stypes.h
12814         * support/regression/ports/hc08/spec.mk
12815
12816 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12817
12818         New target "hc08" for the Motorola 68hc08 family of micros
12819
12820         * configure
12821         * configure.in
12822         * Makefile
12823         * src/hc08/*
12824         * src/SDCCmain.c
12825         * src/port.h
12826         * sim/ucsim/hc08.src/*
12827         * sim/ucsim/configure.in
12828         * src/ucsim/configure
12829         * sim/ucsim/packages_in.mk
12830         * as/hc08/*
12831         * as/Makefile
12832         * device/include/mc68hc908qy.h
12833         * device/lib/hc08/*
12834         * device/lib/Makefile.in
12835         * support/regression/ports/hc08/*
12836         * support/regression/Makefile
12837
12838 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12839
12840         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
12841         regression test
12842         * src/ds390/gen.c (genCast): fixed bug #821957
12843
12844 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
12845
12846         * device/lib/logf.c: "fixed" overlay bug
12847         * support/regression/ports/host/spec.mk: added m library
12848         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
12849         * support/regression/tests/float_trans: added (for Eric)
12850
12851 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
12852
12853         * src/mcs51/gen.c (genCpl): fixed bug
12854         http://sf.net/mailarchive/message.php?msg_id=6263915
12855
12856 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
12857
12858         * src/SDCCast.c (decorateType): added extended constant folding
12859         * src/SDCCsymt.c (computeType): cleanup
12860         * src/SDCCval.c (valShift): minor optimization
12861         * support/regression/tests/ast_constant_folding.c: added
12862
12863 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12864
12865         * src/SDCCmain.c: removed some unintended changes
12866
12867 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12868
12869         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
12870         * src/z80/gen.c: fixed part of bug #817589
12871         * src/SDCCsymt.c (checkFunction): fixed bug #817895
12872
12873 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
12874
12875         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
12876         * src/SDCCcflow.c
12877         * src/SDCCcse.c
12878         * src/SDCCdflow.c
12879         * src/SDCClabel.c
12880         * src/SDCClrange.c
12881         * src/SDCCmem.c
12882         * src/SDCCopt.c
12883         * src/SDCCpeeph.c
12884         * src/SDCCset.c
12885         * src/avr/ralloc.c
12886         * src/ds390/ralloc.c
12887         * src/izt/ralloc.c
12888         * src/mcs51/ralloc.c
12889         * src/pic/ralloc.c
12890         * src/pic16/ralloc.c
12891         * src/xa51/ralloc.c
12892         * src/z80/ralloc.c
12893         * src/z80/gen.c: removed unused label "release:"
12894
12895 2003-10-06  Borut Razem <borut.razem AT siol.net>
12896
12897         * src/SDCC.lex: removed definition of unused variables
12898           save_optimize and save_options
12899
12900 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
12901
12902         * clean.mk: removed '=' in "-maxdepth=1"
12903         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
12904         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
12905
12906 2003-10-06  Borut Razem <borut.razem AT siol.net>
12907
12908         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
12909           my_unput() replaced by unput()
12910
12911 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
12912
12913         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
12914         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
12915         type-punned pointer will break strict-aliasing rules"
12916         Old LR behaviour is again default; Klaus' LR can be choosen by
12917         defining the environment variable LRKLAUS
12918         * src/SDCCBBlock.h
12919         * src/SDCCloop.c
12920         * src/SDCClrange.c
12921         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
12922         * clean.mk: fixed removal of files in bin/CVS/
12923         * device/lib/clean.mk: fixed removal of directories small and large
12924         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
12925         * src/SDCCicode.c,
12926         * src/SDCCval.c: removed superflous test for pedantic
12927
12928 2003-10-05  Borut Razem <borut.razem AT siol.net>
12929
12930         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
12931           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
12932           message "unmatched #pragma SAVE and #pragma RESTORE"
12933
12934 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12935
12936         * doc/sdccman.lyx: various additions and updates (interrupts, inline
12937           assembly, critical functions, atomic, nojtbound)
12938
12939 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
12940
12941         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
12942         * src/SDCCBBlock.h
12943         * src/SDCCloop.c
12944         * src/SDCCloop.h
12945         * src/SDCClrange.c
12946
12947 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12948
12949         * src/z80/gen.h,
12950         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
12951         * src/mcs51/gen.h
12952         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
12953         * src/ds390/gen.h
12954         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
12955         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
12956         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
12957
12958 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12959
12960         * src/z80/gen.c (genRet): fixed bug #524753
12961         * src/z80/gen.c (genCast): fixed internal error on cast from
12962         pointer to long
12963         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
12964         fix for bug #477835 to the z80
12965         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
12966         for tracking iCodes in the peephole optimizer for z80
12967
12968 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12969
12970         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
12971         the other part of bug #814548
12972         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
12973
12974 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
12975
12976         * src/SDCCcse.c: fixed part of bug #814548
12977
12978 2003-09-28  Borut Razem <borut.razem AT siol.net>
12979
12980         * src/asm.c: rewrite of printILine() to use temporary file instead
12981           a pipe
12982         * src/xa51/main.c: commented out declaration of int rewinds
12983
12984 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12985
12986         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
12987
12988 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12989
12990         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
12991         * src/asm.c (printILine): Fixed bug #811015
12992
12993 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12994
12995         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
12996         freeing.
12997
12998 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12999
13000         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
13001         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
13002         to correctly handle general case of AOP_PAIRPTR
13003         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
13004
13005 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13006
13007         * src/mcs51/ralloc.c (fillGaps),
13008         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
13009         register positioning bug)
13010
13011 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
13012
13013         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
13014
13015 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13016
13017         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
13018         genCodePointerGet, genGenPointerGet, genFarPointerSet,
13019         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
13020         (ralloc doesn't intentionally do this now, but perhaps later)
13021         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
13022         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
13023         register positioning bugs (Fixed bug #762602 and #795325)
13024         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
13025         (Fixed bug #808779)
13026         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
13027         lines that --i-code-in-asm generates
13028
13029 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13030
13031         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
13032         trying to fclose a FILE* that was already closed.
13033
13034 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13035
13036         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
13037         of const struct should be treated as if const themselves)
13038
13039 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
13040
13041         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
13042
13043 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13044
13045         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
13046         Unix (/n) and DOS (/r/n) line terminations.
13047
13048 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13049
13050         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
13051         bug #613775
13052
13053 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13054
13055         * src/mcs51/gen.c (genFunction, genEndFunction),
13056         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
13057         and restore of EA so that stack offsets to parameters are
13058         correct when using both critical and reentrant/stack-auto.
13059         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
13060         size (can be triggered in error if sloc is shared between
13061         different sized objects)
13062         * device/include/float.h: fixed macros to explicitly use
13063         unsigned long where needed
13064
13065 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
13066
13067         Feature req. 799831: added code to allow nesting of critical functions
13068         * src/mcs51/gen.c (genFunction, genEndFunction)
13069         * src/ds390/gen.c (genFunction, genEndFunction)
13070
13071 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13072
13073         * src/SDCCsymt.c (sclsFromPtr),
13074         * src/SDCCsymt.h,
13075         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
13076         support for standard C idiom of memory mapped variables; for
13077         example, *((xdata int*)0x1234) = 1 is now internally equivalent
13078         to xdata int at 0x1234 tempvar = 1.
13079         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
13080         provided by Akiya ISHIDA
13081
13082 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
13083
13084         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
13085         * src/SDCCval.c (constVal): added reduction from int to char
13086         * src/SDCCval.c (valMult, valDiv): fixed sign handling
13087         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
13088         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
13089         to ignore the sign
13090         * support/regression/tests/shifts.c: fixed
13091
13092 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13093
13094         * src/z80/gen.c (genXor): Fixed bug #805445
13095
13096 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13097
13098         Fixed bug #621531 (const & volatile confusion in the type chain).
13099         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
13100         refer to the const or volatile state of the pointer itself.
13101
13102         * src/SDCCast.c
13103         * src/SDCCglue.c
13104         * src/SDCCicode.c
13105         * src/SDCCsymt.c
13106         * src/SDCCval.c
13107         * src/SDCC.y
13108         * src/SDCCsymt.h
13109         * src/pic/gen.c
13110         * src/pic/ralloc.c
13111         * src/pic16/gen.c
13112         * src/pic16/ralloc.c
13113         * support/regression/tests/const.c
13114
13115 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13116
13117         When checking for duplicated modules, use absolute paths
13118         instead of relative paths.  Files changed:
13119
13120         * as/mcs51/lklib.c
13121         * link/z80/lklib.c
13122
13123 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13124
13125         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
13126
13127 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13128
13129         * device/include/string.h: added size_t typedef, changed
13130         prototypes to use size_t, eliminated separate reentrant and
13131         non-reentrant declarations, added _memmove declaration
13132         * device/lib/_memcpy.c: changed to use size_t instead of int,
13133         changed /4 to >>2 to avoid division library call
13134         * device/lib/_memcmp.c,
13135         * device/lib/_memset.c,
13136         * device/lib/_strncat.c,
13137         * device/lib/_strncpy.c,
13138         * device/lib/_strncmp.c: changed to use size_t instead of int
13139         * device/lib/_memmove.c: new file (fixed bug #772294)
13140         * device/lib/Makefile.in: added _memmove.c
13141         * device/lib/z80/asm_strings.s: fixed bug #772290
13142         * support/regression/tests/bitfields.c: attempt to fix host assertion
13143         failure on amd64-unknown-linux2.2
13144
13145 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13146
13147         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
13148         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
13149         * as/z80/asmain.c (main): fixed bug #801766
13150
13151 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
13152
13153         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
13154         compilers
13155
13156 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13157
13158         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
13159         reported in bug #800609
13160
13161 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
13162
13163         * Top header beautifications in src/pic16 directory:
13164           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
13165           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
13166           pcoderegs.h, ralloc.c, ralloc.h
13167         * main.c: added top header and GPL license notice
13168         * pcode.c: fixed the if-conditional warning
13169
13170 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
13171
13172         * device/lib/_mullong.c: replaced int by short for gcc
13173
13174 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13175
13176         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
13177         and JUMPTABLE iCodes properly now (worked by accident before)
13178         * src/mcs51/gen.c (leftRightUseAcc),
13179         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
13180         iCode properly now. Use getSize instead of nRegs since a & b
13181         aren't part of the nRegs tally.
13182
13183 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
13184
13185         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
13186         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
13187           before instructions that use the _STATUS register
13188
13189 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
13190
13191         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
13192         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
13193         fetching of the pointer
13194         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
13195         copied from genNearPointerSet()
13196         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
13197         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
13198         If they pop r0/r1 they must be called in the opposite order than aopOp().
13199         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
13200         (resp. --stack-auto), prepared for --xstack
13201
13202 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13203
13204         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
13205
13206 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
13207
13208         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
13209         these ports have their own __sdcc_external_start()
13210
13211 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
13212
13213         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
13214         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
13215         type for bits was changed. It resulted in bit variables becoming
13216         global, which is not permitted in PIC 14 assembly output.
13217
13218 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13219
13220         * doc/sdccman.lyx: various additions and updates. Rearranged sections
13221
13222 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13223
13224         Z80 and MCS51 linkers complaint if a public symbol is defined
13225         in more than one library module:
13226
13227         * as/mcs51/lklib.c
13228         * link/z80/lklib.c
13229         * as/mcs51/Makefile.in
13230
13231 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13232
13233         A few small changes that speed up the peephole optimizer.
13234
13235         * src/SDCCpeeph.c
13236
13237 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13238
13239         Try to make the peephole optimizer smarter by maintaining
13240         an association between the assembly source code and the
13241         iCodes that originated them. Put this information to use
13242         with a new peephole rule condition "notVolatile" so that
13243         the rules can be aggressive yet still safe.
13244
13245         * src/SDCCpeeph.c
13246         * src/SDCCpeeph.h
13247         * src/mcs51/gen.c
13248         * src/mcs51/peeph.def
13249
13250 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13251
13252         Fixed bug #741761
13253
13254         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
13255         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
13256         if the left or right operand symbols have the accuse flag set.
13257
13258 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13259
13260         Changed the type of the result of the ! (NOT) operator to char;
13261         previously it returned the same type as the source. This allows
13262         us to eliminate all the genFloatNot functions (all of its target
13263         implementations were very buggy) since !float can use the same
13264         code as !long now.
13265
13266         * src/SDCCicode.c (ast2iCode): ! returns char
13267         * src/mcs51/gen.c (genNot, genNotFloat),
13268         * src/ds390/gen.c (genNot, genNotFloat),
13269         * src/z80/gen.c (genNot, genNotFloat),
13270         * src/pic/gen.c (genNot, genNotFloat),
13271         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
13272
13273 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
13274
13275         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
13276         1. Interrupt would not compile properly. Ensure PCLATH register is saved
13277            during interrupts. Ensure WSAVE is located at a shared bank address.
13278         2. Fixed page selection in some places
13279         3. Fixed BTFSS/C to where necessary use registers directly and not simply
13280            the registers name strings.
13281         4. Fixed "signed / unsigned compare" compiler warnings.
13282         5. The PIC port manages its own allocation of the general purpose
13283            registers, but makes no attempt to reuse them. As a result when
13284            compiling it soon runs out of general purpose registers. Some
13285            additional code was added to the files pcode.c and device.c to walk
13286            through the function call tree and rename the registers so that they
13287            get reused.
13288
13289         * src/pic/device.c
13290         * src/pic/gen.c
13291         * src/pic/glue.c
13292         * src/pic/pcode.c
13293         * src/pic/pcode.h
13294         * src/pic/ralloc.c
13295         * src/pic/ralloc.h
13296         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
13297         genPlus() & genMinus() when the result is the same as left or right
13298
13299 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13300
13301         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
13302
13303 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13304
13305         Made bitfield a distinct type from bit so that bitfields
13306         convert as per ANSI C and bits retain their traditional
13307         boolean style behaviour. Implemented bitfield support in
13308         the z80 port.
13309
13310         * src/SDCCsymt.h,
13311         * src/SDCCsymt.c,
13312         * src/SDCCast.c,
13313         * src/cdbFile.c,
13314         * src/mcs51/gen.c,
13315         * src/ds390/gen.c: bit v bitfield split
13316         * src/z80/gen.c: New support for bitfields
13317         * support/regression/tests/bitfields.c: reenabled z80,
13318         added more tests
13319
13320 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13321
13322         Rules 246.x, 247.x relate to bitfields, the others speed up
13323         access to xdata mapped I/O devices.
13324
13325         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
13326
13327 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13328
13329         Cleaned up genPackBits and genUnpackBits and added two helper
13330         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
13331         for literal assignments in genPackBits (thanks to Frieder for
13332         reminding me).
13333
13334         * src/mcs51/gen.c
13335         * src/ds390/gen.c
13336
13337 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13338
13339         Fixed bug #748310 (pointer to function type mishandled when the
13340         function name is omitted). Also fixed a SIGSEGV when a function
13341         attribute (reentrant, etc) is used on a non-function or on a
13342         function but misplaced before the parameter list.
13343
13344         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
13345         bug #748310
13346         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
13347         * support/Util/SDCCerr.h,
13348         * support/Util/SDCCerr.c: Added func attr misuse error msg
13349
13350 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
13351
13352         Fixed bug #787649 by anonymous
13353         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
13354         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
13355
13356 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13357
13358         Fixed numerous bitfield problems.
13359
13360         * src/SDCC.y: More bitfield related error checking
13361         * src/SDCCsymt.h,
13362         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
13363         * support/Util/SDCCerr.h,
13364         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
13365         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
13366         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
13367         * support/regression/tests/bitfields.c: tests added
13368
13369 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13370
13371         Made the constant following the "interrupt" keyword optional. If
13372         omitted, the function will not automatically be given an entry
13373         in the interrupt vector table (similar to #pragma NOIV, but
13374         less syntacticly kludgy). The interrupt number is also now
13375         range checked. Also fixed a bug in the high order bit example
13376         in the manual.
13377
13378         * src/SDCC.y
13379         * src/SDCCmem.c
13380         * src/SDCCglue.c
13381         * src/SDCCsymt.h
13382         * support/Util/SDCCerr.c
13383         * support/Util/SDCCerr.h
13384         * doc/sdccman.lyx
13385
13386 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
13387
13388         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
13389         * src/SDCCicode.c (operandOperation): rewritten some ops
13390         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
13391         * src/SDCCsymt.c (computeType): literals are handled the same way as any
13392         other type
13393         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
13394         be re-activated by defining REDUCE_LITERALS)
13395         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
13396         unsigned, but are signed by default
13397         * src/SDCCval.c (constVal): rearranged
13398         * src/SDCCval.c (valMod): preliminary fix
13399         * src/SDCCval.c (valCastLiteral): use TYPE_* types
13400         * support/regression/literalop.c: added, work in progress
13401
13402 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13403
13404         Generate warnings for useless declarations like "char data;"
13405         that don't do what new users expect.
13406
13407         * src/SDCC.y
13408         * support/Util/SDCCerr.h
13409         * support/Util/SDCCerr.c
13410
13411 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
13412
13413         * src/SDCCval.c (valMult): fix overflow detection of negative int
13414
13415 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13416
13417         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
13418
13419         Changes to support big endian targets:
13420
13421         * src/ports.h
13422         * src/SDCCglue.c
13423         * src/avr/main.c
13424         * src/ds390/main.c
13425         * src/izt/i186.c
13426         * src/mcs51/main.c
13427         * src/pic/main.c
13428         * src/pic16/main.c
13429         * src/xa51/main.c
13430         * src/z80/main.c
13431
13432 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
13433
13434         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
13435         * device/lib/time.c: fixed warning "integer overflow in expression"
13436
13437 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
13438
13439         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
13440         * src/SDCCval.c (constVal): changed default to signed; hex and octal
13441         constants are unsigned; added recognition of "u" flag for unsigned
13442         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
13443         * src/SDCCval.c (valDiv, valMod): fixed signdness
13444         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
13445         signedness of modulo, left and right shift
13446         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
13447         * support/Util/SDCCerr.h: added warning W_INT_OVL
13448         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
13449         * src/SDCCast.c (ast_print): improved output of constants
13450
13451 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13452
13453         Fixed some warnings when building with MSVC:
13454
13455         * as/mcs51/asdata.c
13456         * as/z80/asdata.c
13457         * as/mcs51/asm.h
13458         * as/z80/asm.h
13459         * link/z80/aslink.h
13460         * link/z80/lkdata.c
13461         * link/z80/lkeval.c
13462         * link/z80/lkgb.c
13463         * link/z80/lkihx.c
13464         * link/z80/lks19.c
13465         * link/z80/lksym.c
13466         * support/cpp2/cpplib.c
13467         * src/ds390/gen.c
13468         * src/mcs51/gen.c
13469
13470 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
13471
13472         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
13473
13474 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13475
13476         * support/librarian/clean.mk: Do not remove Makefile.
13477         * support/librarian/Makefile: added.
13478
13479 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13480
13481         Added librarian to MSVC build:
13482         * all.dsp
13483         * sdcc.dsw
13484         * support/librarian/librarian.dsp
13485
13486         'configure' not needed for librarian, removed:
13487         * support/librarian/configure
13488         * support/librarian/configure.in
13489         * support/librarian/config_in.h
13490         * support/librarian/Makefile.in
13491
13492         Hopefully these ones built the librarian and the rest of sdcc properly:
13493         * Makefile
13494         * Makefile.common.in
13495
13496         Messed up 'configure', so revert to previous version:
13497         * configure
13498         * configure.in
13499
13500 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
13501
13502         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
13503         there, while the mantissa of a double is "only" 53 bits wide.
13504
13505 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13506
13507         Adding sdcclib to the build.  MSVC project coming soon.
13508         Files added/changed:
13509
13510         * support/librarian/clean.mk
13511         * support/librarian/configure
13512         * support/librarian/configure.in
13513         * support/librarian/config_in.h
13514         * support/librarian/Makefile.bcc
13515         * support/librarian/Makefile.in
13516         * support/librarian/sdcclib.c
13517         * Makefile.bcc
13518         * Makefile
13519         * Makefile.common.in
13520         * configure
13521         * configure.in
13522
13523 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13524
13525         Linker now complaints if linked modules have conflicting options, for
13526         example, one compiled using --model-large and another one compiled with
13527         --model-small.  The following files were modified:
13528
13529         * as/mcs51/asdata.c
13530         * as/mcs51/aslink.h
13531         * as/mcs51/asm.h
13532         * as/mcs51/asmain.c
13533         * as/mcs51/asout.c
13534         * as/mcs51/i51pst.c
13535         * as/mcs51/lkdata.c
13536         * as/mcs51/lklibr.c
13537         * as/mcs51/lkmain.c
13538         * as/z80/asdata.c
13539         * as/z80/asm.h
13540         * as/z80/asmain.c
13541         * as/z80/asout.c
13542         * as/z80/z80pst.c
13543         * link/z80/aslink.h
13544         * link/z80/lkdata.c
13545         * link/z80/lklibr.c
13546         * link/z80/lkmain.c
13547         * src/SDCCglue.c
13548
13549 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13550
13551         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
13552         as/mcs51/lklibr.c: Generate a warning when a library is not found.
13553
13554 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
13555
13556         * src/z80/mappings.i: fix _mul[us][int,long] entries
13557
13558 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13559
13560         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
13561
13562 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
13563
13564         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
13565         * support/regression/tests/bitopcse.c: added
13566         fixed warning:
13567         * src/avr/gen.c:
13568         * src/pic/gen.c:
13569         * src/pic16/gen.c:
13570         * src/z80/gen.c:
13571         * src/xa51/gen.c:
13572
13573 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13574
13575         added support for new library format to z80, gbz80 linkers:
13576         *link/z80/aslink.h
13577         *link/z80/lklex.c
13578         *link/z80/lklib.c
13579         *link/z80/lklist.c
13580
13581 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
13582
13583         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
13584         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
13585
13586 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
13587
13588         added DUMMY_READ_VOLATILE:
13589         * src/SDCC.y:
13590         * src/avr/gen.c:
13591         * src/xa51/gen.c:
13592         * src/z80/gen.c:
13593         * src/pic/gen.c:
13594         * src/pic16/gen.c:
13595         * src/mcs51/gen.c:
13596         * src/ds390/gen.c:
13597         * src/SDCCcse.c (algebraicOpts): many improvements
13598         * src/SDCCcse.h: removed algebraicOpts()
13599         * src/SDCCicode.c (picDummyRead): added
13600
13601 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13602
13603         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
13604         "Insufficient space in data memory".
13605
13606 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13607
13608         * src/mcs51/gen.c: fixed bug #771358
13609         * src/z80/gen.c: fixed bug #759087
13610
13611 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
13612
13613         * src/pic16/glue.c: minor cleanup by Vangelis
13614
13615 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13616
13617         * device/include/regc515c.h: fixed #758477
13618         * device/lib/_gptrget.c: saving some cycles in generic pointer get
13619         * device/lib/_gptrput.c: saved a few bytes
13620         * my tab spacing is 8, yours too?)
13621         * device/lib/_ser.c: process RX bytes earlier than TX bytes
13622         * device/lib/serial.c: process RX bytes earlier than TX bytes
13623         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
13624
13625 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13626
13627         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
13628
13629 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13630
13631     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
13632
13633 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
13634
13635         * device/lib/Makefile.in: bad fix, reverted to 1.43
13636
13637 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
13638
13639         * device/lib/Makefile.in: added missing z80 object files
13640
13641 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
13642
13643         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
13644         pic16 progress by Vangelis:
13645         * src/SDCCglobl.h:
13646         * src/SDCCmain.c:
13647         * src/pic/Makefile:
13648         * src/pic:
13649         * pic/Makefile:
13650         * pic16/device.c:
13651         * pic16/device.h:
13652         * pic16/gen.c:
13653         * pic16/gen.h:
13654         * pic16/genarith.c:
13655         * pic16/glue.c:
13656         * pic16/main.c:
13657         * pic16/pcode.c:
13658         * pic16/pcode.h:
13659         * pic16/pcodepeep.c:
13660         * pic16/peeph.def:
13661
13662 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13663
13664     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
13665
13666 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13667
13668     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
13669     added gbz80 build to MSVC project.
13670     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
13671     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
13672     from 8051 stuff and setup so it links using a .lnk file.
13673
13674 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13675
13676     * support/librarian/sdcclib.c: sdcc librarian.
13677     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
13678     with sdcclib.
13679
13680 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13681
13682     * as/mcs51/lkmain.c: properly handle extensions in function afile.
13683
13684 2003-07-02  Borut Razem <borut.razem AT siol.net>
13685
13686         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
13687         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
13688         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
13689         src/xa51/main.c, src/z80/main.c:
13690         virtualization of glue() function: each port has it's own glue function,
13691         which is accessed by do_glue function pointer in PORT.general structure
13692
13693 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
13694
13695         * DS800C400 fun, improved ROM interface and tinibios.
13696
13697 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
13698
13699         * More support for DS80C400. Now includes beginning of interface to ROM.
13700
13701 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
13702
13703         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
13704
13705 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13706
13707         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
13708
13709 2003-06-19  Borut Razem <borut.razem AT siol.net>
13710
13711         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
13712
13713 2003-06-19  Borut Razem <borut.razem AT siol.net>
13714
13715         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
13716         fixed Z80 port - crt0.o: cannot open.
13717
13718 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
13719
13720         * support/Util/MySystem.c (merge_command): revert bad fix
13721
13722 2003-06-18  Borut Razem <borut.razem AT siol.net>
13723
13724         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
13725
13726 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13727
13728         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
13729         option --use-stdout sends errors to stdout instead of stderr.
13730
13731 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
13732
13733         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
13734
13735 2003-06-15  Borut Razem <borut.razem AT siol.net>
13736
13737         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
13738         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
13739         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
13740         fixed width array of pointers replaced with sets;
13741         multiple include and lib paths ared transferred to preprocessor and linker
13742         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
13743         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
13744         fixed width array of pointers
13745         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
13746         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
13747         fixupPath(), getPathDifference()
13748         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
13749         fixed width array of pointers
13750
13751 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
13752
13753         * src/pic16/ralloc.c: fix warnings
13754         * src/pic16/pcode.c: fix warning
13755
13756 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
13757
13758          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
13759         know all the details, but essentially this set of changes enable
13760         the pic16 port to generate movff instructions and generate assembler
13761         directives,
13762         * src/SDCCmain.c:
13763         * src/pic16/gen.c:
13764         * src/pic16/glue.c:
13765         * src/pic16/pcode.c:
13766         * src/pic16/device.c:
13767         * src/pic16/main.c:
13768         * src/pic16/pcode.h:
13769         * src/pic16/pcoderegs.c:
13770         * src/pic16/ralloc.c:
13771         * src/pic16/ralloc.h:
13772
13773 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13774
13775         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
13776         added option --vc, so sdcc errors and warnings are compatible with
13777         Microsoft Visual Studio.
13778
13779 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13780
13781         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
13782           device/lib/libfloat.lib: added atof function.
13783
13784 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
13785
13786         * doc/sdccman.lyx: updated to Lyx 1.3
13787         * doc/cdbfileformat.lyx: updated to Lyx 1.3
13788         * doc/test_suite_spec.lyx: updated to Lyx 1.3
13789         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
13790
13791 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
13792
13793         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
13794
13795 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13796
13797         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
13798           additions to the "related tools/documentation" section
13799
13800 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
13801
13802         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
13803
13804 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
13805
13806         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
13807         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
13808
13809 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
13810
13811         * doc/sdccman.lyx: fix double dash and other minor things
13812         * doc/Makefile: fix double dash
13813
13814 2003-05-28  Karl Bongers(patches from Martin Helmling)
13815         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
13816           condition and ignore commands.
13817
13818 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13819
13820         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
13821           is in parts still quite out of date, I did changes as far as I felt makes sense
13822           for a non-native english speaker.
13823           Please feel free to add to the manual or to correct my changes.
13824         * doc/Makefile: undid touching the date of intermediate tex files.
13825
13826 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13827
13828         * doc/sdccman.lyx: Manual has an index now
13829
13830 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
13831
13832         Finalize muluint/mulsint and mululong/mulslong merging:
13833         * device/lib/_mulint.c
13834         * device/lib/_mullong.c
13835         * device/lib/gbz80/mul.s
13836         * device/lib/gbz80/stubs.s
13837         * device/lib/z80/mul.s
13838         * device/lib/z80/stubs.s
13839         * src/SDCCsymt.c (initCSupport)
13840
13841 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13842
13843         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
13844         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
13845           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
13846           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
13847           instead of /Zm500.
13848
13849 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13850
13851         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
13852           the regression tests I'm not brave enough to enable 245.b, 245.c
13853         * doc/sdccman.lyx: added latex preamble for hyperref package.
13854           Using pdflatex this will give you a hyperlinked pdf file with
13855           bookmarks. (prepend '%' before /usepackage if this breaks something)
13856
13857 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13858
13859          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
13860
13861 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
13862
13863         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
13864
13865 2003-05-21    <johan AT balder>
13866
13867         * src/SDCCglue.c (printIval): fixed bug #739934
13868
13869 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
13870
13871         Applied patch from bug 737905 (renamed yylineo to mylineno):
13872         * src/altlex.c
13873         * src/SDCCast.c
13874         * src/SDCglobl.h
13875         * src/SDCC.lex
13876         * src/SDCCsymt.c
13877         * src/SDCCval.c
13878         * src/pic16/pcode.c: Cleaned warnings
13879         * src/pic16/pcodeflow.c: Cleaned warnings
13880         * src/pic16/pcoderegs.c: Cleaned warnings
13881
13882 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
13883
13884         * src/pic16/pcode.c: Cleaned warnings
13885         * src/pic16/pcodepeep.c: Cleaned warnings
13886         * src/pic16/ralloc.c: Cleaned warnings
13887
13888 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
13889
13890         * doc/sdccman.lyx: fixed bug 739745
13891         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
13892
13893 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
13894
13895         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
13896         it can be defined with CFLAGS when running configure
13897         * src/SDCCmain.c: fixed compiling + linking with object files
13898
13899 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
13900
13901         * configure.in: configure for pic16 port,
13902             added --disable-pic16-port
13903         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
13904         * src/SDCCmain.c: linkOptions is changed to set *,
13905             added if/endif conditional macros to remove options help
13906             messages from optionsTable when a port is not configured, added
13907             support for the PIc16 port in the ports table, when executing
13908             the compiler with no port specified on command line, a default
13909             port is selected with the new macro DEFAULT_PORT which is
13910             defined in port.h, in setDefaultOptions() linkOptions is removed
13911             from initialization assignment, since now it is a set,
13912             parseCmdLine uses setParseWithComma for linkOptions, in
13913             linkEdit() linkOptions are accessed with new function indexSet()
13914             which returns the i'th item of a set variable. See SDCCset.c, in
13915             linkEdit() when calling buildCmdLine(), added linkOptions as
13916             last argument. Now users can pass arguments to gplink via the
13917             -Wl option, main() uses pic16glue() to glue up pic16 programs
13918         * src/SDCCpeeph.c: various changes to support pic16
13919         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
13920             return the i'th item of the set
13921         * src/SDCCset.h: added function prototype for indexSet()
13922         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
13923         * src/clean.mk: added pic16 in CLEANALLPORTS variable
13924         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
13925             added macro DEFAULT_PORT
13926         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
13927         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
13928             generated
13929         * src/pic16/glue.c: commented out some error producing lines
13930         * src/pic16/main.c: __config directives are commented out to stop
13931             gpasm complaining and test the linkage with gplink, _linkCmd and
13932             _asmCmd changed to be more gplink and gpasm friendly
13933         * src/pic16/peeph.def: peep rule 3 is commented out, since it
13934             produced an error when parsed, peep rule 12 is added to utilize
13935             movff, but it is commented out since the pCode does not support
13936             yet a command with 2 address arguments
13937
13938 2003-05-18    <johan AT balder>
13939
13940         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
13941         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
13942 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
13943
13944         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
13945   Added feature to script commands from file.
13946
13947 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
13948
13949         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
13950         * src/SDCCutil.c: include ctype.h for win32
13951
13952 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
13953
13954         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
13955
13956 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
13957
13958         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
13959   Fixed so you can set breakpoints prior to run, run does not stop
13960   on entry now.  Add tbreak.  Other enhancements and fixes for use
13961   with ddd.
13962
13963 2003-05-12  Borut Razem <borut.razem AT siol.net>
13964
13965         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
13966
13967 2003-05-11  Borut Razem <borut.razem AT siol.net>
13968
13969         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
13970         the path of bin directory, so that PATH is the only env. variable, which has to be set
13971         in case of standard installation.
13972         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
13973         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
13974         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
13975
13976 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
13977
13978         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
13979         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
13980         temp files are in the port dir; clean the gen/test directory when
13981         generating new test.c
13982         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
13983         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
13984         * support/regression/tests/zeropad.c: added
13985
13986 2003-05-09    <johan AT balder>
13987
13988         * src/SDCCglue.c: fixed bug #597940
13989
13990 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
13991
13992         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
13993   cache sfr, optimize next,step, fix off by one sourceline,
13994   support ddd list function.
13995         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
13996
13997 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
13998
13999         * support/regression/HTMLgen.py: added compare_s2f()
14000         * support/regression/Makefile: redo 1.27
14001         * support/regression/generate-cases.py: redo 1.5
14002
14003 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
14004
14005         * support/regression/tests/float.c: workaround 33 bit hex constant
14006         * support/regression/tests/simplefloat.c: fix division for host
14007
14008 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
14009
14010         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
14011         that tame's the PIC's over-aggressive optimizer.
14012
14013 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14014
14015          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
14016          support for MSVC.
14017
14018 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
14019
14020         Initial support for DS80C400. "Hello world" runs on TINIm400
14021         (with polled I/O).
14022
14023 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
14024
14025          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
14026          * Some notes on ddd usage added in debugger/README
14027          Martin Helmling adding more features and fixes for ddd GUI debugger.
14028          Code added for nexti, stepi, up, down, and other adjustments.
14029
14030 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
14031
14032         * src/pic/pCodepeep.c non-wildcard asmops are now handled
14033         * src/pic/peeph.def Added two rules to optimize carry manipulation
14034         * src/pic/* removed debug printfs
14035
14036 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
14037
14038         * debugger/mcs51/cmd.c: added header newalloc.h
14039
14040 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
14041
14042         * as/Makefile: new EXEEXT
14043         * as/z80/Makefile: remove trailing slash of BUILDIR
14044         * as/z80/clean.mk: new EXEEXT
14045         * Makefile.common.in: add to CFLAGS (and others), don't replace it
14046         * support/cpp2/Makefile.in: new EXEEXT
14047         * src/pic/glue.c (pic14emitRegularMap): fixed warning
14048
14049 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
14050
14051         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
14052         EXEEXT was introduced to fix all related problems with targets
14053         "clean", "install" and "uninstall"; a couple of further flaws
14054         especially with "clean" have been fixed too
14055         * as/mcs51/Makefile.in
14056         * as/mcs51/clean.mk
14057         * as/z80/Makefile
14058         * Makefile
14059         * clean.mk
14060         * debugger/mcs51/Makefile.in
14061         * debugger/mcs51/clean.mk
14062         * link/z80/Makefile
14063         * link/z80/Makefile.in
14064         * link/z80/clean.mk
14065         * link/Makefile
14066         * packihx/Makefile.in
14067         * packihx/clean.mk
14068         * sim/ucsim/Makefile
14069         * sim/ucsim/clean.mk
14070         * sim/ucsim/avr.src/Makefile.in
14071         * sim/ucsim/avr.src/clean.mk
14072         * sim/ucsim/s51.src/Makefile.in
14073         * sim/ucsim/s51.src/clean.mk
14074         * sim/ucsim/xa.src/Makefile.in
14075         * sim/ucsim/xa.src/clean.mk
14076         * sim/ucsim/z80.src/Makefile.in
14077         * sim/ucsim/z80.src/clean.mk
14078         * sim/ucsim/main_in.mk
14079         * sim/ucsim/packages_in.mk
14080         * sim/ucsim/gui.src/Makefile.in
14081         * sim/ucsim/gui.src/serio.src/Makefile.in
14082         * sim/ucsim/gui.src/serio.src/clean.mk
14083         * src/Makefile.in
14084         * src/clean.mk
14085         * support/cpp2/Makefile.in
14086         * support/cpp2/clean.mk
14087         * support/makebin/Makefile
14088         * support/makebin/clean.mk
14089         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
14090         * doc/sdccman.lyx: --program-suffix no longer needed
14091
14092 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
14093
14094          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
14095          Martin Helmling added support for ddd GUI debugger.
14096          Code added to display assembly, set variables, and other commands
14097          to interface to ddd.
14098
14099 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
14100
14101         * as/Makefile: fix target clean
14102         * as/clean.mk: fix target clean
14103         * as/z80/clean.mk: fix target clean
14104
14105 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
14106
14107         * Makefile.common.in: added  AT EXEEXT AT
14108         * configure.in: removed all mingw32 stuff
14109         * configure: rebuilt from configure.in
14110         * doc/sdccman.lyx: updated section "installation"
14111         * support/scripts/sdcc_mingw32: adapted to configure
14112         * support/scripts/sdcc_cygwin_mingw32: added
14113
14114 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
14115
14116         * src/pic Added object file support for the PIC port
14117         * src/pic Applied patch from Craig Franklin (this started the object file support)
14118         * src/regression Updated the PIC regression tests for object files
14119
14120 2003-04-20  Borut Razem <borut.razem AT siol.net>
14121
14122         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
14123           lklex.c: In function `getfid':
14124           lklex.c:203: warning: array subscript has type `char'
14125         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
14126           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
14127         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
14128           stack handling macros
14129
14130 2003-04-19  Borut Razem <borut.razem AT siol.net>
14131
14132         * "handling space characters in file path" task:
14133         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
14134         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
14135         * support/Util/MySystem.h: make it self-sufficient
14136         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
14137           src/z80/main.c, sdcc/as/mcs51/lklex.c:
14138           handling space characters in file path
14139         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
14140           (it will be used by assemblers, which have their own includes, e.g. gpasm)
14141         * support/Util/MySystem.c: handling space characters in executable's path
14142
14143 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
14144
14145         * as/z80/Makefile: fix permanent rebuild of z80
14146         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
14147         * support/regression/tests/bitfields.c: added Johan's bitfields.c
14148
14149 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
14150
14151         * src/SDCCopt.c: add special case optimization to replace modulo by
14152           a power of two with a bitwise AND.
14153
14154 2003-04-18    <johan AT balder>
14155
14156         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
14157
14158 2003-04-17    <johan AT balder>
14159
14160         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
14161         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
14162
14163 2003-04-13  Borut Razem <borut.razem AT siol.net>
14164
14165         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
14166         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
14167           fixed mingw problem in adl_NORMALIZE_PATH
14168
14169 2003-04-12  Borut Razem <borut.razem AT siol.net>
14170
14171         * fixed "#pragma SAVE/RESTORE can not be nested":
14172         * src/SDCC.lex: reworked pragma handling functions
14173         * sdcc/src/SDCCglobl.h: reworked stack handling macros
14174         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
14175
14176 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
14177
14178         * src/SDCCutil.c (pathEquivalent): defined but not used
14179         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
14180         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
14181         * configure: rebuilt from configure.in
14182         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
14183         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
14184         * device/include/Makefile.in: replace sdcc_datadir
14185         * device/lib/Makefile.in: replace sdcc_datadir
14186         * Makefile.common.in: add LDFLAGS from configure
14187         * packihx/Makefile.in: use LDFLAGS
14188         * src/Makefile.in: use LDFLAGS
14189         * support/cpp2/Makefile.in: add LDFLAGS from configure
14190         * support/makebin/Makefile: use LDFLAGS
14191         * .version: bumped version number to 2.3.5
14192
14193 2003-04-12  Borut Razem <borut.razem AT siol.net>
14194
14195         * completed "different paths" task:
14196         * src/SDCCmacro.c: fixed bug in handling quotes
14197         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
14198         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
14199
14200 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
14201
14202         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
14203
14204 2003-04-11 kevin Vigor <kevin AT vigor.nu>
14205
14206         * ds390/gen.c ds390/peeph.def: fix bug 706781
14207
14208 2003-04-11  Borut Razem <borut.razem AT siol.net>
14209
14210         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
14211
14212 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
14213
14214         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
14215         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
14216          set - this bit used to not be set...).
14217         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
14218           bad code in PIC Port
14219         * src/regression/and2.c added to test bug 609268
14220         * src/regression/Makefile added and2.c to regression test
14221
14222
14223 2003-04-08    <johan AT CP255758-A>
14224
14225         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
14226         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
14227         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
14228
14229 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
14230
14231         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
14232         fix bug #487815
14233         * support/cpp2/Makefile.in: fix bug #487815
14234         * configure: rebuilt from configure.in
14235         * Makefile.common.in: docdir changed, new path suffixes
14236         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
14237         * sdcc_vc_in.h: reflect changes from sdccconf.h
14238         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
14239         * src/SDCCutil.h: remove BINDIR hack
14240         * doc/sdccman.lyx: update new path hierarchy
14241
14242 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
14243
14244         * src/SDCCpeeph.c: added okToRemoveSLOC test
14245
14246 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
14247
14248         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
14249
14250 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
14251
14252         * src/SDCCpeeph.c: added labelIsReturnOnly test
14253         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
14254
14255 2003-04-05    <johan AT balder>
14256
14257         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
14258         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
14259         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
14260         * src/SDCCast.c: fixed a warning
14261         * src/SDCCast.h: fixed a warning
14262         * src/SDCCicode.c (operandFromAst): fixed a warning
14263
14264 2003-04-04    <johan AT balder>
14265
14266         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
14267         * src/SDCCast.c (decorateType): fixed bug #715076
14268         * src/SDCC.y: fixed bug #702907
14269
14270 2003-04-03    <johan AT balder>
14271
14272         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
14273         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
14274         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
14275         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
14276         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
14277
14278 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
14279
14280         * _decdptr.c: fix return values
14281         * _gptrget.c: fix return values
14282         * _gptrgetc.c: fix return values
14283         * _gptrput.c: fix return values
14284         * _mulint.c: fix return values
14285         * as/z80/Makefile: fix 'make -j' problem
14286
14287 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
14288
14289         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
14290         * configure.in: big cleanup, updated to autoconf 2.5x
14291         * configure: rebuilt from configure.in
14292         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
14293         * sdcc_vc_in.h: reflect changes from sdccconf.h
14294         * doc/Makefile: fixed a flaw in "make install"
14295
14296 2003-04-02    <johan AT balder>
14297
14298         * src/ds390/gen.c (genCmp): no comments
14299         * src/mcs51/gen.c (genCmp): no comments
14300         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
14301         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
14302
14303 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
14304
14305         * support/regression/generate-cases.py: place generated file in given sub directory
14306         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
14307         * support/regression/Makefile: improvements for 'make -j';
14308         side effect: it's simpler and faster now
14309
14310 2003-03-31  Borut Razem <borut.razem AT siol.net>
14311
14312         * src/z80/main.c: link-{port} and as-{port} defined without path
14313         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
14314
14315 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
14316
14317         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
14318
14319 2003-03-30  Borut Razem <borut.razem AT siol.net>
14320
14321         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
14322           changed type of list parameter to set
14323         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
14324         * src/port.h: changed type of do_assemble() parameter to set
14325         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
14326           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
14327           definition of "cppoutfilename" macro with NULL value in preProcess()
14328         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
14329         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
14330         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
14331           replaced with set *binPathSet
14332         * shash_add() deallocates the item, if allready exsists, before adding the new one
14333         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
14334
14335 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
14336
14337         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
14338           a nested for loop bug in the PIC port
14339         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
14340           for loops
14341
14342 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
14343
14344         * support/Util/dbuf.h: remove C++ stuff to make it portable
14345
14346 2003-03-28  Borut Razem <borut.razem AT siol.net>
14347
14348         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
14349           literal strings in stringLiteral()
14350         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
14351         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
14352           to the project
14353
14354 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
14355
14356         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
14357
14358 2003-03-26    <johan AT balder>
14359
14360         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
14361         * src/ds390/gen.c (saveRegisters): catched symbol abuse
14362         * src/SDCCast.c (decorateType): fixed " -v < 3"
14363
14364 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
14365
14366         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
14367         Added Lenny Story's debug infrastructure changes:
14368         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
14369         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
14370         * src/cdbFile.c: added
14371         * src/SDCCdebug.c: added
14372         * src/SDCCdebug.h: added
14373         * src/SDCCast.c (createFunction)
14374         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
14375         * src/SDCCmain.c (parseCmdLine, main)
14376         * src/SDCCmem.c (redoStackOffsets)
14377         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
14378         * src/SDCCsymt.h
14379         * src/common.h
14380         * src/avr/gen.c (genAVRCode)
14381         * src/ds390/gen.c (gen390Code)
14382         * src/mcs51/gen.c (gen51Code)
14383         * src/pic/gen.c (genpic14Code)
14384         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
14385         * src/xa51/gen.c (genXA51Code)
14386         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
14387
14388 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14389
14390         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
14391         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
14392
14393 2003-03-22    <johan AT balder>
14394
14395         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
14396
14397 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
14398
14399         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
14400         * doc/cdbfileformat.lyx: added, written by Lenny Story
14401         * doc/Makefile: added cdbfileformat.lyx
14402         * doc/clean.mk: added cdbfileformat.lyx
14403
14404 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
14405
14406         * src/mcs51/peeph.def: fix bug #705773
14407
14408 2003-03-20    <johan AT balder>
14409
14410         An sfr/sbit can have an "at #" AND an initializer
14411         * src/SDCCsymt.c (checkSClass):
14412         * src/SDCCmem.c (allocGlobal):
14413         * src/SDCCmem.c (allocLocal):
14414         * src/SDCCast.c (createBlock):
14415
14416 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
14417
14418         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
14419
14420 2003-03-16    <johan AT balder>
14421
14422         Undid the hackup of const and volatile, the problem is much bigger
14423         * src/SDCC.y:1.65
14424         * src/SDCCast.c:1.171
14425         * src/SDCCglue.c:1.138
14426         * src/SDCCicode.c:1.146
14427         * src/SDCCsymt.c:1.150
14428         * src/SDCCval.c:1.65
14429
14430 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
14431
14432         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
14433         * src/ds390/gen.c (genAddrOf): fixed bug #704087
14434
14435 2003-03-13    <johan AT balder>
14436
14437         Hackup const and volatile modifiers in type chains a bit:
14438         * src/SDCC.y:1.63
14439         * src/SDCCast.c:1.169
14440         * src/SDCCglue.c:1.136
14441         * src/SDCCicode.c:1.143
14442         * src/SDCCsymt.c1.146
14443         * src/SDCCsymt.h1.59
14444         * src/SDCCval.c:1.63
14445
14446 2003-03-12    <johan AT balder>
14447
14448         * src/SDCCBBlock.h: more LRH debugging junk
14449         * src/SDCCcflow.h: more LRH debugging junk
14450         * src/SDCCloop.c: more LRH debugging junk
14451         * src/SDCC.y (struct_declaration): fixed bug #697590
14452         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
14453         * src/ds390/gen.c (aopForRemat): fixed bug #700031
14454         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
14455
14456 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14457         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
14458         test function names must now match exactly).
14459         * src/SDCCcse.c: added special case in findCheaperOp to allow
14460         extending a short integer. Makes less awful code for bug 700121 test case.
14461
14462 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14463
14464         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
14465         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
14466
14467 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14468
14469         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
14470         actually called (operandsNotEqual() was called for all
14471         operandsNotEqualX tests).
14472
14473 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14474
14475         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
14476         with shorter literals. Fixes bug 700121.
14477
14478 2003-03-11    <johan AT balder>
14479
14480         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
14481
14482 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
14483
14484         * src/SDCCloop.c (mergeRegions): an evil beast is dead
14485         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
14486
14487 2003-03-10  Borut Razem <borut.razem AT siol.net>
14488
14489         * src/SDCCmain.c: pipe preprocessor's output
14490         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
14491         * sdcc_vc_in.h: define pclose as _pclose for WIN32
14492         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
14493         which closes all pipes in pipeSet set
14494         * src/SDCCset.c: free deleted item in function deleteSetItem()
14495         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
14496         moved from z80 to src subproject
14497         * .version: increased version number to 2.3.4
14498
14499 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
14500
14501         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
14502         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
14503         * support/regression/ports/xa51/spec.mk: fix typo
14504
14505 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
14506
14507         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
14508
14509 2003-03-09  Borut Razem <borut.razem AT siol.net>
14510
14511         * src/SDCCmain.c: pipe preprocessor's output
14512         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
14513         * sdcc_vc_in.h: define pclose as _pclose for WIN32
14514         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
14515         which closes all pipes in pipeSet set
14516         * src/SDCCset.c: free deleted item in function deleteSetItem()
14517         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
14518         moved from z80 to src subproject
14519
14520 2003-03-09  Borut Razem <borut.razem AT siol.net>
14521
14522         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
14523         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
14524         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
14525         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
14526         * src/SDCCglobl.h: unification of WIN32 native definitions
14527
14528 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14529
14530         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
14531
14532 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
14533
14534         * src/configure.in:   check for endianess (even while cross-compiling)
14535         * src/configure:      check for endianess (even while cross-compiling)
14536         * src/configure_in.h: check for endianess (even while cross-compiling)
14537         * src/avr/gen.c:        remove old endianess stuff
14538         * src/mcs51/gen.c:      remove old endianess stuff
14539         * src/ds390/gen.c:      remove old endianess stuff
14540         * src/pic/gen.c:        remove old endianess stuff
14541         * src/pic/genarith.c:   remove old endianess stuff
14542         * src/pic/glue.c:       fix endianess check
14543         * src/pic16/gen.c:      remove old endianess stuff
14544         * src/pic16/genarith.c: remove old endianess stuff
14545         * src/pic16/glue.c:     fix endianess check
14546         * src/xa51/gen.c:       remove old endianess stuff
14547         * src/z80/gen.c:        fix endianess check
14548         * src/SDCCglue.c:       fix endianess check
14549         * src/ds390/peeph.def: fix bug 700036
14550
14551 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
14552
14553         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
14554         * src/configure: find appropriate data-types on host for SDCC's int and long
14555         * src/configure.in: find appropriate data-types on host for SDCC's int and long
14556         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
14557         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
14558
14559 2003-03-07    <johan AT balder>
14560
14561         Just a big NOOP:
14562                 some minor cleanups before the big shot
14563                 OP_DEFS and OP_USES now use Kevin's protection
14564                 new option --nolabelopt
14565
14566         * src/SDCCBBlock.c:
14567         * src/SDCCast.c,:
14568         * src/SDCCcflow.c:
14569         * src/SDCCcse.c:
14570         * src/SDCCicode.c:
14571         * src/SDCCicode.h:
14572         * src/SDCClabel.c:
14573         * src/SDCCloop.c:
14574         * src/SDCCmain.c:
14575         * src/ds390/ralloc.c:
14576         * src/mcs51/ralloc.c:
14577         * src/pic/ralloc.c:
14578         * src/xa51/ralloc.c:
14579         * src/z80/ralloc.c:
14580
14581 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
14582
14583         * src/pic/pcode.c (get_op): fix 64 bit warnings
14584         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
14585         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
14586         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
14587         * support/regression/tests/malloc.c: fix 64 bit warnings
14588
14589 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
14590
14591         * src/mcs51/gen.c (genMinus): fixed bug 696436
14592
14593 2003-03-02  Borut Razem <borut.razem AT siol.net>
14594
14595         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
14596
14597 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
14598
14599         * configure.in: test for mkstemp
14600         * sdccconf_in.h: add HAVE_MKSTEMP
14601
14602 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
14603
14604         * device/include/ctype.h: removed warning while using --stack-auto
14605         * device/include/malloc.h: removed warning while using --stack-auto
14606         * device/include/string.h: removed warning while using --stack-auto
14607
14608 2003-02-23  Borut Razem <borut.razem AT siol.net>
14609
14610         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
14611         because NDEBUG is defined (see man assert)
14612         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
14613
14614 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14615
14616         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
14617         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
14618
14619 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14620
14621         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
14622         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
14623
14624 2003-02-18    <johan AT balder>
14625
14626         * as/mcs51/asmain.c (asmbl): module can start with a digit
14627         * as/z80/asmain.c (asmbl): module can start with a digit
14628
14629 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
14630
14631         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
14632         * src/asm.c: fix pipe() for Mingw32
14633
14634 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
14635
14636         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
14637         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
14638         make -V work again; --c1mode reads now from stdin
14639         * doc/sdccman.lyx: added --c1mode
14640         * support/Util/SDCCerr.c: new messages for c1 mode
14641         * support/Util/SDCCerr.h: new messages for c1 mode
14642         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
14643
14644 2003-02-15    <johan AT balder>
14645
14646         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
14647
14648 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
14649
14650         * doc/sdccman.lyx: Environment variables, -o and other minor things
14651
14652 2003-02-14    <johan AT balder>
14653
14654         * src/xa51/main.c: before anyone really tries to use it :)
14655
14656         * Install doc's in share/sdcc/doc
14657         * removed some obsolete files
14658         * Do a proper make distclean and uninstall
14659         M Makefile.common.in
14660         R sdccbuild.sh
14661         M as/Makefile
14662         M device/include/Makefile.in
14663         M device/lib/Makefile.in
14664         M doc/sdccman.lyx
14665         M link/Makefile
14666         M sim/ucsim/doc/Makefile.in
14667         M src/clean.mk
14668         R src/avr/peeph.rul
14669         R src/xa51/peeph.rul
14670         M support/cpp2/Makefile.in
14671         M support/makebin/Makefile
14672
14673
14674 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
14675
14676         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
14677
14678 2003-02-10  Borut Razem <borut.razem AT siol.net>
14679
14680         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
14681         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
14682         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
14683         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
14684         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
14685         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
14686         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
14687         src/z80/Makefile.bcc: Borland Makefile cleanup
14688         * as/z80/Makefile.bcc: Added Borland Makefile
14689         * support/cpp2/borland.h: Removed
14690
14691 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
14692
14693         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
14694         * src/SDCC.lex: new pragma NOIV
14695         * src/SDCCglobl.h: new pragma NOIV
14696         * src/SDCCmem.c: new pragma NOIV
14697
14698 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
14699
14700         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
14701
14702 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
14703
14704         * src/SDCCmain.c: signal handling is switched off by --debug
14705         * doc/Makefile: small fix for install; use clean.mk again
14706         * doc/clean.mk: clean *.pdf and *.html too
14707
14708 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
14709
14710         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
14711         * device/lib/printfl.c: fix a ds390 bug by making it portable
14712         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
14713         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
14714         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
14715         * debugger/mcs51/cmd.c: converted multi-line string literals
14716         * sim/ucsim/globals.cc: converted multi-line string literals
14717         * src/SDCCmain.c: introduced signal handler to remove temp files
14718         * doc/Makefile: small tweaks, implement clean
14719         * doc: removed generated files
14720
14721 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14722
14723         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
14724         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
14725         Address Record is not correctly generated for DS390."
14726
14727 2003-02-02  Borut Razem <borut.razem AT siol.net>
14728
14729         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
14730         * as/mcs51/asm.h: fixed compilation with Borland C
14731         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
14732         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
14733         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
14734         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
14735         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
14736         src/z80/Makefile.bcc: delete $(LIB) only if exist
14737         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
14738
14739 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
14740
14741         * device/include/malloc.h: introduced NULL
14742         * device/include/string.h: introduced NULL
14743         * device/include/stdlib.h: introduced NULL
14744         * device/lib/_memcpy.c: removed NULL
14745         * device/lib/_strcat.c: removed NULL
14746         * device/lib/_strchr.c: removed NULL
14747         * device/lib/_strcmp.c: removed NULL
14748         * device/lib/_strcpy.c: removed NULL
14749         * device/lib/_strcspn.c: removed NULL
14750         * device/lib/_strlen.c: removed NULL
14751         * device/lib/_strncat.c: removed NULL
14752         * device/lib/_strncmp.c: removed NULL
14753         * device/lib/_strncpy.c: removed NULL
14754         * device/lib/_strpbrk.c: removed NULL
14755         * device/lib/_strrchr.c: removed NULL
14756         * device/lib/_strspn.c: removed NULL
14757         * device/lib/_strstr.c: removed NULL
14758         * device/lib/_strtok.c: removed NULL
14759         * device/lib/malloc.c: removed NULL, include own header
14760
14761 2003-02-02    <johan AT balder>
14762
14763         * 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
14764         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
14765         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
14766         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
14767         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
14768         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
14769
14770 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14771
14772         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
14773         area 'DATA'"
14774
14775 2003-02-01    <johan AT balder>
14776
14777         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
14778
14779 2003-01-31    <johan AT CP255758-A>
14780
14781         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
14782
14783 2003-01-30    <johan AT balder>
14784
14785         * src/SDCCBBlock.c: automatic bug detection
14786         * src/SDCCicode.c: automatic bug detection
14787
14788 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14789
14790         * src/SDCCglobl.h:   now --xram-size 0 works
14791         * src/SDCCmain.c:    now --xram-size 0 works
14792
14793 2003-01-29    <johan AT balder>
14794
14795         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
14796
14797 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14798
14799         * as/mcs51/aslink.h: Added options --xram-size and --code-size
14800         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
14801         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
14802         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
14803         * src/SDCCglobl.h:   Added options --xram-size and --code-size
14804         * src/SDCCmain.c:    Added options --xram-size and --code-size
14805
14806 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
14807
14808         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
14809         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
14810
14811 2003-01-27    <johan AT balder>
14812
14813         * src/SDCC.y: fixed bug #613764
14814
14815 2003-01-26    <johan AT balder>
14816
14817         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
14818         * src/SDCCsymt.h: fixed bug #673374
14819         * src/SDCCglue.c: fixed bug #661910
14820         * src/SDCCast.c: fixed bug #458099 and 673374
14821
14822 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
14823
14824         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
14825         * as/mcs51/strcmpi.h: added
14826         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
14827         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
14828         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
14829         * as/mcs51/assym.c: strcmpi -> as_strcmpi
14830         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
14831         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
14832         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
14833         * as/mcs51/Makefile.aslink: new module strcmpi
14834         * as/mcs51/Makefile.asx8051: new module strcmpi
14835         * as/mcs51/Makefil.bcc: new module strcmpi
14836         * as/mcs51/Makefile.in: new module strcmpi
14837         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
14838
14839 2003-01-26    <johan AT balder>
14840
14841         * src/SDCCglue.c: reverted back to 1.124
14842         * src/SDCCast.c: reverted back to 1.156
14843         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
14844
14845 2003-01-25    <johan AT balder>
14846
14847         * src/SDCCglue.c: A better fix for bug #661910
14848         * src/SDCCast.c: A better fix for bug #661910
14849         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
14850
14851 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
14852
14853         * src/Makefile.in: remove spawn.o
14854         * src/SDCCmain.c: remove spawn.h
14855         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
14856         * src/spawn.c: removed
14857         * src/spawn.h: removed
14858         * support/regression/ports/ds390/spec.mk: link with -r
14859
14860 2003-01-24    <johan AT CP255758-A>
14861
14862         * src/ds390/gen.c (aopOp): fixed bug #667458
14863         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
14864         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
14865         (createIvalCharPtr): an ival doesn't always have a storage class anymore
14866
14867 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
14868
14869         * src/mcs51/peeph.def: better assembler identation by Frieder
14870         * src/mcs51/gen.c: better assembler identation by Frieder
14871
14872 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
14873
14874         * as/z80/string.h: removed for gcc 3.2
14875         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
14876         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
14877
14878 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
14879
14880         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
14881         * src/SDCCpeeph.c (replaceRule): fix bug #663503
14882         * support/regression/Makefile: separate temp files for ports
14883         * support/regression/generate-cases.py: separate temp files for ports
14884         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
14885         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
14886
14887 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
14888
14889         * moved tinitalk to device/examples/ds390
14890
14891 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
14892
14893         * as/mcs51/lkmem.c: rflag is for DS390
14894         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
14895         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
14896                          (linkEdit): move mem- and map-files the same way as ihx-files
14897         * src/z80/main.c (_setDefaultOptions): removed --generic
14898         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
14899         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
14900         * src/pic/glue.c (picglue): --c1mode works again
14901         * src/pic16/glue.c (pic16glue): --c1mode works again
14902         * src/asm.c (printCLine): fix #660034
14903
14904 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
14905
14906         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
14907         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
14908         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
14909         * as/mcs51/lkmem (summary): better fix for sp problem
14910         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
14911         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
14912         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
14913                                               remove --stack-after-data
14914
14915 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
14916
14917         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
14918         * src/SDCCutil.c (join): ugly bug: missing '\0'
14919         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
14920
14921 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
14922
14923         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
14924         * src/port.h: typo
14925         * src/pic/main.c (_asmCmd): gpasm supports -o
14926         * src/z80/main.c: more general macros
14927         * device/lib/Makefile.in: remove intermediate files
14928
14929 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
14930
14931         * .version: Bumped version number to 2.3.3
14932         * src/SDCCBBlock.c: new option -o
14933         * src/SDCCglobl.h: new option -o
14934         * src/SDCCglue.c: new option -o
14935         * src/SDCCmain.c: new option -o
14936         * src/asm.c: new option -o
14937         * src/ds390/main.c: new option -o
14938         * src/pic/glue.c: new option -o
14939         * src/pic/pcode.c: new option -o
14940         * src/pic/ralloc.c: new option -o
14941         * src/pic16/glue.c: new option -o
14942         * src/pic16/pcode.c: new option -o
14943         * src/pic16/ralloc.c: new option -o
14944         * src/z80/main.c: new option -o
14945         * device/lib/Makefile.in: use -o
14946         * support/regression/ports/ds390/spec.mk: use -o
14947         * support/regression/ports/gbz80/spec.mk: use -o
14948         * support/regression/ports/mcs51/spec.mk: use -o
14949         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
14950         * support/regression/ports/z80/spec.mk: use -o
14951         * support/regression/ports/ucz80/spec.mk: use -o
14952         * support/regression/ports/xa51/spec.mk: use -o
14953         * support/regression/fwk/lib/timeout.c: fix usage string
14954
14955 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
14956         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
14957
14958 2003-01-07    <johan AT balder>
14959
14960         * src/SDCCast.c (decorateType): fixed bug #600035
14961
14962 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
14963         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
14964         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
14965         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
14966         * src/pic/pcode.c: outcommented unused variable to remove warnings
14967         * src/pic/ralloc.c: outcommented unused variable to remove warnings
14968
14969 2003-01-06    <karl AT turbobit.com>
14970         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
14971    regression tests.
14972
14973 2003-01-06    <johan AT balder>
14974
14975         * src/SDCCicode.c: fixed array add
14976
14977 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
14978         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
14979         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
14980
14981 2003-01-04    <johan AT balder>
14982
14983         * src/SDCCval.c (getNelements): fixed the initialized array of structures
14984
14985 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14986         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
14987
14988 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
14989         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
14990         * support/regression/tests/bug-524697.c: fit mem usage into 8032
14991
14992 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
14993         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
14994
14995 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
14996         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
14997
14998 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
14999         * src/mcs51/main.c: removed {bindir}{sep} from aslink
15000
15001 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15002
15003     * in /sdcc/as/mcs51/ changed these files in order to create an
15004     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
15005     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
15006     following files to include the previous two files: aslink.dsp,
15007     Makefile.aslink, Makefile.bcc, and Makefile.in.
15008
15009     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
15010     .adb instead of .cdb
15011
15012 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15013
15014         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
15015         value from option --iram-size.
15016
15017 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15018
15019         * /sdcc/as/mcs51/lklist.c: added boundary check before using
15020         dram[] array.
15021
15022 2002-09-18    <wiml AT hhhh.org>
15023
15024         * SDCClrange.h: exposed setFromRange() and setToRange()
15025         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
15026           packRegsForAccUse() (bug 542397)
15027         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
15028           multiple times and emitting the fetch operations more than once
15029           added aopGetUsesAcc() function to allow binary operators to
15030           fetch their operands in the correct order; made genMinus() emit
15031           compact code for X = LITERAL - Y
15032
15033 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15034         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
15035         sprintf() in line 1267.
15036
15037 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15038         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
15039         like ports.
15040
15041 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15042         Changes to aslink (All the changes are marked with 'JCF'):
15043
15044         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
15045         summary().
15046
15047         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
15048         area BSEG.  Also moves, if possible, the DATA area down into the internal
15049         ram so more space is available.
15050
15051         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
15052         sflag.
15053
15054         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
15055         not bytes.  Function summary() which creates a memory usage summary
15056         file with extension .mem.  Reports of overlaping stack and small stack
15057         size.  If the space for the stack is less than 16 bytes aslink trows a
15058         warning.
15059
15060         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
15061         the 8051.  Option 'y' for memory summary output file.
15062
15063         Changes to sdcc (All the changes are marked with 'JCF'):
15064
15065         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
15066
15067         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
15068         overlaying area for it (uses RegBankUsed[4]).
15069
15070         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
15071         bank zero as used by default.  By default aslink locates the stack
15072         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
15073         the creation of the .mem file.  Delegates the allocation of data area
15074         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
15075         the begining of the stack area to aslink.
15076
15077         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
15078         glue() in SDCCglue.c creates an area for it.
15079
15080 2002-09-03  Borut Razem <borut.razem AT siol.net>
15081         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
15082         sdcc/src/pic/glue.c:
15083         introduced atexit() handler for teporay files removal in case of
15084         errors, assertions, ...
15085
15086 2002-08-29  Borut Razem <borut.razem AT siol.net>
15087         * sdcc/support/cpp2/auto-host_vc_in.h:
15088         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
15089         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
15090         Maybe there is a similar problem with BORLANDC? It should be checked!
15091
15092         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
15093         corrected improper use of assert: the assignment to clr variable was done inside the assert.
15094         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
15095         was not executed, and the compiler (cl) launched a warning:
15096         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
15097
15098 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
15099         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
15100
15101 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
15102         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
15103
15104         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
15105           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
15106           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
15107           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
15108           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
15109           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
15110           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
15111         - added Release configuration in VS projects
15112         - review of compiler an linker options
15113         - VC .exe files are generated in bin_vc directory, not to interfere
15114           with binaries generated from other projects (cygwin, mingw, bcc ...)
15115
15116         * sdcc/src/yacc.dsp: added
15117
15118         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
15119         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
15120         and insert the version number definitions from .version
15121
15122         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
15123
15124         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
15125         added - genarate auto-host.h using auto-host_vc_in.h as template
15126
15127         * sdcc/sdcc_vc.h,
15128         removed from CVS, generated automatically
15129
15130 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
15131         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
15132
15133 2002-08-11  Borut Razem <borut.razem AT siol.net>
15134         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
15135
15136 2002-08-10  Borut Razem <borut.razem AT siol.net>
15137         * src/SDCCmain.c (main):
15138         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
15139         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
15140         The consequence was that some temporary files were not removed.
15141
15142         * src/SDCCglue.c:
15143         unification of code in functions tempfilename() and tempfile():
15144         function tempnam() is defined in Visual Studio 6.0 and .NET
15145
15146         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
15147
15148         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
15149           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
15150         - removed compiler command line option /WX: Treats all warnings as errors
15151         - update a list of source files, included into the project
15152
15153         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
15154           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
15155         changed project type to Generic Project so that can be correcly converted to VS.NET project
15156
15157         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
15158
15159         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
15160
15161         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
15162
15163         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
15164         added return 0 statements after assert() to make compiler happy
15165
15166         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
15167         added newline in the def file to keep MSC compiler satisfied
15168
15169         * sdcc/src/z80/gen.c:
15170         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
15171           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
15172         - solved MSC error in function aopDump()
15173
15174         * sdcc_vc.h: define PREFIX as "\\sdcc"
15175
15176 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
15177         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
15178
15179 2002-06-22  Scott Dattalo <scott AT dattalo.com>
15180         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
15181         - Rewrote the register banking algorithm.
15182         - Added pCode live-range analysis to registers (for now, only non-used and
15183         singly-used registers optimized away)
15184
15185         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
15186
15187         * 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.
15188
15189 2002-05-10  Scott Dattalo <scott AT dattalo.com>
15190         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
15191
15192 2002-04-22  Michael Hope  <michaelh AT vroom>
15193
15194         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
15195
15196         * configure.in (DD_COPT): Added include support required for gbdk.
15197
15198         * .version: Bumped version number just to increase it.
15199
15200         * src/SDCCmain.c: Added -nostdinc to the default options.
15201
15202 2002-04-15  Michael Hope  <michaelh AT vroom>
15203
15204         * device/lib/z80/printf.c (sprintf): Added.
15205
15206         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
15207
15208         * src/z80/peeph.def: Added transpose redundent load rule.
15209
15210         * src/z80/main.c: Added force callee saves for jaune.
15211
15212         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
15213
15214         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
15215
15216 2002-03-28  Johan Knol  <johan AT balder>
15217
15218         * src/SDCCval.c: fixed bug #532436
15219
15220 2002-03-14  Scott Dattalo <scott AT dattalo.com>
15221         * /src/port.h:
15222         Added "char *Processor" field to the port structure.
15223
15224         * /src/SDCCmain.c:
15225         Added -p option. Allows port dependent processor to be specified.
15226
15227         * all ports:
15228         Initialized the new field char *Processor field to NULL in all ports
15229
15230         * /src/pic/*:
15231         Compiler generated registers for interrupt context saving
15232         were not getting allocated.
15233
15234 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
15235
15236         * /src/SDCCast.c:
15237         Fixed left shift. Will promote the left side of a left shift
15238         if a) left shifting more than size of operand or b) when assigned
15239         to something size > size of left side
15240
15241 2002-03-14  Scott Dattalo <scott AT dattalo.com>
15242         * src/pic/*
15243         tons of changes. Register allocation has been
15244         rewritten. Added customization for the various PICs. Flow
15245         analysis is restructured. ...
15246
15247         * src/pic/device.h:
15248         Added
15249
15250         * src/pic/device.c:
15251         Added. device.c is a PIC port hack to accomodate variations
15252         in PIC devices.
15253
15254 2002-03-13  Michael Hope  <michaelh AT vroom>
15255
15256         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
15257
15258 2002-03-04  johanknol  <johanknol AT manik>
15259
15260         * /src/SDCCval.c: fixed
15261
15262         const unsigned char arr[][2] = { { 0, 1 } };
15263         t18.c:1: error: Initializer element is not constant
15264
15265 2002-03-04  bela  <bela AT manik>
15266
15267         * /device/include/mcs51reg.h:
15268         ds89c420 register definition update
15269
15270 2002-03-03    <johan AT FRIJA>
15271
15272         * support/Util/SDCCerr.c: did something, but don't no why anymore
15273
15274         * support/regression/tests/bug-524691.c: made it a little less shy
15275
15276         * src/SDCCast.c (decorateType): fixed bug #524697
15277
15278         * src/SDCCast.c: made some lineno improvements
15279
15280         * src/SDCCval.c (getNelements): changed warning to error
15281
15282         * src/SDCCglue.c (printIvalArray): changed warning to error
15283
15284         * src/SDCCicode.c: fixed a warning for mingw
15285
15286         * src/SDCCast.c (decorateType): fixed the << promotion for ops
15287
15288         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
15289
15290 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
15291
15292         * src/ds390/peeph.def:
15293         Added some more peephole rules
15294
15295         * src/ds390/gen.c: Various fixes & enhancements
15296
15297         * src/SDCClrange.c, src/SDCClrange.h:
15298         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
15299
15300         * src/ds390/ralloc.c:
15301         various fixes & enhancements (ds390) specific
15302
15303         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
15304         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
15305         from rallocs.
15306
15307         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
15308
15309 2002-03-02    <johan AT FRIJA>
15310
15311         * src/SDCCast.c (decorateType): fixed bug #524708
15312
15313         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
15314
15315         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
15316
15317 2002-03-01  Michael Hope  <michaelh AT vroom>
15318
15319         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
15320
15321         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
15322
15323 2002-03-01    <johan AT FRIJA>
15324
15325         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
15326
15327         * src/SDCCast.c (decorateType): fixed bug #524209
15328
15329         * src/SDCCval.c (valNot): fixed bug #524195
15330
15331 2002-02-26    <johan AT balder>
15332
15333         * src/xa51/gen.c: fixed a warning
15334
15335         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
15336
15337         * src/SDCCast.c (decorateType): fixed bug #522534
15338
15339 2002-02-23    <johan AT balder>
15340
15341         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
15342
15343 2002-02-22    <johan AT balder>
15344
15345         * src/SDCCast.c: fixed bug #514865
15346
15347         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
15348
15349 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
15350
15351         * sdcc/src/SDCCloop.c:
15352         Previous fix was not good. basic blocks that have "break" or "return" are
15353         not really partof a loop , but live ranges used in these blocks should
15354         be live thru the entire loop, so set partOfLoop but don't add them to
15355         loop region
15356
15357 2002-02-21    <johan AT FRIJA>
15358
15359         * src/SDCCcse.c: fixed bug #514308
15360
15361 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
15362
15363         * src/SDCCloop.c:
15364         Fixed BUG #519583. If a conditional block ended in a return/break
15365         statement inside a loop, it was not being considered part of the loop.
15366
15367         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
15368
15369 2002-02-10  Karl Bongers <karl AT turbobit.com>
15370
15371         * debugger/*:
15372         Fixed up SDCDB debugger somewhat.  Updated debugger/README
15373         with lots of comments and notes.
15374
15375         * device/examples/test2.c:
15376         Fix bug, "red" variable not being initialized(compiler complained).
15377
15378         * device/examples/Makefile, examples/test3.c:
15379         Add Makefile in device/examples folder, compiles test3.c
15380         for use as a multiple module SDCDB test case.
15381
15382         * sim/ucsim/cmd.src/cmdset.cc:
15383         Took out debug printfs in ucsim "next" command.
15384
15385         * sim/ucsim/xa.src:
15386         Karl and Johan start ucsim XA support.  Most dissassembly working,
15387         about 75% emulation done(plenty of work remaining).
15388
15389         * sim/ucsim/z80.src:
15390         Add Z80 support to ucsim, add test-ucz80 regression test,
15391         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
15392         Notice z80 compiler fails on examples/test3.c/crc code.
15393
15394 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
15395
15396         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
15397         Added support for --parms-in-bank1
15398
15399         * src/ds390/peeph.def:
15400         added a few more peephole optimzations
15401
15402         * src/ds390/main.c:
15403         1) added __builtin_inp & __builtin_outp used to read in data of given length
15404            from a memory mapped port
15405         2) added __builtin_memcmp
15406         3) added __builtin_swapw swap bytes of a short
15407
15408         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
15409         1) handle multiple send & receives from register bank1
15410         2) ralloc can now allocate DPTR1 to some liveRanges
15411
15412         * src/SDCCsymt.c, src/SDCCsymt.h:
15413         changes to handle multiple sends & receives
15414
15415         * src/SDCCptropt.h:
15416         added some pointer arithmetic optimization
15417
15418         * src/SDCCptropt.c:
15419         added some pointer arithmetic optimizations but not stable yet so not
15420         called from anywhere (will get this working shortly)
15421
15422         * src/SDCCopt.c: fixed for multiple sends & receives
15423
15424         * src/SDCCmain.c:
15425         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
15426         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
15427            set preprocessor defines (depending on options)
15428
15429         * src/SDCCicode.c, src/SDCCicode.h:
15430         changes made to handle multiple sends & receives
15431
15432         * src/SDCCglobl.h:
15433         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
15434
15435         * src/SDCCcse.c, src/SDCCcse.h:
15436         added function findbackward def (to be used in upcoming optimization)
15437
15438         * src/SDCCcflow.c, src/SDCCcflow.h:
15439         added function returnAtEnd - to determine if a basic block terminates with
15440         a RETURN iCode
15441
15442         * src/SDCCast.c, src/SDCCast.h:
15443         added option parms-in-bank1
15444
15445         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
15446         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
15447         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
15448         adjusted for --parms-in-bank1 option
15449
15450         * device/include/string.h:
15451         donot redefine "reentrant" keyword
15452
15453         * device/include/ds80c390.h: Added some more SFRs
15454
15455 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
15456
15457         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
15458
15459 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
15460
15461         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
15462
15463 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
15464
15465         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
15466
15467 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
15468
15469         * Added --xram-movc option
15470
15471 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
15472
15473         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
15474
15475 2002-01-11  Johan Knol
15476
15477         * Added math lib of Jesus Calvino-Fraga
15478
15479 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
15480
15481         * src/SDCCmain.c (processFile): fix processing of ../../src.c
15482         * support/regression/Makefile: new target test-mcs51-stack-auto
15483         * support/regression/ports/mcs51-stack-auto/spec.mk: added
15484
15485 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
15486
15487         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
15488
15489 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
15490
15491         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
15492
15493 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
15494
15495         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
15496
15497         * src/SDCCglue.h: add definition for printIvalChar()
15498
15499 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
15500
15501         * src/SDCCast.c: fix #498138 by Johan
15502
15503         * src/SDCCglue.c: fix #498138 by Johan
15504
15505 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
15506
15507         * support/regression/Makefile: fix clean
15508
15509         * support/regression/ports/ds390/support.c: fix transmission of last character
15510
15511 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
15512
15513         * /sdcc/src/ds390/gen.c:
15514         a) improved computing address of stack variable
15515         b) took out some #if 0 code
15516         c) improved parmBytes adjustment
15517         d) improved genPlusIncr & genMinusIncr
15518         e) genCmp could generate bad code (when left assigned to DPTR)
15519         f) Fixed bug in hasInc
15520
15521         * /sdcc/src/ds390/ralloc.c:
15522         a) packRegsForSupport could mess up live information (Fixed)
15523         b) packRegsDPTRuse could be incorrect for left & right shift
15524
15525         * /sdcc/src/mcs51/ralloc.c:
15526         packRegsForSupport could mess up the live information (Fixed)
15527
15528         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
15529
15530         * /sdcc/src/SDCCast.c:
15531         can reverse a loop even if function call is present as long
15532         as the loop control variable is local & is not passed as parameter
15533
15534 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15535
15536         * /sdcc/ChangeLog: *** empty log message ***
15537
15538         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
15539         More builtin function additions for TININative
15540
15541         * /sdcc/src/ds390/ralloc.c:
15542         Had broken the regression testsuite
15543
15544         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
15545
15546         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
15547         Added funcattr hasStackParms will be set for reentrant functions when there
15548         are paramteres on the stack, this helps in minimizing frame pointer generation
15549         typeFromStr can handle function pointers now
15550
15551         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
15552         *** empty log message ***
15553
15554 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15555
15556         * /src/ds390/gen.c, /src/ds390/main.c:
15557         More builtin function additions for TININative
15558
15559         * /src/ds390/ralloc.c:
15560         Had broken the regression testsuite
15561
15562         * /src/SDCCast.c: Fixed a bug in dumptree
15563
15564         * /src/SDCCsymt.c, /src/SDCCsymt.h:
15565         Added funcattr hasStackParms will be set for reentrant functions when there
15566         are paramteres on the stack, this helps in minimizing frame pointer generation
15567         typeFromStr can handle function pointers now
15568
15569         * /doc/builtins.txt, /doc/TININative.txt:
15570         *** empty log message ***
15571
15572
15573 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15574
15575         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
15576         ALPHA version for -mTININative
15577
15578         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
15579         updated to reflect changes in the port structure
15580
15581         * /src/port.h:
15582         added function do_assemble (similar to do_link) if non-null this function
15583         will be called to do assembly (-mTININative) requires a multi command
15584         assembly
15585         added function genAssemblerEnd will be called to generate assembler Epilogue
15586
15587         * /src/SDCCsymt.c:
15588         added _JavaNative to debug info printing
15589
15590         * /src/SDCCmain.c: added option --tini-libid
15591         added port->do_assemble function (-mTININative) has a multi command assemble
15592
15593         * /src/SDCCglue.c: Disabled "constExpr" check
15594         added port->genAssemblerEnd function
15595
15596         * /src/SDCCglobl.h: Added option --tini-libid value
15597
15598         * /src/SDCCast.h:
15599         tookout optimizeCompare from the header (has no external references)
15600
15601         * /src/SDCCast.c: made one more function "static"
15602
15603 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
15604
15605         * src/z80/mappings.i: Added z80asm support.
15606
15607         * src/z80/main.c: Added z80asm support on --asm=z80asm
15608
15609         * src/z80/gen.c: Fixed asm portability issues.
15610
15611         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
15612
15613         * src/SDCCglue.c (printExterns): Added global/extern split.
15614
15615 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
15616
15617         * support/regression/Makefile: added test for mcs51 model large
15618
15619         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
15620
15621         * support/regression/ports/gbz80/spec.mk: added -mgbz80
15622
15623 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
15624
15625         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
15626
15627 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
15628
15629         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
15630
15631         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
15632
15633 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
15634
15635         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
15636
15637         * support/regression/tests/simplefloat.c: Port to mcs51.
15638
15639 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
15640         * support/regression/tests/bug-485362.c: Added.
15641
15642         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
15643
15644         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
15645
15646         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
15647
15648         * src/z80/gen.c (aopDump): Added a dump function.
15649
15650 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
15651         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
15652
15653         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
15654
15655         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
15656
15657         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
15658
15659         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
15660
15661         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
15662
15663         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
15664
15665         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
15666
15667         * support/regression/ports/ds390/support.c: Use tinibios.
15668
15669         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
15670
15671 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
15672
15673         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
15674         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
15675
15676         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
15677
15678         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
15679
15680 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
15681
15682         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
15683
15684         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
15685         (packRegsForIYUse): Created and optimised.
15686
15687 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
15688
15689         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
15690 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
15691
15692         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
15693
15694         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
15695
15696         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
15697
15698 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15699
15700         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
15701
15702         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
15703
15704 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15705
15706         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
15707
15708         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
15709
15710         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
15711
15712 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
15713
15714         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
15715         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
15716         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
15717
15718         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
15719
15720         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
15721         (genNotFloat): Added.
15722         (genUminusFloat): Added.
15723
15724         * device/lib/z80/Makefile: Added floating pt stubs.
15725
15726         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
15727
15728         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
15729
15730         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
15731
15732 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15733
15734         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
15735
15736         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
15737
15738         * sdcc/support/regression/Makefile: Add port ds390.
15739
15740         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
15741
15742         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
15743
15744         * sdcc/support/regression/ports/ds390/spec.mk: Added.
15745
15746         * sdcc/support/regression/ports/ds390/support.c: Added.
15747
15748         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
15749
15750         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
15751
15752         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
15753
15754 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
15755
15756         * device/include/malloc.h: Added z80 and gbz80 support.
15757
15758         * device/lib/gbz80/heap.s: Added.
15759
15760         * device/lib/z80/heap.s: Added.
15761
15762         * device/lib/malloc.c: Added z80 and gbz80 support.
15763
15764         * support/regression/tests/malloc.c (testMalloc): Added.
15765
15766         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
15767
15768         * support/regression/tests/bug-478094.c: Added.
15769
15770         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
15771
15772 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
15773
15774         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
15775
15776         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
15777
15778         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
15779
15780         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
15781
15782         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
15783
15784 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
15785
15786         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
15787
15788 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
15789
15790         * support/regression/tests/bug-477927.c: Added.
15791
15792         * src/z80/peeph.def: Added minor rules.
15793
15794         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
15795
15796         * src/z80/peeph.def: Added jump optimisation modification.
15797
15798 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
15799
15800         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
15801
15802 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
15803
15804         * support/regression/tests/funptrs.c: Added.
15805
15806 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
15807
15808         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
15809
15810 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
15811
15812         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
15813
15814         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
15815
15816         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
15817         (movLeft2ResultLong): Created.
15818
15819         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
15820         (joinPushes): Added.  Joins two char pushes into a word push.
15821
15822 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
15823
15824         * support/cpp2/Makefile.in (install): Added creation of dest dir.
15825
15826         * support/makebin/Makefile (install): Added creation of dest dir.
15827
15828 2001-10-24 Karl Bongers <karl AT turbobit.com>
15829
15830         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
15831
15832 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
15833
15834         * src/z80/ralloc.c: Turned off faulty pack for one use.
15835
15836         * src/z80/peeph-gbz80.def: Removed redundent restart options.
15837
15838         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
15839
15840 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
15841
15842         * support/regression/Makefile: Improved clean
15843
15844         * support/regression/ports/gbz80/spec.mk: Added clean
15845
15846         * support/regression/ports/host/spec.mk: Added clean
15847
15848         * support/regression/ports/z80/spec.mk: Added clean
15849
15850         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
15851
15852         * support/regression/ports/mcs51/timeout.c: little improvements
15853
15854 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
15855
15856         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
15857
15858         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
15859
15860         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
15861
15862 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
15863
15864         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
15865
15866         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
15867
15868 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
15869         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
15870
15871         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
15872
15873         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
15874
15875         * src/mcs51/main.c (_linkCmd): Added bin path to command.
15876
15877         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
15878
15879         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
15880
15881         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
15882
15883         * support/regression/tests/longor.c: Added.
15884
15885 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
15886
15887         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
15888
15889         * as/mcs51/aslink.h: define PATH_MAX
15890
15891         * as/mcs51/asm.h: define PATH_MAX
15892
15893         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
15894
15895         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
15896
15897         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
15898
15899         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
15900
15901         * src/SDCCglobl.h: define PATH_MAX
15902
15903         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
15904
15905         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
15906
15907 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
15908
15909         * src/z80/gen.c (gencjneshort): Fixed
15910
15911         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
15912
15913 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
15914
15915         * support/regression/tests/bug-469671.c: Added.
15916
15917         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
15918
15919 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
15920
15921         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
15922
15923         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
15924
15925 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
15926
15927         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
15928
15929         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
15930
15931         * src/device/lib/_mullong.c : removed hint: nooverlay bug
15932
15933         * src/device/lib/_divuint.c : removed hint: nooverlay bug
15934
15935         * src/device/lib/_divulong.c: removed hint: nooverlay bug
15936
15937         * src/device/lib/_moduint.c : removed hint: nooverlay bug
15938
15939         * src/device/lib/_modulong.c: removed hint: nooverlay bug
15940
15941 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
15942
15943         * 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.
15944
15945         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
15946
15947         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
15948
15949 2001-10-07    <johan AT FRIJA>
15950
15951         * device/lib/gets.c (gets): fixed the return value.
15952
15953 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
15954         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
15955
15956         * 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.
15957
15958         * 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.
15959
15960         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
15961
15962         * src/pic/gen.c: Removed Safe_strdup.
15963
15964         * configure.in: Added option to enable libgc support.
15965
15966         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
15967         (bitVectUnion): Optimised.
15968         (bitVectIntersect): Optimised.
15969         (bitVectBitsInCommon): Optimised.
15970         (bitVectCplAnd): Optimised.
15971
15972         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
15973
15974 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
15975
15976         * src/SDCCmain.c: distinguish between assembler debug and plain options
15977
15978         * src/avr/main.c:   remove standard assembler options
15979
15980         * src/ds390/main.c: remove standard assembler options
15981
15982         * src/mcs51/main.c: remove standard assembler options
15983
15984         * src/port.h: removed "PENDING" comment
15985
15986 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
15987
15988         * src/device/lib/_mulint.c  : new, with assember functions
15989
15990         * src/device/lib/_mullong.c : new, with assember functions
15991
15992         * src/device/lib/_divuint.c : with assember functions
15993
15994         * src/device/lib/_divsint.c : with assember functions
15995
15996         * src/device/lib/_divulong.c: with assember functions
15997
15998         * src/device/lib/_divslong.c: with assember functions
15999
16000         * src/device/lib/_moduint.c : with assember functions
16001
16002         * src/device/lib/_modsint.c : with assember functions
16003
16004         * src/device/lib/_modulong.c: with assember functions
16005
16006         * src/device/lib/_modslong.c: with assember functions
16007
16008         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
16009
16010         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
16011
16012         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
16013                                       replaced _mululong.c and _mulslong.c by _mullong.c
16014
16015 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16016
16017         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
16018
16019 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
16020
16021         * src/SDCCglue.c: test, if win32api is available for MINGW
16022
16023 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
16024
16025         * src/SDCCsymt.c: no more _modifier in printTypeChain()
16026         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
16027         * support/regression/ports/gbz80/spec.mk: removed GENERIC
16028         * support/regression/ports/host/spec.mk: removed GENERIC
16029         * support/regression/ports/mcs51/spec.mk: removed GENERIC
16030         * support/regression/ports/z80/spec.mk: removed GENERIC
16031
16032 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
16033
16034         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
16035
16036         * support/regression/tests/bug-467035.c: Created.
16037
16038 2001-10-01    <johan AT FRIJA>
16039
16040         * src/SDCC.y: fixed bug #466586 part 1
16041
16042 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
16043
16044         * SDCCicode.c: z80 has no generic pointers
16045         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
16046
16047 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
16048
16049         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
16050
16051 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
16052
16053         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
16054
16055         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
16056
16057 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
16058
16059         * configure.in: Fixed up so that ucsim is only configured once.
16060
16061         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
16062
16063         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
16064         (getPathDifference): As above.
16065
16066         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
16067
16068         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
16069
16070 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
16071         * .version: Updated to 2.3.1
16072
16073         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
16074         Added copyright header.
16075
16076         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
16077         (assemble): Added support for macro based assembler commands.
16078         (linkEdit): Added support for macro based linker commands.
16079         (preProcess): Changed the pre-processor to use macros.
16080         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
16081         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
16082
16083         * device/lib/z80/crt0.s: Added module name for debugging.
16084
16085 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
16086
16087         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
16088
16089         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
16090
16091         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
16092
16093         * src/Makefile.in: Added SDCCmacro and SDCCutil
16094
16095 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
16096
16097         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
16098
16099 2001-09-16    <johan AT FRIJA>
16100
16101         * 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.
16102
16103 2001-09-15    <johan AT FRIJA>
16104
16105         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
16106         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
16107
16108 2001-09-11    <johan AT FRIJA>
16109
16110         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
16111
16112 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
16113
16114         * support/regression/tests/bug-460444.c: Added test case.
16115
16116         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
16117         (genCast): Added justification for all of the asserts.
16118
16119 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
16120
16121         * support/regression/support.c: _xdata replaced by xdata
16122
16123         * support/regression/spec.mk: removed _generic
16124
16125 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
16126
16127         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
16128
16129         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
16130         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
16131
16132         * src/z80/peeph.def: Added a rule to optimise shift then compare.
16133
16134         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
16135
16136         * support/regression/tests/bug-460010.c: Added test case.
16137
16138         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
16139
16140 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
16141
16142         * support/regression/Makefile: inter-port-clean adjusted for mcs51
16143
16144         * support/regression/testfwk.c: removed workaround for bug #436344
16145
16146         * support/regression/tests/bp.c: use less memory with mcs51
16147
16148         * support/regression/tests/bug-441448.c: use less memory
16149
16150         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
16151
16152         * support/regression/collate-results.py: typo
16153
16154 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
16155
16156         * support/regression/tests/fetchoverlap.c: Added new test case.
16157
16158         * support/regression/tests/bp.c: Added new test case.
16159
16160         * support/regression/tests/bug-448984.c: Added new test case.
16161
16162         * support/regression/tests/pow2shifts.c: Added new test case.
16163
16164         * src/z80/gen.c: Turned off the noise it normally generates for the release.
16165         (genlshTwo): Fixed right shift for count > 8.
16166
16167         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
16168
16169 2001-09-08    <johan AT FRIJA>
16170
16171         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
16172
16173 2001-09-07    <johan AT FRIJA>
16174
16175         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
16176
16177         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
16178
16179 2001-09-06    <johan AT FRIJA>
16180
16181         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
16182         * bernhard noted me at this: "() equals to (void)" (1.38)
16183
16184 2001-09-05    <johan AT FRIJA>
16185
16186         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
16187
16188 2001-09-04    <johan AT FRIJA>
16189
16190         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
16191
16192
16193 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
16194
16195         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
16196
16197 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
16198
16199         * link/z80/aslink.h: Fixed path for PATH_MAX
16200
16201 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
16202
16203         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
16204
16205         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
16206
16207         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
16208
16209         * 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.
16210
16211 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
16212
16213         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
16214         (genCmp): Fixed up genCmp for the GB with longs.
16215
16216         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
16217
16218         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
16219
16220         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
16221
16222         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
16223
16224 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
16225
16226         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
16227
16228 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
16229
16230         * 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.
16231
16232         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
16233
16234 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
16235
16236         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
16237
16238         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
16239
16240 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
16241
16242   * sim/ucsim/configure:    little improvement of Cygwin-detection
16243   * sim/ucsim/configure.in: little improvement of Cygwin-detection
16244   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
16245   * support/regression/tests/bug-221100.c: small changes for mcs51
16246   * support/regression/tests/bug-221168.c: small changes for mcs51
16247   * support/regression/tests/bug-227710.c: small changes for mcs51
16248   * support/regression/tests/staticinit.c: small changes for mcs51
16249   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
16250   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
16251   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
16252
16253 $Revision$