* device/include/pic16/pic18f2455.h: added bitfields for port C
[fw/sdcc] / ChangeLog
1 2008-04-20 Raphael Neider <rneider AT web.de>
2
3         * device/include/pic16/pic18f2455.h: added bitfields for port C
4
5 2008-04-20 Philipp Klaus Krause <pkk AT spth.de>
6
7         * src/z80/peep.c: Use werror for error messages.
8
9 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
10
11         * src/z80/peep.h (declaration of notUsed()),
12         * src/z80/main.c (enabled notUsed() for z80 port, documented z80_port
13           struct),
14         * src/z80/z80.h (added dependency on peep.h),
15         * src/z80/peep.c (definition of notUsed()): Implemented RFE #1880202
16           for Z80.
17
18 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
19
20         * src/SDCCpeeph.c (added support for notUsed()),
21         * src/mcs51/main.c (added dependency on peep.h, documented mcs51_port
22           struct),
23         * src/port.h (removed dependency on mcs51/peep.h, added declaration
24           for notUsed()): Implemented generic (that is not port-specific) part
25           of RFE #1880202.      
26
27 2008-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
28
29         * as/link/mcs51/lkmem.c (summary2): fixed bug 1796077
30         * device/lib/libsdcc.lib,
31         * device/lib/Makefile.in,
32         * support/regression/ports/mcs51-xstack-auto/spec.mk,
33         * device/lib/calloc.c: renamed to _calloc.c
34         * device/lib/free.c: renamed to _free.c
35         * device/lib/malloc.c: renamed to _malloc.c
36         * device/lib/realloc.c: renamed to _realloc.c
37         * src/ds390/gen.c (aopGet, aopPut, genPlusBits, genDataPointerSet,
38           genNearPointerSet, genPagedPointerSet): synchronized with mcs51/gen.c
39         * src/ds390/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq, ifxForOp,
40           genAnd, genOr, genXor, genIfx, gen390Code): fixed bug 1509084
41         * src/mcs51/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq,
42           ifxForOp, genAnd, genOr, genXor, genNearPointerGet,
43           genPagedPointerGet, genFarPointerGet, genCodePointerGet,
44           genGenPointerGet, genIfx, gen51Code): fixed bug 1509084
45         * src/ds390/gen.c,
46         * src/mcs51/gen.c: throughout cosmetic changes for syncing both
47         * src/SDCCsymt.h: updated IS_OP_RUONLY, IS_OP_ACCUSE
48         * support/regression/tests/bug1509084.c: new, added
49
50 2008-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
51
52         * device/include/mcs51/cc2510fx.h: added _XPAGE
53         * device/include/mcs51/compiler.h: cosmetic changes
54
55 2008-03-31 Maarten Brock <sourceforge.brock AT dse.nl>
56
57         * sdcc.dsw: adapted for moved cpp2, added dependency for as_z80 on
58           config
59
60 2008-03-31 Borut Razem <borut.razem AT siol.net>
61
62         * support/cpp2 renamed to support/cpp
63         * support/cpp2/libiberty/filenames.h, support/cpp2/libiberty/hex.c,
64           support/cpp2/libiberty/splay-tree.c,
65           support/cpp2/libiberty/splay-tree.h, support/cpp2/libcpp/macro.c,
66           support/cpp2/libcpp/directives.c,
67           support/cpp2/libcpp/include/cpplib.h,
68           support/cpp2/libcpp/include/symtab.h,
69           support/cpp2/libcpp/include/line-map.h,
70           support/cpp2/libcpp/line-map.c, support/cpp2/libcpp/files.c,
71           support/cpp2/libcpp/init.c, support/cpp2/libcpp/traditional.c,
72           support/cpp2/libcpp/expr.c, support/cpp2/libcpp/internal.h,
73           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/system.h,
74           support/cpp2/libcpp/charset.c: SDCPP synchronized with GCC CPP
75           release version 4.3.0
76         * configure.in, configure, Makefile.in, Makefile.bcc:
77           adapted for moved cpp2
78
79 2008-03-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
80
81         * device/include/hc08/mc68hc908jkjl.h: committed fix for bug #1929739,
82           thanks Alejandro Pustowka <alejo_pustowka AT yahoo.com.mx>
83
84 2008-03-30 Maarten Brock <sourceforge.brock AT dse.nl>
85
86         * src/SDCCloop.c (loopInvariants): applied fix for bug 1717943, thanks
87           Robert Larice
88         * support/regression/tests/bug1717943.c: new, added
89
90 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
91
92         * src/z80/gen.c (assignResultValue): Reverted reversal of order of
93           bytewise return value assignments introduced in last commit.
94
95 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
96
97         * src/z80/gen.c (emitDebug, assignResultValue, genPlus, genMinus,
98           genMult, genJumpTab):
99           Use 16-bit instructions for addition in some additional cases,
100           implemented RFEs #1914251, #1914245, #1922090, #1921382, #1918323.
101
102 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
103
104         * src/z80/ralloc.c (serialRegAssign, allocReg, tryAllocatingRegPair):
105           Implemented RFE #1921450, changed some debug messages.
106
107 2008-03-30 Borut Razem <borut.razem AT siol.net>
108
109         * Small Device C Compiler 2.8.0 released
110         * .version, doc/sdccman.lyx: changed sdcc version to 2.8.1
111         * support/scripts/sdcc.nsi: added finish page; this version
112           was used for 2.8.0 release
113         * doc/knownbugs.html: removed; magically generated by the build
114           process using gen_known_bugs.pl from now on
115
116 2008-03-23 Borut Razem <borut.razem AT siol.net>
117
118         * src/pic/gen.h: Q&D solution for the bug, found by Jim Paris
119           and reverted it, since it was already fixed by Raphael ;-)
120         * doc/knownbugs.html: updated for RC2
121
122 2008-03-22 Raphael Neider <rneider AT web.de>
123
124         * src/SDCCicode.c (getPtrType): avoid unnecessary extra assignments
125           for PIC16 targets
126
127 2008-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
128
129         * src/mcs51/gen.c (adjustArithmeticResult): fixed bug 1839299
130         * support/regression/tests/bug1839277.c: added related testBug1839299
131
132 2008-03-21 Maarten Brock <sourceforge.brock AT dse.nl>
133
134         * src/ds390/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign),
135         * src/mcs51/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign):
136           fixed bug 1839277
137         * src/mcs51/gen.c: throughout only output hex constants
138         * src/SDCCicode.c (getPtrType, geniCodeCast): fixed code size regression
139         * support/regression/tests/bug1839277.c: new, added
140
141 2008-03-21 Philipp Klaus Krause <pkk AT spth.de>
142
143         * src/z80/ralloc.c (callFuncByName): Used // instead of /**/ to fix
144           compilation warning about nested comments.
145
146 2008-03-20 Maarten Brock <sourceforge.brock AT dse.nl>
147
148         * src/SDCCsymt.c (comparePtrType): fixed bug 1921073
149         * support/regression/tests/bug1921073.c: new, added
150
151 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
152
153         * src/z80/SDCCpeeph.c.c (callFuncByName):
154           Commented function parameters.
155
156 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
157
158         * src/z80/ralloc.c (packRegsForAccUse2):
159           disabled a broken accumulator packing optimization (fixed #1292721).
160         * support/regression/tests/bug-1292721: Regression test for #1292721.
161
162 2008-03-16 Raphael Neider <rneider AT web.de>
163
164         * src/pic/gen.c (SetIrp,genNearPointerGet,genNearPointerSet):
165           fixed code bloat regression using a variant of patch #1915618
166
167 2008-03-16 Borut Razem <borut.razem AT siol.net>
168
169         * support/scripts/sdcc.nsi: added section debugging macros, added SDCC
170           icon, changed startup menu for release distribution, code cleaning,
171           create url files instead links in startup menu
172
173 2008-03-16 Maarten Brock <sourceforge.brock AT dse.nl>
174
175         * src/SDCCcse.c (algebraicOpts): fixed bug 1579949
176         * support/regression/tests/bug1579949.c: new, added
177
178 2008-03-14 Paul Stoffregen <paul AT pjrc.com>
179
180         * device/lib/printf_fast.c: fixed bug 1255403
181
182 2008-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
183
184         * doc/sdccman.lyx: enhanced paragraph about bankswitching for mcs51
185         * src/cdbFile.c (cdbWriteBasicSymbol): fixed bug 1909409 for locals
186
187 2008-03-14 Borut Razem <borut.razem AT siol.net>
188
189         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated link-xx and aslink
190           command line options
191         * as/link/hc08/lkmain.c: converted tabs to spaces so that the usage
192           is correctly displayed
193         * as/link/z80/lkmain.c: usage line commented out
194
195 2008-03-13 Borut Razem <borut.razem AT siol.net>
196
197         * doc/sdccman.lyx: corrected to be able to convert to PDF,
198           updated the list pf supported pic14 devices
199
200 2008-03-12 Maarten Brock <sourceforge.brock AT dse.nl>
201
202         * doc/sdccman.lyx: added paragraph about bankswitching for mcs51
203
204 2008-03-12 Borut Razem <borut.razem AT siol.net>
205
206         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated command line options,
207           fixed documentation request #1718191
208         * as/hc80/asmain.c, as/mcs51/asmain.c: added option -c to usage
209         * doc/sdccman.lyx: added description of --no-std-crt0 gbz80
210           command line option
211
212 2008-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
213
214         * src/SDCCast.c (isConformingBody): fixed bug 1505811, thanks Robert Larice
215         * support/regression/tests/bug1505811.c: new, added
216
217 2008-03-09 Raphael Neider <rneider AT web.de>
218
219         * device/include/pic16/pic18f2620.h,
220         * device/include/pic16/pic18f4620.h,
221         * device/lib/pic16/libdev/pic18f2620.c,
222         * device/lib/pic16/libdev/pic18f4525.c,
223         * device/lib/pic16/libdev/pic18f4620.c: merged 18f2525/2620/4525/4620
224           family to consistently use pic18f4620.[ch], fixes #1832562
225
226 2008-03-09 Borut Razem <borut.razem AT siol.net>
227
228         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
229           changed sdcc version to 2.8.0
230         * knownbugs.html: regenerated
231         * support/scripts/gen_known_bugs.pl: added number of open bugs
232
233 2008-03-09 Raphael Neider <rneider AT web.de>
234
235         * src/pic16/gen.c (pic16_mov2w_volatile): NEW, read volatile operands,
236           (genOr): read volatile operand even if the result is known,
237           closes #1511838
238           (genOr,genXor): removed unused legacy code,
239           (genDummyRead): use pic16_mov2w_volatile()
240
241 2008-03-08 Borut Razem <borut.razem AT siol.net>
242
243         * src/SDCCglue.c: fixed bug #1864582: multiple definition of char
244           cons w. --model-large
245         * support/regression/staticinit.c: added regression test for bug
246           #1864582
247
248 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
249
250         * src/ds390/gen.c (pushSide, genPcall),
251         * src/hc08/gen.c (pushSide, genPcall): synchronized with mcs51
252         * src/mcs51/gen.c: cosmetic changes
253         * support/regression/fwk/include/testfwk.h: added macro reentrant
254         * support/regression/tests/bug1908493.c: new, added
255
256 2008-03-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
257
258         * src/SDCCdebug.c:, as/link/lkaomf51.c: Fixed bug 1909409: Pdata in OMF file
259
260 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
261
262         * src/mcs51/gen.c (pushSide, genPcall): fixed bug 1908493
263         * src/SDCCmain.c (preProcess): removed -DSDCC_PARMS_IN_BANK1 because it is
264           already set in ds390/main.c and mcs51/main.c
265
266 2008-03-07 Raphael Neider <rneider AT web.de>
267
268         * src/regression/init0.c: new test for initialized arrays of function
269           pointers
270         * src/regression/Makefile: made a bit more flexible, added init0.c
271         * src/pic/glue.c (emitIvals): hacky fix for initializing from function
272           pointers, closes #1427663
273
274 2008-03-05 Borut Razem <borut.razem AT siol.net>
275
276         * dos/sdccman.lyx: docummented predefined macros SDCC_REVISION,
277           SDCC_PARMS_IN_BANK1, SDCC_FLOAT_REENT and SDCC_INT_LONG_REENT
278
279 2008-03-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
280
281         * support/librarian/sdcclib.c:Added feature request 1908061:
282           Synchronise sdcclib commands with ar.
283
284 2008-03-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
285
286         * src/SDCCmain.c: added predefined macros SDCC_REVISION (RFE #1907229),
287           and (depending on corresponding compiler option) SDCC_PARMS_IN_BANK1,
288           SDCC_FLOAT_REENT, SDCC_INT_LONG_REENT
289         * device/include/mcs51/compiler.h: removed umlauts, added double
290           underscore
291
292 2008-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
293
294         * src/SDCCptropt.c (ptrPseudoSymConvert): fixed bug 1536762
295         * support/regression/tests/bug1536762.c: new, added
296         * src/SDCCutil.c,
297         * src/SDCCutil.h: added getBuildDate()
298         * src/SDCCmain.c (printVersionInfo),
299         * src/SDCCglue.c (initialComments): use getBuildDate() instead of
300           __DATE__
301         * src/*/ralloc.c: removed IS_OP_RUONLY macro
302         * src/ds390/ralloc.c (packRegisters),
303         * src/mcs51/ralloc.c (packRegisters),
304         * src/z80/ralloc.c (packRegisters): applied fix for bug 1618050, thanks
305           Robert Larice
306         * support/regression/tests/bug1618050.c: new, added
307         * src/SDCCsymt.h: fixed typo in DECLSPEC2TXT
308         * support/regression/fwk/include/testfwk.h,
309         * support/regression/tests/bug1838000.c: moved _AUTOMEM and _STATMEM to
310           testfwk.h
311
312 2008-03-04 Raphael Neider <rneider AT web.de>
313
314         * src/pic/gen.c: removed unused prototypes, prevent internal errors
315           on accessing OP_SYM_TYPE(op)
316         * src/pic/gen.h: removed unused prototype of genMinusDec()
317         * src/pic/genarith.c (genMinus): cosmetic changes, rewritten to
318           fix #1876953 (invalid subtraction code), removed unused code
319
320 2008-03-03 Raphael Neider <rneider AT web.de>
321
322         * src/pic/gen.c,
323         * src/pic/gen.h,
324         * src/pic/genarith.c,
325         * src/pic/ralloc.c,
326         * src/pic/ralloc.h: removed AOP_R0, AOP_R1, AOP_DPTR, AOP_DPTR2,
327           AOP_ACC, and *_IDX and adjusted code, removed unused legacy code
328
329 2008-03-03 Raphael Neider <rneider AT web.de>
330
331         * src/pic/device.c (find_device): search user-specified paths first
332           for pic14devices.txt, fixes #1900827
333
334 2008-03-02 Borut Razem <borut.razem AT siol.net>
335
336         * support/scripts/sdcc.nsi: fixed bug in IsNT, LogicLib-isation of
337           AddToPath and RemoveFromPath
338
339 2008-03-01 Borut Razem <borut.razem AT siol.net>
340
341         * support/scripts/sdcc.nsi: reverted MULTIUSER page since it didn't
342           work correctly, added debugging support if -DSDCC.DEBUG command line
343           option is defined
344
345 2008-02-28 Borut Razem <borut.razem AT siol.net>
346
347         * doc/sdccman.lyx: cosmetic changes
348
349 2008-02-28 Maarten Brock <sourceforge.brock AT dse.nl>
350
351         * src/mcs51/ralloc.c (fillGaps): fixed bug 1839671
352         * doc/sdccman.lyx: fixed unmeant removal of spaces
353
354 2008-02-27 Borut Razem <borut.razem AT siol.net>
355
356         * support/scripts/sdcc.nsi: corrected installation directory for
357           current user installation mode
358         * doc/README.txt: added Philipp Klaus Krause to the developers list
359
360 2008-02-27 Maarten Brock <sourceforge.brock AT dse.nl>
361
362         * src/mcs51/gen.c (genUnpackBits): don't generate ifxJump, instead
363           return ifx condition
364           (genNearPointerGet, genPagedPointerGet, genFarPointerGet,
365           genCodePointerGet, genGenPointerGet): cleanup aop before generating
366             ifxJump to fix bug 1838000
367         * src/SDCCsymt.c (aggregateToPointer): fix problem for xstack
368         * support/regression/tests/bug1838000.c: new, added
369         * device/include/mcs51/cc1110.h: new, added, thanks to Pravin Angolkar
370
371 2008-02-26 Borut Razem <borut.razem AT siol.net>
372
373         * src/SDCCast.c, doc/sdccman.lyx: fixed RFE #1901171: inerger promotion
374           of casted varargs
375         * support/scripts/sdcc.nsi: added MULTIUSER page,
376           NSIS upgraded to version 2.35
377
378 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
379
380         * src/mcs51/ralloc.c (isSpiltOnStack): fixed bug 1565152
381         * support/regression/tests/bug1565152.c: new, added
382
383 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
384
385         * src/mcs51/gen.c (genPagedPointerSet): fixed bug 1670148
386         * support/regression/ports/mcs51-xstack-auto/spec.mk: added expf.c
387         * support/regression/tests/bug1670148.c: new, added
388
389 2008-02-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
390
391         * device/include/mcs51/at89c51ed2.h: fixed bug 1901469.
392
393 2008-02-24 Borut Razem <borut.razem AT siol.net>
394
395         * src/SDCCast.c, src/SDCCast.h: fixed bug #1874922: explicit typecast
396           is ineffective for unsigned char parameter
397
398 2008-02-24 Maarten Brock <sourceforge.brock AT dse.nl>
399
400         * src/SDCCast.c (expandInlineFuncs): fixed bug 1875869
401         * src/SDCCglue.c (printIvalBitFields): fixed bug 1806631
402         * support/regression/tests/bitopcse.c: removed hc08 exception, see testfwk.h
403         * support/Util/MySystem.c (my_system): output errorcode when verbose
404
405 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
406
407         * src/z80/gen.c (genMult): Rewrote 8-bit multiplication by constant,
408           implements #1898231
409
410 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
411
412         * device/lib/z80/mul.s: Rewrote __muluchar_rrx_s, to improve 8-bit mult.,
413           implements #1896290
414
415 2008-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
416
417         * src/SDCCast.c (createIvalStruct): fixed bug 1466761
418
419 2008-02-21 Borut Razem <borut.razem AT siol.net>
420
421         * support/regression/Makefile.in,
422           support/regression/ports/ds390/spec.mk,
423           support/regression/ports/hc08/spec.mk,
424           support/regression/ports/mcs51-common/spec.mk,
425           support/regression/ports/pic14/spec.mk,
426           support/regression/ports/pic16/spec.mk,
427           support/regression/ports/ucz80/spec.mk,
428           support/regression/ports/xa51/spec.mk:
429           added CFLAGS when compiling timeout
430
431 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
432
433         * support/regression/tests/bugs-1596270-1736867.c: Regression test for
434           #1596270, #1736867
435
436 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
437
438         * src/SDCClrange.c (findPrevUse): fixed bug 1888147
439         * support/regression/tests/bug1888147.c: new, added
440
441 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
442
443         * src/z80/gen.c: fixed bugs #1596270, #1736867
444
445 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
446
447         * src/z80/gen.c: fixed bug in register pair loading when swapping register
448           contents, mostly fixes #1596270
449
450 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
451
452         * src/z80/peeph.def,
453         * src/z80/peeph-z80.def: moved peephole that breaks gbz80 to z80-specific
454           peepholes, fixes #1806565
455
456 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
457
458         * src/SDCCpeeph.c (operandBaseName): added check for @Ri
459         * src/mcs51/peeph.def (rule 177.c): added operandsNotRelated(%1 %3)
460           fixes bug 1739475, thanks Robert Larice
461           (rule 271): new, added
462
463 2008-02-18 Borut Razem <borut.razem AT siol.net>
464
465         * sim/ucsim/s51.src/Makefile.in: fixed error made in previous commit
466
467 2008-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
468
469         * src/SDCCmain.c (linkEdit): emit -z when using --debug for z80
470
471 2008-02-17 Raphael Neider <rneider AT web.de>
472
473         * src/pic16/genarith.c,
474         * src/pic16/gen.c,
475         * src/pic16/gen.h,
476         * src/pic16/genutils.c: removed unused legacy code,
477           removed unused fields from struct asmop and struct _G
478
479 2008-02-17 Raphael Neider <rneider AT web.de>
480
481         * src/pic16/gen.c (AccRsh): cosmetic changes,
482           (shiftR1Left2ResultSigned,shiftR1Left2Result,shiftL1Left2Result,
483           genRightShiftLiteral): fixed to work with SFRs as result by
484           assigning only once to result,
485           removed a lot of unused/excluded code fragments
486
487 2008-02-17 Raphael Neider <rneider AT web.de>
488
489         * device/include/pic/pic16f88.h,
490         * device/include/pic/pic16f886.h,
491         * device/include/pic/pic16f887.h: added TRISA6 and TRISA7
492
493 2008-02-17 Borut Razem <borut.razem AT siol.net>
494
495         * src/z80/peeph.def: applied patch
496           #1893626: Optimize tail calls on Z80, thanks to Philipp Krause
497         * src/z80/gen.c, src/z80/peeph.def: applied patch
498           #1893510: Improve logical left shift on Z80, thanks to Philipp Krause
499         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
500           sim/ucsim/s51.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
501           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
502           sim/ucsim/main_in.mk: renamed libutil.a to libucsimutil.a in order to
503           enable compilation on Mac OS X 10.5 (Leopard) and XCode v3.0
504
505 2008-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
506
507         * as/link/mcs51/aslink.dsp: removed SDK define
508         * as/link/z80/clean.mk: brought in sync with other ports
509         * as/link/z80/lklibr.c (SdccLib, fndsym): handle the dflag here too
510         * as/hc08/Makefile.bcc,
511         * as/mcs51/Makefile.bcc,
512         * as/z80/Makefile.bcc: noice.c was moved to as/asxxsrc/
513         * src/z80/main.c (_setValues): use the now capitalized -Z,
514           (z80_port, gbz80_port): generate debug information when asked
515
516 2008-02-16 Borut Razem <borut.razem AT siol.net>
517
518         * as/z80/asmain.c, as/z80/asm.h, as/z80/asdata.c,
519           as/link/z80/lkmain.c, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
520           as/z80/Makefile.in. as/z80/Makefile.bcc:
521           applied patch #1893393: patch for as-z80 and link-z80 to generate
522           cdb, thanks to Armin Diehl
523         * as/*/asnoice.c, as/hc08/as_hc08.dsp, as/hc08/Makefile.in,
524           as/mcs51/asx8051.dsp, as/mcs51/Makefile.in:
525           asnoice.c moved to as/asxxsrc/asnoice.c
526         * src/z80/peeph-gbz80.def: applied patch
527           #1880235: Z80 return peephole, thanks to Philipp Krause
528
529 2008-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
530
531         * .version,
532         * doc/sdccman.lyx: bumped version to 2.7.5
533         * src/SDCCsymt.c (compareType, comparePtrType): fixed bug 1281583
534
535 2008-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
536
537         * device/include/pic16/stdlib.h,
538         * device/lib/pic16/libc/stdlib/ltoa.c,
539         * device/lib/pic16/libc/stdio/vfprintf.c: ascii strings are char*
540
541 2008-02-13 Borut Razem <borut.razem AT siol.net>
542
543         * src/SDCCmain.c, src/SDCCglue.c: fixed --c1mode
544         * src/pic16/glue.c, src/SDCCast.c, src/SDCCast.h, src/SDCCBBlock.c,
545           src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c, src/SDCCloop.c,
546           src/SDCCopt.c,  src/SDCCval.c:
547           fixed bug #1890273: SDCC Warning 154 shows wrong filename
548
549 2008-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
550
551         * src/SDCCsymt.c (compareType): fixed bug 1309013
552
553 2008-02-09 Borut Razem <borut.razem AT siol.net>
554
555         * src/SDCCval.c, src/SDCCval.h:
556           code cleaning, added function constChrVal()
557         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c, src/SDCCast.c, src/SDCC.y:
558           call constChrVal() instead constVal()
559
560 2008-02-01 Maarten Brock <sourceforge.brock AT dse.nl>
561
562         * src/SDCCast.c (resolveSymbols): added reentrancy check for parameters
563           of function pointer
564         * src/SDCCerr.h,
565         * src/SDCCerr.c: changed warning W_NONRENT_ARGS to error E_NONRENT_ARGS
566         * support/regression/tests/absolute.c: added TestStruct TestVar (see also
567           bug 1859853)
568
569 2008-02-01 Raphael Neider <rneider AT web.de>
570
571         * device/include/pic/pic16f886.h,
572         * device/include/pic/pic16f887.h: added RA6 and RA7
573
574 2008-01-24 Raphael Neider <rneider AT web.de>
575
576         * device/include/pic/pic16f88.h: added RA6 and RA7
577         * device/lib/pic/libdev/disabled_pic16f886.c,
578         * device/lib/pic/libdev/disabled_pic16f887.c: renamed and enabled
579
580         * src/pic16/devices.inc,
581         * device/include/pic16/pic18f2423.h,
582         * device/include/pic16/pic18f2523.h,
583         * device/include/pic16/pic18fregs.h,
584         * device/lib/pic16/pics.all
585         * device/lib/pic16/libdev/pic18f2423.c,
586         * device/lib/pic16/libdev/pic18f2523.c: added 18f2423 and 18f2523
587         * device/lib/pic16/libio/i2c.ignore,
588         * device/lib/pic16/libio/usart.ignore,
589         * device/lib/pic16/libio/adc.ignore: ignore new devices
590
591 2008-01-23 Maarten Brock <sourceforge.brock AT dse.nl>
592
593         * src/SDCCast.c (createRMW): fixed bug 1582651
594
595 2008-01-20 Borut Razem <borut.razem AT siol.net>
596
597         * src/SDCCcse.c: partially fixed enhancement request
598           #1793872 - multiply by -1 not collapsed
599         * support/regression/tests/arithcsi.c: added regression test
600
601 2008-01-19 Maarten Brock <sourceforge.brock AT dse.nl>
602
603         * as/mcs51/asx8051.dsp: removed define SDK
604         * as/mcs51/i51mch.c (machine): fixed bug 1865114
605         * device/include/asm/ds390/features.h: fixed bug with ds390 & stack-auto
606         * as/link/lklex.c,
607         * as/link/mcs51/lkmain.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
608           cosmetic changes, brought more in sync, changed old K&R to ANSI
609
610 2008-01-13 Borut Razem <borut.razem AT siol.net>
611
612         * support/scripts/sdcc.nsi: added Uninstall/reinstall page, ...
613         * src/SDCCicode.c: fixed bug #1870216 - Error 122: dividing by zero
614
615 2007-12-30 Borut Razem <borut.razem AT siol.net>
616
617         * src/pic16/gen.c: fixed implementation of bitwise operations for
618           pic16 target
619         * support/regression/tests/bitwise.c: added test cases
620
621 2007-12-29 Borut Razem <borut.razem AT siol.net>
622
623         * src/SDCCasm.[ch]: renamed from asm[ch], use dbuf_getline(), ...
624         * src/src.dsp, src/Makefile.bcc, src/Makefile.in, src/common.h,
625           src/SDCCglue.c, src/xa51/main.c: asm.[ch] renamed to SDCCasm.[ch]
626         * support/Util/dbuf_string.[ch]: added function dbuf_getline()
627         * src/ds390/gen.c, src/hc08/gen.c, src/mcs51/gen.c, src/pic16/gen.c,
628           src/pic/gen.c, src/z80/gen.c, src/xa51/gen.c, src/pic16/ralloc.c,
629           src/pic16/pcode.[ch]: added const qualifier
630         * as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
631           as/mcs51/Makefile.bcc, as/mcs51/Makefile.in, as/mcs51/asx8051.dsp,
632           as/z80/Makefile.bcc, as/z80/Makefile.in, as/z80/as_gbz80.dsp,
633           as/z80/as_z80.dsp: added dbuf.[ch] and dbuf_string[ch] to project
634         * as/asxxsrc/aslex.c: use dbuf_getline()
635         * as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/asm.h, as/hc08/m08adr.c,
636           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/asm.h,
637           as/mcs51/i51adr.c, as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c,
638           as/z80/asm.h, as/z80/z80adr.c:
639           changed type of ib and ip to const char *
640
641 2007-12-28 Borut Razem <borut.razem AT siol.net>
642
643         * as/asxxsrc/aslex.c: moved from as/mcs51/aslex.c;
644           introduced (readlin) - long lines are turuncated
645         * as/hc08/as_hc08.dsp, as/mcs51/asx8051.dsp, as/z80/as_gbz80.dsp,
646           as/z80/as_z80.dsp, as/hc08/Makefile.in, as/mcs51/Makefile.in,
647           as/z80/Makefile.in: moved aslex.c to asxxsrc
648         * as/hc08/aslex.c, as/z80/aslex.c: deleted
649         * as/hc08/asmain.c, as/mcs51/asmain.c:
650           added missing initialization of a_addr field
651         * support/regression/tests/long_asm_line.c: added regtest for long
652           assembler line
653
654 2007-12-22 Borut Razem <borut.razem AT siol.net>
655
656         * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
657
658 2007-12-20 Maarten Brock <sourceforge.brock AT dse.nl>
659
660         * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang
661
662 2007-12-16 Borut Razem <borut.razem AT siol.net>
663
664         * device/include/pic16/stdbool.h: removed, since already exists in
665          device/include/; this also fixes bitopcse.c regression test for pic16
666          target
667         * support/regression/fwk/inclusw/testfwk.h: added macro ASSERT_FAILED
668         * src/pic16/glue.c: fixed bug #1851855: generic static pointer
669           dereference doesn't work; covered by regression test bug1399290
670
671 2007-12-05 Borut Razem <borut.razem AT siol.net>
672
673         * doc/sdccman.lyx: fixed bug #1844509 - Correction to Manual 4.6.9
674           Adding new PIC16
675
676 2007-12-01 Borut Razem <borut.razem AT siol.net>
677
678         * sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/mem.cc:
679           corrected handling of the highest_valid_address
680
681 2007-11-17 Raphael Neider <rneider AT web.de>
682
683         * src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
684         * src/pic/glue.c (picglue): emit .file if --debug is given
685
686 2007-11-17 Raphael Neider <rneider AT web.de>
687
688         * src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
689         care when left or right operand resides in result, fixes #1830220
690
691 2007-11-17 Borut Razem <borut.razem AT siol.net>
692
693         * src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
694           #983491 - "Merge duplicate strings function is ineffective"
695         * support/regression/tests/bug-983491.c: regtest disabled
696         * as/asxxsrc: created
697           as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
698           as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
699           as/z80/assym.c, as/hc08/asstore.c, as/mcs51/asstore.c: deleted
700           as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
701           as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
702           as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
703           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
704           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
705           as/link/z80/linkz80.dsp, as/mcs51/Makefile.bcc, as/mcs51/Makefile.in,
706           as/mcs51/asm.h, as/mcs51/asx8051.dsp, as/z80/Makefile.bcc,
707           as/z80/Makefile.in, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
708           as/z80/Makefile.as_hc08, as/mcs51/Makefile.asx8051: modified
709           created as/asxxsrc directory, assym.c and strcpi.c moved into it
710
711 2007-11-15 Maarten Brock <sourceforge.brock AT dse.nl>
712
713         * device/include/stdarg.h: added and removed some casts
714         * src/SDCCsymt.c (compareType): Fully check types between generic and
715           non-generic pointers, also accept ptr-ptr to void-ptr assignments
716
717 2007-11-13 Borut Razem <borut.razem AT siol.net>
718
719         * support/regression/tests/bug-1817005.c:
720           added regtest for bug #1817005 - as-z80 chokes on long labels
721
722 2007-11-12 Borut Razem <borut.razem AT siol.net>
723
724         * as\z80\asmain.c, as\z80\asm.h, as\z80\assym.c, as\z80\asdata.c,
725           as\z80\asout.c, as\z80\aslist.c:
726           fixed bug #1817005 - as-z80 chokes on long labels
727
728 2007-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
729
730         * as/hc08/asmain.c,
731         * as/z80/asmain.c: cosmetic changes
732         * as/hc08/alloc.h,
733         * as/mcs51/alloc.h,
734         * as/z80/alloc.h: removed
735         * as/hc08/assym.c,
736         * as/mcs51/assym.c: replaced alloc.h with stdlib.h
737         * as/link/aslink.h: added LKDIRSEP and, LKDIRSEPSTR
738         * as/link/hc08/Makefile.in,
739         * as/link/mcs51/Makefile.in,
740         * as/link/z80/Makefile.in: added -DUNIX to CFLAGS
741         * as/link/lklex.c,
742         * as/link/mcs51/lkarea.c,
743         * as/link/mcs51/lkmain.c: cosmetic changes
744         * as/link/hc08/lklibr.c,
745         * as/link/z80/lklibr.c,
746         * as/link/mcs51/lklibr.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
747           used cygwin_conv_to_full_posix_path,
748           added warnings, cosmetic changes, brought more in sync
749           changed old K&R into ANSI function declarations
750         * as/link/z80/lklibr.c (loadAdb): added
751         * as/link/z80/lkmain.c: removed -- option from usage text
752
753 2007-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
754
755         * src/mcs51/gen.c (outBitC): optimized for no result
756
757 2007-10-31 Borut Razem <borut.razem AT siol.net>
758
759         * src/SDCCsymt.c: fixed (hopeful properly) bug
760           #1805702 - order of extern matters
761         * support/regression/tests/bug-1805702.c: enabled regtest for bug
762           #1805702
763
764 2007-10-29 Borut Razem <borut.razem AT siol.net>
765
766         * src/SDCCsymt.c: reverted bad fixed of bug #1805702
767           - order of extern matters
768         * support/regression/tests/bug-1805702.c: disabled regtest for bug
769           #1805702
770
771 2007-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
772
773         * src/ds390/peeph.def: replaced 24bitModeAndPortDS390 by
774           24bitMode, portIsDS390
775         * src/mcs51/gen.c (genOr): optimized for RFE 1750727
776         * src/SDCCpeeph.c (flat24bitModeAndPortDS390): removed
777           (notVolatileVariable): also check sloc names,
778           (callFuncByName): moved ftab[] out of function and sorted it by use
779
780 2007-10-28 Maarten Brock <sourceforge.brock AT dse.nl>
781
782         * device/include/stdarg.h: fixed bug in va_start macro for --xstack
783         * src/hc08/gen.c (aopForRemat): aop->aopu.aop_immd.from_cast_remat not set,
784           aop->aopu.aop_immd.aop_immd2 not filled with (generic) pointer type
785         * src/SDCCicode.c (geniCodeCast): fixed bug 880197
786         * support/regression/tests/bug-880197.c: new, added
787
788 2007-10-28 Borut Razem <borut.razem AT siol.net>
789
790         * support/regression/Makefile.in,
791           support/regression/ports/mcs51-large/spec.mk,
792           support/regression/ports/mcs51-xstack-auto/spec.mk,
793           support/regression/ports/mcs51-stack-auto/spec.mk,
794           support/regression/ports/mcs51-medium/spec.mk,
795           support/regression/ports/mcs51-common/spec.mk,
796           support/regression/ports/mcs51-common/*,
797           support/regression/ports/mcs51-small/*:
798           mcs51 renamed to mcs51-common, created mcs51-small
799         * src/SDCCsymt.c: fixed bug #1805702 - order of extern matters
800         * support/regression/tests/bug-1805702.c: added regtest for bug
801           #1805702
802
803 2007-10-26 Maarten Brock <sourceforge.brock AT dse.nl>
804
805         * src/mcs51/peeph.def: moved rules 257.x to 253.x and re-enabled 253.b,
806           added new rules 265 - 270
807         * support/regression/tests/bug1721024.c:new, added
808         * support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
809           introduced new test-mcs51 to run all mcs51 tests
810
811 2007-10-25 Maarten Brock <sourceforge.brock AT dse.nl>
812
813         * support/regression/tests/bug1816470.c: new, added
814
815 2007-10-21 Maarten Brock <sourceforge.brock AT dse.nl>
816
817         * src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
818           propagate for *,+,- with float, fixed bug 1816470
819           (decorateType): cast to resultTypeProp instead of resultType
820
821 2007-10-19 Borut Razem <borut.razem AT siol.net>
822
823         * src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
824           function is ineffective" for pic16 tareget
825         * support/scripts/listerr.c: corrected include path
826         * device/lib/_itoa.c: fixed bug #1806402 - _itoa and _uitoa leak to
827           adjacent memory
828
829 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
830
831         * support/regression/tests/using.c: new, added
832         * support/regression/tests/vaargs.c: fixed and enabled test
833
834 2007-10-18 Borut Razem <borut.razem AT siol.net>
835
836         * src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
837           is ineffective
838         * support/regression/tests/bug-983491.c: added regtest for bug #983491
839
840 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
841
842         * doc/sdccman.lyx: documented option --Werror
843         * src/SDCCsymt.c (checkFunction): fixed bug 1815418 by setting
844           RegBankUsed[] earlier
845
846 2007-10-14 Maarten Brock <sourceforge.brock AT dse.nl>
847
848         * device/include/mcs51/p89lpc938.h: new, added, thanks Kyle Guinn
849         * src/pic/glue.c,
850         * src/SDCCval.c,
851         * src/SDCCast.c,
852         * src/SDCCast.h: replaced AST_LIT_VALUE with AST_FLOAT_VALUE and
853           AST_ULONG_VALUE
854         * src/SDCCast.c (decorateType): improved optimization of tri-op
855         * src/SDCCerr.c (vwerror, setWError),
856         * src/SDCCerr.h,
857         * src/SDCCmain.c (parseCmdLine): added option --Werror to treat all
858           warnings as errors, thanks Stas Sergeev for PATCH 1813211
859
860 2007-10-13 Maarten Brock <sourceforge.brock AT dse.nl>
861
862         * src/mcs51/gen.c (leftRightUseAcc): use macro IS_OP_ACCUSE
863         * src/SDCCast.c (decorateType): optimize bit=cond?1:0, RFE 1738430
864         * support/regression/tests/bug-223113.c,
865         * support/regression/tests/bug-426632.c,
866         * support/regression/tests/bug-468811.c,
867         * support/regression/tests/bug-477835.c,
868         * support/regression/tests/bug-478094.c,
869         * support/regression/tests/bug-499644.c,
870         * support/regression/tests/bug-524209.c,
871         * support/regression/tests/bug-524211.c,
872         * support/regression/tests/packcast.c,
873         * support/regression/tests/structidx.c: added empty tests
874         * support/regression/tests/bug-607243.c: enabled test
875
876 2007-10-06 Borut Razem <borut.razem AT siol.net>
877
878         * .version, doc/sdccman.lyx: bumped version to 2.7.4 to indicate the full
879            support of universal binaries on Mac OS X
880
881 2007-10-02 Borut Razem <borut.razem AT siol.net>
882
883         * src/SDCCval.h: unified double2ul macro for all platforms
884         * src/SDCCval.c: fixed bug #1777758 - applied Maarten's patch
885         * support/regression/tests/bitwise.c: added regtest for bug #1777758
886
887 2007-09-30 Borut Razem <borut.razem AT siol.net>
888
889         * src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
890           platforms
891         * sdcc_vc_in.h: enabled warnings
892         * src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
893           unsigned type, result still unsigned
894         * src/mcs51/peep.c: fixed gcc warning: suggest parentheses around && within ||
895
896 2007-09-28 Raphael Neider <rneider AT web.de>
897
898         * src/pic/device.c (find_device): prevent buffer underflow error
899         * src/pic/pcoderegs.c (OptimizeRegUsage): avoid dereferencing
900           the just destroyed list entry
901
902 2007-09-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
903
904         * doc/sdccman.lyx: there's a dedicated wiki page for cmake and sdcc, thanks
905           Alexander Neundorf
906
907 2007-09-18 Borut Razem <borut.razem AT siol.net>
908
909         * src/SDCCval.c: fixed MSVC warning C4146: unary minus operator
910          applied to unsigned type, result still unsigned
911
912 2007-09-17 Borut Razem <borut.razem AT siol.net>
913
914         * src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c,
915           src/SDCCicode.c, src/SDCCopt.c, src/SDCCsymt.c, src/SDCCval.c,
916           src/SDCCval.h, src/hc08/gen.c, src/avr/gen.c, src/ds390/gen.c,
917           src/mcs51/gen.c, src/pic/gen.c, src/pic/genarith.c, src/pic/glue.c,
918           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/genarith.c,
919           src/pic16/genutils.c, src/pic16/glue.c, src/pic16/main.c,
920           src/z80/gen.c, src/z80/ralloc.c:
921           fixed bug #1739860 - sdcc does not work correctly on some platforms
922           (not finished)
923           introduced and used ulFromVal(), double2ul(), used strtod() instead sscanf()
924
925 2007-09-17 Raphael Neider <rneider AT web.de>
926
927         * src/pic16/device.c: reverted to previous version
928         * device/lib/pic16/Makefile.common.in: quieten gpasm via -Wa,-q
929
930 2007-09-16 Raphael Neider <rneider AT web.de>
931
932         * src/pic16/device.c (pic16_dump_usection): do not reserve 0 bytes,
933           as this raises a ton of gpasm warnings, just emit a second label
934         * src/pic16/devices.inc,
935         * device/lib/pic16/pics.all,
936         * device/lib/pic16/libdev/pic18f2585.c,
937         * device/lib/pic16/libdev/pic18f2680.c,
938         * device/lib/pic16/libdev/pic18f2682.c,
939         * device/lib/pic16/libdev/pic18f2685.c,
940         * device/lib/pic16/libdev/pic18f4585.c,
941         * device/lib/pic16/libdev/pic18f4680.c,
942         * device/lib/pic16/libdev/pic18f4682.c,
943         * device/lib/pic16/libdev/pic18f4685.c,
944         * device/include/pic16/pic18f2585.h,
945         * device/include/pic16/pic18f2680.h,
946         * device/include/pic16/pic18f2682.h,
947         * device/include/pic16/pic18f2685.h,
948         * device/include/pic16/pic18f4585.h,
949         * device/include/pic16/pic18f4680.h,
950         * device/include/pic16/pic18f4682.h,
951         * device/include/pic16/pic18f4685.h,
952         * device/include/pic16/pic18fregs.h: added 18f2585, 18f2680,
953           18f2682, 18f2685, 18f4585, 18f4680, 18f4682, 18f4685,
954           patch contributed by Anton Strobl, applied with changes
955
956 2007-09-16 Raphael Neider <rneider AT web.de>
957
958         * device/include/pic16/pic18f2431.h,
959         * device/include/pic16/pic18f25j10.h,
960         * device/include/pic16/pic18f4431.h,
961         * device/include/pic16/pic18f45j10.h: adopted common include style
962         * device/include/pic16/pic18f1320.h,
963         * device/include/pic16/pic18f2320.h,
964         * device/include/pic16/pic18f2525.h,
965         * device/include/pic16/pic18f4320.h,
966         * device/include/pic16/pic18f4525.h: NEW, just include proper .h file
967         * device/include/pic16/pic18fregs.h: prepared for automatic include
968           file selection by having DEVICE.h for every DEVICE
969         * device/lib/pic16/libdev/pic18f2320.c,
970         * device/lib/pic16/libdev/pic18f4320.c: just include proper .c file
971
972         * device/lib/pic16/configure.in,
973         * device/lib/pic16/configure: use rm -rf instead of rmdir
974         * device/lib/pic16/Makefile.in: use RMDIR to remove build directories
975         * device/lib/pic16/libc/stdlib/free.c: avoid warning on pointer cast
976
977 2007-09-09 Borut Razem <borut.razem AT siol.net>
978
979         * src/SDCCmain.c, src/SDCCutil.c: print newline after printVersionInfo(),
980           distingush between i386 and ppc Mac OS X versions
981
982 2007-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
983
984         * src/mcs51/gen.c (genReceive): fixed bug 1788177
985         * support/regression/tests/bug1788177.c: new, added
986
987 2007-09-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
988
989         * doc/sdccman.lyx: mentioned d52 and cmake, customizing startup code
990         * device/include/mcs51/lint.h added keyword __naked
991
992 2007-09-04 Maarten Brock <sourceforge.brock AT dse.nl>
993
994         * src/pic16/glue.c,
995         * src/pic/glue.c,
996         * src/SDCCmem.h: removed maxRegBank
997         * src/SDCCmem.c (allocVariables): removed maxRegBank and moved setting
998           RegBankUsed[] to checkFunction() in SDCCsymt.c to fix bug 1759839
999         * src/SDCCsymt.c (checkFunction): set RegBankUsed[] here
1000         * src/mcs51/peep.c (isCallerSaveFunc, termScanAtFunc): changed function
1001           name and behaviour to handle banked functions
1002           (scan4op): and use it to fix bug 1786213
1003
1004 2007-09-03 Raphael Neider <rneider AT web.de>
1005
1006         * device/include/pic16/pic18f248.h,
1007         * device/include/pic16/pic18f258.h,
1008         * device/include/pic16/pic18f448.h,
1009         * device/lib/pic16/libdev/pic18f248.c,
1010         * device/lib/pic16/libdev/pic18f258.c,
1011         * device/lib/pic16/libdev/pic18f448.c: fixed TRISEbits,
1012           added T0CONbits, fixes #1786891
1013
1014 2007-08-29 Maarten Brock <sourceforge.brock AT dse.nl>
1015
1016         * src/ds390/gen.c (genFarPointerSet),
1017         * src/hc08/ralloc.c (packRegisters),
1018         * src/mcs51/ralloc.c (packRegisters),
1019         * src/SDCCcse.c (cseBBlock): check if result is a symbol first to fix
1020           bug 1750318
1021         * src/SDCCicode.h: POINTER_SET can be true for literals too
1022         * support/regression/tests/bug1750318.c: new, added
1023
1024 2007-08-23 Borut Razem <borut.razem AT siol.net>
1025
1026         * debugger/mcs51/sdcdb.c: fixed compilation with older readline
1027           library versions without the completition functionality
1028
1029 2007-08-22 Raphael Neider <rneider AT web.de>
1030
1031         * device/include/pic16/pic18f1220.h,
1032         * device/lib/pic16/libdev/pic18f1220.c: applied patch #1776191
1033
1034 2007-08-12 Borut Razem <borut.razem AT siol.net>
1035
1036         * debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
1037
1038 2007-08-11 Borut Razem <borut.razem AT siol.net>
1039
1040         * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
1041           src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
1042           support/Util/SDCCerr.[ch] moved to src
1043         * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
1044           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
1045           device/examples/ds390/tinitalk/tinitalk.dsp,
1046           device/examples/serialcomm/windows/serialcomm.dsp,
1047           support/librarian/librarian.dsp:
1048           removed linking of unused odbc32.lib and odbccp32.lib
1049         * support/scripts/winres.h:
1050           added for compilation with Visual C++ 2005 Express Edition
1051
1052 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1053
1054         * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
1055           and CKCON1.
1056
1057 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1058
1059         * sdccconf_in.h: update the endian test so that SPARC Solaris
1060           does not throw syntax errors
1061
1062 2007-08-06 Borut Razem <borut.razem AT siol.net>
1063
1064         * doc/sdccman.lyx: removed two index entries which prevented the
1065           generation of sdcc doc archive
1066
1067 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1068
1069         * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
1070           instead of lyx 1.5.0.
1071
1072 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1073
1074         * device/include/hc08/mc68hc908apxx.h: new header contributed by
1075           Lucas Loizaga, with minor modifications. Thanks!
1076
1077 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1078
1079         * doc/sdccman.lyx: Documented --acall-ajmp and described new features
1080           in sdcclib.
1081
1082 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1083
1084         * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
1085           src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
1086           with acall/ajmp.
1087
1088 2007-07-22 Borut Razem <borut.razem AT siol.net>
1089
1090         * configure.in, configure: re-introduced .version
1091         * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
1092           the version reverted to 2.7.0
1093
1094 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
1095
1096         * configure.in,
1097         * doc/sdccman.lyx: bumped version to 2.7.3
1098         * device/include/mcs51/compiler.h: fixed elif->else
1099         * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
1100         * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
1101           (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
1102            enable accuse for bit operands
1103         * src/SDCCmain.c (printVersionInfo),
1104         * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
1105           environment descriptor
1106         * src/SDCCutil.h: added getBuildEnvironment
1107         * src/SDCCglue.c (initialComments): use getBuildEnvironment
1108         * support/regression/tests/bug1464657.c: enabled test test_Peephole251
1109         * support/regression/tests/bug-408972.c: enabled test leftShiftLong
1110         * support/regression/tests/bug1348008.c,
1111         * support/regression/tests/bug1496419.c,
1112         * support/regression/tests/bug1503067.c,
1113         * support/regression/tests/preproc.c: added empty tests
1114
1115 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
1116
1117         * support/regression/tests/bug1678803.c: new, added
1118
1119 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
1120
1121         * as/link/aslink.h,
1122         * as/link/hc08/lkihx.c,
1123         * as/link/hc08/lkrloc.c,
1124         * as/link/mcs51/lkihx.c,
1125         * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
1126           ihxExtendedLinearAddress
1127         * as/link/mcs51/lkrloc.c (relr),
1128         * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
1129           acall/ajmp, see bug 830513
1130
1131 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
1132
1133         * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
1134           (cseBBlock): remember aggr2ptr has been used
1135         * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
1136           (geniCodeAssign): fixed bug 868103
1137         * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
1138           added operandSize prototype
1139         * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
1140           (genDataPointerSet): use max of size of right and result,
1141           (gencjne): added parameter useCarry for optimization,
1142           (genCmpEq): use carry if appropriate,
1143           (genXor): check if operand already in carry
1144         * support/regression/tests/bug-868103.c: enabled test
1145
1146 2007-07-12 Raphael Neider <rneider AT web.de>
1147
1148         * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
1149
1150 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
1151
1152         * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
1153           from Robert Larice, thanks
1154         * support/regression/tests/bitopcse.c,
1155         * support/regression/tests/bitvars.c,
1156         * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
1157         * support/regression/tests/bug-927659.c: enabled test for z80
1158         * support/regression/tests/bug1738367.c: added extra tests by Frieder
1159         * support/regression/tests/bug1745717.c: new, added
1160         * support/regression/tests/literalop.c,
1161         * support/regression/tests/nullstring.c: removed storage definitions that
1162           are now in testfwk.h
1163
1164 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
1165
1166         * device/include/stdbool.h: do not define __bool_true_false_are_defined
1167           and bool for targets that do not fully support it.
1168         * support/regression/tests/bug1546986.c,
1169         * support/regression/tests/bug1723128.c,
1170         * support/regression/tests/bug1734654.c,
1171         * support/regression/tests/bug1738367.c,
1172         * support/regression/tests/constantRange.c: only use bool if allowed
1173
1174 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
1175
1176         * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
1177           Larice, also handle function pointers
1178         * support/regression/tests/bug1749275.c: new, added
1179
1180 2007-07-03 Borut Razem <borut.razem AT siol.net>
1181
1182         * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
1183           src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
1184           #1746528: SDCC should ignore ':' in inline assembler comments
1185         * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
1186
1187 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
1188
1189         * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
1190         * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
1191
1192 2007-06-29 Borut Razem <borut.razem AT siol.net>
1193
1194         * src/SDCCmain.c: fixed bug
1195           #1744746: SDCC #4867: broken option --xram-size
1196
1197 2007-06-28 Borut Razem <borut.razem AT siol.net>
1198
1199         * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
1200           find out the endianess of host machine for ucsim
1201
1202 2007-06-27 Borut Razem <borut.razem AT siol.net>
1203
1204         * support/regression/generate-cases.py: corrected the file name
1205           in warning
1206         * configure.in, configure, sdccconf_in.h: find out the endianess of
1207           host machine
1208         * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
1209           negative size
1210
1211 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
1212
1213         * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
1214
1215 2007-06-26 Borut Razem <borut.razem AT siol.net>
1216
1217         * support/regression/generate-cases.py: display warning if function
1218           list is empty; implemented more flexible rule for detection of
1219           testing functions, allowing return type 'void' in the same line as
1220           the function name in the function definition
1221         * support/regression/tests/bug-1654060.c: corrected test
1222         * support/librarian/sdcclib.c: fixed warning:
1223           format '%s' expects type 'char *', but argument 2 has type 'int'
1224
1225 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1226
1227         * support/librarian/sdcclib.c: Added feature Requests [1510635]
1228           Multiple infiles for sdcclib.
1229
1230 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1231
1232         * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
1233           bug 1731741
1234
1235 2007-06-18 Borut Razem <borut.razem AT siol.net>
1236
1237         * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
1238           how to handle comments, so they have to be removed by the
1239           preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
1240         * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
1241           src/pic16/main.c, src/pic/main.c, src/z80/main.c,
1242           support/Util/SDCCerr.c, support/Util/SDCCerr.h:
1243           table driven option hadling
1244
1245 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
1246
1247         * src/SDCCast.c (decorateType),
1248         * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
1249           iCode to ast level to fix bug 1738367
1250         * support/regression/tests/bug1738367.c: new, added
1251
1252 2007-06-15 Raphael Neider <rneider AT web.de>
1253
1254         * src/pic16/devices.inc,
1255         * device/lib/pic16/pics.all,
1256         * device/include/pic16/pic18fregs.h,
1257         * device/include/pic16/pic18f[24][45]20.h,
1258         * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
1259           18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
1260         * device/lib/pic16/Makefile.in: faster cleanup
1261
1262 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1263
1264         * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
1265
1266 2007-06-13 Raphael Neider <rneider AT web.de>
1267
1268         * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
1269
1270 2007-06-12 Raphael Neider <rneider AT web.de>
1271
1272         * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
1273           suppress bit defines if NO_BIT_DEFINES is #define'd
1274         * device/include/pic/pic*.h: recreated all headers to include
1275           conditional bit defines
1276         * device/include/pic/pic16f886.h,
1277         * device/include/pic/pic16f887.h: fixed based on newer .inc file
1278         * device/include/pic/recreate.sh: script to recreate the complete
1279           device library files based on the currently supported devices
1280
1281 2007-06-12 Borut Razem <borut.razem AT siol.net>
1282
1283         * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
1284           support/regression/Makefile.in, support/scripts/build.mak,
1285           support/scripts/Makefile.snapshot:
1286           use new svn URL scheme
1287         * doc/sdccman.lyx: SDCC Wiki moved to
1288           http://sdcc.wiki.sourceforge.net/
1289
1290 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1291
1292         * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
1293         * support/regression/tests/bug1734654.c: added
1294
1295 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
1296
1297         * src/SDCCast.c (decorateType): optimized '?' for equal operands
1298         * src/SDCCicode.c (geniCodeConditional): optimization for bit result
1299           with literal operands
1300
1301 2007-06-10 Borut Razem <borut.razem AT siol.net>
1302
1303         * as/link/z80/lklibr.c: fixed mingw build warning
1304           lklibr.c:575: warning: implicit declaration of function 'tolower'
1305         * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
1306           src/z80/main.c: move target specific options from src/SDCCmain.c
1307           to src/<target>/main.c
1308
1309 2007-06-09 Borut Razem <borut.razem AT siol.net>
1310
1311         * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
1312           removed unused swap_sense; removed outBitCLong, replaced with outBitC
1313         * support/regression/tests/bug-1294691.c: added
1314
1315 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
1316
1317         * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
1318           can also be static, fixes bug 1733438
1319         * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
1320           have absolute address too
1321           (computeType): added optimization for 'cond ? true : false'
1322         * support/regression/tests/absolute.c: added test for static absolute var
1323
1324 2007-06-08 Raphael Neider <rneider AT web.de>
1325
1326         * src/regression/Makefile: suppress parallel builds, allow easy
1327           switching between pic14/pic16 ports
1328         * src/regression/picregs.h: added pic14/16 header file switch
1329         * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
1330           inline.c,nestfor.c,string1.c}: include "picregs.h"
1331
1332 2007-06-07 Borut Razem <borut.razem AT siol.net>
1333
1334         * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
1335           permanent solution to suppress GCC 4.2.0 c++ warning:
1336           deprecated conversion from string constant to `char *'
1337           use 'const char *' where ever required
1338         * support/regression/generate-cases.py: implemented more flexible rule
1339           for detection of testing functions, allowing white-spaces surrounding
1340           the function name and the 'void' parameter.
1341         * support/regression/tests/constantRange.c,
1342           support/regression/tests/scott-compare3.c: fixed failing regression
1343           tests, uncovered by implementation of more flexible rule for detection
1344           of testing functions
1345
1346 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
1347
1348         * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
1349
1350 2007-06-04 Borut Razem <borut.razem AT siol.net>
1351
1352         * configure.in, configure, config_vc.awk: sdcc version number is now
1353           stored in configure.in; removed .version
1354         * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
1355           doc/INSTALL.txt: version bumped to 2.7.2
1356         * sim/ucsim/configure.in, sim/ucsim/configure:
1357           use "read" to read from .version
1358
1359 2007-06-03 Borut Razem <borut.razem AT siol.net>
1360
1361         * */Makefile.in: removed annoying warning:
1362           Makefile:xx: Makefile.dep: No such file or directory
1363
1364 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
1365
1366         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
1367           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
1368         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
1369         * src/SDCCast.c (resultTypePropagate): propagate for '!',
1370           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
1371           bugfix: only use newBoolLink for bit result type
1372         * src/SDCCicode.c (geniCodeLogic): added param tree,
1373           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
1374           (geniCodeLogicAndOr): use IS_BIT,
1375           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
1376           (ast2iCode): added tree param to geniCodeLogic for comparisons
1377         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
1378         * support/regression/tests/bug1723128.c: added test NotZero
1379
1380 2007-06-01 Borut Razem <borut.razem AT siol.net>
1381
1382         * SDCPP synchronized with GCC CPP release version 4.2.0,
1383           currently the latest release:
1384         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1385           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
1386           support/cpp2/cppdefault.h, support/cpp2/except.h,
1387           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
1388           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
1389           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
1390           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
1391           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
1392           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
1393           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
1394           support/cpp2/opts.h, support/cpp2/output.h,
1395           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
1396           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
1397           support/cpp2/system.h, support/cpp2/version.c,
1398           support/cpp2/Makefile.in: modified
1399         * support/cpp2/opts-common.c: added
1400         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
1401         * device/lib/pic16/libdev/pic18f[24]5j10.c:
1402           search for included source file in local directory
1403         * sim/ucsim/configure, sim/ucsim/configure.in:
1404           temporary solution to suppress GCC 4.2.0 c++ warning:
1405           deprecated conversion from string constant to `char *'
1406
1407 2007-06-01 Raphael Neider <rneider AT web.de>
1408
1409         * device/lib/pic/libdev/pic12f683.c,
1410         * device/include/pic/pic12f683.h: added GPIO bits
1411
1412 2007-06-01 Raphael Neider <rneider AT web.de>
1413
1414         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
1415           quotation marks, clarified role of PIC14 vs. PIC16 ports
1416         * src/pic16/devices.inc,
1417         * device/include/pic16/pic18fregs.h,
1418         * device/include/pic16/pic18f[24][45]j10.h,
1419         * device/lib/pic16/pics.all,
1420         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
1421           18f24j10, 18f25j10, 18f44j10, and 18f45j10
1422         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
1423           for new devices as they are not yet supported by gputils
1424
1425 2007-05-31 Borut Razem <borut.razem AT siol.net>
1426
1427         * Small Device C Compiler 2.7.0 released
1428         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
1429           changed sdcc version to 2.7.1
1430         * support/scripts/sdcc.nsi: added How to create WIN32 release
1431           setup.exe package
1432
1433 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
1434
1435         * doc/sdccman.lyx: documented initialization and allocation of absolute
1436           variables, bit parameter passing, the need for function pointers to be
1437           reentrant and alpha quality support of inline and retrict
1438
1439 2007-05-26 Borut Razem <borut.razem AT siol.net>
1440
1441         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
1442           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
1443         * docs/knownbugs.html: updated
1444
1445 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
1446
1447         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
1448           thanks Jan Waclawek
1449         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
1450           AOP_CRY and ruonly
1451           (gencjneshort): optimized when left is AOP_DIR
1452         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
1453           initializing unions in a struct/array
1454         * support/regression/fwk/include/testfwk.h: added defines for data, near
1455           and far for host and z80
1456         * support/regression/tests/bug1723128.c: new, added
1457
1458 2007-05-22 Borut Razem <borut.razem AT siol.net>
1459
1460         * doc/knownbugs.html: updated
1461
1462 2007-05-21 Raphael Neider <rneider AT web.de>
1463
1464         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
1465           error message instead
1466         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
1467
1468 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
1469
1470         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
1471
1472 2007-05-21 Raphael Neider <rneider AT web.de>
1473
1474         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
1475           closes #1722392
1476         * src/regression/gpsim_assert.h,
1477         * src/regression/Makefile,
1478         * src/regression/pcodeopt.c: regression test for the above fix
1479
1480 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
1481
1482         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
1483           jumps to self, fixed bug 1717281
1484
1485 2007-05-10 Borut Razem <borut.razem AT siol.net>
1486
1487         * support/scripts/gen_known_bugs.pl: cosmetic fix
1488         * doc/knownbugs.html: generated by gen_known_bugs.pl
1489
1490 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1491
1492         * src/SDCCast.c (createFunction): also generate non-inlined version of
1493           function for functions declared as "static inline"
1494         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
1495           function can be inlined after non-inlined version generated.
1496
1497 2007-05-10 Borut Razem <borut.razem AT siol.net>
1498
1499         * support/scripts/gen_known_bugs.pl: added script
1500           which generates knownbugs.html
1501
1502 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
1503
1504         * doc/knownbugs.html: updated for release 2.7.0
1505
1506 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1507
1508         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
1509
1510 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
1511
1512         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
1513           (throughout): updated generating comments
1514         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
1515           (throughout): updated generating comments
1516         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
1517           rule instead of at the second, or it might skip lines when removing the
1518           complete match
1519         * support/regression/tests/bug1714204.c: changed test to foo
1520
1521 2007-05-08 Borut Razem <borut.razem AT siol.net>
1522
1523         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
1524           thanks to SDCC Distributed Compile Farm members,
1525           added Z80 and GBZ80 command line options
1526         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
1527
1528 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
1529
1530         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
1531         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
1532         * support/regression/tests/longlit.c: modified to be tested at all and
1533           to pass the actual test
1534
1535 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1536
1537         * device/include/mcs51/uPSD33xx.h: Added.
1538
1539 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
1540
1541         * device/lib/_gptrput.c,
1542         * device/lib/_gptrget.c: removed old code,
1543          (_gptrgetWord),
1544         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
1545         * support/regression/tests/bug1714204.c: new, added
1546
1547 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1548
1549         * support/regression/tests/regtrack.c: test was never executed
1550           because of the regression test being picky about white spaces.
1551         * device/lib/mcs51/crtclear.asm: added comment
1552
1553 2007-05-06 Raphael Neider <rneider AT web.de>
1554
1555         * device/lib/pic/Makefile.rules,
1556         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
1557           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
1558
1559 2007-05-06 Raphael Neider <rneider AT web.de>
1560
1561         * src/pic16/device.h,
1562         * src/pic16/main.h,
1563         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
1564           _pic16_setDefaultOptions): removed/reordered command-line args
1565         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
1566           devices, regrouped command line args, environment variables),
1567           clarified sone points, added sections on how to add devices to the
1568           PIC14/PIC16 ports
1569
1570 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
1571
1572         * src/z80/peeph.def: fixed bug in rule 2
1573
1574 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
1575
1576         * src/port.h: added TARGET_MCS51_LIKE
1577         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
1578           take advantage of it too
1579         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
1580           (shiftR2Left2Result): Optimized: don't check shifting by 0
1581         * src/z80/peeph-z80.def,
1582         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
1583           modifications, see patch 1700823
1584         * src/mcs51/peep.c (): fixed bug 1712928
1585         * support/regression/tests/bug1712928.c: new, added
1586
1587 2007-05-05 Borut Razem <borut.razem AT siol.net>
1588
1589         * device/lib/pic16/Makefile.common.in,
1590           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
1591           removed bash dependencies
1592
1593 2007-05-01 Borut Razem <borut.razem AT siol.net>
1594
1595         * src/SDCCicode.c:
1596           fixed bug #1710507: --i-code-in-asm makes compile fail
1597           all iCode comments are now one liners
1598         * src/mcs51/gen.c: fixed memory leak
1599
1600 2007-05-01 Raphael Neider <rneider AT web.de>
1601
1602         * device/lib/pic/libdev/*.c
1603         * device/include/pic/*.h: regenerated all device libs from updated
1604           .inc files
1605         * support/scripts/inc2h.pl: documented usage, now uses strict to
1606           catch more bugs
1607
1608 2007-04-30 Borut Razem <borut.razem AT siol.net>
1609
1610         * doc/sdccman.lyx:
1611           fixed bug #1669175: Problem with space in output paths
1612           documented how to use paths with spaces for Windows users
1613
1614 2007-04-29 Borut Razem <borut.razem AT siol.net>
1615
1616         * Fixed svn:eol-style and svn:keywords properties
1617         * src/SDCCval.c: fixed bug
1618           #1592871: Segfault with "large" const arrays of characters
1619           replaced recursion with iteration
1620         * Removed svn:executable property from non-executable files
1621
1622 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
1623
1624         * src/mcs51/gen.c (genRet): fixed bug 1707003
1625
1626 2007-04-27 Raphael Neider <rneider AT web.de>
1627
1628         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
1629           createReachingDefinitions,assignValnums,pic16_destructDF,
1630           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
1631           prevent NULL pointer dereferences
1632         * device/lib/pic/libdev/pic16f886.c,
1633         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
1634           prevent building them, gputils do not really support them yet
1635
1636 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1637
1638         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
1639           helps printf_small. 32 bytes more __idata mem.
1640
1641 2007-04-27 Raphael Neider <rneider AT web.de>
1642
1643         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
1644           return early when pb or pb->pcHead is NULL (patch #1708427)
1645         * src/regression/empty.c,
1646         * src/regression/Makefile: added test with empty functions
1647         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
1648
1649 2007-04-27 Borut Razem <borut.razem AT siol.net>
1650
1651         * src/SDCCast.c: fixed feature request
1652           #1547512: Redundant strings linked when using sizeof("abc")
1653
1654 2007-04-23 Borut Razem <borut.razem AT siol.net>
1655
1656         * doc/sdccman.lyx, src/SDCCmain.c:
1657           peep-hole comments are generated only if --fverbose-asm option is
1658           specified and --no-peep-comments is not, as proposed by Frieder.
1659         * support/regression/Makefile.in: compile regression tests with
1660           --fverbose-asm option so one can "grep" whether a new (or an old)
1661           peephole is (still) applied; requested by Frieder.
1662
1663 2007-04-23 Kevin Buettner <kevin AT buettner.to>
1664
1665         * device/include/pic/pic16f886.h,
1666         * device/include/pic/pic16f887.h,
1667         * device/lib/pic/libdev/pic16f886.c,
1668         * device/lib/pic/libdev/pic16f887.c,
1669         * device/include/pic/pic14devices.txt,
1670         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
1671
1672 2007-04-23 Kevin Buettner <kevin AT buettner.to>
1673
1674         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
1675           fixes #1704666
1676
1677 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1678
1679         * device/lib/_memset.c: assembler version for mcs51
1680
1681 2007-04-22 Borut Razem <borut.razem AT siol.net>
1682
1683         * support/scripts/listerr.c: program to create the list of errors and
1684           warnings list from - added
1685         * doc/sdccman.lyx: removed the note
1686           "For list of warnings and corresponding codes, see err_warn.txt"
1687         * src/SDCCsymt.c: fixed bug #1699804:
1688           Bug with some uses of sizeof(static local array) (MCS51)
1689         * support/regression/tests/bug-1699804.c: added
1690
1691 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
1692
1693         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
1694           (main): added option -i,
1695           (asmbl, case S_INCL): use search_path_fopen,
1696           mostly from patch 1579668 by Peter Miller, thanks
1697         * src/z80/main.c: fixed typo --callee-saves-bc
1698         * device/include/mcs51/compiler.h: added sfrword for Tasking
1699
1700 2007-04-20 Borut Razem <borut.razem AT siol.net>
1701
1702         * src/z80/main.c: replaced reserved keyword asm with asmblr
1703
1704 2007-04-19 Borut Razem <borut.razem AT siol.net>
1705
1706         * src/port.h: use const pointers to strings
1707         * src/SDCCargs.h: declared getStringArg() and getIntArg()
1708         * src/pic16/main.c: include SDCCargs.h
1709         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
1710           const char, since the strings are dynamically allocated
1711         * src/SDCCmain.c: options.code_seg and options.const_seg are
1712           dynamically allocated; check port specific command line options
1713           before the general ones
1714         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
1715
1716 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
1717
1718         * device/include/ds400rom.h,
1719         * device/lib/ds390/lcd390.c,
1720         * device/lib/ds390/memcpyx.c,
1721         * device/lib/ds390/rtc390.c,
1722         * device/lib/ds400/ds400rom.c,
1723         * device/lib/ds400/memcpyx.c,
1724         * device/lib/hc08/_ret.c: more replacements of keywords with their
1725           double underscore equivalents
1726         * device/lib/ds390/Makefile.in,
1727         * device/lib/ds400/Makefile.in,
1728         * device/lib/gbz80/Makefile.in,
1729         * device/lib/hc08/Makefile.in,
1730         * device/lib/mcs51/Makefile.in,
1731         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
1732
1733 2007-04-17 Borut Razem <borut.razem AT siol.net>
1734
1735         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
1736           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
1737           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
1738           to --fverbose-asm, to be gcc'ish
1739
1740 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
1741
1742         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
1743
1744 2007-04-17 Borut Razem <borut.razem AT siol.net>
1745
1746         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
1747         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
1748           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
1749           with their double underscore equivalent
1750
1751 2007-04-14 Borut Razem <borut.razem AT siol.net>
1752
1753         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
1754           source"
1755
1756 2007-04-13 Borut Razem <borut.razem AT siol.net>
1757
1758         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
1759           C99 standard
1760         * device/examples/serialcomm/windows/serial.[ch],
1761           device/examples/serialcomm/windows/test_serialcomm.cpp:
1762           updated by Bela Torok
1763         * device/examples/serialcomm/windows/serialcomm.dsw,
1764           device/examples/serialcomm/windows/serialcomm.dsp: added
1765
1766 2007-04-13 Jan Waclawek <wek AT efton.sk>
1767
1768         * doc/sdccman.lyx: additions and changes at various places
1769           (submitted as #1697136).
1770           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
1771
1772 2007-04-10 Borut Razem <borut.razem AT siol.net>
1773
1774         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
1775           LyX file format changed to 245
1776         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
1777           "FreeWare" replaced with "free open source"
1778
1779 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
1780
1781         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
1782
1783 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
1784
1785         * device/include/pic16/pic18fregs.h,
1786         * device/lib/_bp.c,
1787         * device/lib/_decdptr.c,
1788         * device/lib/_divsint.c,
1789         * device/lib/_divslong.c,
1790         * device/lib/_divuint.c,
1791         * device/lib/_divulong.c,
1792         * device/lib/_fs2schar.c,
1793         * device/lib/_fs2sint.c,
1794         * device/lib/_fs2slong.c,
1795         * device/lib/_fs2uchar.c,
1796         * device/lib/_fs2uint.c,
1797         * device/lib/_fs2ulong.c,
1798         * device/lib/_fsadd.c,
1799         * device/lib/_fscmp.c,
1800         * device/lib/_fsdiv.c,
1801         * device/lib/_fseq.c,
1802         * device/lib/_fsget1arg.c,
1803         * device/lib/_fsget2args.c,
1804         * device/lib/_fsgt.c,
1805         * device/lib/_fslt.c,
1806         * device/lib/_fsmul.c,
1807         * device/lib/_fsneq.c,
1808         * device/lib/_fsnormalize.c,
1809         * device/lib/_fsreturnval.c,
1810         * device/lib/_fsrshift.c,
1811         * device/lib/_fssub.c,
1812         * device/lib/_fsswapargs.c,
1813         * device/lib/_gptrget.c,
1814         * device/lib/_gptrgetc.c,
1815         * device/lib/_gptrput.c,
1816         * device/lib/_logexpf.c,
1817         * device/lib/_modsint.c,
1818         * device/lib/_modslong.c,
1819         * device/lib/_moduint.c,
1820         * device/lib/_modulong.c,
1821         * device/lib/_mulint.c,
1822         * device/lib/_mullong.c,
1823         * device/lib/_schar2fs.c,
1824         * device/lib/_ser.c,
1825         * device/lib/_setjmp.c,
1826         * device/lib/_sint2fs.c,
1827         * device/lib/_slong2fs.c,
1828         * device/lib/_spx.c,
1829         * device/lib/_uchar2fs.c,
1830         * device/lib/_uint2fs.c,
1831         * device/lib/_ulong2fs.c,
1832         * device/lib/asincosf.c,
1833         * device/lib/atanf.c,
1834         * device/lib/calloc.c,
1835         * device/lib/ds390/tinibios.c,
1836         * device/lib/ds400/tinibios.c,
1837         * device/lib/expf.c,
1838         * device/lib/free.c,
1839         * device/lib/hc08/_mulint.c,
1840         * device/lib/logf.c,
1841         * device/lib/malloc.c,
1842         * device/lib/printf_fast.c,
1843         * device/lib/printf_tiny.c,
1844         * device/lib/printfl.c,
1845         * device/lib/realloc.c,
1846         * device/lib/ser_ir.c,
1847         * device/lib/serial.c,
1848         * support/regression/tests/libmullong.c: replaced all special keywords
1849           with their double underscore equivalent
1850         * support/regression/ports/mcs51-xstack-auto/spec.mk,
1851         * device/lib/Makefile.in: compile libs with --std-c99 instead of
1852           --std-sdcc99
1853         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
1854           (genRet): if the bit-symbol is ruonly it already is in the carry
1855         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
1856         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
1857         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
1858           type UCHAR if dest is not bit
1859
1860 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
1861
1862         * device/include/math.h,
1863         * device/lib/cotf.c,
1864         * device/lib/expf.c,
1865         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
1866
1867 2007-04-01 Borut Razem <borut.razem AT siol.net>
1868
1869         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
1870           fixed bug #1692042: input buffer overflow...scanner uses REJECT
1871         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
1872           gcc_unreachable() called internal_error()...
1873
1874 2007-03-30 Raphael Neider <rneider AT web.de>
1875
1876         * src/pic/ralloc.c (isData): suppress garbage debug output
1877
1878 2007-03-28 Borut Razem <borut.razem AT siol.net>
1879
1880         * doc/sdccman.lyx:
1881           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
1882           is developed, built and used worldwide, and the word "night" doesn't
1883           make any sense.
1884
1885 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
1886
1887         * device/include/mcs51/C8051F360.h: new, added
1888         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
1889
1890 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1891
1892         * src/SDCC.y (declaration_specifiers, function_specifier),
1893         * support/Util/SDCCerr.c,
1894         * support/Util/SDCCerr.h,
1895         * src/SDCCsymt.h,
1896         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
1897           inline keyword
1898         * src/SDCCmem.c (deallocParms),
1899         * src/SDCCast.c: support for function inlining, not quite complete
1900         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
1901           'restrict' qualifier
1902
1903 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
1904
1905         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
1906           (saveRBank, unsaveRBank): don't save bits,
1907           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
1908         * support/regression/tests/bug1535242.c: new, added
1909         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
1910           thanks Alexey Shamrin <shamrin AT gmail.com>,
1911           made assert.h header ANSI compliant (added a check for NDEBUG macro,
1912           removed header guard)
1913         * .version,
1914         * sdcc.spec: bumped version to 2.6.5
1915         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
1916
1917 2007-03-22 Borut Razem <borut.razem AT siol.net>
1918
1919         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
1920           fixed bug #1653671: sdcdb integration into ddd is broken
1921
1922 2007-03-22 Raphael Neider <rneider AT web.de>
1923
1924         * src/pic/gen.c (popGetExternal): augmented to also create references
1925           to external variables (not only labels),
1926           (genCall): comment on plan to reduce PAGESEL overhead,
1927           (genFunction, genEndFunction): also save/restore FSR around interrupt
1928           handling code, removed lots of unused code
1929           (genDivOneByte): release acquired temp register
1930         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
1931           of popGetExternal
1932         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
1933           for registers that need to be saved during interrupts (FSR, STATUS,
1934           PCLATH; W needs special handling), currently only FSR is used
1935
1936 2007-03-22 Raphael Neider <rneider AT web.de>
1937
1938         * device/include/pic/pic14devices.txt: 16f688 has only one config word
1939
1940 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1941
1942         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
1943
1944 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
1945
1946         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
1947
1948 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
1949
1950         * as/link/aslink.h: added LKOBJEXT
1951         * as/link/hc08/link_hc08.dsp,
1952         * as/link/hc08/Makefile.bcc,
1953         * as/link/hc08/Makefile.in,
1954         * as/link/mcs51/aslink.dsp,
1955         * as/link/mcs51/Makefile.bcc,
1956         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
1957         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
1958         * as/link/lkaomf51.c: merged and moved
1959         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
1960         * as/link/z80/lkdata.c,
1961         * as/link/lkdata.c: merged and moved
1962         * as/link/hc08/lkmain.c,
1963         * as/link/mcs51/lkmain.c: cosmetic changes
1964         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
1965         * as/link/lklex.c: use LKOBJEXT
1966         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
1967           ANSI-fied functions, removed bubble-sorts
1968         * as/link/z80/lksym.c           as/link/lksym.c: merged,
1969           ANSI-fied functions
1970         * as/link/z80/linkgbz80.dsp,
1971         * as/link/z80/linkz80.dsp,
1972         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
1973           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
1974         * as/link/z80/lkhead.c,
1975         * as/link/z80/lklex.c: deleted
1976         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
1977         * as/link/z80/lkmain.c: added copyfile()
1978
1979 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1980
1981         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
1982
1983 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1984
1985         * device/lib/_strlen.c: assembler version for mcs51
1986
1987 2007-03-13 Raphael Neider <rneider AT web.de>
1988
1989         * device/include/pic16/pic18f2221.h,
1990         * device/include/pic16/pic18f2321.h,
1991         * device/include/pic16/pic18f2331.h,
1992         * device/include/pic16/pic18f4221.h,
1993         * device/include/pic16/pic18f4321.h,
1994         * device/include/pic16/pic18f4331.h: fixed config byte location names
1995         * support/scripts/inc2h-pic16.pl: removed debug output, emit
1996           consistently named config byte locations
1997
1998 2007-03-13 Borut Razem <borut.razem AT siol.net>
1999
2000         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
2001           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
2002           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
2003           as/link/z80/Makefile.in, as/z80/Makefile.in:
2004           introduced LDFLAGS
2005
2006 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2007
2008         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
2009         * device/lib/printf_large.c: pointer was converted to generic
2010         pointer for mcs51 models other than model-small (Maarten noticed)
2011
2012 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2013
2014         * device/include/mcs51/ADuC84x.h: Added.
2015
2016 2007-03-10 Borut Razem <borut.razem AT siol.net>
2017
2018         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
2019           fixed RFE #1624219: double backslashes in filenames;
2020           functions hexEscape(), octalEscape() and copyStr() moved from
2021           SDCCval.c to SDCCutil.c and made them glovbally available
2022
2023 2007-03-09 Borut Razem <borut.razem AT siol.net>
2024
2025         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
2026           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
2027           1673361: Missaligned comments in output files
2028
2029 2007-03-09 Raphael Neider <rneider AT web.de>
2030
2031         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
2032
2033 2007-03-09 Raphael Neider <rneider AT web.de>
2034
2035         * src/pic/gen.c,
2036         * src/pic/glue.c,
2037         * src/pic/ralloc.c: suppress undesired debug output
2038         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
2039
2040 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2041
2042         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
2043
2044 2007-03-07 Borut Razem <borut.razem AT siol.net>
2045
2046         * device/lib/pic16/libdev/pic18f[24][34]31.c:
2047           search include files in the current directory
2048
2049 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
2050
2051         * src/SDCCglue.c (emitMaps, glue),
2052         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
2053           absolute xdata
2054         * support/regression/tests/absolute.c: added xdata test
2055
2056 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
2057
2058         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
2059           added condition to macro, fixes bug 1666080
2060
2061 2007-03-02 Raphael Neider <rneider AT web.de>
2062
2063         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
2064
2065 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2066
2067         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
2068         be cleared. Unconditionally set __XPAGE
2069         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
2070
2071 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2072
2073         * src/SDCCglobl.h,
2074         * src/SDCCmain.c,
2075         * src/mcs51/gen.c,
2076         * src/mcs51/rtrack.c,
2077         * src/ds390/gen.c,
2078         * doc/sdccman.lyx: added --no-gen-comments
2079         * src/mcs51/peeph.def: added 192.b, disabled 185
2080
2081 2007-02-25 Raphael Neider <rneider AT web.de>
2082
2083         * src/pic16/gen.c (genCast): fixed typo
2084         * device/lib/pic16/Makefile.subdir: only install existing files
2085         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
2086
2087 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
2088
2089         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
2090         * device/lib/mcs51/crtclear.asm,
2091         * device/lib/mcs51/crtxclear.asm: renumbered labels
2092         * device/lib/mcs51/Makefile.in: added crtcall.asm
2093         * doc/sdccman.lyx: documented mcs51 crt* library startup code
2094         * src/mcs51/gen.c (movc): removed,
2095           (aopGet, genPlusBits): clear a after loading the carry (possibly from
2096             acc.x or psw.x),
2097           (toCarry, genSend, genRet): added function toCarry,
2098           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
2099           (assignBit, genAssign, genCast): added function assignBit
2100         * src/mcs51/Makefile.bcc: added rtrack.c
2101         * src/mcs51/ralloc.h: made valueKnown a bitfield
2102         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
2103           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
2104           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
2105         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
2106         * src/z80/gen.c: added AOP_IS_PAIRPTR,
2107           (_pop): only pop valid pairs, see gencjneshort,
2108           (gencjneshort): return pair that still needs to be popped, restructured,
2109           (gencjne, genCmpEq): call _pop
2110
2111 2007-02-23 Raphael Neider <rneider AT web.de>
2112
2113         * device/include/pic/pic14devices.txt: 16f684 has only one config word
2114
2115 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2116
2117         * device/include/mcs51/P89LPC925.h: Added.
2118
2119 2007-02-18 Raphael Neider <rneider AT web.de>
2120
2121         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
2122
2123 2007-02-17 Borut Razem <borut.razem AT siol.net>
2124
2125         * support/cpp2/directives.c, support/cpp2/version.c:
2126           synchronized with GCC CPP 4.1.2
2127
2128 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2129
2130         * src/mcs51/rtrack.h,
2131         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
2132           by checking the strings passed by emitcode() to the assembler.
2133           Feel free to change. This in part addresses RFE #482179.
2134           Set environment variable SDCC_RTRACK to enable.
2135         * src/mcs51/gen.c: inserted hooks
2136         * src/mcs51/ralloc.h: added two members to struct regs
2137         * support/regression/tests/regtrack.c: added
2138
2139 2007-02-14 Borut Razem <borut.razem AT siol.net>
2140
2141         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
2142         * Makefile.in: applied patch from Makefile related part of
2143           #1469393: Compiler does not initialize static data
2144
2145 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
2146
2147         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
2148           for better fix of bug 1273984, compiles pic16 rand.c
2149
2150 2007-02-12 Borut Razem <borut.razem AT siol.net>
2151
2152         * src/pic16/main.c: fixed pic16 standard library directory bug
2153
2154 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
2155
2156         * src/hc08/gen.c (genSwap): fix swap regression test
2157
2158 2007-02-10 Borut Razem <borut.razem AT siol.net>
2159
2160         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
2161           with same scope
2162         * support/regression/tests/bug-1654060.c: added regression test for
2163           #1654060
2164
2165 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
2166
2167         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
2168         bit moves in return statement
2169
2170 2007-02-09 Borut Razem <borut.razem AT siol.net>
2171
2172         * src/SDCC.y: fixed bug #1654060 typedef within function causes
2173           syntax error
2174
2175 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
2176
2177         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
2178         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
2179
2180 2007-02-07 Raphael Neider <rneider AT web.de>
2181
2182         * src/pic16/devices.inc,
2183         * device/include/pic16/pic18fregs.h,
2184         * device/include/pic16/pic18f[24][34]31.h,
2185         * device/lib/pic16/libdev/pic18f[24][34]31.c,
2186         * device/lib/pic16/pics.all: added 18f[24][34]31 family
2187         * device/lib/pic16/libio/i2c.ignore: do not build i2c
2188
2189 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
2190
2191         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
2192           can this have lived here for so many years?
2193         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
2194           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
2195         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
2196
2197 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
2198
2199         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
2200         appended by loop induction must be at the very end of the eBBlock
2201
2202 2007-02-05 Kevin Vigor
2203
2204         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
2205
2206 2007-02-05 Borut Razem <borut.razem AT siol.net>
2207
2208         * support/regression/fwk/lib/timeout.c: native WIN32 port,
2209           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
2210
2211 2007-02-03 Borut Razem <borut.razem AT siol.net>
2212
2213         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
2214           applied patch #1646602 option to set default signedness of char to
2215           unsigned, added -funsigned-char command line option,
2216           thanks to Gunther Jehle
2217         * device/lib/Makefile.in: added the -f option to rm so it doesn't
2218           prompt for file deletion a few hundred times (especially the
2219           subversion files, which have ro permissions so it asks for
2220           confirmation), thanks to Simon McAuliffe;
2221           added {} + option to find in order to remove multiple files from a
2222           single rm commad
2223
2224 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2225
2226         * device/include/mcs51/SST89x5xRDx.h: Added.
2227
2228 2007-02-02 Raphael Neider <rneider AT web.de>
2229
2230         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
2231         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
2232
2233 2007-02-01 Raphael Neider <rneider AT web.de>
2234
2235         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
2236           config words again
2237
2238 2007-01-31 Borut Razem <borut.razem AT siol.net>
2239
2240         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
2241           if compiled with GCC. Thanks to Raphael Neider
2242
2243 2007-01-31 Raphael Neider <rneider AT web.de>
2244
2245         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
2246             operand names, handles name and (name + n) for all n,
2247           (sameBank): restructured, also check bank allocation policy,
2248         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
2249           (pic14_operandsAllocatedInSameBank): check whether to operands
2250             will be allocated into the same bank (i.e., section) to reduce
2251             BANKSEL overhead, queried from pcode.c:sameBank,
2252           (pic14printLocals): reintroduced clustering registers into a single
2253             section: all compiler generated symbols will now reside in one
2254             bank (per file), reducing BANKSEL overhead and code size,
2255           (showAllMemmaps): use local dbuf where possible
2256
2257 2007-01-29 Raphael Neider <rneider AT web.de>
2258
2259         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
2260           (call_libraryfunc): retrieve/create symbol and mark as used,
2261           (genFunction): mark defined functions as non-extern and add again
2262            to code memmap for later output
2263         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
2264           (pic14printLocals): reworked for new symbol emission,
2265           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
2266           showAllMemmaps): reworked symbol output using dbufs, added handling
2267             of string literals (still incomplete),
2268           (picglue): removed symbol emission, moved into showAllMemmaps,
2269           (emitSymbolSet): new workhorse for symbol output,
2270           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
2271
2272 2007-01-29 Borut Razem <borut.razem AT siol.net>
2273
2274         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
2275           component contains the extension separator.
2276
2277 2007-01-28 Borut Razem <borut.razem AT siol.net>
2278
2279         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
2280           on WIN32
2281         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
2282           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
2283           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
2284           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
2285           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
2286           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
2287           src/z80/gen.c, support/Util/MySystem.c:
2288           accept slash and backslash as directory separator on WIN32 and
2289           Cygwin ports
2290
2291 2007-01-28 Raphael Neider <rneider AT web.de>
2292
2293         * src/pic16/devices.inc,
2294         * device/include/pic16/pic18f[24][23]21.h,
2295         * device/include/pic16/pic18fregs.h,
2296         * device/lib/pic16/libdev/pic18f[24][23]21.c,
2297         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
2298         * device/lib/pic16/libio/adc.ignore,
2299         * device/lib/pic16/libio/i2c.ignore,
2300         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
2301           family, as gputils do not yet support the devices
2302         * device/lib/pic16/Makefile.subdir: ignore errors on install
2303         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
2304           headers and libraries from gputils .inc files
2305
2306 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
2307
2308         * doc/sdccman.lyx: add printf_fast_f precision limitation note
2309
2310 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
2311
2312         * doc/sdccman.lyx: add printf benchmarks
2313
2314 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
2315
2316         * device/lib/printf_fast.c: fix %c, char promoted to int
2317         * device/lib/printf_tiny.c: fix %c, char promoted to int
2318
2319 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
2320
2321         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
2322
2323 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2324
2325         * support/regression/tests/swap.c: 64 bit hosts failed
2326         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
2327
2328 2007-01-25 Raphael Neider <rneider AT web.de>
2329
2330         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
2331           based on absolute register address, patch by Alex Blond
2332
2333 2007-01-22 Raphael Neider <rneider AT web.de>
2334
2335         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
2336           emitted, do not emit them again...
2337
2338 2007-01-22 Raphael Neider <rneider AT web.de>
2339
2340         * src/regression/bank1.c, src/regression/compare6.c,
2341           src/regression/add.c: cosmetic changes
2342         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
2343         * src/pic/gen.c: fixed global zero and one,
2344           (aopForSym): removed unued code,
2345           (aopGet): assert aop is defined, check and use `index' of
2346             pCodeImmd operands (fixes #1630908),
2347         * src/pic/pcode.c (get_op): added output of generic pointer tag,
2348           (register_reassign): prevent accidental register unification,
2349           (ReuseReg): cosmetic changes (also above)
2350         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
2351           pic14emitStaticSeg): do not emit initialized data,
2352           (printIval*): replaced with working versions,
2353           (pic14createInterruptVect,picglue): use idata for initialized data,
2354             now init data should work in all modules (not only main()),
2355         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
2356
2357 2007-01-21 Borut Razem <borut.razem AT siol.net>
2358
2359         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
2360           use -fPIC or -fpic if they are supported and not ignored
2361         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
2362         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
2363
2364 2007-01-20 Borut Razem <borut.razem AT siol.net>
2365
2366         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
2367           implemented RFE #1470316: allow "$" in variable names
2368
2369 2007-01-20 Raphael Neider <rneider AT web.de>
2370
2371         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
2372
2373 2007-01-20 Raphael Neider <rneider AT web.de>
2374
2375         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
2376         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
2377         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
2378         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
2379           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
2380         * device/lib/pic/libdev/pic*.c,
2381         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
2382         * device/lib/pic/libdev/Makefile.in: show progress
2383
2384 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
2385
2386         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
2387         * support/scripts/sdcc_cygwin_mingw32,
2388         * support/scripts/sdcc_mingw32,
2389         * support/scripts/build.mak: replaced --datadir by --datarootdir for
2390         conformance with autoconf 2.6
2391
2392 2007-01-19 Raphael Neider <rneider AT web.de>
2393
2394         * src/pic/device.c (register_map): fixed list construction
2395         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
2396           (genMod): removed case for genModbits,
2397           (genModbits): removed as now unused/unimplemented
2398         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
2399
2400 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2401
2402         * support/regression/tests/swap.c: added in response to #1638622
2403         * doc/sdccman.lyx: synced version, minor changes
2404
2405 2007-01-18 Borut Razem <borut.razem AT siol.net>
2406
2407         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
2408           thanks to Gunther Jehle
2409         * src/asm.c: don't die if the file drfined in #line couldn't be opened
2410         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
2411           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
2412           use filename in lineno instead.
2413         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
2414           print the file name in ast_print()
2415
2416 2007-01-18 Borut Razem <borut.razem AT siol.net>
2417
2418         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
2419           defined in MSVC
2420         * src/SDCC.lex: stringLiteral() returns const char pointer,
2421           EOF detection in stringLiteral(), fixed asmbuf memory leak,
2422           fixed column counting
2423         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
2424           accept const char pointer as parameter
2425         * src/SDCCdwarf2.c: corrected buffer size
2426
2427 2007-01-17 Borut Razem <borut.razem AT siol.net>
2428
2429         * support/Util/dbuf_string.c: fixed for amd64
2430
2431 2007-01-15 Borut Razem <borut.razem AT siol.net>
2432
2433         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
2434           removed terminal symbol ELIPSIS, since it was never generated by the
2435           lexer and it was wrongly used in parameter_identifier_list rule
2436
2437 2007-01-15 Raphael Neider <rneider AT web.de>
2438
2439         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
2440             code page and data banking description
2441         * src/pic/genarith.c,
2442         * src/pic/gen.h: removed bit arithmetic functions,
2443             updated exit(1) to exit(EXIT_FAILURE)
2444         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
2445         * device/include/pic16/pic18f2455.h,
2446         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
2447             TRISD and TRISE, fixed/added some bit names
2448         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
2449         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
2450             updated pic18f2455.{c,h} instead of duplicating them
2451
2452 2007-01-14 Borut Razem <borut.razem AT siol.net>
2453
2454         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
2455           Cannot debug files that contain spaces in the path name
2456           by converting spaces in asm file name to underscores
2457
2458 2007-01-13 Borut Razem <borut.razem AT siol.net>
2459
2460         * doc/sdccman.lyx: fixed format errors
2461
2462 2007-01-10 Borut Razem <borut.razem AT siol.net>
2463
2464         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
2465           codeseg/constseg #pragma fail
2466         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
2467         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
2468           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
2469           suppoprt/cpp2/sdcpp.[ch]: house cleaning
2470
2471 2007-01-09 Borut Razem <borut.razem AT siol.net>
2472
2473         * get rid of diagnistic.[ch], pretty-print.[ch],
2474           c-pretty-print.[ch], ... used just for error, warning, ...
2475           message formatting
2476         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
2477           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
2478           suppoprt/cpp2/pretty-print.[ch]:
2479           removed
2480         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
2481           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
2482           suppoprt/cpp2/sdcpp.dsp:
2483           changed
2484
2485 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
2486
2487         * device/lib/printf_large.c (output_float): removed recursion,
2488           use smaller buffer on stack for mcs51,
2489           fixed bug printing 1.96
2490         * support/regression/tests/snprintf.c: added test
2491
2492 2007-01-07 Borut Razem <borut.razem AT siol.net>
2493
2494         * use dynamic memory buffers instead temporary files
2495         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
2496           added
2497         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
2498           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
2499           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
2500           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
2501           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
2502           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
2503           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
2504           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
2505           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
2506           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
2507           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
2508           support/Util/dbuf.c, support/Util/dbuf.h:
2509           modified
2510         * .version, sdcc.spec: bumped version to 2.6.4
2511
2512 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
2513
2514         * src/port.h: added TARGET_Z80_LIKE macro
2515         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
2516           output PSEG location if --xram-loc or --xstack-loc was used
2517         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
2518
2519 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
2520
2521         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
2522         * as/as_z80.dsp,   as/z80/as_z80.dsp,
2523         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
2524         * sdcc.dsw: moved project files into subdir
2525         * as/hc08/as_hc08.dsp,
2526         * as/hc08/Makefile.bcc,
2527         * as/hc08/Makefile.in,
2528         * as/mcs51/Makefile.bcc,
2529         * as/mcs51/Makefile.in,
2530         * as/z80/Makefile.bcc,
2531         * as/z80/Makefile.in,
2532         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
2533         * as/hc08/asm.h,
2534         * as/mcs51/asm.h,
2535         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
2536         * as/hc08/asmain.c,
2537         * as/hc08/assym.c,
2538         * as/mcs51/asmain.c,
2539         * as/mcs51/assym.c,
2540         * as/z80/assym.c: removed include "strcmpi.h"
2541         * as/hc08/strcmpi.c,
2542         * as/hc08/strcmpi.h,
2543         * as/mcs51/strcmpi.c,
2544         * as/mcs51/strcmpi.h,
2545         * support/Util/strcmpi.c,
2546         * support/Util/strcmpi.h: removed files
2547         * as/strcmpi.c: added as_strncmpi()
2548
2549 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2550
2551         * sdcc.dsw: Added some dependencies on project config.dsp
2552
2553 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
2554
2555         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
2556           with [di]ram_start to fix a regresion
2557
2558 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
2559
2560         * configure.in: added missing mcs51 in status output
2561         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
2562         directory
2563         * debugger/mcs51/clean.mk (distclean): remove config.h
2564         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
2565         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
2566         options.h, s-options-h and options.c
2567         * support/cpp2/clean.mk: unused, removed
2568         * Makefile.common.in,
2569         * main_in.mk,
2570         * as/Makefile.in,
2571         * as/hc08/Makefile.in,
2572         * as/hc08/clean.mk,
2573         * as/mcs51/Makefile.in,
2574         * as/mcs51/clean.mk,
2575         * as/z80/clean.mk,
2576         * as/z80/conf.mk,
2577         * as/z80/Makefile.in,
2578         * as/z80/clean.mk,
2579         * as/link/Makefile.in,
2580         * as/link/hc08/Makefile.in,
2581         * as/link/hc08/clean.mk,
2582         * as/link/mcs51/Makefile.in,
2583         * as/link/mcs51/clean.mk,
2584         * as/link/z80/Makefile.in,
2585         * as/link/z80/clean.mk,
2586         * as/link/z80/conf.mk,
2587         * debugger/mcs51/Makefile.in,
2588         * debugger/mcs51/clean.mk,
2589         * device/include/Makefile.in,
2590         * device/lib/Makefile.in,
2591         * device/lib/mcs51/Makefile.in,
2592         * device/lib/pic/Makefile.in,
2593         * device/lib/pic/Makefile.common.in,
2594         * device/lib/pic/Makefile.subdir,
2595         * device/lib/pic/Makefile.rules,
2596         * device/lib/pic16/libio/Makefile.in,
2597         * device/lib/pic16/Makefile.subdir,
2598         * device/lib/pic16/libdev/Makefile.in,
2599         * device/lib/pic16/Makefile.rules,
2600         * device/lib/pic16/Makefile.common.in,
2601         * sim/ucsim/avr.src/Makefile.in,
2602         * sim/ucsim/main_in.mk,
2603         * sim/ucsim/cmd.src/Makefile.in,
2604         * sim/ucsim/doc/Makefile.in,
2605         * sim/ucsim/gui.src/Makefile.in,
2606         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
2607         * sim/ucsim/gui.src/serio.src/Makefile.in,
2608         * sim/ucsim/hc08.src/Makefile.in,
2609         * sim/ucsim/libltdl/Makefile.in,
2610         * sim/ucsim/s51.src/Makefile.in,
2611         * sim/ucsim/sim.src/Makefile.in,
2612         * sim/ucsim/sim.src/conf.mk,
2613         * sim/ucsim/xa.src/Makefile.in,
2614         * sim/ucsim/z80.src/Makefile.in,
2615         * src/Makefile.in,
2616         * src/clean.mk,
2617         * src/port.mk,
2618         * support/cpp2/Makefile.in,
2619         * support/librarian/Makefile.in,
2620         * support/librarian/clean.mk,
2621         * support/makebin/Makefile.in,
2622         * support/makebin/clean.mk,
2623         * support/packihx/Makefile.in,
2624         * support/regression/Makefile.in,
2625         * support/regression/ports/ds390/spec.mk,
2626         * support/regression/ports/gbz80/spec.mk,
2627         * support/regression/ports/hc08/spec.mk,
2628         * support/regression/ports/mcs51/spec.mk,
2629         * support/regression/ports/mcs51-large/spec.mk,
2630         * support/regression/ports/mcs51-medium/spec.mk,
2631         * support/regression/ports/mcs51-xstack-auto/spec.mk,
2632         * support/regression/ports/pic14/spec.mk,
2633         * support/regression/ports/pic16/spec.mk,
2634         * support/regression/ports/mcs51-stack-auto/spec.mk,
2635         * support/regression/ports/ucz80/spec.mk,
2636         * support/regression/ports/xa51/spec.mk,
2637         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
2638         adding a slash after $(top_builddir) and/or adding @datarootdir@
2639         * configure.in,
2640         * debugger/mcs51/configure.in,
2641         * device/lib/pic/configure.in,
2642         * device/lib/pic16/configure.in,
2643         * sim/ucsim/configure.in,
2644         * support/cpp2/configure.in,
2645         * support/packihx/configure.in: changed AC_PREREQ to 2.60
2646         * configure,
2647         * debugger/mcs51/configure,
2648         * device/lib/pic/configure,
2649         * device/lib/pic16/configure,
2650         * sim/ucsim/configure,
2651         * support/cpp2/configure,
2652         * support/packihx/configure: generated with autoconf 2.60
2653
2654 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
2655
2656         * as/link/hc08/lkihx.c (newArea),
2657         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
2658
2659 2007-01-02 Borut Razem <borut.razem AT siol.net>
2660
2661         * doc/sdccman.lyx: documented #pragma sdcc_hash
2662         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
2663           initialized to 0
2664         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
2665
2666 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
2667
2668         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
2669         empty 'while'-loop to work correctly, see regression test 'while.c'
2670         * support/regression/tests/while.c: added
2671
2672 2007-01-01 Borut Razem <borut.razem AT siol.net>
2673
2674         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
2675           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
2676           support/cpp2/libcpp/sdcpp.c:
2677           sdcpp specific pragma/directive/option handling moved to sdcpp.c
2678         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
2679         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
2680
2681 2006-12-31 Borut Razem <borut.razem AT siol.net>
2682
2683         * SDCPP synchronized with GCC CPP release version 4.1.1,
2684           currently the latest release:
2685         * support/cpp2/libcpp, support/cpp2/libcpp/include,
2686           support/cpp2/libcpp/include/cpp-id-data.h
2687           support/cpp2/libiberty/fopen_unlocked.c
2688           support/cpp2/libiberty/md5.c
2689           support/cpp2/md5.h
2690           support/cpp2/opt-functions.awk
2691           support/cpp2/opt-gather.awk
2692           support/cpp2/optc-gen.awk
2693           support/cpp2/opth-gen.awk:
2694           added
2695         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
2696           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2697           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
2698           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
2699           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
2700           support/cpp2/diagnostic.h, support/cpp2/except.h,
2701           support/cpp2/hwint.h, support/cpp2/input.h,
2702           support/cpp2/intl.h, support/cpp2/move-if-change,
2703           support/cpp2/opts.c, support/cpp2/opts.h,
2704           support/cpp2/output.h, support/cpp2/prefix.c,
2705           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
2706           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
2707           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
2708           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
2709           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
2710           support/cpp2/version.c:
2711           modified
2712         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
2713           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
2714           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
2715           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
2716           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
2717           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
2718           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
2719           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
2720           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
2721           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
2722           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
2723           moved
2724         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
2725           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
2726           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
2727           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
2728           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
2729           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
2730           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
2731           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
2732           support/cpp2/hashtable.h, support/cpp2/line-map.c,
2733           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
2734           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
2735           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
2736           support/cpp2/system.h:
2737           deleted / moved
2738
2739 2006-12-31 Borut Razem <borut.razem AT siol.net>
2740
2741         * configure.in, configure: fixed bug #1538756: configure dies if bison
2742           and flex are not installed, 2nd try
2743
2744 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
2745
2746         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
2747         400.x for better code in RFE 899102
2748
2749 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
2750
2751         * src/SDCCpeeph.c (deadMove),
2752         * src/port.h,
2753         * src/mcs51/peep.h: renamed 'op' by 'reg'
2754         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
2755         (scan4op): small change for removeDeadMove(), added support for
2756         'callee saves' and/or PACLL function calls,
2757         (removeDeadMove): added, removes superflous 'mov r%1,%2',
2758         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
2759         left in new dispatcher mcs51DeadMove()
2760         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
2761         removeDeadMove()
2762         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
2763
2764 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2765
2766         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
2767           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
2768
2769 2006-12-30 Borut Razem <borut.razem AT siol.net>
2770
2771         * support/cpp2/spacs.h: deleted from svn
2772         * configure.in, configure: fixed bug #1538756: configure dies if bison
2773           and flex are not installed
2774
2775 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
2776
2777         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
2778           with this z80 passes printf float test when enabled
2779         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
2780
2781 2006-12-28 Borut Razem <borut.razem AT siol.net>
2782
2783         * support/cpp2/config.in, support/cpp2/configure.in,
2784           support/cpp2/configure, support/cpp2/Makefile.in:
2785           fix for the solaris build
2786
2787 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2788
2789         * src/SDCC.y (type_specifier2, pointer),
2790         * src/SDCCsymt.h,
2791         * src/SDCCsymt.c (mergeSpec, checkSClass),
2792         * support/Util/SDCCerr.c,
2793         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
2794         * support/valdiag/valdiag.py: Allow test cases to specify
2795           required language standard
2796         * support/valdiag/tests/restrict.c: New file to test restrict keyword
2797         * support/valdiag/tests/tentdecl.c: Supress empty source file error
2798
2799 2006-12-27 Borut Razem <borut.razem AT siol.net>
2800
2801         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
2802         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
2803           mbchar removed
2804         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
2805           fixed for borland C
2806         * support/cpp2/libiberty/Makefile.bcc: updated
2807         * src/pic16/main.c: fixed #pragma udata handling
2808         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
2809
2810 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
2811
2812         * src/SDCCpeeph.c: made labelHashEntry global,
2813         made pcDistance, FBYNAME static,
2814         (pcDistance): made static, use isComment and isLabel,
2815         (deadMove): added,
2816         (getLabelRef): added, extracted from labelRefCount(),
2817         (labelRefCount): use new getLabelRef(),
2818         (callFuncByName): made static, added deadMove,
2819         use isComment and isLabel,
2820         (newPeepRule): made static, set isLabel,
2821         (isLabelDefinition): added parameter isPeepRule to allow '%' in
2822         labels from peephole rules,
2823         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
2824         when isComment or isLabel is set
2825         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
2826         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
2827         to make them global
2828         * src/mcs51/peep.h: added
2829         * src/mcs51/peep.c: added, implements mcs51DeadMove()
2830         * src/port.h: added peep->deadMove to port structure
2831         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
2832         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
2833         deadMove, finally removed no. 1 and 2
2834         * src/mcs51/gen.c,
2835         * src/pic/gen.c,
2836         * src/z80/gen.c,
2837         * src/z80/ralloc.c,
2838         * src/pic16/gen.c,
2839         * src/ds390/gen.c,
2840         * src/hc08/gen.c: mark lines with isComment or isLabel
2841         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
2842         * .version,
2843         * sdcc.spec: bumped version to 2.6.3
2844
2845 2006-12-26 Borut Razem <borut.razem AT siol.net>
2846
2847         * support/cpp2/Makefile.in: added dependency on options.h
2848         * configure: regenerated
2849         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
2850         * support/cpp2/Makefile.in: added vasprintf.c
2851
2852 2006-12-25 Borut Razem <borut.razem AT siol.net>
2853
2854         * SDCPP synchronized with GCC CPP release version 3.4.6,
2855           the latest release before 4.x:
2856         * support/cpp2/Makefile.in, support/cpp2/config.h,
2857           support/cpp2/configure, support/cpp2/configure.in,
2858           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
2859           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
2860           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
2861           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
2862           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
2863           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
2864           support/cpp2/cpptrad.c, support/cpp2/except.h,
2865           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
2866           support/cpp2/hwint.h, support/cpp2/intl.h,
2867           support/cpp2/line-map.c, support/cpp2/line-map.h,
2868           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
2869           support/cpp2/output.h, support/cpp2/prefix.c,
2870           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
2871           support/cpp2/system.h, support/cpp2/version.c:
2872           modified
2873         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2874           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
2875           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
2876           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
2877           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
2878           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
2879           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
2880           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
2881           support/cpp2/move-if-change, support/cpp2/opts.c,
2882           support/cpp2/opts.h, support/cpp2/opts.sh,
2883           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
2884           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
2885           support/cpp2/win32, support/cpp2/win32/dirent.c,
2886           support/cpp2/win32/dirent.h:
2887           added
2888         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
2889         * support/cpp2/sdcpp.h: renamed from sdcc.h
2890         * sdcppinit.c: deleted
2891
2892 2006-12-23 Borut Razem <borut.razem AT siol.net>
2893
2894         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
2895           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
2896           preproc.c: an other try to fix bug #982435: introduced
2897           -pedantic-parse-number command line option and pedantic_parse_number
2898           pragma
2899
2900 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
2901
2902         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
2903            BSEG handling,
2904           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
2905            corrected overlayed areax addresses, warn about memory overlaps
2906         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
2907         * src/avr/main.c,
2908         * src/ds390/main.c,
2909         * src/hc08/main.c,
2910         * src/mcs51/main.c,
2911         * src/pic16/main.c,
2912         * src/pic/main.c,
2913         * src/xa51/main.c,
2914         * src/z80/main.c,
2915         * src/port.h: added xabs_name and iabs_name
2916         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
2917           (glue, emitMaps): create and emit maps d_abs and i_abs
2918         * src/SDCCglue.h: cosmetic changes
2919         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
2920         * src/SDCCmem.h,
2921         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
2922           (allocDefault): put absolute, initialized globals in them
2923         * support/regression/tests/absolute.c: added absolute bdata test
2924         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
2925
2926 2006-12-20 Borut Razem <borut.razem AT siol.net>
2927
2928         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
2929         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
2930           added regression test for bug #982435
2931
2932 2006-12-18 Borut Razem <borut.razem AT siol.net>
2933
2934         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
2935         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
2936           small cosmetic changes
2937         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
2938         * support/regression/tests/bug-1351710.c: added regression test
2939
2940 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2941
2942         * doc/sdccman.lyx: added the long missed iCode table
2943           "<where is figure II?>", added links to wiki
2944
2945 2006-12-17 Borut Razem <borut.razem AT siol.net>
2946
2947         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
2948           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
2949           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
2950           unified table driven pragma handling, pragma argument type checking
2951         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
2952           current one - version 1.1.3
2953         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
2954
2955 2006-12-13 Raphael Neider <rneider AT web.de>
2956
2957         * src/pic/device.h: removed AssignedMemory structure and macros
2958         * src/pic/device.c: removed global finalMapping (linker assigns
2959             memory locations),
2960           (register_map): add SFRs to remembered memRanges
2961           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
2962           assignFixedRegisters,assignRelocatableRegisters): removed,
2963           (setMaxRAM,validAddress): adapted accordingly,
2964           (pic14_hasSharebank,pic14_getSharedStack): only report and use
2965             reasonably sized sharebanks,
2966         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
2967           (allDefsOutOfRange): removed unused code,
2968         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
2969             handling
2970         * src/pic/pcode.c (register_reassign): removed recursion warning,
2971             fired far too often,
2972         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
2973             to use existing pic14_stringInSet() to avoid duplicate symbols,
2974             tidied up the code a bit,
2975           (pic14printLocals): added in symmetry to printExterns, replaces
2976             writeUsedRegs more or less,
2977           (picglue): call new pic14_printLocals(),
2978         * device/include/pic/pic*.h: removed #pragma memmap directives,
2979             information gathered from include/pic/pic14devices.txt
2980         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
2981
2982 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
2983
2984         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
2985
2986 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2987
2988         * device/include/mcs51/cc2430.h: fixed missing ';'
2989
2990 2006-12-10 Raphael Neider <rneider AT web.de>
2991
2992         * device/lib/pic16/libc/stdio/vfprintf.c,
2993         * device/lib/pic16/libc/stdio/printf_small.c,
2994         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
2995           char arguments, as char varargs are cast to int by the caller,
2996           hopefully fixes #1604915 (other device libraries are still affected)
2997
2998 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2999
3000         * src/mcs51/ralloc.c (packRegsForAssign),
3001         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
3002
3003 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
3004
3005         * device/include/malloc.h: removed init_dynamic_memory
3006         * device/lib/malloc.c: made init_dynamic_memory static and automatically
3007           call it once from malloc. Also use _sdcc_heap[] from _heap.c
3008         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
3009         * device/lib/libsdcc.lib,
3010         * device/lib/Makefile.in,
3011         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
3012         * doc/sdccman.lyx: documented use of new _heap.c
3013         * support/regression/tests/malloc.c: removed init_dynamic_memory
3014         * src/cdbFile.c(spacesToUnderscores): new function,
3015           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
3016           1068030
3017         * device/include/tinibios.h: removed defines for putchar and getchar
3018         * device/lib/ds390/Makefile.in: added putchar.c
3019         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
3020
3021 2006-12-09 Borut Razem <borut.razem AT siol.net>
3022
3023         * support/cpp2/sdcc.h: prevent multiple inclusion
3024         * support/cpp2/options.h: deleted
3025
3026 2006-12-08 Borut Razem <borut.razem AT siol.net>
3027
3028         * support/cpp2/sdcc.h: removed x*alloc() macros
3029         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
3030         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
3031           support/cpp2/sdcpp.sdc: x*alloc files added to the project
3032         * support/cpp2/system.h: moved #include "sdcc.h"
3033         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
3034           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
3035           added
3036         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
3037           -funsigned-char options
3038         * support/cpp2/sdcppmain.c: fixed bug 1611411
3039
3040 2006-12-07 Borut Razem <borut.razem AT siol.net>
3041
3042         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
3043           directive
3044
3045 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
3046
3047         * src/SDCCsymt.c (addDecl): fixed bug 1609244
3048         * src/SDCCmain.c (linkEdit): fixed bug 1609279
3049         * doc/sdccman.lyx,
3050         * .version: bumped to 2.6.2 because a) it's been a while
3051           b) the linker sources have moved c) the preprocessor is upgraded
3052
3053 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3054
3055         * support/regression/tests/snprintf.c: some checks
3056         * lib/src/printf_large.c: %bc: read char instead of int from stack
3057
3058 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
3059
3060         * device/include/mcs51/cc2430.h: inserted _XPAGE
3061
3062 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3063
3064         * device/include/mcs51/cc2430.h: added
3065
3066 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
3067
3068         * device/include/asm/default/features.h,
3069         * device/include/asm/ds390/features.h,
3070         * device/include/mcs51/at89s53.h,
3071         * device/include/ser.h,
3072         * device/include/ser_ir.h,
3073         * device/include/serial.h: changed keywords to double underscore variants,
3074           fixes bug 1590261 some more, thanks Steven Borley
3075
3076 2006-12-01 Raphael Neider <rneider AT web.de>
3077
3078         * src/pic/pcode.c (register_reassign): do not crash on recursive code
3079           but emit warning (recursion is not supported for pic14)
3080
3081 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3082
3083         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
3084         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
3085
3086 2006-11-30 Raphael Neider <rneider AT web.de>
3087
3088         * src/pic/device.c (dump_sfr): always emit symbols
3089         * src/pic/glue.c (pic14printPublics): fixed typo
3090
3091 2006-11-30 Raphael Neider <rneider AT web.de>
3092
3093         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
3094           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
3095           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
3096            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
3097            a sharebank, use a non-shared bank for the stack if none available
3098         * src/pic/device.h (struct memRange): added linked list next field,
3099           added prototypes for above functions
3100         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
3101           (typeRegWithIdx): accept fixed and unfixed stack registers
3102         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
3103           the stack, handle shared and banked stack (except for WSAVE),
3104           (insertBankSel): removed useless optimization (will never fire),
3105           (FixRegisterBanking): added optimization for devices with only one
3106           possibly aliased bank of memory, like 16f84
3107         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
3108           devices have no SHAREBANK in the linker script
3109         * device/include/pic/pic14devices.txt: documented memmap
3110         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
3111
3112 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3113
3114         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
3115           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
3116           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
3117           genhc08Code): switched most of the D (debug) macros to DD (detailed
3118           debug) macros to better control clutter in the generated .asm file.
3119         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
3120           genRightShift): fixed bug with non-constant bit shift stored to
3121           a volatile result (SF Open Discussion forum thread #1616749).
3122           Single byte case is not yet optimized.
3123
3124 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
3125
3126         * device/include/asm/mcs51/features.h,
3127         * device/include/malloc.h,
3128         * device/include/stdio.h: changed keywords to double underscore variants,
3129           fixes bug 1590261
3130
3131 2006-11-27 Borut Razem <borut.razem AT siol.net>
3132
3133         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
3134           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
3135           support/cpp2/output.h, support/cpp2/cppinit.c,
3136           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
3137           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
3138           support/cpp2/cppdefault.c, support/cpp2/system.h,
3139           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
3140           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
3141           support/cpp2/prefix.c, support/cpp2/except.h,
3142           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
3143           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
3144           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
3145           support/cpp2/version.c, support/cpp2/cppmain.c,
3146           support/cpp2/version.h, support/cpp2/hashtable.c,
3147           support/cpp2/cpperror.c:
3148           synchronized with GCC CPP release version 3.3.6,
3149           the latest where cppmain.c still exists.
3150         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
3151           support/cpp2/sdcppinit.c: added
3152
3153 2006-11-27 Borut Razem <borut.razem AT siol.net>
3154
3155         * support/cpp2/cpplex.c:
3156           fixed _asm ... _endasm handling bug, introduce with GCC CPP
3157           synchronization
3158         * support/cpp2/cpplib.c: removed definitions of unused variables
3159
3160 2006-11-26 Borut Razem <borut.razem AT siol.net>
3161
3162         * support/cpp2/libiberty.h: commented out x*alloc() declarations
3163           since they are redefined by macros in support/cpp2/sdcc.h
3164         * support/cpp2/sdcc.h: x*alloc macro redefinition
3165
3166 2006-11-25 Borut Razem <borut.razem AT siol.net>
3167
3168         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
3169           support/cpp2/configure, support/cpp2/Makefile.in,
3170           support/cpp2/cppfiles.c, support/cpp2/output.h,
3171           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
3172           support/cpp2/config.h, support/cpp2/cpplib.h,
3173           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
3174           support/cpp2/cppdefault.c, support/cpp2/config.in,
3175           support/cpp2/system.h, support/cpp2/cpplex.c,
3176           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
3177           support/cpp2/cppdefault.h, support/cpp2/prefix.c
3178           support/cpp2/hwint.h, support/cpp2/mbchar.h,
3179           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
3180           support/cpp2/configure.in, support/cpp2/intl.h,
3181           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
3182           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
3183           support/cpp2/version.c, support/cpp2/cppmain.c,
3184           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
3185           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
3186           support/cpp2/cpperror.c,
3187           support/cpp2/libiberty/safe-ctype.c,
3188           support/cpp2/libiberty/safe-ctype.h,
3189           support/cpp2/libiberty/splay-tree.c,
3190           support/cpp2/libiberty/obstack.c,
3191           support/cpp2/libiberty/lbasename.c,
3192           support/cpp2/libiberty/splay-tree.h,
3193           support/cpp2/libiberty/obstack.h:
3194           synchronized with GCC CPP release version 3.2.3,
3195           the latest before integration of cpp into gcc
3196         * support/cpp2/except.h, support/cpp2/line-map.c,
3197           support/cpp2/line-map.h,
3198           support/cpp2/libiberty/hex.c,
3199           support/cpp2/libiberty/concat.c,
3200           support/cpp2/libiberty/filenames.h: added
3201         * support/cpp2/intl.c: deleted
3202
3203 2006-11-24 Borut Razem <borut.razem AT siol.net>
3204
3205         * src/SDCC.y: enabled compilation of empty source file
3206         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
3207           "ISO C forbids an empty source file"
3208         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
3209           if all the code is ifdefed out.
3210
3211 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3212
3213         * src/hc08/gen.c (genPcall): fix for bug #1601032
3214
3215 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
3216
3217         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
3218         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
3219         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
3220         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
3221         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
3222         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
3223         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
3224         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
3225         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
3226         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
3227         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
3228         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
3229         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
3230         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
3231         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
3232           Renamed to all upper case as per the standard set by SiLabs
3233
3234 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
3235
3236         * device/include/mcs51/C8051F520.h: new, added
3237         * device/include/mcs51/compiler.h: added link about predefined macros
3238
3239 2006-11-23 Raphael Neider <rneider AT web.de>
3240
3241         * src/regression/Makefile: add -L path to fresh library
3242         * src/regression/simulate: emphasize FAILED output
3243         * src/regression/create_stc: output _failures from gpsim
3244         * src/regression/compare4.c,
3245         * src/regression/rotate6.c: fixed char literals,
3246           all compile, all run =8-D
3247
3248         * src/pic/pcode.h: added isPCASMDIR macro
3249         * src/pic/gen.c (genAnd): fixed bit offset
3250         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
3251           packBits): unified register numbering schemes,
3252           (newReg): do not insert stack registers into hash table,
3253           (initStack): unpinned pseudo stack, simplified,
3254           (typeRegWithIdx): fixed retrieval of stack registers,
3255         * src/pic/pcode.c (addpCodeComment,sameBank): added,
3256           (pCodeReplace): removed invalid assertion,
3257           (insertPCodeInstruction): fixed newly added labels,
3258           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
3259           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
3260           DumpFlow): removed unsed (broken?) code,
3261           (insertBankSel): prevent STATUS from being BANKSELed,
3262           (FixRegisterBanking): rewritten from scratch, implemented generic
3263             optimizations (suppress BANKSELs to same register and to registers
3264             present in all banks),
3265           (AnalyzeBanking): update flow after BANKSELection
3266
3267         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
3268             sharebank, let linker place it, mark STKxx symbols as emitted
3269
3270 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3271
3272         * src/regression/arrays.c,
3273         * src/regression/bank1.c,
3274         * src/regression/bool2.c,
3275         * src/regression/compare7.c,
3276         * src/regression/compare8.c,
3277         * src/regression/compare9.c,
3278         * src/regression/compare10.c,
3279         * src/regression/configword.c,
3280         * src/regression/for.c,
3281         * src/regression/mult1.c,
3282         * src/regression/pointer1.c,
3283         * src/regression/rotate6.c,
3284         * src/regression/string1.c,
3285         * src/regression/struct1.c,
3286         * src/regression/Makefile: make PIC14 regression tests run again
3287           (3 fail, 6 won't compile)
3288
3289 2006-11-21 Raphael Neider <rneider AT web.de>
3290
3291         * device/include/pic16/pic18f4550.h,
3292         * device/include/pic16/pic18f4455.h,
3293         * device/lib/pic16/libdev/pic18f4550.c,
3294         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
3295         * configure.in: removed superfluous closing bracket
3296
3297 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3298
3299         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
3300           always positive.
3301
3302 2006-11-21 Raphael Neider <rneider AT web.de>
3303
3304         * src/pic/device.{c,h}: added pic14_getPIC()
3305         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
3306           (genAnd): added PIC code for one case, fixes #1597044
3307         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
3308           SFRs that are present in all banks (e.g., STATUS)
3309
3310 2006-11-20 Raphael Neider <rneider AT web.de>
3311
3312         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
3313           INCFSZ/INCFSZW and declared them as changing Z bit,
3314           (insertPCodeInstruction): correctly invert the above instructions,
3315           fixes #1599333,
3316           (DoBankSelect): don't panic on po_immediates
3317
3318 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
3319
3320         * as/link/aslink.h,
3321         * as/link/mcs51/lkihx.c (newArea),
3322         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
3323         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
3324
3325 2006-11-11 Raphael Neider <rneider AT web.de>
3326
3327         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
3328           bitfield symbols, fixes #1579535 (once more...).
3329
3330 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3331
3332         * support/regression/generate-cases.py,
3333         * support/regression/fwk/include/testfwk.h,
3334         * support/regression/fwk/lib/testfwk.c: used code pointers,
3335           (about 50kByte less code generated for mcs51)
3336
3337 2006-11-06 Borut Razem <borut.razem AT siol.net>
3338
3339         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3340           debugger/mcs51/configure: fixed failed check because the function
3341           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
3342           who submitted the patch for gpsim.
3343         * debugger/mcs51/configure.in: removed the result message
3344         * debugger/mcs51/Makefile.in: fixed the config.status warning
3345           "... seems to ignore the --datarootdir setting"
3346
3347 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
3348
3349         * device/include/mcs51/c8051f020.h,
3350         * device/include/mcs51/c8051f040.h,
3351         * device/include/mcs51/c8051f060.h,
3352         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
3353         * src/z80/gen.c (gencjneshort),
3354         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
3355
3356 2006-10-31 Borut Razem <borut.razem AT siol.net>
3357
3358         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3359           debugger/mcs51/configure: get readline version
3360
3361 2006-10-30 Borut Razem <borut.razem AT siol.net>
3362
3363         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
3364         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3365           debugger/mcs51/configure: locate readline even when cross compiling
3366         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
3367
3368 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3369
3370         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
3371           serial port.
3372
3373 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
3374
3375         * device/include/malloc.h,
3376         * device/lib/calloc.c,
3377         * device/lib/free.c,
3378         * device/lib/malloc.c,
3379         * device/lib/realloc.c: moved definition of struct into sources
3380         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
3381
3382 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
3383
3384         * as/asx8051.dsp: corrected output directories
3385         * as/link/hc08: new directory for hc08 linker
3386         * as/hc08/aslink.h,             as/link/aslink.h,
3387         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
3388         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
3389         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
3390         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
3391         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
3392         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
3393         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
3394         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
3395         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
3396         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
3397         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
3398         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
3399         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
3400         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
3401         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
3402         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
3403         * as/link/hc08/conf.mk,
3404         * configure,
3405         * configure.in,
3406         * Makefile.in,
3407         * sdcc.dsw: moved hc08 linker to as/link/hc08
3408         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
3409         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
3410         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
3411         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
3412         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
3413         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
3414         * as/link/mcs51/aslink.dsp,
3415         * as/link/mcs51/Makefile.in: factored out the common files
3416         * as/hc08/lkstore.c: deleted, use the one already in as/link/
3417         * as/clean.mk: extra cleaning common files
3418         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
3419         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
3420         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
3421
3422 2006-10-29 Raphael Neider <rneider AT web.de>
3423
3424         * src/pic/ralloc.c (newReg): create aliases for registers with
3425           multiple names to fix #1579535 and #1584001,
3426           (regWithIdx,dirregWithName): resolve aliases on lookup
3427         * src/pic/pcode.c (DoBankSelect): die with error message on failing
3428           bankselect
3429         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
3430           to prevent build errors on small devices
3431
3432 2006-10-28 Raphael Neider <rneider AT web.de>
3433
3434         * src/pic/gen.c (genFunction,genCall): drop "same code page"
3435           assumption within interrupt handlers, fixes #1584940
3436         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
3437           "emitted" to avoid emitting them again in udata
3438
3439 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3440
3441         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
3442         Removed.
3443
3444 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3445
3446         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
3447         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
3448         on/off CR to CRLF conversion.
3449
3450 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3451
3452         * doc/sdccman.lyx: updated IRQ section
3453
3454 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3455
3456         * device/lib/serial_io.c: removed
3457         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
3458         replacements for serial_io.c
3459
3460 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
3461
3462         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
3463
3464 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3465
3466         * device/lib/serial_io.c: Default putchar() and getchar() for
3467           mcs51 uses serial port.
3468
3469 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
3470
3471         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
3472
3473 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3474
3475         * support/regression/ports/mcs51/support.c: smaller
3476         _sdcc_external_startup()
3477         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
3478
3479 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
3480
3481         * device/lib/gbz80/crt0.s,
3482         * device/lib/gbz80/crt0_rle.s,
3483         * device/lib/gbz80/div.s,
3484         * device/lib/gbz80/fstubs.s,
3485         * device/lib/gbz80/heap.s,
3486         * device/lib/gbz80/mul.s,
3487         * device/lib/gbz80/putchar.s,
3488         * device/lib/gbz80/stubs.s,
3489         * device/lib/z80/crt0.s,
3490         * device/lib/z80/crt0_rle.s,
3491         * device/lib/z80/div.s,
3492         * device/lib/z80/fstubs.s,
3493         * device/lib/z80/heap.s,
3494         * device/lib/z80/mul.s,
3495         * device/lib/z80/putchar.s,
3496         * device/lib/z80/stubs.s: reverted, I was mistaken
3497
3498 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3499
3500         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
3501         * support/regression/ports/mcs51/support.c: removed race
3502         condition on TI in _putchar allowing to use serial port mode 0
3503
3504 2006-10-20 Borut Razem <borut.razem AT siol.net>
3505
3506         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
3507
3508 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
3509
3510         * device/lib/gbz80/crt0.s,
3511         * device/lib/gbz80/crt0_rle.s,
3512         * device/lib/gbz80/div.s,
3513         * device/lib/gbz80/fstubs.s,
3514         * device/lib/gbz80/heap.s,
3515         * device/lib/gbz80/mul.s,
3516         * device/lib/gbz80/putchar.s,
3517         * device/lib/gbz80/stubs.s,
3518         * device/lib/z80/crt0.s,
3519         * device/lib/z80/crt0_rle.s,
3520         * device/lib/z80/div.s,
3521         * device/lib/z80/fstubs.s,
3522         * device/lib/z80/heap.s,
3523         * device/lib/z80/mul.s,
3524         * device/lib/z80/putchar.s,
3525         * device/lib/z80/stubs.s: removed all leading underscores from area names
3526
3527 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
3528
3529         * support/regression/ports/mcs51/support.c: use highest baudrate so the
3530           regression tests are not waiting in the simulator for simulated
3531           transmission of debug output
3532
3533 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3534
3535         * device/lib/printf_large.c: slightly smaller
3536         * doc/sdccman.lyx: do not use spaces within html links
3537
3538 2006-10-16 Borut Razem <borut.razem AT siol.net>
3539
3540         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
3541           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
3542           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
3543           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
3544           debugger/mcs51/configure:
3545           [ 1185668 ] add gnu readline support to sdcdb - enabled
3546
3547 2006-10-16 Raphael Neider <rneider AT web.de>
3548
3549         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
3550           fixes #1577882, removes close to all banking optimizations
3551
3552 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
3553
3554         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
3555           variables in code memory
3556         * support/regression/tests/absolute.c: added test for this
3557
3558 2006-10-15 Raphael Neider <rneider AT web.de>
3559
3560         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
3561           devices,
3562           (BankSelect): emit BANKSEL before touching linker-placed regs,
3563           fixes #1570934
3564
3565 2006-10-10 Raphael Neider <rneider AT web.de>
3566
3567         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
3568         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
3569         * src/pic/main.c (_pic14_parseOptions),
3570         * src/pic/main.h: mostly reverted to previous state, now use results
3571             from SDCCmain.c's argument parsing
3572
3573 2006-10-10 Borut Razem <borut.razem AT siol.net>
3574
3575         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
3576           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
3577           [ 1185668 ] add gnu readline support to sdcdb -
3578           prepared for READLINE, not enabled yet,
3579           thanks to <tal.bav AT gmail.com>
3580
3581 2006-10-10 Raphael Neider <rneider AT web.de>
3582
3583         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
3584         * src/pic16/devices.inc,
3585         * device/include/pic16 (pic18f[24]620.h),
3586         * device/include/pic18fregs.h,
3587         * device/lib/pic16/pics.all,
3588         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
3589             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
3590             Gary Plumbridge and Anton Strobl
3591
3592 2006-10-10 Raphael Neider <rneider AT web.de>
3593
3594         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
3595           --stack-siz=NUM options to configure the argument passing stack
3596         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
3597         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
3598           (pic14_getSharebankSize): obey --stack-siz=NUM,
3599           (pic14_getSharebankAddress): obey --stack-loc=NUM
3600
3601 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3602
3603         * doc/sdccman.lyx: added to the manual
3604         * doc/figures/ddd_example.png: added (neither pdflatex nor
3605         most browsers seem to like the .eps file)
3606
3607 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
3608
3609         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
3610         to /tmp and /var/tmp acc. LSB
3611         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
3612         RESULT_TYPE_IFX
3613         * support/regression/tests/onebyte.c: added test
3614
3615 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3616
3617         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
3618
3619 2006-10-05 Borut Razem <borut.razem AT siol.net>
3620
3621         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
3622           thanks to dfulab:
3623           - sdcc.dsw: changed property eol-style to CRLF
3624           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
3625
3626 2006-10-04 Raphael Neider <rneider AT web.de>
3627
3628         * device/include/pic/{pic16f84.h,pic16f84a.h},
3629         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
3630           from patch #1522504, thanks to Robas Teodor
3631
3632 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
3633
3634         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
3635           fixes bug 1566015
3636
3637 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
3638
3639         * src/pic16/glue.c (pic16emitMaps),
3640         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
3641         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
3642         * device/lib/pic16/libc/string/memcpypgm2ram.c,
3643         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
3644           Philipp Krause
3645         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
3646         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
3647
3648 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3649
3650         * support/librarian/sdcclib.c: Added option -l.
3651         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
3652           usage totals.
3653         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
3654           using Windows command prompt.
3655
3656 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
3657
3658         * device/lib/libsdcc.lib: added module rand
3659         * src/ds390/ralloc.c (rematStr),
3660         * src/hc08/ralloc.c (rematStr),
3661         * src/mcs51/ralloc.c (rematStr),
3662         * src/z80/ralloc.c (rematStr): made output more consistent
3663         * src/mcs51/gen.c: cosmetic changes
3664
3665 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
3666
3667         * src/port.h: added mem.cabs_name to PORT
3668         * src/ds390/main.c,
3669         * src/hc08/main.c,
3670         * src/mcs51/main.c,
3671         * src/pic16/main.c,
3672         * src/pic/main.c,
3673         * src/xa51/main.c,
3674         * src/z80/main.c: added cabs_name initializers
3675         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
3676           constants
3677           (emitMaps): emit absolutes in code memory into cabs_name
3678         * src/SDCCmem.c,
3679         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
3680         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
3681         * support/regression/fwk/include/testfwk.h: added define for at
3682         * support/regression/tests/absolute.c: added, new
3683
3684 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
3685
3686         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
3687           optimizations, see also patch 887161 by Stas Sergeev
3688         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
3689           to be necessary anymore,
3690           (102, 103, 104, 127): renamed all occurances of bp to _bp
3691
3692 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
3693
3694         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
3695           thanks Weston T. Schmidt for patch 1555221
3696         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
3697         * src/SDCCicode.c(geniCodeMultiply): small optimization
3698
3699 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
3700
3701         * device/include/stdlib.h: added rand prototypes
3702         * device/lib/rand.c: new, added
3703         * device/lib/Makefile.in: added rand.c
3704         * src/z80/peeph.def,
3705         * src/z80/peeph-gbz80.def,
3706         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
3707
3708 2006-09-20 Raphael Neider <rneider AT web.de>
3709
3710         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
3711
3712 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
3713
3714         * as/link/aslink.h: cosmetic changes
3715         * as/link/mcs51/Makefile.in,
3716         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
3717
3718 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
3719
3720         * as/link/aslink.h,
3721         * as/link/mcs51/aslink.h,
3722         * as/link/z80/aslink.h: merged and moved to as/link/
3723         * as/link/lkstore.c,
3724         * as/link/mcs51/lkstore.c: moved to as/link/
3725         * as/link/clean.mk: remove *.o
3726         * as/link/mcs51/alloc.h: deleted
3727         * as/link/mcs51/lkarea.c: added lnksect prototype
3728         * as/link/mcs51/lkdata.c,
3729         * as/link/mcs51/lklex.c,
3730         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
3731         * as/link/mcs51/lkmem.c,
3732         * as/link/mcs51/lknoice.c: removed include strcmpi.h
3733         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
3734         * as/link/mcs51/aslink.dsp,
3735         * as/link/mcs51/Makefile.aslink,
3736         * as/link/mcs51/Makefile.bcc,
3737         * as/link/mcs51/Makefile.in: updated for moved files
3738         * as/link/z80/lkarea.c,
3739         * as/link/z80/lkhead.c,
3740         * as/link/z80/lklex.c,
3741         * as/link/z80/lklibr.c,
3742         * as/link/z80/lklist.c,
3743         * as/link/z80/lkmain.c,
3744         * as/link/z80/lkrloc.c,
3745         * as/link/z80/lksym.c: synced with mcs51
3746         * as/link/z80/lkdata.c,
3747         * as/link/z80/lkeval.c,
3748         * as/link/z80/lkihx.c,
3749         * as/link/z80/lks19.c: cosmetic changes
3750         * as/link/z80/Makefile.in,
3751         * as/link/z80/linkgbz80.dsp,
3752         * as/link/z80/linkz80.dsp: updated for moved files
3753
3754 2006-09-16 Borut Razem <borut.razem AT siol.net>
3755
3756         * debugger/mcs51/sdcdb.c: partially fixed
3757           [ 1203664 ] sdcdb fails to open files w. two "." periods
3758         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
3759           debugger/mcs51/symtab.h: fixed indenting
3760         * configure.in, configure: up to date with latest Maarten's changes
3761
3762 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
3763
3764         as/link/mcs51
3765         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
3766         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
3767         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
3768         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
3769         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
3770         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
3771         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
3772         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
3773         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
3774         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
3775         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
3776         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
3777         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
3778         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
3779         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
3780         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
3781         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
3782         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
3783         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
3784         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
3785         as/link/mcs51/alloc.h,
3786         as/link/mcs51/clean.mk,
3787         as/link/mcs51/conf.mk,
3788         as/link/mcs51/Makefile.bcc,
3789         as/link/mcs51/Makefile.in,
3790         as/link/mcs51/readme.390,
3791         as/link/mcs51/strcmpi.c,
3792         as/link/mcs51/strcmpi.h,
3793         as/mcs51/clean.mk,
3794         as/mcs51/Makefile.bcc,
3795         as/mcs51/Makefile.in,
3796         configure,
3797         Makefile.in,
3798         sdcc.dsw: moved mcs51 linker to as/link/mcs51
3799
3800 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
3801
3802         * as/link,
3803         * as/link/Makefile.in,
3804         * as/link/z80/linkgbz80.dsp,
3805         * as/link/z80/linkz80.dsp,
3806         * configure,
3807         * link,
3808         * link/clean.mk,
3809         * link/Makefile.in,
3810         * link/README,
3811         * link/z80,
3812         * link/z80/aslink.h,
3813         * link/z80/clean.mk,
3814         * link/z80/conf.mk,
3815         * link/z80/linkgbz80.dsp,
3816         * link/z80/linkz80.dsp,
3817         * link/z80/lkarea.c,
3818         * link/z80/lkdata.c,
3819         * link/z80/lkeval.c,
3820         * link/z80/lkgb.c,
3821         * link/z80/lkgg.c,
3822         * link/z80/lkhead.c,
3823         * link/z80/lkihx.c,
3824         * link/z80/lklex.c,
3825         * link/z80/lklibr.c,
3826         * link/z80/lklist.c,
3827         * link/z80/lkmain.c,
3828         * link/z80/lkrloc.c,
3829         * link/z80/lks19.c,
3830         * link/z80/lksym.c,
3831         * link/z80/Makefile.in,
3832         * Makefile.in,
3833         * sdcc.dsw: moved link/ to as/link/
3834
3835 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
3836
3837         * as/mcs51/i51mch.c (machine): fixed warning
3838
3839 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
3840
3841         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
3842
3843 2006-09-09 Borut Razem <borut.razem AT siol.net>
3844
3845         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
3846           sdcdb WIN32 native port
3847         * src/clean.mk: fixed
3848
3849 2006-09-08 Borut Razem <borut.razem AT siol.net>
3850
3851         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
3852
3853 2006-09-08 Raphael Neider <rneider AT web.de>
3854
3855         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
3856         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
3857             to gplink to disable processor mismatch warning and to allow
3858             the use of devices with only aliased (shared) memory banks,
3859           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
3860
3861 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3862
3863         * doc/sdccman.lyx: Some re-formating plus example on using
3864           #pragma preproc_asm +/-
3865
3866 2006-09-07 Borut Razem <borut.razem AT siol.net>
3867
3868         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
3869           section
3870
3871 2006-09-06 Borut Razem <borut.razem AT siol.net>
3872
3873         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
3874           line at sdcc.nsi:153
3875         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
3876
3877 2006-09-05 Borut Razem <borut.razem AT siol.net>
3878
3879         * configure.in, configure: support for winsock2
3880         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
3881           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
3882           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
3883           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
3884           debugger/mcs51/symtab.h: sdcdb WIN32 native port
3885
3886 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
3887
3888         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
3889           and OP_DEFS
3890         * support/regression/tests/bug1551947.c: new, added
3891         * src/SDCCsymt.h: strings are char* not byte*
3892
3893 2006-09-05 Raphael Neider <rneider AT web.de>
3894
3895         * device/lib/pic16/libdev/pic18f4550.c,
3896           device/include/pic16/pic18f4550.h: added PORTD/TRISD
3897             declarations/definitions from patch #1520949
3898
3899 2006-09-05 Raphael Neider <rneider AT web.de>
3900
3901         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
3902           byte-aligned bitfields, fixes #1539278
3903
3904 2006-09-05 Raphael Neider <rneider AT web.de>
3905
3906         * src/pic/gen.c (genReceive): skip unreferenced arguments,
3907           fixes #1544120
3908
3909 2006-09-04 Borut Razem <borut.razem AT siol.net>
3910
3911         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
3912         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
3913           -mno-cygwin is a part of the compiler name
3914         * support/scripts/sdcc_mingw32: don't disable ucsim
3915
3916 2006-09-03 Borut Razem <borut.razem AT siol.net>
3917
3918         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
3919         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
3920
3921 2006-09-03 Raphael Neider <rneider AT web.de>
3922
3923         * src/pic/ralloc.c,
3924         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
3925           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
3926           fixes #1550049
3927
3928 2006-09-01 Borut Razem <borut.razem AT siol.net>
3929
3930         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
3931           to make ppc-osx happy
3932
3933 2006-08-31 Borut Razem <borut.razem AT siol.net>
3934
3935         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
3936         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
3937         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
3938         * support/regression/ports/ds390/spec.mk,
3939           support/regression/ports/mcs51/spec.mk,
3940           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
3941           To run regression tests in mingw environment:
3942           make DEV_NULL=NUL CC=gcc
3943
3944 2006-08-30 Borut Razem <borut.razem AT siol.net>
3945
3946         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
3947           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
3948           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
3949           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
3950           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
3951           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
3952           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
3953           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
3954           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
3955           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
3956           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
3957           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
3958           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
3959           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
3960           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
3961           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
3962           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
3963           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
3964           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
3965           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
3966           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
3967           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
3968           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
3969           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
3970           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
3971           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
3972           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
3973           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
3974           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
3975           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
3976           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
3977           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
3978           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
3979           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
3980           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
3981           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
3982           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
3983           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
3984           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
3985           ucsim WIN32 native port
3986
3987 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3988
3989         * doc/sdccman.lyx: added note on dynamic memory heap initialization
3990
3991 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
3992
3993         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
3994         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
3995
3996 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
3997
3998         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
3999         * support/regression/tests/bug1546986.c: new, added
4000         * as/mcs51/.cvsignore,
4001         * debugger/mcs51/.cvsignore,
4002         * src/.cvsignore: deleted
4003
4004 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4005
4006         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
4007           definitions)
4008
4009 2006-08-20 Borut Razem <borut.razem AT siol.net>
4010
4011         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
4012           removed cl_listen_console::match(), cl_console::match(),
4013           restructured cl_commander::proc_input()
4014
4015 2006-08-16 Borut Razem <borut.razem AT siol.net>
4016
4017         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
4018           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
4019           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
4020
4021 2006-08-14 Borut Razem <borut.razem AT siol.net>
4022
4023         * support/regression/Makefile.in,
4024           support/regression/ports/pic14/gpsim.cmd,
4025           support/regression/ports/pic14/spec.mk,
4026           support/regression/ports/pic14/support.c:
4027           added pic14 regression test
4028
4029 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
4030
4031         * as/doc/asxhtm.html: documented changed ABS behaviour
4032         * as/doc/README: fixed some typos
4033
4034 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
4035
4036         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
4037           not defined on host
4038
4039 2006-08-12 Borut Razem <borut.razem AT siol.net>
4040
4041         * support/regression/fwk/include/testfwk.h,
4042           support/regression/fwk/lib/testfwk.c,
4043           support/regression/generate-cases.py,
4044           support/regression/Makefile.in:
4045           regression test framework does not depend on function pointers and
4046           variable arguments
4047
4048 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
4049
4050         * device/include/stddef.h: c temporary hack to fix bug 1518273
4051
4052 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4053
4054         * device/include/mcs51/cc2510fx.h: added
4055         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
4056           to projects.
4057
4058 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
4059
4060         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
4061         * as/z80/Makefile.in: added strcmpi.c
4062         * as/z80/z80adr.c: added upper case registers and lower case conditionals
4063         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
4064
4065 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
4066
4067         * device/lib/gbz80/asm_strings.s,
4068         * device/lib/gbz80/crt0_rle.s,
4069         * device/lib/gbz80/div.s,
4070         * device/lib/gbz80/mul.s,
4071         * device/lib/gbz80/shift.s,
4072         * device/lib/z80/asm_strings.s,
4073         * device/lib/z80/crt0_rle.s,
4074         * device/lib/z80/div.s,
4075         * device/lib/z80/mul.s,
4076         * device/lib/z80/shift.s: changed to all lower case menmonics except the
4077           flags which are all upper case
4078
4079 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
4080
4081         * as/z80/asm.h: made CASE_SENSITIVE 1
4082         * link/z80/aslink.h: made CASE_SENSITIVE 1
4083         * src/z80/gen.c (throughout): made all conditionals upper case
4084         * support/regression/tests/bug1503067.c: new
4085
4086 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
4087
4088         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
4089           (shiftIntoPair): added case 2 for PAIR_IY,
4090           (setupToPreserveCarry): replaced parameters with iCode and check if
4091            PAIR_DE is in use to fix bug 1399290,
4092           (genPlus, genMinus): updated call to setupToPreserveCarry
4093         * support/regression/tests/bug1399290.c: new
4094
4095 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
4096
4097         * device/lib/Makefile.in (Z80SOURCES): enabled float support
4098         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
4099         * src/ds390/gen.c (shiftRLong),
4100         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
4101         * src/mcs51/gen.c (sameReg): changed to sameByte,
4102           (xch_a_aopGet): new,
4103           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
4104            shiftRLong): fixed bug 1533966
4105         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
4106           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
4107         * support/regression/Makefile.in: disabled z80, enabled ucz80
4108         * support/regression/tests/float_trans.c: enabled test for z80 and host
4109         * support/regression/tests/shifts2.c: new, for testing bug 1533966
4110
4111 2006-08-01 Borut Razem <borut.razem AT siol.net>
4112
4113         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
4114           comparison is always false due to limited range of data type
4115           on PPC64 machine (openpower-linux1) where "char = unsigned char"
4116
4117 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
4118
4119         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
4120         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
4121         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
4122         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
4123
4124 2006-07-31 Borut Razem <borut.razem AT siol.net>
4125
4126         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
4127           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
4128           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
4129           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
4130           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
4131           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
4132           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
4133           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
4134           enable ucsim mingw compilation. Serial port is disabled,
4135           since it uses termios.h API, which is not available on native
4136           WIN32
4137
4138 2006-07-31 Borut Razem <borut.razem AT siol.net>
4139
4140         * Small Device C Compiler 2.6.0 released
4141         * support/scripts/sdcc.nsi: added FULL_DOC option
4142         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
4143
4144 2006-07-28 Borut Razem <borut.razem AT siol.net>
4145
4146         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
4147         * doc/INSTALL.txt: updated
4148
4149 2006-07-27 Borut Razem <borut.razem AT siol.net>
4150
4151         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
4152           device/lib/pic/libdev/Makefile.in: fixed bug
4153           [ 1438354 ] pic libsdcc: distclean doesn't work
4154         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
4155           device/lib/pic16/libio/Makefile.in: fixed bug
4156           [ 1438344 ] pic16 lib: clean doesn't work properly
4157         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
4158
4159 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
4160
4161         * device/lib/pic/libsdcc/fsdiv.c,
4162         * device/lib/pic/libsdcc/fsmul.c,
4163         * device/lib/pic16/libsdcc/float/fsdiv.c,
4164         * device/lib/pic16/libsdcc/float/fsmul.c,
4165         * device/lib/_fsdiv.c,
4166         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
4167         * support/regression/tests/bug1520966.c: added
4168         * doc/knownbugs.html: removed [ 1520966 ] from the list
4169
4170 2006-07-25 Borut Razem <borut.razem AT siol.net>
4171
4172         * configure.in, configure, sdccconf_in.h: fixed bug
4173           [ 1519095 ] regression test onebyte.c fails on ppc64 host
4174         * doc/knownbugs.html: removed [ 1519095 ] from the list
4175
4176 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
4177
4178         * doc/knownbugs.html: added, contains list of known bugs at release
4179         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
4180
4181 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
4182
4183         * device/include/mcs51/compiler.h: added SFRX for xdata based special
4184           function registers and corrected defaults with additional warning
4185         * device/lib/malloc.c: cosmetic changes
4186         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
4187         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
4188           (fillGaps): and used it
4189
4190 2006-07-20 Raphael Neider <rneider AT web.de>
4191
4192         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
4193           output unless SDCCPICDEBUG is set
4194         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
4195           output if SILENT is set
4196
4197 2006-07-11 Borut Razem <borut.razem AT siol.net>
4198
4199         * doc/README.txt: updated
4200
4201 2006-07-10 Borut Razem <borut.razem AT siol.net>
4202
4203         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
4204           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
4205           in WIN32 installation
4206         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
4207           release candidate 1
4208
4209 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
4210
4211         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
4212         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
4213
4214 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
4215
4216         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
4217
4218 2006-07-06 Borut Razem <borut.razem AT siol.net>
4219
4220         * support/regression/tests/bitfields.c:
4221           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
4222         * support/regression/tests/constantRange.c:
4223           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
4224
4225 2006-07-04 Borut Razem <borut.razem AT siol.net>
4226
4227         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
4228           src/port.mk,
4229           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
4230           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
4231           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
4232           reverted changes from 2006-07-03
4233         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
4234         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
4235           added CPPFLAGS, used by the host port
4236
4237 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
4238
4239         * support/regression/valdiag/tests/switch.c,
4240         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
4241         * support/regression/tests/libmullong.c: fixed for host
4242         * support/regression/ports/host/spec.mk: disable all warnings for host,
4243         SDCC runs with --less-pedantic too
4244
4245 2006-07-03 Borut Razem <borut.razem AT siol.net>
4246
4247         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
4248           defined CPPFLAGS
4249         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
4250         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
4251           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
4252           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
4253           include ../port.mk
4254         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
4255           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
4256           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
4257           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
4258
4259 2006-07-02 Raphael Neider <rneider AT web.de>
4260
4261         * src/pic16/devices.inc,
4262         * device/include/pic16/pic18fregs.h,
4263         * device/include/pic16/pic18f4550.h,
4264         * device/lib/pic16/pics.all,
4265         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
4266
4267 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
4268
4269         * as/hc08/lkaomf51.c (OutputName),
4270         * as/mcs51/lkaomf51.c (OutputName),
4271         * as/z80/asmain.c (asmbl),
4272         * src/ds390/main.c (asmLineNodeFromLineNode),
4273         * src/hc08/ralloc.c (hc08_assignRegisters),
4274         * src/mcs51/main.c (asmLineNodeFromLineNode),
4275         * src/xa51/ralloc.c (checkRegMask),
4276         * src/xa51/gen.c (emitcode),
4277         * src/z80/gen.c (_emit2),
4278         * src/SDCCast.c (searchLitOp),
4279         * src/SDCCglobl.h,
4280         * support/packihx/packihx.c,
4281         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
4282         * src/ds390/gen.c (aopPutUsesAcc),
4283         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
4284         * support/regression/tests/libmullong.c (mullong_wrapper),
4285         * src/SDCCsymt.c (powof2),
4286         * src/SDCCast.c,
4287         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
4288         * src/SDCCsymt.h: added TYPE_TARGET_*
4289         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
4290         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
4291         SDCCast because 1) header problems 2) this is the right place
4292         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
4293         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
4294         prototype
4295
4296 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
4297
4298         * src/SDCCicode.h: removed buggy semicolon in unused macro
4299         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
4300         search for previous definiton of auto symbols too,
4301         (findPrevUse): fixed logic of emitWarnings
4302
4303 2006-06-26 Raphael Neider <rneider AT web.de>
4304
4305         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
4306           PCLATH and PCLATU on interrupts, potentially fixes #1505141
4307
4308 2006-06-25 Raphael Neider <rneider AT web.de>
4309
4310         * device/lib/pic/libm: NEW, added math library functions
4311         * device/lib/pic/libsdcc: NEW; added float support functions
4312         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
4313         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
4314           NEW, added math related headers
4315         * device/include/asm/pic/features.h: NEW
4316         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
4317           (popGet): allow larger offsets for AOP_PCODE,
4318           (genDataPointerSet): handle literals explicitly, more debug output,
4319           (genAssign): fixed for float using aopLiteral ;-)
4320         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
4321           GOTO initialisation routine
4322         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
4323           flag on registers, fixes #1469043 (local variables do not work)
4324         * src/pic/main.c (_pic14_do_link),
4325         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
4326           available
4327
4328 2006-06-25 Borut Razem <borut.razem AT siol.net>
4329
4330         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
4331           characters printed (not including the trailing '\0' used to end
4332           output to strings). Problem detected in regression test bug-927659.c.
4333           NOTE: printf() family functions should return int instead
4334           unsigned int!
4335         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
4336           specifier are printed as themselves
4337         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
4338           support flags, width and precision specifiers
4339
4340 2006-06-24 Borut Razem <borut.razem AT siol.net>
4341
4342         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
4343           to the list of sdcc tagrets not supporting bit type
4344         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
4345           testfor pic16 due to bug:
4346           [ 1511794 ] pic16: regression test bug-895992.c fails
4347
4348 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
4349
4350         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
4351         * src/SDCCglue.c (initPointer), fixed bug 1496419
4352         * support/regression/tests/bug1496419.c: new, added
4353
4354 2006-06-22 Borut Razem <borut.razem AT siol.net>
4355
4356         * support/regression/ports/pic16/support.c: use gpsim usart module from
4357           libgpsim_modules library
4358
4359 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4360
4361         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
4362         IP0H to IPH0.
4363
4364 2006-06-19 Raphael Neider <rneider AT web.de>
4365
4366         * src/pic/glue.h,src/pic16/glue.h: added prototypes
4367         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
4368           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
4369           (pic14printExterns,pic14printPublics,pic16printPublics,
4370           pic16_printExterns): use new functions to emit symbols
4371           (picglue,pic16glue): emit publics before emitting externs
4372         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
4373           locally defined functions to avoid bug #1443651
4374         * support/regression/tests/bug-716242.c: removed pic16 workaround
4375         * support/regression/ports/pic16/spec.mk: ignore errors during build
4376
4377 2006-06-19 Raphael Neider <rneider AT web.de>
4378
4379         * src/pic/glue.h: added pic14aopLiteral prototype
4380         * src/pic/glue.c (pic14aopLiteral): return unsigned int
4381         * src/pic/gen.c: removed stdint.h dependency
4382           (aopGet): use Safe_strdup()
4383           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
4384           (genDataPointerSet): use pic14aopLiteral()
4385         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
4386           for pic16; thanks to Bernhard and Maarten
4387
4388 2006-06-18 Borut Razem <borut.razem AT siol.net>
4389
4390         * support/regression/tests/structflexarray.c: flexible array members
4391           not supported by gcc < 3
4392         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
4393           GUI tool by default
4394         * src/pic/gen.c: don't include [p]strdin.h on solaris
4395         * support/Util/pstdint.h: addad svn attributes
4396         * support/regression/tests/constantRange.c,
4397           support/regression/tests/rotate.c: include inttypes.h instead
4398           stdint.h on solaris, addad svn attributes
4399
4400 2006-06-18 Raphael Neider <rneider AT web.de>
4401
4402         * src/SDCCsymt.c (initCSupport): change return type of divschar to
4403           int for PIC16
4404         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
4405           (pic16_genMinusBits): simplified sign-extension
4406           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
4407             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
4408             adjusted to correctly handle mixed-signed operands, disabled
4409             now unused multiplciation routines
4410         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
4411           (assignResultValue): added argument denoting the size of the result
4412             as returned by the function (fixes upcasts in assigning from
4413             function calls: char foo(); int i = foo();)
4414           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
4415             function result to assignResultValue
4416           (genMult): disabled inlined multiplication code
4417           (genDiv): augmented to also handle the modulus operator, fixed to
4418             handle mixed-signed operands correctly
4419           (genMod): simply call genDiv, disabled unused code
4420           (genAssign): fixed missing (sign-)extension on result
4421         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
4422             valid char operands, allow signed operands for native code, added
4423             division and modulo operator handling
4424         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
4425
4426         As a consequence, onebyte.c (if split into two files) and muldiv.c
4427         pass regression tests.
4428
4429 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4430
4431         * doc/Makefile.in: two runs of makeindex seem needed to get
4432         correct page references in the index of sdccman.pdf
4433         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
4434
4435 2006-06-17 Borut Razem <borut.razem AT siol.net>
4436
4437         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
4438
4439 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4440
4441         * doc/sdccman.lyx: updated, added (porting source code, debugging),
4442         mentioned ec2drv and paulmon
4443
4444 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
4445
4446         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
4447           consecutive abs areas
4448           (find_empty_space, allocate_space): added map to handle codemap or
4449            xdatamap,
4450           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
4451            absolute idata and xdata
4452         * as/mcs51/lkmem.c (summary2): updated legend
4453
4454 2006-06-16 Raphael Neider <rneider AT web.de>
4455
4456         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
4457
4458 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
4459
4460         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
4461           1208515
4462         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
4463
4464 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
4465
4466         * src/port.h (struct PORT): added field gp_tags, to hold the tag
4467         value of generic pointers,
4468         * src/avr/main.c,
4469           src/ds390/main.c,
4470           src/hc08/main.c,
4471           src/izt/i186.c,
4472           src/izt/tlcs900h.c,
4473           src/mcs51/main.c,
4474           src/pic/main.c,
4475           src/pic16/main.c,
4476           src/xa51/main.c,
4477           src/z80/main.c: PORT structure, added elements for gp_tags field,
4478         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
4479         fields in the PORT structure of each port,
4480         * src/SDCCast.c (decorateType): allow processing of generic pointers
4481         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
4482         S_FIXED symbols
4483
4484 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
4485
4486         * link/z80/lkgb.c,
4487         * link/z80/lkgg.c,
4488         * src/pic16/gen.c,
4489         * src/pic16/main.c,
4490         * src/pic16/pcode.c,
4491         * src/pic/main.c,
4492         * src/pic/pcoderegs.c,
4493         * src/SDCCicode.c,
4494         * src/SDCCmain.c,
4495         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
4496           bug 1504689 on minGW
4497
4498 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4499
4500         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
4501
4502 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
4503
4504         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
4505
4506 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
4507
4508         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
4509           for optimization
4510
4511 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
4512
4513         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
4514         to a char variable. Fixed bug #1504211
4515         * device/include/pic16/adc.h,
4516         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
4517         and fixed bug #1364390
4518
4519 2006-06-10 Borut Razem <borut.razem AT siol.net>
4520
4521         * CVSROOT: removed the CVS left-over
4522
4523 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
4524
4525         * as/hc08/asmain.c (asexit),
4526         * as/hc08/lkmain.c (lkexit),
4527         * as/mcs51/asmain.c (asexit),
4528         * as/mcs51/lkmain.c (lkexit),
4529         * src/SDCCglue.c (DEFSETFUNC),
4530         * src/SDCCmain.c (linkEdit, assemble),
4531         * support/librarian/sdcclib.c (AddRel),
4532           replaced unlink() by standard C remove()
4533         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
4534         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
4535           gatherImplicitVariables): new, added to fix bug 608752,
4536           (createFunction): added gatherImplicitVariables()
4537         * src/SDCCast.h: added createRMW prototype
4538         * src/SDCCsymt.h (struct symbol): added infertype
4539         * support/regression/tests/bug608752.c: new, added
4540
4541 2006-06-10 Raphael Neider <rneider AT web.de>
4542
4543         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
4544           multibyte dummy reads (fixes #1503234)
4545
4546 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
4547
4548         * device/include/mcs51/compiler.h: new, added header file to enable
4549           creating common sfr definition header files for different compilers
4550
4551 2006-06-05 Raphael Neider <rneider AT web.de>
4552
4553         * src/pic16/{pcode.h,genarith.c}:
4554           introduced pCodeOp combining any two pCodeOps (previously only
4555           two register operands could be combined), removed pcop2 from
4556           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
4557         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
4558         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
4559           rewritten to use new PO_TWO_OPS
4560         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
4561         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
4562           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
4563           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
4564           (pic16_get_op): embraced return arg to allow #define return(x),
4565             added new case for combined opcodes
4566           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
4567           (pic16_pCode2str,pic16_getRegFrompCodeOp,
4568            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
4569
4570 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
4571
4572         * src/SDCCval.c (checkConstantRange): added
4573         * src/SDCCval.h: added checkConstantRange
4574         * support/Util/SDCCerr.c,
4575         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
4576         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
4577         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
4578         * src/SDCCast.c (decorateType): added checkConstantRange,
4579         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
4580         can be emitted with the correct always true/false warning,
4581         added optimization for double '!';
4582         result of decorateType() must be assigned back to the tree, because
4583         decorateType() can change the tree
4584         * src/SDCCicode.c (geniCodeLogic),
4585         (geniCodeAssign): replaced new checkConstantRange, added warnings,
4586         (checkConstantRange): removed, it was only a fragment which never
4587         emitted a warning
4588         * src/SDCCsymt.c (computeType): fixed promotion for
4589         "-1 < (unsigned bit) b"
4590         * src/pic/ralloc.c (packRegsForAssign),
4591         * src/pic16/ralloc.c (packRegsForAssign),
4592         * src/hc08/ralloc.c (packRegsForAssign),
4593         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
4594         from mcs51
4595         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
4596         * support/regression/tests/constantRange.c: added
4597         * support/valdiag/tests/constantRange.c: added
4598         * support/valdiag/valdiag.py: added -DPORT_HOST=1
4599
4600 2006-06-02 Borut Razem <borut.razem AT siol.net>
4601
4602         * support/regression/ports/pic16/support.c: increase stack size
4603           to 255 bytes
4604         * support/regression/Makefile.in: sort tests by name so that the
4605           resutlts can be compared on different machines / platforms
4606
4607 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
4608
4609         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
4610         * src/ds390/gen.c (emitLabel): new, added,
4611           (genDjnz): fixed stack overflow bug,
4612           (throughout): cosmetic changes to sync with mcs51/gen.c,
4613           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
4614         * src/mcs51/gen.c (genEndFunction): small optimization,
4615           (throughout): cosmetic changes to sync with ds390/gen.c
4616
4617 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
4618
4619         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
4620           (_print_format): fixed printing pointers
4621         * src/mcs51/gen.c (emitLabel, movb): new, added,
4622           (genAssign): small optimization,
4623           (genDjnz): fixed stack overflow bug,
4624           (throughout): replaced sprintf with SNPRINTF,
4625           replaced mcs51_regWithIdx with REG_WITH_INDEX,
4626           replaced emitcode("mov", "b,...") with MOVB(...),
4627           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
4628           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
4629         * src/mcs51/peeph.def: added rules 140 and 264
4630         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
4631           so they may get optimized into registers
4632
4633 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
4634
4635         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
4636           immediately when encountered,
4637           (printUsage): always use stderr even on windows
4638
4639 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
4640
4641         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
4642         (processParms): fixed bug #1247551
4643         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
4644         parseCmdLine, main): print '--version' to stdout,
4645         print 'help' to stdout if --help is given,
4646         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
4647         arguments are given; fixed --help
4648
4649 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
4650
4651         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
4652         * support/regression/tests/bug-1493710.c: added
4653
4654 2006-05-27 Borut Razem <borut.razem AT siol.net>
4655
4656         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
4657           static instead auto
4658         * support/regression/ports/pic16/support.c: increase stack size
4659           from default 64 bytes to 128 bytes
4660         * support/regression/tests/staticinit.c,
4661           support/regression/tests/float.c: regression tests fully enabled
4662           for pic16 port by putting the initialized data arrays into the code
4663           section
4664         * support/regression/ports/pic16/spec.mk: don't link default libraries.
4665           This was changed by mistake in the previous version.
4666
4667 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
4668
4669         * src/pic16/gen.c (genFunction, genEndFunction): some
4670         beautifications, fixed bug with falsely restoring FSR2 in large
4671         stack model, thanks to Beau E. Cox for reporting the bug
4672
4673 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
4674
4675         * debugger/mcs51/break.c,
4676         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
4677           use %p to print pointers, made address variables unsigned
4678         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
4679         * debugger/mcs51/symtab.c (parseSymbol): must return something
4680         * src/mcs51/gen.c (aopForSym): small optimization,
4681            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
4682           (freeAsmop): added missing break,
4683           (aopPut): removed parameter bvolatile, determine it inside the function,
4684           (saveRegisters, unsaveRegisters): small optimization,
4685           (genIpush): removed pointless check,
4686           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
4687           replaced sprintf with SNPRINTF,
4688           replaced strcpy with strncpyz,
4689           updated aopPut calls,
4690           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
4691         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
4692
4693 2006-05-24 Borut Razem <borut.razem AT siol.net>
4694
4695         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
4696           modification of test for the pic16 port, put the array to the code
4697           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
4698
4699 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4700
4701         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
4702         * support/Util/pstdint.h: added
4703
4704 2006-05-22 Borut Razem <borut.razem AT siol.net>
4705
4706         * src/regression/Makefile: removed bool2.c test, added -q linker option
4707         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
4708           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
4709           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
4710           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
4711           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
4712           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
4713           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
4714           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
4715           define SUPPORT_BIT_TYPES 0, removed unused bit variables
4716
4717 2006-05-22 Raphael Neider <rneider AT web.de>
4718
4719         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
4720           bug #1492360 (problematic due to generic pointers, see code)
4721
4722 2006-05-22 Borut Razem <borut.razem AT siol.net>
4723
4724         * support/regression/ports/pic16/specs.mk: removed stack size linker
4725           directive
4726         * support/regression/tests/array.c,
4727           support/regression/tests/bitopcse.c,
4728           support/regression/tests/bug-908454.c,
4729           support/regression/tests/malloc.c: modified for pic16 regression test
4730         * support/regression/tests/bitfields.c:
4731           pic16 - excluded bitfileds of size > 8
4732         * support/regression/tests/bp.c: pic16 - reduced data size
4733         * support/regression/tests/bug-221100.c: pic16 - reduced data size
4734         * support/regression/tests/bug-460010.c:
4735           pic16 - used the absolute address the fits in memory
4736         * support/regression/tests/bug-716242.c:
4737           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
4738         * support/regression/tests/float.c:
4739           pic16 - excluded - data size too big
4740         * support/regression/tests/onebyte.c:
4741           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
4742         * support/regression/tests/shifts.c:
4743           pic16 - function names probably have to differ in first X characters
4744           (gpasm limitation?)
4745         * support/regression/tests/staticinit.c:
4746           pic16 - excluded some tests due error: no target memory available for
4747           section ".idata"
4748
4749 2006-05-22 Borut Razem <borut.razem AT siol.net>
4750
4751         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
4752           second try. Thanks Stas Sergeev once more.
4753
4754 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
4755
4756         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
4757           (genLeftShift, genRightShift): fixed bug 1491627
4758         * src/hc08/peeph.def (rules 7, 8.x): added
4759         * support/regression/tests/shifts.c (ShiftLeftByParam,
4760           ShiftRightByParam, testShiftByParam): added to test variable shifting
4761
4762 2006-05-20 Raphael Neider <rneider AT web.de>
4763
4764         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
4765         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
4766           (allocReg): add only new registers to dynAllocRegs,
4767           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
4768             #1489055, #1445850, and probably #1483693
4769
4770 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
4771
4772         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
4773         bug in for-loop that didn't emit the last of CONFIG and ID registers
4774
4775 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
4776
4777         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
4778           with offset
4779         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
4780           1489016, 1434401 and 1490124
4781         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
4782           1489016, 1434401 and 1490124
4783
4784 2006-05-17 Borut Razem <borut.razem AT siol.net>
4785
4786         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
4787           thanks Stas Sergeev
4788
4789 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
4790
4791         * device/include/mcs51/P89c51RD2.h,
4792         * device/include/mcs51/P89LPC901.h,
4793         * device/include/mcs51/P89LPC922.h,
4794         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
4795
4796 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
4797
4798         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
4799         to fix missing stack pragma in compiled binary object file,
4800
4801 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
4802
4803         * support/packihx/configure.in,
4804         * support/packihx/configure: removed warning, autoconf >= 2.5x can
4805         determine sizeof basic types even while cross compiling
4806
4807 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
4808
4809         * src/avr/gen.c (aopop),
4810         * src/ds390/gen.c (aopOp),
4811         * src/hc08/gen.c (aopOp),
4812         * src/mcs51/gen.c (aopop),
4813         * src/pic16/gen.c (pic16_aopOp),
4814         * src/pic/gen.c (aopOp),
4815         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
4816         if size of operand is smaller than spill location
4817
4818 2006-05-12 Borut Razem <borut.razem AT siol.net>
4819
4820         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
4821           have to have CR/LF line endings even if they are checked out on *nix
4822           or on WIN32 in cygwin binmode
4823
4824 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
4825
4826         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
4827         * device/include/ds80c390.h: added sfr16 definitions
4828         * src/ds390/gen.c,
4829         * src/ds390/gen.h,
4830         * src/ds390/main.c,
4831         * src/ds390/ralloc.c,
4832         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
4833           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
4834           bit returning functions
4835         * support/regression/tests/sfr16.c: enabled test on ds390
4836
4837 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4838
4839         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
4840         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
4841
4842 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
4843
4844         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
4845         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
4846           (cl_address_space constructor): removed expensive initialization,
4847           (cl_address_space::get_cell): extended for late initialization,
4848           (cl_address_space::*): use late initialization,
4849           (cl_address_decoder::activate): removed expensive initialization,
4850           This reduced regression test running time by 25%
4851
4852 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
4853
4854         * packihx/,
4855         * configure.in,
4856         * configure,
4857         * sdcc.dsw,
4858         * Makefile.bcc,
4859         * Makefile.in,
4860         * support/packihx/Makefile.in,
4861         * support/packihx/clean.mk,
4862         * support/packihx/Makefile.bcc,
4863         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
4864
4865 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4866
4867         * src/SDCCval.c (valNot): fix for regression test failure
4868           of not.c on big endian hosts
4869
4870 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
4871
4872         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
4873
4874 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4875
4876         * device/lib/mcs51/Makefile.in: changed string comparison operator
4877           to = for POSIX compliance; == is bash extension
4878
4879 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
4880
4881         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
4882           kosmonaut_pirx
4883
4884 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
4885
4886         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
4887         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
4888         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
4889         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
4890         bug report #1478657,
4891
4892 2006-05-05 Borut Razem <borut.razem AT siol.net>
4893
4894         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
4895           making the html
4896
4897 2006-05-02 Borut Razem <borut.razem AT siol.net>
4898
4899         * doc/Makefile.in: removed *.ind dependency since there is no rule to
4900           create *.ind, which made make to fail if invoked with -j 2
4901
4902 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
4903
4904         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
4905           Hubert Sack for patch 1479782
4906
4907 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
4908
4909         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
4910
4911 2006-05-01 Raphael Neider <rneider AT web.de>
4912
4913         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
4914           (create_pic): store only prefix-free device name,
4915           (init_pic): check for device names with "16" prefix,
4916           (list_valid_pics),
4917         * src/pic/device.h (struct PIC_device),
4918         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
4919             stored device name,
4920         * device/include/pic/pic12f{635,675,629,683}.h,
4921         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
4922         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
4923         * device/include/pic/pic16f505.h,
4924         * device/lib/pic/libdev/pic16f505.c: removed
4925         * device/include/pic/pic14devices.txt: added support for pic12f
4926             devices, removed unsupported non 16-bit devices
4927             [above changes provided by patch from Zik Saleeba]
4928         * src/pic/*, src/pic16/*, device/include/pic16/*,
4929           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
4930
4931 2006-05-01 Borut Razem <borut.razem AT siol.net>
4932
4933         * configure.in, configure, doc/Makefile.in:
4934           sync with nightly build makefile - latex, dvipdf and dvips
4935           not needed any more
4936
4937 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
4938
4939         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
4940         in the library source
4941
4942 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
4943
4944         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
4945
4946 2006-04-28 Raphael Neider <rneider AT web.de>
4947
4948         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
4949         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
4950           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
4951         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
4952
4953 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
4954
4955         * device/lib/pic/libdev/Makefile.in,
4956         * device/lib/hc08/Makefile.in,
4957         * device/lib/gbz80/Makefile.in,
4958         * device/lib/z80/Makefile.in,
4959         * device/lib/ds390/Makefile.in,
4960         * device/lib/ds400/Makefile.in: added srcdir to include search path,
4961         thanks to Borut for the bug report
4962         * configure.in,
4963         * configure: always create doc/Makefile independent from --enable-doc
4964         * Makefile.in: always install from directory doc independent from
4965         --enable-doc
4966         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
4967         removed
4968         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
4969         * doc/Makefile.in: install *.txt if present
4970         * device/include/Makefile.in (install): added installation of pic/*.inc
4971         and pic/*.txt files again, they were erroneously removed
4972
4973 2006-04-28 Raphael Neider <rneider AT web.de>
4974
4975         * src/pic/{gen.c,main.h,pcode.c},
4976         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
4977             concerning signedness with casts
4978
4979 2006-04-28 Raphael Neider <rneider AT web.de>
4980
4981         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
4982             definition of an interrupt handler,
4983         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
4984             interrupt handler stuff from picglue() to separate routine,
4985           (picglue): enabled definition of intr handlers in files w/o main()
4986
4987 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
4988
4989         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
4990           compilation with MSVC 2005 Express Edition (VC8)
4991
4992 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
4993
4994         * device/lib/Makefile: fixed build of gbz80 lib
4995
4996 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
4997
4998         * support/regression/tests/bug-460010.c,
4999         * support/regression/tests/bug-524691.c,
5000         * support/regression/tests/bug-716242.c: removed conditional defines
5001           that are already in testfwk.h
5002
5003 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
5004
5005         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
5006           (AccAXRsh1): added, shift right by 1,
5007           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
5008            AccAXLrl1
5009         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
5010
5011 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
5012
5013         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
5014         remove cast to same type
5015         * src/SDCCast.c (decorateType): fix for RFE 1475742,
5016         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
5017         * as/z80/Makefile,
5018         * link/z80/Makefile: removed, they have moved to
5019         Makefile.in files
5020         * configure,
5021         * configure.in: replaced duplicate message about ucsim by missing sdcpp
5022         * install-sh: fix bug #1204398 by setting umask 0022
5023         * device/lib/Makefile: separate build of z80 and gbz80 lib
5024
5025 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
5026
5027         Enabled VPATH feature: changed nearly all Makefiles (149 files).
5028         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
5029
5030         One basic decision: e.g. src/clean.mk includes further files. In order
5031         to make this work there are two solutions:
5032         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
5033           run configure on them. This way they can use
5034           'include $(srcdir)/port-clean.mk'
5035         - always include clean.mk by the Makefile at the same level. To avoid
5036           that `make clean` tries to include and build Makefile.dep the
5037           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
5038           implemented, because now even `make uninstall` doesn't create
5039           Makefile.in. clean.mk could be eliminated by pasting it in
5040           Makefile.in.
5041
5042         * debugger/mcs51/Makefile.in: build own objects from library sources
5043         (SLIB, SDCC) in current directory
5044
5045         * configure, configure.in: renamed --disable-device-lib-build in
5046         --disable-device-lib; added --enable-doc, the required tools are
5047         searched by configure; added result message; the toolchain for the
5048         belonging ports are now only built, if the port is enabled.
5049
5050         * support/regression/*: all output is written in directory gen, because
5051         the fwk and ports directories don't livet in the build tree using vpath
5052
5053         * doc/sdccman.lyx: renamed --disable-device-lib-build to
5054         --disable-device-lib, added --enable-doc, added section VPATH
5055
5056         * sim/ucsim/configure.in,
5057         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
5058         z80 are enabled by default
5059
5060 2006-04-24 Raphael Neider <rneider AT web.de>
5061
5062         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
5063             to config word, "pic14_"-prefixed some extern functions
5064           (pic14_emitConfigWord): emit __config directive(s) if assignment to
5065             config word has been found
5066         * src/pic/device.h: added prototypes
5067         * src/pic/pcode.c: added "pic14_"-prefix where needed
5068         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
5069             fixup
5070         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
5071             words,
5072           (pic14emitRegularMap): ignore config words,
5073           (pic14createInterruptVect): moved generating __config directives away
5074           (picglue): have __config directives emitted
5075
5076 2006-04-24 Borut Razem <borut.razem AT siol.net>
5077
5078         * doc/Makefile: sync with nightly build makefile
5079
5080 2006-04-24 Raphael Neider <rneider AT web.de>
5081
5082         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
5083             registers that have not been assigned proper liveranges,
5084             fixes #1469504 and #1474602,
5085           (pCodeRegOptimizeRegUsage): fixed typo in comment
5086
5087 2006-04-24 Borut Razem <borut.razem AT siol.net>
5088
5089         * device/examples/main8051.c: deleted - it was removed from CVS
5090           24.mar.2000 and after that modified 18.feb.2001, so it reappered
5091           after the transition to Subversion
5092         * src/SDCCalloc.h: deleted - it was removed  from CVS
5093           3.feb.2001 and after that modified 18.feb.2001, so it reappered
5094           after the transition to Subversion
5095         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
5096           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
5097           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
5098           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
5099
5100 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
5101
5102         * as/asx8051.dsp: added mcs51/strcmpi.h
5103         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
5104         * as/hc08/aslink.h: updated lnksect prototype
5105         * as/hc08/asm.h,
5106         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
5107         * as/hc08/asmain.c,
5108         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
5109           (newdot): handle A_ABS
5110         * as/hc08/asout.c,
5111         * as/mcs51/asout.c (outarea): output address
5112         * as/hc08/lkaomf51.c,
5113         * as/mcs51/lkaomf51.c: disabled unused array UsageType
5114         * as/hc08/m08pst.c,
5115         * as/mcs51/i51pst.c,
5116         * as/z80/z80pst.c: "ABS" is not A_OVR
5117         * as/hc08/lkarea.c (newarea): read a_addr,
5118           (lnkarea): added codemap array, sort absolute areas to the front,
5119            combine all GSINITx/GSFINAL,
5120           (find_empty_space, allocate_space): new functions,
5121           (lnksect): return next address, handle absolute sections
5122         * as/mcs51/lkarea.c (newarea): read a_addr,
5123           lnksect2 prototype changed,
5124           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
5125           (find_empty_space, allocate_space): new, factored out of lnksect2,
5126           (lnksect2): return next address, handle absolute sections
5127         * as/hc08/lkhead.c,
5128         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
5129         * as/hc08/lklibr.c (addfile, fndsym),
5130         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
5131           index out of range and detect both '\' and '/'
5132         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
5133         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
5134           regression tests (ds390 cannot return bool yet)
5135         * doc/sdccman.lyx: changed version number, document changed --no-peep,
5136           document critical interrupts on z80, document changed SDCC define
5137         * src/asm.c (_asxxxx_mapping): fixed .org directive,
5138           (_a390_mapping): added .org directive
5139         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
5140           (genMultOneByte): fixed warnings
5141         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
5142           ones
5143         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
5144         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
5145           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
5146         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
5147         * src/pic16/main.c: removed newReg prototype
5148         * src/pic16/pcode.c,
5149         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
5150           warnings
5151         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
5152           ones
5153         * src/pic16/ralloc.c
5154         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
5155           to fix warnings
5156         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
5157           from short to PIC_OPTYPE
5158         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
5159         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
5160           optype from short to PIC_OPTYPE
5161         * src/port.h: made int_size unsigned to fix warnings
5162         * src/SDCC.y: fixed warning on MSVC
5163         * src/SDCCicode.c (getArraySizePtr): return unsigned int
5164         * src/SDCCopt.c (convertToFcall): fixed warnings
5165         * src/SDCCsymt.h: removed double prototype for genSymName
5166         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
5167           offset int to fix warnings
5168
5169 2006-04-22 Borut Razem <borut.razem AT siol.net>
5170
5171         * doc/sdccman.lyx, */Makefile, */Makefile.in:
5172           references to CVS replaced with Subversion
5173
5174 2006-04-21 Borut Razem <borut.razem AT siol.net>
5175
5176         * doc/sdccman.lyx, */Makefile, */Makefile.in:
5177           references to CVS replaced with Subversion
5178
5179 2006-04-19 Borut Razem <borut.razem AT siol.net>
5180
5181         * src/version.awk: adapted for svn
5182         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
5183           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
5184           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
5185           /binutils-avr/etc/*.vi, *.jin: removed all properties
5186           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
5187
5188 2006-04-19 Borut Razem <borut.razem AT siol.net>
5189
5190         * CVS to Subversion migration completed
5191
5192 2006-04-18 Borut Razem <borut.razem AT siol.net>
5193
5194         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
5195           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
5196
5197 2006-04-17 Borut Razem <borut.razem AT siol.net>
5198
5199         * device/include/Makefile.in: added pic/*.inc to the installation
5200
5201 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
5202
5203         * support/regression/collate-results.py: fixed output in case of
5204         a valdiag error
5205         * support/regression/generate-cases.py: fixed splitting of pathnames
5206         with dots
5207         * as/hc08/lklibr.c (addfile),
5208         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
5209
5210 2006-04-11 Raphael Neider <rneider AT web.de>
5211
5212         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
5213         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
5214         * src/pic16/pcode.c (assignValnums): fixed #1460578
5215
5216 2006-04-11 Raphael Neider <rneider AT web.de>
5217
5218         * device/lib/pic/libdev/*.c,
5219         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
5220           fixes #1468739, enables compilation in --std-c99 mode
5221         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
5222
5223 2006-04-11 Raphael Neider <rneider AT web.de>
5224
5225         * src/pic/device.c (find_device): removed debug output
5226           (list_valid_pics): enabled verbose listing of supported devices
5227         * device/include/stdbool.h: define bool as char for pic14/16 as well
5228
5229 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5230
5231         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
5232
5233 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
5234
5235         * .version: bumped version to 2.5.6
5236         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
5237
5238 2006-04-06 Raphael Neider <rneider AT web.de>
5239
5240         * .version: bumped version to 2.5.6 (pic14 ABI changed)
5241         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
5242         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
5243           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
5244             pic14_constructAbsMap
5245           (pic14printPublics): declare absolute global symbols as global
5246           (pic14createInterruptVect),
5247         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
5248           (newReg): assume new registers unused, use correct name in
5249             hashtable (reg->name instead of name), more debugLog output
5250         * src/pic/device.h (PIC_device): added fields for verbose output
5251         * src/pic/device.c: moved device definition to pic14devices.txt,
5252             added routines for runtime parsing of pic14devices.txt,
5253             added support for second config word
5254         * src/pic/main.c (_process_pragma): removed #pragma maxram,
5255           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
5256           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
5257           (_pic14_parseOptions): moved pCodeInitRegisters here
5258           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
5259         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
5260           (pCodeInitRegisters): rewrapped comments, perpared new approach to
5261             handling the pseudo stack
5262         * device/lib/Makefile.in: ignore failures in objects-pic16,
5263         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
5264         * device/lib/pic/NEWS: document new dependency on picXXX.lib
5265         * device/lib/pic/Makefile.subdir,
5266         * device/lib/pic16/Makefile.subdir: improved clean rules
5267         * device/lib/pic/libdev/: NEW, pic14 device libraries
5268         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
5269         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
5270         * device/include/Makefile.in: create subdir and install pic14 headers
5271         * device/include/pic/p16f_common.inc: removed unused declarations
5272         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
5273             PICs from inc2h.pl v1.6,
5274             replaced BIT_AT macros with struct declarations
5275         * device/include/pic/pic14devices.txt: definition of supported devices,
5276             all above improvements contributed by Zik Saleeba, thanks
5277         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
5278         * support/scripts/sdcc.nsi: also install pic14 device libraries and
5279             headers
5280
5281 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
5282
5283         * device/include/mcs51/c8051f410.h: added interrupt numbers,
5284         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
5285           thanks to Charles Olds
5286
5287 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5288
5289         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
5290
5291 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
5292
5293         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
5294         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
5295         * support/regression/bug1464657.c: added, new test
5296
5297 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5298
5299         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
5300           version number
5301
5302 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5303
5304         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
5305           --no-peep and --peep-file <file> are used don't use default rules but
5306           do use the <file>
5307
5308 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5309
5310         * src/mcs51/gen.c (genCall): fixed bug 1457608
5311
5312 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5313
5314         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
5315         changes seem to cause (trigger?) problems with the build system.
5316
5317 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
5318
5319         * src/SDCCpeeph.c (operandsLiteral): new, added,
5320           (callFuncByName): inserted operandsLiteral
5321         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
5322
5323 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5324
5325         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
5326         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
5327
5328 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
5329
5330         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
5331           implemented patch 1120823 Thanks to Willy De la Court (normal
5332           interrupts need an interrupt number now if they are made critical),
5333           and enabled nesting of critical functions though not for gbz80
5334           (genCritical, genEndCritical): added functions
5335           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
5336         * src/z80/mappings.i: added "ei" to all mappings
5337
5338 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5339
5340         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
5341         submitted by the Debian SDCC maintainer Aurelien Jarno:
5342         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
5343         archive with gcc 4.1 on mips and wrote the patch"
5344
5345 2006-03-16 Raphael Neider <rneider AT web.de>
5346
5347         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
5348           the left operand is shorter than the result (c* = lit-c* + int),
5349           fixes bug #1450796
5350         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
5351           OP_SYMBOL
5352
5353 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
5354
5355         * src/.version: increased version number to 2.5.5
5356         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
5357         linking is done manually in pic16 port's _linkEdit,
5358         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
5359         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
5360         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
5361         allocate asmop as AOP_ACC,
5362         (aopForRemat): added parameter 'bool result' in function declaration,
5363         (pic16_aopGet): return AOP_ACC when accessing WREG,
5364         (pic16_popGetTempReg): minor modification,
5365         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
5366         'pic16_allocWithIdx',
5367         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
5368         calling function in absolute addresses,
5369         (genAssign): take into account AOP_ACC asmop,
5370         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
5371         * src/pic16/pcoderegs.c: some debug functions and lines added,
5372         * src/pic16/ralloc.c (decodeRegType): added but commented out,
5373         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
5374         register too,
5375         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
5376         call to allocReg, not by manually allocating a new one,
5377         (pic16_assignRegisters): now before going through the register
5378         allocating functions mark all registers as free. This eliminates some
5379         side effects resulting from peephole parser done earlier in the backbone
5380
5381 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
5382
5383         * src/SDCCicode.c (geniCodeLogic),
5384         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
5385
5386 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
5387
5388         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
5389           (genSend): bugfix, do not allocate and free twice,
5390           (shiftRLong): handle partially overlapping aops
5391         * support/regression/tests/bitopcse.c: fixed warning redefined idata
5392
5393 2006-03-08 Borut Razem <borut.razem AT siol.net>
5394
5395         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
5396           for pic16
5397
5398 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
5399
5400         * support/regression/tests/bug1409955.c: new, added
5401         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
5402         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
5403           (aopForSym, aopOp): increment asmop.allocated if reused,
5404           (freeAsmop): decrement asmop.allocated and check for zero instead of
5405           using asmop.freed,
5406           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
5407           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
5408            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
5409            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
5410            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
5411            genSignedRightShift, genRightShift, genDataPointerGet,
5412            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
5413            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
5414             in reverse order from allocation,
5415           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
5416             added swappedLR to keep track
5417         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
5418           pdata & code for GCC, z80, gbz80 & hc08
5419         * support/regression/tests/zeropad.c: moved defines to testfwk.h
5420
5421 2006-03-08 Raphael Neider <rneider AT web.de>
5422
5423         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
5424
5425 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
5426
5427         * device/include/mcs51/c8051f410.h: new SiLabs mcu
5428         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
5429         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
5430
5431 2006-03-06 Borut Razem <borut.razem AT siol.net>
5432
5433         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
5434           made the linker quiet
5435
5436 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
5437
5438         * src/pic16/gen.c (genPcall): fixed bug #1443644
5439         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
5440         which dumps before the function entry point a data byte which represents
5441         the number of the local variables used by the specified function, added
5442         'xinst' for initial support for Extended Instruction Support,
5443         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
5444         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
5445         port->fun_prefix anymore (may change later),
5446         (genFunction, genEndFunction): do not store/restore local registers for
5447         _main (this should take care the --main-return command line option in
5448         the future),
5449         (genOr): removed some legacy pic-port instructions,
5450         * src/pic16/genarith.c (genAddLit): re-enabled old code because
5451         performing operations with SFR's causes data to be written more than
5452         once to each SFR. Perhaps SFRs should be handled in special cases...
5453         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
5454         pcode.h
5455         * src/pic16/main.c (_process_pragma): stack bound checking did not take
5456         into account for stack starting position,
5457         (struct OPTIONS pic16_optionsTable): added command line argument
5458         --extended or -y for Extended Instruction Support,
5459         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
5460         (deassignLRs): *** perhaps the most important change, old 'for' code
5461         (commented out for reference), didn't account for some registers which
5462         were left marked 'not free' after a pointer operation. The change
5463         reduces register usage a lot in some cases
5464
5465 2006-03-04 Borut Razem <borut.razem AT siol.net>
5466
5467         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
5468           _clean
5469         * support/regression/tests/bug-524697.c: decreased array size for
5470           mcs51 to fit into the internal RAM
5471         * support/regression/Makefile.in: a little bit more verbose
5472
5473 2006-03-03 Borut Razem <borut.razem AT siol.net>
5474
5475         * support/regression/fwk/lib/testfwk.c,
5476           support/regression/fwk/include/testfwk.h: introduced function
5477           _prints(), nonrecursive _printn(), call _initEmu() from main()
5478         * support/regression/ports/gbz80/support.asm,
5479           support/regression/ports/ucz80/support.asm,
5480           support/regression/ports/z80/support.asm,
5481           support/regression/ports/ds390/support.c,
5482           support/regression/ports/hc08/support.c,
5483           support/regression/ports/host/support.c,
5484           support/regression/ports/mcs51/support.c,
5485           support/regression/ports/xa51/support.c: added empty _initEmu()
5486           function
5487         * support/regression/ports/pic16/gpsim.cmd,
5488           support/regression/ports/pic16/spec.mk,
5489           support/regression/ports/pic16/support.c,
5490           support/regression/Makefile.in: added pic16 regression test
5491
5492 2006-03-01 Raphael Neider <rneider AT web.de>
5493
5494         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
5495           genConstPointerGet): use safe way of generating MOVFF to cover
5496             literals as well as registers, fixes bug #1440527
5497         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
5498             dereference
5499           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
5500             more correctly, fixes bug #1232186
5501           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
5502         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
5503             gplink guess the correct processor in more cases, applied patch
5504             from Till Riedel attached to and fixing bug #1436552
5505
5506 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5507
5508         * support/regression/tests/array.c: added, contains check for #1434401
5509         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
5510
5511 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
5512
5513         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
5514         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
5515         * device/include/mcs51/c8051f326.h,
5516         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
5517         * device/include/mcs51/c8051f000.h,
5518         * device/include/mcs51/c8051f018.h,
5519         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
5520           PCON_IDLE,PCON_STOP and added sfr16 definitions
5521
5522 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
5523
5524         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
5525           genGetWord): fixed bug 1409955
5526
5527 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
5528
5529         * device/include/hc08/mc68hc908gp32.h,
5530         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
5531
5532 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
5533
5534         * src/SDCCast.c (constExprValue): return NULL if not a value
5535         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
5536         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
5537         * support/regression/tests/bitfields.c: enabled signed bitfield for all
5538
5539 2006-02-13 Borut Razem <borut.razem AT siol.net>
5540
5541         * src/regression/ptrarg.c: added, fails due to bug #1430967
5542         * src/regression/Makefile: ptrarg.c added, ...
5543
5544 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
5545
5546         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
5547         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
5548
5549 2006-02-11 Borut Razem <borut.razem AT siol.net>
5550
5551         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
5552           print "Processor: xxx" message to stdout only if --verbose
5553
5554 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
5555
5556         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
5557         * support/regression/tests/bug1426356.c: added
5558         * support/regression/tests/bitfields.c: removed 2 tests
5559
5560 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
5561
5562         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
5563         * device/include/mcs51/c8051f330.h,
5564         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
5565           PCON_IDLE,PCON_STOP and added sfr16 definitions
5566         * device/lib/_divsint.c,
5567         * device/lib/_divuint.c,
5568         * device/lib/_divulong.c,
5569         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
5570           register bank bug for small stackauto
5571
5572 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
5573
5574         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
5575
5576 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
5577
5578         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
5579         * all.dsp: corrected several bin paths
5580         * device/include/mcs51/c8051f120.h,
5581         * device/include/mcs51/c8051f300.h,
5582         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
5583           to PCON_IDLE,PCON_STOP
5584         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
5585         * device/lib/printf_large.c (output_float): fixed bug 1388703
5586         * support/regression/tests/bug1057979.c: added test for bug 1388703
5587
5588 2006-02-08 Raphael Neider <rneider AT web.de>
5589
5590         * src/pic/pcode.c (pciTRIS): fixed typo,
5591           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
5592           (LinkFlow): fixed handling of flows that end in a call,
5593           (ReuseReg): perform safety check earlier
5594         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
5595             to work with flows at the beginning of a pBlock,
5596             fixes #1426557 (Symbol not previously defined),
5597           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
5598             usage information
5599           (RemoveUnusedRegisters): update register usage info
5600         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
5601             created, reuse existing ones instead
5602         * src/pic/gen.c (genPcall): fixed #1424719
5603
5604 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
5605
5606         * link/z80/lkmain.c,
5607         * link/z80/lklex.c,
5608         * link/z80/lkdata.c,
5609         * link/z80/aslink.h: fixed build on current cygwin:
5610         replaced getline() by lk_getline()
5611
5612 2006-02-01 Borut Razem <borut.razem AT siol.net>
5613
5614         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
5615           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
5616           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
5617           src/regression/bool1.c, src/regression/bool2.c,
5618           src/regression/bool3.c, src/regression/call1.c,
5619           src/regression/compare.c, src/regression/compare10.c,
5620           src/regression/compare2.c, src/regression/compare3.c,
5621           src/regression/compare4.c, src/regression/compare5.c,
5622           src/regression/compare6.c, src/regression/compare7.c,
5623           src/regression/compare8.c, src/regression/compare9.c,
5624           src/regression/configword.c, src/regression/for.c,
5625           src/regression/inline.c, src/regression/mult1.c,
5626           src/regression/nestfor.c, src/regression/or1.c,
5627           src/regression/pointer1.c, src/regression/ptrfunc.c,
5628           src/regression/rotate1.c, src/regression/rotate2.c,
5629           src/regression/rotate3.c, src/regression/rotate4.c,
5630           src/regression/rotate5.c, src/regression/rotate6.c,
5631           src/regression/rotate7.c, src/regression/string1.c,
5632           src/regression/struct1.c, src/regression/sub.c,
5633           src/regression/sub2.c, src/regression/switch1.c,
5634           src/regression/while.c, src/regression/xor.c,
5635           src/regression/create_stc, src/regression/simulate,
5636           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
5637           regression tests
5638         * src/regression/gpsim_assert.h: added
5639
5640 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
5641
5642         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
5643         ((void (code *) (void)) 0) ();
5644         * as/hc08/aslex.c,
5645         * as/hc08/aslink.h,
5646         * as/hc08/asm.h,
5647         * as/hc08/asmain.c,
5648         * as/hc08/lkdata.c,
5649         * as/hc08/lklex.c,
5650         * as/hc08/lkmain.c,
5651         * as/mcs51/aslex.c,
5652         * as/mcs51/aslink.h,
5653         * as/mcs51/asm.h,
5654         * as/mcs51/asmain.c,
5655         * as/mcs51/lkdata.c,
5656         * as/mcs51/lklex.c,
5657         * as/mcs51/lkmain.c,
5658         * as/z80/aslex.c,
5659         * as/z80/asm.h,
5660         * as/z80/asmain.c: fixed build on current cygwin:
5661         replaced getline() by as_getline()
5662
5663 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
5664
5665         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
5666         declarator in the symbol chain
5667         * src/SDCCsymt.h,
5668         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
5669         parameter list for function pointers
5670         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
5671         * support/regression/tests/bug-716242.c: added
5672
5673 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
5674
5675         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
5676         offset if possible
5677         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
5678
5679 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
5680
5681         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
5682         inifinitely recurseable, added static
5683         * support/regression/tests/bug-1408066.c: added
5684
5685 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
5686
5687         * src/SDCCicode.h,
5688         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
5689         renamed, added possibility to create "postLoopLbl"-labels
5690         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
5691         newiTempLoopHeaderLabel
5692         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
5693         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
5694         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
5695         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
5696         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
5697         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
5698         (basicInduction): fixed bug #136564, made static,
5699         (loopInduction): changed parameter of basicInduction, made static,
5700         (addPostLoopBlock): added
5701         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
5702         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
5703         findLoopEndSeq
5704         * support/regression/tests/bug-136564.c: added
5705         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
5706         --std-sdcc99 to LIBSDCCFLAGS
5707
5708 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
5709
5710         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
5711         while loop
5712         * support/regression/tests/bug-1406131.c: added
5713
5714 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
5715
5716         * src/SDCCast.c (decorateType): fix promotion of unary minus
5717         * src/SDCCsymt.c (computeType): beautified
5718         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
5719         (valUnaryPM, valComplement): fix sign and promotion,
5720         (valNot): ANSI: result type is int (SDCC: unsigned char)
5721         * support/regression/tests/uminus.c: speedup by removing superflous
5722         test case 'int'
5723         * support/regression/tests/onebyte.c: added promotion and signedness
5724         tests for unary minus
5725         * support/regressions/tests/bug-477927.c: disable warning about
5726         uninitialized variables
5727         * support/regression/tests/not.c: added
5728
5729 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
5730
5731         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
5732         * src/mcs51/gen.c (gen51Code): show final register usage after
5733         fillGaps in asm with --i-code-in-asm
5734         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
5735         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
5736         incUsed, rliveClear, adjustIChain): made static,
5737         (setFromRange): excluded because it's unused,
5738         (findPrevUseSym, markWholeLoop): added,
5739         (findPrevUse): rewritten; fixes bug 895992; now a complete search
5740         through all branches of predecessors enables sdcc to emit the warning
5741         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
5742         (rlivePoint): made static, added parameter emitWarnings which is only
5743         true during the first run out of two,
5744         (findRecursiveSucc, findRecursivePred): removed,
5745         (computeLiveRanges): made static, added parameter emitWarnings,
5746         (dumpIcRlive): added for debugging only
5747         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
5748         removed prototype of setFromRange()
5749         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
5750         in call of computeLiveRanges()
5751         * support/regression/tests/bug-895992.c: added
5752         * support/regression/tests/bug-971834.c: added
5753         * support/valdiag/tests/bug-895992.c: added
5754         * support/valdiag/tests/bug-971834.c: added
5755
5756 2005-12-18 Raphael Neider <rneider AT web.de>
5757
5758         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
5759           (genUnpackBits): improved code for direct operands,
5760           (genPackBits): improved code for literal assignment to bitfields
5761             and for direct destination operands (no FSR indirection),
5762             prevented redundant AND, fixes #1362800,
5763           (AccLsh): added parameter to disable masking of the result
5764         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
5765           skip instructions with side-effects (like incfsz),
5766           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
5767         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
5768         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
5769           fixes #1375263
5770
5771 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
5772
5773         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
5774         volatile variables as spill location
5775
5776 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
5777
5778         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
5779         replacing literals
5780         * support/regression/tests/bug-1376320.c: added
5781
5782 2005-12-08 Raphael Neider <rneider AT web.de>
5783
5784         * src/pic/device.c: renamed is_shared to pic14_is_shared
5785         * src/pic/gen.c (genIfx): re-enabled handling of sbits
5786         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
5787           (is_valid_identifier): added for above workaround
5788
5789 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
5790
5791         * device/lib/Makefile.in: fixed to enable port-specific-objects
5792         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
5793           char, thanks Hubert Sack
5794         * doc/sdccman.lyx: documented --xstack-loc,
5795           elaborated a bit more on interrupts and pitfalls,
5796           removed "setjmp/longjmp unsupported",
5797           documented some unsupported C99 features
5798         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
5799         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
5800           if, thanks Hubert Sack
5801         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
5802         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
5803           make make_library
5804         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
5805           regression tests can report resource usage (rfe 700441)
5806         * support/regression/collate-results.py: report resource usage
5807         * support/regression/ports/ds390/spec.mk,
5808         * support/regression/ports/hc08/spec.mk,
5809         * support/regression/ports/mcs51/spec.mk,
5810         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
5811         * support/regression/ports/ds390/uCsim.cmd,
5812         * support/regression/ports/hc08/uCsim.cmd,
5813         * support/regression/ports/mcs51/uCsim.cmd,
5814         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
5815         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
5816           library, use the default one
5817         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
5818           building the library
5819
5820 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
5821
5822         * config.dsp: added dependency on .version and configure_vc.awk
5823         * device/include/setjmp.h: updated for --stack-auto and --xstack
5824         * device/include/mcs51/at89c51snd1c.h: corrected line endings
5825         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
5826         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
5827         * device/lib/libsdcc.lib: added _setjmp
5828         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
5829           (decorateType): fixed bug 1372851,
5830           (optimizeGetHbit): fixed warning
5831         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
5832           array initialisation
5833         * support/regression/tests/bug1057979.c: added test for bug 1358192
5834         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
5835
5836 2005-12-03 Borut Razem <borut.razem AT siol.net>
5837
5838         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
5839           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
5840
5841 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
5842
5843         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
5844         createIval): implement symbol independant "flexible array member",
5845         (createIvalCharPtr): implemented flexible array initialisation with a
5846         string
5847         * src/SDCCsymt.c (copyStruct): removed,
5848         (getSize): fixed misleading comment,
5849         (getAllocSize): removed, the additional allocation size is now in
5850         sym->flexArrayLength,
5851         (checkStructFlexArray): new, syntax checks for flexible array members,
5852         (compStructSize): added syntax checks for "flexible array members"
5853         (copyStruct): removed,
5854         (copyLinkChain): removed inefficient fix for bug 770487
5855         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
5856         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
5857         symbol->flexArrayLength
5858         * src/SDCCerr.c,
5859         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
5860         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
5861         * support/regression/tests/structflexarray.c: added
5862         * support/valdiag/tests/structflexiblearray.c: added
5863
5864 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
5865
5866         * src/SDCCast.c (decorateType): fixed bug 1368489
5867         * support/Util/SDCCerr.c,
5868         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
5869
5870 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5871
5872         * device/include/mcs51/at89c51snd1c.h: added file submitted by
5873           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
5874
5875 2005-11-27 Borut Razem <borut.razem AT siol.net>
5876
5877         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
5878           support/cpp2/mkdeps.h: added command line option
5879           -obj-ext=<extension> to SDCPP to define object file externion, used
5880           for generation of make dependencies (-M)
5881         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
5882
5883 2005-11-26 Borut Razem <borut.razem AT siol.net>
5884
5885         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
5886           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
5887           added pic and pic16 libraries
5888
5889 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5890
5891         * device/include/float.h: Corrected typo in prototype of __fsgt
5892
5893 2005-11-25 Borut Razem <borut.razem AT siol.net>
5894
5895         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
5896           added creation of model-mcs51-stack-auto libraries
5897
5898 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
5899
5900         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
5901         and fields-list too
5902         * src/SDCCast.c (createIvalArray): removed obsolete comment
5903
5904 2005-11-24 Borut Razem <borut.razem AT siol.net>
5905
5906         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
5907           added missing device/lib/mcs51/crt*.asm sources
5908
5909 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
5910
5911         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
5912
5913 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
5914
5915         * device/lib/_fs2schar.c,
5916         * device/lib/_fs2sint.c,
5917         * device/lib/_fs2slong.c: optimized inline asm
5918
5919 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5920
5921         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
5922           Better handling of floats between -1.0 and 0.0.
5923
5924 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5925
5926         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
5927           (the missing "if"s prohibited removal of redundant labels)
5928
5929 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5930
5931         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
5932           Properly convert floats between -1.0 and 0.0 to long, int, and char
5933           types (max integer value of negative floats tends to zero).
5934         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
5935           Removed changes made so to work properly with floats between
5936           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
5937           and _fs2char.c
5938
5939 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
5940
5941         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
5942         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
5943         (genCast) cosmetic change
5944         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
5945         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
5946         from mcs51
5947         * support/regression/tests/bitfields (testSignedBitfields): added
5948
5949 2005-11-18 Borut Razem <borut.razem AT siol.net>
5950
5951         * sdcc/device/lib/Makefile.in: remove all unnecessary files
5952         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
5953           introduced SILENT option to make building of pic16 libraries less
5954
5955 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5956
5957         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
5958           Now they work properly with floats between -1.0 and 0.0
5959         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
5960
5961 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
5962
5963         * src/SDCCicode.c (printOperand): added missing else
5964
5965 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
5966
5967         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
5968         reformatted for better readability
5969         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
5970         signed bitfields
5971
5972 2005-11-17 Borut Razem <borut.razem AT siol.net>
5973
5974         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
5975           introduced SILENT option to make building of pic16 libraries less
5976           verbose - used for nightly snapshot build
5977         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
5978           available on Win32 platforms.
5979         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
5980           medium, large, pic and pic16
5981
5982 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5983
5984         * device/lib/printf_large.c: Temporary patch for bug 1358192:
5985           printf("%f"...) sets fraction to zero.
5986
5987 2005-11-16 Raphael Neider <rneider AT web.de>
5988
5989         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
5990           fixes #1357221
5991         * src/pic/gen.c (genIfx): implemented for CARRY bit
5992         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
5993           to generic pointers, fixes #1357332,
5994           (pic16_movLit2f): NEW,
5995           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
5996
5997 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
5998
5999         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
6000
6001 2005-11-11 Raphael Neider <rneider AT web.de>
6002
6003         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
6004         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
6005           compute pointer's type from operand,
6006           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
6007           improved single bit reads, fixes bug #1353379
6008
6009 2005-11-09 Borut Razem <borut.razem AT siol.net>
6010
6011         * support/scripts/sdcc.nsi: added lib/pic to the package
6012
6013 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
6014
6015         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
6016
6017 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
6018
6019         * support/regression/tests/bug1348008.c: added
6020         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
6021         * support/regression/tests/bug1337835.c: updated comment
6022
6023 2005-11-06 Borut Razem <borut.razem AT siol.net>
6024
6025         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
6026           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
6027           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
6028           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
6029           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
6030           dynamic construction of cl_error_class and derivates - 2.nd try
6031
6032 2005-11-05 Borut Razem <borut.razem AT siol.net>
6033
6034         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
6035           bug, which caused Bus Errors on sparc solaris
6036
6037 2005-11-04 Borut Razem <borut.razem AT siol.net>
6038
6039         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
6040           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
6041           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
6042           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
6043           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
6044           and derivates to resolve the initialization problem on OSX
6045
6046 2005-11-02 Borut Razem <borut.razem AT siol.net>
6047
6048         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
6049           corrected typo - #include <winsock2.h>
6050
6051 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
6052
6053         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
6054           (_asxxxx_mapping): added org directive for future enhancements
6055
6056 2005-11-01 Borut Razem <borut.razem AT siol.net>
6057
6058         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
6059           enabled sockets on WIN32
6060         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
6061
6062 2005-10-31 Borut Razem <borut.razem AT siol.net>
6063
6064         * support/regression/generate-cases.py: escape backslashes in {testcase}:
6065           WIN32 backslash path delimiters should be escaped when used in C strings
6066         * support/regression/tests/bitfields.c: exclude failing assertions for
6067           __CYGWIN32__ and __MINGW32__ hosts
6068
6069 2005-10-30 Borut Razem <borut.razem AT siol.net>
6070
6071         * src/SDCCutil.c: corrected double comparison typo
6072
6073 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
6074
6075         * device/lib/medium/Makefile: added for new memory model medium
6076         * device/include/asm/mcs51/features.h: updated for medium/pdata
6077         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
6078           added Multiply & Accumulate sbit's and MAC0_PAGE define
6079         * device/include/mcs51/c8051f300.h: added sfr16 definitions
6080         * device/include/mcs51/c8051f310.h: added sfr16 definitions
6081         * device/lib/_mullong.c: update for medium model
6082         * device/lib/incl.mk: added medium model
6083         * doc/sdccman.lyx: documented medium model
6084         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
6085         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
6086         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
6087         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
6088           (allocParms): set SCLS and OCLS to pdata for medium model
6089         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
6090           for pdata,
6091           (powof2): return <0 if not power of 2
6092         * src/avr/gen.c (genBitWise): use updated powof2
6093         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
6094           (shiftR2Left2Result): small optimization in setup, save acc when storing,
6095           (shiftLLeftOrResult): use B if necessary
6096         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
6097         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
6098         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
6099         * support/regression/Makefile.in: added test-mcs51-medium
6100         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
6101
6102 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
6103
6104         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
6105         specifier unsigned
6106         * device/lib/time.c (mktime): fixed bug 1334315
6107
6108 2005-10-28 Raphael Neider <rneider AT web.de>
6109
6110         * device/include/pic/p16f_common.inc: added common declarations
6111         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
6112
6113 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
6114
6115         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
6116           (aopPutUsesAcc): added to predict accumulator use,
6117           (assignResultValue): save acc if necessary,
6118           (genMinusDec): store result if indirectly addressed,
6119           (genDivOneByte):  save acc if necessary,
6120           (movLeft2Result): bugfix if left already in acc,
6121           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
6122             attention to accumulator use (esp. pdata),
6123           (genReceive): receive pdata correctly
6124         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
6125         * src/SDCCicode.h: added isOperandInPagedSpace prototype
6126
6127 2005-10-27 Raphael Neider <rneider AT web.de>
6128
6129         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
6130
6131 2005-10-27 Raphael Neider <rneider AT web.de>
6132
6133         * .version: changed version to 2.5.4
6134         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
6135         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
6136           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
6137             arithmetics support routines
6138         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
6139         * device/lib/Makefile.in: also create installdir for pic
6140
6141         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
6142           pic14 port as well
6143         * src/pic/device.c (dump_sfr): rewritten to delegate register
6144           placement to the linker (use `extern sym' rather than sym EQU addr),
6145           (validAddress): fixed to check last specified address
6146         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
6147           (popGetLit): truncate literal value to 8 bit,
6148           (popGet): moved assert to more appropriate place
6149           (popGetExternal): create pCode operand from and mark the according
6150             symbol as being `extern'
6151           (popGetAddr): added sanity check on immediate's offset, provide
6152             GPOINTER tag on demand
6153           (aopPut): fixed for immediates,
6154           (mov2w_op): move operand's address or contents to WREG (depending on
6155             operand type), safer variant of mov2w,
6156           (movwf,call_libraryfunc): NEW, handy abbreviations,
6157           (get_argument_pcop,get_return_val_pcop,pass_argument,
6158           get_returnvalue): interface for accessing function parameters and
6159             return values,
6160           (assignResultValuei,genRet): use new parameter/return value interface
6161           (pic14_getDataSize): back to old version handling generic pointers,
6162           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
6163             provided implementation and/or fixed old one,
6164           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
6165             calls, removed legacy 8051 reference code
6166           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
6167           (loadSignToC): NEW, move the operands sign bit to CARRY,
6168           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
6169             genRightShiftSigned, accepts negative shift counts,
6170           (setup_fsr): load FSR and adjust IRP (indirect memory access),
6171           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
6172             generic pointers, __data pointers and __code pointers,
6173           (genUnpackBits,genPackBits): rewritten to work with generic pointers
6174             and signed bitfields, limit bitfields to 8 bit,
6175           (genDataPointerGet): fixed number of bytes read,
6176           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
6177           (genPointerGet,genPointerSet): fixed handling of __code pointers,
6178             pointers to constant data are no longer assumed to point to __code
6179             space, removed invalid pointer types,
6180           (bitpatternFromVal): retrieve the PICs representation of an integer
6181             or float literal,
6182           (genDataPointerSet): fixed assigning to po_immediate operands,
6183           (genGenPointerSet): implemented as library call,
6184           (genIfx): fixed incorrect condition,
6185           (genAddrOf): limit generic pointers' addresses to 2 bytes,
6186             provide GPOINTER tag according to destination's storage class,
6187           (genCast): added code to handle casting to generic pointers, added
6188             sign-/zero extension of the result
6189           (aop_isLitLike,op_isLitLike): fixed handling of immediates
6190         * src/pic/gen.h: added macros to access IRP bit in STATUS register
6191         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
6192           extend the result
6193         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
6194           address/register resides in the shared banks
6195           (emitSymbolToFile): improved to handle global and `pinned' symbols,
6196             put all variables into separate sections (have the linker arrange
6197             them)
6198           (picglue): put init code and interrupt handlers in separate sections
6199         * src/pic/main.c: added port specific options table, modified to PORT
6200           structure to make GPOINTERs 3 byte, added pic14_options
6201           (_pic14_do_link): private linking routine (update paths to libraries,
6202             add libsdcc.lib by default)
6203         * src/pic/main.h: declare pic14_options
6204         * src/pic/pcode.c: fixed instructions i/o relations,
6205           (RegCond): reverted to correct version,
6206           (newpCodeOpLit): truncate literals to 8 bit,
6207           (genericPrint): added debug output,
6208           (getRegFromInstruction): fixed for various operand types, simplified
6209           (BuildFlow): fixed broken handling of isntructions with labels
6210           (LinkFlow): start at last instruction in flow (skip trailing comments),
6211             pass the flow on to the next instruction after CALL
6212           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
6213           (insertPCodeInstruction): fixed inserting after a skip instruction,
6214           (DoBankSelect): fixed for labeled instructions
6215           (OptimizepBlock): honor --nopeep switch
6216           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
6217         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
6218         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
6219           (pCodeOptime2pCodes): allow disabling this optimization via
6220             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
6221             but is still buggy), started implementation of a dataflow based
6222             pCode optimization (CSE + dead code elimination)
6223           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
6224         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
6225           names are independant of the stack location and therefore portable across
6226           devices
6227
6228 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
6229
6230         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
6231           (selectSpil): fixed bug 1337835 by not spilling bit variables
6232         * support/regression/tests/bug1337835.c: added test for this bug
6233         * src/mcs51/peeph.def: restart after rule 3.c,
6234           addded rules 263.x to optimize loading constants
6235
6236 2005-10-26 Raphael Neider <rneider AT web.de>
6237
6238         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
6239         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
6240           (genAssign): emit warning when casting literals to generic pointer
6241             type, also applies when taking the address of a fixed variable,
6242           (genCast): improved casting to generic pointers
6243         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
6244           extern variables, added verbose error message
6245         * device/include/pic16/{string.h,errno.h}: added #pragma library c
6246
6247 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
6248
6249         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
6250         carry must be complemented too
6251         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
6252         could be emitted by genMinus
6253         * src/SDCCval.c (constVal): fixed bug 1305065
6254
6255 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
6256
6257         * src/SDCCast.c (addCast): added promotion for bit variables
6258         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
6259         promotion casts + optimisation
6260         (optimizeGetWord): fix warning 'i' might be used uninitialized
6261         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
6262         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
6263
6264 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
6265
6266         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
6267         all chars are promoted to int; promotion should be handled in SDCCast.c
6268
6269 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6270
6271         * device/lib/_strcmp.c: Fixed bug 1326457
6272
6273 2005-10-11 Raphael Neider <rneider AT web.de>
6274
6275         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
6276         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
6277
6278 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
6279
6280         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
6281         * support/regression/tests/sfr16.c: added test for the sfr32 bug
6282
6283 2005-10-04 Raphael Neider <rneider AT web.de>
6284
6285         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
6286           device/lib/pic16/pics.all: added pic18f1320
6287         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
6288
6289 2005-09-30 Raphael Neider <rneider AT web.de>
6290
6291         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
6292         * src/pic16/devices.inc: NEW, provides device descriptions
6293         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
6294
6295 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
6296
6297         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
6298           GETHBIT
6299
6300 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
6301
6302         * doc/sdccman.lyx: updated Highest Order Bit documentation,
6303           documented Any Order Bit, Higher Order Byte and Higher Order Word
6304         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
6305         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
6306           (optimizeGetAbit): new, to get any bit, not only the high bit,
6307           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
6308           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
6309           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
6310           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
6311             RIGHT_OP: also try GETBYTE, GETWORD optimization,
6312             GETABIT, GETBYTE, GETWORD: decorate them,
6313           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
6314           (ast_print): added GETABIT, GETBYTE, GETWORD
6315         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
6316         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
6317           (geniCodeBinary): new generic binary icode,
6318           (ast2iCode): added GETABIT, GETBYTE, GETWORD
6319         * src/port.h: updated comment for PORT.hasExtBitOp
6320         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
6321           (genGetByte): new, to get a single byte,
6322           (genGetWord): new, to get a word from a long,
6323           (gen51Code): added GETABIT, GETBYTE, GETWORD
6324         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
6325
6326 2005-09-23 Raphael Neider <rneider AT web.de>
6327
6328         * configure.in, configure: have device/lib/pic configured
6329         * device/lib/Makefile.in: added model-pic14
6330         * device/lib/clean.mk: added pic/ to clean rule
6331         * device/lib/pic: added rudimentary pic14 library providing support
6332           functions for multiplication/division/generic pointer access
6333         * src/SDCCopt.c (convilong): mark support functions as extern
6334           for pic14 port as well
6335         * src/pic/gen.c (genMult): added assertions,
6336           (genpic14Code): emit warning on unhandled iCodes
6337         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
6338         * src/pic/pcode.c (pCodeOpCopy),
6339         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
6340           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
6341           SFR_REGISTER}), made safe for future extensions
6342         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
6343           instructions even if preceeded by SKIP instructions (also remove
6344           them); removed unused code
6345         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
6346           prevents leaving parts of the structure uninitialized after copying
6347
6348 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
6349
6350         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
6351           ago by me
6352         * support/regression/tests/addsub.c: added test for the bug
6353
6354 2005-09-21 Raphael Neider <rneider AT web.de>
6355
6356         * device/include/pic16/pic18f1220.h,
6357           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
6358         * device/lib/pic16/Makefile.rules: added missing opening paren
6359         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
6360           are provided in genutils.c,
6361           (genUminusFloat,genUminus,genCmpEq): added asserts on different
6362           operand/result sizes,
6363           (genCmp): assert on NULL pointers first, then check deref'ed values
6364         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
6365           result size
6366
6367 2005-09-18 Raphael Neider <rneider AT web.de>
6368
6369         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
6370           as these are now unused,
6371           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
6372         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
6373           local, avoids uninitialized pointer dereference on r->name
6374         * src/pic16/ralloc.c (newReg): fixed indentation
6375
6376 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
6377
6378         * src/SDCCval.c (constVal): fixed bug 730366
6379         * support/Util/SDCCerr.c,
6380         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
6381
6382 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
6383
6384         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
6385
6386 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
6387
6388         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
6389
6390 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
6391
6392         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
6393           (hex2dec): made hex_digit unsigned char, removed ascii dependance
6394         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
6395           (hex2dec): made hex_digit unsigned char, removed ascii dependance
6396         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
6397         * packihx/packihx.c (hexDigit): made c unsigned char
6398         * as/mcs51/lklibr.c (fndsym),
6399         * link/z80/lkgb.c (gb),
6400         * link/z80/lklibr.c (fndsym),
6401         * link/z80/lkrloc.c (relr),
6402         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
6403         * src/SDCC.lex (checkCurrFile, process_pragma),
6404         * src/SDCCglue.c (spacesToUnderscores),
6405         * src/SDCCmain.c (setParseWithComma, processFile),
6406         * src/asm.c (tvsprintf, printCLine),
6407         * src/avr/gen.c (emitcode, aopPut),
6408         * src/ds390/gen.c (emitcode),
6409         * src/hc08/gen.c (emitcode, emitinline),
6410         * src/mcs51/gen.c (emitcode, genInline),
6411         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
6412           tokenizeLineNode),
6413         * src/pic/ralloc.c (debugLog),
6414         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
6415           tokenizeLineNode),
6416         * src/pic16/ralloc.c (debugLog),
6417         * src/z80/main.c (_process_pragma):
6418            made all ctype.h function calls safe
6419         * src/SDCCopt.c: include math.h for fabs
6420         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
6421           and used them throughout the code to make ctype.h function calls safe
6422         * src/ds390/main.c (asmLineNodeFromLineNode),
6423         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
6424         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
6425            unsigned char*
6426         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
6427           (newpCodeAsmDir): made ctype.h function calls safe
6428         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
6429           pic16_emitcode):  made lbp unsigned char*
6430         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
6431           (pic16_newpCodeAsmDir): made ctype.h function calls safe
6432         * src/xa51/gen.c (emitcode),
6433         * src/z80/gen.c (_emit2): made lbp unsigned char*
6434         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
6435            char*
6436
6437 2005-09-05 Raphael Neider <rneider AT web.de>
6438
6439         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
6440           access bank splitpoint
6441
6442 2005-09-05 Raphael Neider <rneider AT web.de>
6443
6444         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
6445
6446 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
6447
6448         * .version: changed to version 2.5.3
6449         * doc/sdccman.lyx: changed version to 2.5.3,
6450           documented --codeseg and --constseg and pragma codeseg and constseg,
6451           documented bit parameters (reentrant) and bit returning
6452         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
6453            currFunc->recvSize, but is this ok for all ports?
6454           (ast2iCode): result of ~ on unsigned char must be cast to int for
6455            bool to work
6456         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
6457           function pointers in bit space
6458         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
6459           (processFuncArgs): call port.reg_parm() with reentrancy info
6460         * src/port.h,
6461         * src/avr/main.c,
6462         * src/ds390/main.c,
6463         * src/hc08/main.c,
6464         * src/pic/main.c,
6465         * src/pic16/main.c,
6466         * src/xa51/main.c,
6467         * src/z80/main.c: port.reg_parm prototype extended with
6468           "bool reentrant" parameter
6469         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
6470           options.stackAuto for allocating bit register parameters
6471         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
6472           (genSend): set BitBankUsed if it is,
6473           (selectRegBank): factored out of genCall for use in genPcall,
6474           (genCall): removed redundant dtype assignmen, use selectRegBank,
6475           (genPcall): handle returning in Carry properly, save in F0 if needed,
6476           (genReceive): handle bit register parameters
6477         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
6478           (mcs51_assignRegisters): enable bit registers for all reentrant
6479            functions and don't set BitBankUsed unconditionally
6480         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
6481         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
6482         * support/regression/tests/funptrs.c: added tests for BOOL and for return
6483
6484 2005-08-27 Borut Razem <borut.razem AT siol.net>
6485
6486         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
6487         ppc-osx (Darwin) does not support -u option. It seems that it is
6488         supported only on Linux - GNU cp
6489
6490 2005-08-25 Borut Razem <borut.razem AT siol.net>
6491
6492         * sim/ucsim/gui.src/serio.src/Makefile.in,
6493           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
6494           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
6495           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
6496           install and strip, since the strip at /usr/ccs/bin should be used
6497           on solaris
6498
6499 2005-08-24 Borut Razem <borut.razem AT siol.net>
6500
6501         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
6502
6503 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
6504
6505         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
6506         ffffffffu
6507
6508 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
6509
6510         * as/mcs51/aslink.h: completed lkrloc.c prototypes
6511         * as/mcs51/lkmain.c (link_main): fixed warning
6512         * device/include/stdbool.h: ds390 has no advanced bit support yet
6513         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
6514         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
6515         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
6516           and updated their macros
6517         * src/SDCCval.c (constVal): updated comment for renamed b_long
6518
6519 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
6520
6521         * as/mcs51/asdata.c: changed ctype['['] to BINOP
6522         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
6523           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
6524           (oprio): set priority for '['
6525         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
6526            and adb_24_bit
6527         * as/mcs51/asm.h: added defines R_BIT and S_BIT
6528         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
6529         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
6530         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
6531           added overlayable BIT_BANK area
6532         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
6533           (summary2): explain 'T' in legenda
6534         * as/mcs51/lkrloc.c: replaced old K&R style,
6535           (relr): added R_BIT processing,
6536           (errmsg): added "Bit-addressable relocation error",
6537           (adb_bit): added for converting from byte- to bit-addressable space,
6538           (adb_24_bit): added for converting from byte- to bit-addressable space
6539         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
6540            used in reentrant functions now even as return value
6541         * device/lib/_gptrput.c (_gptrput): removed obsolete code
6542         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
6543           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
6544         * src/SDCCglobl.h: added indicator BitBankUsed
6545         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
6546            the bit registers b0-b7
6547         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
6548           (geniCodeCast): fixed bug 1263853,
6549           (geniCodeLogicAndOr): put result in bool or char,
6550           (geniCodeReceive): added parameter func for accessing the return type,
6551           (geniCodeFunctionBody): pass func to geniCodeReceive
6552         * src/SDCCmain.c: added indicator BitBankUsed
6553         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
6554         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
6555           (checkSClass): don't put automatic bool/bit on stack,
6556           (checkFunction): removed check on function cannot return bit
6557         * src/SDCCsymt.h: added newBoolLink prototype
6558         * src/mcs51/gen.c (rb1regs): added bit registers,
6559           (movc): created for assigning to carry,
6560           (pushReg, popReg): created for pushing registers,
6561           (sameRegs): check both AOP_REG and AOP_CRY types,
6562           (aopOp): handle bit registers,
6563           (aopPut): optimization no self-assign,
6564           (saveRegisters): push reg->base (bits) only once for bit registers,
6565            and use pushReg,
6566           (unsaveRegisters): pop reg->base only once and use popReg,
6567           (assignResultValue): added parameter func and return in carry for bits,
6568           (genIpush): optimization no reload in A if not changed,
6569           (genSend): bit parameters in reentrant functions are passed in bit
6570            registers by first assigning to bits in B, then save registers and
6571            copy B to bits,
6572           (genCall): handle returning in Carry properly, save it in F0 if needed,
6573           (genPcall): updated assignResultValue call, this is not safe yet for bit
6574            returning function !!!
6575           (genFunction): don't generate equ's for bit registers and use pushReg,
6576           (genEndFunction): take care of bit returning functions and use popReg,
6577           (genRet): return bit in Carry,
6578           (genIfx): optimize bit registers and other directly addressable bits,
6579           (genReceive): updated assignResultValue call
6580         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
6581           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
6582            registers when using stack-auto
6583         * src/mcs51/ralloc.c (_G): added allBitregs,
6584           (regs8051): added the bit registers,
6585           (createStackSpil): use macro IS_BIT,
6586           (getRegBit): added to allocate a bit register, else spill,
6587           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
6588           (updateRegUsage): factored out to ease stepping while debugging,
6589           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
6590            also allocate bit registers,
6591           (fillGaps): handle bit registers,
6592           (findAllBitregs): added to create bit vector with all bit registers,
6593           (mcs51_allBitregs): returns this bit vector,
6594           (mcs51_assignRegisters): when using stack-auto use bit registers for
6595            passing parameters and creating local variables
6596         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
6597
6598 2005-08-22 Borut Razem <borut.razem AT siol.net>
6599
6600         * device/lib/Makefile.in: replaced find option -or with -o
6601           to make it run on solaris
6602
6603 2005-08-22 Raphael Neider <rneider AT web.de>
6604
6605         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
6606           fixes #1265442 (crash on Solaris)
6607
6608 2005-08-20 Borut Razem <borut.razem AT siol.net>
6609
6610         * configure, configure.in: added tests for libsocket and libnsl libraries,
6611           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
6612           from support/regression/Makefile.in
6613         * support/regression/Makefile.in: added
6614         * device/lib/pic16/Makefile.common.in: force make to use bash shell
6615         * sim/ucsim/libtool: regenerated on sparc-solaris
6616         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
6617           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
6618           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
6619           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
6620           sparc-solaris, which doesn't use GNU ld linker
6621         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
6622         * as/Makefile: find on sparc-solaris does not support -maxdepth option
6623
6624 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
6625
6626         * src/mcs51/peeph.def: updated comments
6627
6628 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6629
6630         * device/lib/_gptrget.c,
6631         * device/lib/_gptrput.c: slightly shorter
6632         * doc/sdccman.lyx: incremented version
6633         * src/mcs51/peeph.def: moved peephole comments to the line of first
6634           change to better keep line correlation, reanimated 186.e
6635         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
6636
6637 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
6638
6639         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
6640           David Saxton with quotes around file name.
6641
6642 2005-08-15 Borut Razem <borut.razem AT siol.net>
6643
6644         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
6645           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
6646           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
6647           make tests run on x86_64 platform
6648
6649 2005-08-13 Raphael Neider <rneider AT web.de>
6650
6651         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
6652           as it might be executed DURING a build (parallel make is wonderful)
6653
6654 2005-08-13 Raphael Neider <rneider AT web.de>
6655
6656         * device/lib/Makefile.in (port-specific-objects-pic16):
6657           revert to cp $(PORT)/bin/*.* $(PORTDIR)
6658         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
6659           dependency
6660         * device/lib/pic16/Makefile.rules: build subdirs before creating
6661           the library, removed builddir rule, create $(builddir) early in
6662           recurse rule, use empty recurse rule for leaf directories
6663         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
6664           mkdir errors (race condition), removed duplicate suffix "hex"
6665           from clean rules
6666         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
6667         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
6668           prevents mkdir -p from aborting on Alpha
6669
6670 2005-08-12 Raphael Neider <rneider AT web.de>
6671
6672         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
6673           db-statements in order to allow for arrays of pointers in code
6674           sections to be placed without interspersed 0-padding, fixes
6675           bug #1256215
6676         * (emitStatistics): fixed division by zero for pic18f1220
6677         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
6678           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
6679         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
6680         * (pic16_pCodeConstString): keep track of already emitted string
6681           literals to prevent "duplicate definitions of symbol _str_NR"
6682         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
6683           debug message
6684         * device/lib/Makefile.in: ignore failing PIC16 library builds
6685         * device/lib/pic16/Makefile: do not build if gputils are missing
6686         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
6687
6688 2005-08-10 Raphael Neider <rneider AT web.de>
6689
6690         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
6691           my last commit)
6692
6693 2005-08-10 Raphael Neider <rneider AT web.de>
6694
6695         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
6696           Rokas' patch to add the new fixed point type "__fixed16x16"
6697         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
6698           functions for __fixed16x16 arithmetics
6699         * device/lib/pic16: reimplemented the build system to support
6700           a separate build directory, better handling of libio (create
6701           the library in a separate subdir for each architecture) and
6702           easier configuration (centralized in Makefile.common)
6703
6704 2005-08-07 Raphael Neider <rneider AT web.de>
6705
6706         * src/pic16/gen.c (genrshTwo): fixed sign extension
6707         * src/pic16/device.c: added pic18f2320, 4220 and 4320
6708         * device/include/pic16/pic18f2220.h: changed some bit definitions,
6709           added T0CONbits
6710         * device/include/pic16/pic18f4220.h: NEW, header for
6711           pic18f4220 and pic18f4320
6712         * device/include/pic16/pic18fregs.h: added new devices,
6713           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
6714         * device/include/pic16/signal.h: resolved name clashes
6715           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
6716           to also allow testing for interrupt enable bits, added
6717           comments on how to use the macros
6718         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
6719         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
6720           register definitions for the devices
6721         * device/lib/pic16/pics.all: added new devices
6722         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
6723           allocated memory
6724         * device/lib/pic16/libc/stdlib/memfree: do not count
6725           the block header as free memory
6726         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
6727           simplified and added missing end-of-blocklist-marker
6728           (reported by Peter Onion, fixes #1252814)
6729         * (_mergeHeapBlock): fixed loop condition
6730         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
6731           len==0, restructured code
6732         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
6733           up a bit, reduced bitfield accesses, prevent endless loops
6734           in case of heap corruption
6735         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
6736           "unreferenced arguments/must return a value" warnings
6737         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
6738           replaced BAUDREG with SPBRG
6739         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
6740           device/lib/pic16/debug/gstack/gstack.c: replaced
6741           _naked, _asm, _endasm with __naked, __asm, __endasm
6742
6743 2005-08-05 Raphael Neider <rneider AT web.de>
6744
6745         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
6746           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
6747
6748 2005-08-05 Borut Razem <borut.razem AT siol.net>
6749
6750         * device/lib/Makefile.in: added missing ';'
6751         * configure: removed ^M characters
6752
6753 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6754
6755         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
6756           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
6757           License
6758
6759 2005-08-04 Borut Razem <borut.razem AT siol.net>
6760
6761         * configure.in: pic16 libraries build 2nd try - enable running
6762           configure in device/lib/pic16
6763         * configure: regenerated from configure.in
6764         * device/lib/Makefile.in: create $(PORT)/bin directory
6765
6766 2005-08-03 Raphael Neider <rneider AT web.de>
6767
6768         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
6769           to get/set values via pointers
6770         * (genUnpackBits,genPackBits): changed detection of
6771           ptr->bitfield vs. sym.bitfield, fixed access via generic
6772           pointers, removed dead (wrong) code for multibyte bitfields
6773         * (genNearPointerGet, genGenPointerGet): removed useless code,
6774           fixed bitfield detection, fixes #1250594
6775         * (genNearPointerSet): removed useless code
6776         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
6777           and introduced macro pic16_emitpcode that conditionally emits
6778           the origin of the following pCode (useful for debugging SDCC)
6779         * src/pic16/pcode.c: changed (and disabled) some debug outputs
6780         * (createDefmap): fixed handling of LFSR for --optimize-df
6781
6782 2005-08-02 Borut Razem <borut.razem AT siol.net>
6783
6784         * device/lib/Makefile.in: pic16 libraries build enabled since
6785           gputils-0.13.2 are now localy installed at sourceforge's compile farm
6786
6787 2005-08-02 Raphael Neider <rneider AT web.de>
6788
6789         * src/pic16/gen.c (genPackBits): removed deprecated warning
6790         * (genGenPointerSet): fixed bitfield detection
6791
6792 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6793
6794         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
6795
6796 2005-07-31 Raphael Neider <rneider AT web.de>
6797
6798         * device/lib/pic16/libdev/pic18f458.c,
6799           device/include/pic16/pic18f458.h: added missing T0CONbits
6800
6801 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
6802
6803         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
6804
6805 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
6806
6807         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
6808
6809 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6810
6811         * device/include/mcs51/at89c51ed2.h: added.
6812
6813 2005-07-23 Raphael Neider <rneider AT web.de>
6814
6815         * src/pic/gen.h: added emitpcode macro for debugging
6816         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
6817           and replace by macro adding debug information on demand
6818         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
6819         * (gencjne): tried to fix; replaced with correct (slower) code
6820         * (gen{Unp,P}ackBits): fixed single bit access
6821         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
6822         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
6823           previous instruction
6824         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
6825           register has to be handled with care (forbidding movement
6826           of assignments/uses, removing assignments completely, ...)
6827         * (pCodeOptime2pCodes): make use of regIsSpecial
6828         * added lots of debugging output (commented out)
6829         * src/pic/rallloc.c (deassignLRs): prevent operand registers
6830           from being reused as result UNLESS it is known to work
6831
6832 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
6833
6834         * support/Util/dbuf.h: include <stddef.h> for size_t
6835         * .version: changed to version 2.5.2
6836
6837 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6838
6839         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
6840
6841 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6842
6843         * src/hc08/gen.c (genMinus): fixed bug #1241835,
6844           (genModOneByte): removed needless psha/pula
6845
6846 2005-07-22 Raphael Neider <rneider AT web.de>
6847
6848         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
6849           have PIC14 handled like PIC16, fixes broken pic14 linker calls
6850         * src/pic/gen.c (resolveIfx): do not "invent" labels
6851         * (genSkipc): changed to positive logic
6852         * (genSkipCond): removed as no longer needed
6853         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
6854           backport from PIC16
6855         * (genLeftShift): check operands are in different registers
6856         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
6857           INCF does not update CARRY...
6858         * src/pic/main.c: fixed _linkCmd
6859         * src/pic/pcode.c (unlinkpCode): added inactive code
6860         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
6861           alive (do not assign result and operand overlapping registers)
6862
6863 2005-07-22 Raphael Neider <rneider AT web.de>
6864
6865         * src/pic/device.c (dump_sfr): replaced register declaration with
6866           call to emitSymbolToFile() to avoid duplicate symbols
6867         * (assignRelocatableRegisters): do not declare external symbols
6868         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
6869           right (take size of type, not etype)
6870         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
6871         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
6872         * (packRegsForAccUse): disabled assignment of WREG as
6873           the result reg to prevent occurence of just fixed #1235003,
6874           fixes #1242954
6875         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
6876           symbols (avoids duplicate symbols in .asm file)
6877         * (pic14emitRegularMap): use emitSymbolToFile()
6878         * src/pic/gen.c (aopOp): fixed spillLocation handling
6879         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
6880         * (genDataPointerSet): removed unneccessary variables/output
6881
6882 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
6883
6884         * as/mcs51/lkarea.c: enlarged codemap for banked memory
6885         * device/lib/mcs51/crtbank.asm: added # to 0x0F
6886
6887 2005-07-21 Raphael Neider <rneider AT web.de>
6888
6889         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
6890           architecture cannot handle them efficiently, fixes bug #1235003
6891         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
6892           check for empty sets before using them (fixes bug #1232190)
6893
6894 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
6895
6896         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
6897           (lnksect2): generate warnings for memory overlap
6898         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
6899           constseg to set the name of these segments so you can instruct the linker
6900           to place them in banks
6901         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
6902         * src/SDCCglobl.h: added MODEL_HUGE to enum,
6903           added code_seg and const_seg to options
6904         * src/SDCCglue.c (emitMaps): use options.const_seg,
6905           (createInterruptVect): put interrupt vectors in segment HOME,
6906           (glue): put HOME before static segment and put the main glue in HOME,
6907           (glue): use options.code_seg
6908         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
6909         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
6910           these segments so you can instruct the linker to place them in banks
6911           (linkEdit): use code_loc for HOME segment which should be the first
6912           segment in code memory now
6913         * src/SDCCmem.c: fixed more stuff like bug 1238386
6914         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
6915           (changePointer): don't change function pointers to code pointers for
6916           banked functions,
6917           (compareType): added exceptional check for banked function pointers
6918         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
6919         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
6920           after static in code memory
6921         * src/mcs51/gen.c: added aopLiteralLong prototype,
6922           (aopForSym): use getSize for functions,
6923           (genCall): generate banked calls over one trampoline __sdcc_banked_call
6924           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
6925           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
6926           the segment,
6927           (genPcall): use call for literal function pointers and generate banked
6928           calls over the one trampoline so there's only one place for the user to
6929           modify according to his/hers hardware,
6930           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
6931           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
6932         * src/mcs51/main.c: added keyword banked,
6933           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
6934         * support/Util/SDCCerr.c,
6935         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
6936           needed for passing the bank and address to the trampoline
6937         * device/lib/mcs51/crtbank.asm: added for bankswitching
6938         * device/lib/mcs51/Makefile: added crtbank
6939
6940 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6941
6942         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
6943           for fields at offset 0 of a struct or union as reported
6944           on 2005-07-07 in the developer mailing list.
6945
6946 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
6947
6948         * src/SDCCmem.c: fixed bug 1238386
6949
6950 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6951
6952         * src/mcs51/peeph.def: added labelrefcounting for peepholes
6953           (patch #1144962), added peephole 300, enabled 259.x
6954         * doc/sdccman.lyx: removed screenshot and provided link instead
6955
6956 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6957
6958         * doc/sdccman.lyx: added section about debugging with ddd
6959         * doc/figures/ddd_example.eps: screenshot of debugging session
6960
6961 2005-07-04 Raphael Neider <rneider AT web.de>
6962
6963         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
6964           like CODE pointers, fixes #1115683
6965         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
6966           call, fixes bugs #1232211, #1228110,
6967           fixed wrong casts to pCodeFlow from pCodeInstructions
6968
6969 2005-07-04 Raphael Neider <rneider AT web.de>
6970
6971         * src/pic/gen.c (popGet): changed assert to allow for
6972           bit operands
6973         * (popGetAddr): changed signature to provide
6974           an additional index, patched all call sites
6975         * (genCmpEq): handle literal-like operands correctly
6976         * (genAddrOf): added sanity checks on __code/__data pointers
6977         * (genAssign): added handling of symbols from __code section
6978         * (gencjne): do not generate code for comparisons whose result
6979           is neither stored nor used, fixes bug #1171114
6980         * (AccLsh, AccRsh): operate on operand instead of WREG
6981         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
6982           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
6983           by known count
6984         * rewrote complete shift-by-literal logic, commented unused
6985           functions out
6986         * (genConstPointerGet): get multiple bytes (if result size > 1),
6987           fixed handling of non-immediate addresses
6988         * (genPointerGet): handle CODE pointers like CONST pointers
6989         * (genpic14Code): insert C-SRC lines as Cource-pCodes
6990         * ({aop,op}_isLitLike): NEW, single place to decide whether an
6991           operand is to be treated as a literal or not
6992         * (mov2w,genPcall,genCmpEq),
6993           src/pic/genarith.c: use aop_isLitLike() to decide between
6994           literal/register contents
6995         * (addSign): added missing offset
6996         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
6997           only emit comment in debug-mode,
6998           use {aop,op}_isLitLike throughout the file
6999         * src/pic/glue.c: fix initializers for pointers (work in progress)
7000         * src/pic/pcode.c (get_op): honor index on _const symbols
7001         * ({reset,dump}pCodeStatistics): NEW, estimate code size
7002         * (dumppBlock): added pCode size estimation
7003         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
7004           check for IS_SYMOP before OP_SYMBOL'ing
7005         * fixed indentation, compacted switch-statements
7006         * (allocReg): find free register and allocate it instead of
7007           allocating new registers all the time
7008         * (deassignLRs): prevent POINTER_GET's from being assigned the same
7009           registers as its operands (necessary only for multibyte GETs)
7010
7011 2005-07-01 Raphael Neider <rneider AT web.de>
7012
7013         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
7014           debugging .asm-output macros FENTRY + FEXIT
7015         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
7016           way... I wonder...
7017         * (emitpComment): NEW, printf to pCode
7018         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
7019           offset handling
7020         * (popGetAddr): NEW, variant of popGet to access an immediates
7021           high(er) bytes instead of the n'th byte of memory they reference,
7022           replaced popGet with popGetAddr where neccessary
7023         * (genDataPointerGet): reactivated and fixed implementation
7024         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
7025           accesses
7026         * (genDataPointerSet): fixed multibyte assignments
7027         * (genpic14Code): fixed --i-code-in-asm handling
7028         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
7029         * (genPlus): fixed index-out-of-bounds error
7030         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
7031         * src/pic/ralloc.c: added debugging output macro FENTRY2
7032         * (spillThis): fixed indentation, enbraced for-body for clarity
7033         * (rematStr): commented out as now unused
7034         * (regTypeNum): commented out special spill case (overwrites
7035           arbitrary values)
7036         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
7037
7038 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
7039
7040         * doc/sdccman.lyx: documented sfr16/sfr32,
7041           added example for using storage class with function pointers
7042         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
7043
7044 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
7045
7046         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
7047         * device/lib/_itoa.c,
7048         * device/lib/_ltoa.c: optimized codesize
7049         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
7050           but don't know how to suppress the double warning.
7051         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
7052         * support/Util/SDCCerr.c,
7053         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
7054
7055 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
7056
7057         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
7058           fixed old K&R prototypes
7059         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
7060         * device/lib/_gptrget.c,
7061         * device/lib/_gptrgetc.c,
7062         * device/lib/_gptrput.c: changed versions for new memory indicator values,
7063           also new versions for small generic pointers and banked generic pointers
7064         * src/port.h: added const_name
7065         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
7066         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
7067         * src/SDCCcse.c (findPrevIc): check all associative operators
7068         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
7069         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
7070         * src/SDCCmem.c: updated comments,
7071           set far-space to 0 for pdata, results in optimized code
7072         * src/SDCCmem.h: added macro CONST_NAME
7073         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
7074           moving the info into the highest bits, see also gptrget/gptrput
7075         * src/src.dsp: added sdcc.ico to project files
7076         * src/avr/gen.c (genCast): fixed bug 0x%d
7077         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
7078         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
7079           relation between ptr_type and DCL_TYPE,
7080           (genCast): fixed bug 0x%d
7081         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
7082           (CODE)" for const_name
7083         * src/hc08/gen.c (genCast): fixed bug 0x%d
7084         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
7085           (hc08_port): added "CONST (CODE)" for const_name
7086         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
7087           (aopForRemat, adjustArithmeticResult): disconnected direct relation
7088           between ptr_type and DCL_TYPE,
7089           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
7090           operand* and took AOP() inside function so sfr-ness can be checked,
7091           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
7092           new prototype,
7093           (genFunction, genEndFunction): optimized stack setup,
7094           (genMinus): optimized for literals with ending zeroes (in bytes),
7095           (genCast): fixed bug 0x%d
7096         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
7097           (mcs51_port): added "CONST (CODE)" for const_name
7098         * src/mcs51/peeph.def: made rule 226 more generic
7099         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
7100         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
7101         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
7102         * src/z80/main.c (z80_port): added NULL for const_name,
7103           (gbz80_port): added NULL for const_name
7104         * support/regression/tests/bug663539.c,
7105         * support/regression/tests/sfr16.c: new tests
7106
7107 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7108
7109         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
7110
7111 2005-06-24 Raphael Neider <rneider AT web.de>
7112
7113         * device/lib/pic16/libdev/pic18f[68][567]20.c:
7114           corrected typos...
7115         * device/include/pic16/signal.h: added USBIF
7116           and SIG_USB
7117
7118 2005-06-24 Raphael Neider <rneider AT web.de>
7119
7120         * device/lib/pic16/libdev/pic18f2455.c,
7121           device/include/pic16/pic18f2455.h: NEW
7122         * device/include/pic16/pic18fregs.h,
7123           device/lib/pic16/pics.all,
7124           src/pic16/device.c: added 18f2455
7125         * device/lib/pic16/libdev/pic18f[68][567]20.c,
7126           device/include/pic16/{pic18f[68][567].h,usart.h}:
7127           replaced MULTIPLE_USARTS define with more relaible
7128           compatibility sfrs (for USART access)
7129
7130 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
7131
7132         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
7133           and the output asm file line is printed on two lines.
7134
7135 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7136
7137         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
7138           BGT, BLE, BHI, and BLS instructions
7139         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
7140           genCmpEq): removed
7141         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
7142           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
7143           fixes bug #1216342
7144         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
7145
7146 2005-06-15 Raphael Neider <rneider AT web.de>
7147
7148         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
7149         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
7150         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
7151           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
7152           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
7153
7154 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7155
7156         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
7157           Marcel Telka in bug #1215704
7158
7159 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
7160
7161         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
7162           located in shared memory bank.
7163
7164 2005-05-31 Raphael Neider <rneider AT web.de>
7165
7166         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
7167           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
7168           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
7169
7170 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
7171
7172         * device/lib/_strncpy.c: fixed the fix
7173
7174 2005-05-26 Raphael Neider <rneider AT web.de>
7175
7176         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
7177           initializers with \0, bug #1208187
7178         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
7179           intializers with \0, bug #1208187
7180
7181 2005-05-26 Raphael Neider <rneider AT web.de>
7182
7183         * src/pic16/glue.c (pic16_printIvalChar): fixed string
7184           initializers with \0, bug #1208187
7185         * src/pic16/main.c (_process_pragma): added sanity checks
7186           for stack position and size, emit warnings when appropriate
7187
7188 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
7189
7190         * device/lib/_strncpy.c: fixed not filling with \0
7191
7192 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7193
7194         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
7195           createFunction),
7196         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
7197           compound_statement),
7198         * src/SDCCsymt.h,
7199         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
7200
7201 2005-05-24 Raphael Neider <rneider AT web.de>
7202
7203         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
7204
7205 2005-05-24 Raphael Neider <rneider AT web.de>
7206
7207         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
7208           TRISE definitions, closes bug #1162453
7209
7210 2005-05-22 Raphael Neider <rneider AT web.de>
7211
7212         * src/pic16/main.c (_process_pragma): check for missing
7213           arguments to pragmas code and udata
7214         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
7215           consistency fixes to match other headers (thanks to Jim Paris)
7216         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
7217
7218 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
7219
7220         * src/SDCCicode.c (isOperandEqual): fixed missing ;
7221
7222 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
7223
7224         * support/regression/tests/bug1198642.c: new test
7225         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
7226         * src/SDCCcse.c (findPrevIc): added comment, please have a look
7227         * support/scripts/resource.h,
7228         * support/scripts/resource.rc,
7229         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
7230         * support/scripts/sdcc.ico: added 32x32 icon
7231
7232 2005-05-18 Raphael Neider <rneider AT web.de>
7233
7234         * device/lib/pic16/libdev/pic18f*.c,
7235         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
7236           keywords to "__sfr" and "__at (X)"
7237         * device/include/pic16/pic18fregs.h: added pic18f4520
7238         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
7239           #1203088 (MPLAB compatibility)
7240
7241 2005-05-17 Raphael Neider <rneider AT web.de>
7242
7243         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
7244         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
7245         * device/lib/pic16/pics.all: added new devices
7246         * src/pic16/device.c: added support for pic18f4520
7247
7248 2005-05-16 Raphael Neider <rneider AT web.de>
7249         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
7250         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
7251         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
7252           convenience function for bit access
7253
7254 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
7255
7256         * device/lib/printf_large.c: fixed bug 1193299
7257         * support/regression/tests/bug1057979.c: added test %3.3s
7258
7259 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7260
7261         * device/include/mcs51/8051.h,
7262         * device/include/mcs51/8052.h: made parseable with lint
7263         * device/include/mcs51/lint.h: added include file for (sp)lint
7264         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
7265         * doc/cdbfileformat.lyx,
7266         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
7267
7268 2005-05-14 Raphael Neider <rneider AT web.de>
7269
7270         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
7271         * device/lib/pic16/libc/stdlib/itoa.c (new)
7272         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
7273         * device/lib/pic16/libio/Makefile: exclude subdir according to
7274           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
7275         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
7276         * src/pic16/gen.c (genFunction): prevent annoying warning
7277         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
7278           nameclashes on BeOS
7279         * support/cpp2/cppmain.c (cpp_output_string): new
7280         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
7281           fixes bug 1116802
7282
7283 2005-05-13 Borut Razem <borut.razem AT siol.net>
7284
7285         * src/SDCCmain.c (linkEdit): fixed bug 1195202
7286
7287 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7288
7289         * .version: changed to version 2.5.1; back to bleeding edge development
7290
7291 2005-05-11 Borut Razem <borut.razem AT siol.net>
7292
7293         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
7294           generate PDF version 1.3 documents
7295
7296 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7297
7298         * .version: changed to version 2.5.0
7299
7300 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7301
7302         * doc/sdccman.lyx: updated weblinks, index and smaller updates
7303
7304 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7305
7306         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
7307         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
7308         well as many smaller updates.
7309         * .version: changed to version 2.5.0-pre1
7310
7311 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7312
7313         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
7314
7315 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
7316
7317         * support/regression/tests/bug1185672.c: added
7318         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
7319           bug 1185672
7320         * src/mcs51/gen.c (genCall): added comments, made it look safer
7321         * src/mcs51/gen.c (genEndFunction): simplified
7322
7323 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
7324
7325         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
7326
7327 2005-04-14 Borut Razem <borut.razem AT siol.net>
7328
7329         * fixed bug 1045046 - SIGSEGV with really simple code?:
7330           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
7331           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
7332
7333 2005-04-14 Borut Razem <borut.razem AT siol.net>
7334
7335         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
7336           src/pic16/device.h: temporarily disabled experimental #inline pragma
7337           for 2.5.0 release
7338
7339 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
7340
7341         * device/include/z80/stdio.h,
7342         * device/include/z80/string.h: removed these highly incomplete files so
7343           SDCC can use the default ones in device/include/
7344
7345 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7346
7347         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
7348         gcc warning.
7349         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
7350         fix sdcpp warnings.
7351
7352 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
7353
7354         * device/include/malloc.h: removed redundant __reentrant prototypes
7355         * device/lib/_mullong.c: added working xstack variant in asm (C version
7356           doesn't pass regression tests)
7357         * device/lib/bpx.c: used __data and made bpx char for mcs51
7358         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
7359           (createFunction): fixed bug with xstackPtr
7360         * src/SDCCcse.c: corrected comments
7361         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
7362           (killDeadCode, eBBlockFromiCode): removed unused code
7363         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
7364           corrected comments
7365         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
7366           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
7367           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
7368           (genModOneByte): fixed warning in MSVC
7369         * src/mcs51/main.c (): added comments
7370         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
7371
7372 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
7373
7374         * src/SDCCmain.c (linkEdit): oops, changed one line too many
7375
7376 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
7377
7378         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
7379
7380 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
7381
7382         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
7383         characters arrays of larger size than the declared one.
7384
7385 2005-04-10 Borut Razem <borut.razem AT siol.net>
7386
7387         * src/pic/gen.c (genInline),
7388           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
7389           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
7390           (findNextInstruction), (findPrevInstruction),
7391           (findInstructionUsingLabel),
7392           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
7393         * src/pic/pcode.c (findLabel): added missing '\n'
7394         * src/src.dsp: added SDCCdwarf2.c to the project
7395
7396 2005-04-09 Borut Razem <borut.razem AT siol.net>
7397
7398         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
7399
7400 2005-04-08 Raphael Neider <rneider AT web.de>
7401
7402         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
7403           into the chain after a given one) and mergeDefmapSymbols (combine
7404           defmap entries for each symbol per pcode)
7405         * (createDefmap): have defmap entries merged in the end
7406         * (defmapReplaceSymRef): split defmap entries covering two accesses to
7407           a symbol before replacing one access type's symbol, merge symbols in
7408           the end (replacement symbol might already have an entry)
7409         * (assignValnums): keep reference to written WREG intact
7410
7411 2005-04-08 Raphael Neider <rneider AT web.de>
7412
7413         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
7414           Alpha)
7415
7416 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
7417
7418         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
7419         bytes
7420
7421 2005-04-07 Raphael Neider <rneider AT web.de>
7422
7423         * device/include/pic16/usart.h: added compatibility defines for
7424           devices with more than one USART
7425         * device/include/pic16/pic18f[68][567]20.h: activated above defines
7426
7427 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7428
7429         * device/lib/Makefile.in: updated for port specific include
7430
7431 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7432
7433         * support/regression/ports/mcs51/spec.mk: added mcs51 include
7434
7435 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7436
7437         * device/include/8051.h,
7438         * device/include/8052.h,
7439         * device/include/at89S8252.h,
7440         * device/include/at89c55.h,
7441         * device/include/at89x051.h,
7442         * device/include/at89x51.h,
7443         * device/include/at89x52.h,
7444         * device/include/mcs51reg.h,
7445         * device/include/reg51.h,
7446         * device/include/reg764.h,
7447         * device/include/regc515c.h,
7448         * device/include/sab80515.h: (re)moved these 12 files
7449         * device/include/mcs51/8051.h,
7450         * device/include/mcs51/8052.h,
7451         * device/include/mcs51/at89S8252.h,
7452         * device/include/mcs51/at89c55.h,
7453         * device/include/mcs51/at89x051.h,
7454         * device/include/mcs51/at89x51.h,
7455         * device/include/mcs51/at89x52.h,
7456         * device/include/mcs51/mcs51reg.h,
7457         * device/include/mcs51/reg51.h,
7458         * device/include/mcs51/reg764.h,
7459         * device/include/mcs51/regc515c.h,
7460         * device/include/mcs51/sab80515.h: and added them here
7461
7462 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
7463
7464         * device/include/stdarg.h: changed SDCC specific keywords to double
7465           underlined form.
7466         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
7467           mcs51 and ds390.
7468         * device/include/hc08/mc68hc908gp32.h,
7469         * device/include/hc08/mc68hc908jb8.h,
7470         * device/include/hc08/mc68hc908jkjl.h,
7471         * device/include/hc08/mc68hc908qy.h: fixed comments
7472         * device/include/mcs51/README: updated
7473         * device/include/mcs51/c8051f120.h: added PINRSF
7474         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
7475         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
7476           amidst code. Also inline is not supported.
7477
7478 2005-04-06 Raphael Neider <rneider AT web.de>
7479
7480         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
7481         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
7482           callers stack/frame pointers
7483
7484 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
7485
7486         * device/include/pic16/usart.h: added, missing in previous commit,
7487         * device/include/pic16/adc.h: fixed typo,
7488         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
7489         commit,
7490         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
7491         <p18fxxx.inc>
7492         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
7493         uninitialized because a bug appears with gplink
7494         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
7495         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
7496         complains for unrecognised option
7497
7498 2005-04-05 Raphael Neider <rneider AT web.de>
7499
7500         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
7501           structs as well (using memcpy)
7502         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
7503           on ISRs (GOTO has no label)
7504         * src/pic16/device.h: added OF_OPTIMIZE_DF
7505         * src/pic16/main.c: added compiler switch --optimize-df to enable the
7506           new data flow analysis/optimization
7507         * src/pic16/pcode.c: added (prototypes for and implementation of)
7508           dataflow analysis functions, fixed pCodeInstructions' inCond and
7509           outCond values, made RCALL a branch instruction
7510         * (pic16_unlinkpCode): keep C line if possible
7511         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
7512           C line moved if possible
7513         * (pic16_getRegFrompCodeOp): NEW, improved version of...
7514         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
7515           to use new pic16_getRegFrompCodeOp (works for more SFRs)
7516         * (pic16_BuildFlow): fixed skip instructions with label (did not start
7517           new flow)
7518         * (pic16_getJumptabpCode): NEW, needed in...
7519         * (LinkFlow): fixed handling of jumptables, calls and conditional
7520           branches
7521         * (pic16_InsertCommentAfter): NEW
7522         * (pic16_pCodeReplace): made verbose and flow preserving
7523         * (AnalyzeFlow): added call to data flow analysis
7524         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
7525         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
7526         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
7527
7528 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7529
7530         * src/SDCCast.c (decorateType): fixed bug #1105626
7531
7532 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
7533
7534         * device/include/asm/pic16/features.h,
7535         * pic18f*.h headers,
7536         * device/include/pic16/adc.h,
7537         * device/include/pic16/delay.h,
7538         * device/include/pic16/i2c.h,
7539         * device/include/pic16/malloc.h,
7540         * device/include/pic16/stdio.h,
7541         * device/include/pic16/stdlib.h,
7542         * device/include/pic16/string.h,
7543         * device/lib/pic16/libc/stdio/printf_tiny.c,
7544         * device/lib/pic16/libc/stdio/printf_small.c,
7545         * device/lib/pic16/libc/stdio/strmgpsim.c,
7546         * device/lib/pic16/libc/stdio/strmmssp.c,
7547         * device/lib/pic16/libc/stdio/strmusart.c,
7548         * device/lib/pic16/libc/stdio/vfprintf.c,
7549         * device/lib/pic16/libc/stdlib/ltoa.c,
7550         * device/lib/pic16/libc/stdlib/putchar.c,
7551         * device/lib/pic16/libc/stdlib/x_ftoa.c,
7552         * device/lib/pic16/libc/stdlib/memchrpgm.c,
7553         * device/lib/pic16/libc/stdlib/memchrram.c,
7554         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
7555         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
7556         * device/lib/pic16/libio/adc/adcbusy.c,
7557         * device/lib/pic16/libio/adc/adcread.c,
7558         * device/lib/pic16/libio/adc/adcsetch.c,
7559         * device/lib/pic16/libio/usart/ubaud.c,
7560         * device/lib/pic16/libio/usart/ubusy.c,
7561         * device/lib/pic16/libio/usart/udrdy.c,
7562         * device/lib/pic16/libio/usart/uopen.c,
7563         * device/lib/pic16/libio/usart/uputc.c,
7564         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
7565         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
7566         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
7567         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
7568         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
7569         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
7570         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
7571         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
7572         specific keywords to double underlined form,
7573         * device/lib/pic16/libc/Makefile.rules,
7574         * device/lib/pic16/libsdcc/Makefile.rules,
7575         * device/lib/pic16/libm/Makefile,
7576         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
7577         to compile with C standard set in Makefile.common
7578         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
7579         rand.c and crc.c in compilation process,
7580         * device/lib/pic16/libsdcc/int/divuint.c,
7581         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
7582         `c' from signed to unsigned,
7583         * device/lib/pic16/startup/crt0.c,
7584         * device/lib/pic16/startup/crt0i.c,
7585         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
7586         keywords to double underlined form, bug fixes in _do_cinit function
7587         which prevented the correct initialization of the .idata segment,
7588         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
7589         core to enter a infinite loop
7590         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
7591
7592 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7593
7594         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
7595
7596 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7597
7598         * device/include/Makefile.in: add support for hc08 subdirectory
7599         * device/include/hc08/: new subdirectory
7600         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
7601         Lucas Loizaga, thanks!
7602         * device/include/hc08/mc68hc908qy.h,
7603         * device/include/hc08/mc68hc908gp32.h,
7604         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
7605         their own directory. Changed internal macro names to use the compiler
7606         reserved namespace. Changed SDCC specific keywords to double
7607         underlined form.
7608         * device/include/math.h,
7609         * device/include/malloc.h,
7610         * device/include/stdarg.h,
7611         * device/include/stdbool.h
7612         * device/include/string.h,
7613         * device/include/tinibios.h,
7614         * device/include/ds400rom.h,
7615         * device/include/8051.h,
7616         * device/include/8052.h,
7617         * device/include/80c51xa.h,
7618         * device/include/at89c55.h,
7619         * device/include/at89S8252.h,
7620         * device/include/at89x51.h,
7621         * device/include/at89x52.h,
7622         * device/include/ds80c390.h,
7623         * device/include/reg764.h,
7624         * device/include/regc515c.h,
7625         * device/include/sab80515.h,
7626         * device/include/mcs51/c8051f000.h,
7627         * device/include/mcs51/c8051f018.h,
7628         * device/include/mcs51/c8051f020.h,
7629         * device/include/mcs51/c8051f040.h,
7630         * device/include/mcs51/c8051f060.h,
7631         * device/include/mcs51/c8051f120.h,
7632         * device/include/mcs51/c8051f300.h,
7633         * device/include/mcs51/c8051f310.h,
7634         * device/include/mcs51/c8051f320.h,
7635         * device/include/mcs51/c8051f330.h,
7636         * device/include/mcs51/c8051f350.h,
7637         * device/include/z180.h: Changed SDCC specific keywords to double
7638         underlined form.
7639
7640 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
7641
7642         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
7643         18F4455,
7644         * (pic16_assignConfigWordValue): disable testing of configuration
7645         register value with config mask,
7646         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
7647         function with port->fun_prefix,
7648         * (genFunction): when generating a naked interrupt function never
7649         create an absolute segment placed in interrupt vector address, place
7650         the actual interrupt function at IVA instead, when an interrupt
7651         function is generated with unspecified interrupt then do not create
7652         the absolute section,
7653         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
7654         code for generating a call to generic pointer get/put function with
7655         a call to function pic16_callGenericPointer(),
7656         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
7657         the call to the generic pointer get/put functions with prefixing the
7658         function name with port->fun_prefix,
7659         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
7660         * src/pic16/main.c (_process_pragma): prefix function with
7661         port->fun_prefix,
7662         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
7663         calling assembler, old 18Fxxxx macro is deprecated,
7664         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
7665         PC_ASMDIR in while condition,
7666         * (findInstruction): add PC_ASMDIR in while condition,
7667         * (buildCallTree): prefix main with port->fun_prefix,
7668         * (pic16_pCode2str): fixed bug that didn't emit the memory access
7669         identifier for variable with banked access in instructions BTFSS,
7670         BTFSC, BCF, BSF, BTG
7671         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
7672         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
7673         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
7674         perform optimization when enviroment variable NO_REG_OPT is set,
7675         * (insideLRBlock): NEW, return 1 if register is inside an
7676         INF_LOCALREGS block,
7677         * (RemoveRegFromLRBlock): remove a register that is completely
7678         eliminated by register optimization, but it is still left in local
7679         register store/restore in/from stack block,
7680         * (Remove2pcodes): after removing register, check to see if it
7681         should be removed from local register store/restore in/from stack
7682         block,
7683         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
7684         DUMMY_READ_VOLATILE,
7685
7686         * device/include/pic16/adc.h: minor prototype modifications and
7687         update,
7688         * device/include/pic16/malloc.h: added GPL notice various
7689         modifications,
7690         * device/include/pic16/stdint.h: NEW, standard header for ints
7691         * device/include/pic16/delay.h: NEW, header for delay functions,
7692         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
7693         delay1mtcy,
7694         * device/include/pic16/signal.h: NEW, header providing helper macros
7695         for implementing signal handlers,
7696         * device/include/pic16/stdio.h: added prototypes for functions,
7697         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
7698         prototypes for stdin and stdout, added macro PUTCHAR to
7699         automatically implement putchar function prototype,
7700         * device/include/pic16/usart.h: modified and updated USART library,
7701         * device/lib/pic16/libio/adc/,
7702         * device/lib/pic16/libio/i2c: some modifications to improve library
7703         performance,
7704         * device/lib/pic16/libc/stdio/: modifications for the new printf*
7705         family of functions,
7706         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
7707         family of functions and other sources,
7708         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
7709         of the PIC18Fxx[28] devices,
7710         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
7711         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
7712         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
7713         _do_cinit function, because the previous failed when local variables
7714         where not placed in the same memory bank,
7715         * device/lib/pic16/libsdcc/char/: various modifications to improve
7716         library performance,
7717         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
7718         information on the new functions of the c library and more...
7719
7720 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7721
7722         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
7723
7724 2005-03-26 Raphael Neider <rneider AT web.de>
7725
7726         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
7727           if condition == CARRY)
7728         * (genCmp): adapted to new genSkipc semantics
7729         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
7730           on rIfx (genCmp was broken)
7731
7732 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7733
7734         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
7735         * src/z80/main.c (_keywords[]),
7736         * src/SDCCglobal.h (struct options),
7737         * src/SDCC.y,
7738         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
7739         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
7740         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
7741         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
7742         always available in leading double underscore form. The C99 support is
7743         mostly missing, but it's a start.
7744         * support/regression/tests/bug-227710.c: fixed nonconforming use of
7745         reserved identifier "__data".
7746
7747 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
7748
7749         * src/mcs51/peeph.def: fixed bug 1170013
7750
7751 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
7752
7753         * device/include/mcs51reg.h: fixed bug 842007
7754
7755 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7756
7757         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
7758         last time.
7759
7760 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7761
7762         * src/port.h (struct PORT),
7763         * src/avr/ralloc.c (avr_assignRegisters),
7764         * src/avr/main.c,
7765         * src/ds390/ralloc.c (ds390_assignRegisters),
7766         * src/ds390/main.c,
7767         * src/hc08/ralloc.c (hc08_assignRegisters),
7768         * src/hc08/main.c,
7769         * src/mcs51/ralloc.c (mcs51_assignRegisters),
7770         * src/mcs51/main.c,
7771         * src/pic/ralloc.c (pic14_assignRegisters),
7772         * src/pic/main.c,
7773         * src/pic16/ralloc.c (pic16_assignRegisters),
7774         * src/pic16/main.c,
7775         * src/xa51/ralloc.c (xa51_assignRegisters),
7776         * src/xa51/main.c,
7777         * src/z80/ralloc.c (z80_assignRegisters),
7778         * src/z80/ralloc.h,
7779         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
7780         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
7781         * src/SDCCcse.h,
7782         * src/SDCCdflow.c (computeDataFlow),
7783         * src/SDCCdflow.h,
7784         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
7785         * src/SDCCloop.h,
7786         * src/SDCCcflow.c (*),
7787         * src/SDCCcflow.h,
7788         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
7789         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
7790         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
7791         immedDom() returning wrong block; probably fixes bug #1160833)
7792
7793 2005-03-20 Borut Razem <borut.razem AT siol.net>
7794
7795         * support/scripts/inc2h.pl: WIN32 port
7796
7797 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
7798
7799         * device/lib/makefile.in: added abs.c and labs.c
7800
7801 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
7802
7803         * device/include/stdint.h: added
7804         * device/lib/abs.c: added
7805         * device/lib/labs.c: added
7806         * device/include/stdlib.h: added abs() and labs() prototypes
7807         * device/lib/libsdcc.lib: added abs and labs
7808         * device/include/float.h,
7809         * device/lib/_fsmul.c,
7810         * device/lib/printf_fast.c,
7811         * device/lib/printf_tiny.c: updated comments
7812
7813 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7814
7815         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
7816         bug #1164313
7817
7818 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7819
7820         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
7821         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
7822
7823 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
7824
7825         * device/lib/printf_large.c: removed inline assembly for portability and
7826           readability. Use printf_fast if speed or size are more important.
7827         * src/pic16/gen.c: removed conditions around use of DEBUGpc
7828         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
7829
7830 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
7831
7832         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
7833         prevent compiler warning
7834
7835 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
7836
7837         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
7838         moved to level 0 and declared as static. Also they are explicit
7839         placed in access bank. This was necessery because some times they
7840         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
7841         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
7842         optimizations. Currently only compare to unsigned char is implemented,
7843         * src/pic16/gen.c: added fReturnIdx array,
7844         * (struct resolvedIfx) is moved to gen.h and made public,
7845         * (struct _G): added sregsAlloc and sregsAllocSet fields,
7846         * (aopForSym): added an optimization to directly store in stack of
7847         the operand of a SEND iCode,
7848         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
7849         but as registers instead (AOP_REG) using the fReturnIdx array,
7850         * (pic16_freeAsmop): remove the freed register from the
7851         _G.sregsAlloc field,
7852         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
7853         a compare of 'WREG',
7854         * (pic16_popGetTempRegCond): changed function prototype, now
7855         function takes also a bitVector argument v which holds the current
7856         set of registers that are allocated for stack access by aopForSym,
7857         registers allocated in aopForSym for accessing stack symbols are not
7858         any more part of the functions usedRegs field,
7859         * (genCall): some times aopOp is called for a stack variable to be
7860         send, aopForSym might perform the push, if this is true make sure
7861         that genCall doesn't push the variable twice by testing _G.resDirect,
7862         * (genFunction): changed testing for unspecified interrupt number
7863         from 256 to INTNO_UNSPEC,
7864         * modified selection scheme of frame pointer generation. Previously
7865         if function did use local registers a frame pointer was generated,
7866         now a frame pointer is generated only if function has arguments
7867         (that need PLUSW2 register access), or has stack arguments, or the
7868         compiler is not instructed to omit the frame pointer,
7869         * (genEndFunction): before restoring local registers that were saved
7870         in the function preamble, also restore the registers that *might*
7871         have been allocated for stack access,
7872         * (genRet): removed some old comments,
7873         * (genCmp, the active (RN's) version): added a call to the
7874         pic16_genCmp_special function to perform the compare with a more
7875         robust and optimized way,
7876         * (genInline): a feature has been added in inline code generation,
7877         which allows a wildcard variable substitution when writing inline
7878         assembly. Code is incomplete and experimental therefore undocumented,
7879         * (genCast): changed order of aopOp for result and right to allow
7880         aopForSym to directly load the result if possible,
7881         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
7882         perform an optimized compare on some selected special occasions,
7883         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
7884         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
7885         generate an IVT any more,
7886         * src/pic16/main.c (pic16_optionsTable): added command line option
7887         --optimize-cmp,
7888         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
7889         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
7890         macros,
7891         * src/pic16/NOTES: Raphael Neider added in list of active developers
7892         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
7893         jumptable_end to prevent bug #,
7894         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
7895         inCond and outCond fields,
7896         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
7897         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
7898         turn off register spilling,
7899         * (packRegsForOneUse): synced with other ports' versions although it
7900         is not used currently,
7901         * (pic16_packRegisters): added an optimization while reading
7902         structure bitfields, some registers may be saved (malloc code is
7903         decreased by 80 bytes)
7904
7905 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
7906
7907         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
7908         left is a bitfield, if yes, then don't optimize assignment. Perhaps
7909         this can be optimized more?
7910
7911 2005-03-10 Raphael Neider <rneider AT web.de>
7912
7913         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
7914           genNearPointerGet): (hopefully) fixed access to bitfields via
7915           pointers (p->bitN = x; and x = p->bitN; failed)
7916
7917 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
7918
7919         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
7920
7921 2005-03-09 Raphael Neider <rneider AT web.de>
7922
7923         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
7924
7925 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
7926
7927         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
7928         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
7929           (regTypeNum): set REG_BIT type if necessary
7930         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
7931         * support/regression/tests/critical.c: check bug 1144613
7932
7933 2005-03-02 Raphael Neider <rneider AT web.de>
7934
7935         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
7936
7937 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7938
7939         * src/avr/ralloc.c (serialRegAssign),
7940         * src/ds390/ralloc.c (serialRegAssign),
7941         * src/hc08/ralloc.c (serialRegAssign),
7942         * src/mcs51/ralloc.c (serialRegAssign),
7943         * src/pic/ralloc.c (serialRegAssign),
7944         * src/pic16/ralloc.c (serialRegAssign),
7945         * src/xa51/ralloc.c (serialRegAssign),
7946         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
7947
7948 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
7949
7950         * src/SDCCast.c (decorateType): fixed bug 1124787
7951
7952 2005-02-20 Hubert Sack <sack AT digiplan.de>
7953         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7954
7955         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
7956         patch #1121755
7957
7958 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7959
7960         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
7961         to keep the correct label reference count when adding/removing references
7962         to labels. A peephole file using this is appended to patch #1144962.
7963
7964 2005-02-14 Raphael Neider <rneider AT web.de>
7965
7966         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
7967         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
7968         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
7969           retrievals of result operand's value on assignment
7970
7971 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
7972
7973         * device/include/pic16/string.h: modified prototype for memccpy()
7974         to memccpy(void *, void *, char, size_t)
7975         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
7976         check whether to omit frame pointer or not,
7977         * (genInline): convert all occurences of "\n" to LF in inline
7978         assembler blocks, this helps formatting the inline text,
7979         * (pic16_loadFSR0): modified prototype,
7980         * (genNearPointerGet, genNearPointerSet): reorganization of code,
7981         removed some 8051 legacy code,
7982         * (genPackBits): enabled handling bitfields exceeding one byte in size,
7983         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
7984         before allocating temporary registers in functions,
7985
7986 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
7987
7988         * support/regression/tests/bitvars.c: corrected the "fix"
7989
7990 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
7991
7992         * support/regression/tests/bitvars.c,
7993         * support/regression/tests/bitwise.c,
7994         * support/regression/tests/rotate.c: "fixed" problems on Alpha
7995
7996 2005-02-10 Raphael Neider <rneider AT web.de>
7997
7998         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
7999           different size for Alpha
8000         * src/pic16/gen.c (genCmpEq) : improved compare with 0
8001
8002 2005-02-09 Raphael Neider <rneider AT web.de>
8003
8004         * src/SDCC.lex(doPragma) : save and restore warning options as well
8005           (also added new stack plus clone- and copyAndFreeSDCCERRG())
8006         * have #pragma less_pedantic set the errorlevel to WARNING
8007           (fixes #1117001)
8008         * (cloneOptimize) : fixed wrong malloc's size
8009         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
8010           facilitate correct handling of #pragma (save|restore)
8011
8012 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
8013
8014         * src/mcs51/gen.c: removed non-standard C nameless struct/union
8015
8016 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
8017
8018         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
8019
8020 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
8021
8022         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
8023
8024 2005-02-02 Raphael Neider <rneider AT web.de>
8025
8026         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
8027         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
8028         * (pic16_storeForReturn): fixed to allow returning function pointers
8029         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
8030         * device/include/pic16/{stddef.h,stdbool.h}: added
8031
8032 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
8033
8034         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
8035
8036 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
8037
8038         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
8039         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
8040          appeared to be required
8041
8042 2005-01-31 Borut Razem <borut.razem AT siol.net>
8043
8044         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
8045           include/mcs51 and include/z80 directories to the package
8046
8047 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8048
8049         * src/hc08/gen.c (genFunction): fixed bug #1112752
8050
8051 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8052
8053         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
8054
8055 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8056
8057         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
8058
8059 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
8060
8061         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
8062
8063 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
8064
8065         * device/include/c8051fxxx.h: removed these 6 files
8066         * device/include/mcs51/c8051fxxx.h: added these 11 new files
8067
8068 2005-01-26 Raphael Neider <rneider AT web.de>
8069
8070         * src/pic16/gen.c (genAssign): fixed assignment from longs
8071           in codespace (were cut to three bytes)
8072         * (genDummyRead): implemented (except for CODESPACE...),
8073           fixed bug #1108575
8074         * src/pic16/glue.c (emitStatistics): beautified
8075         * device/lib/pic16/libm/Makefile: added include path
8076
8077 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8078
8079         * src/z80/gen.c (aopPut): fixed bug #1103902
8080
8081 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8082
8083         * device/lib/expf.c: fixed bug #1095792
8084
8085 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
8086
8087         * device/lib/pic16/libm: added Math library sources
8088
8089 2005-01-24 Raphael Neider <rneider AT web.de>
8090
8091         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
8092           to enable upcast to pCodeOpReg2 (there is no type tag to
8093           differenciate the two and pic16_popGet2p cast into PCOR2)
8094         * src/pic16/main.c (_process_pragma): fixed another malloc bug
8095           (sizeof(sectNames) changed to sizeof(sectName))
8096           Both patches fix segfaults under MinGW.
8097
8098 2005-01-23 Raphael Neider <rneider AT web.de>
8099
8100         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
8101           Safe_[mc]?alloc()'ed variables
8102         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
8103           of (byte sized) temporaries (assign them to WREG for now)
8104         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
8105           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
8106           this might fix SIGSEGVs on MinGW...
8107         * src/SDCCopt.c (killDeadCode): restored original behaviour
8108           (volatile operands might get thrown away though)
8109
8110 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
8111
8112         * src/pic16/gen.c: fixed bug #1106975,
8113         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
8114         pointer update, INTCON is saved, global interrupts are disabled and
8115         restored after updateing TOS.
8116         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
8117         * added function attribute 'shadowregs' to take advantage of shadow
8118         registers,
8119         * added function attribute 'wparam' as an alternative to the wparam
8120         pragma,
8121         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
8122         user declares a non-ISR function as 'shadowregs',
8123         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
8124
8125 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
8126
8127         * .version: bumped version number to 2.4.8
8128         * device/lib/pic16/pics.all: list of PIC18F devices supported by
8129         pic16 port,
8130         * device/lib/pic16/libio/i2c/: I2C module support library,
8131         * device/include/pic16/i2c.h: I2C support library header,
8132         * device/lib/pic16/libc/stdio/: standard IO support sources,
8133         * (printf_small.c): printf_small() source, supports float print,
8134         * (printf_tiny.c): printf_tiny() source, does not support floats,
8135         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
8136         enable global optimizations for entire library source, other
8137         Makefiles in the source tree are also modified to reflect this,
8138         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
8139         function,
8140         * doc/sdccman.lyx: updated to reflect new changes,
8141         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
8142         sym->onStack if-case,
8143         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
8144         sbit, idata, _idata, xdata, _xdata,
8145         * added pragma library, to link an external library, (see doc),
8146         * removed command line options, --pomit-config-words, --pomit-ivt,
8147         --pleave-reset-vector,
8148         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
8149         when calling assembler to reflect memory model used, also define
8150         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
8151         reflect stack model used,
8152         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
8153         on stack return NULL,
8154
8155 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
8156
8157         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
8158           of the operands is volatile. Fixes #1020220
8159
8160 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
8161
8162         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
8163         * (OptimizeRegUsage): make sure that there is really no other flow where
8164           the first pCode is used
8165
8166 2005-01-22 Raphael Neider <rneider AT web.de>
8167
8168         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
8169           to fix #1106967 (pCode->seq are not set up correctly)
8170
8171 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8172
8173         * src/SDCCglue.c (glue): make sure code area is declared before the
8174         static initialization area.
8175
8176 2005-01-21 Raphael Neider <rneider AT web.de>
8177
8178         * device/lib/Makefile.in: fixed test for pic16 install dir
8179         * device/lib/pic16/*/Makefile*: modified compile flags to enable
8180           optimizations
8181         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
8182           added --optimize-goto compiler switch and pragma wparam documentation
8183         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
8184         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
8185           and PRODH closing bug #1071770 (peephole optimizer)
8186
8187 2005-01-19 Raphael Neider <rneider AT web.de>
8188
8189         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
8190           cmdLine buffers (used when calling sdcpp...) are large enough
8191           (MAX_PATH=256 truncates arguments leading to system halts when
8192           used in MinGW...)
8193         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
8194         * (genUminus): rewritten to for efficiency
8195         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
8196           used uninitialized in some cases)
8197         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
8198           copy the third byte from the int -- now assumes 0x80 (data memory)
8199         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
8200           operands (genAddLit expects the iCode's operands to swapped as
8201           well), fixed leftover bytes (crashed for short left operands)
8202         * (pic16_genMinusDec): performance improvements, removed false
8203           PIC14 emitSKPNCs
8204         * (pic16_genMinus): fixed to cope with differently sized operands
8205         * src/pic16/glue.c (pic16_glue): added new banksel optimization
8206           for --obanksel > 1
8207         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
8208         * src/pic16/graph.[ch]: implementation of directed graphs, used by
8209           new banksel optimization
8210         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
8211           analysis for temporary registers (segfaults...)
8212         * src/pic16/peeph.def: added rule
8213
8214 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
8215
8216         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
8217         which converts a float number to its ASCII representation
8218         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
8219         functions to convert the fractional and integer part of a float to ASCII,
8220         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
8221         realloc.c): added _MALLOC_SPEC to explicit place variables in data
8222         ram
8223         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
8224         _STATMEM macros,
8225         * device/include/pic16/adc.h: added GPL info,
8226         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
8227         a pCodeOp as tested operand,
8228         * (genNearPointerGet): optimized bit testing, does not use
8229         intermediate register for bit value, test directly instead with
8230         BTFSS, BTFSC, works only for single bits,
8231         * (genpic16Code): dump the name of the iCode in the asm,
8232         * src/pic16/ralloc.c (decodeOp): removed static declaration and
8233         renamed to pic16_decodeOp,
8234         * (serialRegAssign): do not allocate a temporary register for iCode
8235         sequences that test a single bit for 1/0
8236
8237 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
8238
8239         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
8240         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
8241         access stack and frame pointers. They are initially assigned to
8242         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
8243         accessing SFRs. Updated all occurences of modification of stack or
8244         frame pointer in gen.c and pcode.c,
8245         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
8246         assigning of a literal value to pointers,
8247         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
8248         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
8249         selected
8250
8251 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
8252
8253         * doc/sdccman.lyx: update documentation about stack pragma, added
8254         some info for stack memory models
8255
8256 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8257
8258         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
8259
8260 2005-01-08 Raphael Neider <rneider AT web.de>
8261
8262         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
8263           udata sections to fix bug #1097823
8264
8265 2005-01-05 Raphael Neider <rneider AT web.de>
8266
8267         * src/pic16/gen.c (genGenericShift): added handling of differently
8268           sized left operand and result
8269
8270 2005-01-04 Raphael Neider <rneider AT web.de>
8271
8272         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
8273         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
8274           to hold the condition bit)
8275         * added new version of genCmp (old code available via #define)
8276         * added new version of genShiftLeft/genShiftRight in a generic
8277           way, now supports shifting by negative values
8278         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
8279           shiftCount (expected by genGenericShift)
8280         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
8281         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
8282           dump
8283         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
8284           is an invalid literal too...)
8285
8286 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
8287
8288         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
8289         from Raphael Neider,
8290         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
8291         for 8-bit literals. This fixes some literal operands which are sign
8292         extended to 16-bits ints when instruction needs only 8-bits.
8293
8294 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
8295
8296         * device/lib/logf.c: added mcs51 assembly version
8297         * device/lib/expf.c: added mcs51 assembly version
8298         * device/lib/_logexpf.c: new shared asm code for expf and logf
8299         * device/include/math.h: add defines for assembly math library
8300         * device/lib/Makefile.in: build new _logexpf.c
8301         * device/lib/libfloat.lib: use new _logexpf.c
8302
8303 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
8304
8305         * src/pic/device.c
8306         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
8307           device types which have less than 0x7f registers.
8308
8309 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
8310
8311         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
8312
8313 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
8314
8315         * device/lib/printf_fast.c: only build on supported arch.
8316         * device/lib/printf_tiny.c: only build on supported arch.
8317         * device/lib/printf_fast_f.c: only build if asm float lib
8318         * device/lib/_fsget1arg.c: only build if asm float lib
8319         * device/lib/_fsget2args.c: only build if asm float lib
8320         * device/lib/_fsnormalize.c: only build if asm float lib
8321         * device/lib/_fsreturnval.c: only build if asm float lib
8322         * device/lib/_fsrshift.c: only build if asm float lib
8323         * device/lib/_fsswapargs.c: only build if asm float lib
8324         * device/include/stdio.h: don't provide print_fast,
8325           print_fast_f, print_tiny prototypes if --xstack used
8326
8327 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
8328
8329         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
8330         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
8331           to the SOURCES
8332
8333 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
8334
8335         * device/lib/printf_fast_f.c: same as printf_fast, but
8336           with floating point enabled
8337         * device/lib/printf_fast.c: minor tweaks
8338         * device/include/stdio.h: add printf_fast_f
8339
8340 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
8341
8342         * src/SDCCmain.c: make --float-reent default for mcs51
8343         * device/lib/_fsadd.c: added mcs51 assembly version
8344         * device/lib/_fssub.c: added mcs51 assembly version
8345         * device/lib/_fsmul.c: added mcs51 assembly version
8346         * device/lib/_fsdiv.c: added mcs51 assembly version
8347         * device/lib/_fseq.c: added mcs51 assembly version
8348         * device/lib/_fsneq.c: added mcs51 assembly version
8349         * device/lib/_fsgt.c: added mcs51 assembly version
8350         * device/lib/_fslt.c: added mcs51 assembly version
8351         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
8352         * device/lib/Makefile.in: add _fscmp to build
8353         * device/lib/libfloat.lib: add _fscmp to build
8354
8355 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
8356
8357         * device/lib/_fs2slong.c: added mcs51 assembly version
8358         * device/lib/_fs2sint.c: added mcs51 assembly version
8359         * device/lib/_fs2schar.c: added mcs51 assembly version
8360         * device/lib/_fs2ulong.c: added mcs51 assembly version
8361         * device/lib/_fs2uint.c: added mcs51 assembly version
8362         * device/lib/_fs2uchar.c: added mcs51 assembly version
8363         * device/lib/_slong2fs.c: added mcs51 assembly version
8364         * device/lib/_sint2fs.c: added mcs51 assembly version
8365         * device/lib/_schar2fs.c: added mcs51 assembly version
8366         * device/lib/_ulong2fs.c: added mcs51 assembly version
8367         * device/lib/_uint2fs.c: added mcs51 assembly version
8368         * device/lib/_uchar2fs.c: added mcs51 assembly version
8369         * device/include/float.h: added #define to select asm vs c
8370
8371 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
8372
8373         * device/lib/printf_fast.c: improvements to float output
8374         * device/include/float.h: add defines for assembly float library
8375         * device/lib/_fsget1arg.c: receive 1 float arg
8376         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
8377         * device/lib/_fsnormalize.c: normalize a float
8378         * device/lib/_fsreturnval.c: return float, various helper routines
8379         * device/lib/_fsrshift.c: right shift a float's mantissa
8380         * device/lib/_fsswapargs.c: swap 2 floats
8381         * device/lib/Makefile.in: build these 6 new files for mcs51
8382         * device/lib/libfloat.lib: add these 6 files to the library
8383
8384 2004-12-26 Borut Razem <borut.razem AT siol.net>
8385
8386         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
8387           built by gcc 3.4.2
8388
8389 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
8390
8391         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
8392           and fully reentrant and register bank neutral.
8393         * device/lib/printf_fast.c: added float (not enabled by default),
8394           added compact/slower integer (also not enabled by default),
8395           improved size/speed of fast integer code, other minor changes
8396         * device/include/stdio.h, device/lib/Makefile.in,
8397           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
8398
8399 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
8400
8401         * src/pic16/pcode.c: declaring variables other than at the start of a
8402           block is not supported in C by VC6.
8403
8404 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
8405
8406         * applied a previous patch from Raphael Neider that wasn't included
8407         in the previous commits, which fixes infinite loops within jumptable
8408         improvements,
8409         * made some fixes that previous patches introduced
8410
8411 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
8412
8413         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
8414         that fixes an issue with AOP_PCODE asmop's offset,
8415         * (pic16_popCopyReg): update instance field too,
8416         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
8417         function of pic port,
8418         * (genCmp, genAnd, genAssign),
8419         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
8420
8421 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
8422
8423         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
8424         variables initial values to idata section,
8425         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
8426         variables in some functions. This utilizes parmBytes field of iCode
8427         structure to hold the offset of the variable in stack. (might be
8428         able to use the stack field too?)
8429         * applied patch from Raphael Neider # ### , # ###
8430         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
8431         variable initial values in idata section,
8432         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
8433         for static variables with initial value
8434         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
8435         applied fix in while loop from Raphael Neider.
8436
8437 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
8438
8439         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
8440         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
8441         * src/ds390/ralloc.c (serialRegAssign): spill bits
8442         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
8443         * support/Util/SDCCerr.c,
8444         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
8445         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
8446         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
8447
8448 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
8449
8450         * device/include/sdcc-lib.h: inserted LGPL, added includes
8451           asm/ds390/features.h and asm/mcs51/features.h
8452         * device/include/asm/default/features.h,
8453         * device/include/asm/gbz80/features.h,
8454         * device/include/asm/z80/features.h: added empty _AUTOMEM
8455           and _STATMEM
8456         * device/include/asm/ds390/features.h,
8457         * device/include/asm/mcs51/features.h: added files with defines for
8458           _AUTOMEM and _STATMEM indicating automatic and static storage class
8459         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
8460         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
8461         * src/SDCCicode.c (geniCodeCast),
8462         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
8463         * src/SDCCloop.c (loopInduction): removed unused variable lr
8464         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
8465           to convertToFcall to include char modulo (RFE 1065037), added check
8466           if left operand is unsigned and use abs of literal value
8467         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
8468           as it doesn't work after conversion from peephole.def to peephole.rul
8469         * src/mcs51/gen.c (toBoolean): added check for size,
8470           (genModOneByte): optimized code for signed char modulo a literal
8471           power of 2 (thanks to Hubert Sack),
8472           (genRRC): removed unnecessary "clr c",
8473           (genRLC): replaced "add a,acc" with cheaper "rlc a"
8474         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
8475           jump optimization,
8476           swapped rules 256.c and 256.d,
8477           extended 256.d by using new multiple checks (thanks Erik),
8478           added rules 256.e and 256.f,
8479           updated rule 261.a and 261.b to new generated code
8480         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
8481
8482 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8483
8484         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
8485           induction related bugs, including first part of bug #1074377
8486
8487 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
8488
8489         * applied patch from bug-report #1076292,
8490         * applied patches for genAnd and Goto-optimizations for Raphael
8491         Neider,
8492         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
8493         dump a less iCode information,
8494         * src/pic16/device.h (pic16_options_t): added field debgen,
8495         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
8496         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
8497         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
8498         puclic,
8499         * (various functions): added macros FENTRY and FENTRY2 to functions,
8500         to emit function prologue,
8501         * (various functions): fixed indentation,
8502         * (genNearPointerGet): fixed loading of FSR0,
8503         * (genPackBits): applied patch from Raphael Neider to fix updating
8504         of FSR0 and touching only the modified bits,
8505         * src/pic16/genarith.c (various functions): added macros FENTRY to
8506         emit function prologue in comments,
8507         * src/pic16/pcode.h: added functions debugf2, debugf3,
8508         * src/pic16/ralloc.c: partial fix for packForPush caused
8509         segmentation fault,
8510
8511 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8512
8513         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
8514           <stsp AT users.sourceforge.net> with reversed byte order
8515         * support/regression/tests/rotate.c: added (ds390 skips some tests)
8516
8517 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8518
8519         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
8520           bug #1074377
8521         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
8522         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
8523
8524 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
8525
8526         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
8527
8528 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8529
8530         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
8531           conditions,
8532           (setFromConditionArgs): friendly operand parser for peephole rules,
8533           (operandBaseName, operandsNotRelated): new peephole condition
8534           "operandsNotRelated" -- similar to "operandsNotSame", but takes
8535           architecture specific register naming into account, handles n-way
8536           comparisons, and supports quoted literals
8537         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
8538
8539 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8540
8541         * src/mcs51/peeph.def: fixed bug #1076940
8542
8543 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
8544
8545         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
8546
8547 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8548
8549         Adding support for replacing ljmps with sjmps in jumptables
8550         generated for switch statements. For now you need to set the
8551         environment variable SDCC_SJMP_JUMPTABLE to enable this.
8552         Now 4 algorithms for mcs51 jumptable generation are used:
8553         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
8554         addresses loaded pc-relative for up to 112 cases and stack-pushing
8555         target addresses loaded with offset from dptr for up to 256 cases.
8556
8557         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
8558         * src/mcs51/main.c: adapted constants for switch table generation
8559         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
8560
8561 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
8562
8563         * device/lib/printf_large.c (_print_format): fixed bug 1073386
8564         * support/regression/tests/bug1057979.c: added test for bug 1073386
8565
8566 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
8567
8568         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
8569         compilers
8570
8571 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
8572
8573         * src/pic16/device.h,
8574         * src/pic16/genarith.c,
8575         * src/pic16/glue.c,
8576         * src/pic16/main.c,
8577         * src/pic16/pcode.c: applied patches #1068154 and #1070213
8578
8579 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
8580
8581         Large cummulative patch for pic16 port.
8582         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
8583         to call when a stack overflow occurs,
8584         * (malloc.h): added CVS Id tag,
8585         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
8586         variable,
8587         * added libc directory. The current version of LibC contains string
8588         functions, ctype functions and macros and some functions of the
8589         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
8590         be extensively tested in the future. Standard disclaimer here.
8591         Library is not automatically build yet. But one can build it by
8592         invoking 'make' inside the libc directory.
8593         * added ADC library under libio. Preliminary version yet.
8594
8595         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
8596         * src/pic16/gen.c (aopForRemat): asmop size is filled by
8597         aopForRemat() now and not by pic16_aopOp(),
8598         * (pic16_popGetTempReg): removed warning messgae when allocating
8599         temporary registers, its a buggy feature and will be removed,
8600         * (pic16_popGet): set register instance field in AOP_CRY,
8601         * (pic16_outBitC): fixed for results in size greater than 1,
8602         * (genUminusFloat): fixed for pic16, ported code from mcs51,
8603         * (pic16_storeForReturn): optimized return of 0,
8604         * (genCmp): experimental code for new genCmp which uses PIC18's
8605         special compare&skip instructions. Initial tests fail some times
8606         with variables grater than 1 byte in size, so new code is disabled,
8607         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
8608         a single bit,
8609         * (genCast): began a fix to optimize the casting of a bit to another
8610         bit, now assigning a bitfield to another bitfield will fail, sorry,
8611         * src/pic16/main.c: disabled the use of lr-support feature,
8612         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
8613         * added some function prototypes, added function _debugf prototype,
8614         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
8615         bits with offset (case PO_GPR_BIT),
8616         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
8617         command line,
8618         * (isBankInstruction): modified to return 0 for no banking instruction,
8619         and 1 for banking instruction,
8620         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
8621         caused stop processing pCodes after a inline assembly block,
8622         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
8623         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
8624         registers when it shouldn't,
8625         * src/pic16/ralloc.c (allocReg): add preliminary support for
8626         supporting a limited set of temporary registers,
8627
8628 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8629
8630         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
8631           genDataPointerSet): ensure assignments always copy in MSB to LSB
8632           order,
8633           (loadRegFromAop): recognize CLRH optimization,
8634           (genFunction): optimize RECEIVE iCodes in reentrant functions
8635
8636 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8637
8638         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
8639           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
8640           selected.
8641         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
8642         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
8643           contiguous with data
8644
8645 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8646
8647         * device/lib/_gptrget.c (_gptrget),
8648         * device/lib/_gptrgetc.c (_gptrgetc),
8649         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
8650           instead of sjmp to ret
8651         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
8652           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
8653
8654 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
8655
8656         * .version: bumped version to 2.4.7
8657         * device/lib/_gptrget.c (_gptrget): is now _naked
8658         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
8659         * device/lib/_gptrput.c (_gptrput): is now _naked
8660         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
8661           (createFunction): fixed xstack
8662         * src/SDCCglue.c (emitMaps): set allocation required for bit area
8663         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
8664           or bit either,
8665           (geniCodeCritical): store original interrupt state in an iTemp bit
8666           var unless stack-auto
8667         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
8668         * src/SDCCmain.c (setIncludePath): added include/target to search path
8669         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
8670         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
8671           prototype,
8672           (processFuncArgs): put bit vars in bit area
8673         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
8674           unsaveRBank): fixed xstack,
8675           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
8676           (genFunction, genEndFunction): fixed xstack,
8677           (genAssign): optimization don't walk backwards through mem
8678         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
8679         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
8680         * support/regression/Makefile: also make library (for stack-auto) when
8681           making "all" and added "test-mcs51-xstack-auto"
8682         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
8683         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
8684         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
8685         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
8686         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
8687           make-library by MAKE_LIBRARY
8688         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
8689           regression tests for xstack
8690         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
8691         * support/regression/tests/critical.c: test for critical on mcs51
8692
8693 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8694
8695         * support/regression/ports/ucz80/spec.mk: use include and lib files from
8696           built version of sdcc instead of installed version
8697
8698 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
8699
8700         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
8701         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
8702           vprintf.c now
8703         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
8704         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
8705           WARNING: remove device/lib/build/z80/printf.o by hand when
8706           updating from previous build!
8707         * device/lib/z80/printf.c: updated comment
8708         * support/regression/tests/bug1057979.c: test all ports now
8709         * support/regression/tests/bug1065458.c: file added
8710
8711 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8712
8713         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
8714           *_start and *_end symbols for static functions
8715
8716 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
8717
8718         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
8719           and search crt0.o in all library paths,
8720           (setIncludePath): proper handling of --nostdinc,
8721           (setLibPath): proper handling of --nostdlib
8722         * support/regression/Makefile,
8723         * support/regression/ports/ds390/spec.mk,
8724         * support/regression/ports/gbz80/spec.mk,
8725         * support/regression/ports/hc08/spec.mk,
8726         * support/regression/ports/mcs51/spec.mk,
8727         * support/regression/ports/mcs51-large/spec.mk,
8728         * support/regression/ports/mcs51-stack-auto/spec.mk,
8729         * support/regression/ports/z80/spec.mk: use include and lib files from
8730           built version of sdcc instead of installed version
8731         * doc/sdccman.lyx: fixed typo in --nostdinc
8732
8733 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
8734
8735         * src/pic/pcode.c,
8736         * src/pic/device.c,
8737         * src/pic/ralloc.c,
8738         * src/pic/gen.c : added support to generate code for struct bit fields.
8739
8740 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
8741
8742         * as/xa51/xa_version.h,
8743         * device/include/errno.h,
8744         * device/include/regc515c.h,
8745         * device/lib/_itoa.c,
8746         * device/lib/_ltoa.c,
8747         * device/lib/ser_ir_cts_rts.c,
8748         * sim/ucsim/xa.src/glob.cc,
8749         * sim/ucsim/xa.src/inst_gen.cc,
8750         * sim/ucsim/xa.src/xa_bit.cc,
8751         * sim/ucsim/xa.src/xa_sfr.cc,
8752         * sim/ucsim/z80.src/inst_dd.cc,
8753         * sim/ucsim/z80.src/inst_fdcb.cc,
8754         * support/scripts/keil2sdcc.pl,
8755         * src/pic16/pic16.dsp,
8756         * src/pic16/pic16a.dsp: corrected cvs line endings
8757         * device/lib/printf_large.c: fixed bug 1057979
8758         * src/pic16/gen.c: fixed non-C standard code
8759         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
8760         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
8761         * support/regression/ports/mcs51/support.c: reload T1 asap
8762         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
8763           pdata use and clear idata startup behaviour
8764         * support/regression/tests/bug1057979.c: added
8765
8766 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
8767
8768         * device/examples/ds390/ow390/ad26.h,
8769         * device/examples/ds390/ow390/cnt1d.h,
8770         * device/examples/ds390/ow390/crcutil.c,
8771         * device/examples/ds390/ow390/ownet.h,
8772         * device/examples/ds390/ow390/owsesu.c,
8773         * device/examples/ds390/ow390/swt12.h,
8774         * device/examples/ds390/ow390/swtoper.c,
8775         * device/examples/ds390/ow390/temp10.h,
8776         * device/examples/ds390/ow390/thermodl.c,
8777         * device/examples/ds390/tinitalk/tinitalk.dsp,
8778         * device/examples/ds390/tinitalk/tinitalk.dsw,
8779         * device/examples/mcs51/clock/hw.h,
8780         * device/examples/mcs51/simple2/go.bat,
8781         * device/examples/serialcomm/windows/serial.h,
8782         * device/examples/xa51/dummy.c,
8783         * device/examples/xa51/hello.c,
8784         * device/include/80c51xa.h,
8785         * device/include/at89x051.h: corrected cvs line endings
8786
8787 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
8788
8789         * src/pic16/main.c (options): added command line --gstack, to trace
8790         stack over/under flows,
8791         * added pragma 'wparam' to allow passing first byte of function
8792         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
8793         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
8794         call to __gstack_test function and sets up the symbol as extern,
8795         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
8796         * popaop): added call to pic16_testStackOverflow,
8797         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
8798         wparamList list,
8799         * (genCall, genPcall): now all parameters are passed via stack
8800         except in functions that are pass to wparam pragma in which WREG is
8801         used too,
8802         * (genPcall): REENTRANT flag is checked to see if variable prototype
8803         contains reentrant keyword, don't call a non-reentrant function, via
8804         a reentrant function pointer or vice versa, functions are never
8805         passed via WREG,
8806         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
8807         D.Winkler,
8808         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
8809         SIGSEGV when accessing a NULL register stucture,
8810         * (pic16_printGPointerType): modified to handle UPPER modifier for
8811         function initializers, changed prototype of function to simpler one,
8812         * (pic16_printIvalFuncPtr): check to see if function is already
8813         added in externs list,
8814         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
8815         optimized a move from W to SFR with a move to the same register
8816         later after a CALL,
8817         * device/lib/pic16/debug: NEW directory, contains debug features
8818         which are enabled when linking with libdebug.lib, currently command
8819         line option --gstack enables stack pointer tracing for over/under
8820         flow, corresponding sources are in debug/gstack
8821
8822 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
8823
8824         * doc/sdccman.lyx: updated SDCC version,
8825         * (PIC16 port): update list of command line options,
8826         * src/pic16/device.h (structure pic16_options_t): added field gstack
8827         to enable stack overflow tracing on push/pops,
8828         * src/pic16/device.c (statistics structure): added statistics
8829         structure,
8830         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
8831         pic16_dump_int_registers): increase statistics counters for each
8832         * variable which is encountered
8833         * (pic16_dump_usection): emit each .udata variable to its own udata
8834         section,
8835         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
8836         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
8837         parameters via stack, otherwise use old scheme,
8838         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
8839         assembler output file,
8840         * src/pic16/main.c: added command line options --gstack to enable
8841         push/pop tracing for stack overflow,
8842         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
8843         instructions): added size of each instruction,
8844         * (pic16_countInstruction): estimate size of instructions in
8845         the_pFile list, inline assembly blocks are not counted,
8846         * (pic16_FixRegisterBanking): trace previous register usage, when
8847         banksel optimizations is greater than 0, don't emit a redudant
8848         banksel directive,
8849
8850 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
8851
8852         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
8853         * src/pic16/ralloc.c : applied same fix for pic16.
8854         * src/pic/gen.c : tidied it up a little.
8855
8856 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8857
8858         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
8859         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
8860
8861 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8862
8863         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
8864
8865 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8866
8867         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
8868         non-reentrant function __modsint in the interrupt function (thus
8869         corrupting math operations during serial I/O)
8870         * device/lib/ser_ir.c: as above, changed buffersize
8871         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
8872         256.c,d for zeroing
8873         * doc/Makefile: added option -t for rsync
8874
8875 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8876
8877         * src/SDCCast.h (struct ast),
8878         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
8879
8880 2004-10-20 Borut Razem <borut.razem AT siol.net>
8881
8882         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
8883         package
8884
8885 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
8886
8887         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
8888         makefile targets,
8889         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
8890         support functions to replace long sequences of MOVFF's from access
8891         bank registers to stack and vice versa,
8892         * src/pic16/device.h: added new field opt_flags, where optimization
8893         flags can be set to enable certain features,
8894         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
8895         * pBlock, (genFunction, genEndFunction): surroung loop for
8896         saving/loading used registers in stack with PC_INFO pCodes,
8897         INF_LREGS. Code in between can then be optimized by pCode optimizer
8898         to support function calls,
8899         * (genDataPointerSet): fixed bug which loaded float fields in
8900         structures with corrupt data,
8901         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
8902         in a standard way debug info on stderr. Feature used for developing
8903         and debugging only,
8904         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
8905         obsolete chunks of code,
8906         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
8907         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
8908         * pic16/src/pcode.c (pic16_newpCodeInfo,
8909         * (pic16_newpCodeOpLocalRegs),
8910         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
8911         feature,
8912         * (pic16_pCodeConstString): printing of the initial value of a
8913         symbol as a comment is inhibited since parsing was already done by
8914         copyStr and output is corrupt,
8915         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
8916
8917 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8918
8919         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
8920
8921 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
8922
8923         * as/mcs51/lkarea.c: removed old K&R style,
8924           (lnksect): changed check on boundary error,
8925           (lnksect2): changed check on boundary error,
8926           (lnksect2): extend XSTK to end of page if size = 1
8927         * as/mcs51/lkmain.c: removed old K&R style,
8928           (Areas51): create l_IRAM symbol
8929         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
8930         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
8931           model-mcs51-stack-auto, added model-mcs51-xstack-auto
8932         * device/lib/_mullong.c: added version to be compiled with xstack
8933         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
8934         * device/lib/mcs51/crtxclear.asm: clear pdata as well
8935         * device/lib/mcs51/crtxstack.asm: fixed comment
8936         * src/SDCCglue.c: maxInterrupts defaults to 0,
8937           (emitMaps): added pdata,
8938           (createInterruptVect): (re)moved default,
8939           (glue): added pdata,
8940           (glue): moved __start__xstack to XSTK with default size 1
8941         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
8942           and options.float_rent when options.stackAuto is set,
8943           (linkEdit): only write XDATA_NAME if provided on command line
8944         * src/SDCCmem.h,
8945         * src/SDCCmem.c: added pdata
8946         * src/port.h: added pdata_name to PORT
8947         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
8948           (saveRegisters, unsaveRegisters): removed usage of B,
8949           (genMinus): fixed accumulator clash,
8950           (genJumpTab): added comment, this needs another look
8951         * src/mcs51/gen.c: added check for "B in use" paranoia,
8952           added pushB() and popB()
8953         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
8954           chance
8955         * src/avr/main.c,
8956         * src/ds390/main.c,
8957         * src/hc08/main.c,
8958         * src/mcs51/main.c,
8959         * src/pic/main.c,
8960         * src/pic16/main.c,
8961         * src/xa51/main.c,
8962         * src/z80/main.c: (reset_regparms) made void parameter explicit and
8963           added PSEG (PAG,XDATA) or NULL to port specifier
8964         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
8965         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
8966           (_mcs51_genInitStartup): removed __start__xstack equ,
8967           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
8968         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
8969         * src/z80/gen.c (_rleAppend): fixed warnings
8970         * support/regression/tests/zeropad.c: added pdata test
8971         * .version: bumped to 2.4.6
8972
8973 2004-10-17 Borut Razem <borut.razem AT siol.net>
8974
8975         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
8976         as a part of nightly build
8977
8978 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
8979
8980         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
8981         WREG holds the first byte function parameters,
8982         * (aopForSym): take special case for symbols which are in FARSPACE
8983         but in CODESPACE too,
8984         * (assignResultValue): modified to take into account _G.useWreg,
8985         * (genCall): don't use wreg for parameter passing when function is
8986         declared as reentrant, too, added optimization INCF to stack
8987         pointer when stack parameter count is 1,
8988         * (genFunction, genEndFunction): refurnished and fixed to not using
8989         wreg for passing parameters when function has varargs or is
8990         reentrant, fixed bug with symbol name compare for generating
8991         functions in absolute address,
8992         * (pic16_storeForReturn): refurnished,
8993         * (genCmp): began writing a new version of the function, not ready
8994         yet, therefore it is disabled,
8995         * (genAssign): do not read code memory when assigning a function to
8996         a pointer function,
8997         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
8998         array of characters, not pointer,
8999         * (pic16initialComments): in debug mode emit an .ident directive for
9000         the assembler,
9001         * (_process_pragma): emit a new warning type (internal to pic16)
9002         when setting stack to default length, emit a similar warning when
9003         placing a function at absolute address and address is not word aligned
9004         * (_pic16_parseOptions): added 'return TRUE' statement,
9005         * (_pic16_linkEdit): if compiling a source, then add the source's
9006         file object, first in the list of objects to link,
9007
9008 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
9009
9010         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
9011         * src/pic/main.c : removed VC warning.
9012         * src/pic/gen.c : changed comment.
9013
9014 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
9015
9016         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
9017         reference to a deprecated symbol _GPTRREG was causing failure to
9018         link. Thanks G. M. Gallant for the info.
9019
9020 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
9021
9022         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
9023         comments for Bugs item #954788.
9024
9025 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
9026
9027         * src/pic16/device.c (pic16_dump_gsection,
9028         * pic16_groupRegistersInSection): handle symbols declared to be in
9029         access bank differently,
9030         * src/pic16/gen.c (struct _G): added field resDirect,
9031         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
9032         send values read from stack directly to result and don't allocate
9033         temporary values,
9034         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
9035         same registers,
9036         * (pic16_sameRegsOfs): NEW,
9037         * (freeAsmop): if _G.resDirect is set then do not mark registers as
9038         free because they were not allocated from temporary pool,
9039         * pic16_popRegFromString): workaround to fix a problem with
9040         allocating variables twice or never,
9041         * (genGenPointerGet): using PRODL instead of FSR0H,
9042         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
9043         instead of FSR0H,
9044         * (genAssign): take advantage of the _G.resDirect flag,
9045         * (genCast): around line 11844, use mov2f instead of directly
9046         MOVFF'ing between operands to account for literal values,
9047         * src/pic16/genutils.c: some new debug functions for gpsim have been
9048         added,
9049         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
9050         float with integer part only,
9051         * src/pic16/main.c (_process_pragma): handle pragma udata access to
9052         place variables in access bank
9053         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
9054         updated sources to reflect recent changes in gen.c
9055
9056 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
9057
9058         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
9059         sources that searched for headers in installation path, now the
9060         device/include/pic16 is used,
9061         * src/pic16/glue.c (pic16glue),
9062         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
9063         .line directives if not in debug mode, this suppresses assembler's
9064         warnings for ignored directives
9065
9066 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
9067
9068         * src/port.h: made reset_regparms prototype void parameter explicit.
9069         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
9070         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
9071         * doc/sdccman.lyx: documented warning disabling and how to use
9072           printf_large to make it print floats.
9073         * device/include/stdbool.h: NEW
9074         * device/lib/_atof.c,
9075         * device/lib/_divuint.c,
9076         * device/lib/_divulong.c,
9077         * device/lib/expf.c,
9078         * device/lib/printf_large.c,
9079         * device/lib/sincosf.c,
9080         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
9081         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
9082           a completely reentrant lib.
9083
9084 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
9085
9086         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
9087         * device/include/pic16/stdio.h: fixed bug with colon
9088
9089 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
9090
9091         * device/include/pic16/stdio.h,
9092         * device/include/pic16/stdlib.h,
9093         * device/include/pic16/math.h: NEW
9094         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
9095         declared as _naked to reduce overhead
9096         * device/lib/Makefile.in (target port-specific-objects-pic16):
9097         changed * to *.* so to ignore the CVS directory,
9098         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
9099         stacked variables back in stack,
9100         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
9101         corruption
9102
9103 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
9104
9105         * .version: bumped version number to 2.4.5
9106         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
9107         * support/Util/SDCCerr.c (messages structure): added entry for
9108         W_POSSBUG2
9109
9110         Large cumulative patch for pic16 port and libraries.
9111         * device/include/pic16/sdcc-lib.h,
9112         * device/include/pic16/stdarg.h,
9113         * device/include/asm/pic16/features.h,
9114         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
9115         * device/include/pic16/float.h: changes reentrant keyword with
9116         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
9117         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
9118         updated target build-libraries to include objects from gptr,
9119         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
9120         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
9121         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
9122         all function headings,
9123         * src/SDCCmain.c: added global parameter userIncDirsSet,
9124         * (parseCmdLine): when option -I is encountered add directory to
9125         userIncDirsSet too,
9126         * src/version.awk: added space between control and long,
9127         * src/pic16/NOTES: added some notes for the port,
9128         * src/pic16/gen.c: added prototype for mov2fp function,
9129         * (fReturnpic16[]): properly named return value registers,
9130         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
9131         * (aopForSym): added code to handle symbols with onStack flag set,
9132         symbols onStack are allocated PTRSIZE bytes,
9133         * (aopFreeAsmop): handles special case where asmops are stack objects,
9134         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
9135         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
9136         added argument lock to trace flaws in allocating temporary registers
9137         when developing port,
9138         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
9139         * (pic16_popRegFromString): reenabled allocating a direct register
9140         from string,
9141         * (assignResultValue): various beautifications,
9142         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
9143         referenced function argument,
9144         * (genIpush): reenabled to allow stacked arguments, handles only
9145         ic->parmPush iCodes,
9146         * (genCall, genPcall): major changes to allow for variable argument
9147         functions, fixed a bug with falsely restoring stack pointer after
9148         returning from call,
9149         * (genFunction): pending code for critical function,
9150         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
9151         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
9152         * (genNearPointerGet): fixed bug with indirect reading, was always
9153         reading from INDF0
9154         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
9155         pointers,
9156         * (genAddrOf): rewrote code to take address of a stacked function parameter
9157         * (genCast): fixed casting to generic pointer type,
9158         * src/pic16/gen.h: added AOP_STA,
9159         * (struct asmop): added field stk,
9160         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
9161         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
9162         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
9163         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
9164         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
9165         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
9166         generic pointers,
9167         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
9168         and library paths,
9169         * (pic16_port structure): generic pointer size is set to 3,
9170         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
9171         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
9172         compiler warning,
9173         * src/pic16/ralloc.c (allocReg): prevent allocating register when
9174         operand is an iTemp,
9175
9176 2004-09-24 Martin Helmling <mh AT octo-soft.de>
9177
9178         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
9179         * debugger/mcs51/simi.c: addapt new syntax of s51
9180
9181 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
9182
9183         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
9184         * src/pic16/pcode.c: commented out some calls to free() in order to
9185         fix bug #989576,
9186
9187 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9188
9189         * src/SDCCicode.h,
9190         * src/SDCCicode.c (isiCodeInFunctionCall),
9191         * src/avr/ralloc.c (selectSpil),
9192         * src/pic/ralloc.c (selectSpil),
9193         * src/pic16/ralloc.c (selectSpil),
9194         * src/ds390/ralloc.c (selectSpil),
9195         * src/hc08/ralloc.c (selectSpil),
9196         * src/xa51/ralloc.c (selectSpil),
9197         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
9198         stack in the middle of a function call sequence (fixes bug #1020268)
9199         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
9200         costs associated with the minimum switch case.
9201
9202 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9203
9204         * src/SDCC.lex: fixed bug #1030549
9205
9206 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9207
9208         * src/SDCCcse.h (struct cseDef),
9209         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
9210         over a function call if the CSE is derived from a symbol whose
9211         address has been taken (fixes bug #1029883)
9212         * support/regression/tests/bug-1029883: a new regression test for
9213         this bug
9214
9215 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9216
9217         * src/hc08/gen.c (emitinline): fixed bug #1029778
9218         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
9219         to a cast object is no longer a syntax error ("fixes" bug #1030006,
9220         and starts toward RFE #905167)
9221
9222 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
9223
9224         * src/pic16/gen.c (mov2f): New function to move an operand to
9225         another without considering if it is a literal or a register,
9226         * (pic16_sameRegs): don't check if they are both AOP_REG,
9227         * (AccRsh): removed andmask=0 lines,
9228         * (genLeftShift): duplicated to be improved in future versions,
9229         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
9230         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
9231         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
9232         * (pic16initMnemonics): added initialization for POC_INFSNZW,
9233         * (insertBankSwitch): fixed inserting banksel directives algorithm
9234         for instructions that follow a skip instruction, this fixes a report
9235         for broken subtraction code generation,
9236         * src/pic16/ralloc.c (deassignLRs): do not free register if current
9237         iCode is a left op, just in case result and right share the same
9238         registers
9239
9240 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9241
9242         * src/hc08/main.c,
9243         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
9244         preservation of HX
9245         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
9246         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
9247         on 2004-09-12; it was buggy
9248
9249 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
9250
9251         * src/SDCCsymt.h: removed RESULT_CHECK
9252         * src/SDCCast.c,
9253         * src/SDCCglue.c,
9254         * src/SDCCval.c,
9255         * src/pic/glue.c,
9256         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
9257
9258 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
9259
9260         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
9261         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
9262         configuration values no more rejected by compiler, they are assigned
9263         to configuration registers with a warning message instead,
9264         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
9265         the for-loop so last conf register is emitted too,
9266         * (_pic16_initPaths): link library libsdcc.lib by default,
9267         * (_hasNativeMulFor): modified test for multiplication according to
9268         Raphael Neider's remarks. Integer multiplication is also done with
9269         support functions,
9270         * device/include/pic16/pic18fregs.h: corrected type error in while
9271         testing and including 18f6720 header file
9272
9273 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
9274
9275         * src/pic16/device.h (pic16_options): removed field use_crt,
9276         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
9277         until an optimization to handle single bits is added,
9278         * (pic16_loadFSR0): moved before genUnpackBits,
9279         * (genAnd): some white lines removed,
9280         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
9281         leave_reset flags in pic16_options when using crt modules,
9282
9283 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
9284
9285         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
9286           for bugs 898889 & 979599. Also used some safer print instructions.
9287
9288 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
9289
9290         * src/pic16/device.h (pic16_options_t): added field use_crt,
9291         crt_name, no_crt,
9292         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
9293         catch a probable future bug,
9294         * src/pic16/gen.c: aopIdx function commented out,
9295         * (genAssign): commented out old code which used aopIdx,
9296         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
9297         code, added if conditionals to take into account the --use-crt
9298         command line options,
9299         * src/pic16/main.c (pic16_optionsTable): added new command line
9300         options, --use-crt= and --no-crt,
9301         * (_pic16_linkEdit): now the proper crt object is added in the
9302         linker command line except than when --no-crt is specified,
9303         * src/pic16/pcode.c,
9304         * src/pic16/pcode.h: added some structures and functions for a new
9305         optimization scheme to compansate for instruction overhead between
9306         same iCodes, this scheme is currently under development and is not
9307         working in any way,
9308         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
9309         to && operator,
9310         * device/lib/pic16/startup/crt0i.c,
9311         * device/lib/pic16/startup/crt0iz.c: added global char variable
9312         __uflags to force the generation of an idata section
9313
9314 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
9315
9316         * doc/Makefile,
9317         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
9318         * doc/sdccman.lyx: updated sdcc version to 2.4.4
9319
9320 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9321
9322         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
9323         Frieder) and clarified the default code optimization mode
9324
9325 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9326
9327         * src/SDCC.lex (doPragma, process_pragma),
9328         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
9329         "opt_code_size", and "opt_code_balanced"
9330         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
9331         regrouped options by category, added support for category headers
9332         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
9333         and "--opt-code-size"
9334         * doc/sdccman.lyx: documented these new options and pragmas
9335         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
9336         preference into account
9337
9338 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
9339
9340         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
9341           geniCodePreDec): Fixed bug 904237 by generating a warning
9342         * src/SDCCerr.h,
9343         * src/SDCCerr.c: added warning W_SIZEOF_VOID
9344
9345 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
9346
9347         * src/pic/device.c : When no max ram set validate full memory range.
9348         * src/pic/pcode.c,
9349         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
9350
9351 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
9352
9353         * device/lib/_gptrget.c,
9354         * device/lib/_gptrput.c: updated comment
9355         * device/lib/calloc.c,
9356         * device/lib/free.c,
9357         * device/lib/malloc.c,
9358         * device/lib/realloc.c: added LGPL, made them reentrant-safe
9359         * src/SDCCcse.c (cseBBlock),
9360         * src/SDCCicode.c (printOperand, geniCodeArray),
9361         * src/SDCCicode.h (struct operand): fixed bug 868103
9362         * support/regression/tests/bug-868103.c: added
9363         * src/SDCCast.c (searchLitOp),
9364         * src/SDCCcse.h (struct cseDef),
9365         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
9366         * src/SDCCicode.h (struct operand),
9367         * src/SDCCsymt.h (struct sym_link),
9368         * src/avr/gen.c (hasInc),
9369         * src/ds390/gen.c (hasInc),
9370         * src/hc08/gen.c (genPlusIncr, hasInc),
9371         * src/mcs51/gen.c (hasInc),
9372         * src/pic16/glue.c (pic16_printIvalChar),
9373         * src/pic16/ralloc.c (regWithIdx),
9374         * src/xa51/gen.c (hasInc) : removed warnings
9375         * src/SDCCast.c (createBlock): added comment ???
9376         * src/hc08/ralloc.c: updated comments
9377
9378 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9379
9380         * doc/sdccman.lyx: updated section on switch statements, added
9381         section about semaphore locking
9382         * doc/Makefile: added option -info for latex2html
9383         * device/lib/_gptrget.c,
9384         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
9385
9386 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
9387
9388         * src/pic/device.h,
9389         * src/pic/device.c,
9390         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
9391          maxram is less than 0x100.
9392
9393 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
9394
9395         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
9396
9397 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9398
9399         * src/port.h,
9400         * src/mcs51/main.c,
9401         * src/ds390/main.c,
9402         * src/z80/main.c,
9403         * src/hc08/main.c,
9404         * src/pic/main.c,
9405         * src/pic16/main.c,
9406         * src/avr/main.c,
9407         * src/xa51/main.c
9408         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
9409         a jump table is the best form for a switch statement, including
9410         automatic insertion of missing cases to make the case range
9411         continuous. Developed in collaboration with Frieder Ferlemann.
9412
9413 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9414
9415         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
9416         accumulator result if it needs sign extension
9417
9418 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9419
9420         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
9421
9422 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9423
9424         * device/lib/gbz80/printf.c,
9425         * device/lib/z80/printf.c: removed define for NULL
9426
9427 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9428
9429         * as/xa51/xa_link.c,
9430         * device/examples/ds390/ow390/ad26.c,
9431         * device/examples/ds390/ow390/cnt1d.c,
9432         * device/examples/ds390/ow390/counter.c,
9433         * device/examples/ds390/ow390/ds2480.h,
9434         * device/examples/ds390/ow390/ds2480ut.c,
9435         * device/examples/ds390/ow390/findtype.c,
9436         * device/examples/ds390/ow390/gethumd.c,
9437         * device/examples/ds390/ow390/owllu.c,
9438         * device/examples/ds390/ow390/ownetu.c,
9439         * device/examples/ds390/ow390/swt12.c,
9440         * device/examples/ds390/ow390/swtloop.c,
9441         * device/examples/ds390/ow390/temp.c,
9442         * device/examples/ds390/ow390/temp10.c,
9443         * device/examples/ds390/ow390/thermo21.c,
9444         * device/examples/ds390/ow390/tinilnk.c,
9445         * device/examples/ds390/ow390/tstfind.c,
9446         * device/examples/serialcomm/windows/serial.cpp,
9447         * device/examples/serialcomm/windows/test_serialcomm.cpp,
9448         * device/include/reg51.h: fixed line endings for cvs
9449
9450 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9451
9452         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
9453         packRegsForAccUse, packRegisters): new accumulator register
9454         packing algorithm
9455         * support/regression/ports/hc08/support.c (_putchar): suppress
9456         warning of unused variable
9457         * src/SDCCicode.c: added SWAP entry to codeTable
9458
9459 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
9460
9461         * device/lib/sprintf.c: forgot to add this file before previous commit
9462
9463 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
9464
9465         * src/pic16/gen.c (genPackBits): added operand right in function
9466         parameters, load result directly if p_type is POINTER (that is
9467         called by genNearPointerSet)
9468         * (genUnPackBits): added operand left in function parameters,
9469         * (genNearPointerGet, genNearPointerSet): prevent the loading of
9470         FSR0 if accessing bitfields,
9471
9472 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
9473
9474         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
9475           _print_format; updated printf, sprintf, vsprintf
9476         * device/include/asm/default/features.h: corrected comment/define
9477         * device/lib/Makefile.in: added sprintf.c
9478         * device/lib/libsdcc.lib: added sprintf module
9479         * device/lib/printf_large.c,
9480         * device/lib/vprintf.c,
9481         * device/lib/sprintf.c: totally refactored printf_large and vprintf
9482           into these 3 files
9483         * support/regression/Makefile: changed ALL_PORTS into a usefull default
9484         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
9485         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
9486           hc08 test
9487         * support/regression/tests/zeropad.c: define idata as data for hc08
9488
9489 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9490
9491         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
9492         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
9493         labels are referenced at least once (even if a reference is not found)
9494         * src/hc08/gen.c (emitcode): set isComment flag for comments
9495         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
9496         loads), rules 6a..6b (optimize jumps to return)
9497
9498 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9499
9500         * device/lib/acosf.c (acosf),
9501         * device/lib/asinf.c (asinf),
9502         * device/lib/atanf.c (atanf),
9503         * device/lib/ceilf.c (ceilf),
9504         * device/lib/cosf.c (cosf),
9505         * device/lib/coshf.c (coshf),
9506         * device/lib/cotf.c (cotf),
9507         * device/lib/fabsf.c (fabsf),
9508         * device/lib/floorf.c (floorf),
9509         * device/lib/log10f.c (log10f),
9510         * device/lib/logf.c (logf),
9511         * device/lib/sinf.c (sinf),
9512         * device/lib/sinhf.c (sinhf),
9513         * device/lib/sqrtf.c (sqrtf),
9514         * device/lib/tanf.c (tanf),
9515         * device/lib/tanhf.c (tanhf),
9516         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
9517         replaced all instances of "reentrant" in the library functions
9518         defined in math.h with this macro.
9519         * support/regression/tests/float_trans.c: reenabled test for hc08
9520
9521 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
9522
9523         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
9524         erroneously deleted
9525
9526 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9527
9528         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
9529         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
9530         multi-byte volatile operands are used
9531         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
9532         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
9533         initialization to area GSINIT0 so that it would always precede
9534         any static initializers in GSINIT
9535         * support/regression/tests/zeropad.c: fixed idata define for hc08
9536         * support/regression/tests/bug-927659.c,
9537         * support/regression/tests/float_trans.c: disabled tests for hc08
9538         pending missing library routines
9539         * .version: increased version number to 2.4.4 - hc08 port now passes
9540         regression tests
9541
9542
9543 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
9544
9545         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
9546         * Makefile.common.in,
9547         * as/Makefile,
9548         * as/hc08/Makefile.in,
9549         * as/mcs51/Makefile.in,
9550         * as/z80/Makefile.in,
9551         * debugger/mcs51/Makefile.in,
9552         * device/include/Makefile.in,
9553         * device/lib/Makefile.in,
9554         * doc/Makefile,
9555         * link/Makefile,
9556         * link/z80/Makefile.in,
9557         * packihx/Makefile.in,
9558         * sim/ucsim/main_in.mk,
9559         * sim/ucsim/avr.src/Makefile.in,
9560         * sim/ucsim/doc/Makefile.in,
9561         * sim/ucsim/gui.src/serio.src/Makefile.in,
9562         * sim/ucsim/hc08.src/Makefile.in,
9563         * sim/ucsim/s51.src/Makefile.in,
9564         * sim/ucsim/xa.src/Makefile.in,
9565         * sim/ucsim/z80.src/Makefile.in,
9566         * src/Makefile.in,
9567         * support/cpp2/Makefile.in,
9568         * support/librarian/Makefile,
9569         * support/makebin/Makefile: added DESTDIR to the install path proposed
9570         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
9571         * doc/sdccman.lyx: added DESTDIR documentation
9572
9573 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
9574
9575         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
9576         instruction for interrupt handlers, use fast returns when returning
9577         from high priority interrupts
9578
9579 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9580
9581         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
9582         code generation
9583         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
9584         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
9585         bugs, ported much of Bernhard's code from mcs51
9586         * src/mcs51/gen.c (genSend),
9587         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
9588         than one when calling a reentrant function
9589         * device/lib/_mullong.c: defined an alternate struct layout for big
9590         endian ports (hc08)
9591
9592 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9593
9594         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
9595         test
9596
9597 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9598
9599         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
9600         are sane and complete before asking the port its prefered parameter
9601         passing method (fixes bug #1017633)
9602         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
9603         and _ret3
9604
9605 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9606
9607         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
9608         problem in bitfields >= 8 bits.
9609
9610 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9611
9612         * src/SDCCsymt.c: undid changes that were not meant to be committed
9613
9614 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9615
9616         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
9617
9618 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9619
9620         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
9621           copied and wrong bit got inverted
9622
9623 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9624
9625         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
9626         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
9627         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
9628         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
9629         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
9630         assignments to bitfields at known addresses
9631         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
9632         reads from bitfields at known addresses
9633         * src/hc08/ralloc.c (packRegisters),
9634         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
9635         genhc08Code): optimize pointer get values used as conditionals
9636         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
9637         and branch
9638
9639 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9640
9641         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
9642         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
9643         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
9644         as conditionals
9645
9646 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9647
9648         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
9649
9650 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9651
9652         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
9653         related problems
9654
9655 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
9656
9657         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
9658
9659 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9660
9661         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
9662         mcs51 port
9663
9664 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
9665
9666         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
9667
9668 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9669
9670         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
9671         cases use more compact code.
9672
9673 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
9674
9675         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
9676
9677 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9678
9679         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
9680
9681 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9682
9683         * src/SDCCsymt.h,
9684         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
9685         parameter of changePointer() from symbol* to sym_link*
9686         * src/SDCCast.c (decorateType): call changePointer() for CAST op
9687         * src/SDCCsymt.c (compareType): void* type is castable to other
9688         pointers, but not necesarily an exact match.
9689         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
9690         is no longer blindly treated as an exact match.
9691         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
9692
9693 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
9694
9695         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
9696
9697 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
9698
9699         * src/pic/gen.c,
9700         * src/pic/pcode.c,
9701         * src/pic/ralloc.h,
9702         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
9703
9704 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
9705
9706         * src/pic/device.c,
9707         * src/pic/device.h,
9708         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
9709
9710 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9711
9712         * src/mcs51/gen.c (emitcode): fixed bug #992819
9713
9714 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
9715
9716         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
9717           there's no need to make it worse
9718
9719 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9720
9721         * src/mcs51/ralloc.c (deassignLR),
9722         * src/ds390/ralloc.c (deassignLR),
9723         * src/hc08/ralloc.c (deassignLR),
9724         * src/z80/ralloc.c (deassignLR),
9725         * src/pic/ralloc.c (deassignLR),
9726         * src/pic16/ralloc.c (deassignLR),
9727         * src/avr/ralloc.c (deassignLR),
9728         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
9729         rlivePoint): fixed another part of bug #971834
9730
9731 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9732
9733         * src/z80/main.c: enabled "critical" keyword
9734         * src/z80/mappings.i,
9735         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
9736         functions (fixes bug #979646)
9737         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
9738
9739 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9740
9741         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
9742           such as c:\mydir.
9743
9744 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
9745
9746         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
9747           doesn't disable too much optimizations
9748
9749 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
9750
9751         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
9752
9753 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
9754
9755         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
9756
9757 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
9758
9759         * src/pic/gen.c tidied up tabs
9760         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
9761         * src/pic/main.c tidied up tabs
9762         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
9763         * src/pic/pcoderegs.c tidied up tabs
9764         * src/pic/ralloc.c tidied up tabs
9765
9766 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
9767
9768         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
9769         to S_FIXED for pic16 port and when symbol is not in level 0,
9770         allocate for S_REGISTER storage class and pic16 port, too,
9771         * src/pic16/device.h: prototype for checkSym,
9772         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
9773         * (pic16_assignConfigWordValue): test the value and the mask to
9774         validate that the value is suitable for the configuration word,
9775         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
9776         collect extern declared symbols, don't emit symbol twice, check
9777         first if symbol is in publics set first,
9778         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
9779         * added command line '--fstack' which enables an experimental
9780         feature for stack access, too buggy to be used yet...
9781         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
9782         * (pic16_allocDirReg): when register has storage class S_REGISTER
9783         allocate in pic16_dynAccessRegs,
9784         * device/include/pic16/pic18f????.h: modified configuration word
9785         naming convention, words started as CONFIG0H but should be CONFIG1H
9786
9787 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
9788
9789         * device/include/mcs51reg.h: fixed bug 970993
9790
9791 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
9792
9793         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
9794         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
9795         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
9796         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
9797         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
9798         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
9799           error/warning numbers,
9800           added function setWarningDisabled()
9801         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
9802         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
9803           _memcmp.c _memmove.c calloc.c realloc.c free.c
9804         * support/regression/tests/malloc.c: added tests for new functionality
9805         * support/regression/tests/zeropad.c: added tests for truncated initializers
9806           and initialized char arrays starting with '\x0'
9807         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
9808
9809 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
9810
9811         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
9812
9813 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9814
9815         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
9816         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
9817         peephole 177.e. Thanks to anonymous
9818
9819 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
9820
9821         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
9822         function isn't used in the source but referenced as a
9823         variable initializer then declare it as extern in .asm file
9824
9825 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
9826
9827         * .version: increased version number to 2.4.3
9828
9829         Adding version extension according to ChangeLog CVS revision
9830         * src/Makefile.in (target all): added dependency 'version.h'
9831         * (rule version.h): added rule to create version.h from ChangeLog,
9832         * (rule dep): added dependency version.h,
9833         * src/version.awk: AWK script to create version.h
9834         * src/SDCCdwarf2.c (dwWriteModule),
9835         * src/SDCCglue.c (initialComments),
9836         * src/SDCCmain.c (printVersionInfo): modified to write after
9837         version string the version extension number,
9838         * src/SDCCutil.c: included "version.h"
9839         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
9840         number,
9841         * src/SDCCutil.h: added prototype for getBuildNumber
9842
9843         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
9844         includeDirsSet, too,
9845         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
9846         const char [] is found in function prototype...
9847
9848         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
9849         moving to WREG with source is already in WREG,
9850         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
9851         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
9852         * (aopForSym): stack'ed symbols are partially supported, added
9853         if-clause to support symbols in FARSPACE,
9854         * (sameRegs): added test for AOP_ACC to see if registers are same,
9855         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
9856         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
9857         * (pic16_popRegFromString): will not allocate a new register if it
9858         doesn't find one by name, bug may have introduced...
9859         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
9860         * (genIpush): revived to use pic16 port's stack,
9861         * (genAddrOf): added incomplete case for stack'ed operand,
9862         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
9863         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
9864         can handle multibyte operands,
9865         * src/pic16/glue.c (pic16_printIval*): some debug info added,
9866         * (pic16initialComments): added message for MPLAB compatibility
9867         mode enabled,
9868         * src/pic16/main.h: prototype for pic16_mplab_comp,
9869         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
9870         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
9871         * (_pic16_linkEdit): NEW, handles link stage, transferred here
9872         because of increased complexity of procedure,
9873         * (_process_pragma): stack pragma changed to format 'stack pos len',
9874         emit symbol '_stack_end' to conform with gplink,
9875         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
9876         to search for register,
9877         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
9878         PO_GPR_REGISTER,
9879         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
9880         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
9881         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
9882         case for PO_GPR_REGISTER,
9883         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
9884         dies, the new era is ahead !...
9885         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
9886         pic16_dynInternalRegs,
9887         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
9888         * (pic16_allocDirReg): minor optimizations and bug fixes,
9889         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
9890
9891         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
9892         load stack and frame pointer with address of 'stack_end' symbol
9893
9894 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
9895
9896         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
9897         without source code but only variable initializers
9898
9899 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
9900
9901         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
9902         external are not declared as extern to reduce overhead while linking
9903
9904 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
9905
9906         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
9907
9908 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
9909
9910         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
9911           Yee Keat for the patch
9912         * src/SDCCast.c (decorateType): fixed bug #979599
9913         * src/ds390/gen.h: removed local fReturnSizeDS390
9914         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
9915         * src/ds390/gen.c (genAnd, genOr, genXor),
9916         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
9917
9918 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
9919
9920         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
9921         add relFilesSet to $3, manipulate $2 to handle linking of object
9922         files without source files in command line,
9923         * device/include/pic16 (all headers): added ID location macros,
9924         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
9925         entries for ID location bytes,
9926         * (pic16_assignIdByteValue): NEW,
9927         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
9928         added field dumpcalltree to pic16_options_t,
9929         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
9930         is used instead of pic16_Gstack_base_addr, check if (ifx) before
9931         emitting rFalseIfx label after check_carry label,
9932         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
9933         pic16_emitDIRegs), NEW
9934         * (pic16glue): dump .calltree file when option --calltree found,
9935         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
9936         * (_pic16_genAssemblerPreamble): emit ID locations after
9937         configuration registers,
9938         * (pic16_linkCmd): modifications of the link command,
9939         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
9940         * (pic16_pCodeInitRegisters): don't init stack registers,
9941         * (pic16_findPrevInstruction): fixed bug,
9942         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
9943         bug with immediate registers,
9944         * (buildCallTree): traces stack push and pop,
9945         * (pct2): dump also stack usage for each function,
9946         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
9947         * (pic16_allocDirReg): various modifications,
9948         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
9949         fixed to 1,
9950
9951 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
9952
9953         * src/pic16/pcode.c: removed buggy double colon
9954
9955 2004-07-01 Borut Razem <borut.razem AT siol.net>
9956
9957         * support/scripts/sdcc.nsi: added include/pic16 to setup
9958
9959 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
9960
9961         * device/lib/Makefile.in: fixed bug in target objects-pic16,
9962         * device/lib/pic16/Makefile: prefixed with dash (-) command under
9963         target 'clean',
9964         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
9965         specific command line arguments. Also added sample lkr script
9966         for placing a variable at a specific memory bank.
9967         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
9968         at a specific memory bank,
9969         * (pic16_dump_isection): fixed bug which caused string literals to
9970         be omitted when dumping idata section,
9971         * (pic16_groupRegistersInSection): added code to handle registers
9972         in specific memory banks,
9973         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
9974         public, all references are renamed too,
9975         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
9976         AOP_DPTR2,
9977         * (pic16_storeForReturn): added case to handle when dest is WREG,
9978         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
9979         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
9980         pic16_rel_udata, check to see if that register is marked as being
9981         a member of a specific memory bank,
9982         * (pic16_printIvalCharPtr): added code to add string literals either
9983         to code or the idata sections,
9984         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
9985         also accept the 'udata' pragma,
9986         * src/pic16/main.h: new structure types sectName and sectSym
9987         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
9988         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
9989         * (pic16_findPrevInstruction): fixed, it returned nothing,
9990         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
9991         instruction combinations,
9992         * (pic16_FixRegisterBanking): heavily reorganised,
9993         * (pic16_AnalyzeBanking): if generating banksel directives is
9994         disabled, then don't call FixRegisterBanking at all,
9995         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
9996         completely removed,
9997         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
9998
9999 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
10000
10001         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
10002         Phuah Yee Keat <yk.phuah AT nestac.com>
10003
10004 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
10005
10006         * src/pic16/glue.c (pic16createInterruptVect): function now emits
10007         correctly the IVT even if it is relocated to some other location
10008
10009 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
10010
10011         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
10012         * device/include/pic16/pic18f2220.h: NEW,
10013         * device/lib/pic16/libdev/pic18f2220.c: NEW,
10014         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
10015         * src/pic16/device.c (struct Pics16): added info for 18f2220,
10016         * src/pic16/device.h (struct pic16_options): added ivt_loc and
10017         nodefaultlibs, ivt_loc is the location of the interrupt vector
10018         table, and nodefaultlibs signs that default libraries should not be
10019         linked in link stage,
10020         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
10021         according to --ivt-loc argument,
10022         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
10023         when pragma stack is found,
10024
10025 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10026
10027         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
10028         256 (range check), 257 (do while), 258.a-f (bit banging
10029         f.e. on 3-wire SPI bus)
10030
10031 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10032
10033         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
10034         variables used exclusively within a loop
10035
10036 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
10037
10038         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
10039
10040 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10041
10042         * src/SDCClrange.c (computeClash): fixed bug #971834
10043
10044 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10045
10046         * src/mcs51/gen.c (genCmp): fixed bug #975903
10047         * src/hc08/gen.c (operandsEqu),
10048         * src/ds390/gen.c (operandsEqu),
10049         * src/z80/gen.c (operandsEqu),
10050         * src/pic/gen.c (operandsEqu),
10051         * src/pic16/gen.c (operandsEqu),
10052         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
10053         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
10054
10055 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10056
10057         * src/SDCCcse.c (cseBBlock): fixed bug #966963
10058
10059 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
10060
10061         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
10062         default case in switch statement,
10063         * glue.c (pic16_initPointer): expr is initialised via decoarteType
10064         to eliminate problem with initialisation of pointers, but problem
10065         still exists,
10066         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
10067         * (emitStaticSegment): removed various lines emitting debug info,
10068         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
10069         added processor registers for utilizing EEPROM,
10070         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
10071         configurable and set 8
10072
10073 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
10074
10075         * .version: increased version number to 2.4.2,
10076
10077         Cumulative patch for pic16 port
10078         * src/pic16/device.c: changed scheme to dump initial values for
10079         variables in idata segment, all print_idata* functions were removed,
10080         now the pic16_printIval* will be called,
10081         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
10082         * _pic16_printPointerType, pic16_printPointerType,
10083         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
10084         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
10085         NEW, similar to the respective functions in SDCCglue.c,
10086         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
10087         way, emitting hex bytes,
10088         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
10089
10090 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10091
10092         * src/avr/ralloc.c (serialRegAssign),
10093         * src/xa51/ralloc.c (serialRegAssign),
10094         * src/pic/ralloc.c (serialRegAssign),
10095         * src/pic16/ralloc.c (serialRegAssign),
10096         * src/hc08/ralloc.c (serialRegAssign),
10097         * src/z80/ralloc.c (serialRegAssign),
10098         * src/ds390/ralloc.c (serialRegAssign),
10099         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
10100
10101 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10102
10103         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
10104         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
10105
10106 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
10107
10108         Cumulative patch for pic16 port:
10109         * src/pic16/device.h (typedef PIC16_device) modified fields for
10110         defining microcontrollers,
10111         * src/pic16/device.c: added new info for all devices in Pics16 array,
10112         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
10113         to be optimised out by the pCode optimiser,
10114         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
10115         specially, bug reported by G.M. Gallant,
10116         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
10117         as force'd so that cannot be optimised out by pCode optimiser,
10118         * src/pic16/pcode.c,
10119         * src/pic16/pcodepeeph.c,
10120         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
10121         they are disabled by default, but can be enabled explicit with
10122         command argument --denable-peeps, for testing,
10123         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
10124         --pomit-ivt in COMPILE_FLAGS
10125
10126 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
10127
10128         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
10129           compilation on MSVC
10130
10131 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
10132
10133         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
10134
10135 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10136
10137         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
10138         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
10139
10140 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
10141
10142         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
10143         would only assign 0x300001 register.
10144
10145 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
10146
10147         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
10148         in COMPILE_FLAGS. Thanks to G. Gallant for report.
10149
10150 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10151
10152         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
10153         for ds80c400
10154         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
10155         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
10156         added peephole 254 (left shift), 255 (jump table)
10157
10158 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
10159
10160         * device/lib/Makefile.in: removed comment line with model-pic16,
10161         * (target port-specific-objects-pic16): the libraries and objects
10162         are copied to the build directory form the device/lib/pic16/bin
10163         directory
10164
10165         Cumulative patch concerning pic16 port:
10166         * library directory has been re-organized,
10167         * added support for PIC18F1220,
10168         * added headers and library sources for chips 18f1220,18f6520,
10169         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
10170
10171         * configuration registers setting has changed, now each supported
10172         device has a complete description of the registers it uses,
10173         * all initialisations are moved to idata sections, these section
10174         can be absolute or relocatable,
10175         * fixed initialisation of codespace variables,
10176         * fixed warning about PCLATU and gpsim,
10177         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
10178         * (genAssign): use table reads when assigning from variables in codespace,
10179         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
10180         char/int variables placed in codespace,
10181         * (pic16_emitConfigRegs): NEW, emits a list with configuration
10182         registers set in .asm file, no need for --pomit-config-words anymore,
10183         * (pic16glue): some 8051 legacy segments are commented out
10184         (to be removed completely),
10185         * added support for alternative assembler and linker with --asm=
10186         and --link= command line arguments,
10187         * peepholes are disabled automatically in the port, no need to
10188         specify on command line,
10189         * port supports natively char/int/long multiplication, but converts
10190         all divisions to support functions,
10191         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
10192         to the file set in variable $2,
10193         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
10194         strings in ASCII format and not in hex,
10195         * ralloc.c (serialRegAssign): added a triplet of conditional calls
10196         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
10197         allocate proper register if iCodes aren't temporary,
10198
10199 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
10200
10201         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
10202
10203 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
10204
10205         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
10206         is commented out
10207
10208 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10209
10210         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
10211         computed address is reused
10212         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
10213         multi-byte bitfields
10214
10215 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
10216
10217         * src/z80/gen.c: (genArrayInit): must check for pointers too
10218
10219 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
10220
10221         * support/regression/tests/zeropad.c: never meant to commit the
10222           nestedstruct test: removed, added check for GCC version
10223
10224 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
10225
10226         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
10227         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
10228         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
10229           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
10230           bugs 928906 and 954082 half-empty initializers
10231         * src/SDCCsymt.h,
10232         * src/SDCCsymt.c (getAllocSize): added for above fix
10233         * src/z80/gen.c (genArrayInit): fixed bug 741044
10234         * support/regression/tests/zeropad.c: added tests
10235
10236 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
10237
10238         * src/pic16/device.c (pic16_dump_section): corrected bug which
10239         caused some symbols of the libraries to be misplaced
10240
10241 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
10242
10243         * src/pic16/glue.c,
10244         * src/pic16/ralloc.h,
10245         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
10246         to fix conflict with pic port
10247
10248 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
10249
10250         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
10251         externs configuration variables,
10252         * src/pic16/ralloc.h,
10253         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
10254         prototype in header, commented out some debug messages
10255
10256 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
10257
10258         * src/pic16/glue.c,
10259         * src/pic16/main.c,
10260         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
10261         for gpasm COFF object generation. Thanks to D. Hawkins for
10262         his patch info
10263
10264 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10265
10266         * src/ds390/main.c,
10267         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
10268         Brock for spotting this)
10269         * src/ds390/gen.c (genEndFunction),
10270         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
10271         interrupt handler and critical. Disable push/pop optimizations when
10272         peephole optimizations disabled.
10273
10274 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
10275
10276         Updated pic16 library sources and headers.
10277         * device/lib/pic16/pic18f*/ ,
10278         * device/include/pic16/*.h: modified to handle structured SFR
10279         definitions
10280
10281 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
10282
10283         * src/port.h (PORT structure): added hook initPaths, now each
10284         port can declare its own default search paths,
10285         which can been seen with the --print-search-dirs option,
10286         see pic16 port for example,
10287         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
10288         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
10289         * (doPrintSearchDirs): NEW, replaces in a central manner the
10290         printing of search dirs which was split in set*Paths functions,
10291         * (main): added call to port->initPaths and doPrintSearchDirs,
10292         * src/avr/main.c,
10293         * src/ds390/main.c,
10294         * src/hc08/main.c,
10295         * src/izt/i186.c,
10296         * src/izt/tlcs900h.c,
10297         * src/mcs51/main.c,
10298         * src/pic/main.c,
10299         * src/pic16/main.c: modified port structures to reflect addition of
10300         initPaths hook,
10301
10302         * src/pic16/device.c (regCompare): registers are finally sorted by name,
10303         * (pic16_dump_section): for registers in same address reserve memory once,
10304         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
10305         to no_banksel,
10306         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
10307         result is greater in size than right or left,
10308         * (pic16_genUMult8X8_8): there are some cases where the result can
10309         be 16 bits size, so handle these,
10310         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
10311         * (pic16_outBitC): modified to emit pcodes,
10312         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
10313         or not,
10314         * (genDivOneByte): implemented algorithm to divide 8-bits,
10315         * (genCmp): uncommented goto, but issues still exist,
10316         * (genAnd): fixed a bug with variables >8bits,
10317         * (genPackBits): optimization added that uses BCF/BSF to change a
10318         single bit,
10319         * (genAssign): fixed bug when assigning floating point literals,
10320         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
10321         __sdcc_gsinit_startup label,
10322         * src/pic16/main.c (_pic16_init): removed search directory
10323         initialisations,
10324         * (_pic16_initPaths): NEW, used to initialise search directories,
10325         * (_hasNativeMulFor): support functions for all except char/int
10326         multiplication, and char division,
10327         * (PIC16_port struct): modified entry for native mul support,
10328         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
10329         no_banksel option,
10330         * (buildCallTree): call to register_usage is ifdef'ed out,
10331
10332 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10333
10334         * device/include/string.h: applied Stas Sergeev's patch to make this
10335         header file compatible with the preprocessor -Wundef option
10336         * src/SDCCmain.c (main): abort compilation if preprocessor reports
10337         failure (fixes bug #941458)
10338
10339 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10340
10341         * src/SDCCopt.c (killDeadCode): fixed bug #907733
10342         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
10343         that the variable, not the function, should be static
10344         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
10345         to be consistent with non-literal case
10346
10347 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10348
10349         * src/SDCCast.c (isConformingBody): fixed bug #949967
10350         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
10351         convilong): fixed bug #952086
10352
10353 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10354
10355         * src/SDCCmem.c (allocVariables): fixed bug #955321
10356
10357 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10358
10359         * src/hc08/main.c (_hc08_genAssemblerEnd),
10360         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
10361         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
10362         completely eliminated the use of a temporary file
10363         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
10364         when more than one file linked
10365         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
10366
10367 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10368
10369         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
10370         which fixes bug #543481
10371         * support/regression/tests/bug-751703.c: fixed comments left from a
10372         cut and paste error
10373         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
10374         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
10375         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
10376         scopes
10377         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
10378         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
10379         are now changed to underscores in moduleName
10380
10381 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10382
10383         * as/mcs51/lkmem.c: better fix for bug #954173
10384
10385 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
10386         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10387
10388         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
10389         * device/include/c8051f000.h,
10390         * device/include/c8051f120.h,
10391         * device/include/c8051f300.h,
10392         * device/include/c8051f310.h,
10393         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
10394         PWM16) and detab'ed
10395
10396 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10397
10398         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
10399         and mailing lists, doc'ed --no-peep-comments, removed reference
10400         to knoppix (newest version has no LyX/LaTeX), other minor changes
10401         * src/SDCCglue.c (glue): save 2 bytes stack space with
10402         option --main-return. The ljmp could probably be avoided too
10403
10404 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10405
10406         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
10407
10408 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10409
10410         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
10411         * src/SDCCopt.c (isLocalWithoutDef),
10412         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
10413         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
10414         (credit to Maarten Brock for patch #949363, on which this is based)
10415         * support/regression/tests/bug-751703.c: some test cases of extern used
10416         within inner scopes.
10417
10418 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10419
10420         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
10421         SPEC_STRUCT
10422         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
10423         struct definitions
10424         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
10425         dwWriteLabel): fix to create valid debugger symbols even when
10426         the module name has non-alphanumeric symbols in it
10427         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
10428         when a variable's allocation has been optimized away
10429
10430
10431 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10432
10433         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
10434         * src/hc08/main.c,
10435         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
10436         * src/mcs51/main.c,
10437         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
10438         * src/ds390/main.c,
10439         * src/z80/gen.c (z80_emitDebuggerSymbol),
10440         * src/z80/main.c,
10441         * src/pic/gen.c (pic14_emitDebuggerSymbol),
10442         * src/pic/main.c,
10443         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
10444         * src/pic16/main.c,
10445         * src/avr/gen.c (avr_emitDebuggerSymbol),
10446         * src/avr/main.c,
10447         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
10448         * src/xa51/main.c,
10449         * src/SDCCdebug.c (emitDebuggerSymbol),
10450         * src/SDCCdebug.h,
10451         * src/port.h: added a debugger struct to the port struct. Added a
10452         callback for defining debugger symbols
10453
10454         * src/SDCCast.c (createLabel),
10455         * src/SDCC.y (labeled_statement): mark all compiler generated labels
10456         with isitmp = 1
10457         * src/SDCCicode.h,
10458         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
10459         iCode back to the ast for the function
10460
10461         * src/hc08/ralloc.c (hc08_assignRegisters),
10462         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
10463         unneeded fields from the regs struct.
10464         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
10465         pushReg() & pullReg() functions instead of emitcode()
10466
10467         * src/hc08/gen.c (genLabel, genhc08Code),
10468         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
10469
10470         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
10471         debugger hooks
10472
10473         * src/hc08/gen.c (genEndFunction, genhc08Code),
10474         * src/hc08/gen.h,
10475         * src/mcs51/gen.c (genEndFunction, gen51Code),
10476         * src/mcs51/gen.h,
10477         * src/ds390/gen.c (genEndFunction, gen390Code),
10478         * src/ds390/gen.h,
10479         * src/z80/gen.c (genEndFunction, genZ80Code),
10480         * src/z80/gen.h,
10481         * src/z80/z80.h,
10482         * src/pic/gen.c (genEndFunction, genpic14Code),
10483         * src/pic/gen.h,
10484         * src/pic16/gen.c (genEndFunction, genpic16Code),
10485         * src/pic16/gen.h,
10486         * src/avr/gen.c (genEndFunction, genAVRCode),
10487         * src/avr/gen.h,
10488         * src/xa51/gen.c (genEndFunction, genXA51Code),
10489         * src/xa51/gen.h,
10490         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
10491         specific code to cdbFile.c and out of the backend code generators
10492
10493         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
10494         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
10495         starting address is now 0
10496
10497         * as/hc08/asm.h,
10498         * as/hc08/m08pst.c,
10499         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
10500         assembler directive for DWARF support
10501         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
10502
10503         * src/src.dsp,
10504         * src/Makefile.in,
10505         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
10506
10507 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10508
10509         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
10510         and inappropriate peephole optimization in jump tables
10511
10512 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10513
10514         * as/hc08/m08pst.c,
10515         * src/SDCCglue.c: sdccopt works for the hc08 port now
10516
10517 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
10518
10519         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
10520
10521 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10522
10523         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
10524
10525 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10526
10527         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
10528         rules
10529         * src/SDCCmain.c,
10530         * src/SDCCglobl.h,
10531         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
10532         comments from the peephole optimizer replacement rules
10533         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
10534         symbols
10535         * src/SDCCcse.c (updateSpillLocation),
10536         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
10537         equivalents
10538         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
10539         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
10540         objects far pointers
10541
10542 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10543
10544         * src/SDCCsymt.h: a missing part of my last change
10545         * src/pic/ralloc.c (regTypeNum),
10546         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
10547
10548 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10549
10550         * src/SDCCicode.h,
10551         * src/SDCCicode.c (aggrToPtrDclType),
10552         * src/SDCCptropt.h,
10553         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
10554         ptrPseudoSymConvert),
10555         * src/pic/ralloc.c (regTypeNum),
10556         * src/pic16/ralloc.c (regTypeNum),
10557         * src/hc08/ralloc.c (regTypeNum),
10558         * src/ds390/ralloc.c (regTypeNum),
10559         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
10560         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
10561
10562 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10563
10564         * link/z80/lkmain.c (afile),
10565         * as/hc08/lkmain.c (afile),
10566         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
10567         prevent a pointer problem when a filename has no directory and
10568         no extension specified.
10569
10570 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10571
10572         * link/z80/lkmain.c (afile): allow periods in directory names
10573         * link/z80/lkmain.c (afile),
10574         * as/mcs51/lkmain.c (afile),
10575         * as/hc08/lkmain.c (afile): allow linker script file to have an
10576         extension other than ".lnk"
10577         * link/z80/lklex.c (getfid),
10578         * link/z80/lkmain.c (parse),
10579         * as/mcs51/lklex.c (getfid),
10580         * as/mcs51/lkmain.c (parse),
10581         * as/hc08/lklex.c (getfid),
10582         * as/hc08/lkmain.c (parse): Support comments in the linker script
10583         file on lines by themselves and after filenames
10584
10585 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10586
10587         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
10588
10589 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10590
10591         * src/z80/peeph-z80.def: removed some peephole rules that don't
10592         work with multibyte arithmetic (fixed bug #937126)
10593         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
10594         to registers and not global variables
10595         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
10596         geniCodePreInc, geniCodePostDec, geniCodePreDec,
10597         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
10598         checking for assignments not internally generated (fixed bug #931895)
10599         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
10600         structure member (fixed bug #930072)
10601
10602 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10603
10604         * src/SDCCmain.c (linkEdit),
10605         * src/hc08/main.c (_hc08_parseOptions),
10606         * as/hc08/Makefile.in,
10607         * as/hc08/aslink.h,
10608         * as/hc08/asm.h,
10609         * as/hc08/m08pst.c,
10610         * as/hc08/lkrloc.c (relr, rele),
10611         * as/hc08/lkarea.c (lnkarea)
10612         * as/hc08/lkmain.c (afile, parse),
10613         * as/hc08/lkelf.c: support for ELF output
10614         * as/hc08/lks19.c (s19),
10615         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
10616
10617 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10618
10619         * as/mcs51/lkihx.c: Fixed bug #899105.
10620
10621 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10622
10623         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
10624         .dsp files from Unix to DOS.
10625
10626 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10627
10628         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
10629         function pointers; we have been compliant for several months now.
10630         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
10631         change that was accidently commented out
10632         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
10633         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
10634         bug #922319
10635
10636 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10637
10638         * src/hc08/gen.c: output of all of the internal debugging information
10639         is now controlled by the D() macro; it is disabled by default
10640
10641 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10642
10643         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
10644         harder to keep the same registers during a CAST iCode
10645         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
10646         long via int can be done in a single cast, if the signedness is
10647         correct.
10648         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
10649         putchar() in tinibios.c in ds390's library
10650
10651 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
10652
10653         * src/SDCCast.c (decorateType): fixed bug #898889,
10654         cast result of a literal complement too
10655         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
10656         fixed check for bitfields
10657
10658 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
10659
10660         * src/SDCCicode.c (geniCodeLogic): made it static,
10661         (geniCodeLogicAndOr): added in order to fix bug #905492,
10662         (ast2iCode): fixed bug #905492
10663         * support/regression/tests/bug-905492.c: added
10664         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
10665         (processParms): fixed bug #927659: don't copy parms, this will clear
10666         decorated flag
10667         * support/regression/tests/bug-927659.c: added
10668
10669 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
10670
10671         * src/SDCCast.c (addCast): don't cast float to char
10672         * device/lib/libsdcc.lib: added _memmove
10673
10674 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
10675
10676         * device/lib/large/Makefile: fixed parallel execution by
10677         replacing `make` by `$(MAKE)`
10678
10679 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10680
10681         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
10682         offsets (fixes bug #923936)
10683
10684 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
10685
10686         * device/lib/small/Makefile: fixed parallel execution by
10687         replacing `make` by `$(MAKE)`
10688
10689 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
10690
10691         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
10692
10693 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
10694
10695         * src/pic/gen.c (genCpl): multi-byte complements were not working.
10696         * src/regression/Makefile: Regression test was not running.
10697
10698 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
10699
10700         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
10701         complement if possible
10702         * src/SDCCval.c (valComplement),
10703         * src/SDCCicode.c (operandOperation): fixed complement of literal
10704         * support/regression/tests/onebyte.c (testComplement): added
10705
10706 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
10707
10708         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
10709         return an optimized tree; actually replace actParm with the new tree
10710         * src/SDCCast.h: added some parantheses to remove side effects
10711         * support/regression/tests/bug-920866.c
10712
10713 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
10714         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
10715         Bit operands were not being handled properly in the pic14 port.
10716         (now src/regression/add.c passes again).
10717
10718 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10719
10720         * src/SDCC.y (labeled_statement): case and default no longer require
10721         a following statement (RFE #893037)
10722
10723 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10724
10725         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
10726         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
10727         disabled (fixes bug #916294)
10728         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
10729         "mov a,acc"; patch provided by Lenny Story
10730         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
10731
10732 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10733
10734         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
10735         functions
10736         * src/ds390/gen.c (genFunction, genEndFunction),
10737         * src/ds390/ralloc.c (ds390_assignRegisters),
10738         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
10739         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
10740         pushed if there are parameters passed on the stack. Also, a cleaner
10741         way to decide if r0/r1 should be pushed/popped. (Together they fix
10742         bug #918693)
10743
10744 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10745
10746         * doc/sdccman.lyx,
10747         * device/lib/mcs51/crtpagesfr.asm,
10748         * device/lib/mcs51/crtxinit.asm,
10749         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
10750         to avoid confusion with Si Lab's SFRPAGE register.
10751
10752 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10753
10754         * src/SDCCglue.c (emitMaps): allow public sfr variables
10755         * src/SDCCglue.c (initialComments): include compiler build date
10756         with compiler version and put the timestamp of the generated
10757         assembly file on a serperate line to be less confusing.
10758         * src/port.h: added genInitStartup hook
10759         * src/avr/main.c,
10760         * src/ds390/main.c,
10761         * src/hc08/main.c,
10762         * src/pic/main.c,
10763         * src/pic16/main.c,
10764         * src/xa51/main.c,
10765         * src/z80/main.c: genInitStartup initialize as NULL (default to
10766         historical behaviour)
10767         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
10768         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
10769         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
10770         library instead of hard coding it into the compiler.
10771         * support/regression/ports/mcs51-stack-auto/spec.mk,
10772         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
10773         * device/lib/mcs51/Makefile,
10774         * device/lib/small/Makefile,
10775         * device/lib/large/Makefile,
10776         * device/lib/mcs51/crtpagesfr.asm,
10777         * device/lib/mcs51/crtstart.asm,
10778         * device/lib/mcs51/crtxclear.asm,
10779         * device/lib/mcs51/crtxinit.asm,
10780         * device/lib/mcs51/crtclear.asm,
10781         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
10782         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
10783         and into user configurable files.
10784         * device/lib/clean.mk: clean mcs51 directory too
10785         * support/regression/tests/longlit.c: added static to T1 declaration
10786         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
10787         accesses in the initialization code
10788
10789 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10790
10791         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
10792         OSCTRIMVAL as noted in bug #916008
10793
10794 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10795
10796         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
10797         in loops with multiple exits (reported as incorrect registers
10798         used by Martin Helmling in Sdcc-user list)
10799
10800 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10801
10802         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
10803         made ds390 register extensions look less like error messages
10804
10805 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10806
10807         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
10808         reported by Adam Wozniak in Sdcc-user list
10809
10810 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
10811
10812         * src/SDCCast.c (decorateType): fixed with bug and promotion in
10813         arithmetic optimizations, added debug output
10814
10815 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
10816
10817         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
10818         * sdcc.spec: updated and split sdcc into 3 rpms
10819         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
10820         needed for literals of LEFT_OP and '+'
10821         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
10822         introduced RESULT_TYPE_NOPROM
10823         (geniCodeMultiply): fixed logic for decision if mul is optimized to
10824         left shift
10825         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
10826         limited promotion to int only for '*'
10827         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
10828
10829 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
10830
10831         * src/pic16/gen.c (genSkip),
10832         (genc16bit2lit), (gencjneshort): commented out
10833         (is_LitOp): new helper function, checks operand type
10834         (genCmpEq): rewritten
10835
10836 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
10837
10838         * support/regression/tests/bug-908454.c: added
10839
10840 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
10841
10842         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
10843         * src/SDCCicode.c (usualBinaryConversions): op needs int type
10844         (geniCodeCast): cosmetic, don't preserve bit storage class
10845         (geniCodeLeftShift): added promotion
10846         (geniCodeLogic): fixed regression
10847         * src/SDCCsymt.c (computeTypeOr): accept bits too
10848         (compareType): 2nd part of fix for bug #908454, needed for bitfields
10849
10850 2004-03-07  Borut Razem <borut.razem AT siol.net>
10851
10852         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
10853
10854 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
10855
10856         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
10857         version of pic16_genPackRegisters which does not check if ic is a
10858         CAST operator,
10859         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
10860         function cause string1.c regression test fails
10861
10862 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
10863
10864         * sim/ucsim/configure.in,
10865         * sim/ucsim/configure,
10866         * sim/ucsim/doc/Makefile.in: use docdir
10867         * src/SDCC.y: fixed sbit atrributes
10868         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
10869         * src/SDCCast.c (decorateType): |^& need special promotion handling
10870         * src/SDCCast.h,
10871         * src/SDCCsymt.h: moved definition of RESULT_TYPE
10872         * src/SDCCsymt.h (computeType),
10873         * src/SDCCicode.c: computeType() needs op
10874         * src/SDCCsymt.c (checkTypeSanity),
10875         * doc/sddman.lyx: "plain" bitfields are unsigned
10876         * src/SDCCsymt.c (computeTypeOr): added
10877         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
10878         |^& ops
10879         * src/SDCCval.c (val*): computeType() needs op
10880         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
10881         * support/regression/tests/onebyte.c: added tests for |^&
10882
10883 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
10884
10885         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
10886         for writing icode into asm output.
10887
10888 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
10889
10890         * src/pic16/device.c: added some debug lines enabled
10891         with macro DEBUG_CHECK,
10892         * src/pic16/genarith.c: more debug in genPlus,
10893         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
10894         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
10895         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
10896         * (aopForSym): onStack symbols are re-placed in data memspace,
10897         and onStack flag is cleared,
10898         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
10899         copy temporary pcodeop,
10900         * (genPcall): added warning for not updating PCLATU,
10901         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
10902         always true for pic16 port,
10903         * (genMultOneWord): NEW, supports integer multiplication,
10904         * (genMult): modified to call genMultOneWord,
10905         * (ifxForOp): added warning when return NULL,
10906         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
10907         flag is set before call to operandFromSymbol for implicit
10908         added structures,
10909         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
10910         options.intlong_rent are set by default,
10911         * (_hasNativeMulFor): modified to allow port generation of integer
10912         multiplication,
10913         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
10914         set regtype to REG_SFR for all registers, restricting seting the
10915         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
10916
10917 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10918
10919         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
10920         more than 500 times in the regression tests
10921
10922 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10923
10924         * support/Util/SDCCerr.h,
10925         * support/Util/SDCCerr.c,
10926         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
10927         enumerator_list),
10928         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
10929         for symbol conflicts.
10930         * support/valdiags/tests/enum.c,
10931         * support/valdiags/tests/tentdecl.c,
10932         * support/valdiags/tests/struct.c: expect possible error messages
10933         referring to original symbol definitions.
10934         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
10935         * src/SDCCsymt.h,
10936         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
10937
10938 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
10939
10940         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
10941
10942 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
10943
10944         * src/pic16/ralloc.c (newReg): fixed bug #908929
10945
10946 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10947
10948         * src/ds390/gen.c: added missing #include "main.h"
10949
10950 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
10951
10952         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
10953         checking if symbol is already in set,
10954         * src/pic16/device.h: prototype for checkAddSym,
10955         * src/pic16/gen.c: (_G): added entry interruptvector,
10956         * (assignResultValue): removed some commented out lines,
10957         * (genFunction): check for ISR via sym->type, absolute section for
10958         interrupt code is created via a new pBlock, the goto instruction is
10959         placed now correctly at the interrupt vector position, changed all
10960         references from ivec to _G.interruptvector,
10961         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
10962         is the interrupt is a high priority one, same for return from ISR,
10963         * src/pic16/glue.c: changed all calls of addSetHead for publics and
10964         externs to calls of checkAddSym,
10965         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
10966         pic16_pcode_verbose flag is set,
10967         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
10968         * src/pic16/pcoderegs.c: message about how many registers are saved
10969         will only be emitted if pic16_pcode_verbose flag is set,
10970
10971 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10972
10973         * src/ds390/ralloc.h,
10974         * src/ds390/ralloc.c (ds390_regWithIdx),
10975         * src/ds390/gen.c (emitcode),
10976         * src/ds390/main.h,
10977         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
10978         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
10979         ds390operandCompare, getRegsRead, getRegsWritten,
10980         initializeAsmLineNode): customized instruction size calculation for
10981         ds390, started basis for some register optimizations
10982         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
10983         corresponding assembly output
10984         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
10985         missing push/pop of r0/r1. Optimized push/pops
10986
10987 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10988
10989         * src/mcs51/main.c (instructionSize): fixed ACALL size
10990         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
10991
10992 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
10993
10994         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
10995         the sorting of rlist with NULL elements
10996         * (print_idataType, print_idata): NEW to create idata sections
10997         * src/pic16/device.h: idataSymSet new variable
10998         * src/pic16/gen.c (genFunction): fixed some bugs in string
10999         comparing, improved the absolute section creation for ISRs,
11000         added FSR0L/FSR0H in registers that are saved in an ISR,
11001         * (genInline): fixed the processing of inline snippets,
11002         now they undergo no process by the peephole optimizer
11003         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
11004         are placed in idataSymSet,
11005         * (pic16emitStaticSeg): extern symbols are added in externs,
11006         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
11007         switching when aboslute variables are placed in access bank memory
11008         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
11009         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
11010         commented out with #if,
11011         * (pic16_packRegisters): reintroduce the check for CAST because some
11012         symbols are not correctly handled,
11013         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
11014         pCodeInstruction instead of pCode,
11015         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
11016         pCodeAsmDir definition,
11017         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
11018         directive, then the argument directive is emitted without the leading
11019         tab, hack for inline labels which must be in the first column,
11020         * (compareLabel,pic16_findNextInstruction),
11021         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
11022         * (insertBankSwitch): modified for the new pCodeAsmDir,
11023
11024 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11025         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
11026
11027         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
11028         instance,
11029         * (pushSide): commented out with #if,
11030         * (assignResultValue): fixed some typos in saving
11031         registers,
11032         * (genPcall): FIXED and sync'ed with genCall,
11033         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
11034         * (genNearPointerGet): fixed to handle some more cases,
11035         implementation scheme via table reads,
11036         * (genConstPointerGet): modified to access code memory correct,
11037         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
11038         and improved to handle some cases
11039         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
11040         instead of "RETLW" for init data
11041         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
11042         not IN_DIRSPACE, work around to reduce bank switching when aboslute
11043         variables are placed in access bank memory (<0x80 and >=0xf80),
11044         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
11045         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
11046         TBLWT_POSTDEC,TBLWT_PREINC
11047         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
11048         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
11049         directives
11050         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
11051         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
11052         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
11053         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
11054
11055 2004-02-29  Borut Razem <borut.razem AT siol.net>
11056
11057         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
11058         support/Util/findme.h, support/Util/system.h: enhance binary relative
11059         search for lib and include by using findProgramPath()
11060
11061 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11062
11063         * src/SDCCpeeph.h,
11064         * src/SDCCpeeph.c (pcDistance),
11065         * src/port.h,
11066         * src/mcs51/ralloc.h,
11067         * src/mcs51/ralloc.c (mcs51_regWithIdx),
11068         * src/mcs51/main.h,
11069         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
11070         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
11071         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
11072         size calculation port specific, started basis for some register
11073         optimizations
11074         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
11075         missing push/pop of r0/r1. Optimized push/pops
11076         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
11077         * device/lib/_modsint.c (_modsint),
11078         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
11079         and stack version so regression tests pass
11080
11081 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
11082
11083         * src/Makefile.in (dep): include SLIBOBJS in dependency check
11084         * src/SDCCast.c (decorateType): catch another small optimization
11085         with '?' operator
11086         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
11087         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
11088         modified to finally use computeType() all over SDCC,
11089         see Feature Request #877103
11090         * src/SDCCval.h: cosmetic
11091         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
11092         valCompare(); regression tested in muldiv.c
11093         * support/regression/tests/muldiv.c (testMod): mod sign follows
11094         dividend only
11095
11096 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
11097
11098         * src/SDCCast.c (decorateType): fixed bug #902362
11099         * doc/INSTALL.txt: fixed install instructions for win32
11100
11101 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
11102
11103         * device/include/Makefile.in (install): fixed by replacing spaces
11104         by tabs
11105         * doc/README.txt,
11106         * doc/INSTALL.txt: updated for release
11107         * doc/sdccman.lyx: added warning for --xstack being buggy
11108
11109 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
11110
11111         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
11112         to eliminate build warnings.
11113         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
11114
11115 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
11116            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11117
11118         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
11119         removed -penable-stack, added comment for stack pragma, added
11120         warning for not initializing the stack/frame registers, removed
11121         comment at interrupts section
11122
11123         Stack is made permanent, there is no ability to disable stack usage.
11124         * src/pic16/device.h,
11125         * src/pic16/device.c: removed all references to USE_STACK macro,
11126         * src/pic16/device.c (pic16_dump_section): when no elements in
11127         rlist, free rlist before return,
11128         * (pic16_dump_int_registers): NEW, internal registers are a new set
11129         of general purpose registers reused by each function,
11130         * (checkAddReg): returns 1 if registers is added to set,
11131         * (pic16_groupRegistersInSection): when a registers is of type
11132         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
11133         * src/pic16/device.h: memRange and Assigned Memory are deleted,
11134         SRCASECMP macro is moved here from device.c
11135         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
11136         PO_PCLATU, PO_PRODL, PO_PRODH,
11137         * (pic16_pCodeOpType, genMinus,
11138         changed compares to "a" register, with AOP_ACC,
11139         * (pic16_genPlus): fixed some bugs and indented properly,
11140         * (pic16_addSign): changed size to size+offset in the MOVWF
11141         instruction,
11142         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
11143         multiply 8-bit operand by literal, result is 8-bit,
11144         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
11145         multiply 2 8-bit operand, result is 8-bit,
11146         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
11147         genUMult8X*_16,
11148         * src/pic16/gen.c: changed accUse to contain WREG only,
11149         * (pic16_emitcomment): renamed to pic16_emitpcomment,
11150         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
11151         true, do not use immediate addressing any more unless sym is a
11152         pointer in codespace,
11153         * (aopForRemat): do not use immediate addressing when symbol not in
11154         codespace and when symbol's address is requested,
11155         * (aopOp): for-loop in if(sym->accUse) is modified for the new
11156         accUse size (= 1),
11157         * (aopGet): added case for AOP_ACC and don't return "accumulator
11158         bug" but WREG instead,
11159         * (popGetTempReg): pushes contents of temporary register in stack,
11160         * (popReleaseTempReg): pops contents of temporary register from
11161         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
11162         * (pic16_popGet): separated case AOP_ACC to return register WREG
11163         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
11164         or PO_IMMEDIATE and initializes their instance/offset appropriately,
11165         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
11166         the use of immediate pointers to certain cases only.
11167
11168         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
11169         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
11170         * (assignResultValue, genCall, genRet): modified to use the new
11171         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
11172         genPcall is still broken,
11173         * (genFunction): added code to create 'A' type pBlocks when
11174         interrupt functions are generated, code not extensively tested yet,
11175         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
11176         * (genEndFunction): modified so ISRs pop stored registers from stack,
11177         * (genMultOneByte): cleanup,
11178         * (AccRsh): added flag andmask, to and result with appropriate mask,
11179         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
11180         * (genDataPointerGet): fixed and reenabled its use,
11181         * (genNearDataPointerGet): bugs fixed,
11182         * (genDataPointerSet): bugs fixed,
11183         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
11184         pic16_DumpSymbol, pic16_DumpOp,
11185         * src/pic16/genutils.h: function prototypes for the above functions,
11186         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
11187         pointers,
11188         * (pic16emitRegularMap): many many many improvements, but needs a
11189         major cleanup,
11190         * src/pic16/main.c: enable_stack in pic16_options is removed,
11191         * (_pic16_parseOptions): removed command line options -penable-stack,
11192         * (_process_pragma): emit stack symbol only when stack pragma is
11193         processed,
11194         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
11195         redirected to FSR0L/FSR0H pair,
11196         * (pic16_get_op, pic16_get_op2): modifications and improvements,
11197         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
11198         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
11199         for immediates,
11200         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
11201         * (dumpPicOptype): NEW,
11202         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
11203         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
11204         with movff instruction,
11205         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
11206         added pic16_int_regs, some packRegsFor* functions are commented out,
11207         because produce errors,
11208         * src/pic16/NOTES: minor modifications
11209
11210 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11211
11212         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
11213         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
11214         --pack-iram.
11215         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
11216         * as/mcs51/lkaomf51.c: fixed bug #895763
11217
11218 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
11219
11220         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
11221
11222 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11223
11224         * doc/sdccman.lyx: added details about the HC08 storage classes and
11225         interrupts, fixed the register usage info for z80 & gbz80
11226
11227 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
11228
11229         * doc/sdccman.lyx: added more pic16 port documentation
11230         * device/include/pic16/: added header pic18fregs.h
11231
11232 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
11233
11234         * doc/sdccman.lyx: added Vangelis' contribution
11235
11236 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11237
11238         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
11239         extend to the next CALL or PCALL, not just to the next CALL.
11240
11241 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
11242
11243         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
11244
11245 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11246
11247         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
11248         bug #895752 and a better fix for bug #716790
11249
11250 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11251
11252         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
11253
11254 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11255
11256         * doc/sdccman.lyx: minor changes, minor changed
11257
11258 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
11259
11260         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
11261         which can't handle SDCC_NEWONEBYTEOPS,
11262         (geniCodeMultiply): removed conversion from mult to shift for pic14
11263         and pic16
11264
11265 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11266
11267         * src/hc08/gen.h,
11268         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
11269         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
11270         thus fixing bug #895406
11271
11272 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
11273
11274         * device/lib/_modsint.c,
11275         * device/lib/_modslong.c: sign follows divisor only
11276         * src/hc08/gen.c (genMultOneByte): if result size is 1,
11277         signs or signedness can be ignored
11278         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
11279         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
11280         added optimization for IFX,
11281         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
11282         arguments;
11283         reenabled optimization for IFX, which was removed on 2004-01-11
11284         * src/SDCCast.h: added return type IFX
11285         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
11286         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
11287         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
11288         SDCC_OLDONEBYTEOPS selects the old behaviour
11289         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
11290         changed again and commented promotion rule
11291         * src/SDCCval.c (valDiv): promotion no longer necessary
11292         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
11293         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
11294         rewritten
11295         * support/regression/tests/onebyte.c: added
11296
11297 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
11298
11299         * gen.c (genInline): reverted to old code for assemnling inline
11300         code because of bug reported James Chadd
11301
11302 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
11303
11304         * ralloc.h: missing declarations from previous patch,
11305         seems that patch for ralloc.h was never applied, fixed
11306
11307 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11308            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
11309
11310         * pcode.c,
11311         * pcode.h,
11312         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
11313         indirect addressing. Marked FSR0 as deprecated
11314         * gen.c (pointerCode): commented out, not needed now
11315         (pic16_popGet2p): new MOVFF helper function
11316         (genGenPointerGet),
11317         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
11318         (shiftRLong): removed duplicate debugging info
11319
11320 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11321
11322         * src/ds390/gen.c (genNearPointerGet),
11323         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
11324         optimization with bits, but not bitfields.
11325         * src/ds390/ralloc.c (packRegisters),
11326         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
11327
11328 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
11329
11330         * src/SDCCcse.c (algebraicOpts): copy operands before modification
11331
11332 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11333
11334         * src/SDCCsymt.h,
11335         * src/SDCCicode.c (operandFromSymbol),
11336         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
11337         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
11338         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
11339         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
11340         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
11341         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
11342         bug #892038
11343         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
11344         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
11345         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
11346         * src/SDCCsymt.c (newSymbol),
11347         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
11348         enumerator_list),
11349         * src/SDCCval.h,
11350         * src/SDCCval.c (newiList): fixed bug #885705
11351
11352 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11353
11354         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
11355         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
11356
11357 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11358
11359         * device/include/c8051f120.h,
11360         * device/include/c8051f300.h,
11361         * device/include/c8051f310.h: added/updated header files for Silicon
11362         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
11363         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
11364         in new section Submitting patches
11365
11366 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11367
11368         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
11369         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11370         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11371         genGenPointerSet),
11372         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
11373         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11374         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11375         genGenPointerSet),
11376         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
11377         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11378         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11379         genGenPointerSet),
11380         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
11381         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11382         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11383         genGenPointerSet): fixed bug #892400
11384         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
11385         to eliminate build warnings.
11386         * src/SDCCast.c (processParms),
11387         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
11388         fixed bug 751859
11389         * support/valdiag/valdiag.py: added GCC to the list of defines active
11390         when compiling with gcc
11391
11392 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11393
11394         * support/Util/SDCCerr.h,
11395         * support/Util/SDCCerr.c,
11396         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
11397         with an incomplete type (fixed bug #883734)
11398         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
11399
11400 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11401
11402         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
11403
11404 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11405
11406         * src/SDCCast.c (decorateType),
11407         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
11408         function pointer implementation
11409         * support/regression/tests/funptrs.c: added tests to verify both forms
11410         of function pointers work correctly. Added tests to verify parameters
11411         are passed in the correct order.
11412
11413 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
11414
11415         * device.c (regCompare): registers are sorted by ascending
11416         address and increasing size,
11417         * main.c (_pic16_finaliseOptions): removed the declaration
11418         of compiler macro MCU. Now a macro of the format pic18fxxxx
11419         will be defined from the command line
11420
11421 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11422             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
11423
11424         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
11425         PCOP_RLCF was overwritten!
11426         * gen.c (genSkip): commented out calls to pic16_emitcode,
11427         * (genCmpEQ): fixed "long" compares, only high word did get compared,
11428         * (genlshTwo),
11429         * (genRRC): added debugging info,
11430         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
11431         overwritten while shifting,
11432         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
11433         overwritten while shifting,
11434         * (AccLsh),
11435         * (AccRsh),
11436         * (shiftLLeftOrResult),
11437         * (shiftRLeftOrResult),
11438         * (shiftRLong),
11439         * (shiftLLong): Implemented with pic16_emitpcode
11440         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
11441         * (genLeftShift): Fixed bug, operand for shift by variable always
11442         was "and"ed with 0x0f,
11443         * (genLeftShiftLiteral),
11444         * (genrshTwo),
11445         * (genRightShiftLiteral): added debugging info,
11446         * (genrshFour): added comment,
11447         * (genRightShift): determined signedness from operand "left"
11448         instead of "result"
11449
11450 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11451
11452         * src/SDCCicode.c (geniCodeParms),
11453         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
11454         function pointers, fixed function pointer bugs #861242 and #861896
11455
11456 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11457
11458         * device/include/c8051f000.h,
11459         * device/include/c8051f120.h,
11460         * device/include/c8051f300.h: added header files for Silicon
11461         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
11462
11463 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
11464
11465         * src/SDCCast.c (processParams): added new type flow and restructured
11466         (gatherAutoInit): added new type flow
11467         (addCast): cosmetic changes
11468         (getLeftResultType): added new type flow for array indices, patch
11469         provided by Stas, see FR #877103
11470         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
11471         array index patch by Stas
11472         * src/SDCCast.h: added prototype getResultTypeFromType()
11473         * src/SDCCval.h,
11474         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
11475         * src/pic/glue.c (pic14emitStaticSeg),
11476         * src/pic16/glue.c (pic16emitStaticSeg),
11477         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
11478         for initialization of symbols
11479         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
11480         * support/Util/SDCCerr.h:
11481         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
11482         * .version: bumped version number to 2.3.8
11483         * device/include/Makefile.in (install),
11484         * doc/Makefile (install): changed to 'rm `find ...`' construct to
11485         avoid warnings
11486
11487 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
11488
11489         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
11490         Slade Rich fixed an optimization bug
11491         * src/pic/pcodepeep.c,
11492         * src/pic/pcoderegs.c
11493         * doc/Makefile (install): added test for directory
11494
11495 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11496
11497         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
11498         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
11499         * src/pic/ralloc.c (getRegPtr, getRegGpr),
11500         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
11501         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
11502         * as/mcs51/asexpr.c (term),
11503         * as/hc08/asexpr.c (term): fixed bug #887146
11504
11505 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11506
11507         * src/z80/gen.c (genMult): handle single byte result product
11508         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
11509         DUMMY_READ_VOLATILE (fixed bug #886367)
11510
11511 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
11512
11513         * support/regression/tests/libmullong.c: fixed logic, on little endian
11514         hosts we ended without a mullong_wrapper()
11515
11516 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11517
11518         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
11519         virus/worm forged address usage.
11520
11521 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
11522
11523         Fixed promotion, it should be done on AST level:
11524         * src/SDCCast.c (addCast): added promotion to int
11525         (decorateType): updated call to upCast()
11526         * src/SDCCicode.c (geniCodeLeftShift): removed call to
11527         usualUnaryConversions()
11528
11529 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
11530
11531         * support/regression/tests/literalop.c (mulWrapper): Added a
11532         wrapper to remove integer overflow warnings.
11533
11534         * support/regression/tests/float_trans.c: Made work on host.
11535
11536         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
11537         location of sz80.
11538
11539         * support/regression/generate-cases.py (main): Changed from inline
11540         to a main method.
11541
11542         * doc/Makefile (install): Changed to depth first to get rid of
11543         missing directory install warning.
11544
11545         * as/Makefile (install-doc): Made work on Mac.
11546
11547 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
11548
11549         * src/SDCCast.c: added an additional type flow in decorateType() of
11550         opposite direction, see feature request #860006; it's enabled at runtime
11551         by setting the environment variable SDCC_NEWTYPEFLOW
11552         * src/SDCCast.h: changed prototype of decorateType()
11553         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
11554         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
11555         'char' to 'int' can be omitted, if both operands are 'unsigned char';
11556         see feature request #877103
11557         * src/SDCCval.c: updated call of decorateType()
11558         (valBitwise): fixed bug #882876
11559         (valMinus): added promotion
11560         (valLogicAndOr): result is unsigned
11561         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
11562         * src/SDCCsymt.c (computeType),
11563         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
11564         must not cause an unsigned operation
11565         * src/pic/glue (pic14emitRegularMap),
11566         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
11567
11568 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
11569
11570         * src/pic/pcode.c (PCodeID): commented out left over debug code
11571
11572 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
11573
11574         * support/valdiag/tests/overflow.c: added shift tests
11575         * src/pic/device.c,
11576         * src/pic/gen.c,
11577         * src/pic/gen.h,
11578         * src/pic/glue.c,
11579         * src/pic/main.c,
11580         * src/pic/pcode.c,
11581         * src/pic/pcode.h,
11582         * src/pic/pcodepeep.c,
11583         * src/pic/pcoderegs.c,
11584         * src/pic/ralloc.c,
11585         * src/pic/ralloc.h: applied patch from Slade Rich;
11586         added support for multiple code pages and multiple RAM banks on the
11587         PIC 14 port. The ASM files now no longer simply assume all the
11588         code / RAM are in the same page / bank. This means the linker can
11589         safely allocate code/RAM of separate ASM files to different pages/banks.
11590         * doc/sdccman.lyx: added Slade's tips
11591         * src/mcs51/peeph.def: fixed bug #880768
11592
11593 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11594
11595         * src/hc08/ralloc.c (rematStr): fixed bug #879282
11596         * src/SDCCast.c (decorateType): fixed bug #880197
11597
11598 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
11599
11600         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
11601         getopt.h.
11602
11603         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
11604         strtof is not part of C89 and isn't included with Mac OS X.
11605
11606 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11607
11608         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
11609         shiftL2Left2Result): fixed bug #879326
11610         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
11611         (genMultOneByte): fixed bug in signed vs unsigned multiplication
11612         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
11613         address fetch for clr instruction
11614         * device/lib/hc08/_mulint.c: created optimized assembly version
11615         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
11616
11617 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
11618
11619         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
11620         proposed in FR #877103
11621
11622 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
11623
11624         * src/SDCCval.c (cheapestVal): added missing checks
11625         * src/SDCCicode.c (usualBinaryConversions): fixed condition
11626         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
11627
11628 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
11629
11630         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
11631         equal operands
11632
11633 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
11634
11635         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
11636         loaded with the linker search paths (-L arguments) and the libraries
11637         to be linked with the current source (-l arguments). Changes
11638         currently will affect only the pic16 port.
11639         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
11640         include path the port specific paths and port specific libraries,
11641         * gplink command now contains the $3 argument,
11642         * src/pic16/device.h,
11643         * src/pic16/device.c,: structure PIC_device is made public and
11644         renamed to PIC16_device, the same for variable Pics which is renamed
11645         to Pics16. Updated all references to them.
11646         * src/pic16/glue.c (pic16glue): corrected bug with code
11647         initialization which bypassed the variable initializations block.
11648
11649         * device/lib/pic16/Makefile.rules: removed --penable-stack from
11650         COMPILE_FLAGS and added the --nostdinc option
11651
11652 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11653
11654         * device/include/mc68hc908jb8.h: Register defs for another member
11655         of the hc08 family. Contributed by Bjorn Bringert - thanks!
11656
11657 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
11658
11659         Documenting changes from previous commits.
11660         * configure.in (version 1.56),
11661         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
11662         when generating output files to configure the pic16 library,
11663         but now I've commented it out, since gputils aren't installed in the
11664         SF compile farm, so library won't compile
11665
11666         * device/lib/Makefile.in (version 1.56): initially I've added in
11667         target 'all' the prerequestive 'model-pic16' so it compiled the
11668         pic16 library, but now I've commented it out for the same reasons
11669         above,
11670         * added targets 'model-pic16' and 'objects-pic16' to compile the
11671         library
11672         * added target 'port-specific-objects-pic16' to handle the
11673         generated libraries and copy them into the build/ directory
11674         * added target 'clean-intermediate-pic16' to clean intermediate
11675         files into pic16 directory
11676         * in target 'installdirs' added line to create directory pic16 in
11677         the installation path
11678
11679         * device/include/Makefile.in (version 1.11): in target 'install'
11680         added lines to copy all header files to installation path,
11681         * in target 'installdirs' added line create directory for pic16
11682         headers in the installation path
11683
11684 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
11685
11686         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
11687          a function call
11688
11689 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
11690
11691         * configure,
11692         * device/lib/configure.in,
11693         * device/lib/configure: fixed for autoconf 2.57
11694
11695 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11696
11697         * src/z80/main.c (_parseOptions): fixed the portmode= command line
11698         option so that it actually works. Made it specific to the z80, since
11699         the gbz80 doesn't have these kinds of I/O ports.
11700
11701 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11702
11703         * device/include/z180.h,
11704         * device/lib/_memcpy.c,
11705         * device/lib/_memmove.c,
11706         * device/lib/_mulint.c,
11707         * device/lib/ser_ir.c,
11708         * device/lib/ser_ir_cts_rts.c,
11709         * device/lib/_strcmp.c,
11710         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
11711         * src/z80/main.c (_process_pragma): add support for pragmas bank and
11712         portmode; added deprecation warning for bank= and protmode= forms.
11713         Also, guard against buffer overflow.
11714         * src/z80/gen.c (aopGet): generate better code for sfr banked read
11715
11716 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11717
11718         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
11719         changed interrupt vector table generation to only emit declared vectors.
11720         * device/include/Makefile.in: added missing backslash
11721         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
11722
11723 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
11724
11725         Mainly changes to support compilation of the device libraries
11726         * src/pic16/device.c: stack is allocated via symbol and not
11727         via literal number. The symbol is placed in the corresponding
11728         position of the data ram
11729         * (pic16_dump_section): relocatable and absolute uninitialized
11730         data are now emitted in sorted order to reduce section naming,
11731         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
11732         weren't marked as being in the access bank,
11733
11734 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
11735
11736         Added portion of GNU PIC Library under the directory
11737         device/include/pic16 and device/lib/pic16. These files
11738         contain the declarations of SFRs for the PIC18Fxx2 devices.
11739         The directory is initialized via configure from toplevel.
11740
11741 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
11742
11743         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
11744         the spilllocations to be compared correctly
11745
11746 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
11747
11748         * src/SDCCast.c (decorateType): fixed bug introduced today
11749
11750 2004-01-12  Borut Razem <borut.razem AT siol.net>
11751
11752         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
11753         doc/sdccman.lyx: upper case pragmas are deprecated
11754
11755 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
11756
11757         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
11758         in simpler and even better code
11759
11760 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
11761
11762         * src/SDCCicode.c (operandOperation): fixed bug #874819
11763         * src/SDCCast.c (decorateType): fixed
11764         char foo (unsigned long ul) { return ul > 0; }
11765
11766 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11767
11768         * doc/sdccman.lyx: Moved and added some sections, small changes
11769         all over. Telling LaTeX to be less strict with word spacing
11770         to better keep the right margin. Changed some notes about
11771         maintainance of the ports in section 3.2.1 - is it OK like this?
11772
11773 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
11774
11775         SDCC source changes:
11776         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
11777         convilong): modified to inform the pic16 port that builtin functions
11778         are external
11779
11780         PIC16 PORT specific changes:
11781         * src/pic16/device.c pic16_dump_equates() added,
11782         processor registers declared internally by the port are emitted in
11783         the translation as equates,
11784         * src/pic16/gen.c: inline code is passed unprocessed to the
11785         translation,
11786         * (pic16_popGetLit2): fnuction modified to take second operand as
11787         pCodeOp pointer and not as literal,
11788         * (popRegFromIdx): prefixed with pic16_,
11789         * (pic16_popCombine2): modified to receive already allocated pCode
11790         operands,
11791         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
11792         * (genFunction): initializes local stack frame and pushes on stack
11793         all the registers used by this function,
11794         * (genEndFunction): restores all registers from stack and restores
11795         stack frame,
11796         * src/pic16/glue.c (pic16emitRegularMap): various changes and
11797         improvements,
11798         * (pic16glue): changed the program startup sequence,
11799         * added new dbName code 'A' for functions placed in absolute section
11800         * src/pic16/main.c: added function attribute _naked,
11801         * added pragma 'code' to place a fnuction at an absolute address,
11802         * added command line arguments --debug-ralloc and --pcode-verbose,
11803         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
11804         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
11805         * (pic16_newpCodeOpLit2): modified to take the second operand as
11806         pCodeOp pointer,
11807         * (pic16_printpBlock): modified to emit each function in a separate
11808         section,
11809         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
11810         UPPER for immediate operands,
11811         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
11812         instruction,
11813         * src/pic16/peeph.def: all peepholes with movff are commented out,
11814         because there is a problem in the pcode peep optimizer,
11815         * src/pic16/ralloc.c: the register allocator can now reuse local
11816         function symbols for another function. This saves register usage.
11817         * src/pic16/ralloc.h: added flag isLocal in structure regs,
11818
11819         Added file src/pic16/NOTES with information about program writing on
11820         the current port version.
11821
11822 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11823
11824         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
11825         and peephole 252 (array access)
11826
11827 2004-01-09  Borut Razem <borut.razem AT siol.net>
11828
11829         * src/SDCCmain.c : fixed #872250: -l command line defined library
11830           files are scanned before standard library files
11831
11832 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11833
11834         * src/SDCCast.c (decorateType): fixed bug #874046
11835
11836 2004-01-09  Borut Razem <borut.razem AT siol.net>
11837
11838         * support/scripts/sdcc.nsi: remove previous installation
11839
11840 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11841
11842         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
11843         bytes for last interrupt vector (mcs51)
11844         * sdcc.spec: fixed typo
11845
11846 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11847
11848         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
11849         gen51Code): more efficient parameter receive for --model-large
11850         ("bug" #845294)
11851
11852 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11853
11854         * src/ds390/main.c,
11855         * src/z80/main.c: added missed needLinkerScript flags (more than
11856         one port structure defined in these file)
11857         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
11858         bug #795325
11859
11860 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
11861
11862         * src/SDCCmain.c: removed various references to DEFAULT_PORT
11863         * src/port.h: added flag needLinkerScript in port->linker
11864         structure to inform whether to create a .lnk file or not,
11865         * src/avr/main.c,
11866         * src/ds390/main.c,
11867         * src/hc08/main.c,
11868         * src/mcs51/main.c,
11869         * src/pic/main.c,
11870         * src/pic16/main.c,
11871         * src/xa51/main.c,
11872         * src/z80/main.c: changed appropriately to configure
11873         needLinkerScript flag
11874         * src/pic/gen.c,
11875         * src/pic16/gen.c (genAddrOf): fixed bug #863624
11876         * src/pic/glue.c: added variable udata_section_name to
11877         override default uninitialized data segment definition for
11878         devices only with SHAREBANK memory (reported from Erik Epetrich)
11879         * (pic14emitOverlay): modified to emit a commented overlay segment
11880         directive when no overlay data exist
11881         * (picglue): modified to emit uninitialized data segment
11882         according to udata_section_name
11883         * src/pic/main.c (_pic14_parseOptions): added command line
11884         options --udata-section-name=[name] to override default
11885         udata definition name
11886         * modified _linkCmd and _asmCmd to include compiler passed
11887         arguments via -W option
11888         * src/pic16/main.c: added $l in _asmCmd, changed extension for
11889         object file from '.rel' to '.o' in port->linker structure,
11890         changed size of fptr from 2 to 3 in port structure
11891
11892 2004-01-07  Borut Razem <borut.razem AT siol.net>
11893
11894         * support/scripts/sdcc.nsi: update PATH
11895         * support/scripts/sdcc.ico: craeted
11896
11897 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
11898
11899         * device/include/Makefile.in: fix install
11900         * doc/Makefile: fix install
11901
11902 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11903
11904         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
11905         in bug #860505
11906         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
11907         how the function variable allocation summary is displayed; also
11908         include information about variables allocated to the overlay
11909         segment
11910
11911 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11912
11913         * as/mcs51/lkmain.c: Help about -Y option
11914         * as/mcs51/lkarea.c: Fixed gcc warnings
11915
11916 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
11917
11918         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
11919         fixed warning
11920         * support/valdiag/tests/overflow.c: added
11921         * src/SDCCast.c (decorateType),
11922         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
11923         LEFT_OP (left shift)
11924
11925 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11926
11927         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
11928         (default behaviour).
11929
11930 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11931
11932         A python script to validate compiler diagnostic messages. It can be
11933         used to verify that sdcc complains about bad c source code and
11934         gives a good location of the error.
11935         * support/valdiag/Makefile,
11936         * support/valdiag/valdiag.py,
11937         * support/valdiag/tests/*
11938
11939 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11940
11941         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
11942         * src/SDCCsymt.c (newEnumType),
11943         * src/SDCCsymt.h
11944         * support/Util/SDCCerr.c,
11945         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
11946         enum related bugs.
11947         * support/regression/tests/enum.c: added test for enum values that
11948         require at least 2 bytes of storage.
11949
11950 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
11951
11952         * src/common.h: added ifndef/define/endif macros
11953         around the header file.
11954         Bug reported from Jesus Calvino-Fraga
11955
11956 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
11957
11958         * sdcc.spec: updated
11959         * device/include/Makefile.in: don't install CVS directories
11960         * device/lib/Makefile.in: added removal of CVS directories after install
11961         * doc/Makefile: fixed install, added local_icons
11962         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
11963         * src/mcs51/gen.c (genRightShift): fixed bug #870788
11964         * src/ds390/gen.c (genRightShift): fixed bug #870788
11965         * src/SDCCast.c (decorateType): fixed bug #870781
11966
11967 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
11968
11969         PIC16 port related changes:
11970         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
11971         added variable stackPos,
11972
11973         * gen.c: genCall, assignResultValue: added support for
11974         pushing/retrieving function parameters to/from stack,
11975         genFunction,genEndFunction: setup stack frame for the
11976         generated function,
11977         genAddrOf: will be changed according to bug 863624
11978
11979         * added files genutils.c and genutils.h which contain gen*
11980         debugged and optimised functions extracted from gen.c
11981
11982         * glue.c: added variable 'externs' which holds extern symbols,
11983         pic16emitRegularMap: is modified to properly handle relocatable
11984          symbols under the new scheme,
11985         pic16createInterruptVect: is modified
11986         pic16printPublics: is modified to emit 'global' assembler directives,
11987         added pic16_printExterns to print extern symbols,
11988         pic16glue: initializes stack/frame pointer in the beginning of
11989         the assembly output. Temporary hack, will be corrected later,
11990         because gplink yet does not support stack and SDCC does not
11991         yet support a type of crt0.o object to create the final binary.
11992
11993         * Removed many lines that contain 8051 legacy code.
11994         * The code is finally placed under a 'code' directive.
11995         * Added port specific options.
11996
11997         * _process_pragma: simplified since now we do not need *special*
11998         include file to define SFR registers. But a separate header
11999         will be needed. This will be developed later.
12000         * _pic16_parseOptions: added, parses port specific options:
12001         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
12002         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
12003         --preplace-udata-with=
12004
12005         * _pic16_setDefaultOptions: modified to initialize section names,
12006         but hack is temporarly out of order since it needs improvement.
12007         * _pic16_genAssemblerPreamble: configuration words are emitted by
12008         their address instead of their name. This part is incomplete and
12009         supports only the 18Fxx2 devices. Other devices will emit an error
12010         during assembly since they do not contain the same set of config
12011         registers
12012         * _pic16_genIVT: is modified,
12013
12014         * pcode.c: added definitions for some hardware registers that are needed
12015         for stack support
12016         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
12017         All PCI entries are updated. Now LFSR is supported.
12018         * Removed pic16_pciTRIS is mentioned by mdubuc in source
12019         * added pic16_newpCodeOpLit2 to support instructions with
12020         two literal arguments
12021         * pic16_pCode2str: corrected code that emits assembler instructions
12022         with two literal operands and those that have an access bit modifier
12023         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
12024         this fixes a bug which caused some labels to be lost, when an
12025         assembler directive was added, i.e. banksel,
12026         * pic16_FixRegisterBanking: improved logic that causes the insertion
12027         of bank switching,
12028         * InlineFunction: functions that are called once, are not any more
12029         inlined. This can be a port option in the future,
12030
12031         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
12032
12033         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
12034         hold the corresponding uninitialized symbols,
12035         * pic16_allocProcessorRegister: registers have explicit marked the
12036         accessBank field,
12037         * pic16_allocInternalRegister: registers are explicit marked as
12038         not used,
12039         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
12040         processing list, so bit registers were lost,
12041         *
12042
12043         * ralloc.h: added field 'accessBank' and original symbol operand
12044         in register definition,
12045         * removed the field isMapped from register definition,
12046
12047         ** Several functions have been removed from various sources:
12048         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
12049         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
12050         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
12051         pic16_assignRelocatableRegisters
12052
12053         ** others have been introduced:
12054         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
12055         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
12056
12057 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
12058
12059         * support/scripts/inc2h.pl: changed definition of BIT_AT
12060         to emit 'sbit at' instead of 'bit at'. This was a request.
12061
12062         PIC16 port related preliminary changes:
12063         * gen.c: prefixed function popRegFromString with
12064         pic16_ and all references to it corrected
12065         * pcode.c: all pic16_pc_* hardware registers prefixed
12066         with underscore (_),
12067         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
12068         * ralloc.c: newReg(): when register is REG_SFR then
12069         set address to rIdx,
12070         pic16_allocProcessorRegister(): marks register wasUsed=0
12071         pic16_writeUsedRegs(): added a call to assign processor
12072         registers via pic16_assignFixedRegisters
12073
12074 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12075
12076         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
12077         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
12078         variables in unused register banks.  Also the SSEG is placed
12079         wherever there is enough space for it, and IDATA can be anywhere
12080         in internal RAM.  For now compile using -Wl-Y[stack_size].
12081         The mem file is different for this option as well, since it
12082         makes no sense of talking about DSEG lenght.
12083
12084 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
12085
12086         * src/SDCClrange.c: fixed bug 869095 that caused segfault
12087         in certain cases, e.g. when ROM assignment, patch provided
12088         from Albert den Haan.
12089
12090 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
12091
12092         Many signedness and type propagation fixes:
12093         * src/SDCCicode.c: made geniCodeCast() static
12094         replaced SPEC_ by IS_ (cosmetic)
12095         (operandOperation): fixed div and mod operation
12096         (usualBinaryConversions): added support for promotion of char
12097         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
12098         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
12099         (geniCodeAdd): an array index will stay unsigned, even if promoted
12100         from char to int
12101         (geniCodeArray): ditto
12102         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
12103         * src/SDCCsymt.c (computeType): added more support for char;
12104         promotion of char is selectable by promoteCharToInt, fixed signedness
12105         for all cases
12106         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
12107         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
12108         * src/SDCCval (val*): replaced signedness calculation by
12109         computeType()
12110         rearranged if-branches (cosmetic)
12111         (valShift): added warning W_SHIFT_CHANGED
12112         (valCompare): fixed problem with different types
12113         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
12114         * support/regression/tests/literalop.c: added many cases
12115         * support/regression/tests/ast_constant_folding.c: changed finally to
12116         'unsigned int'
12117         * .version: new year, new version: 2.3.7
12118         * src/SDCCmain.c (main): applied patch #866468
12119         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
12120         provided by Scott Bronson
12121         * doc/sdccman.lyx: updated documentation for sdcdb
12122         updated and added chapter tips
12123
12124 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12125
12126         * src/SDCCsymt.h: missing from yesterday's commits
12127
12128 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12129
12130         * src/SDCC.y (struct_or_union_specifier),
12131         * support/Util/SDCCerr.c,
12132         * support/Util/SDCCerr.h: verify that struct & union tags are used
12133         as declared.
12134
12135 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12136
12137         * src/SDCCglobl.h: missing from yesterday's commits
12138
12139 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12140
12141         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
12142         sft_attributes, struct_declaration, parameter_declaration,
12143         type_name, start_block, declaration_list),
12144         * src/SDCC.lex (check_type): support redefinition of typedef names
12145
12146 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12147
12148         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
12149         aligned xdata arrays. Erik helped me with the if clause.
12150
12151 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12152
12153         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
12154         warning
12155
12156 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12157
12158         * src/SDCCast.h,
12159         * src/SDCCast.c (newAst_),
12160         * src/SDCCicode.h,
12161         * src/SDCCicode.c (ast2iCode, newiCode),
12162         * src/SDCCglobl.h,
12163         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
12164         expr, statement, expression_statement, selection_statement,
12165         iteration_statement, expr_opt, jump_statement): foundation for tracking
12166         sequence points
12167         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
12168         point code too)
12169
12170 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12171
12172         * support/Util/SDCCerr.c,
12173         * src/SDCCast.h,
12174         * src/SDCCast.c (createCase, createDefault, decorateType),
12175         * src/SDCClabel.c (labelUnreach),
12176         * src/SDCC.y (labeled_statement, jump_statement): More improvements
12177         to error messages.
12178         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
12179         (with thanks to Stas Sergeev)
12180         * device/include/time.h,
12181         * device/lib/time.c (CheckTime): suppress unreachable code warning
12182
12183 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12184
12185         * src/SDCCast.c (createIvalCharPtr),
12186         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
12187         bug #753752)
12188         * support/regression/tests/nullstring.c: tests for these two bugs
12189
12190 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12191
12192         * support/Util/SDCCerr.h,
12193         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
12194         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
12195         about storage class and 'at' used inside struct or union
12196         * src/SDCCBBlock.c (iCodeFromeBBlock),
12197         * src/SDCCcse.c (ifxOptimize),
12198         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
12199         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
12200         printIval, emitStaticSeg, emitOverlay),
12201         * src/SDCClabel.c (deleteIfx),
12202         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
12203         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
12204         gatherAutoInit, processParms),
12205         * support/Util/SDCCerr.h,
12206         * support/Util/SDCCerr.c (werrorfl): Support for better error location
12207         reporting for post-parse errors.
12208
12209 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12210
12211         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
12212         implicit casts via union; they don't work on big endian systems
12213         (possible fix for bug #861138)
12214
12215 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12216
12217         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
12218         * src/mcs51/main.c: fixed the fix for bug #737001
12219
12220 2003-12-15  Borut Razem <borut.razem AT siol.net>
12221
12222         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
12223
12224 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12225
12226         * support/makebin/makebin.c: put output in binary mode
12227
12228 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12229
12230         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
12231         xdata and data memory on startup. Set the environment variable
12232         SDCC_NOGENRAMCLEAR to disable this.
12233         * src/mcs51/peephole.def,
12234         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
12235         (allows non-interrupt and interrupt code to safely compete for a resource
12236         without the non-interrupt code having to disable interrupts)
12237
12238 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12239
12240         * src/SDCCicode.c (geniCodeAdd),
12241         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
12242         with valFromType if type might be a pointer and host is big endian).
12243         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
12244         types, not just integer types.
12245         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
12246         multiply defined with mismatching "at" address.
12247
12248 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12249
12250         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
12251         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
12252         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
12253         with embedded nulls (fixed bug #753752)
12254
12255 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12256
12257         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
12258         Apparently this did not see much testing (endless loop)
12259
12260 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12261
12262         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
12263
12264 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12265
12266         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
12267         gracefully handle NULL memmap pointers
12268
12269 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12270
12271         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
12272         instead of deleting the iCode when an operand is volatile
12273         * src/z80/gen.c (genDummyRead),
12274         * src/mcs51/gen.c (genDummyRead),
12275         * src/ds390/gen.c (genDummyRead),
12276         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
12277         not just IC_RIGHT
12278         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
12279         * src/SDCC.y: fixed bug #850420
12280
12281 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12282
12283         Applied z80 i/o port patch from Peter Townson and fixed some operators
12284         to better handle operands in A register.
12285         * device/include/z180.h
12286         * src/SDCC.y
12287         * src/SDCCglue.c
12288         * src/z80/gen.c
12289         * src/z80/gen.h
12290         * src/z80/main.c
12291         * src/z80/peeph-z80.def
12292         * src/z80/peeph.def
12293         * src/z80/z80.h
12294
12295 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12296
12297         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
12298
12299 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12300
12301         * device/lib/hc08/_mullong.c: Removed extra #endif
12302
12303 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12304
12305         * sim/ucsim/hc08.src/inst.cc,
12306         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
12307         carries from x to h
12308         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
12309         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
12310         * device/include/stdarg.h: fixed varargs for hc08
12311         * device/lib/Makefile.in,
12312         * device/lib/hc08/Makefile,
12313         * device/lib/hc08/_mulint.c,
12314         * device/lib/hc08/_mullong.c: fixed some endian problems
12315
12316 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12317
12318         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
12319         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
12320         * device/lib/_gptrget.c,
12321         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
12322
12323 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12324
12325         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
12326         * src/SDCCast.c (astErrors): fixed bug #846007
12327         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
12328
12329 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12330
12331         * src/SDCCast.c (decorateType): disabled a transformation I added in
12332         revision 1.188 (access to fields of a structure at an absolute address);
12333         it breaks with bitfields, extern declarations, and gcse analysis.
12334         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
12335         could be assigned through a pointer, so don't complain.
12336         * src/SDCCast.c (astErrors),
12337         * src/SDCCast.h,
12338         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
12339
12340 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
12341
12342         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
12343         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
12344         output of __config directives, since gpasm now supports them
12345         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
12346         pre-processor macro, i.e. -DMCU=p18f452
12347         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
12348         and modified to handle 'cast' icode similarly to '=' icode
12349         * src/pic16/device.h (typedef struct PIC_device): added field
12350         'extMIface' to indicate that chip has external memory interface
12351         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
12352         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
12353         18F8720
12354
12355 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12356
12357         * src/SDCC.y (pointer): fixed bug #846006
12358         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
12359         * src/SDCCast.c (decorateType): fixed bug #846009
12360         * src/ds390/peeph.def,
12361         * src/ds390/gen.c (genAnd, genOr),
12362         * src/mcs51/peeph.def,
12363         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
12364
12365 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12366
12367         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
12368         * src/SDCCdflow.c
12369         * src/SDCCcse.c
12370         * src/SDCCcse.h
12371         * src/SDCCBBlock.h
12372         * src/SDCCBBlock.c
12373
12374 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
12375
12376         fixed bug #845089
12377         * src/SDCCbitv.h,
12378         * src/SDCCbitv.c: added function to free a bitvector
12379         * src/SDCClrange.h,
12380         * src/SDCClrange.c: added function to recompute the liveranges
12381         * src/avr/ralloc.c,
12382         * src/ds390/ralloc.c,
12383         * src/hc08/ralloc.c,
12384         * src/mcs51/ralloc.c,
12385         * src/pic/ralloc.c,
12386         * src/pic16/ralloc.c,
12387         * src/xa51/ralloc.c,
12388         * src/z80/ralloc.c: recompute the liveranges after register packing
12389
12390 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
12391
12392         * src/SDCCloop.c (newInduction): fixed bug #845630
12393
12394 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12395
12396         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
12397         inadvertantly left behind from my 2003-11-12 change
12398
12399 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12400
12401         Updated headers I neglected to commit yesterday.
12402         * src/SDCClrange.h,
12403         * src/SDCCicode.h
12404
12405 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12406
12407         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
12408         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
12409         * src/SDCCopt.c (eBBlockFromiCode),
12410         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
12411         the creation of the key hash table from the sequencing so it can be used
12412         earlier (for some GCSE bug fixes still pending)
12413
12414 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12415
12416         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
12417         * support/regression/tests/addsub.c: testing genPlus shortcut
12418
12419 2003-11-15  Borut Razem <borut.razem AT siol.net>
12420
12421         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
12422
12423 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12424
12425         * src/SDCCcse.c (cseBBlock): fixed bug #527779
12426         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
12427         ordering is immaterial.
12428         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
12429
12430 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12431
12432         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
12433         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
12434         (SIGSEV) of bug #840381
12435         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
12436         unlink new file before rename if new and old filenames are the same)
12437
12438 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12439
12440         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
12441         uninitialized variables) for the mcs51. Set environment variable
12442         SDCC_GENRAMCLEAR to test.
12443         xdata initialization slightly shorter
12444
12445 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12446
12447         * src/SDCCsymt.h,
12448         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
12449         #838241 & 780691 (basicly the same bug)
12450         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
12451         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
12452
12453 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
12454
12455         * src/SDCCmain.c (linkEdit): "fix" #834252
12456
12457 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12458
12459         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
12460         * src/SDCCast.h,
12461         * src/SDCC.y: fixed bug #819403
12462
12463 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12464
12465         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
12466         the reentrant attribute.
12467         * src/hc08/gen.c (genPackBits): added missing stack readjustment
12468         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
12469         simulation
12470         * src/SDCCast.c (decorateType): fixed bug with storage class not being
12471         updated during pointer dereference; f.e. ~(((char *)1)*) was being
12472         erroneously reduced to a literal.
12473         * src/hc08/ralloc.c (packRegisters, rematStr),
12474         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
12475         some cases
12476
12477 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12478
12479         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
12480         * doc/sdccman.lyx: changed from 'article' to 'book'
12481         * doc/Makefile: readded test_suite_spec and cdbfileformat
12482
12483 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
12484
12485         * device/include/stdlib.h: include malloc.h to comply with ANSI
12486         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
12487
12488 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12489
12490         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
12491         * doc/clean.mk: also remove *.out files
12492         * doc/sdccman.lyx: some additions, larger top/bottom margins
12493
12494 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12495
12496         * src/SDCC.y: fixed bug #837365
12497         * support/regression/tests/bitopcse.c
12498         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
12499         a symbol (might be valop instead)
12500         * device/lib/Makefile.in: added errno.c to HC08SOURCES
12501         * device/lib/clean.mk: added hc08 to the cleaning list
12502
12503 2003-11-04  Borut Razem <borut.razem AT siol.net>
12504
12505         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
12506           made 2003-11-04
12507         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
12508           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
12509           malloc is declared in standard stdlib.h
12510
12511 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12512
12513         * device/lib/hc08/Makefile: need to clean .rel not .o files
12514         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
12515
12516 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12517
12518         * src/port.h,
12519         * src/hc08/main.c,
12520         * src/mcs51/main.c,
12521         * src/ds390/main.c,
12522         * src/z80/main.c,
12523         * src/avr/main.c,
12524         * src/pic/main.c,
12525         * src/pic16/main.c,
12526         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
12527         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
12528         tests (which uses the port's oclsExpense function)
12529         * src/SDCC.y,
12530         * src/SDCCast.c,
12531         * src/SDCCicode.c,
12532         * src/hc08/gen.c,
12533         * src/ds390/gen.c,
12534         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
12535
12536 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12537
12538         * src/SDCCcse.c (ifxOptimize),
12539         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
12540         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
12541         deleting the IFX iCode.
12542         * src/hc08/ralloc.c: reduced unneeded slocs
12543         * src/hc08/gen.c: fixed bug in asmopToBoolean
12544
12545 2003-11-04  Borut Razem <borut.razem AT siol.net>
12546
12547         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
12548           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
12549           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
12550           transferred to configure
12551
12552 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
12553
12554         Use headers defined in the C[++] standards:
12555         * sim/ucsim/gui.src/serio.src/fileio.cc
12556         * sim/ucsim/gui.src/serio.src/frontend.cc
12557         * sim/ucsim/gui.src/serio.src/main.cc
12558         * sim/ucsim/gui.src/serio.src/posix_signal.cc
12559         * support/Util/NewAlloc.c
12560         * as/hc08/lklibr.c
12561         * as/mcs51/lklibr.c
12562         * as/z80/aslist.c
12563         * as/z80/assym.c
12564
12565 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12566
12567         * Added MSVC projects for hc08 assembler and linker:
12568         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
12569         /as/hc08/link_hc08.dsp
12570
12571 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
12572
12573         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
12574
12575 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
12576
12577         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
12578
12579 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12580
12581         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
12582
12583 2003-10-31  Borut Razem <borut.razem AT siol.net>
12584
12585         * support/cpp2/cpplib.h,
12586           support/cpp2/cpplib.c,
12587           support/cpp2/cpplex.c,
12588           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
12589           to switch _asm block preprocessing on / off. Default is
12590           #pragma preproc_asm +
12591
12592 2003-10-31  Borut Razem <borut.razem AT siol.net>
12593
12594         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
12595           when outputting comment blocks (when executed with -C option) and
12596           _asm (SDCPP specific) blocks
12597
12598 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12599
12600         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
12601
12602 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
12603
12604         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
12605
12606 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
12607
12608         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
12609         * src/SDCCast.c (decorateType): fixed bug #832664
12610
12611 2003-10-31  Borut Razem <borut.razem AT siol.net>
12612
12613         * support/cpp2/cpplex.c: fixed for SDCPP:
12614           comments(when executed with -C option) and _asm blocks
12615           were included even if they where in skipped #if block.
12616           Applied solution from GCC cpp 3.3.2
12617
12618 2003-10-31  Borut Razem <borut.razem AT siol.net>
12619
12620         * src/SDCC.lex: sdcc now understands both formats:
12621           '# <line_number> <file_name>' and
12622           '#line <line_number> <file_name>'
12623         * support/cpp2/cppmain.c: sdcpp now generates the standard
12624           '# <line_number> <file_name>' instead of former
12625           '#line <line_number> <file_name>'
12626
12627 2003-10-30  Borut Razem <borut.razem AT siol.net>
12628
12629         * support/cpp2/cpphash.h,
12630         * support/cpp2/cpplib.h
12631         * support/cpp2/cpplex.c,
12632         * support/cpp2/cppmain.c,
12633         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
12634
12635 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12636
12637         Fixed a number of problems revealed by bug #827883.
12638         * src/SDCCloop.c (loopInvariants): Spill location of the
12639         result operand should be recomputed if extracted from
12640         a loop. Also, don't extract assignments of an iTemp
12641         from a literal.
12642         * src/SDCCast.c (isConformingBody): loop reversal should
12643         not occur if the control variable is involved with a
12644         relational operator.
12645
12646 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
12647
12648         * .version: bumped to 2.3.6 to reflect the big improvements
12649         made by Erik and Klaus. Thanks!
12650
12651 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
12652
12653         Replaced the livrange code.
12654         * src/SDCClrange.c: added new LR code
12655         * src/SDCCloop.c,
12656         * src/SDCCBBlock.h: removed remainig parts from old LR code
12657         * src/ds390/ralloc.c,
12658         * src/ds390/gen.c: minor fixes to make it work with new code
12659
12660 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12661
12662         * as/hc08/asm.h,
12663         * as/hc08/lkrloc.c,
12664         * src/hc08/gen.c,
12665         * src/hc08/ralloc.c: Fix various warnings related to the hc08
12666         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
12667         (tweaked fix for bug #818696)
12668
12669 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12670
12671         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
12672
12673 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12674
12675         * src/SDCCmain.c,
12676         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
12677         * src/mcs51/gen.c (gencjneshort),
12678         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
12679         more efficient (per Scott Bronson's suggestion)
12680
12681 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12682
12683         Extended the semantics of the critical keyword to include
12684         individual statements. See RFE #827755 and #799831
12685         * src/SDCC.y
12686         * src/SDCCicode.c
12687         * src/SDCCopt.c
12688         * src/SDCCast.c
12689         * support/Util/SDCCerr.c
12690         * support/Util/SDCCerr.h
12691         * src/mcs51/gen.c
12692         * src/ds390/gen.c
12693         * src/hc08/gen.c
12694
12695 2003-10-19  Borut Razem <borut.razem AT siol.net>
12696
12697         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
12698
12699 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12700
12701         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
12702         Fixed bug #818696
12703         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
12704         and predecrement operand is displayed
12705
12706 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
12707
12708         * src/SDCCval.c (valMinus): fixed bug #826041
12709
12710 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12711
12712         Some hc08 related updates that I missed earlier
12713         * sim/ucsim/stypes.h
12714         * support/regression/ports/hc08/spec.mk
12715
12716 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12717
12718         New target "hc08" for the Motorola 68hc08 family of micros
12719
12720         * configure
12721         * configure.in
12722         * Makefile
12723         * src/hc08/*
12724         * src/SDCCmain.c
12725         * src/port.h
12726         * sim/ucsim/hc08.src/*
12727         * sim/ucsim/configure.in
12728         * src/ucsim/configure
12729         * sim/ucsim/packages_in.mk
12730         * as/hc08/*
12731         * as/Makefile
12732         * device/include/mc68hc908qy.h
12733         * device/lib/hc08/*
12734         * device/lib/Makefile.in
12735         * support/regression/ports/hc08/*
12736         * support/regression/Makefile
12737
12738 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12739
12740         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
12741         regression test
12742         * src/ds390/gen.c (genCast): fixed bug #821957
12743
12744 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
12745
12746         * device/lib/logf.c: "fixed" overlay bug
12747         * support/regression/ports/host/spec.mk: added m library
12748         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
12749         * support/regression/tests/float_trans: added (for Eric)
12750
12751 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
12752
12753         * src/mcs51/gen.c (genCpl): fixed bug
12754         http://sf.net/mailarchive/message.php?msg_id=6263915
12755
12756 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
12757
12758         * src/SDCCast.c (decorateType): added extended constant folding
12759         * src/SDCCsymt.c (computeType): cleanup
12760         * src/SDCCval.c (valShift): minor optimization
12761         * support/regression/tests/ast_constant_folding.c: added
12762
12763 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12764
12765         * src/SDCCmain.c: removed some unintended changes
12766
12767 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12768
12769         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
12770         * src/z80/gen.c: fixed part of bug #817589
12771         * src/SDCCsymt.c (checkFunction): fixed bug #817895
12772
12773 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
12774
12775         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
12776         * src/SDCCcflow.c
12777         * src/SDCCcse.c
12778         * src/SDCCdflow.c
12779         * src/SDCClabel.c
12780         * src/SDCClrange.c
12781         * src/SDCCmem.c
12782         * src/SDCCopt.c
12783         * src/SDCCpeeph.c
12784         * src/SDCCset.c
12785         * src/avr/ralloc.c
12786         * src/ds390/ralloc.c
12787         * src/izt/ralloc.c
12788         * src/mcs51/ralloc.c
12789         * src/pic/ralloc.c
12790         * src/pic16/ralloc.c
12791         * src/xa51/ralloc.c
12792         * src/z80/ralloc.c
12793         * src/z80/gen.c: removed unused label "release:"
12794
12795 2003-10-06  Borut Razem <borut.razem AT siol.net>
12796
12797         * src/SDCC.lex: removed definition of unused variables
12798           save_optimize and save_options
12799
12800 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
12801
12802         * clean.mk: removed '=' in "-maxdepth=1"
12803         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
12804         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
12805
12806 2003-10-06  Borut Razem <borut.razem AT siol.net>
12807
12808         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
12809           my_unput() replaced by unput()
12810
12811 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
12812
12813         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
12814         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
12815         type-punned pointer will break strict-aliasing rules"
12816         Old LR behaviour is again default; Klaus' LR can be choosen by
12817         defining the environment variable LRKLAUS
12818         * src/SDCCBBlock.h
12819         * src/SDCCloop.c
12820         * src/SDCClrange.c
12821         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
12822         * clean.mk: fixed removal of files in bin/CVS/
12823         * device/lib/clean.mk: fixed removal of directories small and large
12824         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
12825         * src/SDCCicode.c,
12826         * src/SDCCval.c: removed superflous test for pedantic
12827
12828 2003-10-05  Borut Razem <borut.razem AT siol.net>
12829
12830         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
12831           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
12832           message "unmatched #pragma SAVE and #pragma RESTORE"
12833
12834 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12835
12836         * doc/sdccman.lyx: various additions and updates (interrupts, inline
12837           assembly, critical functions, atomic, nojtbound)
12838
12839 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
12840
12841         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
12842         * src/SDCCBBlock.h
12843         * src/SDCCloop.c
12844         * src/SDCCloop.h
12845         * src/SDCClrange.c
12846
12847 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12848
12849         * src/z80/gen.h,
12850         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
12851         * src/mcs51/gen.h
12852         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
12853         * src/ds390/gen.h
12854         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
12855         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
12856         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
12857
12858 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12859
12860         * src/z80/gen.c (genRet): fixed bug #524753
12861         * src/z80/gen.c (genCast): fixed internal error on cast from
12862         pointer to long
12863         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
12864         fix for bug #477835 to the z80
12865         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
12866         for tracking iCodes in the peephole optimizer for z80
12867
12868 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12869
12870         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
12871         the other part of bug #814548
12872         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
12873
12874 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
12875
12876         * src/SDCCcse.c: fixed part of bug #814548
12877
12878 2003-09-28  Borut Razem <borut.razem AT siol.net>
12879
12880         * src/asm.c: rewrite of printILine() to use temporary file instead
12881           a pipe
12882         * src/xa51/main.c: commented out declaration of int rewinds
12883
12884 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12885
12886         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
12887
12888 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12889
12890         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
12891         * src/asm.c (printILine): Fixed bug #811015
12892
12893 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12894
12895         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
12896         freeing.
12897
12898 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12899
12900         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
12901         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
12902         to correctly handle general case of AOP_PAIRPTR
12903         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
12904
12905 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12906
12907         * src/mcs51/ralloc.c (fillGaps),
12908         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
12909         register positioning bug)
12910
12911 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
12912
12913         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
12914
12915 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12916
12917         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
12918         genCodePointerGet, genGenPointerGet, genFarPointerSet,
12919         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
12920         (ralloc doesn't intentionally do this now, but perhaps later)
12921         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
12922         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
12923         register positioning bugs (Fixed bug #762602 and #795325)
12924         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
12925         (Fixed bug #808779)
12926         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
12927         lines that --i-code-in-asm generates
12928
12929 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12930
12931         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
12932         trying to fclose a FILE* that was already closed.
12933
12934 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12935
12936         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
12937         of const struct should be treated as if const themselves)
12938
12939 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
12940
12941         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
12942
12943 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12944
12945         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
12946         Unix (/n) and DOS (/r/n) line terminations.
12947
12948 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12949
12950         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
12951         bug #613775
12952
12953 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12954
12955         * src/mcs51/gen.c (genFunction, genEndFunction),
12956         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
12957         and restore of EA so that stack offsets to parameters are
12958         correct when using both critical and reentrant/stack-auto.
12959         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
12960         size (can be triggered in error if sloc is shared between
12961         different sized objects)
12962         * device/include/float.h: fixed macros to explicitly use
12963         unsigned long where needed
12964
12965 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
12966
12967         Feature req. 799831: added code to allow nesting of critical functions
12968         * src/mcs51/gen.c (genFunction, genEndFunction)
12969         * src/ds390/gen.c (genFunction, genEndFunction)
12970
12971 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12972
12973         * src/SDCCsymt.c (sclsFromPtr),
12974         * src/SDCCsymt.h,
12975         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
12976         support for standard C idiom of memory mapped variables; for
12977         example, *((xdata int*)0x1234) = 1 is now internally equivalent
12978         to xdata int at 0x1234 tempvar = 1.
12979         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
12980         provided by Akiya ISHIDA
12981
12982 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
12983
12984         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
12985         * src/SDCCval.c (constVal): added reduction from int to char
12986         * src/SDCCval.c (valMult, valDiv): fixed sign handling
12987         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
12988         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
12989         to ignore the sign
12990         * support/regression/tests/shifts.c: fixed
12991
12992 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12993
12994         * src/z80/gen.c (genXor): Fixed bug #805445
12995
12996 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12997
12998         Fixed bug #621531 (const & volatile confusion in the type chain).
12999         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
13000         refer to the const or volatile state of the pointer itself.
13001
13002         * src/SDCCast.c
13003         * src/SDCCglue.c
13004         * src/SDCCicode.c
13005         * src/SDCCsymt.c
13006         * src/SDCCval.c
13007         * src/SDCC.y
13008         * src/SDCCsymt.h
13009         * src/pic/gen.c
13010         * src/pic/ralloc.c
13011         * src/pic16/gen.c
13012         * src/pic16/ralloc.c
13013         * support/regression/tests/const.c
13014
13015 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13016
13017         When checking for duplicated modules, use absolute paths
13018         instead of relative paths.  Files changed:
13019
13020         * as/mcs51/lklib.c
13021         * link/z80/lklib.c
13022
13023 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13024
13025         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
13026
13027 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13028
13029         * device/include/string.h: added size_t typedef, changed
13030         prototypes to use size_t, eliminated separate reentrant and
13031         non-reentrant declarations, added _memmove declaration
13032         * device/lib/_memcpy.c: changed to use size_t instead of int,
13033         changed /4 to >>2 to avoid division library call
13034         * device/lib/_memcmp.c,
13035         * device/lib/_memset.c,
13036         * device/lib/_strncat.c,
13037         * device/lib/_strncpy.c,
13038         * device/lib/_strncmp.c: changed to use size_t instead of int
13039         * device/lib/_memmove.c: new file (fixed bug #772294)
13040         * device/lib/Makefile.in: added _memmove.c
13041         * device/lib/z80/asm_strings.s: fixed bug #772290
13042         * support/regression/tests/bitfields.c: attempt to fix host assertion
13043         failure on amd64-unknown-linux2.2
13044
13045 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13046
13047         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
13048         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
13049         * as/z80/asmain.c (main): fixed bug #801766
13050
13051 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
13052
13053         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
13054         compilers
13055
13056 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13057
13058         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
13059         reported in bug #800609
13060
13061 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
13062
13063         * Top header beautifications in src/pic16 directory:
13064           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
13065           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
13066           pcoderegs.h, ralloc.c, ralloc.h
13067         * main.c: added top header and GPL license notice
13068         * pcode.c: fixed the if-conditional warning
13069
13070 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
13071
13072         * device/lib/_mullong.c: replaced int by short for gcc
13073
13074 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13075
13076         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
13077         and JUMPTABLE iCodes properly now (worked by accident before)
13078         * src/mcs51/gen.c (leftRightUseAcc),
13079         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
13080         iCode properly now. Use getSize instead of nRegs since a & b
13081         aren't part of the nRegs tally.
13082
13083 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
13084
13085         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
13086         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
13087           before instructions that use the _STATUS register
13088
13089 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
13090
13091         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
13092         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
13093         fetching of the pointer
13094         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
13095         copied from genNearPointerSet()
13096         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
13097         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
13098         If they pop r0/r1 they must be called in the opposite order than aopOp().
13099         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
13100         (resp. --stack-auto), prepared for --xstack
13101
13102 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13103
13104         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
13105
13106 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
13107
13108         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
13109         these ports have their own __sdcc_external_start()
13110
13111 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
13112
13113         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
13114         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
13115         type for bits was changed. It resulted in bit variables becoming
13116         global, which is not permitted in PIC 14 assembly output.
13117
13118 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13119
13120         * doc/sdccman.lyx: various additions and updates. Rearranged sections
13121
13122 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13123
13124         Z80 and MCS51 linkers complaint if a public symbol is defined
13125         in more than one library module:
13126
13127         * as/mcs51/lklib.c
13128         * link/z80/lklib.c
13129         * as/mcs51/Makefile.in
13130
13131 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13132
13133         A few small changes that speed up the peephole optimizer.
13134
13135         * src/SDCCpeeph.c
13136
13137 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13138
13139         Try to make the peephole optimizer smarter by maintaining
13140         an association between the assembly source code and the
13141         iCodes that originated them. Put this information to use
13142         with a new peephole rule condition "notVolatile" so that
13143         the rules can be aggressive yet still safe.
13144
13145         * src/SDCCpeeph.c
13146         * src/SDCCpeeph.h
13147         * src/mcs51/gen.c
13148         * src/mcs51/peeph.def
13149
13150 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13151
13152         Fixed bug #741761
13153
13154         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
13155         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
13156         if the left or right operand symbols have the accuse flag set.
13157
13158 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13159
13160         Changed the type of the result of the ! (NOT) operator to char;
13161         previously it returned the same type as the source. This allows
13162         us to eliminate all the genFloatNot functions (all of its target
13163         implementations were very buggy) since !float can use the same
13164         code as !long now.
13165
13166         * src/SDCCicode.c (ast2iCode): ! returns char
13167         * src/mcs51/gen.c (genNot, genNotFloat),
13168         * src/ds390/gen.c (genNot, genNotFloat),
13169         * src/z80/gen.c (genNot, genNotFloat),
13170         * src/pic/gen.c (genNot, genNotFloat),
13171         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
13172
13173 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
13174
13175         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
13176         1. Interrupt would not compile properly. Ensure PCLATH register is saved
13177            during interrupts. Ensure WSAVE is located at a shared bank address.
13178         2. Fixed page selection in some places
13179         3. Fixed BTFSS/C to where necessary use registers directly and not simply
13180            the registers name strings.
13181         4. Fixed "signed / unsigned compare" compiler warnings.
13182         5. The PIC port manages its own allocation of the general purpose
13183            registers, but makes no attempt to reuse them. As a result when
13184            compiling it soon runs out of general purpose registers. Some
13185            additional code was added to the files pcode.c and device.c to walk
13186            through the function call tree and rename the registers so that they
13187            get reused.
13188
13189         * src/pic/device.c
13190         * src/pic/gen.c
13191         * src/pic/glue.c
13192         * src/pic/pcode.c
13193         * src/pic/pcode.h
13194         * src/pic/ralloc.c
13195         * src/pic/ralloc.h
13196         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
13197         genPlus() & genMinus() when the result is the same as left or right
13198
13199 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13200
13201         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
13202
13203 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13204
13205         Made bitfield a distinct type from bit so that bitfields
13206         convert as per ANSI C and bits retain their traditional
13207         boolean style behaviour. Implemented bitfield support in
13208         the z80 port.
13209
13210         * src/SDCCsymt.h,
13211         * src/SDCCsymt.c,
13212         * src/SDCCast.c,
13213         * src/cdbFile.c,
13214         * src/mcs51/gen.c,
13215         * src/ds390/gen.c: bit v bitfield split
13216         * src/z80/gen.c: New support for bitfields
13217         * support/regression/tests/bitfields.c: reenabled z80,
13218         added more tests
13219
13220 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13221
13222         Rules 246.x, 247.x relate to bitfields, the others speed up
13223         access to xdata mapped I/O devices.
13224
13225         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
13226
13227 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13228
13229         Cleaned up genPackBits and genUnpackBits and added two helper
13230         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
13231         for literal assignments in genPackBits (thanks to Frieder for
13232         reminding me).
13233
13234         * src/mcs51/gen.c
13235         * src/ds390/gen.c
13236
13237 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13238
13239         Fixed bug #748310 (pointer to function type mishandled when the
13240         function name is omitted). Also fixed a SIGSEGV when a function
13241         attribute (reentrant, etc) is used on a non-function or on a
13242         function but misplaced before the parameter list.
13243
13244         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
13245         bug #748310
13246         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
13247         * support/Util/SDCCerr.h,
13248         * support/Util/SDCCerr.c: Added func attr misuse error msg
13249
13250 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
13251
13252         Fixed bug #787649 by anonymous
13253         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
13254         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
13255
13256 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13257
13258         Fixed numerous bitfield problems.
13259
13260         * src/SDCC.y: More bitfield related error checking
13261         * src/SDCCsymt.h,
13262         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
13263         * support/Util/SDCCerr.h,
13264         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
13265         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
13266         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
13267         * support/regression/tests/bitfields.c: tests added
13268
13269 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13270
13271         Made the constant following the "interrupt" keyword optional. If
13272         omitted, the function will not automatically be given an entry
13273         in the interrupt vector table (similar to #pragma NOIV, but
13274         less syntacticly kludgy). The interrupt number is also now
13275         range checked. Also fixed a bug in the high order bit example
13276         in the manual.
13277
13278         * src/SDCC.y
13279         * src/SDCCmem.c
13280         * src/SDCCglue.c
13281         * src/SDCCsymt.h
13282         * support/Util/SDCCerr.c
13283         * support/Util/SDCCerr.h
13284         * doc/sdccman.lyx
13285
13286 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
13287
13288         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
13289         * src/SDCCicode.c (operandOperation): rewritten some ops
13290         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
13291         * src/SDCCsymt.c (computeType): literals are handled the same way as any
13292         other type
13293         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
13294         be re-activated by defining REDUCE_LITERALS)
13295         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
13296         unsigned, but are signed by default
13297         * src/SDCCval.c (constVal): rearranged
13298         * src/SDCCval.c (valMod): preliminary fix
13299         * src/SDCCval.c (valCastLiteral): use TYPE_* types
13300         * support/regression/literalop.c: added, work in progress
13301
13302 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13303
13304         Generate warnings for useless declarations like "char data;"
13305         that don't do what new users expect.
13306
13307         * src/SDCC.y
13308         * support/Util/SDCCerr.h
13309         * support/Util/SDCCerr.c
13310
13311 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
13312
13313         * src/SDCCval.c (valMult): fix overflow detection of negative int
13314
13315 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13316
13317         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
13318
13319         Changes to support big endian targets:
13320
13321         * src/ports.h
13322         * src/SDCCglue.c
13323         * src/avr/main.c
13324         * src/ds390/main.c
13325         * src/izt/i186.c
13326         * src/mcs51/main.c
13327         * src/pic/main.c
13328         * src/pic16/main.c
13329         * src/xa51/main.c
13330         * src/z80/main.c
13331
13332 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
13333
13334         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
13335         * device/lib/time.c: fixed warning "integer overflow in expression"
13336
13337 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
13338
13339         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
13340         * src/SDCCval.c (constVal): changed default to signed; hex and octal
13341         constants are unsigned; added recognition of "u" flag for unsigned
13342         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
13343         * src/SDCCval.c (valDiv, valMod): fixed signdness
13344         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
13345         signedness of modulo, left and right shift
13346         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
13347         * support/Util/SDCCerr.h: added warning W_INT_OVL
13348         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
13349         * src/SDCCast.c (ast_print): improved output of constants
13350
13351 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13352
13353         Fixed some warnings when building with MSVC:
13354
13355         * as/mcs51/asdata.c
13356         * as/z80/asdata.c
13357         * as/mcs51/asm.h
13358         * as/z80/asm.h
13359         * link/z80/aslink.h
13360         * link/z80/lkdata.c
13361         * link/z80/lkeval.c
13362         * link/z80/lkgb.c
13363         * link/z80/lkihx.c
13364         * link/z80/lks19.c
13365         * link/z80/lksym.c
13366         * support/cpp2/cpplib.c
13367         * src/ds390/gen.c
13368         * src/mcs51/gen.c
13369
13370 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
13371
13372         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
13373
13374 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13375
13376         * support/librarian/clean.mk: Do not remove Makefile.
13377         * support/librarian/Makefile: added.
13378
13379 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13380
13381         Added librarian to MSVC build:
13382         * all.dsp
13383         * sdcc.dsw
13384         * support/librarian/librarian.dsp
13385
13386         'configure' not needed for librarian, removed:
13387         * support/librarian/configure
13388         * support/librarian/configure.in
13389         * support/librarian/config_in.h
13390         * support/librarian/Makefile.in
13391
13392         Hopefully these ones built the librarian and the rest of sdcc properly:
13393         * Makefile
13394         * Makefile.common.in
13395
13396         Messed up 'configure', so revert to previous version:
13397         * configure
13398         * configure.in
13399
13400 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
13401
13402         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
13403         there, while the mantissa of a double is "only" 53 bits wide.
13404
13405 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13406
13407         Adding sdcclib to the build.  MSVC project coming soon.
13408         Files added/changed:
13409
13410         * support/librarian/clean.mk
13411         * support/librarian/configure
13412         * support/librarian/configure.in
13413         * support/librarian/config_in.h
13414         * support/librarian/Makefile.bcc
13415         * support/librarian/Makefile.in
13416         * support/librarian/sdcclib.c
13417         * Makefile.bcc
13418         * Makefile
13419         * Makefile.common.in
13420         * configure
13421         * configure.in
13422
13423 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13424
13425         Linker now complaints if linked modules have conflicting options, for
13426         example, one compiled using --model-large and another one compiled with
13427         --model-small.  The following files were modified:
13428
13429         * as/mcs51/asdata.c
13430         * as/mcs51/aslink.h
13431         * as/mcs51/asm.h
13432         * as/mcs51/asmain.c
13433         * as/mcs51/asout.c
13434         * as/mcs51/i51pst.c
13435         * as/mcs51/lkdata.c
13436         * as/mcs51/lklibr.c
13437         * as/mcs51/lkmain.c
13438         * as/z80/asdata.c
13439         * as/z80/asm.h
13440         * as/z80/asmain.c
13441         * as/z80/asout.c
13442         * as/z80/z80pst.c
13443         * link/z80/aslink.h
13444         * link/z80/lkdata.c
13445         * link/z80/lklibr.c
13446         * link/z80/lkmain.c
13447         * src/SDCCglue.c
13448
13449 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13450
13451         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
13452         as/mcs51/lklibr.c: Generate a warning when a library is not found.
13453
13454 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
13455
13456         * src/z80/mappings.i: fix _mul[us][int,long] entries
13457
13458 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13459
13460         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
13461
13462 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
13463
13464         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
13465         * support/regression/tests/bitopcse.c: added
13466         fixed warning:
13467         * src/avr/gen.c:
13468         * src/pic/gen.c:
13469         * src/pic16/gen.c:
13470         * src/z80/gen.c:
13471         * src/xa51/gen.c:
13472
13473 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13474
13475         added support for new library format to z80, gbz80 linkers:
13476         *link/z80/aslink.h
13477         *link/z80/lklex.c
13478         *link/z80/lklib.c
13479         *link/z80/lklist.c
13480
13481 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
13482
13483         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
13484         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
13485
13486 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
13487
13488         added DUMMY_READ_VOLATILE:
13489         * src/SDCC.y:
13490         * src/avr/gen.c:
13491         * src/xa51/gen.c:
13492         * src/z80/gen.c:
13493         * src/pic/gen.c:
13494         * src/pic16/gen.c:
13495         * src/mcs51/gen.c:
13496         * src/ds390/gen.c:
13497         * src/SDCCcse.c (algebraicOpts): many improvements
13498         * src/SDCCcse.h: removed algebraicOpts()
13499         * src/SDCCicode.c (picDummyRead): added
13500
13501 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13502
13503         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
13504         "Insufficient space in data memory".
13505
13506 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13507
13508         * src/mcs51/gen.c: fixed bug #771358
13509         * src/z80/gen.c: fixed bug #759087
13510
13511 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
13512
13513         * src/pic16/glue.c: minor cleanup by Vangelis
13514
13515 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13516
13517         * device/include/regc515c.h: fixed #758477
13518         * device/lib/_gptrget.c: saving some cycles in generic pointer get
13519         * device/lib/_gptrput.c: saved a few bytes
13520         * my tab spacing is 8, yours too?)
13521         * device/lib/_ser.c: process RX bytes earlier than TX bytes
13522         * device/lib/serial.c: process RX bytes earlier than TX bytes
13523         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
13524
13525 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13526
13527         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
13528
13529 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13530
13531     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
13532
13533 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
13534
13535         * device/lib/Makefile.in: bad fix, reverted to 1.43
13536
13537 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
13538
13539         * device/lib/Makefile.in: added missing z80 object files
13540
13541 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
13542
13543         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
13544         pic16 progress by Vangelis:
13545         * src/SDCCglobl.h:
13546         * src/SDCCmain.c:
13547         * src/pic/Makefile:
13548         * src/pic:
13549         * pic/Makefile:
13550         * pic16/device.c:
13551         * pic16/device.h:
13552         * pic16/gen.c:
13553         * pic16/gen.h:
13554         * pic16/genarith.c:
13555         * pic16/glue.c:
13556         * pic16/main.c:
13557         * pic16/pcode.c:
13558         * pic16/pcode.h:
13559         * pic16/pcodepeep.c:
13560         * pic16/peeph.def:
13561
13562 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13563
13564     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
13565
13566 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13567
13568     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
13569     added gbz80 build to MSVC project.
13570     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
13571     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
13572     from 8051 stuff and setup so it links using a .lnk file.
13573
13574 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13575
13576     * support/librarian/sdcclib.c: sdcc librarian.
13577     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
13578     with sdcclib.
13579
13580 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13581
13582     * as/mcs51/lkmain.c: properly handle extensions in function afile.
13583
13584 2003-07-02  Borut Razem <borut.razem AT siol.net>
13585
13586         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
13587         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
13588         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
13589         src/xa51/main.c, src/z80/main.c:
13590         virtualization of glue() function: each port has it's own glue function,
13591         which is accessed by do_glue function pointer in PORT.general structure
13592
13593 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
13594
13595         * DS800C400 fun, improved ROM interface and tinibios.
13596
13597 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
13598
13599         * More support for DS80C400. Now includes beginning of interface to ROM.
13600
13601 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
13602
13603         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
13604
13605 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13606
13607         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
13608
13609 2003-06-19  Borut Razem <borut.razem AT siol.net>
13610
13611         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
13612
13613 2003-06-19  Borut Razem <borut.razem AT siol.net>
13614
13615         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
13616         fixed Z80 port - crt0.o: cannot open.
13617
13618 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
13619
13620         * support/Util/MySystem.c (merge_command): revert bad fix
13621
13622 2003-06-18  Borut Razem <borut.razem AT siol.net>
13623
13624         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
13625
13626 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13627
13628         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
13629         option --use-stdout sends errors to stdout instead of stderr.
13630
13631 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
13632
13633         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
13634
13635 2003-06-15  Borut Razem <borut.razem AT siol.net>
13636
13637         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
13638         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
13639         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
13640         fixed width array of pointers replaced with sets;
13641         multiple include and lib paths ared transferred to preprocessor and linker
13642         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
13643         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
13644         fixed width array of pointers
13645         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
13646         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
13647         fixupPath(), getPathDifference()
13648         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
13649         fixed width array of pointers
13650
13651 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
13652
13653         * src/pic16/ralloc.c: fix warnings
13654         * src/pic16/pcode.c: fix warning
13655
13656 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
13657
13658          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
13659         know all the details, but essentially this set of changes enable
13660         the pic16 port to generate movff instructions and generate assembler
13661         directives,
13662         * src/SDCCmain.c:
13663         * src/pic16/gen.c:
13664         * src/pic16/glue.c:
13665         * src/pic16/pcode.c:
13666         * src/pic16/device.c:
13667         * src/pic16/main.c:
13668         * src/pic16/pcode.h:
13669         * src/pic16/pcoderegs.c:
13670         * src/pic16/ralloc.c:
13671         * src/pic16/ralloc.h:
13672
13673 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13674
13675         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
13676         added option --vc, so sdcc errors and warnings are compatible with
13677         Microsoft Visual Studio.
13678
13679 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13680
13681         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
13682           device/lib/libfloat.lib: added atof function.
13683
13684 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
13685
13686         * doc/sdccman.lyx: updated to Lyx 1.3
13687         * doc/cdbfileformat.lyx: updated to Lyx 1.3
13688         * doc/test_suite_spec.lyx: updated to Lyx 1.3
13689         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
13690
13691 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
13692
13693         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
13694
13695 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13696
13697         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
13698           additions to the "related tools/documentation" section
13699
13700 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
13701
13702         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
13703
13704 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
13705
13706         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
13707         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
13708
13709 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
13710
13711         * doc/sdccman.lyx: fix double dash and other minor things
13712         * doc/Makefile: fix double dash
13713
13714 2003-05-28  Karl Bongers(patches from Martin Helmling)
13715         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
13716           condition and ignore commands.
13717
13718 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13719
13720         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
13721           is in parts still quite out of date, I did changes as far as I felt makes sense
13722           for a non-native english speaker.
13723           Please feel free to add to the manual or to correct my changes.
13724         * doc/Makefile: undid touching the date of intermediate tex files.
13725
13726 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13727
13728         * doc/sdccman.lyx: Manual has an index now
13729
13730 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
13731
13732         Finalize muluint/mulsint and mululong/mulslong merging:
13733         * device/lib/_mulint.c
13734         * device/lib/_mullong.c
13735         * device/lib/gbz80/mul.s
13736         * device/lib/gbz80/stubs.s
13737         * device/lib/z80/mul.s
13738         * device/lib/z80/stubs.s
13739         * src/SDCCsymt.c (initCSupport)
13740
13741 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13742
13743         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
13744         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
13745           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
13746           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
13747           instead of /Zm500.
13748
13749 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13750
13751         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
13752           the regression tests I'm not brave enough to enable 245.b, 245.c
13753         * doc/sdccman.lyx: added latex preamble for hyperref package.
13754           Using pdflatex this will give you a hyperlinked pdf file with
13755           bookmarks. (prepend '%' before /usepackage if this breaks something)
13756
13757 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13758
13759          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
13760
13761 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
13762
13763         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
13764
13765 2003-05-21    <johan AT balder>
13766
13767         * src/SDCCglue.c (printIval): fixed bug #739934
13768
13769 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
13770
13771         Applied patch from bug 737905 (renamed yylineo to mylineno):
13772         * src/altlex.c
13773         * src/SDCCast.c
13774         * src/SDCglobl.h
13775         * src/SDCC.lex
13776         * src/SDCCsymt.c
13777         * src/SDCCval.c
13778         * src/pic16/pcode.c: Cleaned warnings
13779         * src/pic16/pcodeflow.c: Cleaned warnings
13780         * src/pic16/pcoderegs.c: Cleaned warnings
13781
13782 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
13783
13784         * src/pic16/pcode.c: Cleaned warnings
13785         * src/pic16/pcodepeep.c: Cleaned warnings
13786         * src/pic16/ralloc.c: Cleaned warnings
13787
13788 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
13789
13790         * doc/sdccman.lyx: fixed bug 739745
13791         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
13792
13793 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
13794
13795         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
13796         it can be defined with CFLAGS when running configure
13797         * src/SDCCmain.c: fixed compiling + linking with object files
13798
13799 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
13800
13801         * configure.in: configure for pic16 port,
13802             added --disable-pic16-port
13803         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
13804         * src/SDCCmain.c: linkOptions is changed to set *,
13805             added if/endif conditional macros to remove options help
13806             messages from optionsTable when a port is not configured, added
13807             support for the PIc16 port in the ports table, when executing
13808             the compiler with no port specified on command line, a default
13809             port is selected with the new macro DEFAULT_PORT which is
13810             defined in port.h, in setDefaultOptions() linkOptions is removed
13811             from initialization assignment, since now it is a set,
13812             parseCmdLine uses setParseWithComma for linkOptions, in
13813             linkEdit() linkOptions are accessed with new function indexSet()
13814             which returns the i'th item of a set variable. See SDCCset.c, in
13815             linkEdit() when calling buildCmdLine(), added linkOptions as
13816             last argument. Now users can pass arguments to gplink via the
13817             -Wl option, main() uses pic16glue() to glue up pic16 programs
13818         * src/SDCCpeeph.c: various changes to support pic16
13819         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
13820             return the i'th item of the set
13821         * src/SDCCset.h: added function prototype for indexSet()
13822         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
13823         * src/clean.mk: added pic16 in CLEANALLPORTS variable
13824         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
13825             added macro DEFAULT_PORT
13826         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
13827         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
13828             generated
13829         * src/pic16/glue.c: commented out some error producing lines
13830         * src/pic16/main.c: __config directives are commented out to stop
13831             gpasm complaining and test the linkage with gplink, _linkCmd and
13832             _asmCmd changed to be more gplink and gpasm friendly
13833         * src/pic16/peeph.def: peep rule 3 is commented out, since it
13834             produced an error when parsed, peep rule 12 is added to utilize
13835             movff, but it is commented out since the pCode does not support
13836             yet a command with 2 address arguments
13837
13838 2003-05-18    <johan AT balder>
13839
13840         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
13841         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
13842 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
13843
13844         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
13845   Added feature to script commands from file.
13846
13847 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
13848
13849         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
13850         * src/SDCCutil.c: include ctype.h for win32
13851
13852 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
13853
13854         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
13855
13856 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
13857
13858         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
13859   Fixed so you can set breakpoints prior to run, run does not stop
13860   on entry now.  Add tbreak.  Other enhancements and fixes for use
13861   with ddd.
13862
13863 2003-05-12  Borut Razem <borut.razem AT siol.net>
13864
13865         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
13866
13867 2003-05-11  Borut Razem <borut.razem AT siol.net>
13868
13869         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
13870         the path of bin directory, so that PATH is the only env. variable, which has to be set
13871         in case of standard installation.
13872         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
13873         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
13874         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
13875
13876 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
13877
13878         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
13879         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
13880         temp files are in the port dir; clean the gen/test directory when
13881         generating new test.c
13882         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
13883         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
13884         * support/regression/tests/zeropad.c: added
13885
13886 2003-05-09    <johan AT balder>
13887
13888         * src/SDCCglue.c: fixed bug #597940
13889
13890 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
13891
13892         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
13893   cache sfr, optimize next,step, fix off by one sourceline,
13894   support ddd list function.
13895         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
13896
13897 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
13898
13899         * support/regression/HTMLgen.py: added compare_s2f()
13900         * support/regression/Makefile: redo 1.27
13901         * support/regression/generate-cases.py: redo 1.5
13902
13903 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
13904
13905         * support/regression/tests/float.c: workaround 33 bit hex constant
13906         * support/regression/tests/simplefloat.c: fix division for host
13907
13908 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
13909
13910         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
13911         that tame's the PIC's over-aggressive optimizer.
13912
13913 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13914
13915          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
13916          support for MSVC.
13917
13918 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
13919
13920         Initial support for DS80C400. "Hello world" runs on TINIm400
13921         (with polled I/O).
13922
13923 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
13924
13925          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
13926          * Some notes on ddd usage added in debugger/README
13927          Martin Helmling adding more features and fixes for ddd GUI debugger.
13928          Code added for nexti, stepi, up, down, and other adjustments.
13929
13930 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
13931
13932         * src/pic/pCodepeep.c non-wildcard asmops are now handled
13933         * src/pic/peeph.def Added two rules to optimize carry manipulation
13934         * src/pic/* removed debug printfs
13935
13936 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
13937
13938         * debugger/mcs51/cmd.c: added header newalloc.h
13939
13940 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
13941
13942         * as/Makefile: new EXEEXT
13943         * as/z80/Makefile: remove trailing slash of BUILDIR
13944         * as/z80/clean.mk: new EXEEXT
13945         * Makefile.common.in: add to CFLAGS (and others), don't replace it
13946         * support/cpp2/Makefile.in: new EXEEXT
13947         * src/pic/glue.c (pic14emitRegularMap): fixed warning
13948
13949 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
13950
13951         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
13952         EXEEXT was introduced to fix all related problems with targets
13953         "clean", "install" and "uninstall"; a couple of further flaws
13954         especially with "clean" have been fixed too
13955         * as/mcs51/Makefile.in
13956         * as/mcs51/clean.mk
13957         * as/z80/Makefile
13958         * Makefile
13959         * clean.mk
13960         * debugger/mcs51/Makefile.in
13961         * debugger/mcs51/clean.mk
13962         * link/z80/Makefile
13963         * link/z80/Makefile.in
13964         * link/z80/clean.mk
13965         * link/Makefile
13966         * packihx/Makefile.in
13967         * packihx/clean.mk
13968         * sim/ucsim/Makefile
13969         * sim/ucsim/clean.mk
13970         * sim/ucsim/avr.src/Makefile.in
13971         * sim/ucsim/avr.src/clean.mk
13972         * sim/ucsim/s51.src/Makefile.in
13973         * sim/ucsim/s51.src/clean.mk
13974         * sim/ucsim/xa.src/Makefile.in
13975         * sim/ucsim/xa.src/clean.mk
13976         * sim/ucsim/z80.src/Makefile.in
13977         * sim/ucsim/z80.src/clean.mk
13978         * sim/ucsim/main_in.mk
13979         * sim/ucsim/packages_in.mk
13980         * sim/ucsim/gui.src/Makefile.in
13981         * sim/ucsim/gui.src/serio.src/Makefile.in
13982         * sim/ucsim/gui.src/serio.src/clean.mk
13983         * src/Makefile.in
13984         * src/clean.mk
13985         * support/cpp2/Makefile.in
13986         * support/cpp2/clean.mk
13987         * support/makebin/Makefile
13988         * support/makebin/clean.mk
13989         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
13990         * doc/sdccman.lyx: --program-suffix no longer needed
13991
13992 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
13993
13994          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
13995          Martin Helmling added support for ddd GUI debugger.
13996          Code added to display assembly, set variables, and other commands
13997          to interface to ddd.
13998
13999 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
14000
14001         * as/Makefile: fix target clean
14002         * as/clean.mk: fix target clean
14003         * as/z80/clean.mk: fix target clean
14004
14005 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
14006
14007         * Makefile.common.in: added  AT EXEEXT AT
14008         * configure.in: removed all mingw32 stuff
14009         * configure: rebuilt from configure.in
14010         * doc/sdccman.lyx: updated section "installation"
14011         * support/scripts/sdcc_mingw32: adapted to configure
14012         * support/scripts/sdcc_cygwin_mingw32: added
14013
14014 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
14015
14016         * src/pic Added object file support for the PIC port
14017         * src/pic Applied patch from Craig Franklin (this started the object file support)
14018         * src/regression Updated the PIC regression tests for object files
14019
14020 2003-04-20  Borut Razem <borut.razem AT siol.net>
14021
14022         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
14023           lklex.c: In function `getfid':
14024           lklex.c:203: warning: array subscript has type `char'
14025         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
14026           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
14027         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
14028           stack handling macros
14029
14030 2003-04-19  Borut Razem <borut.razem AT siol.net>
14031
14032         * "handling space characters in file path" task:
14033         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
14034         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
14035         * support/Util/MySystem.h: make it self-sufficient
14036         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
14037           src/z80/main.c, sdcc/as/mcs51/lklex.c:
14038           handling space characters in file path
14039         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
14040           (it will be used by assemblers, which have their own includes, e.g. gpasm)
14041         * support/Util/MySystem.c: handling space characters in executable's path
14042
14043 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
14044
14045         * as/z80/Makefile: fix permanent rebuild of z80
14046         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
14047         * support/regression/tests/bitfields.c: added Johan's bitfields.c
14048
14049 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
14050
14051         * src/SDCCopt.c: add special case optimization to replace modulo by
14052           a power of two with a bitwise AND.
14053
14054 2003-04-18    <johan AT balder>
14055
14056         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
14057
14058 2003-04-17    <johan AT balder>
14059
14060         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
14061         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
14062
14063 2003-04-13  Borut Razem <borut.razem AT siol.net>
14064
14065         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
14066         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
14067           fixed mingw problem in adl_NORMALIZE_PATH
14068
14069 2003-04-12  Borut Razem <borut.razem AT siol.net>
14070
14071         * fixed "#pragma SAVE/RESTORE can not be nested":
14072         * src/SDCC.lex: reworked pragma handling functions
14073         * sdcc/src/SDCCglobl.h: reworked stack handling macros
14074         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
14075
14076 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
14077
14078         * src/SDCCutil.c (pathEquivalent): defined but not used
14079         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
14080         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
14081         * configure: rebuilt from configure.in
14082         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
14083         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
14084         * device/include/Makefile.in: replace sdcc_datadir
14085         * device/lib/Makefile.in: replace sdcc_datadir
14086         * Makefile.common.in: add LDFLAGS from configure
14087         * packihx/Makefile.in: use LDFLAGS
14088         * src/Makefile.in: use LDFLAGS
14089         * support/cpp2/Makefile.in: add LDFLAGS from configure
14090         * support/makebin/Makefile: use LDFLAGS
14091         * .version: bumped version number to 2.3.5
14092
14093 2003-04-12  Borut Razem <borut.razem AT siol.net>
14094
14095         * completed "different paths" task:
14096         * src/SDCCmacro.c: fixed bug in handling quotes
14097         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
14098         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
14099
14100 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
14101
14102         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
14103
14104 2003-04-11 kevin Vigor <kevin AT vigor.nu>
14105
14106         * ds390/gen.c ds390/peeph.def: fix bug 706781
14107
14108 2003-04-11  Borut Razem <borut.razem AT siol.net>
14109
14110         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
14111
14112 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
14113
14114         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
14115         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
14116          set - this bit used to not be set...).
14117         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
14118           bad code in PIC Port
14119         * src/regression/and2.c added to test bug 609268
14120         * src/regression/Makefile added and2.c to regression test
14121
14122
14123 2003-04-08    <johan AT CP255758-A>
14124
14125         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
14126         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
14127         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
14128
14129 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
14130
14131         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
14132         fix bug #487815
14133         * support/cpp2/Makefile.in: fix bug #487815
14134         * configure: rebuilt from configure.in
14135         * Makefile.common.in: docdir changed, new path suffixes
14136         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
14137         * sdcc_vc_in.h: reflect changes from sdccconf.h
14138         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
14139         * src/SDCCutil.h: remove BINDIR hack
14140         * doc/sdccman.lyx: update new path hierarchy
14141
14142 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
14143
14144         * src/SDCCpeeph.c: added okToRemoveSLOC test
14145
14146 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
14147
14148         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
14149
14150 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
14151
14152         * src/SDCCpeeph.c: added labelIsReturnOnly test
14153         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
14154
14155 2003-04-05    <johan AT balder>
14156
14157         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
14158         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
14159         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
14160         * src/SDCCast.c: fixed a warning
14161         * src/SDCCast.h: fixed a warning
14162         * src/SDCCicode.c (operandFromAst): fixed a warning
14163
14164 2003-04-04    <johan AT balder>
14165
14166         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
14167         * src/SDCCast.c (decorateType): fixed bug #715076
14168         * src/SDCC.y: fixed bug #702907
14169
14170 2003-04-03    <johan AT balder>
14171
14172         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
14173         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
14174         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
14175         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
14176         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
14177
14178 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
14179
14180         * _decdptr.c: fix return values
14181         * _gptrget.c: fix return values
14182         * _gptrgetc.c: fix return values
14183         * _gptrput.c: fix return values
14184         * _mulint.c: fix return values
14185         * as/z80/Makefile: fix 'make -j' problem
14186
14187 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
14188
14189         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
14190         * configure.in: big cleanup, updated to autoconf 2.5x
14191         * configure: rebuilt from configure.in
14192         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
14193         * sdcc_vc_in.h: reflect changes from sdccconf.h
14194         * doc/Makefile: fixed a flaw in "make install"
14195
14196 2003-04-02    <johan AT balder>
14197
14198         * src/ds390/gen.c (genCmp): no comments
14199         * src/mcs51/gen.c (genCmp): no comments
14200         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
14201         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
14202
14203 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
14204
14205         * support/regression/generate-cases.py: place generated file in given sub directory
14206         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
14207         * support/regression/Makefile: improvements for 'make -j';
14208         side effect: it's simpler and faster now
14209
14210 2003-03-31  Borut Razem <borut.razem AT siol.net>
14211
14212         * src/z80/main.c: link-{port} and as-{port} defined without path
14213         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
14214
14215 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
14216
14217         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
14218
14219 2003-03-30  Borut Razem <borut.razem AT siol.net>
14220
14221         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
14222           changed type of list parameter to set
14223         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
14224         * src/port.h: changed type of do_assemble() parameter to set
14225         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
14226           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
14227           definition of "cppoutfilename" macro with NULL value in preProcess()
14228         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
14229         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
14230         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
14231           replaced with set *binPathSet
14232         * shash_add() deallocates the item, if allready exsists, before adding the new one
14233         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
14234
14235 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
14236
14237         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
14238           a nested for loop bug in the PIC port
14239         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
14240           for loops
14241
14242 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
14243
14244         * support/Util/dbuf.h: remove C++ stuff to make it portable
14245
14246 2003-03-28  Borut Razem <borut.razem AT siol.net>
14247
14248         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
14249           literal strings in stringLiteral()
14250         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
14251         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
14252           to the project
14253
14254 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
14255
14256         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
14257
14258 2003-03-26    <johan AT balder>
14259
14260         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
14261         * src/ds390/gen.c (saveRegisters): catched symbol abuse
14262         * src/SDCCast.c (decorateType): fixed " -v < 3"
14263
14264 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
14265
14266         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
14267         Added Lenny Story's debug infrastructure changes:
14268         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
14269         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
14270         * src/cdbFile.c: added
14271         * src/SDCCdebug.c: added
14272         * src/SDCCdebug.h: added
14273         * src/SDCCast.c (createFunction)
14274         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
14275         * src/SDCCmain.c (parseCmdLine, main)
14276         * src/SDCCmem.c (redoStackOffsets)
14277         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
14278         * src/SDCCsymt.h
14279         * src/common.h
14280         * src/avr/gen.c (genAVRCode)
14281         * src/ds390/gen.c (gen390Code)
14282         * src/mcs51/gen.c (gen51Code)
14283         * src/pic/gen.c (genpic14Code)
14284         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
14285         * src/xa51/gen.c (genXA51Code)
14286         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
14287
14288 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14289
14290         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
14291         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
14292
14293 2003-03-22    <johan AT balder>
14294
14295         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
14296
14297 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
14298
14299         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
14300         * doc/cdbfileformat.lyx: added, written by Lenny Story
14301         * doc/Makefile: added cdbfileformat.lyx
14302         * doc/clean.mk: added cdbfileformat.lyx
14303
14304 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
14305
14306         * src/mcs51/peeph.def: fix bug #705773
14307
14308 2003-03-20    <johan AT balder>
14309
14310         An sfr/sbit can have an "at #" AND an initializer
14311         * src/SDCCsymt.c (checkSClass):
14312         * src/SDCCmem.c (allocGlobal):
14313         * src/SDCCmem.c (allocLocal):
14314         * src/SDCCast.c (createBlock):
14315
14316 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
14317
14318         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
14319
14320 2003-03-16    <johan AT balder>
14321
14322         Undid the hackup of const and volatile, the problem is much bigger
14323         * src/SDCC.y:1.65
14324         * src/SDCCast.c:1.171
14325         * src/SDCCglue.c:1.138
14326         * src/SDCCicode.c:1.146
14327         * src/SDCCsymt.c:1.150
14328         * src/SDCCval.c:1.65
14329
14330 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
14331
14332         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
14333         * src/ds390/gen.c (genAddrOf): fixed bug #704087
14334
14335 2003-03-13    <johan AT balder>
14336
14337         Hackup const and volatile modifiers in type chains a bit:
14338         * src/SDCC.y:1.63
14339         * src/SDCCast.c:1.169
14340         * src/SDCCglue.c:1.136
14341         * src/SDCCicode.c:1.143
14342         * src/SDCCsymt.c1.146
14343         * src/SDCCsymt.h1.59
14344         * src/SDCCval.c:1.63
14345
14346 2003-03-12    <johan AT balder>
14347
14348         * src/SDCCBBlock.h: more LRH debugging junk
14349         * src/SDCCcflow.h: more LRH debugging junk
14350         * src/SDCCloop.c: more LRH debugging junk
14351         * src/SDCC.y (struct_declaration): fixed bug #697590
14352         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
14353         * src/ds390/gen.c (aopForRemat): fixed bug #700031
14354         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
14355
14356 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14357         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
14358         test function names must now match exactly).
14359         * src/SDCCcse.c: added special case in findCheaperOp to allow
14360         extending a short integer. Makes less awful code for bug 700121 test case.
14361
14362 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14363
14364         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
14365         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
14366
14367 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14368
14369         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
14370         actually called (operandsNotEqual() was called for all
14371         operandsNotEqualX tests).
14372
14373 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14374
14375         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
14376         with shorter literals. Fixes bug 700121.
14377
14378 2003-03-11    <johan AT balder>
14379
14380         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
14381
14382 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
14383
14384         * src/SDCCloop.c (mergeRegions): an evil beast is dead
14385         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
14386
14387 2003-03-10  Borut Razem <borut.razem AT siol.net>
14388
14389         * src/SDCCmain.c: pipe preprocessor's output
14390         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
14391         * sdcc_vc_in.h: define pclose as _pclose for WIN32
14392         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
14393         which closes all pipes in pipeSet set
14394         * src/SDCCset.c: free deleted item in function deleteSetItem()
14395         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
14396         moved from z80 to src subproject
14397         * .version: increased version number to 2.3.4
14398
14399 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
14400
14401         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
14402         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
14403         * support/regression/ports/xa51/spec.mk: fix typo
14404
14405 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
14406
14407         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
14408
14409 2003-03-09  Borut Razem <borut.razem AT siol.net>
14410
14411         * src/SDCCmain.c: pipe preprocessor's output
14412         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
14413         * sdcc_vc_in.h: define pclose as _pclose for WIN32
14414         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
14415         which closes all pipes in pipeSet set
14416         * src/SDCCset.c: free deleted item in function deleteSetItem()
14417         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
14418         moved from z80 to src subproject
14419
14420 2003-03-09  Borut Razem <borut.razem AT siol.net>
14421
14422         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
14423         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
14424         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
14425         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
14426         * src/SDCCglobl.h: unification of WIN32 native definitions
14427
14428 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14429
14430         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
14431
14432 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
14433
14434         * src/configure.in:   check for endianess (even while cross-compiling)
14435         * src/configure:      check for endianess (even while cross-compiling)
14436         * src/configure_in.h: check for endianess (even while cross-compiling)
14437         * src/avr/gen.c:        remove old endianess stuff
14438         * src/mcs51/gen.c:      remove old endianess stuff
14439         * src/ds390/gen.c:      remove old endianess stuff
14440         * src/pic/gen.c:        remove old endianess stuff
14441         * src/pic/genarith.c:   remove old endianess stuff
14442         * src/pic/glue.c:       fix endianess check
14443         * src/pic16/gen.c:      remove old endianess stuff
14444         * src/pic16/genarith.c: remove old endianess stuff
14445         * src/pic16/glue.c:     fix endianess check
14446         * src/xa51/gen.c:       remove old endianess stuff
14447         * src/z80/gen.c:        fix endianess check
14448         * src/SDCCglue.c:       fix endianess check
14449         * src/ds390/peeph.def: fix bug 700036
14450
14451 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
14452
14453         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
14454         * src/configure: find appropriate data-types on host for SDCC's int and long
14455         * src/configure.in: find appropriate data-types on host for SDCC's int and long
14456         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
14457         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
14458
14459 2003-03-07    <johan AT balder>
14460
14461         Just a big NOOP:
14462                 some minor cleanups before the big shot
14463                 OP_DEFS and OP_USES now use Kevin's protection
14464                 new option --nolabelopt
14465
14466         * src/SDCCBBlock.c:
14467         * src/SDCCast.c,:
14468         * src/SDCCcflow.c:
14469         * src/SDCCcse.c:
14470         * src/SDCCicode.c:
14471         * src/SDCCicode.h:
14472         * src/SDCClabel.c:
14473         * src/SDCCloop.c:
14474         * src/SDCCmain.c:
14475         * src/ds390/ralloc.c:
14476         * src/mcs51/ralloc.c:
14477         * src/pic/ralloc.c:
14478         * src/xa51/ralloc.c:
14479         * src/z80/ralloc.c:
14480
14481 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
14482
14483         * src/pic/pcode.c (get_op): fix 64 bit warnings
14484         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
14485         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
14486         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
14487         * support/regression/tests/malloc.c: fix 64 bit warnings
14488
14489 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
14490
14491         * src/mcs51/gen.c (genMinus): fixed bug 696436
14492
14493 2003-03-02  Borut Razem <borut.razem AT siol.net>
14494
14495         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
14496
14497 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
14498
14499         * configure.in: test for mkstemp
14500         * sdccconf_in.h: add HAVE_MKSTEMP
14501
14502 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
14503
14504         * device/include/ctype.h: removed warning while using --stack-auto
14505         * device/include/malloc.h: removed warning while using --stack-auto
14506         * device/include/string.h: removed warning while using --stack-auto
14507
14508 2003-02-23  Borut Razem <borut.razem AT siol.net>
14509
14510         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
14511         because NDEBUG is defined (see man assert)
14512         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
14513
14514 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14515
14516         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
14517         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
14518
14519 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14520
14521         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
14522         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
14523
14524 2003-02-18    <johan AT balder>
14525
14526         * as/mcs51/asmain.c (asmbl): module can start with a digit
14527         * as/z80/asmain.c (asmbl): module can start with a digit
14528
14529 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
14530
14531         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
14532         * src/asm.c: fix pipe() for Mingw32
14533
14534 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
14535
14536         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
14537         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
14538         make -V work again; --c1mode reads now from stdin
14539         * doc/sdccman.lyx: added --c1mode
14540         * support/Util/SDCCerr.c: new messages for c1 mode
14541         * support/Util/SDCCerr.h: new messages for c1 mode
14542         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
14543
14544 2003-02-15    <johan AT balder>
14545
14546         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
14547
14548 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
14549
14550         * doc/sdccman.lyx: Environment variables, -o and other minor things
14551
14552 2003-02-14    <johan AT balder>
14553
14554         * src/xa51/main.c: before anyone really tries to use it :)
14555
14556         * Install doc's in share/sdcc/doc
14557         * removed some obsolete files
14558         * Do a proper make distclean and uninstall
14559         M Makefile.common.in
14560         R sdccbuild.sh
14561         M as/Makefile
14562         M device/include/Makefile.in
14563         M device/lib/Makefile.in
14564         M doc/sdccman.lyx
14565         M link/Makefile
14566         M sim/ucsim/doc/Makefile.in
14567         M src/clean.mk
14568         R src/avr/peeph.rul
14569         R src/xa51/peeph.rul
14570         M support/cpp2/Makefile.in
14571         M support/makebin/Makefile
14572
14573
14574 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
14575
14576         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
14577
14578 2003-02-10  Borut Razem <borut.razem AT siol.net>
14579
14580         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
14581         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
14582         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
14583         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
14584         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
14585         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
14586         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
14587         src/z80/Makefile.bcc: Borland Makefile cleanup
14588         * as/z80/Makefile.bcc: Added Borland Makefile
14589         * support/cpp2/borland.h: Removed
14590
14591 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
14592
14593         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
14594         * src/SDCC.lex: new pragma NOIV
14595         * src/SDCCglobl.h: new pragma NOIV
14596         * src/SDCCmem.c: new pragma NOIV
14597
14598 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
14599
14600         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
14601
14602 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
14603
14604         * src/SDCCmain.c: signal handling is switched off by --debug
14605         * doc/Makefile: small fix for install; use clean.mk again
14606         * doc/clean.mk: clean *.pdf and *.html too
14607
14608 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
14609
14610         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
14611         * device/lib/printfl.c: fix a ds390 bug by making it portable
14612         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
14613         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
14614         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
14615         * debugger/mcs51/cmd.c: converted multi-line string literals
14616         * sim/ucsim/globals.cc: converted multi-line string literals
14617         * src/SDCCmain.c: introduced signal handler to remove temp files
14618         * doc/Makefile: small tweaks, implement clean
14619         * doc: removed generated files
14620
14621 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14622
14623         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
14624         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
14625         Address Record is not correctly generated for DS390."
14626
14627 2003-02-02  Borut Razem <borut.razem AT siol.net>
14628
14629         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
14630         * as/mcs51/asm.h: fixed compilation with Borland C
14631         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
14632         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
14633         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
14634         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
14635         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
14636         src/z80/Makefile.bcc: delete $(LIB) only if exist
14637         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
14638
14639 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
14640
14641         * device/include/malloc.h: introduced NULL
14642         * device/include/string.h: introduced NULL
14643         * device/include/stdlib.h: introduced NULL
14644         * device/lib/_memcpy.c: removed NULL
14645         * device/lib/_strcat.c: removed NULL
14646         * device/lib/_strchr.c: removed NULL
14647         * device/lib/_strcmp.c: removed NULL
14648         * device/lib/_strcpy.c: removed NULL
14649         * device/lib/_strcspn.c: removed NULL
14650         * device/lib/_strlen.c: removed NULL
14651         * device/lib/_strncat.c: removed NULL
14652         * device/lib/_strncmp.c: removed NULL
14653         * device/lib/_strncpy.c: removed NULL
14654         * device/lib/_strpbrk.c: removed NULL
14655         * device/lib/_strrchr.c: removed NULL
14656         * device/lib/_strspn.c: removed NULL
14657         * device/lib/_strstr.c: removed NULL
14658         * device/lib/_strtok.c: removed NULL
14659         * device/lib/malloc.c: removed NULL, include own header
14660
14661 2003-02-02    <johan AT balder>
14662
14663         * 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
14664         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
14665         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
14666         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
14667         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
14668         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
14669
14670 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14671
14672         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
14673         area 'DATA'"
14674
14675 2003-02-01    <johan AT balder>
14676
14677         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
14678
14679 2003-01-31    <johan AT CP255758-A>
14680
14681         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
14682
14683 2003-01-30    <johan AT balder>
14684
14685         * src/SDCCBBlock.c: automatic bug detection
14686         * src/SDCCicode.c: automatic bug detection
14687
14688 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14689
14690         * src/SDCCglobl.h:   now --xram-size 0 works
14691         * src/SDCCmain.c:    now --xram-size 0 works
14692
14693 2003-01-29    <johan AT balder>
14694
14695         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
14696
14697 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14698
14699         * as/mcs51/aslink.h: Added options --xram-size and --code-size
14700         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
14701         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
14702         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
14703         * src/SDCCglobl.h:   Added options --xram-size and --code-size
14704         * src/SDCCmain.c:    Added options --xram-size and --code-size
14705
14706 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
14707
14708         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
14709         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
14710
14711 2003-01-27    <johan AT balder>
14712
14713         * src/SDCC.y: fixed bug #613764
14714
14715 2003-01-26    <johan AT balder>
14716
14717         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
14718         * src/SDCCsymt.h: fixed bug #673374
14719         * src/SDCCglue.c: fixed bug #661910
14720         * src/SDCCast.c: fixed bug #458099 and 673374
14721
14722 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
14723
14724         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
14725         * as/mcs51/strcmpi.h: added
14726         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
14727         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
14728         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
14729         * as/mcs51/assym.c: strcmpi -> as_strcmpi
14730         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
14731         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
14732         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
14733         * as/mcs51/Makefile.aslink: new module strcmpi
14734         * as/mcs51/Makefile.asx8051: new module strcmpi
14735         * as/mcs51/Makefil.bcc: new module strcmpi
14736         * as/mcs51/Makefile.in: new module strcmpi
14737         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
14738
14739 2003-01-26    <johan AT balder>
14740
14741         * src/SDCCglue.c: reverted back to 1.124
14742         * src/SDCCast.c: reverted back to 1.156
14743         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
14744
14745 2003-01-25    <johan AT balder>
14746
14747         * src/SDCCglue.c: A better fix for bug #661910
14748         * src/SDCCast.c: A better fix for bug #661910
14749         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
14750
14751 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
14752
14753         * src/Makefile.in: remove spawn.o
14754         * src/SDCCmain.c: remove spawn.h
14755         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
14756         * src/spawn.c: removed
14757         * src/spawn.h: removed
14758         * support/regression/ports/ds390/spec.mk: link with -r
14759
14760 2003-01-24    <johan AT CP255758-A>
14761
14762         * src/ds390/gen.c (aopOp): fixed bug #667458
14763         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
14764         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
14765         (createIvalCharPtr): an ival doesn't always have a storage class anymore
14766
14767 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
14768
14769         * src/mcs51/peeph.def: better assembler identation by Frieder
14770         * src/mcs51/gen.c: better assembler identation by Frieder
14771
14772 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
14773
14774         * as/z80/string.h: removed for gcc 3.2
14775         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
14776         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
14777
14778 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
14779
14780         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
14781         * src/SDCCpeeph.c (replaceRule): fix bug #663503
14782         * support/regression/Makefile: separate temp files for ports
14783         * support/regression/generate-cases.py: separate temp files for ports
14784         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
14785         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
14786
14787 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
14788
14789         * moved tinitalk to device/examples/ds390
14790
14791 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
14792
14793         * as/mcs51/lkmem.c: rflag is for DS390
14794         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
14795         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
14796                          (linkEdit): move mem- and map-files the same way as ihx-files
14797         * src/z80/main.c (_setDefaultOptions): removed --generic
14798         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
14799         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
14800         * src/pic/glue.c (picglue): --c1mode works again
14801         * src/pic16/glue.c (pic16glue): --c1mode works again
14802         * src/asm.c (printCLine): fix #660034
14803
14804 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
14805
14806         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
14807         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
14808         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
14809         * as/mcs51/lkmem (summary): better fix for sp problem
14810         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
14811         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
14812         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
14813                                               remove --stack-after-data
14814
14815 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
14816
14817         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
14818         * src/SDCCutil.c (join): ugly bug: missing '\0'
14819         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
14820
14821 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
14822
14823         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
14824         * src/port.h: typo
14825         * src/pic/main.c (_asmCmd): gpasm supports -o
14826         * src/z80/main.c: more general macros
14827         * device/lib/Makefile.in: remove intermediate files
14828
14829 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
14830
14831         * .version: Bumped version number to 2.3.3
14832         * src/SDCCBBlock.c: new option -o
14833         * src/SDCCglobl.h: new option -o
14834         * src/SDCCglue.c: new option -o
14835         * src/SDCCmain.c: new option -o
14836         * src/asm.c: new option -o
14837         * src/ds390/main.c: new option -o
14838         * src/pic/glue.c: new option -o
14839         * src/pic/pcode.c: new option -o
14840         * src/pic/ralloc.c: new option -o
14841         * src/pic16/glue.c: new option -o
14842         * src/pic16/pcode.c: new option -o
14843         * src/pic16/ralloc.c: new option -o
14844         * src/z80/main.c: new option -o
14845         * device/lib/Makefile.in: use -o
14846         * support/regression/ports/ds390/spec.mk: use -o
14847         * support/regression/ports/gbz80/spec.mk: use -o
14848         * support/regression/ports/mcs51/spec.mk: use -o
14849         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
14850         * support/regression/ports/z80/spec.mk: use -o
14851         * support/regression/ports/ucz80/spec.mk: use -o
14852         * support/regression/ports/xa51/spec.mk: use -o
14853         * support/regression/fwk/lib/timeout.c: fix usage string
14854
14855 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
14856         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
14857
14858 2003-01-07    <johan AT balder>
14859
14860         * src/SDCCast.c (decorateType): fixed bug #600035
14861
14862 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
14863         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
14864         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
14865         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
14866         * src/pic/pcode.c: outcommented unused variable to remove warnings
14867         * src/pic/ralloc.c: outcommented unused variable to remove warnings
14868
14869 2003-01-06    <karl AT turbobit.com>
14870         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
14871    regression tests.
14872
14873 2003-01-06    <johan AT balder>
14874
14875         * src/SDCCicode.c: fixed array add
14876
14877 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
14878         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
14879         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
14880
14881 2003-01-04    <johan AT balder>
14882
14883         * src/SDCCval.c (getNelements): fixed the initialized array of structures
14884
14885 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14886         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
14887
14888 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
14889         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
14890         * support/regression/tests/bug-524697.c: fit mem usage into 8032
14891
14892 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
14893         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
14894
14895 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
14896         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
14897
14898 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
14899         * src/mcs51/main.c: removed {bindir}{sep} from aslink
14900
14901 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14902
14903     * in /sdcc/as/mcs51/ changed these files in order to create an
14904     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
14905     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
14906     following files to include the previous two files: aslink.dsp,
14907     Makefile.aslink, Makefile.bcc, and Makefile.in.
14908
14909     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
14910     .adb instead of .cdb
14911
14912 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14913
14914         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
14915         value from option --iram-size.
14916
14917 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14918
14919         * /sdcc/as/mcs51/lklist.c: added boundary check before using
14920         dram[] array.
14921
14922 2002-09-18    <wiml AT hhhh.org>
14923
14924         * SDCClrange.h: exposed setFromRange() and setToRange()
14925         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
14926           packRegsForAccUse() (bug 542397)
14927         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
14928           multiple times and emitting the fetch operations more than once
14929           added aopGetUsesAcc() function to allow binary operators to
14930           fetch their operands in the correct order; made genMinus() emit
14931           compact code for X = LITERAL - Y
14932
14933 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14934         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
14935         sprintf() in line 1267.
14936
14937 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14938         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
14939         like ports.
14940
14941 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14942         Changes to aslink (All the changes are marked with 'JCF'):
14943
14944         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
14945         summary().
14946
14947         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
14948         area BSEG.  Also moves, if possible, the DATA area down into the internal
14949         ram so more space is available.
14950
14951         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
14952         sflag.
14953
14954         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
14955         not bytes.  Function summary() which creates a memory usage summary
14956         file with extension .mem.  Reports of overlaping stack and small stack
14957         size.  If the space for the stack is less than 16 bytes aslink trows a
14958         warning.
14959
14960         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
14961         the 8051.  Option 'y' for memory summary output file.
14962
14963         Changes to sdcc (All the changes are marked with 'JCF'):
14964
14965         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
14966
14967         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
14968         overlaying area for it (uses RegBankUsed[4]).
14969
14970         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
14971         bank zero as used by default.  By default aslink locates the stack
14972         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
14973         the creation of the .mem file.  Delegates the allocation of data area
14974         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
14975         the begining of the stack area to aslink.
14976
14977         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
14978         glue() in SDCCglue.c creates an area for it.
14979
14980 2002-09-03  Borut Razem <borut.razem AT siol.net>
14981         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
14982         sdcc/src/pic/glue.c:
14983         introduced atexit() handler for teporay files removal in case of
14984         errors, assertions, ...
14985
14986 2002-08-29  Borut Razem <borut.razem AT siol.net>
14987         * sdcc/support/cpp2/auto-host_vc_in.h:
14988         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
14989         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
14990         Maybe there is a similar problem with BORLANDC? It should be checked!
14991
14992         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
14993         corrected improper use of assert: the assignment to clr variable was done inside the assert.
14994         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
14995         was not executed, and the compiler (cl) launched a warning:
14996         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
14997
14998 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
14999         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
15000
15001 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
15002         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
15003
15004         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
15005           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
15006           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
15007           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
15008           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
15009           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
15010           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
15011         - added Release configuration in VS projects
15012         - review of compiler an linker options
15013         - VC .exe files are generated in bin_vc directory, not to interfere
15014           with binaries generated from other projects (cygwin, mingw, bcc ...)
15015
15016         * sdcc/src/yacc.dsp: added
15017
15018         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
15019         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
15020         and insert the version number definitions from .version
15021
15022         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
15023
15024         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
15025         added - genarate auto-host.h using auto-host_vc_in.h as template
15026
15027         * sdcc/sdcc_vc.h,
15028         removed from CVS, generated automatically
15029
15030 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
15031         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
15032
15033 2002-08-11  Borut Razem <borut.razem AT siol.net>
15034         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
15035
15036 2002-08-10  Borut Razem <borut.razem AT siol.net>
15037         * src/SDCCmain.c (main):
15038         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
15039         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
15040         The consequence was that some temporary files were not removed.
15041
15042         * src/SDCCglue.c:
15043         unification of code in functions tempfilename() and tempfile():
15044         function tempnam() is defined in Visual Studio 6.0 and .NET
15045
15046         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
15047
15048         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
15049           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
15050         - removed compiler command line option /WX: Treats all warnings as errors
15051         - update a list of source files, included into the project
15052
15053         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
15054           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
15055         changed project type to Generic Project so that can be correcly converted to VS.NET project
15056
15057         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
15058
15059         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
15060
15061         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
15062
15063         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
15064         added return 0 statements after assert() to make compiler happy
15065
15066         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
15067         added newline in the def file to keep MSC compiler satisfied
15068
15069         * sdcc/src/z80/gen.c:
15070         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
15071           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
15072         - solved MSC error in function aopDump()
15073
15074         * sdcc_vc.h: define PREFIX as "\\sdcc"
15075
15076 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
15077         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
15078
15079 2002-06-22  Scott Dattalo <scott AT dattalo.com>
15080         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
15081         - Rewrote the register banking algorithm.
15082         - Added pCode live-range analysis to registers (for now, only non-used and
15083         singly-used registers optimized away)
15084
15085         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
15086
15087         * 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.
15088
15089 2002-05-10  Scott Dattalo <scott AT dattalo.com>
15090         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
15091
15092 2002-04-22  Michael Hope  <michaelh AT vroom>
15093
15094         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
15095
15096         * configure.in (DD_COPT): Added include support required for gbdk.
15097
15098         * .version: Bumped version number just to increase it.
15099
15100         * src/SDCCmain.c: Added -nostdinc to the default options.
15101
15102 2002-04-15  Michael Hope  <michaelh AT vroom>
15103
15104         * device/lib/z80/printf.c (sprintf): Added.
15105
15106         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
15107
15108         * src/z80/peeph.def: Added transpose redundent load rule.
15109
15110         * src/z80/main.c: Added force callee saves for jaune.
15111
15112         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
15113
15114         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
15115
15116 2002-03-28  Johan Knol  <johan AT balder>
15117
15118         * src/SDCCval.c: fixed bug #532436
15119
15120 2002-03-14  Scott Dattalo <scott AT dattalo.com>
15121         * /src/port.h:
15122         Added "char *Processor" field to the port structure.
15123
15124         * /src/SDCCmain.c:
15125         Added -p option. Allows port dependent processor to be specified.
15126
15127         * all ports:
15128         Initialized the new field char *Processor field to NULL in all ports
15129
15130         * /src/pic/*:
15131         Compiler generated registers for interrupt context saving
15132         were not getting allocated.
15133
15134 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
15135
15136         * /src/SDCCast.c:
15137         Fixed left shift. Will promote the left side of a left shift
15138         if a) left shifting more than size of operand or b) when assigned
15139         to something size > size of left side
15140
15141 2002-03-14  Scott Dattalo <scott AT dattalo.com>
15142         * src/pic/*
15143         tons of changes. Register allocation has been
15144         rewritten. Added customization for the various PICs. Flow
15145         analysis is restructured. ...
15146
15147         * src/pic/device.h:
15148         Added
15149
15150         * src/pic/device.c:
15151         Added. device.c is a PIC port hack to accomodate variations
15152         in PIC devices.
15153
15154 2002-03-13  Michael Hope  <michaelh AT vroom>
15155
15156         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
15157
15158 2002-03-04  johanknol  <johanknol AT manik>
15159
15160         * /src/SDCCval.c: fixed
15161
15162         const unsigned char arr[][2] = { { 0, 1 } };
15163         t18.c:1: error: Initializer element is not constant
15164
15165 2002-03-04  bela  <bela AT manik>
15166
15167         * /device/include/mcs51reg.h:
15168         ds89c420 register definition update
15169
15170 2002-03-03    <johan AT FRIJA>
15171
15172         * support/Util/SDCCerr.c: did something, but don't no why anymore
15173
15174         * support/regression/tests/bug-524691.c: made it a little less shy
15175
15176         * src/SDCCast.c (decorateType): fixed bug #524697
15177
15178         * src/SDCCast.c: made some lineno improvements
15179
15180         * src/SDCCval.c (getNelements): changed warning to error
15181
15182         * src/SDCCglue.c (printIvalArray): changed warning to error
15183
15184         * src/SDCCicode.c: fixed a warning for mingw
15185
15186         * src/SDCCast.c (decorateType): fixed the << promotion for ops
15187
15188         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
15189
15190 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
15191
15192         * src/ds390/peeph.def:
15193         Added some more peephole rules
15194
15195         * src/ds390/gen.c: Various fixes & enhancements
15196
15197         * src/SDCClrange.c, src/SDCClrange.h:
15198         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
15199
15200         * src/ds390/ralloc.c:
15201         various fixes & enhancements (ds390) specific
15202
15203         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
15204         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
15205         from rallocs.
15206
15207         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
15208
15209 2002-03-02    <johan AT FRIJA>
15210
15211         * src/SDCCast.c (decorateType): fixed bug #524708
15212
15213         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
15214
15215         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
15216
15217 2002-03-01  Michael Hope  <michaelh AT vroom>
15218
15219         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
15220
15221         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
15222
15223 2002-03-01    <johan AT FRIJA>
15224
15225         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
15226
15227         * src/SDCCast.c (decorateType): fixed bug #524209
15228
15229         * src/SDCCval.c (valNot): fixed bug #524195
15230
15231 2002-02-26    <johan AT balder>
15232
15233         * src/xa51/gen.c: fixed a warning
15234
15235         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
15236
15237         * src/SDCCast.c (decorateType): fixed bug #522534
15238
15239 2002-02-23    <johan AT balder>
15240
15241         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
15242
15243 2002-02-22    <johan AT balder>
15244
15245         * src/SDCCast.c: fixed bug #514865
15246
15247         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
15248
15249 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
15250
15251         * sdcc/src/SDCCloop.c:
15252         Previous fix was not good. basic blocks that have "break" or "return" are
15253         not really partof a loop , but live ranges used in these blocks should
15254         be live thru the entire loop, so set partOfLoop but don't add them to
15255         loop region
15256
15257 2002-02-21    <johan AT FRIJA>
15258
15259         * src/SDCCcse.c: fixed bug #514308
15260
15261 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
15262
15263         * src/SDCCloop.c:
15264         Fixed BUG #519583. If a conditional block ended in a return/break
15265         statement inside a loop, it was not being considered part of the loop.
15266
15267         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
15268
15269 2002-02-10  Karl Bongers <karl AT turbobit.com>
15270
15271         * debugger/*:
15272         Fixed up SDCDB debugger somewhat.  Updated debugger/README
15273         with lots of comments and notes.
15274
15275         * device/examples/test2.c:
15276         Fix bug, "red" variable not being initialized(compiler complained).
15277
15278         * device/examples/Makefile, examples/test3.c:
15279         Add Makefile in device/examples folder, compiles test3.c
15280         for use as a multiple module SDCDB test case.
15281
15282         * sim/ucsim/cmd.src/cmdset.cc:
15283         Took out debug printfs in ucsim "next" command.
15284
15285         * sim/ucsim/xa.src:
15286         Karl and Johan start ucsim XA support.  Most dissassembly working,
15287         about 75% emulation done(plenty of work remaining).
15288
15289         * sim/ucsim/z80.src:
15290         Add Z80 support to ucsim, add test-ucz80 regression test,
15291         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
15292         Notice z80 compiler fails on examples/test3.c/crc code.
15293
15294 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
15295
15296         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
15297         Added support for --parms-in-bank1
15298
15299         * src/ds390/peeph.def:
15300         added a few more peephole optimzations
15301
15302         * src/ds390/main.c:
15303         1) added __builtin_inp & __builtin_outp used to read in data of given length
15304            from a memory mapped port
15305         2) added __builtin_memcmp
15306         3) added __builtin_swapw swap bytes of a short
15307
15308         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
15309         1) handle multiple send & receives from register bank1
15310         2) ralloc can now allocate DPTR1 to some liveRanges
15311
15312         * src/SDCCsymt.c, src/SDCCsymt.h:
15313         changes to handle multiple sends & receives
15314
15315         * src/SDCCptropt.h:
15316         added some pointer arithmetic optimization
15317
15318         * src/SDCCptropt.c:
15319         added some pointer arithmetic optimizations but not stable yet so not
15320         called from anywhere (will get this working shortly)
15321
15322         * src/SDCCopt.c: fixed for multiple sends & receives
15323
15324         * src/SDCCmain.c:
15325         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
15326         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
15327            set preprocessor defines (depending on options)
15328
15329         * src/SDCCicode.c, src/SDCCicode.h:
15330         changes made to handle multiple sends & receives
15331
15332         * src/SDCCglobl.h:
15333         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
15334
15335         * src/SDCCcse.c, src/SDCCcse.h:
15336         added function findbackward def (to be used in upcoming optimization)
15337
15338         * src/SDCCcflow.c, src/SDCCcflow.h:
15339         added function returnAtEnd - to determine if a basic block terminates with
15340         a RETURN iCode
15341
15342         * src/SDCCast.c, src/SDCCast.h:
15343         added option parms-in-bank1
15344
15345         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
15346         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
15347         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
15348         adjusted for --parms-in-bank1 option
15349
15350         * device/include/string.h:
15351         donot redefine "reentrant" keyword
15352
15353         * device/include/ds80c390.h: Added some more SFRs
15354
15355 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
15356
15357         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
15358
15359 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
15360
15361         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
15362
15363 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
15364
15365         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
15366
15367 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
15368
15369         * Added --xram-movc option
15370
15371 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
15372
15373         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
15374
15375 2002-01-11  Johan Knol
15376
15377         * Added math lib of Jesus Calvino-Fraga
15378
15379 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
15380
15381         * src/SDCCmain.c (processFile): fix processing of ../../src.c
15382         * support/regression/Makefile: new target test-mcs51-stack-auto
15383         * support/regression/ports/mcs51-stack-auto/spec.mk: added
15384
15385 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
15386
15387         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
15388
15389 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
15390
15391         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
15392
15393 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
15394
15395         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
15396
15397         * src/SDCCglue.h: add definition for printIvalChar()
15398
15399 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
15400
15401         * src/SDCCast.c: fix #498138 by Johan
15402
15403         * src/SDCCglue.c: fix #498138 by Johan
15404
15405 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
15406
15407         * support/regression/Makefile: fix clean
15408
15409         * support/regression/ports/ds390/support.c: fix transmission of last character
15410
15411 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
15412
15413         * /sdcc/src/ds390/gen.c:
15414         a) improved computing address of stack variable
15415         b) took out some #if 0 code
15416         c) improved parmBytes adjustment
15417         d) improved genPlusIncr & genMinusIncr
15418         e) genCmp could generate bad code (when left assigned to DPTR)
15419         f) Fixed bug in hasInc
15420
15421         * /sdcc/src/ds390/ralloc.c:
15422         a) packRegsForSupport could mess up live information (Fixed)
15423         b) packRegsDPTRuse could be incorrect for left & right shift
15424
15425         * /sdcc/src/mcs51/ralloc.c:
15426         packRegsForSupport could mess up the live information (Fixed)
15427
15428         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
15429
15430         * /sdcc/src/SDCCast.c:
15431         can reverse a loop even if function call is present as long
15432         as the loop control variable is local & is not passed as parameter
15433
15434 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15435
15436         * /sdcc/ChangeLog: *** empty log message ***
15437
15438         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
15439         More builtin function additions for TININative
15440
15441         * /sdcc/src/ds390/ralloc.c:
15442         Had broken the regression testsuite
15443
15444         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
15445
15446         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
15447         Added funcattr hasStackParms will be set for reentrant functions when there
15448         are paramteres on the stack, this helps in minimizing frame pointer generation
15449         typeFromStr can handle function pointers now
15450
15451         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
15452         *** empty log message ***
15453
15454 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15455
15456         * /src/ds390/gen.c, /src/ds390/main.c:
15457         More builtin function additions for TININative
15458
15459         * /src/ds390/ralloc.c:
15460         Had broken the regression testsuite
15461
15462         * /src/SDCCast.c: Fixed a bug in dumptree
15463
15464         * /src/SDCCsymt.c, /src/SDCCsymt.h:
15465         Added funcattr hasStackParms will be set for reentrant functions when there
15466         are paramteres on the stack, this helps in minimizing frame pointer generation
15467         typeFromStr can handle function pointers now
15468
15469         * /doc/builtins.txt, /doc/TININative.txt:
15470         *** empty log message ***
15471
15472
15473 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15474
15475         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
15476         ALPHA version for -mTININative
15477
15478         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
15479         updated to reflect changes in the port structure
15480
15481         * /src/port.h:
15482         added function do_assemble (similar to do_link) if non-null this function
15483         will be called to do assembly (-mTININative) requires a multi command
15484         assembly
15485         added function genAssemblerEnd will be called to generate assembler Epilogue
15486
15487         * /src/SDCCsymt.c:
15488         added _JavaNative to debug info printing
15489
15490         * /src/SDCCmain.c: added option --tini-libid
15491         added port->do_assemble function (-mTININative) has a multi command assemble
15492
15493         * /src/SDCCglue.c: Disabled "constExpr" check
15494         added port->genAssemblerEnd function
15495
15496         * /src/SDCCglobl.h: Added option --tini-libid value
15497
15498         * /src/SDCCast.h:
15499         tookout optimizeCompare from the header (has no external references)
15500
15501         * /src/SDCCast.c: made one more function "static"
15502
15503 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
15504
15505         * src/z80/mappings.i: Added z80asm support.
15506
15507         * src/z80/main.c: Added z80asm support on --asm=z80asm
15508
15509         * src/z80/gen.c: Fixed asm portability issues.
15510
15511         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
15512
15513         * src/SDCCglue.c (printExterns): Added global/extern split.
15514
15515 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
15516
15517         * support/regression/Makefile: added test for mcs51 model large
15518
15519         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
15520
15521         * support/regression/ports/gbz80/spec.mk: added -mgbz80
15522
15523 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
15524
15525         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
15526
15527 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
15528
15529         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
15530
15531         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
15532
15533 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
15534
15535         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
15536
15537         * support/regression/tests/simplefloat.c: Port to mcs51.
15538
15539 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
15540         * support/regression/tests/bug-485362.c: Added.
15541
15542         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
15543
15544         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
15545
15546         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
15547
15548         * src/z80/gen.c (aopDump): Added a dump function.
15549
15550 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
15551         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
15552
15553         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
15554
15555         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
15556
15557         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
15558
15559         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
15560
15561         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
15562
15563         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
15564
15565         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
15566
15567         * support/regression/ports/ds390/support.c: Use tinibios.
15568
15569         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
15570
15571 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
15572
15573         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
15574         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
15575
15576         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
15577
15578         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
15579
15580 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
15581
15582         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
15583
15584         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
15585         (packRegsForIYUse): Created and optimised.
15586
15587 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
15588
15589         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
15590 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
15591
15592         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
15593
15594         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
15595
15596         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
15597
15598 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15599
15600         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
15601
15602         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
15603
15604 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15605
15606         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
15607
15608         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
15609
15610         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
15611
15612 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
15613
15614         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
15615         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
15616         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
15617
15618         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
15619
15620         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
15621         (genNotFloat): Added.
15622         (genUminusFloat): Added.
15623
15624         * device/lib/z80/Makefile: Added floating pt stubs.
15625
15626         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
15627
15628         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
15629
15630         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
15631
15632 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15633
15634         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
15635
15636         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
15637
15638         * sdcc/support/regression/Makefile: Add port ds390.
15639
15640         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
15641
15642         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
15643
15644         * sdcc/support/regression/ports/ds390/spec.mk: Added.
15645
15646         * sdcc/support/regression/ports/ds390/support.c: Added.
15647
15648         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
15649
15650         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
15651
15652         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
15653
15654 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
15655
15656         * device/include/malloc.h: Added z80 and gbz80 support.
15657
15658         * device/lib/gbz80/heap.s: Added.
15659
15660         * device/lib/z80/heap.s: Added.
15661
15662         * device/lib/malloc.c: Added z80 and gbz80 support.
15663
15664         * support/regression/tests/malloc.c (testMalloc): Added.
15665
15666         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
15667
15668         * support/regression/tests/bug-478094.c: Added.
15669
15670         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
15671
15672 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
15673
15674         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
15675
15676         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
15677
15678         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
15679
15680         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
15681
15682         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
15683
15684 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
15685
15686         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
15687
15688 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
15689
15690         * support/regression/tests/bug-477927.c: Added.
15691
15692         * src/z80/peeph.def: Added minor rules.
15693
15694         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
15695
15696         * src/z80/peeph.def: Added jump optimisation modification.
15697
15698 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
15699
15700         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
15701
15702 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
15703
15704         * support/regression/tests/funptrs.c: Added.
15705
15706 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
15707
15708         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
15709
15710 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
15711
15712         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
15713
15714         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
15715
15716         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
15717         (movLeft2ResultLong): Created.
15718
15719         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
15720         (joinPushes): Added.  Joins two char pushes into a word push.
15721
15722 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
15723
15724         * support/cpp2/Makefile.in (install): Added creation of dest dir.
15725
15726         * support/makebin/Makefile (install): Added creation of dest dir.
15727
15728 2001-10-24 Karl Bongers <karl AT turbobit.com>
15729
15730         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
15731
15732 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
15733
15734         * src/z80/ralloc.c: Turned off faulty pack for one use.
15735
15736         * src/z80/peeph-gbz80.def: Removed redundent restart options.
15737
15738         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
15739
15740 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
15741
15742         * support/regression/Makefile: Improved clean
15743
15744         * support/regression/ports/gbz80/spec.mk: Added clean
15745
15746         * support/regression/ports/host/spec.mk: Added clean
15747
15748         * support/regression/ports/z80/spec.mk: Added clean
15749
15750         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
15751
15752         * support/regression/ports/mcs51/timeout.c: little improvements
15753
15754 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
15755
15756         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
15757
15758         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
15759
15760         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
15761
15762 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
15763
15764         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
15765
15766         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
15767
15768 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
15769         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
15770
15771         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
15772
15773         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
15774
15775         * src/mcs51/main.c (_linkCmd): Added bin path to command.
15776
15777         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
15778
15779         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
15780
15781         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
15782
15783         * support/regression/tests/longor.c: Added.
15784
15785 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
15786
15787         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
15788
15789         * as/mcs51/aslink.h: define PATH_MAX
15790
15791         * as/mcs51/asm.h: define PATH_MAX
15792
15793         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
15794
15795         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
15796
15797         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
15798
15799         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
15800
15801         * src/SDCCglobl.h: define PATH_MAX
15802
15803         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
15804
15805         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
15806
15807 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
15808
15809         * src/z80/gen.c (gencjneshort): Fixed
15810
15811         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
15812
15813 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
15814
15815         * support/regression/tests/bug-469671.c: Added.
15816
15817         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
15818
15819 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
15820
15821         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
15822
15823         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
15824
15825 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
15826
15827         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
15828
15829         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
15830
15831         * src/device/lib/_mullong.c : removed hint: nooverlay bug
15832
15833         * src/device/lib/_divuint.c : removed hint: nooverlay bug
15834
15835         * src/device/lib/_divulong.c: removed hint: nooverlay bug
15836
15837         * src/device/lib/_moduint.c : removed hint: nooverlay bug
15838
15839         * src/device/lib/_modulong.c: removed hint: nooverlay bug
15840
15841 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
15842
15843         * 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.
15844
15845         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
15846
15847         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
15848
15849 2001-10-07    <johan AT FRIJA>
15850
15851         * device/lib/gets.c (gets): fixed the return value.
15852
15853 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
15854         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
15855
15856         * 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.
15857
15858         * 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.
15859
15860         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
15861
15862         * src/pic/gen.c: Removed Safe_strdup.
15863
15864         * configure.in: Added option to enable libgc support.
15865
15866         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
15867         (bitVectUnion): Optimised.
15868         (bitVectIntersect): Optimised.
15869         (bitVectBitsInCommon): Optimised.
15870         (bitVectCplAnd): Optimised.
15871
15872         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
15873
15874 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
15875
15876         * src/SDCCmain.c: distinguish between assembler debug and plain options
15877
15878         * src/avr/main.c:   remove standard assembler options
15879
15880         * src/ds390/main.c: remove standard assembler options
15881
15882         * src/mcs51/main.c: remove standard assembler options
15883
15884         * src/port.h: removed "PENDING" comment
15885
15886 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
15887
15888         * src/device/lib/_mulint.c  : new, with assember functions
15889
15890         * src/device/lib/_mullong.c : new, with assember functions
15891
15892         * src/device/lib/_divuint.c : with assember functions
15893
15894         * src/device/lib/_divsint.c : with assember functions
15895
15896         * src/device/lib/_divulong.c: with assember functions
15897
15898         * src/device/lib/_divslong.c: with assember functions
15899
15900         * src/device/lib/_moduint.c : with assember functions
15901
15902         * src/device/lib/_modsint.c : with assember functions
15903
15904         * src/device/lib/_modulong.c: with assember functions
15905
15906         * src/device/lib/_modslong.c: with assember functions
15907
15908         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
15909
15910         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
15911
15912         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
15913                                       replaced _mululong.c and _mulslong.c by _mullong.c
15914
15915 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
15916
15917         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
15918
15919 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
15920
15921         * src/SDCCglue.c: test, if win32api is available for MINGW
15922
15923 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
15924
15925         * src/SDCCsymt.c: no more _modifier in printTypeChain()
15926         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
15927         * support/regression/ports/gbz80/spec.mk: removed GENERIC
15928         * support/regression/ports/host/spec.mk: removed GENERIC
15929         * support/regression/ports/mcs51/spec.mk: removed GENERIC
15930         * support/regression/ports/z80/spec.mk: removed GENERIC
15931
15932 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
15933
15934         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
15935
15936         * support/regression/tests/bug-467035.c: Created.
15937
15938 2001-10-01    <johan AT FRIJA>
15939
15940         * src/SDCC.y: fixed bug #466586 part 1
15941
15942 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
15943
15944         * SDCCicode.c: z80 has no generic pointers
15945         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
15946
15947 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
15948
15949         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
15950
15951 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
15952
15953         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
15954
15955         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
15956
15957 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
15958
15959         * configure.in: Fixed up so that ucsim is only configured once.
15960
15961         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
15962
15963         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
15964         (getPathDifference): As above.
15965
15966         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
15967
15968         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
15969
15970 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
15971         * .version: Updated to 2.3.1
15972
15973         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
15974         Added copyright header.
15975
15976         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
15977         (assemble): Added support for macro based assembler commands.
15978         (linkEdit): Added support for macro based linker commands.
15979         (preProcess): Changed the pre-processor to use macros.
15980         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
15981         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
15982
15983         * device/lib/z80/crt0.s: Added module name for debugging.
15984
15985 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
15986
15987         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
15988
15989         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
15990
15991         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
15992
15993         * src/Makefile.in: Added SDCCmacro and SDCCutil
15994
15995 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
15996
15997         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
15998
15999 2001-09-16    <johan AT FRIJA>
16000
16001         * 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.
16002
16003 2001-09-15    <johan AT FRIJA>
16004
16005         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
16006         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
16007
16008 2001-09-11    <johan AT FRIJA>
16009
16010         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
16011
16012 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
16013
16014         * support/regression/tests/bug-460444.c: Added test case.
16015
16016         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
16017         (genCast): Added justification for all of the asserts.
16018
16019 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
16020
16021         * support/regression/support.c: _xdata replaced by xdata
16022
16023         * support/regression/spec.mk: removed _generic
16024
16025 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
16026
16027         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
16028
16029         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
16030         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
16031
16032         * src/z80/peeph.def: Added a rule to optimise shift then compare.
16033
16034         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
16035
16036         * support/regression/tests/bug-460010.c: Added test case.
16037
16038         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
16039
16040 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
16041
16042         * support/regression/Makefile: inter-port-clean adjusted for mcs51
16043
16044         * support/regression/testfwk.c: removed workaround for bug #436344
16045
16046         * support/regression/tests/bp.c: use less memory with mcs51
16047
16048         * support/regression/tests/bug-441448.c: use less memory
16049
16050         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
16051
16052         * support/regression/collate-results.py: typo
16053
16054 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
16055
16056         * support/regression/tests/fetchoverlap.c: Added new test case.
16057
16058         * support/regression/tests/bp.c: Added new test case.
16059
16060         * support/regression/tests/bug-448984.c: Added new test case.
16061
16062         * support/regression/tests/pow2shifts.c: Added new test case.
16063
16064         * src/z80/gen.c: Turned off the noise it normally generates for the release.
16065         (genlshTwo): Fixed right shift for count > 8.
16066
16067         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
16068
16069 2001-09-08    <johan AT FRIJA>
16070
16071         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
16072
16073 2001-09-07    <johan AT FRIJA>
16074
16075         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
16076
16077         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
16078
16079 2001-09-06    <johan AT FRIJA>
16080
16081         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
16082         * bernhard noted me at this: "() equals to (void)" (1.38)
16083
16084 2001-09-05    <johan AT FRIJA>
16085
16086         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
16087
16088 2001-09-04    <johan AT FRIJA>
16089
16090         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
16091
16092
16093 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
16094
16095         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
16096
16097 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
16098
16099         * link/z80/aslink.h: Fixed path for PATH_MAX
16100
16101 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
16102
16103         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
16104
16105         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
16106
16107         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
16108
16109         * 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.
16110
16111 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
16112
16113         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
16114         (genCmp): Fixed up genCmp for the GB with longs.
16115
16116         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
16117
16118         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
16119
16120         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
16121
16122         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
16123
16124 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
16125
16126         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
16127
16128 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
16129
16130         * 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.
16131
16132         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
16133
16134 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
16135
16136         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
16137
16138         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
16139
16140 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
16141
16142   * sim/ucsim/configure:    little improvement of Cygwin-detection
16143   * sim/ucsim/configure.in: little improvement of Cygwin-detection
16144   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
16145   * support/regression/tests/bug-221100.c: small changes for mcs51
16146   * support/regression/tests/bug-221168.c: small changes for mcs51
16147   * support/regression/tests/bug-227710.c: small changes for mcs51
16148   * support/regression/tests/staticinit.c: small changes for mcs51
16149   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
16150   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
16151   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
16152
16153 $Revision$