* doc/knownbugs.html: updated for RC2
[fw/sdcc] / ChangeLog
1 2008-03-23 Borut Razem <borut.razem AT siol.net>
2
3         * src/pic/gen.h: Q&D solution for the bug, found by Jim Paris
4           and reverted it, since it was already fixed by Raphael ;-)
5         * doc/knownbugs.html: updated for RC2
6
7 2008-03-22 Raphael Neider <rneider AT web.de>
8
9         * src/SDCCicode.c (getPtrType): avoid unnecessary extra assignments
10           for PIC16 targets
11
12 2008-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
13
14         * src/mcs51/gen.c (adjustArithmeticResult): fixed bug 1839299
15         * support/regression/tests/bug1839277.c: added related testBug1839299
16
17 2008-03-21 Maarten Brock <sourceforge.brock AT dse.nl>
18
19         * src/ds390/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign),
20         * src/mcs51/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign):
21           fixed bug 1839277
22         * src/mcs51/gen.c: throughout only output hex constants
23         * src/SDCCicode.c (getPtrType, geniCodeCast): fixed code size regression
24         * support/regression/tests/bug1839277.c: new, added
25
26 2008-03-21 Philipp Klaus Krause <pkk AT spth.de>
27
28         * src/z80/ralloc.c (callFuncByName):
29           Used // instead of /**/ to fix compilation warning about nested comments.
30
31 2008-03-20 Maarten Brock <sourceforge.brock AT dse.nl>
32
33         * src/SDCCsymt.c (comparePtrType): fixed bug 1921073
34         * support/regression/tests/bug1921073.c: new, added
35
36 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
37
38         * src/z80/SDCCpeeph.c.c (callFuncByName):
39           Commented function parameters.
40
41 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
42
43         * src/z80/ralloc.c (packRegsForAccUse2):
44           disabled a broken accumulator packing optimization (fixed #1292721).
45         * support/regression/tests/bug-1292721: Regression test for #1292721.
46
47 2008-03-16 Raphael Neider <rneider AT web.de>
48
49         * src/pic/gen.c (SetIrp,genNearPointerGet,genNearPointerSet):
50           fixed code bloat regression using a variant of patch #1915618
51
52 2008-03-16 Borut Razem <borut.razem AT siol.net>
53
54         * support/scripts/sdcc.nsi: added section debugging macros, added SDCC
55           icon, changed startup menu for release distribution, code cleaning,
56           create url files instead links in startup menu
57
58 2008-03-16 Maarten Brock <sourceforge.brock AT dse.nl>
59
60         * src/SDCCcse.c (algebraicOpts): fixed bug 1579949
61         * support/regression/tests/bug1579949.c: new, added
62
63 2008-03-14 Paul Stoffregen <paul AT pjrc.com>
64
65         * device/lib/printf_fast.c: fixed bug 1255403
66
67 2008-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
68
69         * doc/sdccman.lyx: enhanced paragraph about bankswitching for mcs51
70         * src/cdbFile.c (cdbWriteBasicSymbol): fixed bug 1909409 for locals
71
72 2008-03-14 Borut Razem <borut.razem AT siol.net>
73
74         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated link-xx and aslink
75           command line options
76         * as/link/hc08/lkmain.c: converted tabs to spaces so that the usage
77           is correctly displayed
78         * as/link/z80/lkmain.c: usage line commented out
79
80 2008-03-13 Borut Razem <borut.razem AT siol.net>
81
82         * doc/sdccman.lyx: corrected to be able to convert to PDF,
83           updated the list pf supported pic14 devices
84
85 2008-03-12 Maarten Brock <sourceforge.brock AT dse.nl>
86
87         * doc/sdccman.lyx: added paragraph about bankswitching for mcs51
88
89 2008-03-12 Borut Razem <borut.razem AT siol.net>
90
91         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated command line options,
92           fixed documentation request #1718191
93         * as/hc80/asmain.c, as/mcs51/asmain.c: added option -c to usage
94         * doc/sdccman.lyx: added description of --no-std-crt0 gbz80
95           command line option
96
97 2008-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
98
99         * src/SDCCast.c (isConformingBody): fixed bug 1505811, thanks Robert Larice
100         * support/regression/tests/bug1505811.c: new, added
101
102 2008-03-09 Raphael Neider <rneider AT web.de>
103
104         * device/include/pic16/pic18f2620.h,
105         * device/include/pic16/pic18f4620.h,
106         * device/lib/pic16/libdev/pic18f2620.c,
107         * device/lib/pic16/libdev/pic18f4525.c,
108         * device/lib/pic16/libdev/pic18f4620.c: merged 18f2525/2620/4525/4620
109           family to consistently use pic18f4620.[ch], fixes #1832562
110
111 2008-03-09 Borut Razem <borut.razem AT siol.net>
112
113         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
114           changed sdcc version to 2.8.0
115         * knownbugs.html: regenerated
116         * support/scripts/gen_known_bugs.pl: added number of open bugs
117
118 2008-03-09 Raphael Neider <rneider AT web.de>
119
120         * src/pic16/gen.c (pic16_mov2w_volatile): NEW, read volatile operands,
121           (genOr): read volatile operand even if the result is known,
122           closes #1511838
123           (genOr,genXor): removed unused legacy code,
124           (genDummyRead): use pic16_mov2w_volatile()
125
126 2008-03-08 Borut Razem <borut.razem AT siol.net>
127
128         * src/SDCCglue.c: fixed bug #1864582: multiple definition of char
129           cons w. --model-large
130         * support/regression/staticinit.c: added regression test for bug
131           #1864582
132
133 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
134
135         * src/ds390/gen.c (pushSide, genPcall),
136         * src/hc08/gen.c (pushSide, genPcall): synchronized with mcs51
137         * src/mcs51/gen.c: cosmetic changes
138         * support/regression/fwk/include/testfwk.h: added macro reentrant
139         * support/regression/tests/bug1908493.c: new, added
140
141 2008-03-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
142
143         * src/SDCCdebug.c:, as/link/lkaomf51.c: Fixed bug 1909409: Pdata in OMF file
144
145 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
146
147         * src/mcs51/gen.c (pushSide, genPcall): fixed bug 1908493
148         * src/SDCCmain.c (preProcess): removed -DSDCC_PARMS_IN_BANK1 because it is
149           already set in ds390/main.c and mcs51/main.c
150
151 2008-03-07 Raphael Neider <rneider AT web.de>
152
153         * src/regression/init0.c: new test for initialized arrays of function
154           pointers
155         * src/regression/Makefile: made a bit more flexible, added init0.c
156         * src/pic/glue.c (emitIvals): hacky fix for initializing from function
157           pointers, closes #1427663
158
159 2008-03-05 Borut Razem <borut.razem AT siol.net>
160
161         * dos/sdccman.lyx: docummented predefined macros SDCC_REVISION,
162           SDCC_PARMS_IN_BANK1, SDCC_FLOAT_REENT and SDCC_INT_LONG_REENT
163
164 2008-03-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
165
166         * support/librarian/sdcclib.c:Added feature request 1908061:
167           Synchronise sdcclib commands with ar.
168
169 2008-03-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
170
171         * src/SDCCmain.c: added predefined macros SDCC_REVISION (RFE #1907229),
172           and (depending on corresponding compiler option) SDCC_PARMS_IN_BANK1,
173           SDCC_FLOAT_REENT, SDCC_INT_LONG_REENT
174         * device/include/mcs51/compiler.h: removed umlauts, added double
175           underscore
176
177 2008-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
178
179         * src/SDCCptropt.c (ptrPseudoSymConvert): fixed bug 1536762
180         * support/regression/tests/bug1536762.c: new, added
181         * src/SDCCutil.c,
182         * src/SDCCutil.h: added getBuildDate()
183         * src/SDCCmain.c (printVersionInfo),
184         * src/SDCCglue.c (initialComments): use getBuildDate() instead of
185           __DATE__
186         * src/*/ralloc.c: removed IS_OP_RUONLY macro
187         * src/ds390/ralloc.c (packRegisters),
188         * src/mcs51/ralloc.c (packRegisters),
189         * src/z80/ralloc.c (packRegisters): applied fix for bug 1618050, thanks
190           Robert Larice
191         * support/regression/tests/bug1618050.c: new, added
192         * src/SDCCsymt.h: fixed typo in DECLSPEC2TXT
193         * support/regression/fwk/include/testfwk.h,
194         * support/regression/tests/bug1838000.c: moved _AUTOMEM and _STATMEM to
195           testfwk.h
196
197 2008-03-04 Raphael Neider <rneider AT web.de>
198
199         * src/pic/gen.c: removed unused prototypes, prevent internal errors
200           on accessing OP_SYM_TYPE(op)
201         * src/pic/gen.h: removed unused prototype of genMinusDec()
202         * src/pic/genarith.c (genMinus): cosmetic changes, rewritten to
203           fix #1876953 (invalid subtraction code), removed unused code
204
205 2008-03-03 Raphael Neider <rneider AT web.de>
206
207         * src/pic/gen.c,
208         * src/pic/gen.h,
209         * src/pic/genarith.c,
210         * src/pic/ralloc.c,
211         * src/pic/ralloc.h: removed AOP_R0, AOP_R1, AOP_DPTR, AOP_DPTR2,
212           AOP_ACC, and *_IDX and adjusted code, removed unused legacy code
213
214 2008-03-03 Raphael Neider <rneider AT web.de>
215
216         * src/pic/device.c (find_device): search user-specified paths first
217           for pic14devices.txt, fixes #1900827
218
219 2008-03-02 Borut Razem <borut.razem AT siol.net>
220
221         * support/scripts/sdcc.nsi: fixed bug in IsNT, LogicLib-isation of
222           AddToPath and RemoveFromPath
223
224 2008-03-01 Borut Razem <borut.razem AT siol.net>
225
226         * support/scripts/sdcc.nsi: reverted MULTIUSER page since it didn't
227           work correctly, added debugging support if -DSDCC.DEBUG command line
228           option is defined
229
230 2008-02-28 Borut Razem <borut.razem AT siol.net>
231
232         * doc/sdccman.lyx: cosmetic changes
233
234 2008-02-28 Maarten Brock <sourceforge.brock AT dse.nl>
235
236         * src/mcs51/ralloc.c (fillGaps): fixed bug 1839671
237         * doc/sdccman.lyx: fixed unmeant removal of spaces
238
239 2008-02-27 Borut Razem <borut.razem AT siol.net>
240
241         * support/scripts/sdcc.nsi: corrected installation directory for
242           current user installation mode
243         * doc/README.txt: added Philipp Klaus Krause to the developers list
244
245 2008-02-27 Maarten Brock <sourceforge.brock AT dse.nl>
246
247         * src/mcs51/gen.c (genUnpackBits): don't generate ifxJump, instead
248           return ifx condition
249           (genNearPointerGet, genPagedPointerGet, genFarPointerGet,
250           genCodePointerGet, genGenPointerGet): cleanup aop before generating
251             ifxJump to fix bug 1838000
252         * src/SDCCsymt.c (aggregateToPointer): fix problem for xstack
253         * support/regression/tests/bug1838000.c: new, added
254         * device/include/mcs51/cc1110.h: new, added, thanks to Pravin Angolkar
255
256 2008-02-26 Borut Razem <borut.razem AT siol.net>
257
258         * src/SDCCast.c, doc/sdccman.lyx: fixed RFE #1901171: inerger promotion
259           of casted varargs
260         * support/scripts/sdcc.nsi: added MULTIUSER page,
261           NSIS upgraded to version 2.35
262
263 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
264
265         * src/mcs51/ralloc.c (isSpiltOnStack): fixed bug 1565152
266         * support/regression/tests/bug1565152.c: new, added
267
268 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
269
270         * src/mcs51/gen.c (genPagedPointerSet): fixed bug 1670148
271         * support/regression/ports/mcs51-xstack-auto/spec.mk: added expf.c
272         * support/regression/tests/bug1670148.c: new, added
273
274 2008-02-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
275
276         * device/include/mcs51/at89c51ed2.h: fixed bug 1901469.
277
278 2008-02-24 Borut Razem <borut.razem AT siol.net>
279
280         * src/SDCCast.c, src/SDCCast.h: fixed bug #1874922: explicit typecast
281           is ineffective for unsigned char parameter
282
283 2008-02-24 Maarten Brock <sourceforge.brock AT dse.nl>
284
285         * src/SDCCast.c (expandInlineFuncs): fixed bug 1875869
286         * src/SDCCglue.c (printIvalBitFields): fixed bug 1806631
287         * support/regression/tests/bitopcse.c: removed hc08 exception, see testfwk.h
288         * support/Util/MySystem.c (my_system): output errorcode when verbose
289
290 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
291
292         * src/z80/gen.c (genMult): Rewrote 8-bit multiplication by constant,
293           implements #1898231
294
295 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
296
297         * device/lib/z80/mul.s: Rewrote __muluchar_rrx_s, to improve 8-bit mult.,
298           implements #1896290
299
300 2008-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
301
302         * src/SDCCast.c (createIvalStruct): fixed bug 1466761
303
304 2008-02-21 Borut Razem <borut.razem AT siol.net>
305
306         * support/regression/Makefile.in,
307           support/regression/ports/ds390/spec.mk,
308           support/regression/ports/hc08/spec.mk,
309           support/regression/ports/mcs51-common/spec.mk,
310           support/regression/ports/pic14/spec.mk,
311           support/regression/ports/pic16/spec.mk,
312           support/regression/ports/ucz80/spec.mk,
313           support/regression/ports/xa51/spec.mk:
314           added CFLAGS when compiling timeout
315
316 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
317
318         * support/regression/tests/bugs-1596270-1736867.c: Regression test for
319           #1596270, #1736867
320
321 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
322
323         * src/SDCClrange.c (findPrevUse): fixed bug 1888147
324         * support/regression/tests/bug1888147.c: new, added
325
326 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
327
328         * src/z80/gen.c: fixed bugs #1596270, #1736867
329
330 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
331
332         * src/z80/gen.c: fixed bug in register pair loading when swapping register
333           contents, mostly fixes #1596270
334
335 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
336
337         * src/z80/peeph.def,
338         * src/z80/peeph-z80.def: moved peephole that breaks gbz80 to z80-specific
339           peepholes, fixes #1806565
340
341 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
342
343         * src/SDCCpeeph.c (operandBaseName): added check for @Ri
344         * src/mcs51/peeph.def (rule 177.c): added operandsNotRelated(%1 %3)
345           fixes bug 1739475, thanks Robert Larice
346           (rule 271): new, added
347
348 2008-02-18 Borut Razem <borut.razem AT siol.net>
349
350         * sim/ucsim/s51.src/Makefile.in: fixed error made in previous commit
351
352 2008-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
353
354         * src/SDCCmain.c (linkEdit): emit -z when using --debug for z80
355
356 2008-02-17 Raphael Neider <rneider AT web.de>
357
358         * src/pic16/genarith.c,
359         * src/pic16/gen.c,
360         * src/pic16/gen.h,
361         * src/pic16/genutils.c: removed unused legacy code,
362           removed unused fields from struct asmop and struct _G
363
364 2008-02-17 Raphael Neider <rneider AT web.de>
365
366         * src/pic16/gen.c (AccRsh): cosmetic changes,
367           (shiftR1Left2ResultSigned,shiftR1Left2Result,shiftL1Left2Result,
368           genRightShiftLiteral): fixed to work with SFRs as result by
369           assigning only once to result,
370           removed a lot of unused/excluded code fragments
371
372 2008-02-17 Raphael Neider <rneider AT web.de>
373
374         * device/include/pic/pic16f88.h,
375         * device/include/pic/pic16f886.h,
376         * device/include/pic/pic16f887.h: added TRISA6 and TRISA7
377
378 2008-02-17 Borut Razem <borut.razem AT siol.net>
379
380         * src/z80/peeph.def: applied patch
381           #1893626: Optimize tail calls on Z80, thanks to Philipp Krause
382         * src/z80/gen.c, src/z80/peeph.def: applied patch
383           #1893510: Improve logical left shift on Z80, thanks to Philipp Krause
384         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
385           sim/ucsim/s51.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
386           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
387           sim/ucsim/main_in.mk: renamed libutil.a to libucsimutil.a in order to
388           enable compilation on Mac OS X 10.5 (Leopard) and XCode v3.0
389
390 2008-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
391
392         * as/link/mcs51/aslink.dsp: removed SDK define
393         * as/link/z80/clean.mk: brought in sync with other ports
394         * as/link/z80/lklibr.c (SdccLib, fndsym): handle the dflag here too
395         * as/hc08/Makefile.bcc,
396         * as/mcs51/Makefile.bcc,
397         * as/z80/Makefile.bcc: noice.c was moved to as/asxxsrc/
398         * src/z80/main.c (_setValues): use the now capitalized -Z,
399           (z80_port, gbz80_port): generate debug information when asked
400
401 2008-02-16 Borut Razem <borut.razem AT siol.net>
402
403         * as/z80/asmain.c, as/z80/asm.h, as/z80/asdata.c,
404           as/link/z80/lkmain.c, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
405           as/z80/Makefile.in. as/z80/Makefile.bcc:
406           applied patch #1893393: patch for as-z80 and link-z80 to generate
407           cdb, thanks to Armin Diehl
408         * as/*/asnoice.c, as/hc08/as_hc08.dsp, as/hc08/Makefile.in,
409           as/mcs51/asx8051.dsp, as/mcs51/Makefile.in:
410           asnoice.c moved to as/asxxsrc/asnoice.c
411         * src/z80/peeph-gbz80.def: applied patch
412           #1880235: Z80 return peephole, thanks to Philipp Krause
413
414 2008-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
415
416         * .version,
417         * doc/sdccman.lyx: bumped version to 2.7.5
418         * src/SDCCsymt.c (compareType, comparePtrType): fixed bug 1281583
419
420 2008-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
421
422         * device/include/pic16/stdlib.h,
423         * device/lib/pic16/libc/stdlib/ltoa.c,
424         * device/lib/pic16/libc/stdio/vfprintf.c: ascii strings are char*
425
426 2008-02-13 Borut Razem <borut.razem AT siol.net>
427
428         * src/SDCCmain.c, src/SDCCglue.c: fixed --c1mode
429         * src/pic16/glue.c, src/SDCCast.c, src/SDCCast.h, src/SDCCBBlock.c,
430           src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c, src/SDCCloop.c,
431           src/SDCCopt.c,  src/SDCCval.c:
432           fixed bug #1890273: SDCC Warning 154 shows wrong filename
433
434 2008-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
435
436         * src/SDCCsymt.c (compareType): fixed bug 1309013
437
438 2008-02-09 Borut Razem <borut.razem AT siol.net>
439
440         * src/SDCCval.c, src/SDCCval.h:
441           code cleaning, added function constChrVal()
442         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c, src/SDCCast.c, src/SDCC.y:
443           call constChrVal() instead constVal()
444
445 2008-02-01 Maarten Brock <sourceforge.brock AT dse.nl>
446
447         * src/SDCCast.c (resolveSymbols): added reentrancy check for parameters
448           of function pointer
449         * src/SDCCerr.h,
450         * src/SDCCerr.c: changed warning W_NONRENT_ARGS to error E_NONRENT_ARGS
451         * support/regression/tests/absolute.c: added TestStruct TestVar (see also
452           bug 1859853)
453
454 2008-02-01 Raphael Neider <rneider AT web.de>
455
456         * device/include/pic/pic16f886.h,
457         * device/include/pic/pic16f887.h: added RA6 and RA7
458
459 2008-01-24 Raphael Neider <rneider AT web.de>
460
461         * device/include/pic/pic16f88.h: added RA6 and RA7
462         * device/lib/pic/libdev/disabled_pic16f886.c,
463         * device/lib/pic/libdev/disabled_pic16f887.c: renamed and enabled
464
465         * src/pic16/devices.inc,
466         * device/include/pic16/pic18f2423.h,
467         * device/include/pic16/pic18f2523.h,
468         * device/include/pic16/pic18fregs.h,
469         * device/lib/pic16/pics.all
470         * device/lib/pic16/libdev/pic18f2423.c,
471         * device/lib/pic16/libdev/pic18f2523.c: added 18f2423 and 18f2523
472         * device/lib/pic16/libio/i2c.ignore,
473         * device/lib/pic16/libio/usart.ignore,
474         * device/lib/pic16/libio/adc.ignore: ignore new devices
475
476 2008-01-23 Maarten Brock <sourceforge.brock AT dse.nl>
477
478         * src/SDCCast.c (createRMW): fixed bug 1582651
479
480 2008-01-20 Borut Razem <borut.razem AT siol.net>
481
482         * src/SDCCcse.c: partially fixed enhancement request
483           #1793872 - multiply by -1 not collapsed
484         * support/regression/tests/arithcsi.c: added regression test
485
486 2008-01-19 Maarten Brock <sourceforge.brock AT dse.nl>
487
488         * as/mcs51/asx8051.dsp: removed define SDK
489         * as/mcs51/i51mch.c (machine): fixed bug 1865114
490         * device/include/asm/ds390/features.h: fixed bug with ds390 & stack-auto
491         * as/link/lklex.c,
492         * as/link/mcs51/lkmain.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
493           cosmetic changes, brought more in sync, changed old K&R to ANSI
494
495 2008-01-13 Borut Razem <borut.razem AT siol.net>
496
497         * support/scripts/sdcc.nsi: added Uninstall/reinstall page, ...
498         * src/SDCCicode.c: fixed bug #1870216 - Error 122: dividing by zero
499
500 2007-12-30 Borut Razem <borut.razem AT siol.net>
501
502         * src/pic16/gen.c: fixed implementation of bitwise operations for
503           pic16 target
504         * support/regression/tests/bitwise.c: added test cases
505
506 2007-12-29 Borut Razem <borut.razem AT siol.net>
507
508         * src/SDCCasm.[ch]: renamed from asm[ch], use dbuf_getline(), ...
509         * src/src.dsp, src/Makefile.bcc, src/Makefile.in, src/common.h,
510           src/SDCCglue.c, src/xa51/main.c: asm.[ch] renamed to SDCCasm.[ch]
511         * support/Util/dbuf_string.[ch]: added function dbuf_getline()
512         * src/ds390/gen.c, src/hc08/gen.c, src/mcs51/gen.c, src/pic16/gen.c,
513           src/pic/gen.c, src/z80/gen.c, src/xa51/gen.c, src/pic16/ralloc.c,
514           src/pic16/pcode.[ch]: added const qualifier
515         * as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
516           as/mcs51/Makefile.bcc, as/mcs51/Makefile.in, as/mcs51/asx8051.dsp,
517           as/z80/Makefile.bcc, as/z80/Makefile.in, as/z80/as_gbz80.dsp,
518           as/z80/as_z80.dsp: added dbuf.[ch] and dbuf_string[ch] to project
519         * as/asxxsrc/aslex.c: use dbuf_getline()
520         * as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/asm.h, as/hc08/m08adr.c,
521           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/asm.h,
522           as/mcs51/i51adr.c, as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c,
523           as/z80/asm.h, as/z80/z80adr.c:
524           changed type of ib and ip to const char *
525
526 2007-12-28 Borut Razem <borut.razem AT siol.net>
527
528         * as/asxxsrc/aslex.c: moved from as/mcs51/aslex.c;
529           introduced (readlin) - long lines are turuncated
530         * as/hc08/as_hc08.dsp, as/mcs51/asx8051.dsp, as/z80/as_gbz80.dsp,
531           as/z80/as_z80.dsp, as/hc08/Makefile.in, as/mcs51/Makefile.in,
532           as/z80/Makefile.in: moved aslex.c to asxxsrc
533         * as/hc08/aslex.c, as/z80/aslex.c: deleted
534         * as/hc08/asmain.c, as/mcs51/asmain.c:
535           added missing initialization of a_addr field
536         * support/regression/tests/long_asm_line.c: added regtest for long
537           assembler line
538
539 2007-12-22 Borut Razem <borut.razem AT siol.net>
540
541         * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
542
543 2007-12-20 Maarten Brock <sourceforge.brock AT dse.nl>
544
545         * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang
546
547 2007-12-16 Borut Razem <borut.razem AT siol.net>
548
549         * device/include/pic16/stdbool.h: removed, since already exists in
550          device/include/; this also fixes bitopcse.c regression test for pic16
551          target
552         * support/regression/fwk/inclusw/testfwk.h: added macro ASSERT_FAILED
553         * src/pic16/glue.c: fixed bug #1851855: generic static pointer
554           dereference doesn't work; covered by regression test bug1399290
555
556 2007-12-05 Borut Razem <borut.razem AT siol.net>
557
558         * doc/sdccman.lyx: fixed bug #1844509 - Correction to Manual 4.6.9
559           Adding new PIC16
560
561 2007-12-01 Borut Razem <borut.razem AT siol.net>
562
563         * sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/mem.cc:
564           corrected handling of the highest_valid_address
565
566 2007-11-17 Raphael Neider <rneider AT web.de>
567
568         * src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
569         * src/pic/glue.c (picglue): emit .file if --debug is given
570
571 2007-11-17 Raphael Neider <rneider AT web.de>
572
573         * src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
574         care when left or right operand resides in result, fixes #1830220
575
576 2007-11-17 Borut Razem <borut.razem AT siol.net>
577
578         * src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
579           #983491 - "Merge duplicate strings function is ineffective"
580         * support/regression/tests/bug-983491.c: regtest disabled
581         * as/asxxsrc: created
582           as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
583           as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
584           as/z80/assym.c, as/hc08/asstore.c, as/mcs51/asstore.c: deleted
585           as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
586           as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
587           as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
588           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
589           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
590           as/link/z80/linkz80.dsp, as/mcs51/Makefile.bcc, as/mcs51/Makefile.in,
591           as/mcs51/asm.h, as/mcs51/asx8051.dsp, as/z80/Makefile.bcc,
592           as/z80/Makefile.in, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
593           as/z80/Makefile.as_hc08, as/mcs51/Makefile.asx8051: modified
594           created as/asxxsrc directory, assym.c and strcpi.c moved into it
595
596 2007-11-15 Maarten Brock <sourceforge.brock AT dse.nl>
597
598         * device/include/stdarg.h: added and removed some casts
599         * src/SDCCsymt.c (compareType): Fully check types between generic and
600           non-generic pointers, also accept ptr-ptr to void-ptr assignments
601
602 2007-11-13 Borut Razem <borut.razem AT siol.net>
603
604         * support/regression/tests/bug-1817005.c:
605           added regtest for bug #1817005 - as-z80 chokes on long labels
606
607 2007-11-12 Borut Razem <borut.razem AT siol.net>
608
609         * as\z80\asmain.c, as\z80\asm.h, as\z80\assym.c, as\z80\asdata.c,
610           as\z80\asout.c, as\z80\aslist.c:
611           fixed bug #1817005 - as-z80 chokes on long labels
612
613 2007-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
614
615         * as/hc08/asmain.c,
616         * as/z80/asmain.c: cosmetic changes
617         * as/hc08/alloc.h,
618         * as/mcs51/alloc.h,
619         * as/z80/alloc.h: removed
620         * as/hc08/assym.c,
621         * as/mcs51/assym.c: replaced alloc.h with stdlib.h
622         * as/link/aslink.h: added LKDIRSEP and, LKDIRSEPSTR
623         * as/link/hc08/Makefile.in,
624         * as/link/mcs51/Makefile.in,
625         * as/link/z80/Makefile.in: added -DUNIX to CFLAGS
626         * as/link/lklex.c,
627         * as/link/mcs51/lkarea.c,
628         * as/link/mcs51/lkmain.c: cosmetic changes
629         * as/link/hc08/lklibr.c,
630         * as/link/z80/lklibr.c,
631         * as/link/mcs51/lklibr.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
632           used cygwin_conv_to_full_posix_path,
633           added warnings, cosmetic changes, brought more in sync
634           changed old K&R into ANSI function declarations
635         * as/link/z80/lklibr.c (loadAdb): added
636         * as/link/z80/lkmain.c: removed -- option from usage text
637
638 2007-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
639
640         * src/mcs51/gen.c (outBitC): optimized for no result
641
642 2007-10-31 Borut Razem <borut.razem AT siol.net>
643
644         * src/SDCCsymt.c: fixed (hopeful properly) bug
645           #1805702 - order of extern matters
646         * support/regression/tests/bug-1805702.c: enabled regtest for bug
647           #1805702
648
649 2007-10-29 Borut Razem <borut.razem AT siol.net>
650
651         * src/SDCCsymt.c: reverted bad fixed of bug #1805702
652           - order of extern matters
653         * support/regression/tests/bug-1805702.c: disabled regtest for bug
654           #1805702
655
656 2007-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
657
658         * src/ds390/peeph.def: replaced 24bitModeAndPortDS390 by
659           24bitMode, portIsDS390
660         * src/mcs51/gen.c (genOr): optimized for RFE 1750727
661         * src/SDCCpeeph.c (flat24bitModeAndPortDS390): removed
662           (notVolatileVariable): also check sloc names,
663           (callFuncByName): moved ftab[] out of function and sorted it by use
664
665 2007-10-28 Maarten Brock <sourceforge.brock AT dse.nl>
666
667         * device/include/stdarg.h: fixed bug in va_start macro for --xstack
668         * src/hc08/gen.c (aopForRemat): aop->aopu.aop_immd.from_cast_remat not set,
669           aop->aopu.aop_immd.aop_immd2 not filled with (generic) pointer type
670         * src/SDCCicode.c (geniCodeCast): fixed bug 880197
671         * support/regression/tests/bug-880197.c: new, added
672
673 2007-10-28 Borut Razem <borut.razem AT siol.net>
674
675         * support/regression/Makefile.in,
676           support/regression/ports/mcs51-large/spec.mk,
677           support/regression/ports/mcs51-xstack-auto/spec.mk,
678           support/regression/ports/mcs51-stack-auto/spec.mk,
679           support/regression/ports/mcs51-medium/spec.mk,
680           support/regression/ports/mcs51-common/spec.mk,
681           support/regression/ports/mcs51-common/*,
682           support/regression/ports/mcs51-small/*:
683           mcs51 renamed to mcs51-common, created mcs51-small
684         * src/SDCCsymt.c: fixed bug #1805702 - order of extern matters
685         * support/regression/tests/bug-1805702.c: added regtest for bug
686           #1805702
687
688 2007-10-26 Maarten Brock <sourceforge.brock AT dse.nl>
689
690         * src/mcs51/peeph.def: moved rules 257.x to 253.x and re-enabled 253.b,
691           added new rules 265 - 270
692         * support/regression/tests/bug1721024.c:new, added
693         * support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
694           introduced new test-mcs51 to run all mcs51 tests
695
696 2007-10-25 Maarten Brock <sourceforge.brock AT dse.nl>
697
698         * support/regression/tests/bug1816470.c: new, added
699
700 2007-10-21 Maarten Brock <sourceforge.brock AT dse.nl>
701
702         * src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
703           propagate for *,+,- with float, fixed bug 1816470
704           (decorateType): cast to resultTypeProp instead of resultType
705
706 2007-10-19 Borut Razem <borut.razem AT siol.net>
707
708         * src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
709           function is ineffective" for pic16 tareget
710         * support/scripts/listerr.c: corrected include path
711         * device/lib/_itoa.c: fixed bug #1806402 - _itoa and _uitoa leak to
712           adjacent memory
713
714 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
715
716         * support/regression/tests/using.c: new, added
717         * support/regression/tests/vaargs.c: fixed and enabled test
718
719 2007-10-18 Borut Razem <borut.razem AT siol.net>
720
721         * src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
722           is ineffective
723         * support/regression/tests/bug-983491.c: added regtest for bug #983491
724
725 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
726
727         * doc/sdccman.lyx: documented option --Werror
728         * src/SDCCsymt.c (checkFunction): fixed bug 1815418 by setting
729           RegBankUsed[] earlier
730
731 2007-10-14 Maarten Brock <sourceforge.brock AT dse.nl>
732
733         * device/include/mcs51/p89lpc938.h: new, added, thanks Kyle Guinn
734         * src/pic/glue.c,
735         * src/SDCCval.c,
736         * src/SDCCast.c,
737         * src/SDCCast.h: replaced AST_LIT_VALUE with AST_FLOAT_VALUE and
738           AST_ULONG_VALUE
739         * src/SDCCast.c (decorateType): improved optimization of tri-op
740         * src/SDCCerr.c (vwerror, setWError),
741         * src/SDCCerr.h,
742         * src/SDCCmain.c (parseCmdLine): added option --Werror to treat all
743           warnings as errors, thanks Stas Sergeev for PATCH 1813211
744
745 2007-10-13 Maarten Brock <sourceforge.brock AT dse.nl>
746
747         * src/mcs51/gen.c (leftRightUseAcc): use macro IS_OP_ACCUSE
748         * src/SDCCast.c (decorateType): optimize bit=cond?1:0, RFE 1738430
749         * support/regression/tests/bug-223113.c,
750         * support/regression/tests/bug-426632.c,
751         * support/regression/tests/bug-468811.c,
752         * support/regression/tests/bug-477835.c,
753         * support/regression/tests/bug-478094.c,
754         * support/regression/tests/bug-499644.c,
755         * support/regression/tests/bug-524209.c,
756         * support/regression/tests/bug-524211.c,
757         * support/regression/tests/packcast.c,
758         * support/regression/tests/structidx.c: added empty tests
759         * support/regression/tests/bug-607243.c: enabled test
760
761 2007-10-06 Borut Razem <borut.razem AT siol.net>
762
763         * .version, doc/sdccman.lyx: bumped version to 2.7.4 to indicate the full
764            support of universal binaries on Mac OS X
765
766 2007-10-02 Borut Razem <borut.razem AT siol.net>
767
768         * src/SDCCval.h: unified double2ul macro for all platforms
769         * src/SDCCval.c: fixed bug #1777758 - applied Maarten's patch
770         * support/regression/tests/bitwise.c: added regtest for bug #1777758
771
772 2007-09-30 Borut Razem <borut.razem AT siol.net>
773
774         * src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
775           platforms
776         * sdcc_vc_in.h: enabled warnings
777         * src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
778           unsigned type, result still unsigned
779         * src/mcs51/peep.c: fixed gcc warning: suggest parentheses around && within ||
780
781 2007-09-28 Raphael Neider <rneider AT web.de>
782
783         * src/pic/device.c (find_device): prevent buffer underflow error
784         * src/pic/pcoderegs.c (OptimizeRegUsage): avoid dereferencing
785           the just destroyed list entry
786
787 2007-09-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
788
789         * doc/sdccman.lyx: there's a dedicated wiki page for cmake and sdcc, thanks
790           Alexander Neundorf
791
792 2007-09-18 Borut Razem <borut.razem AT siol.net>
793
794         * src/SDCCval.c: fixed MSVC warning C4146: unary minus operator
795          applied to unsigned type, result still unsigned
796
797 2007-09-17 Borut Razem <borut.razem AT siol.net>
798
799         * src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c,
800           src/SDCCicode.c, src/SDCCopt.c, src/SDCCsymt.c, src/SDCCval.c,
801           src/SDCCval.h, src/hc08/gen.c, src/avr/gen.c, src/ds390/gen.c,
802           src/mcs51/gen.c, src/pic/gen.c, src/pic/genarith.c, src/pic/glue.c,
803           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/genarith.c,
804           src/pic16/genutils.c, src/pic16/glue.c, src/pic16/main.c,
805           src/z80/gen.c, src/z80/ralloc.c:
806           fixed bug #1739860 - sdcc does not work correctly on some platforms
807           (not finished)
808           introduced and used ulFromVal(), double2ul(), used strtod() instead sscanf()
809
810 2007-09-17 Raphael Neider <rneider AT web.de>
811
812         * src/pic16/device.c: reverted to previous version
813         * device/lib/pic16/Makefile.common.in: quieten gpasm via -Wa,-q
814
815 2007-09-16 Raphael Neider <rneider AT web.de>
816
817         * src/pic16/device.c (pic16_dump_usection): do not reserve 0 bytes,
818           as this raises a ton of gpasm warnings, just emit a second label
819         * src/pic16/devices.inc,
820         * device/lib/pic16/pics.all,
821         * device/lib/pic16/libdev/pic18f2585.c,
822         * device/lib/pic16/libdev/pic18f2680.c,
823         * device/lib/pic16/libdev/pic18f2682.c,
824         * device/lib/pic16/libdev/pic18f2685.c,
825         * device/lib/pic16/libdev/pic18f4585.c,
826         * device/lib/pic16/libdev/pic18f4680.c,
827         * device/lib/pic16/libdev/pic18f4682.c,
828         * device/lib/pic16/libdev/pic18f4685.c,
829         * device/include/pic16/pic18f2585.h,
830         * device/include/pic16/pic18f2680.h,
831         * device/include/pic16/pic18f2682.h,
832         * device/include/pic16/pic18f2685.h,
833         * device/include/pic16/pic18f4585.h,
834         * device/include/pic16/pic18f4680.h,
835         * device/include/pic16/pic18f4682.h,
836         * device/include/pic16/pic18f4685.h,
837         * device/include/pic16/pic18fregs.h: added 18f2585, 18f2680,
838           18f2682, 18f2685, 18f4585, 18f4680, 18f4682, 18f4685,
839           patch contributed by Anton Strobl, applied with changes
840
841 2007-09-16 Raphael Neider <rneider AT web.de>
842
843         * device/include/pic16/pic18f2431.h,
844         * device/include/pic16/pic18f25j10.h,
845         * device/include/pic16/pic18f4431.h,
846         * device/include/pic16/pic18f45j10.h: adopted common include style
847         * device/include/pic16/pic18f1320.h,
848         * device/include/pic16/pic18f2320.h,
849         * device/include/pic16/pic18f2525.h,
850         * device/include/pic16/pic18f4320.h,
851         * device/include/pic16/pic18f4525.h: NEW, just include proper .h file
852         * device/include/pic16/pic18fregs.h: prepared for automatic include
853           file selection by having DEVICE.h for every DEVICE
854         * device/lib/pic16/libdev/pic18f2320.c,
855         * device/lib/pic16/libdev/pic18f4320.c: just include proper .c file
856
857         * device/lib/pic16/configure.in,
858         * device/lib/pic16/configure: use rm -rf instead of rmdir
859         * device/lib/pic16/Makefile.in: use RMDIR to remove build directories
860         * device/lib/pic16/libc/stdlib/free.c: avoid warning on pointer cast
861
862 2007-09-09 Borut Razem <borut.razem AT siol.net>
863
864         * src/SDCCmain.c, src/SDCCutil.c: print newline after printVersionInfo(),
865           distingush between i386 and ppc Mac OS X versions
866
867 2007-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
868
869         * src/mcs51/gen.c (genReceive): fixed bug 1788177
870         * support/regression/tests/bug1788177.c: new, added
871
872 2007-09-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
873
874         * doc/sdccman.lyx: mentioned d52 and cmake, customizing startup code
875         * device/include/mcs51/lint.h added keyword __naked
876
877 2007-09-04 Maarten Brock <sourceforge.brock AT dse.nl>
878
879         * src/pic16/glue.c,
880         * src/pic/glue.c,
881         * src/SDCCmem.h: removed maxRegBank
882         * src/SDCCmem.c (allocVariables): removed maxRegBank and moved setting
883           RegBankUsed[] to checkFunction() in SDCCsymt.c to fix bug 1759839
884         * src/SDCCsymt.c (checkFunction): set RegBankUsed[] here
885         * src/mcs51/peep.c (isCallerSaveFunc, termScanAtFunc): changed function
886           name and behaviour to handle banked functions
887           (scan4op): and use it to fix bug 1786213
888
889 2007-09-03 Raphael Neider <rneider AT web.de>
890
891         * device/include/pic16/pic18f248.h,
892         * device/include/pic16/pic18f258.h,
893         * device/include/pic16/pic18f448.h,
894         * device/lib/pic16/libdev/pic18f248.c,
895         * device/lib/pic16/libdev/pic18f258.c,
896         * device/lib/pic16/libdev/pic18f448.c: fixed TRISEbits,
897           added T0CONbits, fixes #1786891
898
899 2007-08-29 Maarten Brock <sourceforge.brock AT dse.nl>
900
901         * src/ds390/gen.c (genFarPointerSet),
902         * src/hc08/ralloc.c (packRegisters),
903         * src/mcs51/ralloc.c (packRegisters),
904         * src/SDCCcse.c (cseBBlock): check if result is a symbol first to fix
905           bug 1750318
906         * src/SDCCicode.h: POINTER_SET can be true for literals too
907         * support/regression/tests/bug1750318.c: new, added
908
909 2007-08-23 Borut Razem <borut.razem AT siol.net>
910
911         * debugger/mcs51/sdcdb.c: fixed compilation with older readline
912           library versions without the completition functionality
913
914 2007-08-22 Raphael Neider <rneider AT web.de>
915
916         * device/include/pic16/pic18f1220.h,
917         * device/lib/pic16/libdev/pic18f1220.c: applied patch #1776191
918
919 2007-08-12 Borut Razem <borut.razem AT siol.net>
920
921         * debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
922
923 2007-08-11 Borut Razem <borut.razem AT siol.net>
924
925         * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
926           src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
927           support/Util/SDCCerr.[ch] moved to src
928         * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
929           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
930           device/examples/ds390/tinitalk/tinitalk.dsp,
931           device/examples/serialcomm/windows/serialcomm.dsp,
932           support/librarian/librarian.dsp:
933           removed linking of unused odbc32.lib and odbccp32.lib
934         * support/scripts/winres.h:
935           added for compilation with Visual C++ 2005 Express Edition
936
937 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
938
939         * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
940           and CKCON1.
941
942 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
943
944         * sdccconf_in.h: update the endian test so that SPARC Solaris
945           does not throw syntax errors
946
947 2007-08-06 Borut Razem <borut.razem AT siol.net>
948
949         * doc/sdccman.lyx: removed two index entries which prevented the
950           generation of sdcc doc archive
951
952 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
953
954         * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
955           instead of lyx 1.5.0.
956
957 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
958
959         * device/include/hc08/mc68hc908apxx.h: new header contributed by
960           Lucas Loizaga, with minor modifications. Thanks!
961
962 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
963
964         * doc/sdccman.lyx: Documented --acall-ajmp and described new features
965           in sdcclib.
966
967 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
968
969         * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
970           src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
971           with acall/ajmp.
972
973 2007-07-22 Borut Razem <borut.razem AT siol.net>
974
975         * configure.in, configure: re-introduced .version
976         * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
977           the version reverted to 2.7.0
978
979 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
980
981         * configure.in,
982         * doc/sdccman.lyx: bumped version to 2.7.3
983         * device/include/mcs51/compiler.h: fixed elif->else
984         * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
985         * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
986           (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
987            enable accuse for bit operands
988         * src/SDCCmain.c (printVersionInfo),
989         * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
990           environment descriptor
991         * src/SDCCutil.h: added getBuildEnvironment
992         * src/SDCCglue.c (initialComments): use getBuildEnvironment
993         * support/regression/tests/bug1464657.c: enabled test test_Peephole251
994         * support/regression/tests/bug-408972.c: enabled test leftShiftLong
995         * support/regression/tests/bug1348008.c,
996         * support/regression/tests/bug1496419.c,
997         * support/regression/tests/bug1503067.c,
998         * support/regression/tests/preproc.c: added empty tests
999
1000 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
1001
1002         * support/regression/tests/bug1678803.c: new, added
1003
1004 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
1005
1006         * as/link/aslink.h,
1007         * as/link/hc08/lkihx.c,
1008         * as/link/hc08/lkrloc.c,
1009         * as/link/mcs51/lkihx.c,
1010         * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
1011           ihxExtendedLinearAddress
1012         * as/link/mcs51/lkrloc.c (relr),
1013         * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
1014           acall/ajmp, see bug 830513
1015
1016 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
1017
1018         * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
1019           (cseBBlock): remember aggr2ptr has been used
1020         * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
1021           (geniCodeAssign): fixed bug 868103
1022         * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
1023           added operandSize prototype
1024         * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
1025           (genDataPointerSet): use max of size of right and result,
1026           (gencjne): added parameter useCarry for optimization,
1027           (genCmpEq): use carry if appropriate,
1028           (genXor): check if operand already in carry
1029         * support/regression/tests/bug-868103.c: enabled test
1030
1031 2007-07-12 Raphael Neider <rneider AT web.de>
1032
1033         * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
1034
1035 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
1036
1037         * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
1038           from Robert Larice, thanks
1039         * support/regression/tests/bitopcse.c,
1040         * support/regression/tests/bitvars.c,
1041         * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
1042         * support/regression/tests/bug-927659.c: enabled test for z80
1043         * support/regression/tests/bug1738367.c: added extra tests by Frieder
1044         * support/regression/tests/bug1745717.c: new, added
1045         * support/regression/tests/literalop.c,
1046         * support/regression/tests/nullstring.c: removed storage definitions that
1047           are now in testfwk.h
1048
1049 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
1050
1051         * device/include/stdbool.h: do not define __bool_true_false_are_defined
1052           and bool for targets that do not fully support it.
1053         * support/regression/tests/bug1546986.c,
1054         * support/regression/tests/bug1723128.c,
1055         * support/regression/tests/bug1734654.c,
1056         * support/regression/tests/bug1738367.c,
1057         * support/regression/tests/constantRange.c: only use bool if allowed
1058
1059 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
1060
1061         * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
1062           Larice, also handle function pointers
1063         * support/regression/tests/bug1749275.c: new, added
1064
1065 2007-07-03 Borut Razem <borut.razem AT siol.net>
1066
1067         * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
1068           src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
1069           #1746528: SDCC should ignore ':' in inline assembler comments
1070         * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
1071
1072 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
1073
1074         * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
1075         * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
1076
1077 2007-06-29 Borut Razem <borut.razem AT siol.net>
1078
1079         * src/SDCCmain.c: fixed bug
1080           #1744746: SDCC #4867: broken option --xram-size
1081
1082 2007-06-28 Borut Razem <borut.razem AT siol.net>
1083
1084         * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
1085           find out the endianess of host machine for ucsim
1086
1087 2007-06-27 Borut Razem <borut.razem AT siol.net>
1088
1089         * support/regression/generate-cases.py: corrected the file name
1090           in warning
1091         * configure.in, configure, sdccconf_in.h: find out the endianess of
1092           host machine
1093         * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
1094           negative size
1095
1096 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
1097
1098         * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
1099
1100 2007-06-26 Borut Razem <borut.razem AT siol.net>
1101
1102         * support/regression/generate-cases.py: display warning if function
1103           list is empty; implemented more flexible rule for detection of
1104           testing functions, allowing return type 'void' in the same line as
1105           the function name in the function definition
1106         * support/regression/tests/bug-1654060.c: corrected test
1107         * support/librarian/sdcclib.c: fixed warning:
1108           format '%s' expects type 'char *', but argument 2 has type 'int'
1109
1110 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1111
1112         * support/librarian/sdcclib.c: Added feature Requests [1510635]
1113           Multiple infiles for sdcclib.
1114
1115 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1116
1117         * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
1118           bug 1731741
1119
1120 2007-06-18 Borut Razem <borut.razem AT siol.net>
1121
1122         * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
1123           how to handle comments, so they have to be removed by the
1124           preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
1125         * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
1126           src/pic16/main.c, src/pic/main.c, src/z80/main.c,
1127           support/Util/SDCCerr.c, support/Util/SDCCerr.h:
1128           table driven option hadling
1129
1130 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
1131
1132         * src/SDCCast.c (decorateType),
1133         * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
1134           iCode to ast level to fix bug 1738367
1135         * support/regression/tests/bug1738367.c: new, added
1136
1137 2007-06-15 Raphael Neider <rneider AT web.de>
1138
1139         * src/pic16/devices.inc,
1140         * device/lib/pic16/pics.all,
1141         * device/include/pic16/pic18fregs.h,
1142         * device/include/pic16/pic18f[24][45]20.h,
1143         * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
1144           18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
1145         * device/lib/pic16/Makefile.in: faster cleanup
1146
1147 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1148
1149         * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
1150
1151 2007-06-13 Raphael Neider <rneider AT web.de>
1152
1153         * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
1154
1155 2007-06-12 Raphael Neider <rneider AT web.de>
1156
1157         * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
1158           suppress bit defines if NO_BIT_DEFINES is #define'd
1159         * device/include/pic/pic*.h: recreated all headers to include
1160           conditional bit defines
1161         * device/include/pic/pic16f886.h,
1162         * device/include/pic/pic16f887.h: fixed based on newer .inc file
1163         * device/include/pic/recreate.sh: script to recreate the complete
1164           device library files based on the currently supported devices
1165
1166 2007-06-12 Borut Razem <borut.razem AT siol.net>
1167
1168         * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
1169           support/regression/Makefile.in, support/scripts/build.mak,
1170           support/scripts/Makefile.snapshot:
1171           use new svn URL scheme
1172         * doc/sdccman.lyx: SDCC Wiki moved to
1173           http://sdcc.wiki.sourceforge.net/
1174
1175 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1176
1177         * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
1178         * support/regression/tests/bug1734654.c: added
1179
1180 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
1181
1182         * src/SDCCast.c (decorateType): optimized '?' for equal operands
1183         * src/SDCCicode.c (geniCodeConditional): optimization for bit result
1184           with literal operands
1185
1186 2007-06-10 Borut Razem <borut.razem AT siol.net>
1187
1188         * as/link/z80/lklibr.c: fixed mingw build warning
1189           lklibr.c:575: warning: implicit declaration of function 'tolower'
1190         * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
1191           src/z80/main.c: move target specific options from src/SDCCmain.c
1192           to src/<target>/main.c
1193
1194 2007-06-09 Borut Razem <borut.razem AT siol.net>
1195
1196         * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
1197           removed unused swap_sense; removed outBitCLong, replaced with outBitC
1198         * support/regression/tests/bug-1294691.c: added
1199
1200 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
1201
1202         * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
1203           can also be static, fixes bug 1733438
1204         * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
1205           have absolute address too
1206           (computeType): added optimization for 'cond ? true : false'
1207         * support/regression/tests/absolute.c: added test for static absolute var
1208
1209 2007-06-08 Raphael Neider <rneider AT web.de>
1210
1211         * src/regression/Makefile: suppress parallel builds, allow easy
1212           switching between pic14/pic16 ports
1213         * src/regression/picregs.h: added pic14/16 header file switch
1214         * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
1215           inline.c,nestfor.c,string1.c}: include "picregs.h"
1216
1217 2007-06-07 Borut Razem <borut.razem AT siol.net>
1218
1219         * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
1220           permanent solution to suppress GCC 4.2.0 c++ warning:
1221           deprecated conversion from string constant to `char *'
1222           use 'const char *' where ever required
1223         * support/regression/generate-cases.py: implemented more flexible rule
1224           for detection of testing functions, allowing white-spaces surrounding
1225           the function name and the 'void' parameter.
1226         * support/regression/tests/constantRange.c,
1227           support/regression/tests/scott-compare3.c: fixed failing regression
1228           tests, uncovered by implementation of more flexible rule for detection
1229           of testing functions
1230
1231 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
1232
1233         * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
1234
1235 2007-06-04 Borut Razem <borut.razem AT siol.net>
1236
1237         * configure.in, configure, config_vc.awk: sdcc version number is now
1238           stored in configure.in; removed .version
1239         * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
1240           doc/INSTALL.txt: version bumped to 2.7.2
1241         * sim/ucsim/configure.in, sim/ucsim/configure:
1242           use "read" to read from .version
1243
1244 2007-06-03 Borut Razem <borut.razem AT siol.net>
1245
1246         * */Makefile.in: removed annoying warning:
1247           Makefile:xx: Makefile.dep: No such file or directory
1248
1249 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
1250
1251         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
1252           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
1253         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
1254         * src/SDCCast.c (resultTypePropagate): propagate for '!',
1255           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
1256           bugfix: only use newBoolLink for bit result type
1257         * src/SDCCicode.c (geniCodeLogic): added param tree,
1258           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
1259           (geniCodeLogicAndOr): use IS_BIT,
1260           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
1261           (ast2iCode): added tree param to geniCodeLogic for comparisons
1262         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
1263         * support/regression/tests/bug1723128.c: added test NotZero
1264
1265 2007-06-01 Borut Razem <borut.razem AT siol.net>
1266
1267         * SDCPP synchronized with GCC CPP release version 4.2.0,
1268           currently the latest release:
1269         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1270           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
1271           support/cpp2/cppdefault.h, support/cpp2/except.h,
1272           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
1273           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
1274           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
1275           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
1276           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
1277           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
1278           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
1279           support/cpp2/opts.h, support/cpp2/output.h,
1280           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
1281           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
1282           support/cpp2/system.h, support/cpp2/version.c,
1283           support/cpp2/Makefile.in: modified
1284         * support/cpp2/opts-common.c: added
1285         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
1286         * device/lib/pic16/libdev/pic18f[24]5j10.c:
1287           search for included source file in local directory
1288         * sim/ucsim/configure, sim/ucsim/configure.in:
1289           temporary solution to suppress GCC 4.2.0 c++ warning:
1290           deprecated conversion from string constant to `char *'
1291
1292 2007-06-01 Raphael Neider <rneider AT web.de>
1293
1294         * device/lib/pic/libdev/pic12f683.c,
1295         * device/include/pic/pic12f683.h: added GPIO bits
1296
1297 2007-06-01 Raphael Neider <rneider AT web.de>
1298
1299         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
1300           quotation marks, clarified role of PIC14 vs. PIC16 ports
1301         * src/pic16/devices.inc,
1302         * device/include/pic16/pic18fregs.h,
1303         * device/include/pic16/pic18f[24][45]j10.h,
1304         * device/lib/pic16/pics.all,
1305         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
1306           18f24j10, 18f25j10, 18f44j10, and 18f45j10
1307         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
1308           for new devices as they are not yet supported by gputils
1309
1310 2007-05-31 Borut Razem <borut.razem AT siol.net>
1311
1312         * Small Device C Compiler 2.7.0 released
1313         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
1314           changed sdcc version to 2.7.1
1315         * support/scripts/sdcc.nsi: added How to create WIN32 release
1316           setup.exe package
1317
1318 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
1319
1320         * doc/sdccman.lyx: documented initialization and allocation of absolute
1321           variables, bit parameter passing, the need for function pointers to be
1322           reentrant and alpha quality support of inline and retrict
1323
1324 2007-05-26 Borut Razem <borut.razem AT siol.net>
1325
1326         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
1327           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
1328         * docs/knownbugs.html: updated
1329
1330 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
1331
1332         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
1333           thanks Jan Waclawek
1334         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
1335           AOP_CRY and ruonly
1336           (gencjneshort): optimized when left is AOP_DIR
1337         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
1338           initializing unions in a struct/array
1339         * support/regression/fwk/include/testfwk.h: added defines for data, near
1340           and far for host and z80
1341         * support/regression/tests/bug1723128.c: new, added
1342
1343 2007-05-22 Borut Razem <borut.razem AT siol.net>
1344
1345         * doc/knownbugs.html: updated
1346
1347 2007-05-21 Raphael Neider <rneider AT web.de>
1348
1349         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
1350           error message instead
1351         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
1352
1353 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
1354
1355         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
1356
1357 2007-05-21 Raphael Neider <rneider AT web.de>
1358
1359         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
1360           closes #1722392
1361         * src/regression/gpsim_assert.h,
1362         * src/regression/Makefile,
1363         * src/regression/pcodeopt.c: regression test for the above fix
1364
1365 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
1366
1367         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
1368           jumps to self, fixed bug 1717281
1369
1370 2007-05-10 Borut Razem <borut.razem AT siol.net>
1371
1372         * support/scripts/gen_known_bugs.pl: cosmetic fix
1373         * doc/knownbugs.html: generated by gen_known_bugs.pl
1374
1375 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1376
1377         * src/SDCCast.c (createFunction): also generate non-inlined version of
1378           function for functions declared as "static inline"
1379         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
1380           function can be inlined after non-inlined version generated.
1381
1382 2007-05-10 Borut Razem <borut.razem AT siol.net>
1383
1384         * support/scripts/gen_known_bugs.pl: added script
1385           which generates knownbugs.html
1386
1387 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
1388
1389         * doc/knownbugs.html: updated for release 2.7.0
1390
1391 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1392
1393         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
1394
1395 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
1396
1397         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
1398           (throughout): updated generating comments
1399         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
1400           (throughout): updated generating comments
1401         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
1402           rule instead of at the second, or it might skip lines when removing the
1403           complete match
1404         * support/regression/tests/bug1714204.c: changed test to foo
1405
1406 2007-05-08 Borut Razem <borut.razem AT siol.net>
1407
1408         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
1409           thanks to SDCC Distributed Compile Farm members,
1410           added Z80 and GBZ80 command line options
1411         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
1412
1413 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
1414
1415         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
1416         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
1417         * support/regression/tests/longlit.c: modified to be tested at all and
1418           to pass the actual test
1419
1420 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1421
1422         * device/include/mcs51/uPSD33xx.h: Added.
1423
1424 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
1425
1426         * device/lib/_gptrput.c,
1427         * device/lib/_gptrget.c: removed old code,
1428          (_gptrgetWord),
1429         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
1430         * support/regression/tests/bug1714204.c: new, added
1431
1432 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1433
1434         * support/regression/tests/regtrack.c: test was never executed
1435           because of the regression test being picky about white spaces.
1436         * device/lib/mcs51/crtclear.asm: added comment
1437
1438 2007-05-06 Raphael Neider <rneider AT web.de>
1439
1440         * device/lib/pic/Makefile.rules,
1441         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
1442           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
1443
1444 2007-05-06 Raphael Neider <rneider AT web.de>
1445
1446         * src/pic16/device.h,
1447         * src/pic16/main.h,
1448         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
1449           _pic16_setDefaultOptions): removed/reordered command-line args
1450         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
1451           devices, regrouped command line args, environment variables),
1452           clarified sone points, added sections on how to add devices to the
1453           PIC14/PIC16 ports
1454
1455 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
1456
1457         * src/z80/peeph.def: fixed bug in rule 2
1458
1459 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
1460
1461         * src/port.h: added TARGET_MCS51_LIKE
1462         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
1463           take advantage of it too
1464         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
1465           (shiftR2Left2Result): Optimized: don't check shifting by 0
1466         * src/z80/peeph-z80.def,
1467         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
1468           modifications, see patch 1700823
1469         * src/mcs51/peep.c (): fixed bug 1712928
1470         * support/regression/tests/bug1712928.c: new, added
1471
1472 2007-05-05 Borut Razem <borut.razem AT siol.net>
1473
1474         * device/lib/pic16/Makefile.common.in,
1475           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
1476           removed bash dependencies
1477
1478 2007-05-01 Borut Razem <borut.razem AT siol.net>
1479
1480         * src/SDCCicode.c:
1481           fixed bug #1710507: --i-code-in-asm makes compile fail
1482           all iCode comments are now one liners
1483         * src/mcs51/gen.c: fixed memory leak
1484
1485 2007-05-01 Raphael Neider <rneider AT web.de>
1486
1487         * device/lib/pic/libdev/*.c
1488         * device/include/pic/*.h: regenerated all device libs from updated
1489           .inc files
1490         * support/scripts/inc2h.pl: documented usage, now uses strict to
1491           catch more bugs
1492
1493 2007-04-30 Borut Razem <borut.razem AT siol.net>
1494
1495         * doc/sdccman.lyx:
1496           fixed bug #1669175: Problem with space in output paths
1497           documented how to use paths with spaces for Windows users
1498
1499 2007-04-29 Borut Razem <borut.razem AT siol.net>
1500
1501         * Fixed svn:eol-style and svn:keywords properties
1502         * src/SDCCval.c: fixed bug
1503           #1592871: Segfault with "large" const arrays of characters
1504           replaced recursion with iteration
1505         * Removed svn:executable property from non-executable files
1506
1507 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
1508
1509         * src/mcs51/gen.c (genRet): fixed bug 1707003
1510
1511 2007-04-27 Raphael Neider <rneider AT web.de>
1512
1513         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
1514           createReachingDefinitions,assignValnums,pic16_destructDF,
1515           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
1516           prevent NULL pointer dereferences
1517         * device/lib/pic/libdev/pic16f886.c,
1518         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
1519           prevent building them, gputils do not really support them yet
1520
1521 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1522
1523         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
1524           helps printf_small. 32 bytes more __idata mem.
1525
1526 2007-04-27 Raphael Neider <rneider AT web.de>
1527
1528         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
1529           return early when pb or pb->pcHead is NULL (patch #1708427)
1530         * src/regression/empty.c,
1531         * src/regression/Makefile: added test with empty functions
1532         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
1533
1534 2007-04-27 Borut Razem <borut.razem AT siol.net>
1535
1536         * src/SDCCast.c: fixed feature request
1537           #1547512: Redundant strings linked when using sizeof("abc")
1538
1539 2007-04-23 Borut Razem <borut.razem AT siol.net>
1540
1541         * doc/sdccman.lyx, src/SDCCmain.c:
1542           peep-hole comments are generated only if --fverbose-asm option is
1543           specified and --no-peep-comments is not, as proposed by Frieder.
1544         * support/regression/Makefile.in: compile regression tests with
1545           --fverbose-asm option so one can "grep" whether a new (or an old)
1546           peephole is (still) applied; requested by Frieder.
1547
1548 2007-04-23 Kevin Buettner <kevin AT buettner.to>
1549
1550         * device/include/pic/pic16f886.h,
1551         * device/include/pic/pic16f887.h,
1552         * device/lib/pic/libdev/pic16f886.c,
1553         * device/lib/pic/libdev/pic16f887.c,
1554         * device/include/pic/pic14devices.txt,
1555         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
1556
1557 2007-04-23 Kevin Buettner <kevin AT buettner.to>
1558
1559         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
1560           fixes #1704666
1561
1562 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1563
1564         * device/lib/_memset.c: assembler version for mcs51
1565
1566 2007-04-22 Borut Razem <borut.razem AT siol.net>
1567
1568         * support/scripts/listerr.c: program to create the list of errors and
1569           warnings list from - added
1570         * doc/sdccman.lyx: removed the note
1571           "For list of warnings and corresponding codes, see err_warn.txt"
1572         * src/SDCCsymt.c: fixed bug #1699804:
1573           Bug with some uses of sizeof(static local array) (MCS51)
1574         * support/regression/tests/bug-1699804.c: added
1575
1576 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
1577
1578         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
1579           (main): added option -i,
1580           (asmbl, case S_INCL): use search_path_fopen,
1581           mostly from patch 1579668 by Peter Miller, thanks
1582         * src/z80/main.c: fixed typo --callee-saves-bc
1583         * device/include/mcs51/compiler.h: added sfrword for Tasking
1584
1585 2007-04-20 Borut Razem <borut.razem AT siol.net>
1586
1587         * src/z80/main.c: replaced reserved keyword asm with asmblr
1588
1589 2007-04-19 Borut Razem <borut.razem AT siol.net>
1590
1591         * src/port.h: use const pointers to strings
1592         * src/SDCCargs.h: declared getStringArg() and getIntArg()
1593         * src/pic16/main.c: include SDCCargs.h
1594         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
1595           const char, since the strings are dynamically allocated
1596         * src/SDCCmain.c: options.code_seg and options.const_seg are
1597           dynamically allocated; check port specific command line options
1598           before the general ones
1599         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
1600
1601 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
1602
1603         * device/include/ds400rom.h,
1604         * device/lib/ds390/lcd390.c,
1605         * device/lib/ds390/memcpyx.c,
1606         * device/lib/ds390/rtc390.c,
1607         * device/lib/ds400/ds400rom.c,
1608         * device/lib/ds400/memcpyx.c,
1609         * device/lib/hc08/_ret.c: more replacements of keywords with their
1610           double underscore equivalents
1611         * device/lib/ds390/Makefile.in,
1612         * device/lib/ds400/Makefile.in,
1613         * device/lib/gbz80/Makefile.in,
1614         * device/lib/hc08/Makefile.in,
1615         * device/lib/mcs51/Makefile.in,
1616         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
1617
1618 2007-04-17 Borut Razem <borut.razem AT siol.net>
1619
1620         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
1621           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
1622           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
1623           to --fverbose-asm, to be gcc'ish
1624
1625 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
1626
1627         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
1628
1629 2007-04-17 Borut Razem <borut.razem AT siol.net>
1630
1631         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
1632         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
1633           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
1634           with their double underscore equivalent
1635
1636 2007-04-14 Borut Razem <borut.razem AT siol.net>
1637
1638         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
1639           source"
1640
1641 2007-04-13 Borut Razem <borut.razem AT siol.net>
1642
1643         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
1644           C99 standard
1645         * device/examples/serialcomm/windows/serial.[ch],
1646           device/examples/serialcomm/windows/test_serialcomm.cpp:
1647           updated by Bela Torok
1648         * device/examples/serialcomm/windows/serialcomm.dsw,
1649           device/examples/serialcomm/windows/serialcomm.dsp: added
1650
1651 2007-04-13 Jan Waclawek <wek AT efton.sk>
1652
1653         * doc/sdccman.lyx: additions and changes at various places
1654           (submitted as #1697136).
1655           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
1656
1657 2007-04-10 Borut Razem <borut.razem AT siol.net>
1658
1659         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
1660           LyX file format changed to 245
1661         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
1662           "FreeWare" replaced with "free open source"
1663
1664 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
1665
1666         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
1667
1668 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
1669
1670         * device/include/pic16/pic18fregs.h,
1671         * device/lib/_bp.c,
1672         * device/lib/_decdptr.c,
1673         * device/lib/_divsint.c,
1674         * device/lib/_divslong.c,
1675         * device/lib/_divuint.c,
1676         * device/lib/_divulong.c,
1677         * device/lib/_fs2schar.c,
1678         * device/lib/_fs2sint.c,
1679         * device/lib/_fs2slong.c,
1680         * device/lib/_fs2uchar.c,
1681         * device/lib/_fs2uint.c,
1682         * device/lib/_fs2ulong.c,
1683         * device/lib/_fsadd.c,
1684         * device/lib/_fscmp.c,
1685         * device/lib/_fsdiv.c,
1686         * device/lib/_fseq.c,
1687         * device/lib/_fsget1arg.c,
1688         * device/lib/_fsget2args.c,
1689         * device/lib/_fsgt.c,
1690         * device/lib/_fslt.c,
1691         * device/lib/_fsmul.c,
1692         * device/lib/_fsneq.c,
1693         * device/lib/_fsnormalize.c,
1694         * device/lib/_fsreturnval.c,
1695         * device/lib/_fsrshift.c,
1696         * device/lib/_fssub.c,
1697         * device/lib/_fsswapargs.c,
1698         * device/lib/_gptrget.c,
1699         * device/lib/_gptrgetc.c,
1700         * device/lib/_gptrput.c,
1701         * device/lib/_logexpf.c,
1702         * device/lib/_modsint.c,
1703         * device/lib/_modslong.c,
1704         * device/lib/_moduint.c,
1705         * device/lib/_modulong.c,
1706         * device/lib/_mulint.c,
1707         * device/lib/_mullong.c,
1708         * device/lib/_schar2fs.c,
1709         * device/lib/_ser.c,
1710         * device/lib/_setjmp.c,
1711         * device/lib/_sint2fs.c,
1712         * device/lib/_slong2fs.c,
1713         * device/lib/_spx.c,
1714         * device/lib/_uchar2fs.c,
1715         * device/lib/_uint2fs.c,
1716         * device/lib/_ulong2fs.c,
1717         * device/lib/asincosf.c,
1718         * device/lib/atanf.c,
1719         * device/lib/calloc.c,
1720         * device/lib/ds390/tinibios.c,
1721         * device/lib/ds400/tinibios.c,
1722         * device/lib/expf.c,
1723         * device/lib/free.c,
1724         * device/lib/hc08/_mulint.c,
1725         * device/lib/logf.c,
1726         * device/lib/malloc.c,
1727         * device/lib/printf_fast.c,
1728         * device/lib/printf_tiny.c,
1729         * device/lib/printfl.c,
1730         * device/lib/realloc.c,
1731         * device/lib/ser_ir.c,
1732         * device/lib/serial.c,
1733         * support/regression/tests/libmullong.c: replaced all special keywords
1734           with their double underscore equivalent
1735         * support/regression/ports/mcs51-xstack-auto/spec.mk,
1736         * device/lib/Makefile.in: compile libs with --std-c99 instead of
1737           --std-sdcc99
1738         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
1739           (genRet): if the bit-symbol is ruonly it already is in the carry
1740         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
1741         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
1742         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
1743           type UCHAR if dest is not bit
1744
1745 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
1746
1747         * device/include/math.h,
1748         * device/lib/cotf.c,
1749         * device/lib/expf.c,
1750         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
1751
1752 2007-04-01 Borut Razem <borut.razem AT siol.net>
1753
1754         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
1755           fixed bug #1692042: input buffer overflow...scanner uses REJECT
1756         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
1757           gcc_unreachable() called internal_error()...
1758
1759 2007-03-30 Raphael Neider <rneider AT web.de>
1760
1761         * src/pic/ralloc.c (isData): suppress garbage debug output
1762
1763 2007-03-28 Borut Razem <borut.razem AT siol.net>
1764
1765         * doc/sdccman.lyx:
1766           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
1767           is developed, built and used worldwide, and the word "night" doesn't
1768           make any sense.
1769
1770 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
1771
1772         * device/include/mcs51/C8051F360.h: new, added
1773         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
1774
1775 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1776
1777         * src/SDCC.y (declaration_specifiers, function_specifier),
1778         * support/Util/SDCCerr.c,
1779         * support/Util/SDCCerr.h,
1780         * src/SDCCsymt.h,
1781         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
1782           inline keyword
1783         * src/SDCCmem.c (deallocParms),
1784         * src/SDCCast.c: support for function inlining, not quite complete
1785         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
1786           'restrict' qualifier
1787
1788 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
1789
1790         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
1791           (saveRBank, unsaveRBank): don't save bits,
1792           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
1793         * support/regression/tests/bug1535242.c: new, added
1794         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
1795           thanks Alexey Shamrin <shamrin AT gmail.com>,
1796           made assert.h header ANSI compliant (added a check for NDEBUG macro,
1797           removed header guard)
1798         * .version,
1799         * sdcc.spec: bumped version to 2.6.5
1800         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
1801
1802 2007-03-22 Borut Razem <borut.razem AT siol.net>
1803
1804         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
1805           fixed bug #1653671: sdcdb integration into ddd is broken
1806
1807 2007-03-22 Raphael Neider <rneider AT web.de>
1808
1809         * src/pic/gen.c (popGetExternal): augmented to also create references
1810           to external variables (not only labels),
1811           (genCall): comment on plan to reduce PAGESEL overhead,
1812           (genFunction, genEndFunction): also save/restore FSR around interrupt
1813           handling code, removed lots of unused code
1814           (genDivOneByte): release acquired temp register
1815         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
1816           of popGetExternal
1817         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
1818           for registers that need to be saved during interrupts (FSR, STATUS,
1819           PCLATH; W needs special handling), currently only FSR is used
1820
1821 2007-03-22 Raphael Neider <rneider AT web.de>
1822
1823         * device/include/pic/pic14devices.txt: 16f688 has only one config word
1824
1825 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1826
1827         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
1828
1829 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
1830
1831         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
1832
1833 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
1834
1835         * as/link/aslink.h: added LKOBJEXT
1836         * as/link/hc08/link_hc08.dsp,
1837         * as/link/hc08/Makefile.bcc,
1838         * as/link/hc08/Makefile.in,
1839         * as/link/mcs51/aslink.dsp,
1840         * as/link/mcs51/Makefile.bcc,
1841         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
1842         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
1843         * as/link/lkaomf51.c: merged and moved
1844         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
1845         * as/link/z80/lkdata.c,
1846         * as/link/lkdata.c: merged and moved
1847         * as/link/hc08/lkmain.c,
1848         * as/link/mcs51/lkmain.c: cosmetic changes
1849         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
1850         * as/link/lklex.c: use LKOBJEXT
1851         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
1852           ANSI-fied functions, removed bubble-sorts
1853         * as/link/z80/lksym.c           as/link/lksym.c: merged,
1854           ANSI-fied functions
1855         * as/link/z80/linkgbz80.dsp,
1856         * as/link/z80/linkz80.dsp,
1857         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
1858           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
1859         * as/link/z80/lkhead.c,
1860         * as/link/z80/lklex.c: deleted
1861         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
1862         * as/link/z80/lkmain.c: added copyfile()
1863
1864 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1865
1866         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
1867
1868 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1869
1870         * device/lib/_strlen.c: assembler version for mcs51
1871
1872 2007-03-13 Raphael Neider <rneider AT web.de>
1873
1874         * device/include/pic16/pic18f2221.h,
1875         * device/include/pic16/pic18f2321.h,
1876         * device/include/pic16/pic18f2331.h,
1877         * device/include/pic16/pic18f4221.h,
1878         * device/include/pic16/pic18f4321.h,
1879         * device/include/pic16/pic18f4331.h: fixed config byte location names
1880         * support/scripts/inc2h-pic16.pl: removed debug output, emit
1881           consistently named config byte locations
1882
1883 2007-03-13 Borut Razem <borut.razem AT siol.net>
1884
1885         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
1886           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
1887           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
1888           as/link/z80/Makefile.in, as/z80/Makefile.in:
1889           introduced LDFLAGS
1890
1891 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1892
1893         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
1894         * device/lib/printf_large.c: pointer was converted to generic
1895         pointer for mcs51 models other than model-small (Maarten noticed)
1896
1897 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1898
1899         * device/include/mcs51/ADuC84x.h: Added.
1900
1901 2007-03-10 Borut Razem <borut.razem AT siol.net>
1902
1903         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
1904           fixed RFE #1624219: double backslashes in filenames;
1905           functions hexEscape(), octalEscape() and copyStr() moved from
1906           SDCCval.c to SDCCutil.c and made them glovbally available
1907
1908 2007-03-09 Borut Razem <borut.razem AT siol.net>
1909
1910         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
1911           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
1912           1673361: Missaligned comments in output files
1913
1914 2007-03-09 Raphael Neider <rneider AT web.de>
1915
1916         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
1917
1918 2007-03-09 Raphael Neider <rneider AT web.de>
1919
1920         * src/pic/gen.c,
1921         * src/pic/glue.c,
1922         * src/pic/ralloc.c: suppress undesired debug output
1923         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
1924
1925 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1926
1927         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
1928
1929 2007-03-07 Borut Razem <borut.razem AT siol.net>
1930
1931         * device/lib/pic16/libdev/pic18f[24][34]31.c:
1932           search include files in the current directory
1933
1934 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
1935
1936         * src/SDCCglue.c (emitMaps, glue),
1937         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
1938           absolute xdata
1939         * support/regression/tests/absolute.c: added xdata test
1940
1941 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
1942
1943         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
1944           added condition to macro, fixes bug 1666080
1945
1946 2007-03-02 Raphael Neider <rneider AT web.de>
1947
1948         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
1949
1950 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1951
1952         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
1953         be cleared. Unconditionally set __XPAGE
1954         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
1955
1956 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1957
1958         * src/SDCCglobl.h,
1959         * src/SDCCmain.c,
1960         * src/mcs51/gen.c,
1961         * src/mcs51/rtrack.c,
1962         * src/ds390/gen.c,
1963         * doc/sdccman.lyx: added --no-gen-comments
1964         * src/mcs51/peeph.def: added 192.b, disabled 185
1965
1966 2007-02-25 Raphael Neider <rneider AT web.de>
1967
1968         * src/pic16/gen.c (genCast): fixed typo
1969         * device/lib/pic16/Makefile.subdir: only install existing files
1970         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
1971
1972 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1973
1974         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
1975         * device/lib/mcs51/crtclear.asm,
1976         * device/lib/mcs51/crtxclear.asm: renumbered labels
1977         * device/lib/mcs51/Makefile.in: added crtcall.asm
1978         * doc/sdccman.lyx: documented mcs51 crt* library startup code
1979         * src/mcs51/gen.c (movc): removed,
1980           (aopGet, genPlusBits): clear a after loading the carry (possibly from
1981             acc.x or psw.x),
1982           (toCarry, genSend, genRet): added function toCarry,
1983           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
1984           (assignBit, genAssign, genCast): added function assignBit
1985         * src/mcs51/Makefile.bcc: added rtrack.c
1986         * src/mcs51/ralloc.h: made valueKnown a bitfield
1987         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
1988           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
1989           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
1990         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
1991         * src/z80/gen.c: added AOP_IS_PAIRPTR,
1992           (_pop): only pop valid pairs, see gencjneshort,
1993           (gencjneshort): return pair that still needs to be popped, restructured,
1994           (gencjne, genCmpEq): call _pop
1995
1996 2007-02-23 Raphael Neider <rneider AT web.de>
1997
1998         * device/include/pic/pic14devices.txt: 16f684 has only one config word
1999
2000 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2001
2002         * device/include/mcs51/P89LPC925.h: Added.
2003
2004 2007-02-18 Raphael Neider <rneider AT web.de>
2005
2006         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
2007
2008 2007-02-17 Borut Razem <borut.razem AT siol.net>
2009
2010         * support/cpp2/directives.c, support/cpp2/version.c:
2011           synchronized with GCC CPP 4.1.2
2012
2013 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2014
2015         * src/mcs51/rtrack.h,
2016         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
2017           by checking the strings passed by emitcode() to the assembler.
2018           Feel free to change. This in part addresses RFE #482179.
2019           Set environment variable SDCC_RTRACK to enable.
2020         * src/mcs51/gen.c: inserted hooks
2021         * src/mcs51/ralloc.h: added two members to struct regs
2022         * support/regression/tests/regtrack.c: added
2023
2024 2007-02-14 Borut Razem <borut.razem AT siol.net>
2025
2026         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
2027         * Makefile.in: applied patch from Makefile related part of
2028           #1469393: Compiler does not initialize static data
2029
2030 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
2031
2032         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
2033           for better fix of bug 1273984, compiles pic16 rand.c
2034
2035 2007-02-12 Borut Razem <borut.razem AT siol.net>
2036
2037         * src/pic16/main.c: fixed pic16 standard library directory bug
2038
2039 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
2040
2041         * src/hc08/gen.c (genSwap): fix swap regression test
2042
2043 2007-02-10 Borut Razem <borut.razem AT siol.net>
2044
2045         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
2046           with same scope
2047         * support/regression/tests/bug-1654060.c: added regression test for
2048           #1654060
2049
2050 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
2051
2052         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
2053         bit moves in return statement
2054
2055 2007-02-09 Borut Razem <borut.razem AT siol.net>
2056
2057         * src/SDCC.y: fixed bug #1654060 typedef within function causes
2058           syntax error
2059
2060 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
2061
2062         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
2063         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
2064
2065 2007-02-07 Raphael Neider <rneider AT web.de>
2066
2067         * src/pic16/devices.inc,
2068         * device/include/pic16/pic18fregs.h,
2069         * device/include/pic16/pic18f[24][34]31.h,
2070         * device/lib/pic16/libdev/pic18f[24][34]31.c,
2071         * device/lib/pic16/pics.all: added 18f[24][34]31 family
2072         * device/lib/pic16/libio/i2c.ignore: do not build i2c
2073
2074 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
2075
2076         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
2077           can this have lived here for so many years?
2078         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
2079           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
2080         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
2081
2082 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
2083
2084         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
2085         appended by loop induction must be at the very end of the eBBlock
2086
2087 2007-02-05 Kevin Vigor
2088
2089         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
2090
2091 2007-02-05 Borut Razem <borut.razem AT siol.net>
2092
2093         * support/regression/fwk/lib/timeout.c: native WIN32 port,
2094           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
2095
2096 2007-02-03 Borut Razem <borut.razem AT siol.net>
2097
2098         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
2099           applied patch #1646602 option to set default signedness of char to
2100           unsigned, added -funsigned-char command line option,
2101           thanks to Gunther Jehle
2102         * device/lib/Makefile.in: added the -f option to rm so it doesn't
2103           prompt for file deletion a few hundred times (especially the
2104           subversion files, which have ro permissions so it asks for
2105           confirmation), thanks to Simon McAuliffe;
2106           added {} + option to find in order to remove multiple files from a
2107           single rm commad
2108
2109 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2110
2111         * device/include/mcs51/SST89x5xRDx.h: Added.
2112
2113 2007-02-02 Raphael Neider <rneider AT web.de>
2114
2115         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
2116         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
2117
2118 2007-02-01 Raphael Neider <rneider AT web.de>
2119
2120         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
2121           config words again
2122
2123 2007-01-31 Borut Razem <borut.razem AT siol.net>
2124
2125         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
2126           if compiled with GCC. Thanks to Raphael Neider
2127
2128 2007-01-31 Raphael Neider <rneider AT web.de>
2129
2130         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
2131             operand names, handles name and (name + n) for all n,
2132           (sameBank): restructured, also check bank allocation policy,
2133         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
2134           (pic14_operandsAllocatedInSameBank): check whether to operands
2135             will be allocated into the same bank (i.e., section) to reduce
2136             BANKSEL overhead, queried from pcode.c:sameBank,
2137           (pic14printLocals): reintroduced clustering registers into a single
2138             section: all compiler generated symbols will now reside in one
2139             bank (per file), reducing BANKSEL overhead and code size,
2140           (showAllMemmaps): use local dbuf where possible
2141
2142 2007-01-29 Raphael Neider <rneider AT web.de>
2143
2144         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
2145           (call_libraryfunc): retrieve/create symbol and mark as used,
2146           (genFunction): mark defined functions as non-extern and add again
2147            to code memmap for later output
2148         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
2149           (pic14printLocals): reworked for new symbol emission,
2150           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
2151           showAllMemmaps): reworked symbol output using dbufs, added handling
2152             of string literals (still incomplete),
2153           (picglue): removed symbol emission, moved into showAllMemmaps,
2154           (emitSymbolSet): new workhorse for symbol output,
2155           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
2156
2157 2007-01-29 Borut Razem <borut.razem AT siol.net>
2158
2159         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
2160           component contains the extension separator.
2161
2162 2007-01-28 Borut Razem <borut.razem AT siol.net>
2163
2164         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
2165           on WIN32
2166         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
2167           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
2168           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
2169           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
2170           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
2171           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
2172           src/z80/gen.c, support/Util/MySystem.c:
2173           accept slash and backslash as directory separator on WIN32 and
2174           Cygwin ports
2175
2176 2007-01-28 Raphael Neider <rneider AT web.de>
2177
2178         * src/pic16/devices.inc,
2179         * device/include/pic16/pic18f[24][23]21.h,
2180         * device/include/pic16/pic18fregs.h,
2181         * device/lib/pic16/libdev/pic18f[24][23]21.c,
2182         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
2183         * device/lib/pic16/libio/adc.ignore,
2184         * device/lib/pic16/libio/i2c.ignore,
2185         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
2186           family, as gputils do not yet support the devices
2187         * device/lib/pic16/Makefile.subdir: ignore errors on install
2188         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
2189           headers and libraries from gputils .inc files
2190
2191 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
2192
2193         * doc/sdccman.lyx: add printf_fast_f precision limitation note
2194
2195 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
2196
2197         * doc/sdccman.lyx: add printf benchmarks
2198
2199 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
2200
2201         * device/lib/printf_fast.c: fix %c, char promoted to int
2202         * device/lib/printf_tiny.c: fix %c, char promoted to int
2203
2204 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
2205
2206         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
2207
2208 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2209
2210         * support/regression/tests/swap.c: 64 bit hosts failed
2211         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
2212
2213 2007-01-25 Raphael Neider <rneider AT web.de>
2214
2215         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
2216           based on absolute register address, patch by Alex Blond
2217
2218 2007-01-22 Raphael Neider <rneider AT web.de>
2219
2220         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
2221           emitted, do not emit them again...
2222
2223 2007-01-22 Raphael Neider <rneider AT web.de>
2224
2225         * src/regression/bank1.c, src/regression/compare6.c,
2226           src/regression/add.c: cosmetic changes
2227         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
2228         * src/pic/gen.c: fixed global zero and one,
2229           (aopForSym): removed unued code,
2230           (aopGet): assert aop is defined, check and use `index' of
2231             pCodeImmd operands (fixes #1630908),
2232         * src/pic/pcode.c (get_op): added output of generic pointer tag,
2233           (register_reassign): prevent accidental register unification,
2234           (ReuseReg): cosmetic changes (also above)
2235         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
2236           pic14emitStaticSeg): do not emit initialized data,
2237           (printIval*): replaced with working versions,
2238           (pic14createInterruptVect,picglue): use idata for initialized data,
2239             now init data should work in all modules (not only main()),
2240         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
2241
2242 2007-01-21 Borut Razem <borut.razem AT siol.net>
2243
2244         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
2245           use -fPIC or -fpic if they are supported and not ignored
2246         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
2247         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
2248
2249 2007-01-20 Borut Razem <borut.razem AT siol.net>
2250
2251         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
2252           implemented RFE #1470316: allow "$" in variable names
2253
2254 2007-01-20 Raphael Neider <rneider AT web.de>
2255
2256         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
2257
2258 2007-01-20 Raphael Neider <rneider AT web.de>
2259
2260         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
2261         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
2262         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
2263         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
2264           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
2265         * device/lib/pic/libdev/pic*.c,
2266         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
2267         * device/lib/pic/libdev/Makefile.in: show progress
2268
2269 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
2270
2271         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
2272         * support/scripts/sdcc_cygwin_mingw32,
2273         * support/scripts/sdcc_mingw32,
2274         * support/scripts/build.mak: replaced --datadir by --datarootdir for
2275         conformance with autoconf 2.6
2276
2277 2007-01-19 Raphael Neider <rneider AT web.de>
2278
2279         * src/pic/device.c (register_map): fixed list construction
2280         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
2281           (genMod): removed case for genModbits,
2282           (genModbits): removed as now unused/unimplemented
2283         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
2284
2285 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2286
2287         * support/regression/tests/swap.c: added in response to #1638622
2288         * doc/sdccman.lyx: synced version, minor changes
2289
2290 2007-01-18 Borut Razem <borut.razem AT siol.net>
2291
2292         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
2293           thanks to Gunther Jehle
2294         * src/asm.c: don't die if the file drfined in #line couldn't be opened
2295         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
2296           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
2297           use filename in lineno instead.
2298         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
2299           print the file name in ast_print()
2300
2301 2007-01-18 Borut Razem <borut.razem AT siol.net>
2302
2303         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
2304           defined in MSVC
2305         * src/SDCC.lex: stringLiteral() returns const char pointer,
2306           EOF detection in stringLiteral(), fixed asmbuf memory leak,
2307           fixed column counting
2308         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
2309           accept const char pointer as parameter
2310         * src/SDCCdwarf2.c: corrected buffer size
2311
2312 2007-01-17 Borut Razem <borut.razem AT siol.net>
2313
2314         * support/Util/dbuf_string.c: fixed for amd64
2315
2316 2007-01-15 Borut Razem <borut.razem AT siol.net>
2317
2318         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
2319           removed terminal symbol ELIPSIS, since it was never generated by the
2320           lexer and it was wrongly used in parameter_identifier_list rule
2321
2322 2007-01-15 Raphael Neider <rneider AT web.de>
2323
2324         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
2325             code page and data banking description
2326         * src/pic/genarith.c,
2327         * src/pic/gen.h: removed bit arithmetic functions,
2328             updated exit(1) to exit(EXIT_FAILURE)
2329         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
2330         * device/include/pic16/pic18f2455.h,
2331         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
2332             TRISD and TRISE, fixed/added some bit names
2333         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
2334         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
2335             updated pic18f2455.{c,h} instead of duplicating them
2336
2337 2007-01-14 Borut Razem <borut.razem AT siol.net>
2338
2339         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
2340           Cannot debug files that contain spaces in the path name
2341           by converting spaces in asm file name to underscores
2342
2343 2007-01-13 Borut Razem <borut.razem AT siol.net>
2344
2345         * doc/sdccman.lyx: fixed format errors
2346
2347 2007-01-10 Borut Razem <borut.razem AT siol.net>
2348
2349         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
2350           codeseg/constseg #pragma fail
2351         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
2352         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
2353           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
2354           suppoprt/cpp2/sdcpp.[ch]: house cleaning
2355
2356 2007-01-09 Borut Razem <borut.razem AT siol.net>
2357
2358         * get rid of diagnistic.[ch], pretty-print.[ch],
2359           c-pretty-print.[ch], ... used just for error, warning, ...
2360           message formatting
2361         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
2362           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
2363           suppoprt/cpp2/pretty-print.[ch]:
2364           removed
2365         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
2366           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
2367           suppoprt/cpp2/sdcpp.dsp:
2368           changed
2369
2370 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
2371
2372         * device/lib/printf_large.c (output_float): removed recursion,
2373           use smaller buffer on stack for mcs51,
2374           fixed bug printing 1.96
2375         * support/regression/tests/snprintf.c: added test
2376
2377 2007-01-07 Borut Razem <borut.razem AT siol.net>
2378
2379         * use dynamic memory buffers instead temporary files
2380         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
2381           added
2382         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
2383           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
2384           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
2385           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
2386           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
2387           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
2388           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
2389           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
2390           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
2391           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
2392           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
2393           support/Util/dbuf.c, support/Util/dbuf.h:
2394           modified
2395         * .version, sdcc.spec: bumped version to 2.6.4
2396
2397 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
2398
2399         * src/port.h: added TARGET_Z80_LIKE macro
2400         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
2401           output PSEG location if --xram-loc or --xstack-loc was used
2402         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
2403
2404 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
2405
2406         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
2407         * as/as_z80.dsp,   as/z80/as_z80.dsp,
2408         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
2409         * sdcc.dsw: moved project files into subdir
2410         * as/hc08/as_hc08.dsp,
2411         * as/hc08/Makefile.bcc,
2412         * as/hc08/Makefile.in,
2413         * as/mcs51/Makefile.bcc,
2414         * as/mcs51/Makefile.in,
2415         * as/z80/Makefile.bcc,
2416         * as/z80/Makefile.in,
2417         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
2418         * as/hc08/asm.h,
2419         * as/mcs51/asm.h,
2420         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
2421         * as/hc08/asmain.c,
2422         * as/hc08/assym.c,
2423         * as/mcs51/asmain.c,
2424         * as/mcs51/assym.c,
2425         * as/z80/assym.c: removed include "strcmpi.h"
2426         * as/hc08/strcmpi.c,
2427         * as/hc08/strcmpi.h,
2428         * as/mcs51/strcmpi.c,
2429         * as/mcs51/strcmpi.h,
2430         * support/Util/strcmpi.c,
2431         * support/Util/strcmpi.h: removed files
2432         * as/strcmpi.c: added as_strncmpi()
2433
2434 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2435
2436         * sdcc.dsw: Added some dependencies on project config.dsp
2437
2438 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
2439
2440         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
2441           with [di]ram_start to fix a regresion
2442
2443 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
2444
2445         * configure.in: added missing mcs51 in status output
2446         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
2447         directory
2448         * debugger/mcs51/clean.mk (distclean): remove config.h
2449         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
2450         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
2451         options.h, s-options-h and options.c
2452         * support/cpp2/clean.mk: unused, removed
2453         * Makefile.common.in,
2454         * main_in.mk,
2455         * as/Makefile.in,
2456         * as/hc08/Makefile.in,
2457         * as/hc08/clean.mk,
2458         * as/mcs51/Makefile.in,
2459         * as/mcs51/clean.mk,
2460         * as/z80/clean.mk,
2461         * as/z80/conf.mk,
2462         * as/z80/Makefile.in,
2463         * as/z80/clean.mk,
2464         * as/link/Makefile.in,
2465         * as/link/hc08/Makefile.in,
2466         * as/link/hc08/clean.mk,
2467         * as/link/mcs51/Makefile.in,
2468         * as/link/mcs51/clean.mk,
2469         * as/link/z80/Makefile.in,
2470         * as/link/z80/clean.mk,
2471         * as/link/z80/conf.mk,
2472         * debugger/mcs51/Makefile.in,
2473         * debugger/mcs51/clean.mk,
2474         * device/include/Makefile.in,
2475         * device/lib/Makefile.in,
2476         * device/lib/mcs51/Makefile.in,
2477         * device/lib/pic/Makefile.in,
2478         * device/lib/pic/Makefile.common.in,
2479         * device/lib/pic/Makefile.subdir,
2480         * device/lib/pic/Makefile.rules,
2481         * device/lib/pic16/libio/Makefile.in,
2482         * device/lib/pic16/Makefile.subdir,
2483         * device/lib/pic16/libdev/Makefile.in,
2484         * device/lib/pic16/Makefile.rules,
2485         * device/lib/pic16/Makefile.common.in,
2486         * sim/ucsim/avr.src/Makefile.in,
2487         * sim/ucsim/main_in.mk,
2488         * sim/ucsim/cmd.src/Makefile.in,
2489         * sim/ucsim/doc/Makefile.in,
2490         * sim/ucsim/gui.src/Makefile.in,
2491         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
2492         * sim/ucsim/gui.src/serio.src/Makefile.in,
2493         * sim/ucsim/hc08.src/Makefile.in,
2494         * sim/ucsim/libltdl/Makefile.in,
2495         * sim/ucsim/s51.src/Makefile.in,
2496         * sim/ucsim/sim.src/Makefile.in,
2497         * sim/ucsim/sim.src/conf.mk,
2498         * sim/ucsim/xa.src/Makefile.in,
2499         * sim/ucsim/z80.src/Makefile.in,
2500         * src/Makefile.in,
2501         * src/clean.mk,
2502         * src/port.mk,
2503         * support/cpp2/Makefile.in,
2504         * support/librarian/Makefile.in,
2505         * support/librarian/clean.mk,
2506         * support/makebin/Makefile.in,
2507         * support/makebin/clean.mk,
2508         * support/packihx/Makefile.in,
2509         * support/regression/Makefile.in,
2510         * support/regression/ports/ds390/spec.mk,
2511         * support/regression/ports/gbz80/spec.mk,
2512         * support/regression/ports/hc08/spec.mk,
2513         * support/regression/ports/mcs51/spec.mk,
2514         * support/regression/ports/mcs51-large/spec.mk,
2515         * support/regression/ports/mcs51-medium/spec.mk,
2516         * support/regression/ports/mcs51-xstack-auto/spec.mk,
2517         * support/regression/ports/pic14/spec.mk,
2518         * support/regression/ports/pic16/spec.mk,
2519         * support/regression/ports/mcs51-stack-auto/spec.mk,
2520         * support/regression/ports/ucz80/spec.mk,
2521         * support/regression/ports/xa51/spec.mk,
2522         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
2523         adding a slash after $(top_builddir) and/or adding @datarootdir@
2524         * configure.in,
2525         * debugger/mcs51/configure.in,
2526         * device/lib/pic/configure.in,
2527         * device/lib/pic16/configure.in,
2528         * sim/ucsim/configure.in,
2529         * support/cpp2/configure.in,
2530         * support/packihx/configure.in: changed AC_PREREQ to 2.60
2531         * configure,
2532         * debugger/mcs51/configure,
2533         * device/lib/pic/configure,
2534         * device/lib/pic16/configure,
2535         * sim/ucsim/configure,
2536         * support/cpp2/configure,
2537         * support/packihx/configure: generated with autoconf 2.60
2538
2539 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
2540
2541         * as/link/hc08/lkihx.c (newArea),
2542         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
2543
2544 2007-01-02 Borut Razem <borut.razem AT siol.net>
2545
2546         * doc/sdccman.lyx: documented #pragma sdcc_hash
2547         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
2548           initialized to 0
2549         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
2550
2551 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
2552
2553         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
2554         empty 'while'-loop to work correctly, see regression test 'while.c'
2555         * support/regression/tests/while.c: added
2556
2557 2007-01-01 Borut Razem <borut.razem AT siol.net>
2558
2559         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
2560           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
2561           support/cpp2/libcpp/sdcpp.c:
2562           sdcpp specific pragma/directive/option handling moved to sdcpp.c
2563         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
2564         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
2565
2566 2006-12-31 Borut Razem <borut.razem AT siol.net>
2567
2568         * SDCPP synchronized with GCC CPP release version 4.1.1,
2569           currently the latest release:
2570         * support/cpp2/libcpp, support/cpp2/libcpp/include,
2571           support/cpp2/libcpp/include/cpp-id-data.h
2572           support/cpp2/libiberty/fopen_unlocked.c
2573           support/cpp2/libiberty/md5.c
2574           support/cpp2/md5.h
2575           support/cpp2/opt-functions.awk
2576           support/cpp2/opt-gather.awk
2577           support/cpp2/optc-gen.awk
2578           support/cpp2/opth-gen.awk:
2579           added
2580         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
2581           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2582           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
2583           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
2584           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
2585           support/cpp2/diagnostic.h, support/cpp2/except.h,
2586           support/cpp2/hwint.h, support/cpp2/input.h,
2587           support/cpp2/intl.h, support/cpp2/move-if-change,
2588           support/cpp2/opts.c, support/cpp2/opts.h,
2589           support/cpp2/output.h, support/cpp2/prefix.c,
2590           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
2591           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
2592           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
2593           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
2594           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
2595           support/cpp2/version.c:
2596           modified
2597         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
2598           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
2599           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
2600           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
2601           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
2602           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
2603           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
2604           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
2605           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
2606           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
2607           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
2608           moved
2609         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
2610           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
2611           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
2612           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
2613           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
2614           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
2615           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
2616           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
2617           support/cpp2/hashtable.h, support/cpp2/line-map.c,
2618           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
2619           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
2620           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
2621           support/cpp2/system.h:
2622           deleted / moved
2623
2624 2006-12-31 Borut Razem <borut.razem AT siol.net>
2625
2626         * configure.in, configure: fixed bug #1538756: configure dies if bison
2627           and flex are not installed, 2nd try
2628
2629 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
2630
2631         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
2632         400.x for better code in RFE 899102
2633
2634 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
2635
2636         * src/SDCCpeeph.c (deadMove),
2637         * src/port.h,
2638         * src/mcs51/peep.h: renamed 'op' by 'reg'
2639         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
2640         (scan4op): small change for removeDeadMove(), added support for
2641         'callee saves' and/or PACLL function calls,
2642         (removeDeadMove): added, removes superflous 'mov r%1,%2',
2643         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
2644         left in new dispatcher mcs51DeadMove()
2645         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
2646         removeDeadMove()
2647         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
2648
2649 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2650
2651         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
2652           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
2653
2654 2006-12-30 Borut Razem <borut.razem AT siol.net>
2655
2656         * support/cpp2/spacs.h: deleted from svn
2657         * configure.in, configure: fixed bug #1538756: configure dies if bison
2658           and flex are not installed
2659
2660 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
2661
2662         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
2663           with this z80 passes printf float test when enabled
2664         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
2665
2666 2006-12-28 Borut Razem <borut.razem AT siol.net>
2667
2668         * support/cpp2/config.in, support/cpp2/configure.in,
2669           support/cpp2/configure, support/cpp2/Makefile.in:
2670           fix for the solaris build
2671
2672 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2673
2674         * src/SDCC.y (type_specifier2, pointer),
2675         * src/SDCCsymt.h,
2676         * src/SDCCsymt.c (mergeSpec, checkSClass),
2677         * support/Util/SDCCerr.c,
2678         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
2679         * support/valdiag/valdiag.py: Allow test cases to specify
2680           required language standard
2681         * support/valdiag/tests/restrict.c: New file to test restrict keyword
2682         * support/valdiag/tests/tentdecl.c: Supress empty source file error
2683
2684 2006-12-27 Borut Razem <borut.razem AT siol.net>
2685
2686         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
2687         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
2688           mbchar removed
2689         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
2690           fixed for borland C
2691         * support/cpp2/libiberty/Makefile.bcc: updated
2692         * src/pic16/main.c: fixed #pragma udata handling
2693         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
2694
2695 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
2696
2697         * src/SDCCpeeph.c: made labelHashEntry global,
2698         made pcDistance, FBYNAME static,
2699         (pcDistance): made static, use isComment and isLabel,
2700         (deadMove): added,
2701         (getLabelRef): added, extracted from labelRefCount(),
2702         (labelRefCount): use new getLabelRef(),
2703         (callFuncByName): made static, added deadMove,
2704         use isComment and isLabel,
2705         (newPeepRule): made static, set isLabel,
2706         (isLabelDefinition): added parameter isPeepRule to allow '%' in
2707         labels from peephole rules,
2708         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
2709         when isComment or isLabel is set
2710         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
2711         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
2712         to make them global
2713         * src/mcs51/peep.h: added
2714         * src/mcs51/peep.c: added, implements mcs51DeadMove()
2715         * src/port.h: added peep->deadMove to port structure
2716         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
2717         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
2718         deadMove, finally removed no. 1 and 2
2719         * src/mcs51/gen.c,
2720         * src/pic/gen.c,
2721         * src/z80/gen.c,
2722         * src/z80/ralloc.c,
2723         * src/pic16/gen.c,
2724         * src/ds390/gen.c,
2725         * src/hc08/gen.c: mark lines with isComment or isLabel
2726         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
2727         * .version,
2728         * sdcc.spec: bumped version to 2.6.3
2729
2730 2006-12-26 Borut Razem <borut.razem AT siol.net>
2731
2732         * support/cpp2/Makefile.in: added dependency on options.h
2733         * configure: regenerated
2734         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
2735         * support/cpp2/Makefile.in: added vasprintf.c
2736
2737 2006-12-25 Borut Razem <borut.razem AT siol.net>
2738
2739         * SDCPP synchronized with GCC CPP release version 3.4.6,
2740           the latest release before 4.x:
2741         * support/cpp2/Makefile.in, support/cpp2/config.h,
2742           support/cpp2/configure, support/cpp2/configure.in,
2743           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
2744           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
2745           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
2746           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
2747           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
2748           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
2749           support/cpp2/cpptrad.c, support/cpp2/except.h,
2750           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
2751           support/cpp2/hwint.h, support/cpp2/intl.h,
2752           support/cpp2/line-map.c, support/cpp2/line-map.h,
2753           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
2754           support/cpp2/output.h, support/cpp2/prefix.c,
2755           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
2756           support/cpp2/system.h, support/cpp2/version.c:
2757           modified
2758         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2759           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
2760           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
2761           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
2762           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
2763           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
2764           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
2765           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
2766           support/cpp2/move-if-change, support/cpp2/opts.c,
2767           support/cpp2/opts.h, support/cpp2/opts.sh,
2768           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
2769           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
2770           support/cpp2/win32, support/cpp2/win32/dirent.c,
2771           support/cpp2/win32/dirent.h:
2772           added
2773         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
2774         * support/cpp2/sdcpp.h: renamed from sdcc.h
2775         * sdcppinit.c: deleted
2776
2777 2006-12-23 Borut Razem <borut.razem AT siol.net>
2778
2779         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
2780           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
2781           preproc.c: an other try to fix bug #982435: introduced
2782           -pedantic-parse-number command line option and pedantic_parse_number
2783           pragma
2784
2785 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
2786
2787         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
2788            BSEG handling,
2789           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
2790            corrected overlayed areax addresses, warn about memory overlaps
2791         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
2792         * src/avr/main.c,
2793         * src/ds390/main.c,
2794         * src/hc08/main.c,
2795         * src/mcs51/main.c,
2796         * src/pic16/main.c,
2797         * src/pic/main.c,
2798         * src/xa51/main.c,
2799         * src/z80/main.c,
2800         * src/port.h: added xabs_name and iabs_name
2801         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
2802           (glue, emitMaps): create and emit maps d_abs and i_abs
2803         * src/SDCCglue.h: cosmetic changes
2804         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
2805         * src/SDCCmem.h,
2806         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
2807           (allocDefault): put absolute, initialized globals in them
2808         * support/regression/tests/absolute.c: added absolute bdata test
2809         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
2810
2811 2006-12-20 Borut Razem <borut.razem AT siol.net>
2812
2813         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
2814         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
2815           added regression test for bug #982435
2816
2817 2006-12-18 Borut Razem <borut.razem AT siol.net>
2818
2819         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
2820         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
2821           small cosmetic changes
2822         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
2823         * support/regression/tests/bug-1351710.c: added regression test
2824
2825 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2826
2827         * doc/sdccman.lyx: added the long missed iCode table
2828           "<where is figure II?>", added links to wiki
2829
2830 2006-12-17 Borut Razem <borut.razem AT siol.net>
2831
2832         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
2833           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
2834           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
2835           unified table driven pragma handling, pragma argument type checking
2836         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
2837           current one - version 1.1.3
2838         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
2839
2840 2006-12-13 Raphael Neider <rneider AT web.de>
2841
2842         * src/pic/device.h: removed AssignedMemory structure and macros
2843         * src/pic/device.c: removed global finalMapping (linker assigns
2844             memory locations),
2845           (register_map): add SFRs to remembered memRanges
2846           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
2847           assignFixedRegisters,assignRelocatableRegisters): removed,
2848           (setMaxRAM,validAddress): adapted accordingly,
2849           (pic14_hasSharebank,pic14_getSharedStack): only report and use
2850             reasonably sized sharebanks,
2851         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
2852           (allDefsOutOfRange): removed unused code,
2853         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
2854             handling
2855         * src/pic/pcode.c (register_reassign): removed recursion warning,
2856             fired far too often,
2857         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
2858             to use existing pic14_stringInSet() to avoid duplicate symbols,
2859             tidied up the code a bit,
2860           (pic14printLocals): added in symmetry to printExterns, replaces
2861             writeUsedRegs more or less,
2862           (picglue): call new pic14_printLocals(),
2863         * device/include/pic/pic*.h: removed #pragma memmap directives,
2864             information gathered from include/pic/pic14devices.txt
2865         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
2866
2867 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
2868
2869         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
2870
2871 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2872
2873         * device/include/mcs51/cc2430.h: fixed missing ';'
2874
2875 2006-12-10 Raphael Neider <rneider AT web.de>
2876
2877         * device/lib/pic16/libc/stdio/vfprintf.c,
2878         * device/lib/pic16/libc/stdio/printf_small.c,
2879         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
2880           char arguments, as char varargs are cast to int by the caller,
2881           hopefully fixes #1604915 (other device libraries are still affected)
2882
2883 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2884
2885         * src/mcs51/ralloc.c (packRegsForAssign),
2886         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
2887
2888 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
2889
2890         * device/include/malloc.h: removed init_dynamic_memory
2891         * device/lib/malloc.c: made init_dynamic_memory static and automatically
2892           call it once from malloc. Also use _sdcc_heap[] from _heap.c
2893         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
2894         * device/lib/libsdcc.lib,
2895         * device/lib/Makefile.in,
2896         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
2897         * doc/sdccman.lyx: documented use of new _heap.c
2898         * support/regression/tests/malloc.c: removed init_dynamic_memory
2899         * src/cdbFile.c(spacesToUnderscores): new function,
2900           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
2901           1068030
2902         * device/include/tinibios.h: removed defines for putchar and getchar
2903         * device/lib/ds390/Makefile.in: added putchar.c
2904         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
2905
2906 2006-12-09 Borut Razem <borut.razem AT siol.net>
2907
2908         * support/cpp2/sdcc.h: prevent multiple inclusion
2909         * support/cpp2/options.h: deleted
2910
2911 2006-12-08 Borut Razem <borut.razem AT siol.net>
2912
2913         * support/cpp2/sdcc.h: removed x*alloc() macros
2914         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
2915         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
2916           support/cpp2/sdcpp.sdc: x*alloc files added to the project
2917         * support/cpp2/system.h: moved #include "sdcc.h"
2918         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
2919           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
2920           added
2921         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
2922           -funsigned-char options
2923         * support/cpp2/sdcppmain.c: fixed bug 1611411
2924
2925 2006-12-07 Borut Razem <borut.razem AT siol.net>
2926
2927         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
2928           directive
2929
2930 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
2931
2932         * src/SDCCsymt.c (addDecl): fixed bug 1609244
2933         * src/SDCCmain.c (linkEdit): fixed bug 1609279
2934         * doc/sdccman.lyx,
2935         * .version: bumped to 2.6.2 because a) it's been a while
2936           b) the linker sources have moved c) the preprocessor is upgraded
2937
2938 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2939
2940         * support/regression/tests/snprintf.c: some checks
2941         * lib/src/printf_large.c: %bc: read char instead of int from stack
2942
2943 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
2944
2945         * device/include/mcs51/cc2430.h: inserted _XPAGE
2946
2947 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2948
2949         * device/include/mcs51/cc2430.h: added
2950
2951 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
2952
2953         * device/include/asm/default/features.h,
2954         * device/include/asm/ds390/features.h,
2955         * device/include/mcs51/at89s53.h,
2956         * device/include/ser.h,
2957         * device/include/ser_ir.h,
2958         * device/include/serial.h: changed keywords to double underscore variants,
2959           fixes bug 1590261 some more, thanks Steven Borley
2960
2961 2006-12-01 Raphael Neider <rneider AT web.de>
2962
2963         * src/pic/pcode.c (register_reassign): do not crash on recursive code
2964           but emit warning (recursion is not supported for pic14)
2965
2966 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2967
2968         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
2969         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
2970
2971 2006-11-30 Raphael Neider <rneider AT web.de>
2972
2973         * src/pic/device.c (dump_sfr): always emit symbols
2974         * src/pic/glue.c (pic14printPublics): fixed typo
2975
2976 2006-11-30 Raphael Neider <rneider AT web.de>
2977
2978         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
2979           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
2980           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
2981            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
2982            a sharebank, use a non-shared bank for the stack if none available
2983         * src/pic/device.h (struct memRange): added linked list next field,
2984           added prototypes for above functions
2985         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
2986           (typeRegWithIdx): accept fixed and unfixed stack registers
2987         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
2988           the stack, handle shared and banked stack (except for WSAVE),
2989           (insertBankSel): removed useless optimization (will never fire),
2990           (FixRegisterBanking): added optimization for devices with only one
2991           possibly aliased bank of memory, like 16f84
2992         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
2993           devices have no SHAREBANK in the linker script
2994         * device/include/pic/pic14devices.txt: documented memmap
2995         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
2996
2997 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2998
2999         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
3000           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
3001           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
3002           genhc08Code): switched most of the D (debug) macros to DD (detailed
3003           debug) macros to better control clutter in the generated .asm file.
3004         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
3005           genRightShift): fixed bug with non-constant bit shift stored to
3006           a volatile result (SF Open Discussion forum thread #1616749).
3007           Single byte case is not yet optimized.
3008
3009 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
3010
3011         * device/include/asm/mcs51/features.h,
3012         * device/include/malloc.h,
3013         * device/include/stdio.h: changed keywords to double underscore variants,
3014           fixes bug 1590261
3015
3016 2006-11-27 Borut Razem <borut.razem AT siol.net>
3017
3018         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
3019           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
3020           support/cpp2/output.h, support/cpp2/cppinit.c,
3021           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
3022           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
3023           support/cpp2/cppdefault.c, support/cpp2/system.h,
3024           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
3025           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
3026           support/cpp2/prefix.c, support/cpp2/except.h,
3027           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
3028           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
3029           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
3030           support/cpp2/version.c, support/cpp2/cppmain.c,
3031           support/cpp2/version.h, support/cpp2/hashtable.c,
3032           support/cpp2/cpperror.c:
3033           synchronized with GCC CPP release version 3.3.6,
3034           the latest where cppmain.c still exists.
3035         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
3036           support/cpp2/sdcppinit.c: added
3037
3038 2006-11-27 Borut Razem <borut.razem AT siol.net>
3039
3040         * support/cpp2/cpplex.c:
3041           fixed _asm ... _endasm handling bug, introduce with GCC CPP
3042           synchronization
3043         * support/cpp2/cpplib.c: removed definitions of unused variables
3044
3045 2006-11-26 Borut Razem <borut.razem AT siol.net>
3046
3047         * support/cpp2/libiberty.h: commented out x*alloc() declarations
3048           since they are redefined by macros in support/cpp2/sdcc.h
3049         * support/cpp2/sdcc.h: x*alloc macro redefinition
3050
3051 2006-11-25 Borut Razem <borut.razem AT siol.net>
3052
3053         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
3054           support/cpp2/configure, support/cpp2/Makefile.in,
3055           support/cpp2/cppfiles.c, support/cpp2/output.h,
3056           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
3057           support/cpp2/config.h, support/cpp2/cpplib.h,
3058           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
3059           support/cpp2/cppdefault.c, support/cpp2/config.in,
3060           support/cpp2/system.h, support/cpp2/cpplex.c,
3061           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
3062           support/cpp2/cppdefault.h, support/cpp2/prefix.c
3063           support/cpp2/hwint.h, support/cpp2/mbchar.h,
3064           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
3065           support/cpp2/configure.in, support/cpp2/intl.h,
3066           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
3067           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
3068           support/cpp2/version.c, support/cpp2/cppmain.c,
3069           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
3070           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
3071           support/cpp2/cpperror.c,
3072           support/cpp2/libiberty/safe-ctype.c,
3073           support/cpp2/libiberty/safe-ctype.h,
3074           support/cpp2/libiberty/splay-tree.c,
3075           support/cpp2/libiberty/obstack.c,
3076           support/cpp2/libiberty/lbasename.c,
3077           support/cpp2/libiberty/splay-tree.h,
3078           support/cpp2/libiberty/obstack.h:
3079           synchronized with GCC CPP release version 3.2.3,
3080           the latest before integration of cpp into gcc
3081         * support/cpp2/except.h, support/cpp2/line-map.c,
3082           support/cpp2/line-map.h,
3083           support/cpp2/libiberty/hex.c,
3084           support/cpp2/libiberty/concat.c,
3085           support/cpp2/libiberty/filenames.h: added
3086         * support/cpp2/intl.c: deleted
3087
3088 2006-11-24 Borut Razem <borut.razem AT siol.net>
3089
3090         * src/SDCC.y: enabled compilation of empty source file
3091         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
3092           "ISO C forbids an empty source file"
3093         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
3094           if all the code is ifdefed out.
3095
3096 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3097
3098         * src/hc08/gen.c (genPcall): fix for bug #1601032
3099
3100 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
3101
3102         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
3103         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
3104         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
3105         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
3106         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
3107         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
3108         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
3109         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
3110         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
3111         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
3112         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
3113         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
3114         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
3115         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
3116         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
3117           Renamed to all upper case as per the standard set by SiLabs
3118
3119 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
3120
3121         * device/include/mcs51/C8051F520.h: new, added
3122         * device/include/mcs51/compiler.h: added link about predefined macros
3123
3124 2006-11-23 Raphael Neider <rneider AT web.de>
3125
3126         * src/regression/Makefile: add -L path to fresh library
3127         * src/regression/simulate: emphasize FAILED output
3128         * src/regression/create_stc: output _failures from gpsim
3129         * src/regression/compare4.c,
3130         * src/regression/rotate6.c: fixed char literals,
3131           all compile, all run =8-D
3132
3133         * src/pic/pcode.h: added isPCASMDIR macro
3134         * src/pic/gen.c (genAnd): fixed bit offset
3135         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
3136           packBits): unified register numbering schemes,
3137           (newReg): do not insert stack registers into hash table,
3138           (initStack): unpinned pseudo stack, simplified,
3139           (typeRegWithIdx): fixed retrieval of stack registers,
3140         * src/pic/pcode.c (addpCodeComment,sameBank): added,
3141           (pCodeReplace): removed invalid assertion,
3142           (insertPCodeInstruction): fixed newly added labels,
3143           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
3144           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
3145           DumpFlow): removed unsed (broken?) code,
3146           (insertBankSel): prevent STATUS from being BANKSELed,
3147           (FixRegisterBanking): rewritten from scratch, implemented generic
3148             optimizations (suppress BANKSELs to same register and to registers
3149             present in all banks),
3150           (AnalyzeBanking): update flow after BANKSELection
3151
3152         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
3153             sharebank, let linker place it, mark STKxx symbols as emitted
3154
3155 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3156
3157         * src/regression/arrays.c,
3158         * src/regression/bank1.c,
3159         * src/regression/bool2.c,
3160         * src/regression/compare7.c,
3161         * src/regression/compare8.c,
3162         * src/regression/compare9.c,
3163         * src/regression/compare10.c,
3164         * src/regression/configword.c,
3165         * src/regression/for.c,
3166         * src/regression/mult1.c,
3167         * src/regression/pointer1.c,
3168         * src/regression/rotate6.c,
3169         * src/regression/string1.c,
3170         * src/regression/struct1.c,
3171         * src/regression/Makefile: make PIC14 regression tests run again
3172           (3 fail, 6 won't compile)
3173
3174 2006-11-21 Raphael Neider <rneider AT web.de>
3175
3176         * device/include/pic16/pic18f4550.h,
3177         * device/include/pic16/pic18f4455.h,
3178         * device/lib/pic16/libdev/pic18f4550.c,
3179         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
3180         * configure.in: removed superfluous closing bracket
3181
3182 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3183
3184         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
3185           always positive.
3186
3187 2006-11-21 Raphael Neider <rneider AT web.de>
3188
3189         * src/pic/device.{c,h}: added pic14_getPIC()
3190         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
3191           (genAnd): added PIC code for one case, fixes #1597044
3192         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
3193           SFRs that are present in all banks (e.g., STATUS)
3194
3195 2006-11-20 Raphael Neider <rneider AT web.de>
3196
3197         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
3198           INCFSZ/INCFSZW and declared them as changing Z bit,
3199           (insertPCodeInstruction): correctly invert the above instructions,
3200           fixes #1599333,
3201           (DoBankSelect): don't panic on po_immediates
3202
3203 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
3204
3205         * as/link/aslink.h,
3206         * as/link/mcs51/lkihx.c (newArea),
3207         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
3208         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
3209
3210 2006-11-11 Raphael Neider <rneider AT web.de>
3211
3212         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
3213           bitfield symbols, fixes #1579535 (once more...).
3214
3215 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3216
3217         * support/regression/generate-cases.py,
3218         * support/regression/fwk/include/testfwk.h,
3219         * support/regression/fwk/lib/testfwk.c: used code pointers,
3220           (about 50kByte less code generated for mcs51)
3221
3222 2006-11-06 Borut Razem <borut.razem AT siol.net>
3223
3224         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3225           debugger/mcs51/configure: fixed failed check because the function
3226           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
3227           who submitted the patch for gpsim.
3228         * debugger/mcs51/configure.in: removed the result message
3229         * debugger/mcs51/Makefile.in: fixed the config.status warning
3230           "... seems to ignore the --datarootdir setting"
3231
3232 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
3233
3234         * device/include/mcs51/c8051f020.h,
3235         * device/include/mcs51/c8051f040.h,
3236         * device/include/mcs51/c8051f060.h,
3237         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
3238         * src/z80/gen.c (gencjneshort),
3239         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
3240
3241 2006-10-31 Borut Razem <borut.razem AT siol.net>
3242
3243         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3244           debugger/mcs51/configure: get readline version
3245
3246 2006-10-30 Borut Razem <borut.razem AT siol.net>
3247
3248         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
3249         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3250           debugger/mcs51/configure: locate readline even when cross compiling
3251         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
3252
3253 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3254
3255         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
3256           serial port.
3257
3258 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
3259
3260         * device/include/malloc.h,
3261         * device/lib/calloc.c,
3262         * device/lib/free.c,
3263         * device/lib/malloc.c,
3264         * device/lib/realloc.c: moved definition of struct into sources
3265         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
3266
3267 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
3268
3269         * as/asx8051.dsp: corrected output directories
3270         * as/link/hc08: new directory for hc08 linker
3271         * as/hc08/aslink.h,             as/link/aslink.h,
3272         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
3273         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
3274         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
3275         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
3276         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
3277         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
3278         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
3279         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
3280         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
3281         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
3282         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
3283         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
3284         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
3285         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
3286         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
3287         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
3288         * as/link/hc08/conf.mk,
3289         * configure,
3290         * configure.in,
3291         * Makefile.in,
3292         * sdcc.dsw: moved hc08 linker to as/link/hc08
3293         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
3294         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
3295         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
3296         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
3297         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
3298         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
3299         * as/link/mcs51/aslink.dsp,
3300         * as/link/mcs51/Makefile.in: factored out the common files
3301         * as/hc08/lkstore.c: deleted, use the one already in as/link/
3302         * as/clean.mk: extra cleaning common files
3303         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
3304         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
3305         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
3306
3307 2006-10-29 Raphael Neider <rneider AT web.de>
3308
3309         * src/pic/ralloc.c (newReg): create aliases for registers with
3310           multiple names to fix #1579535 and #1584001,
3311           (regWithIdx,dirregWithName): resolve aliases on lookup
3312         * src/pic/pcode.c (DoBankSelect): die with error message on failing
3313           bankselect
3314         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
3315           to prevent build errors on small devices
3316
3317 2006-10-28 Raphael Neider <rneider AT web.de>
3318
3319         * src/pic/gen.c (genFunction,genCall): drop "same code page"
3320           assumption within interrupt handlers, fixes #1584940
3321         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
3322           "emitted" to avoid emitting them again in udata
3323
3324 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3325
3326         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
3327         Removed.
3328
3329 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3330
3331         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
3332         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
3333         on/off CR to CRLF conversion.
3334
3335 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3336
3337         * doc/sdccman.lyx: updated IRQ section
3338
3339 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3340
3341         * device/lib/serial_io.c: removed
3342         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
3343         replacements for serial_io.c
3344
3345 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
3346
3347         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
3348
3349 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3350
3351         * device/lib/serial_io.c: Default putchar() and getchar() for
3352           mcs51 uses serial port.
3353
3354 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
3355
3356         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
3357
3358 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3359
3360         * support/regression/ports/mcs51/support.c: smaller
3361         _sdcc_external_startup()
3362         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
3363
3364 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
3365
3366         * device/lib/gbz80/crt0.s,
3367         * device/lib/gbz80/crt0_rle.s,
3368         * device/lib/gbz80/div.s,
3369         * device/lib/gbz80/fstubs.s,
3370         * device/lib/gbz80/heap.s,
3371         * device/lib/gbz80/mul.s,
3372         * device/lib/gbz80/putchar.s,
3373         * device/lib/gbz80/stubs.s,
3374         * device/lib/z80/crt0.s,
3375         * device/lib/z80/crt0_rle.s,
3376         * device/lib/z80/div.s,
3377         * device/lib/z80/fstubs.s,
3378         * device/lib/z80/heap.s,
3379         * device/lib/z80/mul.s,
3380         * device/lib/z80/putchar.s,
3381         * device/lib/z80/stubs.s: reverted, I was mistaken
3382
3383 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3384
3385         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
3386         * support/regression/ports/mcs51/support.c: removed race
3387         condition on TI in _putchar allowing to use serial port mode 0
3388
3389 2006-10-20 Borut Razem <borut.razem AT siol.net>
3390
3391         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
3392
3393 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
3394
3395         * device/lib/gbz80/crt0.s,
3396         * device/lib/gbz80/crt0_rle.s,
3397         * device/lib/gbz80/div.s,
3398         * device/lib/gbz80/fstubs.s,
3399         * device/lib/gbz80/heap.s,
3400         * device/lib/gbz80/mul.s,
3401         * device/lib/gbz80/putchar.s,
3402         * device/lib/gbz80/stubs.s,
3403         * device/lib/z80/crt0.s,
3404         * device/lib/z80/crt0_rle.s,
3405         * device/lib/z80/div.s,
3406         * device/lib/z80/fstubs.s,
3407         * device/lib/z80/heap.s,
3408         * device/lib/z80/mul.s,
3409         * device/lib/z80/putchar.s,
3410         * device/lib/z80/stubs.s: removed all leading underscores from area names
3411
3412 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
3413
3414         * support/regression/ports/mcs51/support.c: use highest baudrate so the
3415           regression tests are not waiting in the simulator for simulated
3416           transmission of debug output
3417
3418 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3419
3420         * device/lib/printf_large.c: slightly smaller
3421         * doc/sdccman.lyx: do not use spaces within html links
3422
3423 2006-10-16 Borut Razem <borut.razem AT siol.net>
3424
3425         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
3426           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
3427           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
3428           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
3429           debugger/mcs51/configure:
3430           [ 1185668 ] add gnu readline support to sdcdb - enabled
3431
3432 2006-10-16 Raphael Neider <rneider AT web.de>
3433
3434         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
3435           fixes #1577882, removes close to all banking optimizations
3436
3437 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
3438
3439         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
3440           variables in code memory
3441         * support/regression/tests/absolute.c: added test for this
3442
3443 2006-10-15 Raphael Neider <rneider AT web.de>
3444
3445         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
3446           devices,
3447           (BankSelect): emit BANKSEL before touching linker-placed regs,
3448           fixes #1570934
3449
3450 2006-10-10 Raphael Neider <rneider AT web.de>
3451
3452         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
3453         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
3454         * src/pic/main.c (_pic14_parseOptions),
3455         * src/pic/main.h: mostly reverted to previous state, now use results
3456             from SDCCmain.c's argument parsing
3457
3458 2006-10-10 Borut Razem <borut.razem AT siol.net>
3459
3460         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
3461           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
3462           [ 1185668 ] add gnu readline support to sdcdb -
3463           prepared for READLINE, not enabled yet,
3464           thanks to <tal.bav AT gmail.com>
3465
3466 2006-10-10 Raphael Neider <rneider AT web.de>
3467
3468         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
3469         * src/pic16/devices.inc,
3470         * device/include/pic16 (pic18f[24]620.h),
3471         * device/include/pic18fregs.h,
3472         * device/lib/pic16/pics.all,
3473         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
3474             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
3475             Gary Plumbridge and Anton Strobl
3476
3477 2006-10-10 Raphael Neider <rneider AT web.de>
3478
3479         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
3480           --stack-siz=NUM options to configure the argument passing stack
3481         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
3482         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
3483           (pic14_getSharebankSize): obey --stack-siz=NUM,
3484           (pic14_getSharebankAddress): obey --stack-loc=NUM
3485
3486 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3487
3488         * doc/sdccman.lyx: added to the manual
3489         * doc/figures/ddd_example.png: added (neither pdflatex nor
3490         most browsers seem to like the .eps file)
3491
3492 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
3493
3494         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
3495         to /tmp and /var/tmp acc. LSB
3496         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
3497         RESULT_TYPE_IFX
3498         * support/regression/tests/onebyte.c: added test
3499
3500 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3501
3502         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
3503
3504 2006-10-05 Borut Razem <borut.razem AT siol.net>
3505
3506         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
3507           thanks to dfulab:
3508           - sdcc.dsw: changed property eol-style to CRLF
3509           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
3510
3511 2006-10-04 Raphael Neider <rneider AT web.de>
3512
3513         * device/include/pic/{pic16f84.h,pic16f84a.h},
3514         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
3515           from patch #1522504, thanks to Robas Teodor
3516
3517 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
3518
3519         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
3520           fixes bug 1566015
3521
3522 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
3523
3524         * src/pic16/glue.c (pic16emitMaps),
3525         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
3526         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
3527         * device/lib/pic16/libc/string/memcpypgm2ram.c,
3528         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
3529           Philipp Krause
3530         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
3531         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
3532
3533 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3534
3535         * support/librarian/sdcclib.c: Added option -l.
3536         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
3537           usage totals.
3538         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
3539           using Windows command prompt.
3540
3541 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
3542
3543         * device/lib/libsdcc.lib: added module rand
3544         * src/ds390/ralloc.c (rematStr),
3545         * src/hc08/ralloc.c (rematStr),
3546         * src/mcs51/ralloc.c (rematStr),
3547         * src/z80/ralloc.c (rematStr): made output more consistent
3548         * src/mcs51/gen.c: cosmetic changes
3549
3550 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
3551
3552         * src/port.h: added mem.cabs_name to PORT
3553         * src/ds390/main.c,
3554         * src/hc08/main.c,
3555         * src/mcs51/main.c,
3556         * src/pic16/main.c,
3557         * src/pic/main.c,
3558         * src/xa51/main.c,
3559         * src/z80/main.c: added cabs_name initializers
3560         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
3561           constants
3562           (emitMaps): emit absolutes in code memory into cabs_name
3563         * src/SDCCmem.c,
3564         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
3565         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
3566         * support/regression/fwk/include/testfwk.h: added define for at
3567         * support/regression/tests/absolute.c: added, new
3568
3569 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
3570
3571         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
3572           optimizations, see also patch 887161 by Stas Sergeev
3573         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
3574           to be necessary anymore,
3575           (102, 103, 104, 127): renamed all occurances of bp to _bp
3576
3577 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
3578
3579         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
3580           thanks Weston T. Schmidt for patch 1555221
3581         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
3582         * src/SDCCicode.c(geniCodeMultiply): small optimization
3583
3584 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
3585
3586         * device/include/stdlib.h: added rand prototypes
3587         * device/lib/rand.c: new, added
3588         * device/lib/Makefile.in: added rand.c
3589         * src/z80/peeph.def,
3590         * src/z80/peeph-gbz80.def,
3591         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
3592
3593 2006-09-20 Raphael Neider <rneider AT web.de>
3594
3595         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
3596
3597 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
3598
3599         * as/link/aslink.h: cosmetic changes
3600         * as/link/mcs51/Makefile.in,
3601         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
3602
3603 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
3604
3605         * as/link/aslink.h,
3606         * as/link/mcs51/aslink.h,
3607         * as/link/z80/aslink.h: merged and moved to as/link/
3608         * as/link/lkstore.c,
3609         * as/link/mcs51/lkstore.c: moved to as/link/
3610         * as/link/clean.mk: remove *.o
3611         * as/link/mcs51/alloc.h: deleted
3612         * as/link/mcs51/lkarea.c: added lnksect prototype
3613         * as/link/mcs51/lkdata.c,
3614         * as/link/mcs51/lklex.c,
3615         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
3616         * as/link/mcs51/lkmem.c,
3617         * as/link/mcs51/lknoice.c: removed include strcmpi.h
3618         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
3619         * as/link/mcs51/aslink.dsp,
3620         * as/link/mcs51/Makefile.aslink,
3621         * as/link/mcs51/Makefile.bcc,
3622         * as/link/mcs51/Makefile.in: updated for moved files
3623         * as/link/z80/lkarea.c,
3624         * as/link/z80/lkhead.c,
3625         * as/link/z80/lklex.c,
3626         * as/link/z80/lklibr.c,
3627         * as/link/z80/lklist.c,
3628         * as/link/z80/lkmain.c,
3629         * as/link/z80/lkrloc.c,
3630         * as/link/z80/lksym.c: synced with mcs51
3631         * as/link/z80/lkdata.c,
3632         * as/link/z80/lkeval.c,
3633         * as/link/z80/lkihx.c,
3634         * as/link/z80/lks19.c: cosmetic changes
3635         * as/link/z80/Makefile.in,
3636         * as/link/z80/linkgbz80.dsp,
3637         * as/link/z80/linkz80.dsp: updated for moved files
3638
3639 2006-09-16 Borut Razem <borut.razem AT siol.net>
3640
3641         * debugger/mcs51/sdcdb.c: partially fixed
3642           [ 1203664 ] sdcdb fails to open files w. two "." periods
3643         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
3644           debugger/mcs51/symtab.h: fixed indenting
3645         * configure.in, configure: up to date with latest Maarten's changes
3646
3647 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
3648
3649         as/link/mcs51
3650         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
3651         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
3652         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
3653         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
3654         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
3655         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
3656         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
3657         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
3658         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
3659         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
3660         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
3661         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
3662         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
3663         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
3664         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
3665         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
3666         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
3667         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
3668         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
3669         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
3670         as/link/mcs51/alloc.h,
3671         as/link/mcs51/clean.mk,
3672         as/link/mcs51/conf.mk,
3673         as/link/mcs51/Makefile.bcc,
3674         as/link/mcs51/Makefile.in,
3675         as/link/mcs51/readme.390,
3676         as/link/mcs51/strcmpi.c,
3677         as/link/mcs51/strcmpi.h,
3678         as/mcs51/clean.mk,
3679         as/mcs51/Makefile.bcc,
3680         as/mcs51/Makefile.in,
3681         configure,
3682         Makefile.in,
3683         sdcc.dsw: moved mcs51 linker to as/link/mcs51
3684
3685 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
3686
3687         * as/link,
3688         * as/link/Makefile.in,
3689         * as/link/z80/linkgbz80.dsp,
3690         * as/link/z80/linkz80.dsp,
3691         * configure,
3692         * link,
3693         * link/clean.mk,
3694         * link/Makefile.in,
3695         * link/README,
3696         * link/z80,
3697         * link/z80/aslink.h,
3698         * link/z80/clean.mk,
3699         * link/z80/conf.mk,
3700         * link/z80/linkgbz80.dsp,
3701         * link/z80/linkz80.dsp,
3702         * link/z80/lkarea.c,
3703         * link/z80/lkdata.c,
3704         * link/z80/lkeval.c,
3705         * link/z80/lkgb.c,
3706         * link/z80/lkgg.c,
3707         * link/z80/lkhead.c,
3708         * link/z80/lkihx.c,
3709         * link/z80/lklex.c,
3710         * link/z80/lklibr.c,
3711         * link/z80/lklist.c,
3712         * link/z80/lkmain.c,
3713         * link/z80/lkrloc.c,
3714         * link/z80/lks19.c,
3715         * link/z80/lksym.c,
3716         * link/z80/Makefile.in,
3717         * Makefile.in,
3718         * sdcc.dsw: moved link/ to as/link/
3719
3720 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
3721
3722         * as/mcs51/i51mch.c (machine): fixed warning
3723
3724 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
3725
3726         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
3727
3728 2006-09-09 Borut Razem <borut.razem AT siol.net>
3729
3730         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
3731           sdcdb WIN32 native port
3732         * src/clean.mk: fixed
3733
3734 2006-09-08 Borut Razem <borut.razem AT siol.net>
3735
3736         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
3737
3738 2006-09-08 Raphael Neider <rneider AT web.de>
3739
3740         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
3741         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
3742             to gplink to disable processor mismatch warning and to allow
3743             the use of devices with only aliased (shared) memory banks,
3744           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
3745
3746 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3747
3748         * doc/sdccman.lyx: Some re-formating plus example on using
3749           #pragma preproc_asm +/-
3750
3751 2006-09-07 Borut Razem <borut.razem AT siol.net>
3752
3753         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
3754           section
3755
3756 2006-09-06 Borut Razem <borut.razem AT siol.net>
3757
3758         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
3759           line at sdcc.nsi:153
3760         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
3761
3762 2006-09-05 Borut Razem <borut.razem AT siol.net>
3763
3764         * configure.in, configure: support for winsock2
3765         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
3766           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
3767           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
3768           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
3769           debugger/mcs51/symtab.h: sdcdb WIN32 native port
3770
3771 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
3772
3773         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
3774           and OP_DEFS
3775         * support/regression/tests/bug1551947.c: new, added
3776         * src/SDCCsymt.h: strings are char* not byte*
3777
3778 2006-09-05 Raphael Neider <rneider AT web.de>
3779
3780         * device/lib/pic16/libdev/pic18f4550.c,
3781           device/include/pic16/pic18f4550.h: added PORTD/TRISD
3782             declarations/definitions from patch #1520949
3783
3784 2006-09-05 Raphael Neider <rneider AT web.de>
3785
3786         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
3787           byte-aligned bitfields, fixes #1539278
3788
3789 2006-09-05 Raphael Neider <rneider AT web.de>
3790
3791         * src/pic/gen.c (genReceive): skip unreferenced arguments,
3792           fixes #1544120
3793
3794 2006-09-04 Borut Razem <borut.razem AT siol.net>
3795
3796         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
3797         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
3798           -mno-cygwin is a part of the compiler name
3799         * support/scripts/sdcc_mingw32: don't disable ucsim
3800
3801 2006-09-03 Borut Razem <borut.razem AT siol.net>
3802
3803         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
3804         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
3805
3806 2006-09-03 Raphael Neider <rneider AT web.de>
3807
3808         * src/pic/ralloc.c,
3809         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
3810           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
3811           fixes #1550049
3812
3813 2006-09-01 Borut Razem <borut.razem AT siol.net>
3814
3815         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
3816           to make ppc-osx happy
3817
3818 2006-08-31 Borut Razem <borut.razem AT siol.net>
3819
3820         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
3821         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
3822         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
3823         * support/regression/ports/ds390/spec.mk,
3824           support/regression/ports/mcs51/spec.mk,
3825           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
3826           To run regression tests in mingw environment:
3827           make DEV_NULL=NUL CC=gcc
3828
3829 2006-08-30 Borut Razem <borut.razem AT siol.net>
3830
3831         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
3832           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
3833           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
3834           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
3835           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
3836           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
3837           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
3838           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
3839           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
3840           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
3841           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
3842           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
3843           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
3844           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
3845           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
3846           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
3847           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
3848           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
3849           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
3850           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
3851           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
3852           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
3853           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
3854           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
3855           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
3856           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
3857           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
3858           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
3859           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
3860           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
3861           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
3862           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
3863           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
3864           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
3865           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
3866           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
3867           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
3868           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
3869           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
3870           ucsim WIN32 native port
3871
3872 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3873
3874         * doc/sdccman.lyx: added note on dynamic memory heap initialization
3875
3876 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
3877
3878         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
3879         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
3880
3881 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
3882
3883         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
3884         * support/regression/tests/bug1546986.c: new, added
3885         * as/mcs51/.cvsignore,
3886         * debugger/mcs51/.cvsignore,
3887         * src/.cvsignore: deleted
3888
3889 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3890
3891         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
3892           definitions)
3893
3894 2006-08-20 Borut Razem <borut.razem AT siol.net>
3895
3896         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
3897           removed cl_listen_console::match(), cl_console::match(),
3898           restructured cl_commander::proc_input()
3899
3900 2006-08-16 Borut Razem <borut.razem AT siol.net>
3901
3902         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
3903           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
3904           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
3905
3906 2006-08-14 Borut Razem <borut.razem AT siol.net>
3907
3908         * support/regression/Makefile.in,
3909           support/regression/ports/pic14/gpsim.cmd,
3910           support/regression/ports/pic14/spec.mk,
3911           support/regression/ports/pic14/support.c:
3912           added pic14 regression test
3913
3914 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
3915
3916         * as/doc/asxhtm.html: documented changed ABS behaviour
3917         * as/doc/README: fixed some typos
3918
3919 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
3920
3921         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
3922           not defined on host
3923
3924 2006-08-12 Borut Razem <borut.razem AT siol.net>
3925
3926         * support/regression/fwk/include/testfwk.h,
3927           support/regression/fwk/lib/testfwk.c,
3928           support/regression/generate-cases.py,
3929           support/regression/Makefile.in:
3930           regression test framework does not depend on function pointers and
3931           variable arguments
3932
3933 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
3934
3935         * device/include/stddef.h: c temporary hack to fix bug 1518273
3936
3937 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3938
3939         * device/include/mcs51/cc2510fx.h: added
3940         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
3941           to projects.
3942
3943 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
3944
3945         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
3946         * as/z80/Makefile.in: added strcmpi.c
3947         * as/z80/z80adr.c: added upper case registers and lower case conditionals
3948         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
3949
3950 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
3951
3952         * device/lib/gbz80/asm_strings.s,
3953         * device/lib/gbz80/crt0_rle.s,
3954         * device/lib/gbz80/div.s,
3955         * device/lib/gbz80/mul.s,
3956         * device/lib/gbz80/shift.s,
3957         * device/lib/z80/asm_strings.s,
3958         * device/lib/z80/crt0_rle.s,
3959         * device/lib/z80/div.s,
3960         * device/lib/z80/mul.s,
3961         * device/lib/z80/shift.s: changed to all lower case menmonics except the
3962           flags which are all upper case
3963
3964 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
3965
3966         * as/z80/asm.h: made CASE_SENSITIVE 1
3967         * link/z80/aslink.h: made CASE_SENSITIVE 1
3968         * src/z80/gen.c (throughout): made all conditionals upper case
3969         * support/regression/tests/bug1503067.c: new
3970
3971 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
3972
3973         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
3974           (shiftIntoPair): added case 2 for PAIR_IY,
3975           (setupToPreserveCarry): replaced parameters with iCode and check if
3976            PAIR_DE is in use to fix bug 1399290,
3977           (genPlus, genMinus): updated call to setupToPreserveCarry
3978         * support/regression/tests/bug1399290.c: new
3979
3980 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
3981
3982         * device/lib/Makefile.in (Z80SOURCES): enabled float support
3983         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
3984         * src/ds390/gen.c (shiftRLong),
3985         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
3986         * src/mcs51/gen.c (sameReg): changed to sameByte,
3987           (xch_a_aopGet): new,
3988           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
3989            shiftRLong): fixed bug 1533966
3990         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
3991           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
3992         * support/regression/Makefile.in: disabled z80, enabled ucz80
3993         * support/regression/tests/float_trans.c: enabled test for z80 and host
3994         * support/regression/tests/shifts2.c: new, for testing bug 1533966
3995
3996 2006-08-01 Borut Razem <borut.razem AT siol.net>
3997
3998         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
3999           comparison is always false due to limited range of data type
4000           on PPC64 machine (openpower-linux1) where "char = unsigned char"
4001
4002 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
4003
4004         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
4005         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
4006         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
4007         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
4008
4009 2006-07-31 Borut Razem <borut.razem AT siol.net>
4010
4011         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
4012           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
4013           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
4014           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
4015           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
4016           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
4017           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
4018           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
4019           enable ucsim mingw compilation. Serial port is disabled,
4020           since it uses termios.h API, which is not available on native
4021           WIN32
4022
4023 2006-07-31 Borut Razem <borut.razem AT siol.net>
4024
4025         * Small Device C Compiler 2.6.0 released
4026         * support/scripts/sdcc.nsi: added FULL_DOC option
4027         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
4028
4029 2006-07-28 Borut Razem <borut.razem AT siol.net>
4030
4031         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
4032         * doc/INSTALL.txt: updated
4033
4034 2006-07-27 Borut Razem <borut.razem AT siol.net>
4035
4036         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
4037           device/lib/pic/libdev/Makefile.in: fixed bug
4038           [ 1438354 ] pic libsdcc: distclean doesn't work
4039         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
4040           device/lib/pic16/libio/Makefile.in: fixed bug
4041           [ 1438344 ] pic16 lib: clean doesn't work properly
4042         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
4043
4044 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
4045
4046         * device/lib/pic/libsdcc/fsdiv.c,
4047         * device/lib/pic/libsdcc/fsmul.c,
4048         * device/lib/pic16/libsdcc/float/fsdiv.c,
4049         * device/lib/pic16/libsdcc/float/fsmul.c,
4050         * device/lib/_fsdiv.c,
4051         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
4052         * support/regression/tests/bug1520966.c: added
4053         * doc/knownbugs.html: removed [ 1520966 ] from the list
4054
4055 2006-07-25 Borut Razem <borut.razem AT siol.net>
4056
4057         * configure.in, configure, sdccconf_in.h: fixed bug
4058           [ 1519095 ] regression test onebyte.c fails on ppc64 host
4059         * doc/knownbugs.html: removed [ 1519095 ] from the list
4060
4061 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
4062
4063         * doc/knownbugs.html: added, contains list of known bugs at release
4064         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
4065
4066 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
4067
4068         * device/include/mcs51/compiler.h: added SFRX for xdata based special
4069           function registers and corrected defaults with additional warning
4070         * device/lib/malloc.c: cosmetic changes
4071         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
4072         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
4073           (fillGaps): and used it
4074
4075 2006-07-20 Raphael Neider <rneider AT web.de>
4076
4077         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
4078           output unless SDCCPICDEBUG is set
4079         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
4080           output if SILENT is set
4081
4082 2006-07-11 Borut Razem <borut.razem AT siol.net>
4083
4084         * doc/README.txt: updated
4085
4086 2006-07-10 Borut Razem <borut.razem AT siol.net>
4087
4088         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
4089           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
4090           in WIN32 installation
4091         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
4092           release candidate 1
4093
4094 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
4095
4096         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
4097         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
4098
4099 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
4100
4101         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
4102
4103 2006-07-06 Borut Razem <borut.razem AT siol.net>
4104
4105         * support/regression/tests/bitfields.c:
4106           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
4107         * support/regression/tests/constantRange.c:
4108           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
4109
4110 2006-07-04 Borut Razem <borut.razem AT siol.net>
4111
4112         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
4113           src/port.mk,
4114           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
4115           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
4116           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
4117           reverted changes from 2006-07-03
4118         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
4119         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
4120           added CPPFLAGS, used by the host port
4121
4122 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
4123
4124         * support/regression/valdiag/tests/switch.c,
4125         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
4126         * support/regression/tests/libmullong.c: fixed for host
4127         * support/regression/ports/host/spec.mk: disable all warnings for host,
4128         SDCC runs with --less-pedantic too
4129
4130 2006-07-03 Borut Razem <borut.razem AT siol.net>
4131
4132         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
4133           defined CPPFLAGS
4134         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
4135         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
4136           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
4137           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
4138           include ../port.mk
4139         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
4140           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
4141           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
4142           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
4143
4144 2006-07-02 Raphael Neider <rneider AT web.de>
4145
4146         * src/pic16/devices.inc,
4147         * device/include/pic16/pic18fregs.h,
4148         * device/include/pic16/pic18f4550.h,
4149         * device/lib/pic16/pics.all,
4150         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
4151
4152 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
4153
4154         * as/hc08/lkaomf51.c (OutputName),
4155         * as/mcs51/lkaomf51.c (OutputName),
4156         * as/z80/asmain.c (asmbl),
4157         * src/ds390/main.c (asmLineNodeFromLineNode),
4158         * src/hc08/ralloc.c (hc08_assignRegisters),
4159         * src/mcs51/main.c (asmLineNodeFromLineNode),
4160         * src/xa51/ralloc.c (checkRegMask),
4161         * src/xa51/gen.c (emitcode),
4162         * src/z80/gen.c (_emit2),
4163         * src/SDCCast.c (searchLitOp),
4164         * src/SDCCglobl.h,
4165         * support/packihx/packihx.c,
4166         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
4167         * src/ds390/gen.c (aopPutUsesAcc),
4168         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
4169         * support/regression/tests/libmullong.c (mullong_wrapper),
4170         * src/SDCCsymt.c (powof2),
4171         * src/SDCCast.c,
4172         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
4173         * src/SDCCsymt.h: added TYPE_TARGET_*
4174         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
4175         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
4176         SDCCast because 1) header problems 2) this is the right place
4177         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
4178         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
4179         prototype
4180
4181 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
4182
4183         * src/SDCCicode.h: removed buggy semicolon in unused macro
4184         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
4185         search for previous definiton of auto symbols too,
4186         (findPrevUse): fixed logic of emitWarnings
4187
4188 2006-06-26 Raphael Neider <rneider AT web.de>
4189
4190         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
4191           PCLATH and PCLATU on interrupts, potentially fixes #1505141
4192
4193 2006-06-25 Raphael Neider <rneider AT web.de>
4194
4195         * device/lib/pic/libm: NEW, added math library functions
4196         * device/lib/pic/libsdcc: NEW; added float support functions
4197         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
4198         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
4199           NEW, added math related headers
4200         * device/include/asm/pic/features.h: NEW
4201         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
4202           (popGet): allow larger offsets for AOP_PCODE,
4203           (genDataPointerSet): handle literals explicitly, more debug output,
4204           (genAssign): fixed for float using aopLiteral ;-)
4205         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
4206           GOTO initialisation routine
4207         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
4208           flag on registers, fixes #1469043 (local variables do not work)
4209         * src/pic/main.c (_pic14_do_link),
4210         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
4211           available
4212
4213 2006-06-25 Borut Razem <borut.razem AT siol.net>
4214
4215         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
4216           characters printed (not including the trailing '\0' used to end
4217           output to strings). Problem detected in regression test bug-927659.c.
4218           NOTE: printf() family functions should return int instead
4219           unsigned int!
4220         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
4221           specifier are printed as themselves
4222         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
4223           support flags, width and precision specifiers
4224
4225 2006-06-24 Borut Razem <borut.razem AT siol.net>
4226
4227         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
4228           to the list of sdcc tagrets not supporting bit type
4229         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
4230           testfor pic16 due to bug:
4231           [ 1511794 ] pic16: regression test bug-895992.c fails
4232
4233 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
4234
4235         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
4236         * src/SDCCglue.c (initPointer), fixed bug 1496419
4237         * support/regression/tests/bug1496419.c: new, added
4238
4239 2006-06-22 Borut Razem <borut.razem AT siol.net>
4240
4241         * support/regression/ports/pic16/support.c: use gpsim usart module from
4242           libgpsim_modules library
4243
4244 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4245
4246         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
4247         IP0H to IPH0.
4248
4249 2006-06-19 Raphael Neider <rneider AT web.de>
4250
4251         * src/pic/glue.h,src/pic16/glue.h: added prototypes
4252         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
4253           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
4254           (pic14printExterns,pic14printPublics,pic16printPublics,
4255           pic16_printExterns): use new functions to emit symbols
4256           (picglue,pic16glue): emit publics before emitting externs
4257         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
4258           locally defined functions to avoid bug #1443651
4259         * support/regression/tests/bug-716242.c: removed pic16 workaround
4260         * support/regression/ports/pic16/spec.mk: ignore errors during build
4261
4262 2006-06-19 Raphael Neider <rneider AT web.de>
4263
4264         * src/pic/glue.h: added pic14aopLiteral prototype
4265         * src/pic/glue.c (pic14aopLiteral): return unsigned int
4266         * src/pic/gen.c: removed stdint.h dependency
4267           (aopGet): use Safe_strdup()
4268           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
4269           (genDataPointerSet): use pic14aopLiteral()
4270         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
4271           for pic16; thanks to Bernhard and Maarten
4272
4273 2006-06-18 Borut Razem <borut.razem AT siol.net>
4274
4275         * support/regression/tests/structflexarray.c: flexible array members
4276           not supported by gcc < 3
4277         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
4278           GUI tool by default
4279         * src/pic/gen.c: don't include [p]strdin.h on solaris
4280         * support/Util/pstdint.h: addad svn attributes
4281         * support/regression/tests/constantRange.c,
4282           support/regression/tests/rotate.c: include inttypes.h instead
4283           stdint.h on solaris, addad svn attributes
4284
4285 2006-06-18 Raphael Neider <rneider AT web.de>
4286
4287         * src/SDCCsymt.c (initCSupport): change return type of divschar to
4288           int for PIC16
4289         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
4290           (pic16_genMinusBits): simplified sign-extension
4291           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
4292             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
4293             adjusted to correctly handle mixed-signed operands, disabled
4294             now unused multiplciation routines
4295         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
4296           (assignResultValue): added argument denoting the size of the result
4297             as returned by the function (fixes upcasts in assigning from
4298             function calls: char foo(); int i = foo();)
4299           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
4300             function result to assignResultValue
4301           (genMult): disabled inlined multiplication code
4302           (genDiv): augmented to also handle the modulus operator, fixed to
4303             handle mixed-signed operands correctly
4304           (genMod): simply call genDiv, disabled unused code
4305           (genAssign): fixed missing (sign-)extension on result
4306         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
4307             valid char operands, allow signed operands for native code, added
4308             division and modulo operator handling
4309         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
4310
4311         As a consequence, onebyte.c (if split into two files) and muldiv.c
4312         pass regression tests.
4313
4314 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4315
4316         * doc/Makefile.in: two runs of makeindex seem needed to get
4317         correct page references in the index of sdccman.pdf
4318         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
4319
4320 2006-06-17 Borut Razem <borut.razem AT siol.net>
4321
4322         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
4323
4324 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4325
4326         * doc/sdccman.lyx: updated, added (porting source code, debugging),
4327         mentioned ec2drv and paulmon
4328
4329 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
4330
4331         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
4332           consecutive abs areas
4333           (find_empty_space, allocate_space): added map to handle codemap or
4334            xdatamap,
4335           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
4336            absolute idata and xdata
4337         * as/mcs51/lkmem.c (summary2): updated legend
4338
4339 2006-06-16 Raphael Neider <rneider AT web.de>
4340
4341         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
4342
4343 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
4344
4345         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
4346           1208515
4347         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
4348
4349 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
4350
4351         * src/port.h (struct PORT): added field gp_tags, to hold the tag
4352         value of generic pointers,
4353         * src/avr/main.c,
4354           src/ds390/main.c,
4355           src/hc08/main.c,
4356           src/izt/i186.c,
4357           src/izt/tlcs900h.c,
4358           src/mcs51/main.c,
4359           src/pic/main.c,
4360           src/pic16/main.c,
4361           src/xa51/main.c,
4362           src/z80/main.c: PORT structure, added elements for gp_tags field,
4363         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
4364         fields in the PORT structure of each port,
4365         * src/SDCCast.c (decorateType): allow processing of generic pointers
4366         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
4367         S_FIXED symbols
4368
4369 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
4370
4371         * link/z80/lkgb.c,
4372         * link/z80/lkgg.c,
4373         * src/pic16/gen.c,
4374         * src/pic16/main.c,
4375         * src/pic16/pcode.c,
4376         * src/pic/main.c,
4377         * src/pic/pcoderegs.c,
4378         * src/SDCCicode.c,
4379         * src/SDCCmain.c,
4380         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
4381           bug 1504689 on minGW
4382
4383 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4384
4385         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
4386
4387 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
4388
4389         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
4390
4391 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
4392
4393         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
4394           for optimization
4395
4396 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
4397
4398         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
4399         to a char variable. Fixed bug #1504211
4400         * device/include/pic16/adc.h,
4401         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
4402         and fixed bug #1364390
4403
4404 2006-06-10 Borut Razem <borut.razem AT siol.net>
4405
4406         * CVSROOT: removed the CVS left-over
4407
4408 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
4409
4410         * as/hc08/asmain.c (asexit),
4411         * as/hc08/lkmain.c (lkexit),
4412         * as/mcs51/asmain.c (asexit),
4413         * as/mcs51/lkmain.c (lkexit),
4414         * src/SDCCglue.c (DEFSETFUNC),
4415         * src/SDCCmain.c (linkEdit, assemble),
4416         * support/librarian/sdcclib.c (AddRel),
4417           replaced unlink() by standard C remove()
4418         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
4419         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
4420           gatherImplicitVariables): new, added to fix bug 608752,
4421           (createFunction): added gatherImplicitVariables()
4422         * src/SDCCast.h: added createRMW prototype
4423         * src/SDCCsymt.h (struct symbol): added infertype
4424         * support/regression/tests/bug608752.c: new, added
4425
4426 2006-06-10 Raphael Neider <rneider AT web.de>
4427
4428         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
4429           multibyte dummy reads (fixes #1503234)
4430
4431 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
4432
4433         * device/include/mcs51/compiler.h: new, added header file to enable
4434           creating common sfr definition header files for different compilers
4435
4436 2006-06-05 Raphael Neider <rneider AT web.de>
4437
4438         * src/pic16/{pcode.h,genarith.c}:
4439           introduced pCodeOp combining any two pCodeOps (previously only
4440           two register operands could be combined), removed pcop2 from
4441           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
4442         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
4443         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
4444           rewritten to use new PO_TWO_OPS
4445         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
4446         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
4447           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
4448           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
4449           (pic16_get_op): embraced return arg to allow #define return(x),
4450             added new case for combined opcodes
4451           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
4452           (pic16_pCode2str,pic16_getRegFrompCodeOp,
4453            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
4454
4455 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
4456
4457         * src/SDCCval.c (checkConstantRange): added
4458         * src/SDCCval.h: added checkConstantRange
4459         * support/Util/SDCCerr.c,
4460         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
4461         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
4462         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
4463         * src/SDCCast.c (decorateType): added checkConstantRange,
4464         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
4465         can be emitted with the correct always true/false warning,
4466         added optimization for double '!';
4467         result of decorateType() must be assigned back to the tree, because
4468         decorateType() can change the tree
4469         * src/SDCCicode.c (geniCodeLogic),
4470         (geniCodeAssign): replaced new checkConstantRange, added warnings,
4471         (checkConstantRange): removed, it was only a fragment which never
4472         emitted a warning
4473         * src/SDCCsymt.c (computeType): fixed promotion for
4474         "-1 < (unsigned bit) b"
4475         * src/pic/ralloc.c (packRegsForAssign),
4476         * src/pic16/ralloc.c (packRegsForAssign),
4477         * src/hc08/ralloc.c (packRegsForAssign),
4478         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
4479         from mcs51
4480         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
4481         * support/regression/tests/constantRange.c: added
4482         * support/valdiag/tests/constantRange.c: added
4483         * support/valdiag/valdiag.py: added -DPORT_HOST=1
4484
4485 2006-06-02 Borut Razem <borut.razem AT siol.net>
4486
4487         * support/regression/ports/pic16/support.c: increase stack size
4488           to 255 bytes
4489         * support/regression/Makefile.in: sort tests by name so that the
4490           resutlts can be compared on different machines / platforms
4491
4492 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
4493
4494         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
4495         * src/ds390/gen.c (emitLabel): new, added,
4496           (genDjnz): fixed stack overflow bug,
4497           (throughout): cosmetic changes to sync with mcs51/gen.c,
4498           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
4499         * src/mcs51/gen.c (genEndFunction): small optimization,
4500           (throughout): cosmetic changes to sync with ds390/gen.c
4501
4502 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
4503
4504         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
4505           (_print_format): fixed printing pointers
4506         * src/mcs51/gen.c (emitLabel, movb): new, added,
4507           (genAssign): small optimization,
4508           (genDjnz): fixed stack overflow bug,
4509           (throughout): replaced sprintf with SNPRINTF,
4510           replaced mcs51_regWithIdx with REG_WITH_INDEX,
4511           replaced emitcode("mov", "b,...") with MOVB(...),
4512           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
4513           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
4514         * src/mcs51/peeph.def: added rules 140 and 264
4515         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
4516           so they may get optimized into registers
4517
4518 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
4519
4520         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
4521           immediately when encountered,
4522           (printUsage): always use stderr even on windows
4523
4524 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
4525
4526         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
4527         (processParms): fixed bug #1247551
4528         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
4529         parseCmdLine, main): print '--version' to stdout,
4530         print 'help' to stdout if --help is given,
4531         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
4532         arguments are given; fixed --help
4533
4534 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
4535
4536         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
4537         * support/regression/tests/bug-1493710.c: added
4538
4539 2006-05-27 Borut Razem <borut.razem AT siol.net>
4540
4541         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
4542           static instead auto
4543         * support/regression/ports/pic16/support.c: increase stack size
4544           from default 64 bytes to 128 bytes
4545         * support/regression/tests/staticinit.c,
4546           support/regression/tests/float.c: regression tests fully enabled
4547           for pic16 port by putting the initialized data arrays into the code
4548           section
4549         * support/regression/ports/pic16/spec.mk: don't link default libraries.
4550           This was changed by mistake in the previous version.
4551
4552 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
4553
4554         * src/pic16/gen.c (genFunction, genEndFunction): some
4555         beautifications, fixed bug with falsely restoring FSR2 in large
4556         stack model, thanks to Beau E. Cox for reporting the bug
4557
4558 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
4559
4560         * debugger/mcs51/break.c,
4561         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
4562           use %p to print pointers, made address variables unsigned
4563         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
4564         * debugger/mcs51/symtab.c (parseSymbol): must return something
4565         * src/mcs51/gen.c (aopForSym): small optimization,
4566            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
4567           (freeAsmop): added missing break,
4568           (aopPut): removed parameter bvolatile, determine it inside the function,
4569           (saveRegisters, unsaveRegisters): small optimization,
4570           (genIpush): removed pointless check,
4571           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
4572           replaced sprintf with SNPRINTF,
4573           replaced strcpy with strncpyz,
4574           updated aopPut calls,
4575           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
4576         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
4577
4578 2006-05-24 Borut Razem <borut.razem AT siol.net>
4579
4580         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
4581           modification of test for the pic16 port, put the array to the code
4582           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
4583
4584 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4585
4586         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
4587         * support/Util/pstdint.h: added
4588
4589 2006-05-22 Borut Razem <borut.razem AT siol.net>
4590
4591         * src/regression/Makefile: removed bool2.c test, added -q linker option
4592         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
4593           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
4594           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
4595           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
4596           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
4597           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
4598           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
4599           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
4600           define SUPPORT_BIT_TYPES 0, removed unused bit variables
4601
4602 2006-05-22 Raphael Neider <rneider AT web.de>
4603
4604         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
4605           bug #1492360 (problematic due to generic pointers, see code)
4606
4607 2006-05-22 Borut Razem <borut.razem AT siol.net>
4608
4609         * support/regression/ports/pic16/specs.mk: removed stack size linker
4610           directive
4611         * support/regression/tests/array.c,
4612           support/regression/tests/bitopcse.c,
4613           support/regression/tests/bug-908454.c,
4614           support/regression/tests/malloc.c: modified for pic16 regression test
4615         * support/regression/tests/bitfields.c:
4616           pic16 - excluded bitfileds of size > 8
4617         * support/regression/tests/bp.c: pic16 - reduced data size
4618         * support/regression/tests/bug-221100.c: pic16 - reduced data size
4619         * support/regression/tests/bug-460010.c:
4620           pic16 - used the absolute address the fits in memory
4621         * support/regression/tests/bug-716242.c:
4622           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
4623         * support/regression/tests/float.c:
4624           pic16 - excluded - data size too big
4625         * support/regression/tests/onebyte.c:
4626           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
4627         * support/regression/tests/shifts.c:
4628           pic16 - function names probably have to differ in first X characters
4629           (gpasm limitation?)
4630         * support/regression/tests/staticinit.c:
4631           pic16 - excluded some tests due error: no target memory available for
4632           section ".idata"
4633
4634 2006-05-22 Borut Razem <borut.razem AT siol.net>
4635
4636         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
4637           second try. Thanks Stas Sergeev once more.
4638
4639 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
4640
4641         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
4642           (genLeftShift, genRightShift): fixed bug 1491627
4643         * src/hc08/peeph.def (rules 7, 8.x): added
4644         * support/regression/tests/shifts.c (ShiftLeftByParam,
4645           ShiftRightByParam, testShiftByParam): added to test variable shifting
4646
4647 2006-05-20 Raphael Neider <rneider AT web.de>
4648
4649         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
4650         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
4651           (allocReg): add only new registers to dynAllocRegs,
4652           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
4653             #1489055, #1445850, and probably #1483693
4654
4655 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
4656
4657         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
4658         bug in for-loop that didn't emit the last of CONFIG and ID registers
4659
4660 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
4661
4662         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
4663           with offset
4664         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
4665           1489016, 1434401 and 1490124
4666         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
4667           1489016, 1434401 and 1490124
4668
4669 2006-05-17 Borut Razem <borut.razem AT siol.net>
4670
4671         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
4672           thanks Stas Sergeev
4673
4674 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
4675
4676         * device/include/mcs51/P89c51RD2.h,
4677         * device/include/mcs51/P89LPC901.h,
4678         * device/include/mcs51/P89LPC922.h,
4679         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
4680
4681 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
4682
4683         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
4684         to fix missing stack pragma in compiled binary object file,
4685
4686 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
4687
4688         * support/packihx/configure.in,
4689         * support/packihx/configure: removed warning, autoconf >= 2.5x can
4690         determine sizeof basic types even while cross compiling
4691
4692 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
4693
4694         * src/avr/gen.c (aopop),
4695         * src/ds390/gen.c (aopOp),
4696         * src/hc08/gen.c (aopOp),
4697         * src/mcs51/gen.c (aopop),
4698         * src/pic16/gen.c (pic16_aopOp),
4699         * src/pic/gen.c (aopOp),
4700         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
4701         if size of operand is smaller than spill location
4702
4703 2006-05-12 Borut Razem <borut.razem AT siol.net>
4704
4705         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
4706           have to have CR/LF line endings even if they are checked out on *nix
4707           or on WIN32 in cygwin binmode
4708
4709 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
4710
4711         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
4712         * device/include/ds80c390.h: added sfr16 definitions
4713         * src/ds390/gen.c,
4714         * src/ds390/gen.h,
4715         * src/ds390/main.c,
4716         * src/ds390/ralloc.c,
4717         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
4718           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
4719           bit returning functions
4720         * support/regression/tests/sfr16.c: enabled test on ds390
4721
4722 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4723
4724         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
4725         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
4726
4727 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
4728
4729         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
4730         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
4731           (cl_address_space constructor): removed expensive initialization,
4732           (cl_address_space::get_cell): extended for late initialization,
4733           (cl_address_space::*): use late initialization,
4734           (cl_address_decoder::activate): removed expensive initialization,
4735           This reduced regression test running time by 25%
4736
4737 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
4738
4739         * packihx/,
4740         * configure.in,
4741         * configure,
4742         * sdcc.dsw,
4743         * Makefile.bcc,
4744         * Makefile.in,
4745         * support/packihx/Makefile.in,
4746         * support/packihx/clean.mk,
4747         * support/packihx/Makefile.bcc,
4748         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
4749
4750 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4751
4752         * src/SDCCval.c (valNot): fix for regression test failure
4753           of not.c on big endian hosts
4754
4755 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
4756
4757         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
4758
4759 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4760
4761         * device/lib/mcs51/Makefile.in: changed string comparison operator
4762           to = for POSIX compliance; == is bash extension
4763
4764 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
4765
4766         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
4767           kosmonaut_pirx
4768
4769 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
4770
4771         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
4772         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
4773         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
4774         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
4775         bug report #1478657,
4776
4777 2006-05-05 Borut Razem <borut.razem AT siol.net>
4778
4779         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
4780           making the html
4781
4782 2006-05-02 Borut Razem <borut.razem AT siol.net>
4783
4784         * doc/Makefile.in: removed *.ind dependency since there is no rule to
4785           create *.ind, which made make to fail if invoked with -j 2
4786
4787 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
4788
4789         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
4790           Hubert Sack for patch 1479782
4791
4792 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
4793
4794         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
4795
4796 2006-05-01 Raphael Neider <rneider AT web.de>
4797
4798         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
4799           (create_pic): store only prefix-free device name,
4800           (init_pic): check for device names with "16" prefix,
4801           (list_valid_pics),
4802         * src/pic/device.h (struct PIC_device),
4803         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
4804             stored device name,
4805         * device/include/pic/pic12f{635,675,629,683}.h,
4806         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
4807         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
4808         * device/include/pic/pic16f505.h,
4809         * device/lib/pic/libdev/pic16f505.c: removed
4810         * device/include/pic/pic14devices.txt: added support for pic12f
4811             devices, removed unsupported non 16-bit devices
4812             [above changes provided by patch from Zik Saleeba]
4813         * src/pic/*, src/pic16/*, device/include/pic16/*,
4814           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
4815
4816 2006-05-01 Borut Razem <borut.razem AT siol.net>
4817
4818         * configure.in, configure, doc/Makefile.in:
4819           sync with nightly build makefile - latex, dvipdf and dvips
4820           not needed any more
4821
4822 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
4823
4824         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
4825         in the library source
4826
4827 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
4828
4829         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
4830
4831 2006-04-28 Raphael Neider <rneider AT web.de>
4832
4833         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
4834         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
4835           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
4836         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
4837
4838 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
4839
4840         * device/lib/pic/libdev/Makefile.in,
4841         * device/lib/hc08/Makefile.in,
4842         * device/lib/gbz80/Makefile.in,
4843         * device/lib/z80/Makefile.in,
4844         * device/lib/ds390/Makefile.in,
4845         * device/lib/ds400/Makefile.in: added srcdir to include search path,
4846         thanks to Borut for the bug report
4847         * configure.in,
4848         * configure: always create doc/Makefile independent from --enable-doc
4849         * Makefile.in: always install from directory doc independent from
4850         --enable-doc
4851         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
4852         removed
4853         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
4854         * doc/Makefile.in: install *.txt if present
4855         * device/include/Makefile.in (install): added installation of pic/*.inc
4856         and pic/*.txt files again, they were erroneously removed
4857
4858 2006-04-28 Raphael Neider <rneider AT web.de>
4859
4860         * src/pic/{gen.c,main.h,pcode.c},
4861         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
4862             concerning signedness with casts
4863
4864 2006-04-28 Raphael Neider <rneider AT web.de>
4865
4866         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
4867             definition of an interrupt handler,
4868         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
4869             interrupt handler stuff from picglue() to separate routine,
4870           (picglue): enabled definition of intr handlers in files w/o main()
4871
4872 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
4873
4874         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
4875           compilation with MSVC 2005 Express Edition (VC8)
4876
4877 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
4878
4879         * device/lib/Makefile: fixed build of gbz80 lib
4880
4881 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
4882
4883         * support/regression/tests/bug-460010.c,
4884         * support/regression/tests/bug-524691.c,
4885         * support/regression/tests/bug-716242.c: removed conditional defines
4886           that are already in testfwk.h
4887
4888 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
4889
4890         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
4891           (AccAXRsh1): added, shift right by 1,
4892           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
4893            AccAXLrl1
4894         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
4895
4896 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
4897
4898         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
4899         remove cast to same type
4900         * src/SDCCast.c (decorateType): fix for RFE 1475742,
4901         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
4902         * as/z80/Makefile,
4903         * link/z80/Makefile: removed, they have moved to
4904         Makefile.in files
4905         * configure,
4906         * configure.in: replaced duplicate message about ucsim by missing sdcpp
4907         * install-sh: fix bug #1204398 by setting umask 0022
4908         * device/lib/Makefile: separate build of z80 and gbz80 lib
4909
4910 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
4911
4912         Enabled VPATH feature: changed nearly all Makefiles (149 files).
4913         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
4914
4915         One basic decision: e.g. src/clean.mk includes further files. In order
4916         to make this work there are two solutions:
4917         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
4918           run configure on them. This way they can use
4919           'include $(srcdir)/port-clean.mk'
4920         - always include clean.mk by the Makefile at the same level. To avoid
4921           that `make clean` tries to include and build Makefile.dep the
4922           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
4923           implemented, because now even `make uninstall` doesn't create
4924           Makefile.in. clean.mk could be eliminated by pasting it in
4925           Makefile.in.
4926
4927         * debugger/mcs51/Makefile.in: build own objects from library sources
4928         (SLIB, SDCC) in current directory
4929
4930         * configure, configure.in: renamed --disable-device-lib-build in
4931         --disable-device-lib; added --enable-doc, the required tools are
4932         searched by configure; added result message; the toolchain for the
4933         belonging ports are now only built, if the port is enabled.
4934
4935         * support/regression/*: all output is written in directory gen, because
4936         the fwk and ports directories don't livet in the build tree using vpath
4937
4938         * doc/sdccman.lyx: renamed --disable-device-lib-build to
4939         --disable-device-lib, added --enable-doc, added section VPATH
4940
4941         * sim/ucsim/configure.in,
4942         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
4943         z80 are enabled by default
4944
4945 2006-04-24 Raphael Neider <rneider AT web.de>
4946
4947         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
4948             to config word, "pic14_"-prefixed some extern functions
4949           (pic14_emitConfigWord): emit __config directive(s) if assignment to
4950             config word has been found
4951         * src/pic/device.h: added prototypes
4952         * src/pic/pcode.c: added "pic14_"-prefix where needed
4953         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
4954             fixup
4955         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
4956             words,
4957           (pic14emitRegularMap): ignore config words,
4958           (pic14createInterruptVect): moved generating __config directives away
4959           (picglue): have __config directives emitted
4960
4961 2006-04-24 Borut Razem <borut.razem AT siol.net>
4962
4963         * doc/Makefile: sync with nightly build makefile
4964
4965 2006-04-24 Raphael Neider <rneider AT web.de>
4966
4967         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
4968             registers that have not been assigned proper liveranges,
4969             fixes #1469504 and #1474602,
4970           (pCodeRegOptimizeRegUsage): fixed typo in comment
4971
4972 2006-04-24 Borut Razem <borut.razem AT siol.net>
4973
4974         * device/examples/main8051.c: deleted - it was removed from CVS
4975           24.mar.2000 and after that modified 18.feb.2001, so it reappered
4976           after the transition to Subversion
4977         * src/SDCCalloc.h: deleted - it was removed  from CVS
4978           3.feb.2001 and after that modified 18.feb.2001, so it reappered
4979           after the transition to Subversion
4980         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
4981           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
4982           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
4983           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
4984
4985 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
4986
4987         * as/asx8051.dsp: added mcs51/strcmpi.h
4988         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
4989         * as/hc08/aslink.h: updated lnksect prototype
4990         * as/hc08/asm.h,
4991         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
4992         * as/hc08/asmain.c,
4993         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
4994           (newdot): handle A_ABS
4995         * as/hc08/asout.c,
4996         * as/mcs51/asout.c (outarea): output address
4997         * as/hc08/lkaomf51.c,
4998         * as/mcs51/lkaomf51.c: disabled unused array UsageType
4999         * as/hc08/m08pst.c,
5000         * as/mcs51/i51pst.c,
5001         * as/z80/z80pst.c: "ABS" is not A_OVR
5002         * as/hc08/lkarea.c (newarea): read a_addr,
5003           (lnkarea): added codemap array, sort absolute areas to the front,
5004            combine all GSINITx/GSFINAL,
5005           (find_empty_space, allocate_space): new functions,
5006           (lnksect): return next address, handle absolute sections
5007         * as/mcs51/lkarea.c (newarea): read a_addr,
5008           lnksect2 prototype changed,
5009           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
5010           (find_empty_space, allocate_space): new, factored out of lnksect2,
5011           (lnksect2): return next address, handle absolute sections
5012         * as/hc08/lkhead.c,
5013         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
5014         * as/hc08/lklibr.c (addfile, fndsym),
5015         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
5016           index out of range and detect both '\' and '/'
5017         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
5018         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
5019           regression tests (ds390 cannot return bool yet)
5020         * doc/sdccman.lyx: changed version number, document changed --no-peep,
5021           document critical interrupts on z80, document changed SDCC define
5022         * src/asm.c (_asxxxx_mapping): fixed .org directive,
5023           (_a390_mapping): added .org directive
5024         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
5025           (genMultOneByte): fixed warnings
5026         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
5027           ones
5028         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
5029         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
5030           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
5031         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
5032         * src/pic16/main.c: removed newReg prototype
5033         * src/pic16/pcode.c,
5034         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
5035           warnings
5036         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
5037           ones
5038         * src/pic16/ralloc.c
5039         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
5040           to fix warnings
5041         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
5042           from short to PIC_OPTYPE
5043         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
5044         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
5045           optype from short to PIC_OPTYPE
5046         * src/port.h: made int_size unsigned to fix warnings
5047         * src/SDCC.y: fixed warning on MSVC
5048         * src/SDCCicode.c (getArraySizePtr): return unsigned int
5049         * src/SDCCopt.c (convertToFcall): fixed warnings
5050         * src/SDCCsymt.h: removed double prototype for genSymName
5051         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
5052           offset int to fix warnings
5053
5054 2006-04-22 Borut Razem <borut.razem AT siol.net>
5055
5056         * doc/sdccman.lyx, */Makefile, */Makefile.in:
5057           references to CVS replaced with Subversion
5058
5059 2006-04-21 Borut Razem <borut.razem AT siol.net>
5060
5061         * doc/sdccman.lyx, */Makefile, */Makefile.in:
5062           references to CVS replaced with Subversion
5063
5064 2006-04-19 Borut Razem <borut.razem AT siol.net>
5065
5066         * src/version.awk: adapted for svn
5067         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
5068           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
5069           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
5070           /binutils-avr/etc/*.vi, *.jin: removed all properties
5071           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
5072
5073 2006-04-19 Borut Razem <borut.razem AT siol.net>
5074
5075         * CVS to Subversion migration completed
5076
5077 2006-04-18 Borut Razem <borut.razem AT siol.net>
5078
5079         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
5080           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
5081
5082 2006-04-17 Borut Razem <borut.razem AT siol.net>
5083
5084         * device/include/Makefile.in: added pic/*.inc to the installation
5085
5086 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
5087
5088         * support/regression/collate-results.py: fixed output in case of
5089         a valdiag error
5090         * support/regression/generate-cases.py: fixed splitting of pathnames
5091         with dots
5092         * as/hc08/lklibr.c (addfile),
5093         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
5094
5095 2006-04-11 Raphael Neider <rneider AT web.de>
5096
5097         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
5098         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
5099         * src/pic16/pcode.c (assignValnums): fixed #1460578
5100
5101 2006-04-11 Raphael Neider <rneider AT web.de>
5102
5103         * device/lib/pic/libdev/*.c,
5104         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
5105           fixes #1468739, enables compilation in --std-c99 mode
5106         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
5107
5108 2006-04-11 Raphael Neider <rneider AT web.de>
5109
5110         * src/pic/device.c (find_device): removed debug output
5111           (list_valid_pics): enabled verbose listing of supported devices
5112         * device/include/stdbool.h: define bool as char for pic14/16 as well
5113
5114 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5115
5116         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
5117
5118 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
5119
5120         * .version: bumped version to 2.5.6
5121         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
5122
5123 2006-04-06 Raphael Neider <rneider AT web.de>
5124
5125         * .version: bumped version to 2.5.6 (pic14 ABI changed)
5126         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
5127         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
5128           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
5129             pic14_constructAbsMap
5130           (pic14printPublics): declare absolute global symbols as global
5131           (pic14createInterruptVect),
5132         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
5133           (newReg): assume new registers unused, use correct name in
5134             hashtable (reg->name instead of name), more debugLog output
5135         * src/pic/device.h (PIC_device): added fields for verbose output
5136         * src/pic/device.c: moved device definition to pic14devices.txt,
5137             added routines for runtime parsing of pic14devices.txt,
5138             added support for second config word
5139         * src/pic/main.c (_process_pragma): removed #pragma maxram,
5140           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
5141           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
5142           (_pic14_parseOptions): moved pCodeInitRegisters here
5143           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
5144         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
5145           (pCodeInitRegisters): rewrapped comments, perpared new approach to
5146             handling the pseudo stack
5147         * device/lib/Makefile.in: ignore failures in objects-pic16,
5148         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
5149         * device/lib/pic/NEWS: document new dependency on picXXX.lib
5150         * device/lib/pic/Makefile.subdir,
5151         * device/lib/pic16/Makefile.subdir: improved clean rules
5152         * device/lib/pic/libdev/: NEW, pic14 device libraries
5153         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
5154         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
5155         * device/include/Makefile.in: create subdir and install pic14 headers
5156         * device/include/pic/p16f_common.inc: removed unused declarations
5157         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
5158             PICs from inc2h.pl v1.6,
5159             replaced BIT_AT macros with struct declarations
5160         * device/include/pic/pic14devices.txt: definition of supported devices,
5161             all above improvements contributed by Zik Saleeba, thanks
5162         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
5163         * support/scripts/sdcc.nsi: also install pic14 device libraries and
5164             headers
5165
5166 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
5167
5168         * device/include/mcs51/c8051f410.h: added interrupt numbers,
5169         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
5170           thanks to Charles Olds
5171
5172 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5173
5174         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
5175
5176 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
5177
5178         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
5179         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
5180         * support/regression/bug1464657.c: added, new test
5181
5182 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5183
5184         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
5185           version number
5186
5187 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5188
5189         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
5190           --no-peep and --peep-file <file> are used don't use default rules but
5191           do use the <file>
5192
5193 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5194
5195         * src/mcs51/gen.c (genCall): fixed bug 1457608
5196
5197 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5198
5199         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
5200         changes seem to cause (trigger?) problems with the build system.
5201
5202 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
5203
5204         * src/SDCCpeeph.c (operandsLiteral): new, added,
5205           (callFuncByName): inserted operandsLiteral
5206         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
5207
5208 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5209
5210         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
5211         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
5212
5213 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
5214
5215         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
5216           implemented patch 1120823 Thanks to Willy De la Court (normal
5217           interrupts need an interrupt number now if they are made critical),
5218           and enabled nesting of critical functions though not for gbz80
5219           (genCritical, genEndCritical): added functions
5220           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
5221         * src/z80/mappings.i: added "ei" to all mappings
5222
5223 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5224
5225         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
5226         submitted by the Debian SDCC maintainer Aurelien Jarno:
5227         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
5228         archive with gcc 4.1 on mips and wrote the patch"
5229
5230 2006-03-16 Raphael Neider <rneider AT web.de>
5231
5232         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
5233           the left operand is shorter than the result (c* = lit-c* + int),
5234           fixes bug #1450796
5235         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
5236           OP_SYMBOL
5237
5238 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
5239
5240         * src/.version: increased version number to 2.5.5
5241         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
5242         linking is done manually in pic16 port's _linkEdit,
5243         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
5244         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
5245         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
5246         allocate asmop as AOP_ACC,
5247         (aopForRemat): added parameter 'bool result' in function declaration,
5248         (pic16_aopGet): return AOP_ACC when accessing WREG,
5249         (pic16_popGetTempReg): minor modification,
5250         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
5251         'pic16_allocWithIdx',
5252         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
5253         calling function in absolute addresses,
5254         (genAssign): take into account AOP_ACC asmop,
5255         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
5256         * src/pic16/pcoderegs.c: some debug functions and lines added,
5257         * src/pic16/ralloc.c (decodeRegType): added but commented out,
5258         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
5259         register too,
5260         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
5261         call to allocReg, not by manually allocating a new one,
5262         (pic16_assignRegisters): now before going through the register
5263         allocating functions mark all registers as free. This eliminates some
5264         side effects resulting from peephole parser done earlier in the backbone
5265
5266 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
5267
5268         * src/SDCCicode.c (geniCodeLogic),
5269         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
5270
5271 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
5272
5273         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
5274           (genSend): bugfix, do not allocate and free twice,
5275           (shiftRLong): handle partially overlapping aops
5276         * support/regression/tests/bitopcse.c: fixed warning redefined idata
5277
5278 2006-03-08 Borut Razem <borut.razem AT siol.net>
5279
5280         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
5281           for pic16
5282
5283 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
5284
5285         * support/regression/tests/bug1409955.c: new, added
5286         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
5287         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
5288           (aopForSym, aopOp): increment asmop.allocated if reused,
5289           (freeAsmop): decrement asmop.allocated and check for zero instead of
5290           using asmop.freed,
5291           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
5292           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
5293            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
5294            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
5295            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
5296            genSignedRightShift, genRightShift, genDataPointerGet,
5297            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
5298            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
5299             in reverse order from allocation,
5300           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
5301             added swappedLR to keep track
5302         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
5303           pdata & code for GCC, z80, gbz80 & hc08
5304         * support/regression/tests/zeropad.c: moved defines to testfwk.h
5305
5306 2006-03-08 Raphael Neider <rneider AT web.de>
5307
5308         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
5309
5310 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
5311
5312         * device/include/mcs51/c8051f410.h: new SiLabs mcu
5313         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
5314         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
5315
5316 2006-03-06 Borut Razem <borut.razem AT siol.net>
5317
5318         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
5319           made the linker quiet
5320
5321 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
5322
5323         * src/pic16/gen.c (genPcall): fixed bug #1443644
5324         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
5325         which dumps before the function entry point a data byte which represents
5326         the number of the local variables used by the specified function, added
5327         'xinst' for initial support for Extended Instruction Support,
5328         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
5329         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
5330         port->fun_prefix anymore (may change later),
5331         (genFunction, genEndFunction): do not store/restore local registers for
5332         _main (this should take care the --main-return command line option in
5333         the future),
5334         (genOr): removed some legacy pic-port instructions,
5335         * src/pic16/genarith.c (genAddLit): re-enabled old code because
5336         performing operations with SFR's causes data to be written more than
5337         once to each SFR. Perhaps SFRs should be handled in special cases...
5338         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
5339         pcode.h
5340         * src/pic16/main.c (_process_pragma): stack bound checking did not take
5341         into account for stack starting position,
5342         (struct OPTIONS pic16_optionsTable): added command line argument
5343         --extended or -y for Extended Instruction Support,
5344         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
5345         (deassignLRs): *** perhaps the most important change, old 'for' code
5346         (commented out for reference), didn't account for some registers which
5347         were left marked 'not free' after a pointer operation. The change
5348         reduces register usage a lot in some cases
5349
5350 2006-03-04 Borut Razem <borut.razem AT siol.net>
5351
5352         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
5353           _clean
5354         * support/regression/tests/bug-524697.c: decreased array size for
5355           mcs51 to fit into the internal RAM
5356         * support/regression/Makefile.in: a little bit more verbose
5357
5358 2006-03-03 Borut Razem <borut.razem AT siol.net>
5359
5360         * support/regression/fwk/lib/testfwk.c,
5361           support/regression/fwk/include/testfwk.h: introduced function
5362           _prints(), nonrecursive _printn(), call _initEmu() from main()
5363         * support/regression/ports/gbz80/support.asm,
5364           support/regression/ports/ucz80/support.asm,
5365           support/regression/ports/z80/support.asm,
5366           support/regression/ports/ds390/support.c,
5367           support/regression/ports/hc08/support.c,
5368           support/regression/ports/host/support.c,
5369           support/regression/ports/mcs51/support.c,
5370           support/regression/ports/xa51/support.c: added empty _initEmu()
5371           function
5372         * support/regression/ports/pic16/gpsim.cmd,
5373           support/regression/ports/pic16/spec.mk,
5374           support/regression/ports/pic16/support.c,
5375           support/regression/Makefile.in: added pic16 regression test
5376
5377 2006-03-01 Raphael Neider <rneider AT web.de>
5378
5379         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
5380           genConstPointerGet): use safe way of generating MOVFF to cover
5381             literals as well as registers, fixes bug #1440527
5382         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
5383             dereference
5384           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
5385             more correctly, fixes bug #1232186
5386           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
5387         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
5388             gplink guess the correct processor in more cases, applied patch
5389             from Till Riedel attached to and fixing bug #1436552
5390
5391 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5392
5393         * support/regression/tests/array.c: added, contains check for #1434401
5394         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
5395
5396 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
5397
5398         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
5399         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
5400         * device/include/mcs51/c8051f326.h,
5401         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
5402         * device/include/mcs51/c8051f000.h,
5403         * device/include/mcs51/c8051f018.h,
5404         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
5405           PCON_IDLE,PCON_STOP and added sfr16 definitions
5406
5407 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
5408
5409         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
5410           genGetWord): fixed bug 1409955
5411
5412 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
5413
5414         * device/include/hc08/mc68hc908gp32.h,
5415         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
5416
5417 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
5418
5419         * src/SDCCast.c (constExprValue): return NULL if not a value
5420         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
5421         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
5422         * support/regression/tests/bitfields.c: enabled signed bitfield for all
5423
5424 2006-02-13 Borut Razem <borut.razem AT siol.net>
5425
5426         * src/regression/ptrarg.c: added, fails due to bug #1430967
5427         * src/regression/Makefile: ptrarg.c added, ...
5428
5429 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
5430
5431         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
5432         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
5433
5434 2006-02-11 Borut Razem <borut.razem AT siol.net>
5435
5436         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
5437           print "Processor: xxx" message to stdout only if --verbose
5438
5439 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
5440
5441         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
5442         * support/regression/tests/bug1426356.c: added
5443         * support/regression/tests/bitfields.c: removed 2 tests
5444
5445 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
5446
5447         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
5448         * device/include/mcs51/c8051f330.h,
5449         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
5450           PCON_IDLE,PCON_STOP and added sfr16 definitions
5451         * device/lib/_divsint.c,
5452         * device/lib/_divuint.c,
5453         * device/lib/_divulong.c,
5454         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
5455           register bank bug for small stackauto
5456
5457 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
5458
5459         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
5460
5461 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
5462
5463         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
5464         * all.dsp: corrected several bin paths
5465         * device/include/mcs51/c8051f120.h,
5466         * device/include/mcs51/c8051f300.h,
5467         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
5468           to PCON_IDLE,PCON_STOP
5469         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
5470         * device/lib/printf_large.c (output_float): fixed bug 1388703
5471         * support/regression/tests/bug1057979.c: added test for bug 1388703
5472
5473 2006-02-08 Raphael Neider <rneider AT web.de>
5474
5475         * src/pic/pcode.c (pciTRIS): fixed typo,
5476           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
5477           (LinkFlow): fixed handling of flows that end in a call,
5478           (ReuseReg): perform safety check earlier
5479         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
5480             to work with flows at the beginning of a pBlock,
5481             fixes #1426557 (Symbol not previously defined),
5482           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
5483             usage information
5484           (RemoveUnusedRegisters): update register usage info
5485         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
5486             created, reuse existing ones instead
5487         * src/pic/gen.c (genPcall): fixed #1424719
5488
5489 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
5490
5491         * link/z80/lkmain.c,
5492         * link/z80/lklex.c,
5493         * link/z80/lkdata.c,
5494         * link/z80/aslink.h: fixed build on current cygwin:
5495         replaced getline() by lk_getline()
5496
5497 2006-02-01 Borut Razem <borut.razem AT siol.net>
5498
5499         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
5500           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
5501           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
5502           src/regression/bool1.c, src/regression/bool2.c,
5503           src/regression/bool3.c, src/regression/call1.c,
5504           src/regression/compare.c, src/regression/compare10.c,
5505           src/regression/compare2.c, src/regression/compare3.c,
5506           src/regression/compare4.c, src/regression/compare5.c,
5507           src/regression/compare6.c, src/regression/compare7.c,
5508           src/regression/compare8.c, src/regression/compare9.c,
5509           src/regression/configword.c, src/regression/for.c,
5510           src/regression/inline.c, src/regression/mult1.c,
5511           src/regression/nestfor.c, src/regression/or1.c,
5512           src/regression/pointer1.c, src/regression/ptrfunc.c,
5513           src/regression/rotate1.c, src/regression/rotate2.c,
5514           src/regression/rotate3.c, src/regression/rotate4.c,
5515           src/regression/rotate5.c, src/regression/rotate6.c,
5516           src/regression/rotate7.c, src/regression/string1.c,
5517           src/regression/struct1.c, src/regression/sub.c,
5518           src/regression/sub2.c, src/regression/switch1.c,
5519           src/regression/while.c, src/regression/xor.c,
5520           src/regression/create_stc, src/regression/simulate,
5521           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
5522           regression tests
5523         * src/regression/gpsim_assert.h: added
5524
5525 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
5526
5527         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
5528         ((void (code *) (void)) 0) ();
5529         * as/hc08/aslex.c,
5530         * as/hc08/aslink.h,
5531         * as/hc08/asm.h,
5532         * as/hc08/asmain.c,
5533         * as/hc08/lkdata.c,
5534         * as/hc08/lklex.c,
5535         * as/hc08/lkmain.c,
5536         * as/mcs51/aslex.c,
5537         * as/mcs51/aslink.h,
5538         * as/mcs51/asm.h,
5539         * as/mcs51/asmain.c,
5540         * as/mcs51/lkdata.c,
5541         * as/mcs51/lklex.c,
5542         * as/mcs51/lkmain.c,
5543         * as/z80/aslex.c,
5544         * as/z80/asm.h,
5545         * as/z80/asmain.c: fixed build on current cygwin:
5546         replaced getline() by as_getline()
5547
5548 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
5549
5550         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
5551         declarator in the symbol chain
5552         * src/SDCCsymt.h,
5553         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
5554         parameter list for function pointers
5555         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
5556         * support/regression/tests/bug-716242.c: added
5557
5558 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
5559
5560         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
5561         offset if possible
5562         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
5563
5564 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
5565
5566         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
5567         inifinitely recurseable, added static
5568         * support/regression/tests/bug-1408066.c: added
5569
5570 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
5571
5572         * src/SDCCicode.h,
5573         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
5574         renamed, added possibility to create "postLoopLbl"-labels
5575         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
5576         newiTempLoopHeaderLabel
5577         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
5578         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
5579         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
5580         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
5581         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
5582         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
5583         (basicInduction): fixed bug #136564, made static,
5584         (loopInduction): changed parameter of basicInduction, made static,
5585         (addPostLoopBlock): added
5586         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
5587         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
5588         findLoopEndSeq
5589         * support/regression/tests/bug-136564.c: added
5590         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
5591         --std-sdcc99 to LIBSDCCFLAGS
5592
5593 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
5594
5595         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
5596         while loop
5597         * support/regression/tests/bug-1406131.c: added
5598
5599 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
5600
5601         * src/SDCCast.c (decorateType): fix promotion of unary minus
5602         * src/SDCCsymt.c (computeType): beautified
5603         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
5604         (valUnaryPM, valComplement): fix sign and promotion,
5605         (valNot): ANSI: result type is int (SDCC: unsigned char)
5606         * support/regression/tests/uminus.c: speedup by removing superflous
5607         test case 'int'
5608         * support/regression/tests/onebyte.c: added promotion and signedness
5609         tests for unary minus
5610         * support/regressions/tests/bug-477927.c: disable warning about
5611         uninitialized variables
5612         * support/regression/tests/not.c: added
5613
5614 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
5615
5616         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
5617         * src/mcs51/gen.c (gen51Code): show final register usage after
5618         fillGaps in asm with --i-code-in-asm
5619         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
5620         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
5621         incUsed, rliveClear, adjustIChain): made static,
5622         (setFromRange): excluded because it's unused,
5623         (findPrevUseSym, markWholeLoop): added,
5624         (findPrevUse): rewritten; fixes bug 895992; now a complete search
5625         through all branches of predecessors enables sdcc to emit the warning
5626         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
5627         (rlivePoint): made static, added parameter emitWarnings which is only
5628         true during the first run out of two,
5629         (findRecursiveSucc, findRecursivePred): removed,
5630         (computeLiveRanges): made static, added parameter emitWarnings,
5631         (dumpIcRlive): added for debugging only
5632         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
5633         removed prototype of setFromRange()
5634         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
5635         in call of computeLiveRanges()
5636         * support/regression/tests/bug-895992.c: added
5637         * support/regression/tests/bug-971834.c: added
5638         * support/valdiag/tests/bug-895992.c: added
5639         * support/valdiag/tests/bug-971834.c: added
5640
5641 2005-12-18 Raphael Neider <rneider AT web.de>
5642
5643         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
5644           (genUnpackBits): improved code for direct operands,
5645           (genPackBits): improved code for literal assignment to bitfields
5646             and for direct destination operands (no FSR indirection),
5647             prevented redundant AND, fixes #1362800,
5648           (AccLsh): added parameter to disable masking of the result
5649         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
5650           skip instructions with side-effects (like incfsz),
5651           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
5652         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
5653         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
5654           fixes #1375263
5655
5656 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
5657
5658         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
5659         volatile variables as spill location
5660
5661 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
5662
5663         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
5664         replacing literals
5665         * support/regression/tests/bug-1376320.c: added
5666
5667 2005-12-08 Raphael Neider <rneider AT web.de>
5668
5669         * src/pic/device.c: renamed is_shared to pic14_is_shared
5670         * src/pic/gen.c (genIfx): re-enabled handling of sbits
5671         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
5672           (is_valid_identifier): added for above workaround
5673
5674 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
5675
5676         * device/lib/Makefile.in: fixed to enable port-specific-objects
5677         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
5678           char, thanks Hubert Sack
5679         * doc/sdccman.lyx: documented --xstack-loc,
5680           elaborated a bit more on interrupts and pitfalls,
5681           removed "setjmp/longjmp unsupported",
5682           documented some unsupported C99 features
5683         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
5684         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
5685           if, thanks Hubert Sack
5686         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
5687         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
5688           make make_library
5689         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
5690           regression tests can report resource usage (rfe 700441)
5691         * support/regression/collate-results.py: report resource usage
5692         * support/regression/ports/ds390/spec.mk,
5693         * support/regression/ports/hc08/spec.mk,
5694         * support/regression/ports/mcs51/spec.mk,
5695         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
5696         * support/regression/ports/ds390/uCsim.cmd,
5697         * support/regression/ports/hc08/uCsim.cmd,
5698         * support/regression/ports/mcs51/uCsim.cmd,
5699         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
5700         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
5701           library, use the default one
5702         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
5703           building the library
5704
5705 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
5706
5707         * config.dsp: added dependency on .version and configure_vc.awk
5708         * device/include/setjmp.h: updated for --stack-auto and --xstack
5709         * device/include/mcs51/at89c51snd1c.h: corrected line endings
5710         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
5711         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
5712         * device/lib/libsdcc.lib: added _setjmp
5713         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
5714           (decorateType): fixed bug 1372851,
5715           (optimizeGetHbit): fixed warning
5716         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
5717           array initialisation
5718         * support/regression/tests/bug1057979.c: added test for bug 1358192
5719         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
5720
5721 2005-12-03 Borut Razem <borut.razem AT siol.net>
5722
5723         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
5724           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
5725
5726 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
5727
5728         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
5729         createIval): implement symbol independant "flexible array member",
5730         (createIvalCharPtr): implemented flexible array initialisation with a
5731         string
5732         * src/SDCCsymt.c (copyStruct): removed,
5733         (getSize): fixed misleading comment,
5734         (getAllocSize): removed, the additional allocation size is now in
5735         sym->flexArrayLength,
5736         (checkStructFlexArray): new, syntax checks for flexible array members,
5737         (compStructSize): added syntax checks for "flexible array members"
5738         (copyStruct): removed,
5739         (copyLinkChain): removed inefficient fix for bug 770487
5740         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
5741         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
5742         symbol->flexArrayLength
5743         * src/SDCCerr.c,
5744         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
5745         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
5746         * support/regression/tests/structflexarray.c: added
5747         * support/valdiag/tests/structflexiblearray.c: added
5748
5749 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
5750
5751         * src/SDCCast.c (decorateType): fixed bug 1368489
5752         * support/Util/SDCCerr.c,
5753         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
5754
5755 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5756
5757         * device/include/mcs51/at89c51snd1c.h: added file submitted by
5758           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
5759
5760 2005-11-27 Borut Razem <borut.razem AT siol.net>
5761
5762         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
5763           support/cpp2/mkdeps.h: added command line option
5764           -obj-ext=<extension> to SDCPP to define object file externion, used
5765           for generation of make dependencies (-M)
5766         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
5767
5768 2005-11-26 Borut Razem <borut.razem AT siol.net>
5769
5770         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
5771           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
5772           added pic and pic16 libraries
5773
5774 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5775
5776         * device/include/float.h: Corrected typo in prototype of __fsgt
5777
5778 2005-11-25 Borut Razem <borut.razem AT siol.net>
5779
5780         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
5781           added creation of model-mcs51-stack-auto libraries
5782
5783 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
5784
5785         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
5786         and fields-list too
5787         * src/SDCCast.c (createIvalArray): removed obsolete comment
5788
5789 2005-11-24 Borut Razem <borut.razem AT siol.net>
5790
5791         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
5792           added missing device/lib/mcs51/crt*.asm sources
5793
5794 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
5795
5796         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
5797
5798 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
5799
5800         * device/lib/_fs2schar.c,
5801         * device/lib/_fs2sint.c,
5802         * device/lib/_fs2slong.c: optimized inline asm
5803
5804 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5805
5806         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
5807           Better handling of floats between -1.0 and 0.0.
5808
5809 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5810
5811         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
5812           (the missing "if"s prohibited removal of redundant labels)
5813
5814 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5815
5816         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
5817           Properly convert floats between -1.0 and 0.0 to long, int, and char
5818           types (max integer value of negative floats tends to zero).
5819         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
5820           Removed changes made so to work properly with floats between
5821           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
5822           and _fs2char.c
5823
5824 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
5825
5826         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
5827         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
5828         (genCast) cosmetic change
5829         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
5830         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
5831         from mcs51
5832         * support/regression/tests/bitfields (testSignedBitfields): added
5833
5834 2005-11-18 Borut Razem <borut.razem AT siol.net>
5835
5836         * sdcc/device/lib/Makefile.in: remove all unnecessary files
5837         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
5838           introduced SILENT option to make building of pic16 libraries less
5839
5840 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5841
5842         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
5843           Now they work properly with floats between -1.0 and 0.0
5844         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
5845
5846 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
5847
5848         * src/SDCCicode.c (printOperand): added missing else
5849
5850 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
5851
5852         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
5853         reformatted for better readability
5854         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
5855         signed bitfields
5856
5857 2005-11-17 Borut Razem <borut.razem AT siol.net>
5858
5859         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
5860           introduced SILENT option to make building of pic16 libraries less
5861           verbose - used for nightly snapshot build
5862         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
5863           available on Win32 platforms.
5864         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
5865           medium, large, pic and pic16
5866
5867 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5868
5869         * device/lib/printf_large.c: Temporary patch for bug 1358192:
5870           printf("%f"...) sets fraction to zero.
5871
5872 2005-11-16 Raphael Neider <rneider AT web.de>
5873
5874         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
5875           fixes #1357221
5876         * src/pic/gen.c (genIfx): implemented for CARRY bit
5877         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
5878           to generic pointers, fixes #1357332,
5879           (pic16_movLit2f): NEW,
5880           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
5881
5882 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
5883
5884         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
5885
5886 2005-11-11 Raphael Neider <rneider AT web.de>
5887
5888         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
5889         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
5890           compute pointer's type from operand,
5891           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
5892           improved single bit reads, fixes bug #1353379
5893
5894 2005-11-09 Borut Razem <borut.razem AT siol.net>
5895
5896         * support/scripts/sdcc.nsi: added lib/pic to the package
5897
5898 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
5899
5900         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
5901
5902 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
5903
5904         * support/regression/tests/bug1348008.c: added
5905         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
5906         * support/regression/tests/bug1337835.c: updated comment
5907
5908 2005-11-06 Borut Razem <borut.razem AT siol.net>
5909
5910         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
5911           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
5912           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
5913           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
5914           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
5915           dynamic construction of cl_error_class and derivates - 2.nd try
5916
5917 2005-11-05 Borut Razem <borut.razem AT siol.net>
5918
5919         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
5920           bug, which caused Bus Errors on sparc solaris
5921
5922 2005-11-04 Borut Razem <borut.razem AT siol.net>
5923
5924         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
5925           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
5926           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
5927           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
5928           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
5929           and derivates to resolve the initialization problem on OSX
5930
5931 2005-11-02 Borut Razem <borut.razem AT siol.net>
5932
5933         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
5934           corrected typo - #include <winsock2.h>
5935
5936 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
5937
5938         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
5939           (_asxxxx_mapping): added org directive for future enhancements
5940
5941 2005-11-01 Borut Razem <borut.razem AT siol.net>
5942
5943         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
5944           enabled sockets on WIN32
5945         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
5946
5947 2005-10-31 Borut Razem <borut.razem AT siol.net>
5948
5949         * support/regression/generate-cases.py: escape backslashes in {testcase}:
5950           WIN32 backslash path delimiters should be escaped when used in C strings
5951         * support/regression/tests/bitfields.c: exclude failing assertions for
5952           __CYGWIN32__ and __MINGW32__ hosts
5953
5954 2005-10-30 Borut Razem <borut.razem AT siol.net>
5955
5956         * src/SDCCutil.c: corrected double comparison typo
5957
5958 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
5959
5960         * device/lib/medium/Makefile: added for new memory model medium
5961         * device/include/asm/mcs51/features.h: updated for medium/pdata
5962         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
5963           added Multiply & Accumulate sbit's and MAC0_PAGE define
5964         * device/include/mcs51/c8051f300.h: added sfr16 definitions
5965         * device/include/mcs51/c8051f310.h: added sfr16 definitions
5966         * device/lib/_mullong.c: update for medium model
5967         * device/lib/incl.mk: added medium model
5968         * doc/sdccman.lyx: documented medium model
5969         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
5970         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
5971         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
5972         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
5973           (allocParms): set SCLS and OCLS to pdata for medium model
5974         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
5975           for pdata,
5976           (powof2): return <0 if not power of 2
5977         * src/avr/gen.c (genBitWise): use updated powof2
5978         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
5979           (shiftR2Left2Result): small optimization in setup, save acc when storing,
5980           (shiftLLeftOrResult): use B if necessary
5981         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
5982         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
5983         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
5984         * support/regression/Makefile.in: added test-mcs51-medium
5985         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
5986
5987 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
5988
5989         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
5990         specifier unsigned
5991         * device/lib/time.c (mktime): fixed bug 1334315
5992
5993 2005-10-28 Raphael Neider <rneider AT web.de>
5994
5995         * device/include/pic/p16f_common.inc: added common declarations
5996         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
5997
5998 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
5999
6000         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
6001           (aopPutUsesAcc): added to predict accumulator use,
6002           (assignResultValue): save acc if necessary,
6003           (genMinusDec): store result if indirectly addressed,
6004           (genDivOneByte):  save acc if necessary,
6005           (movLeft2Result): bugfix if left already in acc,
6006           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
6007             attention to accumulator use (esp. pdata),
6008           (genReceive): receive pdata correctly
6009         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
6010         * src/SDCCicode.h: added isOperandInPagedSpace prototype
6011
6012 2005-10-27 Raphael Neider <rneider AT web.de>
6013
6014         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
6015
6016 2005-10-27 Raphael Neider <rneider AT web.de>
6017
6018         * .version: changed version to 2.5.4
6019         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
6020         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
6021           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
6022             arithmetics support routines
6023         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
6024         * device/lib/Makefile.in: also create installdir for pic
6025
6026         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
6027           pic14 port as well
6028         * src/pic/device.c (dump_sfr): rewritten to delegate register
6029           placement to the linker (use `extern sym' rather than sym EQU addr),
6030           (validAddress): fixed to check last specified address
6031         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
6032           (popGetLit): truncate literal value to 8 bit,
6033           (popGet): moved assert to more appropriate place
6034           (popGetExternal): create pCode operand from and mark the according
6035             symbol as being `extern'
6036           (popGetAddr): added sanity check on immediate's offset, provide
6037             GPOINTER tag on demand
6038           (aopPut): fixed for immediates,
6039           (mov2w_op): move operand's address or contents to WREG (depending on
6040             operand type), safer variant of mov2w,
6041           (movwf,call_libraryfunc): NEW, handy abbreviations,
6042           (get_argument_pcop,get_return_val_pcop,pass_argument,
6043           get_returnvalue): interface for accessing function parameters and
6044             return values,
6045           (assignResultValuei,genRet): use new parameter/return value interface
6046           (pic14_getDataSize): back to old version handling generic pointers,
6047           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
6048             provided implementation and/or fixed old one,
6049           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
6050             calls, removed legacy 8051 reference code
6051           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
6052           (loadSignToC): NEW, move the operands sign bit to CARRY,
6053           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
6054             genRightShiftSigned, accepts negative shift counts,
6055           (setup_fsr): load FSR and adjust IRP (indirect memory access),
6056           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
6057             generic pointers, __data pointers and __code pointers,
6058           (genUnpackBits,genPackBits): rewritten to work with generic pointers
6059             and signed bitfields, limit bitfields to 8 bit,
6060           (genDataPointerGet): fixed number of bytes read,
6061           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
6062           (genPointerGet,genPointerSet): fixed handling of __code pointers,
6063             pointers to constant data are no longer assumed to point to __code
6064             space, removed invalid pointer types,
6065           (bitpatternFromVal): retrieve the PICs representation of an integer
6066             or float literal,
6067           (genDataPointerSet): fixed assigning to po_immediate operands,
6068           (genGenPointerSet): implemented as library call,
6069           (genIfx): fixed incorrect condition,
6070           (genAddrOf): limit generic pointers' addresses to 2 bytes,
6071             provide GPOINTER tag according to destination's storage class,
6072           (genCast): added code to handle casting to generic pointers, added
6073             sign-/zero extension of the result
6074           (aop_isLitLike,op_isLitLike): fixed handling of immediates
6075         * src/pic/gen.h: added macros to access IRP bit in STATUS register
6076         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
6077           extend the result
6078         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
6079           address/register resides in the shared banks
6080           (emitSymbolToFile): improved to handle global and `pinned' symbols,
6081             put all variables into separate sections (have the linker arrange
6082             them)
6083           (picglue): put init code and interrupt handlers in separate sections
6084         * src/pic/main.c: added port specific options table, modified to PORT
6085           structure to make GPOINTERs 3 byte, added pic14_options
6086           (_pic14_do_link): private linking routine (update paths to libraries,
6087             add libsdcc.lib by default)
6088         * src/pic/main.h: declare pic14_options
6089         * src/pic/pcode.c: fixed instructions i/o relations,
6090           (RegCond): reverted to correct version,
6091           (newpCodeOpLit): truncate literals to 8 bit,
6092           (genericPrint): added debug output,
6093           (getRegFromInstruction): fixed for various operand types, simplified
6094           (BuildFlow): fixed broken handling of isntructions with labels
6095           (LinkFlow): start at last instruction in flow (skip trailing comments),
6096             pass the flow on to the next instruction after CALL
6097           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
6098           (insertPCodeInstruction): fixed inserting after a skip instruction,
6099           (DoBankSelect): fixed for labeled instructions
6100           (OptimizepBlock): honor --nopeep switch
6101           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
6102         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
6103         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
6104           (pCodeOptime2pCodes): allow disabling this optimization via
6105             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
6106             but is still buggy), started implementation of a dataflow based
6107             pCode optimization (CSE + dead code elimination)
6108           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
6109         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
6110           names are independant of the stack location and therefore portable across
6111           devices
6112
6113 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
6114
6115         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
6116           (selectSpil): fixed bug 1337835 by not spilling bit variables
6117         * support/regression/tests/bug1337835.c: added test for this bug
6118         * src/mcs51/peeph.def: restart after rule 3.c,
6119           addded rules 263.x to optimize loading constants
6120
6121 2005-10-26 Raphael Neider <rneider AT web.de>
6122
6123         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
6124         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
6125           (genAssign): emit warning when casting literals to generic pointer
6126             type, also applies when taking the address of a fixed variable,
6127           (genCast): improved casting to generic pointers
6128         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
6129           extern variables, added verbose error message
6130         * device/include/pic16/{string.h,errno.h}: added #pragma library c
6131
6132 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
6133
6134         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
6135         carry must be complemented too
6136         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
6137         could be emitted by genMinus
6138         * src/SDCCval.c (constVal): fixed bug 1305065
6139
6140 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
6141
6142         * src/SDCCast.c (addCast): added promotion for bit variables
6143         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
6144         promotion casts + optimisation
6145         (optimizeGetWord): fix warning 'i' might be used uninitialized
6146         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
6147         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
6148
6149 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
6150
6151         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
6152         all chars are promoted to int; promotion should be handled in SDCCast.c
6153
6154 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6155
6156         * device/lib/_strcmp.c: Fixed bug 1326457
6157
6158 2005-10-11 Raphael Neider <rneider AT web.de>
6159
6160         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
6161         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
6162
6163 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
6164
6165         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
6166         * support/regression/tests/sfr16.c: added test for the sfr32 bug
6167
6168 2005-10-04 Raphael Neider <rneider AT web.de>
6169
6170         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
6171           device/lib/pic16/pics.all: added pic18f1320
6172         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
6173
6174 2005-09-30 Raphael Neider <rneider AT web.de>
6175
6176         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
6177         * src/pic16/devices.inc: NEW, provides device descriptions
6178         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
6179
6180 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
6181
6182         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
6183           GETHBIT
6184
6185 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
6186
6187         * doc/sdccman.lyx: updated Highest Order Bit documentation,
6188           documented Any Order Bit, Higher Order Byte and Higher Order Word
6189         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
6190         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
6191           (optimizeGetAbit): new, to get any bit, not only the high bit,
6192           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
6193           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
6194           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
6195           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
6196             RIGHT_OP: also try GETBYTE, GETWORD optimization,
6197             GETABIT, GETBYTE, GETWORD: decorate them,
6198           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
6199           (ast_print): added GETABIT, GETBYTE, GETWORD
6200         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
6201         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
6202           (geniCodeBinary): new generic binary icode,
6203           (ast2iCode): added GETABIT, GETBYTE, GETWORD
6204         * src/port.h: updated comment for PORT.hasExtBitOp
6205         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
6206           (genGetByte): new, to get a single byte,
6207           (genGetWord): new, to get a word from a long,
6208           (gen51Code): added GETABIT, GETBYTE, GETWORD
6209         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
6210
6211 2005-09-23 Raphael Neider <rneider AT web.de>
6212
6213         * configure.in, configure: have device/lib/pic configured
6214         * device/lib/Makefile.in: added model-pic14
6215         * device/lib/clean.mk: added pic/ to clean rule
6216         * device/lib/pic: added rudimentary pic14 library providing support
6217           functions for multiplication/division/generic pointer access
6218         * src/SDCCopt.c (convilong): mark support functions as extern
6219           for pic14 port as well
6220         * src/pic/gen.c (genMult): added assertions,
6221           (genpic14Code): emit warning on unhandled iCodes
6222         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
6223         * src/pic/pcode.c (pCodeOpCopy),
6224         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
6225           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
6226           SFR_REGISTER}), made safe for future extensions
6227         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
6228           instructions even if preceeded by SKIP instructions (also remove
6229           them); removed unused code
6230         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
6231           prevents leaving parts of the structure uninitialized after copying
6232
6233 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
6234
6235         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
6236           ago by me
6237         * support/regression/tests/addsub.c: added test for the bug
6238
6239 2005-09-21 Raphael Neider <rneider AT web.de>
6240
6241         * device/include/pic16/pic18f1220.h,
6242           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
6243         * device/lib/pic16/Makefile.rules: added missing opening paren
6244         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
6245           are provided in genutils.c,
6246           (genUminusFloat,genUminus,genCmpEq): added asserts on different
6247           operand/result sizes,
6248           (genCmp): assert on NULL pointers first, then check deref'ed values
6249         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
6250           result size
6251
6252 2005-09-18 Raphael Neider <rneider AT web.de>
6253
6254         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
6255           as these are now unused,
6256           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
6257         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
6258           local, avoids uninitialized pointer dereference on r->name
6259         * src/pic16/ralloc.c (newReg): fixed indentation
6260
6261 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
6262
6263         * src/SDCCval.c (constVal): fixed bug 730366
6264         * support/Util/SDCCerr.c,
6265         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
6266
6267 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
6268
6269         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
6270
6271 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
6272
6273         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
6274
6275 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
6276
6277         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
6278           (hex2dec): made hex_digit unsigned char, removed ascii dependance
6279         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
6280           (hex2dec): made hex_digit unsigned char, removed ascii dependance
6281         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
6282         * packihx/packihx.c (hexDigit): made c unsigned char
6283         * as/mcs51/lklibr.c (fndsym),
6284         * link/z80/lkgb.c (gb),
6285         * link/z80/lklibr.c (fndsym),
6286         * link/z80/lkrloc.c (relr),
6287         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
6288         * src/SDCC.lex (checkCurrFile, process_pragma),
6289         * src/SDCCglue.c (spacesToUnderscores),
6290         * src/SDCCmain.c (setParseWithComma, processFile),
6291         * src/asm.c (tvsprintf, printCLine),
6292         * src/avr/gen.c (emitcode, aopPut),
6293         * src/ds390/gen.c (emitcode),
6294         * src/hc08/gen.c (emitcode, emitinline),
6295         * src/mcs51/gen.c (emitcode, genInline),
6296         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
6297           tokenizeLineNode),
6298         * src/pic/ralloc.c (debugLog),
6299         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
6300           tokenizeLineNode),
6301         * src/pic16/ralloc.c (debugLog),
6302         * src/z80/main.c (_process_pragma):
6303            made all ctype.h function calls safe
6304         * src/SDCCopt.c: include math.h for fabs
6305         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
6306           and used them throughout the code to make ctype.h function calls safe
6307         * src/ds390/main.c (asmLineNodeFromLineNode),
6308         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
6309         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
6310            unsigned char*
6311         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
6312           (newpCodeAsmDir): made ctype.h function calls safe
6313         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
6314           pic16_emitcode):  made lbp unsigned char*
6315         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
6316           (pic16_newpCodeAsmDir): made ctype.h function calls safe
6317         * src/xa51/gen.c (emitcode),
6318         * src/z80/gen.c (_emit2): made lbp unsigned char*
6319         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
6320            char*
6321
6322 2005-09-05 Raphael Neider <rneider AT web.de>
6323
6324         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
6325           access bank splitpoint
6326
6327 2005-09-05 Raphael Neider <rneider AT web.de>
6328
6329         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
6330
6331 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
6332
6333         * .version: changed to version 2.5.3
6334         * doc/sdccman.lyx: changed version to 2.5.3,
6335           documented --codeseg and --constseg and pragma codeseg and constseg,
6336           documented bit parameters (reentrant) and bit returning
6337         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
6338            currFunc->recvSize, but is this ok for all ports?
6339           (ast2iCode): result of ~ on unsigned char must be cast to int for
6340            bool to work
6341         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
6342           function pointers in bit space
6343         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
6344           (processFuncArgs): call port.reg_parm() with reentrancy info
6345         * src/port.h,
6346         * src/avr/main.c,
6347         * src/ds390/main.c,
6348         * src/hc08/main.c,
6349         * src/pic/main.c,
6350         * src/pic16/main.c,
6351         * src/xa51/main.c,
6352         * src/z80/main.c: port.reg_parm prototype extended with
6353           "bool reentrant" parameter
6354         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
6355           options.stackAuto for allocating bit register parameters
6356         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
6357           (genSend): set BitBankUsed if it is,
6358           (selectRegBank): factored out of genCall for use in genPcall,
6359           (genCall): removed redundant dtype assignmen, use selectRegBank,
6360           (genPcall): handle returning in Carry properly, save in F0 if needed,
6361           (genReceive): handle bit register parameters
6362         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
6363           (mcs51_assignRegisters): enable bit registers for all reentrant
6364            functions and don't set BitBankUsed unconditionally
6365         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
6366         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
6367         * support/regression/tests/funptrs.c: added tests for BOOL and for return
6368
6369 2005-08-27 Borut Razem <borut.razem AT siol.net>
6370
6371         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
6372         ppc-osx (Darwin) does not support -u option. It seems that it is
6373         supported only on Linux - GNU cp
6374
6375 2005-08-25 Borut Razem <borut.razem AT siol.net>
6376
6377         * sim/ucsim/gui.src/serio.src/Makefile.in,
6378           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
6379           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
6380           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
6381           install and strip, since the strip at /usr/ccs/bin should be used
6382           on solaris
6383
6384 2005-08-24 Borut Razem <borut.razem AT siol.net>
6385
6386         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
6387
6388 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
6389
6390         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
6391         ffffffffu
6392
6393 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
6394
6395         * as/mcs51/aslink.h: completed lkrloc.c prototypes
6396         * as/mcs51/lkmain.c (link_main): fixed warning
6397         * device/include/stdbool.h: ds390 has no advanced bit support yet
6398         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
6399         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
6400         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
6401           and updated their macros
6402         * src/SDCCval.c (constVal): updated comment for renamed b_long
6403
6404 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
6405
6406         * as/mcs51/asdata.c: changed ctype['['] to BINOP
6407         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
6408           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
6409           (oprio): set priority for '['
6410         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
6411            and adb_24_bit
6412         * as/mcs51/asm.h: added defines R_BIT and S_BIT
6413         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
6414         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
6415         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
6416           added overlayable BIT_BANK area
6417         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
6418           (summary2): explain 'T' in legenda
6419         * as/mcs51/lkrloc.c: replaced old K&R style,
6420           (relr): added R_BIT processing,
6421           (errmsg): added "Bit-addressable relocation error",
6422           (adb_bit): added for converting from byte- to bit-addressable space,
6423           (adb_24_bit): added for converting from byte- to bit-addressable space
6424         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
6425            used in reentrant functions now even as return value
6426         * device/lib/_gptrput.c (_gptrput): removed obsolete code
6427         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
6428           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
6429         * src/SDCCglobl.h: added indicator BitBankUsed
6430         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
6431            the bit registers b0-b7
6432         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
6433           (geniCodeCast): fixed bug 1263853,
6434           (geniCodeLogicAndOr): put result in bool or char,
6435           (geniCodeReceive): added parameter func for accessing the return type,
6436           (geniCodeFunctionBody): pass func to geniCodeReceive
6437         * src/SDCCmain.c: added indicator BitBankUsed
6438         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
6439         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
6440           (checkSClass): don't put automatic bool/bit on stack,
6441           (checkFunction): removed check on function cannot return bit
6442         * src/SDCCsymt.h: added newBoolLink prototype
6443         * src/mcs51/gen.c (rb1regs): added bit registers,
6444           (movc): created for assigning to carry,
6445           (pushReg, popReg): created for pushing registers,
6446           (sameRegs): check both AOP_REG and AOP_CRY types,
6447           (aopOp): handle bit registers,
6448           (aopPut): optimization no self-assign,
6449           (saveRegisters): push reg->base (bits) only once for bit registers,
6450            and use pushReg,
6451           (unsaveRegisters): pop reg->base only once and use popReg,
6452           (assignResultValue): added parameter func and return in carry for bits,
6453           (genIpush): optimization no reload in A if not changed,
6454           (genSend): bit parameters in reentrant functions are passed in bit
6455            registers by first assigning to bits in B, then save registers and
6456            copy B to bits,
6457           (genCall): handle returning in Carry properly, save it in F0 if needed,
6458           (genPcall): updated assignResultValue call, this is not safe yet for bit
6459            returning function !!!
6460           (genFunction): don't generate equ's for bit registers and use pushReg,
6461           (genEndFunction): take care of bit returning functions and use popReg,
6462           (genRet): return bit in Carry,
6463           (genIfx): optimize bit registers and other directly addressable bits,
6464           (genReceive): updated assignResultValue call
6465         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
6466           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
6467            registers when using stack-auto
6468         * src/mcs51/ralloc.c (_G): added allBitregs,
6469           (regs8051): added the bit registers,
6470           (createStackSpil): use macro IS_BIT,
6471           (getRegBit): added to allocate a bit register, else spill,
6472           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
6473           (updateRegUsage): factored out to ease stepping while debugging,
6474           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
6475            also allocate bit registers,
6476           (fillGaps): handle bit registers,
6477           (findAllBitregs): added to create bit vector with all bit registers,
6478           (mcs51_allBitregs): returns this bit vector,
6479           (mcs51_assignRegisters): when using stack-auto use bit registers for
6480            passing parameters and creating local variables
6481         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
6482
6483 2005-08-22 Borut Razem <borut.razem AT siol.net>
6484
6485         * device/lib/Makefile.in: replaced find option -or with -o
6486           to make it run on solaris
6487
6488 2005-08-22 Raphael Neider <rneider AT web.de>
6489
6490         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
6491           fixes #1265442 (crash on Solaris)
6492
6493 2005-08-20 Borut Razem <borut.razem AT siol.net>
6494
6495         * configure, configure.in: added tests for libsocket and libnsl libraries,
6496           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
6497           from support/regression/Makefile.in
6498         * support/regression/Makefile.in: added
6499         * device/lib/pic16/Makefile.common.in: force make to use bash shell
6500         * sim/ucsim/libtool: regenerated on sparc-solaris
6501         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
6502           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
6503           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
6504           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
6505           sparc-solaris, which doesn't use GNU ld linker
6506         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
6507         * as/Makefile: find on sparc-solaris does not support -maxdepth option
6508
6509 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
6510
6511         * src/mcs51/peeph.def: updated comments
6512
6513 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6514
6515         * device/lib/_gptrget.c,
6516         * device/lib/_gptrput.c: slightly shorter
6517         * doc/sdccman.lyx: incremented version
6518         * src/mcs51/peeph.def: moved peephole comments to the line of first
6519           change to better keep line correlation, reanimated 186.e
6520         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
6521
6522 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
6523
6524         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
6525           David Saxton with quotes around file name.
6526
6527 2005-08-15 Borut Razem <borut.razem AT siol.net>
6528
6529         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
6530           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
6531           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
6532           make tests run on x86_64 platform
6533
6534 2005-08-13 Raphael Neider <rneider AT web.de>
6535
6536         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
6537           as it might be executed DURING a build (parallel make is wonderful)
6538
6539 2005-08-13 Raphael Neider <rneider AT web.de>
6540
6541         * device/lib/Makefile.in (port-specific-objects-pic16):
6542           revert to cp $(PORT)/bin/*.* $(PORTDIR)
6543         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
6544           dependency
6545         * device/lib/pic16/Makefile.rules: build subdirs before creating
6546           the library, removed builddir rule, create $(builddir) early in
6547           recurse rule, use empty recurse rule for leaf directories
6548         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
6549           mkdir errors (race condition), removed duplicate suffix "hex"
6550           from clean rules
6551         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
6552         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
6553           prevents mkdir -p from aborting on Alpha
6554
6555 2005-08-12 Raphael Neider <rneider AT web.de>
6556
6557         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
6558           db-statements in order to allow for arrays of pointers in code
6559           sections to be placed without interspersed 0-padding, fixes
6560           bug #1256215
6561         * (emitStatistics): fixed division by zero for pic18f1220
6562         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
6563           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
6564         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
6565         * (pic16_pCodeConstString): keep track of already emitted string
6566           literals to prevent "duplicate definitions of symbol _str_NR"
6567         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
6568           debug message
6569         * device/lib/Makefile.in: ignore failing PIC16 library builds
6570         * device/lib/pic16/Makefile: do not build if gputils are missing
6571         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
6572
6573 2005-08-10 Raphael Neider <rneider AT web.de>
6574
6575         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
6576           my last commit)
6577
6578 2005-08-10 Raphael Neider <rneider AT web.de>
6579
6580         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
6581           Rokas' patch to add the new fixed point type "__fixed16x16"
6582         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
6583           functions for __fixed16x16 arithmetics
6584         * device/lib/pic16: reimplemented the build system to support
6585           a separate build directory, better handling of libio (create
6586           the library in a separate subdir for each architecture) and
6587           easier configuration (centralized in Makefile.common)
6588
6589 2005-08-07 Raphael Neider <rneider AT web.de>
6590
6591         * src/pic16/gen.c (genrshTwo): fixed sign extension
6592         * src/pic16/device.c: added pic18f2320, 4220 and 4320
6593         * device/include/pic16/pic18f2220.h: changed some bit definitions,
6594           added T0CONbits
6595         * device/include/pic16/pic18f4220.h: NEW, header for
6596           pic18f4220 and pic18f4320
6597         * device/include/pic16/pic18fregs.h: added new devices,
6598           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
6599         * device/include/pic16/signal.h: resolved name clashes
6600           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
6601           to also allow testing for interrupt enable bits, added
6602           comments on how to use the macros
6603         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
6604         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
6605           register definitions for the devices
6606         * device/lib/pic16/pics.all: added new devices
6607         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
6608           allocated memory
6609         * device/lib/pic16/libc/stdlib/memfree: do not count
6610           the block header as free memory
6611         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
6612           simplified and added missing end-of-blocklist-marker
6613           (reported by Peter Onion, fixes #1252814)
6614         * (_mergeHeapBlock): fixed loop condition
6615         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
6616           len==0, restructured code
6617         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
6618           up a bit, reduced bitfield accesses, prevent endless loops
6619           in case of heap corruption
6620         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
6621           "unreferenced arguments/must return a value" warnings
6622         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
6623           replaced BAUDREG with SPBRG
6624         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
6625           device/lib/pic16/debug/gstack/gstack.c: replaced
6626           _naked, _asm, _endasm with __naked, __asm, __endasm
6627
6628 2005-08-05 Raphael Neider <rneider AT web.de>
6629
6630         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
6631           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
6632
6633 2005-08-05 Borut Razem <borut.razem AT siol.net>
6634
6635         * device/lib/Makefile.in: added missing ';'
6636         * configure: removed ^M characters
6637
6638 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6639
6640         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
6641           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
6642           License
6643
6644 2005-08-04 Borut Razem <borut.razem AT siol.net>
6645
6646         * configure.in: pic16 libraries build 2nd try - enable running
6647           configure in device/lib/pic16
6648         * configure: regenerated from configure.in
6649         * device/lib/Makefile.in: create $(PORT)/bin directory
6650
6651 2005-08-03 Raphael Neider <rneider AT web.de>
6652
6653         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
6654           to get/set values via pointers
6655         * (genUnpackBits,genPackBits): changed detection of
6656           ptr->bitfield vs. sym.bitfield, fixed access via generic
6657           pointers, removed dead (wrong) code for multibyte bitfields
6658         * (genNearPointerGet, genGenPointerGet): removed useless code,
6659           fixed bitfield detection, fixes #1250594
6660         * (genNearPointerSet): removed useless code
6661         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
6662           and introduced macro pic16_emitpcode that conditionally emits
6663           the origin of the following pCode (useful for debugging SDCC)
6664         * src/pic16/pcode.c: changed (and disabled) some debug outputs
6665         * (createDefmap): fixed handling of LFSR for --optimize-df
6666
6667 2005-08-02 Borut Razem <borut.razem AT siol.net>
6668
6669         * device/lib/Makefile.in: pic16 libraries build enabled since
6670           gputils-0.13.2 are now localy installed at sourceforge's compile farm
6671
6672 2005-08-02 Raphael Neider <rneider AT web.de>
6673
6674         * src/pic16/gen.c (genPackBits): removed deprecated warning
6675         * (genGenPointerSet): fixed bitfield detection
6676
6677 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6678
6679         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
6680
6681 2005-07-31 Raphael Neider <rneider AT web.de>
6682
6683         * device/lib/pic16/libdev/pic18f458.c,
6684           device/include/pic16/pic18f458.h: added missing T0CONbits
6685
6686 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
6687
6688         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
6689
6690 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
6691
6692         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
6693
6694 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6695
6696         * device/include/mcs51/at89c51ed2.h: added.
6697
6698 2005-07-23 Raphael Neider <rneider AT web.de>
6699
6700         * src/pic/gen.h: added emitpcode macro for debugging
6701         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
6702           and replace by macro adding debug information on demand
6703         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
6704         * (gencjne): tried to fix; replaced with correct (slower) code
6705         * (gen{Unp,P}ackBits): fixed single bit access
6706         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
6707         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
6708           previous instruction
6709         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
6710           register has to be handled with care (forbidding movement
6711           of assignments/uses, removing assignments completely, ...)
6712         * (pCodeOptime2pCodes): make use of regIsSpecial
6713         * added lots of debugging output (commented out)
6714         * src/pic/rallloc.c (deassignLRs): prevent operand registers
6715           from being reused as result UNLESS it is known to work
6716
6717 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
6718
6719         * support/Util/dbuf.h: include <stddef.h> for size_t
6720         * .version: changed to version 2.5.2
6721
6722 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6723
6724         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
6725
6726 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6727
6728         * src/hc08/gen.c (genMinus): fixed bug #1241835,
6729           (genModOneByte): removed needless psha/pula
6730
6731 2005-07-22 Raphael Neider <rneider AT web.de>
6732
6733         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
6734           have PIC14 handled like PIC16, fixes broken pic14 linker calls
6735         * src/pic/gen.c (resolveIfx): do not "invent" labels
6736         * (genSkipc): changed to positive logic
6737         * (genSkipCond): removed as no longer needed
6738         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
6739           backport from PIC16
6740         * (genLeftShift): check operands are in different registers
6741         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
6742           INCF does not update CARRY...
6743         * src/pic/main.c: fixed _linkCmd
6744         * src/pic/pcode.c (unlinkpCode): added inactive code
6745         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
6746           alive (do not assign result and operand overlapping registers)
6747
6748 2005-07-22 Raphael Neider <rneider AT web.de>
6749
6750         * src/pic/device.c (dump_sfr): replaced register declaration with
6751           call to emitSymbolToFile() to avoid duplicate symbols
6752         * (assignRelocatableRegisters): do not declare external symbols
6753         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
6754           right (take size of type, not etype)
6755         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
6756         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
6757         * (packRegsForAccUse): disabled assignment of WREG as
6758           the result reg to prevent occurence of just fixed #1235003,
6759           fixes #1242954
6760         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
6761           symbols (avoids duplicate symbols in .asm file)
6762         * (pic14emitRegularMap): use emitSymbolToFile()
6763         * src/pic/gen.c (aopOp): fixed spillLocation handling
6764         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
6765         * (genDataPointerSet): removed unneccessary variables/output
6766
6767 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
6768
6769         * as/mcs51/lkarea.c: enlarged codemap for banked memory
6770         * device/lib/mcs51/crtbank.asm: added # to 0x0F
6771
6772 2005-07-21 Raphael Neider <rneider AT web.de>
6773
6774         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
6775           architecture cannot handle them efficiently, fixes bug #1235003
6776         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
6777           check for empty sets before using them (fixes bug #1232190)
6778
6779 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
6780
6781         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
6782           (lnksect2): generate warnings for memory overlap
6783         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
6784           constseg to set the name of these segments so you can instruct the linker
6785           to place them in banks
6786         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
6787         * src/SDCCglobl.h: added MODEL_HUGE to enum,
6788           added code_seg and const_seg to options
6789         * src/SDCCglue.c (emitMaps): use options.const_seg,
6790           (createInterruptVect): put interrupt vectors in segment HOME,
6791           (glue): put HOME before static segment and put the main glue in HOME,
6792           (glue): use options.code_seg
6793         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
6794         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
6795           these segments so you can instruct the linker to place them in banks
6796           (linkEdit): use code_loc for HOME segment which should be the first
6797           segment in code memory now
6798         * src/SDCCmem.c: fixed more stuff like bug 1238386
6799         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
6800           (changePointer): don't change function pointers to code pointers for
6801           banked functions,
6802           (compareType): added exceptional check for banked function pointers
6803         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
6804         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
6805           after static in code memory
6806         * src/mcs51/gen.c: added aopLiteralLong prototype,
6807           (aopForSym): use getSize for functions,
6808           (genCall): generate banked calls over one trampoline __sdcc_banked_call
6809           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
6810           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
6811           the segment,
6812           (genPcall): use call for literal function pointers and generate banked
6813           calls over the one trampoline so there's only one place for the user to
6814           modify according to his/hers hardware,
6815           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
6816           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
6817         * src/mcs51/main.c: added keyword banked,
6818           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
6819         * support/Util/SDCCerr.c,
6820         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
6821           needed for passing the bank and address to the trampoline
6822         * device/lib/mcs51/crtbank.asm: added for bankswitching
6823         * device/lib/mcs51/Makefile: added crtbank
6824
6825 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6826
6827         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
6828           for fields at offset 0 of a struct or union as reported
6829           on 2005-07-07 in the developer mailing list.
6830
6831 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
6832
6833         * src/SDCCmem.c: fixed bug 1238386
6834
6835 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6836
6837         * src/mcs51/peeph.def: added labelrefcounting for peepholes
6838           (patch #1144962), added peephole 300, enabled 259.x
6839         * doc/sdccman.lyx: removed screenshot and provided link instead
6840
6841 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6842
6843         * doc/sdccman.lyx: added section about debugging with ddd
6844         * doc/figures/ddd_example.eps: screenshot of debugging session
6845
6846 2005-07-04 Raphael Neider <rneider AT web.de>
6847
6848         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
6849           like CODE pointers, fixes #1115683
6850         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
6851           call, fixes bugs #1232211, #1228110,
6852           fixed wrong casts to pCodeFlow from pCodeInstructions
6853
6854 2005-07-04 Raphael Neider <rneider AT web.de>
6855
6856         * src/pic/gen.c (popGet): changed assert to allow for
6857           bit operands
6858         * (popGetAddr): changed signature to provide
6859           an additional index, patched all call sites
6860         * (genCmpEq): handle literal-like operands correctly
6861         * (genAddrOf): added sanity checks on __code/__data pointers
6862         * (genAssign): added handling of symbols from __code section
6863         * (gencjne): do not generate code for comparisons whose result
6864           is neither stored nor used, fixes bug #1171114
6865         * (AccLsh, AccRsh): operate on operand instead of WREG
6866         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
6867           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
6868           by known count
6869         * rewrote complete shift-by-literal logic, commented unused
6870           functions out
6871         * (genConstPointerGet): get multiple bytes (if result size > 1),
6872           fixed handling of non-immediate addresses
6873         * (genPointerGet): handle CODE pointers like CONST pointers
6874         * (genpic14Code): insert C-SRC lines as Cource-pCodes
6875         * ({aop,op}_isLitLike): NEW, single place to decide whether an
6876           operand is to be treated as a literal or not
6877         * (mov2w,genPcall,genCmpEq),
6878           src/pic/genarith.c: use aop_isLitLike() to decide between
6879           literal/register contents
6880         * (addSign): added missing offset
6881         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
6882           only emit comment in debug-mode,
6883           use {aop,op}_isLitLike throughout the file
6884         * src/pic/glue.c: fix initializers for pointers (work in progress)
6885         * src/pic/pcode.c (get_op): honor index on _const symbols
6886         * ({reset,dump}pCodeStatistics): NEW, estimate code size
6887         * (dumppBlock): added pCode size estimation
6888         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
6889           check for IS_SYMOP before OP_SYMBOL'ing
6890         * fixed indentation, compacted switch-statements
6891         * (allocReg): find free register and allocate it instead of
6892           allocating new registers all the time
6893         * (deassignLRs): prevent POINTER_GET's from being assigned the same
6894           registers as its operands (necessary only for multibyte GETs)
6895
6896 2005-07-01 Raphael Neider <rneider AT web.de>
6897
6898         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
6899           debugging .asm-output macros FENTRY + FEXIT
6900         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
6901           way... I wonder...
6902         * (emitpComment): NEW, printf to pCode
6903         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
6904           offset handling
6905         * (popGetAddr): NEW, variant of popGet to access an immediates
6906           high(er) bytes instead of the n'th byte of memory they reference,
6907           replaced popGet with popGetAddr where neccessary
6908         * (genDataPointerGet): reactivated and fixed implementation
6909         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
6910           accesses
6911         * (genDataPointerSet): fixed multibyte assignments
6912         * (genpic14Code): fixed --i-code-in-asm handling
6913         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
6914         * (genPlus): fixed index-out-of-bounds error
6915         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
6916         * src/pic/ralloc.c: added debugging output macro FENTRY2
6917         * (spillThis): fixed indentation, enbraced for-body for clarity
6918         * (rematStr): commented out as now unused
6919         * (regTypeNum): commented out special spill case (overwrites
6920           arbitrary values)
6921         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
6922
6923 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
6924
6925         * doc/sdccman.lyx: documented sfr16/sfr32,
6926           added example for using storage class with function pointers
6927         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
6928
6929 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
6930
6931         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
6932         * device/lib/_itoa.c,
6933         * device/lib/_ltoa.c: optimized codesize
6934         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
6935           but don't know how to suppress the double warning.
6936         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
6937         * support/Util/SDCCerr.c,
6938         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
6939
6940 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
6941
6942         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
6943           fixed old K&R prototypes
6944         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
6945         * device/lib/_gptrget.c,
6946         * device/lib/_gptrgetc.c,
6947         * device/lib/_gptrput.c: changed versions for new memory indicator values,
6948           also new versions for small generic pointers and banked generic pointers
6949         * src/port.h: added const_name
6950         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
6951         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
6952         * src/SDCCcse.c (findPrevIc): check all associative operators
6953         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
6954         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
6955         * src/SDCCmem.c: updated comments,
6956           set far-space to 0 for pdata, results in optimized code
6957         * src/SDCCmem.h: added macro CONST_NAME
6958         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
6959           moving the info into the highest bits, see also gptrget/gptrput
6960         * src/src.dsp: added sdcc.ico to project files
6961         * src/avr/gen.c (genCast): fixed bug 0x%d
6962         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
6963         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
6964           relation between ptr_type and DCL_TYPE,
6965           (genCast): fixed bug 0x%d
6966         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
6967           (CODE)" for const_name
6968         * src/hc08/gen.c (genCast): fixed bug 0x%d
6969         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
6970           (hc08_port): added "CONST (CODE)" for const_name
6971         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
6972           (aopForRemat, adjustArithmeticResult): disconnected direct relation
6973           between ptr_type and DCL_TYPE,
6974           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
6975           operand* and took AOP() inside function so sfr-ness can be checked,
6976           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
6977           new prototype,
6978           (genFunction, genEndFunction): optimized stack setup,
6979           (genMinus): optimized for literals with ending zeroes (in bytes),
6980           (genCast): fixed bug 0x%d
6981         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
6982           (mcs51_port): added "CONST (CODE)" for const_name
6983         * src/mcs51/peeph.def: made rule 226 more generic
6984         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
6985         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
6986         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
6987         * src/z80/main.c (z80_port): added NULL for const_name,
6988           (gbz80_port): added NULL for const_name
6989         * support/regression/tests/bug663539.c,
6990         * support/regression/tests/sfr16.c: new tests
6991
6992 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6993
6994         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
6995
6996 2005-06-24 Raphael Neider <rneider AT web.de>
6997
6998         * device/lib/pic16/libdev/pic18f[68][567]20.c:
6999           corrected typos...
7000         * device/include/pic16/signal.h: added USBIF
7001           and SIG_USB
7002
7003 2005-06-24 Raphael Neider <rneider AT web.de>
7004
7005         * device/lib/pic16/libdev/pic18f2455.c,
7006           device/include/pic16/pic18f2455.h: NEW
7007         * device/include/pic16/pic18fregs.h,
7008           device/lib/pic16/pics.all,
7009           src/pic16/device.c: added 18f2455
7010         * device/lib/pic16/libdev/pic18f[68][567]20.c,
7011           device/include/pic16/{pic18f[68][567].h,usart.h}:
7012           replaced MULTIPLE_USARTS define with more relaible
7013           compatibility sfrs (for USART access)
7014
7015 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
7016
7017         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
7018           and the output asm file line is printed on two lines.
7019
7020 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7021
7022         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
7023           BGT, BLE, BHI, and BLS instructions
7024         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
7025           genCmpEq): removed
7026         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
7027           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
7028           fixes bug #1216342
7029         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
7030
7031 2005-06-15 Raphael Neider <rneider AT web.de>
7032
7033         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
7034         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
7035         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
7036           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
7037           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
7038
7039 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7040
7041         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
7042           Marcel Telka in bug #1215704
7043
7044 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
7045
7046         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
7047           located in shared memory bank.
7048
7049 2005-05-31 Raphael Neider <rneider AT web.de>
7050
7051         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
7052           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
7053           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
7054
7055 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
7056
7057         * device/lib/_strncpy.c: fixed the fix
7058
7059 2005-05-26 Raphael Neider <rneider AT web.de>
7060
7061         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
7062           initializers with \0, bug #1208187
7063         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
7064           intializers with \0, bug #1208187
7065
7066 2005-05-26 Raphael Neider <rneider AT web.de>
7067
7068         * src/pic16/glue.c (pic16_printIvalChar): fixed string
7069           initializers with \0, bug #1208187
7070         * src/pic16/main.c (_process_pragma): added sanity checks
7071           for stack position and size, emit warnings when appropriate
7072
7073 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
7074
7075         * device/lib/_strncpy.c: fixed not filling with \0
7076
7077 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7078
7079         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
7080           createFunction),
7081         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
7082           compound_statement),
7083         * src/SDCCsymt.h,
7084         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
7085
7086 2005-05-24 Raphael Neider <rneider AT web.de>
7087
7088         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
7089
7090 2005-05-24 Raphael Neider <rneider AT web.de>
7091
7092         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
7093           TRISE definitions, closes bug #1162453
7094
7095 2005-05-22 Raphael Neider <rneider AT web.de>
7096
7097         * src/pic16/main.c (_process_pragma): check for missing
7098           arguments to pragmas code and udata
7099         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
7100           consistency fixes to match other headers (thanks to Jim Paris)
7101         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
7102
7103 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
7104
7105         * src/SDCCicode.c (isOperandEqual): fixed missing ;
7106
7107 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
7108
7109         * support/regression/tests/bug1198642.c: new test
7110         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
7111         * src/SDCCcse.c (findPrevIc): added comment, please have a look
7112         * support/scripts/resource.h,
7113         * support/scripts/resource.rc,
7114         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
7115         * support/scripts/sdcc.ico: added 32x32 icon
7116
7117 2005-05-18 Raphael Neider <rneider AT web.de>
7118
7119         * device/lib/pic16/libdev/pic18f*.c,
7120         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
7121           keywords to "__sfr" and "__at (X)"
7122         * device/include/pic16/pic18fregs.h: added pic18f4520
7123         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
7124           #1203088 (MPLAB compatibility)
7125
7126 2005-05-17 Raphael Neider <rneider AT web.de>
7127
7128         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
7129         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
7130         * device/lib/pic16/pics.all: added new devices
7131         * src/pic16/device.c: added support for pic18f4520
7132
7133 2005-05-16 Raphael Neider <rneider AT web.de>
7134         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
7135         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
7136         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
7137           convenience function for bit access
7138
7139 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
7140
7141         * device/lib/printf_large.c: fixed bug 1193299
7142         * support/regression/tests/bug1057979.c: added test %3.3s
7143
7144 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7145
7146         * device/include/mcs51/8051.h,
7147         * device/include/mcs51/8052.h: made parseable with lint
7148         * device/include/mcs51/lint.h: added include file for (sp)lint
7149         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
7150         * doc/cdbfileformat.lyx,
7151         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
7152
7153 2005-05-14 Raphael Neider <rneider AT web.de>
7154
7155         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
7156         * device/lib/pic16/libc/stdlib/itoa.c (new)
7157         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
7158         * device/lib/pic16/libio/Makefile: exclude subdir according to
7159           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
7160         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
7161         * src/pic16/gen.c (genFunction): prevent annoying warning
7162         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
7163           nameclashes on BeOS
7164         * support/cpp2/cppmain.c (cpp_output_string): new
7165         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
7166           fixes bug 1116802
7167
7168 2005-05-13 Borut Razem <borut.razem AT siol.net>
7169
7170         * src/SDCCmain.c (linkEdit): fixed bug 1195202
7171
7172 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7173
7174         * .version: changed to version 2.5.1; back to bleeding edge development
7175
7176 2005-05-11 Borut Razem <borut.razem AT siol.net>
7177
7178         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
7179           generate PDF version 1.3 documents
7180
7181 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7182
7183         * .version: changed to version 2.5.0
7184
7185 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7186
7187         * doc/sdccman.lyx: updated weblinks, index and smaller updates
7188
7189 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7190
7191         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
7192         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
7193         well as many smaller updates.
7194         * .version: changed to version 2.5.0-pre1
7195
7196 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7197
7198         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
7199
7200 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
7201
7202         * support/regression/tests/bug1185672.c: added
7203         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
7204           bug 1185672
7205         * src/mcs51/gen.c (genCall): added comments, made it look safer
7206         * src/mcs51/gen.c (genEndFunction): simplified
7207
7208 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
7209
7210         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
7211
7212 2005-04-14 Borut Razem <borut.razem AT siol.net>
7213
7214         * fixed bug 1045046 - SIGSEGV with really simple code?:
7215           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
7216           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
7217
7218 2005-04-14 Borut Razem <borut.razem AT siol.net>
7219
7220         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
7221           src/pic16/device.h: temporarily disabled experimental #inline pragma
7222           for 2.5.0 release
7223
7224 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
7225
7226         * device/include/z80/stdio.h,
7227         * device/include/z80/string.h: removed these highly incomplete files so
7228           SDCC can use the default ones in device/include/
7229
7230 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7231
7232         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
7233         gcc warning.
7234         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
7235         fix sdcpp warnings.
7236
7237 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
7238
7239         * device/include/malloc.h: removed redundant __reentrant prototypes
7240         * device/lib/_mullong.c: added working xstack variant in asm (C version
7241           doesn't pass regression tests)
7242         * device/lib/bpx.c: used __data and made bpx char for mcs51
7243         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
7244           (createFunction): fixed bug with xstackPtr
7245         * src/SDCCcse.c: corrected comments
7246         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
7247           (killDeadCode, eBBlockFromiCode): removed unused code
7248         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
7249           corrected comments
7250         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
7251           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
7252           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
7253           (genModOneByte): fixed warning in MSVC
7254         * src/mcs51/main.c (): added comments
7255         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
7256
7257 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
7258
7259         * src/SDCCmain.c (linkEdit): oops, changed one line too many
7260
7261 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
7262
7263         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
7264
7265 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
7266
7267         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
7268         characters arrays of larger size than the declared one.
7269
7270 2005-04-10 Borut Razem <borut.razem AT siol.net>
7271
7272         * src/pic/gen.c (genInline),
7273           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
7274           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
7275           (findNextInstruction), (findPrevInstruction),
7276           (findInstructionUsingLabel),
7277           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
7278         * src/pic/pcode.c (findLabel): added missing '\n'
7279         * src/src.dsp: added SDCCdwarf2.c to the project
7280
7281 2005-04-09 Borut Razem <borut.razem AT siol.net>
7282
7283         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
7284
7285 2005-04-08 Raphael Neider <rneider AT web.de>
7286
7287         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
7288           into the chain after a given one) and mergeDefmapSymbols (combine
7289           defmap entries for each symbol per pcode)
7290         * (createDefmap): have defmap entries merged in the end
7291         * (defmapReplaceSymRef): split defmap entries covering two accesses to
7292           a symbol before replacing one access type's symbol, merge symbols in
7293           the end (replacement symbol might already have an entry)
7294         * (assignValnums): keep reference to written WREG intact
7295
7296 2005-04-08 Raphael Neider <rneider AT web.de>
7297
7298         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
7299           Alpha)
7300
7301 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
7302
7303         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
7304         bytes
7305
7306 2005-04-07 Raphael Neider <rneider AT web.de>
7307
7308         * device/include/pic16/usart.h: added compatibility defines for
7309           devices with more than one USART
7310         * device/include/pic16/pic18f[68][567]20.h: activated above defines
7311
7312 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7313
7314         * device/lib/Makefile.in: updated for port specific include
7315
7316 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7317
7318         * support/regression/ports/mcs51/spec.mk: added mcs51 include
7319
7320 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7321
7322         * device/include/8051.h,
7323         * device/include/8052.h,
7324         * device/include/at89S8252.h,
7325         * device/include/at89c55.h,
7326         * device/include/at89x051.h,
7327         * device/include/at89x51.h,
7328         * device/include/at89x52.h,
7329         * device/include/mcs51reg.h,
7330         * device/include/reg51.h,
7331         * device/include/reg764.h,
7332         * device/include/regc515c.h,
7333         * device/include/sab80515.h: (re)moved these 12 files
7334         * device/include/mcs51/8051.h,
7335         * device/include/mcs51/8052.h,
7336         * device/include/mcs51/at89S8252.h,
7337         * device/include/mcs51/at89c55.h,
7338         * device/include/mcs51/at89x051.h,
7339         * device/include/mcs51/at89x51.h,
7340         * device/include/mcs51/at89x52.h,
7341         * device/include/mcs51/mcs51reg.h,
7342         * device/include/mcs51/reg51.h,
7343         * device/include/mcs51/reg764.h,
7344         * device/include/mcs51/regc515c.h,
7345         * device/include/mcs51/sab80515.h: and added them here
7346
7347 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
7348
7349         * device/include/stdarg.h: changed SDCC specific keywords to double
7350           underlined form.
7351         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
7352           mcs51 and ds390.
7353         * device/include/hc08/mc68hc908gp32.h,
7354         * device/include/hc08/mc68hc908jb8.h,
7355         * device/include/hc08/mc68hc908jkjl.h,
7356         * device/include/hc08/mc68hc908qy.h: fixed comments
7357         * device/include/mcs51/README: updated
7358         * device/include/mcs51/c8051f120.h: added PINRSF
7359         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
7360         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
7361           amidst code. Also inline is not supported.
7362
7363 2005-04-06 Raphael Neider <rneider AT web.de>
7364
7365         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
7366         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
7367           callers stack/frame pointers
7368
7369 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
7370
7371         * device/include/pic16/usart.h: added, missing in previous commit,
7372         * device/include/pic16/adc.h: fixed typo,
7373         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
7374         commit,
7375         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
7376         <p18fxxx.inc>
7377         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
7378         uninitialized because a bug appears with gplink
7379         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
7380         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
7381         complains for unrecognised option
7382
7383 2005-04-05 Raphael Neider <rneider AT web.de>
7384
7385         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
7386           structs as well (using memcpy)
7387         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
7388           on ISRs (GOTO has no label)
7389         * src/pic16/device.h: added OF_OPTIMIZE_DF
7390         * src/pic16/main.c: added compiler switch --optimize-df to enable the
7391           new data flow analysis/optimization
7392         * src/pic16/pcode.c: added (prototypes for and implementation of)
7393           dataflow analysis functions, fixed pCodeInstructions' inCond and
7394           outCond values, made RCALL a branch instruction
7395         * (pic16_unlinkpCode): keep C line if possible
7396         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
7397           C line moved if possible
7398         * (pic16_getRegFrompCodeOp): NEW, improved version of...
7399         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
7400           to use new pic16_getRegFrompCodeOp (works for more SFRs)
7401         * (pic16_BuildFlow): fixed skip instructions with label (did not start
7402           new flow)
7403         * (pic16_getJumptabpCode): NEW, needed in...
7404         * (LinkFlow): fixed handling of jumptables, calls and conditional
7405           branches
7406         * (pic16_InsertCommentAfter): NEW
7407         * (pic16_pCodeReplace): made verbose and flow preserving
7408         * (AnalyzeFlow): added call to data flow analysis
7409         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
7410         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
7411         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
7412
7413 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7414
7415         * src/SDCCast.c (decorateType): fixed bug #1105626
7416
7417 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
7418
7419         * device/include/asm/pic16/features.h,
7420         * pic18f*.h headers,
7421         * device/include/pic16/adc.h,
7422         * device/include/pic16/delay.h,
7423         * device/include/pic16/i2c.h,
7424         * device/include/pic16/malloc.h,
7425         * device/include/pic16/stdio.h,
7426         * device/include/pic16/stdlib.h,
7427         * device/include/pic16/string.h,
7428         * device/lib/pic16/libc/stdio/printf_tiny.c,
7429         * device/lib/pic16/libc/stdio/printf_small.c,
7430         * device/lib/pic16/libc/stdio/strmgpsim.c,
7431         * device/lib/pic16/libc/stdio/strmmssp.c,
7432         * device/lib/pic16/libc/stdio/strmusart.c,
7433         * device/lib/pic16/libc/stdio/vfprintf.c,
7434         * device/lib/pic16/libc/stdlib/ltoa.c,
7435         * device/lib/pic16/libc/stdlib/putchar.c,
7436         * device/lib/pic16/libc/stdlib/x_ftoa.c,
7437         * device/lib/pic16/libc/stdlib/memchrpgm.c,
7438         * device/lib/pic16/libc/stdlib/memchrram.c,
7439         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
7440         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
7441         * device/lib/pic16/libio/adc/adcbusy.c,
7442         * device/lib/pic16/libio/adc/adcread.c,
7443         * device/lib/pic16/libio/adc/adcsetch.c,
7444         * device/lib/pic16/libio/usart/ubaud.c,
7445         * device/lib/pic16/libio/usart/ubusy.c,
7446         * device/lib/pic16/libio/usart/udrdy.c,
7447         * device/lib/pic16/libio/usart/uopen.c,
7448         * device/lib/pic16/libio/usart/uputc.c,
7449         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
7450         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
7451         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
7452         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
7453         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
7454         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
7455         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
7456         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
7457         specific keywords to double underlined form,
7458         * device/lib/pic16/libc/Makefile.rules,
7459         * device/lib/pic16/libsdcc/Makefile.rules,
7460         * device/lib/pic16/libm/Makefile,
7461         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
7462         to compile with C standard set in Makefile.common
7463         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
7464         rand.c and crc.c in compilation process,
7465         * device/lib/pic16/libsdcc/int/divuint.c,
7466         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
7467         `c' from signed to unsigned,
7468         * device/lib/pic16/startup/crt0.c,
7469         * device/lib/pic16/startup/crt0i.c,
7470         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
7471         keywords to double underlined form, bug fixes in _do_cinit function
7472         which prevented the correct initialization of the .idata segment,
7473         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
7474         core to enter a infinite loop
7475         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
7476
7477 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7478
7479         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
7480
7481 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7482
7483         * device/include/Makefile.in: add support for hc08 subdirectory
7484         * device/include/hc08/: new subdirectory
7485         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
7486         Lucas Loizaga, thanks!
7487         * device/include/hc08/mc68hc908qy.h,
7488         * device/include/hc08/mc68hc908gp32.h,
7489         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
7490         their own directory. Changed internal macro names to use the compiler
7491         reserved namespace. Changed SDCC specific keywords to double
7492         underlined form.
7493         * device/include/math.h,
7494         * device/include/malloc.h,
7495         * device/include/stdarg.h,
7496         * device/include/stdbool.h
7497         * device/include/string.h,
7498         * device/include/tinibios.h,
7499         * device/include/ds400rom.h,
7500         * device/include/8051.h,
7501         * device/include/8052.h,
7502         * device/include/80c51xa.h,
7503         * device/include/at89c55.h,
7504         * device/include/at89S8252.h,
7505         * device/include/at89x51.h,
7506         * device/include/at89x52.h,
7507         * device/include/ds80c390.h,
7508         * device/include/reg764.h,
7509         * device/include/regc515c.h,
7510         * device/include/sab80515.h,
7511         * device/include/mcs51/c8051f000.h,
7512         * device/include/mcs51/c8051f018.h,
7513         * device/include/mcs51/c8051f020.h,
7514         * device/include/mcs51/c8051f040.h,
7515         * device/include/mcs51/c8051f060.h,
7516         * device/include/mcs51/c8051f120.h,
7517         * device/include/mcs51/c8051f300.h,
7518         * device/include/mcs51/c8051f310.h,
7519         * device/include/mcs51/c8051f320.h,
7520         * device/include/mcs51/c8051f330.h,
7521         * device/include/mcs51/c8051f350.h,
7522         * device/include/z180.h: Changed SDCC specific keywords to double
7523         underlined form.
7524
7525 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
7526
7527         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
7528         18F4455,
7529         * (pic16_assignConfigWordValue): disable testing of configuration
7530         register value with config mask,
7531         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
7532         function with port->fun_prefix,
7533         * (genFunction): when generating a naked interrupt function never
7534         create an absolute segment placed in interrupt vector address, place
7535         the actual interrupt function at IVA instead, when an interrupt
7536         function is generated with unspecified interrupt then do not create
7537         the absolute section,
7538         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
7539         code for generating a call to generic pointer get/put function with
7540         a call to function pic16_callGenericPointer(),
7541         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
7542         the call to the generic pointer get/put functions with prefixing the
7543         function name with port->fun_prefix,
7544         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
7545         * src/pic16/main.c (_process_pragma): prefix function with
7546         port->fun_prefix,
7547         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
7548         calling assembler, old 18Fxxxx macro is deprecated,
7549         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
7550         PC_ASMDIR in while condition,
7551         * (findInstruction): add PC_ASMDIR in while condition,
7552         * (buildCallTree): prefix main with port->fun_prefix,
7553         * (pic16_pCode2str): fixed bug that didn't emit the memory access
7554         identifier for variable with banked access in instructions BTFSS,
7555         BTFSC, BCF, BSF, BTG
7556         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
7557         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
7558         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
7559         perform optimization when enviroment variable NO_REG_OPT is set,
7560         * (insideLRBlock): NEW, return 1 if register is inside an
7561         INF_LOCALREGS block,
7562         * (RemoveRegFromLRBlock): remove a register that is completely
7563         eliminated by register optimization, but it is still left in local
7564         register store/restore in/from stack block,
7565         * (Remove2pcodes): after removing register, check to see if it
7566         should be removed from local register store/restore in/from stack
7567         block,
7568         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
7569         DUMMY_READ_VOLATILE,
7570
7571         * device/include/pic16/adc.h: minor prototype modifications and
7572         update,
7573         * device/include/pic16/malloc.h: added GPL notice various
7574         modifications,
7575         * device/include/pic16/stdint.h: NEW, standard header for ints
7576         * device/include/pic16/delay.h: NEW, header for delay functions,
7577         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
7578         delay1mtcy,
7579         * device/include/pic16/signal.h: NEW, header providing helper macros
7580         for implementing signal handlers,
7581         * device/include/pic16/stdio.h: added prototypes for functions,
7582         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
7583         prototypes for stdin and stdout, added macro PUTCHAR to
7584         automatically implement putchar function prototype,
7585         * device/include/pic16/usart.h: modified and updated USART library,
7586         * device/lib/pic16/libio/adc/,
7587         * device/lib/pic16/libio/i2c: some modifications to improve library
7588         performance,
7589         * device/lib/pic16/libc/stdio/: modifications for the new printf*
7590         family of functions,
7591         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
7592         family of functions and other sources,
7593         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
7594         of the PIC18Fxx[28] devices,
7595         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
7596         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
7597         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
7598         _do_cinit function, because the previous failed when local variables
7599         where not placed in the same memory bank,
7600         * device/lib/pic16/libsdcc/char/: various modifications to improve
7601         library performance,
7602         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
7603         information on the new functions of the c library and more...
7604
7605 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7606
7607         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
7608
7609 2005-03-26 Raphael Neider <rneider AT web.de>
7610
7611         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
7612           if condition == CARRY)
7613         * (genCmp): adapted to new genSkipc semantics
7614         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
7615           on rIfx (genCmp was broken)
7616
7617 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7618
7619         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
7620         * src/z80/main.c (_keywords[]),
7621         * src/SDCCglobal.h (struct options),
7622         * src/SDCC.y,
7623         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
7624         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
7625         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
7626         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
7627         always available in leading double underscore form. The C99 support is
7628         mostly missing, but it's a start.
7629         * support/regression/tests/bug-227710.c: fixed nonconforming use of
7630         reserved identifier "__data".
7631
7632 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
7633
7634         * src/mcs51/peeph.def: fixed bug 1170013
7635
7636 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
7637
7638         * device/include/mcs51reg.h: fixed bug 842007
7639
7640 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7641
7642         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
7643         last time.
7644
7645 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7646
7647         * src/port.h (struct PORT),
7648         * src/avr/ralloc.c (avr_assignRegisters),
7649         * src/avr/main.c,
7650         * src/ds390/ralloc.c (ds390_assignRegisters),
7651         * src/ds390/main.c,
7652         * src/hc08/ralloc.c (hc08_assignRegisters),
7653         * src/hc08/main.c,
7654         * src/mcs51/ralloc.c (mcs51_assignRegisters),
7655         * src/mcs51/main.c,
7656         * src/pic/ralloc.c (pic14_assignRegisters),
7657         * src/pic/main.c,
7658         * src/pic16/ralloc.c (pic16_assignRegisters),
7659         * src/pic16/main.c,
7660         * src/xa51/ralloc.c (xa51_assignRegisters),
7661         * src/xa51/main.c,
7662         * src/z80/ralloc.c (z80_assignRegisters),
7663         * src/z80/ralloc.h,
7664         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
7665         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
7666         * src/SDCCcse.h,
7667         * src/SDCCdflow.c (computeDataFlow),
7668         * src/SDCCdflow.h,
7669         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
7670         * src/SDCCloop.h,
7671         * src/SDCCcflow.c (*),
7672         * src/SDCCcflow.h,
7673         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
7674         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
7675         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
7676         immedDom() returning wrong block; probably fixes bug #1160833)
7677
7678 2005-03-20 Borut Razem <borut.razem AT siol.net>
7679
7680         * support/scripts/inc2h.pl: WIN32 port
7681
7682 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
7683
7684         * device/lib/makefile.in: added abs.c and labs.c
7685
7686 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
7687
7688         * device/include/stdint.h: added
7689         * device/lib/abs.c: added
7690         * device/lib/labs.c: added
7691         * device/include/stdlib.h: added abs() and labs() prototypes
7692         * device/lib/libsdcc.lib: added abs and labs
7693         * device/include/float.h,
7694         * device/lib/_fsmul.c,
7695         * device/lib/printf_fast.c,
7696         * device/lib/printf_tiny.c: updated comments
7697
7698 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7699
7700         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
7701         bug #1164313
7702
7703 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7704
7705         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
7706         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
7707
7708 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
7709
7710         * device/lib/printf_large.c: removed inline assembly for portability and
7711           readability. Use printf_fast if speed or size are more important.
7712         * src/pic16/gen.c: removed conditions around use of DEBUGpc
7713         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
7714
7715 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
7716
7717         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
7718         prevent compiler warning
7719
7720 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
7721
7722         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
7723         moved to level 0 and declared as static. Also they are explicit
7724         placed in access bank. This was necessery because some times they
7725         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
7726         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
7727         optimizations. Currently only compare to unsigned char is implemented,
7728         * src/pic16/gen.c: added fReturnIdx array,
7729         * (struct resolvedIfx) is moved to gen.h and made public,
7730         * (struct _G): added sregsAlloc and sregsAllocSet fields,
7731         * (aopForSym): added an optimization to directly store in stack of
7732         the operand of a SEND iCode,
7733         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
7734         but as registers instead (AOP_REG) using the fReturnIdx array,
7735         * (pic16_freeAsmop): remove the freed register from the
7736         _G.sregsAlloc field,
7737         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
7738         a compare of 'WREG',
7739         * (pic16_popGetTempRegCond): changed function prototype, now
7740         function takes also a bitVector argument v which holds the current
7741         set of registers that are allocated for stack access by aopForSym,
7742         registers allocated in aopForSym for accessing stack symbols are not
7743         any more part of the functions usedRegs field,
7744         * (genCall): some times aopOp is called for a stack variable to be
7745         send, aopForSym might perform the push, if this is true make sure
7746         that genCall doesn't push the variable twice by testing _G.resDirect,
7747         * (genFunction): changed testing for unspecified interrupt number
7748         from 256 to INTNO_UNSPEC,
7749         * modified selection scheme of frame pointer generation. Previously
7750         if function did use local registers a frame pointer was generated,
7751         now a frame pointer is generated only if function has arguments
7752         (that need PLUSW2 register access), or has stack arguments, or the
7753         compiler is not instructed to omit the frame pointer,
7754         * (genEndFunction): before restoring local registers that were saved
7755         in the function preamble, also restore the registers that *might*
7756         have been allocated for stack access,
7757         * (genRet): removed some old comments,
7758         * (genCmp, the active (RN's) version): added a call to the
7759         pic16_genCmp_special function to perform the compare with a more
7760         robust and optimized way,
7761         * (genInline): a feature has been added in inline code generation,
7762         which allows a wildcard variable substitution when writing inline
7763         assembly. Code is incomplete and experimental therefore undocumented,
7764         * (genCast): changed order of aopOp for result and right to allow
7765         aopForSym to directly load the result if possible,
7766         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
7767         perform an optimized compare on some selected special occasions,
7768         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
7769         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
7770         generate an IVT any more,
7771         * src/pic16/main.c (pic16_optionsTable): added command line option
7772         --optimize-cmp,
7773         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
7774         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
7775         macros,
7776         * src/pic16/NOTES: Raphael Neider added in list of active developers
7777         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
7778         jumptable_end to prevent bug #,
7779         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
7780         inCond and outCond fields,
7781         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
7782         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
7783         turn off register spilling,
7784         * (packRegsForOneUse): synced with other ports' versions although it
7785         is not used currently,
7786         * (pic16_packRegisters): added an optimization while reading
7787         structure bitfields, some registers may be saved (malloc code is
7788         decreased by 80 bytes)
7789
7790 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
7791
7792         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
7793         left is a bitfield, if yes, then don't optimize assignment. Perhaps
7794         this can be optimized more?
7795
7796 2005-03-10 Raphael Neider <rneider AT web.de>
7797
7798         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
7799           genNearPointerGet): (hopefully) fixed access to bitfields via
7800           pointers (p->bitN = x; and x = p->bitN; failed)
7801
7802 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
7803
7804         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
7805
7806 2005-03-09 Raphael Neider <rneider AT web.de>
7807
7808         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
7809
7810 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
7811
7812         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
7813         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
7814           (regTypeNum): set REG_BIT type if necessary
7815         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
7816         * support/regression/tests/critical.c: check bug 1144613
7817
7818 2005-03-02 Raphael Neider <rneider AT web.de>
7819
7820         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
7821
7822 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7823
7824         * src/avr/ralloc.c (serialRegAssign),
7825         * src/ds390/ralloc.c (serialRegAssign),
7826         * src/hc08/ralloc.c (serialRegAssign),
7827         * src/mcs51/ralloc.c (serialRegAssign),
7828         * src/pic/ralloc.c (serialRegAssign),
7829         * src/pic16/ralloc.c (serialRegAssign),
7830         * src/xa51/ralloc.c (serialRegAssign),
7831         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
7832
7833 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
7834
7835         * src/SDCCast.c (decorateType): fixed bug 1124787
7836
7837 2005-02-20 Hubert Sack <sack AT digiplan.de>
7838         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7839
7840         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
7841         patch #1121755
7842
7843 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7844
7845         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
7846         to keep the correct label reference count when adding/removing references
7847         to labels. A peephole file using this is appended to patch #1144962.
7848
7849 2005-02-14 Raphael Neider <rneider AT web.de>
7850
7851         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
7852         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
7853         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
7854           retrievals of result operand's value on assignment
7855
7856 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
7857
7858         * device/include/pic16/string.h: modified prototype for memccpy()
7859         to memccpy(void *, void *, char, size_t)
7860         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
7861         check whether to omit frame pointer or not,
7862         * (genInline): convert all occurences of "\n" to LF in inline
7863         assembler blocks, this helps formatting the inline text,
7864         * (pic16_loadFSR0): modified prototype,
7865         * (genNearPointerGet, genNearPointerSet): reorganization of code,
7866         removed some 8051 legacy code,
7867         * (genPackBits): enabled handling bitfields exceeding one byte in size,
7868         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
7869         before allocating temporary registers in functions,
7870
7871 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
7872
7873         * support/regression/tests/bitvars.c: corrected the "fix"
7874
7875 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
7876
7877         * support/regression/tests/bitvars.c,
7878         * support/regression/tests/bitwise.c,
7879         * support/regression/tests/rotate.c: "fixed" problems on Alpha
7880
7881 2005-02-10 Raphael Neider <rneider AT web.de>
7882
7883         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
7884           different size for Alpha
7885         * src/pic16/gen.c (genCmpEq) : improved compare with 0
7886
7887 2005-02-09 Raphael Neider <rneider AT web.de>
7888
7889         * src/SDCC.lex(doPragma) : save and restore warning options as well
7890           (also added new stack plus clone- and copyAndFreeSDCCERRG())
7891         * have #pragma less_pedantic set the errorlevel to WARNING
7892           (fixes #1117001)
7893         * (cloneOptimize) : fixed wrong malloc's size
7894         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
7895           facilitate correct handling of #pragma (save|restore)
7896
7897 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
7898
7899         * src/mcs51/gen.c: removed non-standard C nameless struct/union
7900
7901 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
7902
7903         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
7904
7905 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
7906
7907         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
7908
7909 2005-02-02 Raphael Neider <rneider AT web.de>
7910
7911         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
7912         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
7913         * (pic16_storeForReturn): fixed to allow returning function pointers
7914         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
7915         * device/include/pic16/{stddef.h,stdbool.h}: added
7916
7917 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
7918
7919         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
7920
7921 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
7922
7923         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
7924         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
7925          appeared to be required
7926
7927 2005-01-31 Borut Razem <borut.razem AT siol.net>
7928
7929         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
7930           include/mcs51 and include/z80 directories to the package
7931
7932 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7933
7934         * src/hc08/gen.c (genFunction): fixed bug #1112752
7935
7936 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7937
7938         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
7939
7940 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7941
7942         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
7943
7944 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
7945
7946         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
7947
7948 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
7949
7950         * device/include/c8051fxxx.h: removed these 6 files
7951         * device/include/mcs51/c8051fxxx.h: added these 11 new files
7952
7953 2005-01-26 Raphael Neider <rneider AT web.de>
7954
7955         * src/pic16/gen.c (genAssign): fixed assignment from longs
7956           in codespace (were cut to three bytes)
7957         * (genDummyRead): implemented (except for CODESPACE...),
7958           fixed bug #1108575
7959         * src/pic16/glue.c (emitStatistics): beautified
7960         * device/lib/pic16/libm/Makefile: added include path
7961
7962 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7963
7964         * src/z80/gen.c (aopPut): fixed bug #1103902
7965
7966 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7967
7968         * device/lib/expf.c: fixed bug #1095792
7969
7970 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
7971
7972         * device/lib/pic16/libm: added Math library sources
7973
7974 2005-01-24 Raphael Neider <rneider AT web.de>
7975
7976         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
7977           to enable upcast to pCodeOpReg2 (there is no type tag to
7978           differenciate the two and pic16_popGet2p cast into PCOR2)
7979         * src/pic16/main.c (_process_pragma): fixed another malloc bug
7980           (sizeof(sectNames) changed to sizeof(sectName))
7981           Both patches fix segfaults under MinGW.
7982
7983 2005-01-23 Raphael Neider <rneider AT web.de>
7984
7985         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
7986           Safe_[mc]?alloc()'ed variables
7987         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
7988           of (byte sized) temporaries (assign them to WREG for now)
7989         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
7990           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
7991           this might fix SIGSEGVs on MinGW...
7992         * src/SDCCopt.c (killDeadCode): restored original behaviour
7993           (volatile operands might get thrown away though)
7994
7995 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
7996
7997         * src/pic16/gen.c: fixed bug #1106975,
7998         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
7999         pointer update, INTCON is saved, global interrupts are disabled and
8000         restored after updateing TOS.
8001         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
8002         * added function attribute 'shadowregs' to take advantage of shadow
8003         registers,
8004         * added function attribute 'wparam' as an alternative to the wparam
8005         pragma,
8006         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
8007         user declares a non-ISR function as 'shadowregs',
8008         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
8009
8010 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
8011
8012         * .version: bumped version number to 2.4.8
8013         * device/lib/pic16/pics.all: list of PIC18F devices supported by
8014         pic16 port,
8015         * device/lib/pic16/libio/i2c/: I2C module support library,
8016         * device/include/pic16/i2c.h: I2C support library header,
8017         * device/lib/pic16/libc/stdio/: standard IO support sources,
8018         * (printf_small.c): printf_small() source, supports float print,
8019         * (printf_tiny.c): printf_tiny() source, does not support floats,
8020         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
8021         enable global optimizations for entire library source, other
8022         Makefiles in the source tree are also modified to reflect this,
8023         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
8024         function,
8025         * doc/sdccman.lyx: updated to reflect new changes,
8026         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
8027         sym->onStack if-case,
8028         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
8029         sbit, idata, _idata, xdata, _xdata,
8030         * added pragma library, to link an external library, (see doc),
8031         * removed command line options, --pomit-config-words, --pomit-ivt,
8032         --pleave-reset-vector,
8033         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
8034         when calling assembler to reflect memory model used, also define
8035         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
8036         reflect stack model used,
8037         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
8038         on stack return NULL,
8039
8040 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
8041
8042         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
8043           of the operands is volatile. Fixes #1020220
8044
8045 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
8046
8047         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
8048         * (OptimizeRegUsage): make sure that there is really no other flow where
8049           the first pCode is used
8050
8051 2005-01-22 Raphael Neider <rneider AT web.de>
8052
8053         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
8054           to fix #1106967 (pCode->seq are not set up correctly)
8055
8056 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8057
8058         * src/SDCCglue.c (glue): make sure code area is declared before the
8059         static initialization area.
8060
8061 2005-01-21 Raphael Neider <rneider AT web.de>
8062
8063         * device/lib/Makefile.in: fixed test for pic16 install dir
8064         * device/lib/pic16/*/Makefile*: modified compile flags to enable
8065           optimizations
8066         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
8067           added --optimize-goto compiler switch and pragma wparam documentation
8068         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
8069         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
8070           and PRODH closing bug #1071770 (peephole optimizer)
8071
8072 2005-01-19 Raphael Neider <rneider AT web.de>
8073
8074         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
8075           cmdLine buffers (used when calling sdcpp...) are large enough
8076           (MAX_PATH=256 truncates arguments leading to system halts when
8077           used in MinGW...)
8078         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
8079         * (genUminus): rewritten to for efficiency
8080         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
8081           used uninitialized in some cases)
8082         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
8083           copy the third byte from the int -- now assumes 0x80 (data memory)
8084         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
8085           operands (genAddLit expects the iCode's operands to swapped as
8086           well), fixed leftover bytes (crashed for short left operands)
8087         * (pic16_genMinusDec): performance improvements, removed false
8088           PIC14 emitSKPNCs
8089         * (pic16_genMinus): fixed to cope with differently sized operands
8090         * src/pic16/glue.c (pic16_glue): added new banksel optimization
8091           for --obanksel > 1
8092         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
8093         * src/pic16/graph.[ch]: implementation of directed graphs, used by
8094           new banksel optimization
8095         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
8096           analysis for temporary registers (segfaults...)
8097         * src/pic16/peeph.def: added rule
8098
8099 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
8100
8101         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
8102         which converts a float number to its ASCII representation
8103         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
8104         functions to convert the fractional and integer part of a float to ASCII,
8105         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
8106         realloc.c): added _MALLOC_SPEC to explicit place variables in data
8107         ram
8108         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
8109         _STATMEM macros,
8110         * device/include/pic16/adc.h: added GPL info,
8111         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
8112         a pCodeOp as tested operand,
8113         * (genNearPointerGet): optimized bit testing, does not use
8114         intermediate register for bit value, test directly instead with
8115         BTFSS, BTFSC, works only for single bits,
8116         * (genpic16Code): dump the name of the iCode in the asm,
8117         * src/pic16/ralloc.c (decodeOp): removed static declaration and
8118         renamed to pic16_decodeOp,
8119         * (serialRegAssign): do not allocate a temporary register for iCode
8120         sequences that test a single bit for 1/0
8121
8122 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
8123
8124         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
8125         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
8126         access stack and frame pointers. They are initially assigned to
8127         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
8128         accessing SFRs. Updated all occurences of modification of stack or
8129         frame pointer in gen.c and pcode.c,
8130         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
8131         assigning of a literal value to pointers,
8132         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
8133         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
8134         selected
8135
8136 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
8137
8138         * doc/sdccman.lyx: update documentation about stack pragma, added
8139         some info for stack memory models
8140
8141 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8142
8143         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
8144
8145 2005-01-08 Raphael Neider <rneider AT web.de>
8146
8147         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
8148           udata sections to fix bug #1097823
8149
8150 2005-01-05 Raphael Neider <rneider AT web.de>
8151
8152         * src/pic16/gen.c (genGenericShift): added handling of differently
8153           sized left operand and result
8154
8155 2005-01-04 Raphael Neider <rneider AT web.de>
8156
8157         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
8158         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
8159           to hold the condition bit)
8160         * added new version of genCmp (old code available via #define)
8161         * added new version of genShiftLeft/genShiftRight in a generic
8162           way, now supports shifting by negative values
8163         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
8164           shiftCount (expected by genGenericShift)
8165         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
8166         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
8167           dump
8168         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
8169           is an invalid literal too...)
8170
8171 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
8172
8173         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
8174         from Raphael Neider,
8175         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
8176         for 8-bit literals. This fixes some literal operands which are sign
8177         extended to 16-bits ints when instruction needs only 8-bits.
8178
8179 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
8180
8181         * device/lib/logf.c: added mcs51 assembly version
8182         * device/lib/expf.c: added mcs51 assembly version
8183         * device/lib/_logexpf.c: new shared asm code for expf and logf
8184         * device/include/math.h: add defines for assembly math library
8185         * device/lib/Makefile.in: build new _logexpf.c
8186         * device/lib/libfloat.lib: use new _logexpf.c
8187
8188 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
8189
8190         * src/pic/device.c
8191         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
8192           device types which have less than 0x7f registers.
8193
8194 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
8195
8196         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
8197
8198 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
8199
8200         * device/lib/printf_fast.c: only build on supported arch.
8201         * device/lib/printf_tiny.c: only build on supported arch.
8202         * device/lib/printf_fast_f.c: only build if asm float lib
8203         * device/lib/_fsget1arg.c: only build if asm float lib
8204         * device/lib/_fsget2args.c: only build if asm float lib
8205         * device/lib/_fsnormalize.c: only build if asm float lib
8206         * device/lib/_fsreturnval.c: only build if asm float lib
8207         * device/lib/_fsrshift.c: only build if asm float lib
8208         * device/lib/_fsswapargs.c: only build if asm float lib
8209         * device/include/stdio.h: don't provide print_fast,
8210           print_fast_f, print_tiny prototypes if --xstack used
8211
8212 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
8213
8214         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
8215         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
8216           to the SOURCES
8217
8218 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
8219
8220         * device/lib/printf_fast_f.c: same as printf_fast, but
8221           with floating point enabled
8222         * device/lib/printf_fast.c: minor tweaks
8223         * device/include/stdio.h: add printf_fast_f
8224
8225 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
8226
8227         * src/SDCCmain.c: make --float-reent default for mcs51
8228         * device/lib/_fsadd.c: added mcs51 assembly version
8229         * device/lib/_fssub.c: added mcs51 assembly version
8230         * device/lib/_fsmul.c: added mcs51 assembly version
8231         * device/lib/_fsdiv.c: added mcs51 assembly version
8232         * device/lib/_fseq.c: added mcs51 assembly version
8233         * device/lib/_fsneq.c: added mcs51 assembly version
8234         * device/lib/_fsgt.c: added mcs51 assembly version
8235         * device/lib/_fslt.c: added mcs51 assembly version
8236         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
8237         * device/lib/Makefile.in: add _fscmp to build
8238         * device/lib/libfloat.lib: add _fscmp to build
8239
8240 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
8241
8242         * device/lib/_fs2slong.c: added mcs51 assembly version
8243         * device/lib/_fs2sint.c: added mcs51 assembly version
8244         * device/lib/_fs2schar.c: added mcs51 assembly version
8245         * device/lib/_fs2ulong.c: added mcs51 assembly version
8246         * device/lib/_fs2uint.c: added mcs51 assembly version
8247         * device/lib/_fs2uchar.c: added mcs51 assembly version
8248         * device/lib/_slong2fs.c: added mcs51 assembly version
8249         * device/lib/_sint2fs.c: added mcs51 assembly version
8250         * device/lib/_schar2fs.c: added mcs51 assembly version
8251         * device/lib/_ulong2fs.c: added mcs51 assembly version
8252         * device/lib/_uint2fs.c: added mcs51 assembly version
8253         * device/lib/_uchar2fs.c: added mcs51 assembly version
8254         * device/include/float.h: added #define to select asm vs c
8255
8256 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
8257
8258         * device/lib/printf_fast.c: improvements to float output
8259         * device/include/float.h: add defines for assembly float library
8260         * device/lib/_fsget1arg.c: receive 1 float arg
8261         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
8262         * device/lib/_fsnormalize.c: normalize a float
8263         * device/lib/_fsreturnval.c: return float, various helper routines
8264         * device/lib/_fsrshift.c: right shift a float's mantissa
8265         * device/lib/_fsswapargs.c: swap 2 floats
8266         * device/lib/Makefile.in: build these 6 new files for mcs51
8267         * device/lib/libfloat.lib: add these 6 files to the library
8268
8269 2004-12-26 Borut Razem <borut.razem AT siol.net>
8270
8271         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
8272           built by gcc 3.4.2
8273
8274 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
8275
8276         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
8277           and fully reentrant and register bank neutral.
8278         * device/lib/printf_fast.c: added float (not enabled by default),
8279           added compact/slower integer (also not enabled by default),
8280           improved size/speed of fast integer code, other minor changes
8281         * device/include/stdio.h, device/lib/Makefile.in,
8282           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
8283
8284 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
8285
8286         * src/pic16/pcode.c: declaring variables other than at the start of a
8287           block is not supported in C by VC6.
8288
8289 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
8290
8291         * applied a previous patch from Raphael Neider that wasn't included
8292         in the previous commits, which fixes infinite loops within jumptable
8293         improvements,
8294         * made some fixes that previous patches introduced
8295
8296 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
8297
8298         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
8299         that fixes an issue with AOP_PCODE asmop's offset,
8300         * (pic16_popCopyReg): update instance field too,
8301         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
8302         function of pic port,
8303         * (genCmp, genAnd, genAssign),
8304         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
8305
8306 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
8307
8308         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
8309         variables initial values to idata section,
8310         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
8311         variables in some functions. This utilizes parmBytes field of iCode
8312         structure to hold the offset of the variable in stack. (might be
8313         able to use the stack field too?)
8314         * applied patch from Raphael Neider # ### , # ###
8315         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
8316         variable initial values in idata section,
8317         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
8318         for static variables with initial value
8319         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
8320         applied fix in while loop from Raphael Neider.
8321
8322 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
8323
8324         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
8325         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
8326         * src/ds390/ralloc.c (serialRegAssign): spill bits
8327         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
8328         * support/Util/SDCCerr.c,
8329         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
8330         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
8331         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
8332
8333 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
8334
8335         * device/include/sdcc-lib.h: inserted LGPL, added includes
8336           asm/ds390/features.h and asm/mcs51/features.h
8337         * device/include/asm/default/features.h,
8338         * device/include/asm/gbz80/features.h,
8339         * device/include/asm/z80/features.h: added empty _AUTOMEM
8340           and _STATMEM
8341         * device/include/asm/ds390/features.h,
8342         * device/include/asm/mcs51/features.h: added files with defines for
8343           _AUTOMEM and _STATMEM indicating automatic and static storage class
8344         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
8345         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
8346         * src/SDCCicode.c (geniCodeCast),
8347         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
8348         * src/SDCCloop.c (loopInduction): removed unused variable lr
8349         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
8350           to convertToFcall to include char modulo (RFE 1065037), added check
8351           if left operand is unsigned and use abs of literal value
8352         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
8353           as it doesn't work after conversion from peephole.def to peephole.rul
8354         * src/mcs51/gen.c (toBoolean): added check for size,
8355           (genModOneByte): optimized code for signed char modulo a literal
8356           power of 2 (thanks to Hubert Sack),
8357           (genRRC): removed unnecessary "clr c",
8358           (genRLC): replaced "add a,acc" with cheaper "rlc a"
8359         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
8360           jump optimization,
8361           swapped rules 256.c and 256.d,
8362           extended 256.d by using new multiple checks (thanks Erik),
8363           added rules 256.e and 256.f,
8364           updated rule 261.a and 261.b to new generated code
8365         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
8366
8367 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8368
8369         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
8370           induction related bugs, including first part of bug #1074377
8371
8372 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
8373
8374         * applied patch from bug-report #1076292,
8375         * applied patches for genAnd and Goto-optimizations for Raphael
8376         Neider,
8377         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
8378         dump a less iCode information,
8379         * src/pic16/device.h (pic16_options_t): added field debgen,
8380         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
8381         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
8382         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
8383         puclic,
8384         * (various functions): added macros FENTRY and FENTRY2 to functions,
8385         to emit function prologue,
8386         * (various functions): fixed indentation,
8387         * (genNearPointerGet): fixed loading of FSR0,
8388         * (genPackBits): applied patch from Raphael Neider to fix updating
8389         of FSR0 and touching only the modified bits,
8390         * src/pic16/genarith.c (various functions): added macros FENTRY to
8391         emit function prologue in comments,
8392         * src/pic16/pcode.h: added functions debugf2, debugf3,
8393         * src/pic16/ralloc.c: partial fix for packForPush caused
8394         segmentation fault,
8395
8396 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8397
8398         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
8399           <stsp AT users.sourceforge.net> with reversed byte order
8400         * support/regression/tests/rotate.c: added (ds390 skips some tests)
8401
8402 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8403
8404         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
8405           bug #1074377
8406         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
8407         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
8408
8409 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
8410
8411         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
8412
8413 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8414
8415         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
8416           conditions,
8417           (setFromConditionArgs): friendly operand parser for peephole rules,
8418           (operandBaseName, operandsNotRelated): new peephole condition
8419           "operandsNotRelated" -- similar to "operandsNotSame", but takes
8420           architecture specific register naming into account, handles n-way
8421           comparisons, and supports quoted literals
8422         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
8423
8424 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8425
8426         * src/mcs51/peeph.def: fixed bug #1076940
8427
8428 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
8429
8430         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
8431
8432 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8433
8434         Adding support for replacing ljmps with sjmps in jumptables
8435         generated for switch statements. For now you need to set the
8436         environment variable SDCC_SJMP_JUMPTABLE to enable this.
8437         Now 4 algorithms for mcs51 jumptable generation are used:
8438         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
8439         addresses loaded pc-relative for up to 112 cases and stack-pushing
8440         target addresses loaded with offset from dptr for up to 256 cases.
8441
8442         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
8443         * src/mcs51/main.c: adapted constants for switch table generation
8444         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
8445
8446 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
8447
8448         * device/lib/printf_large.c (_print_format): fixed bug 1073386
8449         * support/regression/tests/bug1057979.c: added test for bug 1073386
8450
8451 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
8452
8453         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
8454         compilers
8455
8456 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
8457
8458         * src/pic16/device.h,
8459         * src/pic16/genarith.c,
8460         * src/pic16/glue.c,
8461         * src/pic16/main.c,
8462         * src/pic16/pcode.c: applied patches #1068154 and #1070213
8463
8464 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
8465
8466         Large cummulative patch for pic16 port.
8467         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
8468         to call when a stack overflow occurs,
8469         * (malloc.h): added CVS Id tag,
8470         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
8471         variable,
8472         * added libc directory. The current version of LibC contains string
8473         functions, ctype functions and macros and some functions of the
8474         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
8475         be extensively tested in the future. Standard disclaimer here.
8476         Library is not automatically build yet. But one can build it by
8477         invoking 'make' inside the libc directory.
8478         * added ADC library under libio. Preliminary version yet.
8479
8480         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
8481         * src/pic16/gen.c (aopForRemat): asmop size is filled by
8482         aopForRemat() now and not by pic16_aopOp(),
8483         * (pic16_popGetTempReg): removed warning messgae when allocating
8484         temporary registers, its a buggy feature and will be removed,
8485         * (pic16_popGet): set register instance field in AOP_CRY,
8486         * (pic16_outBitC): fixed for results in size greater than 1,
8487         * (genUminusFloat): fixed for pic16, ported code from mcs51,
8488         * (pic16_storeForReturn): optimized return of 0,
8489         * (genCmp): experimental code for new genCmp which uses PIC18's
8490         special compare&skip instructions. Initial tests fail some times
8491         with variables grater than 1 byte in size, so new code is disabled,
8492         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
8493         a single bit,
8494         * (genCast): began a fix to optimize the casting of a bit to another
8495         bit, now assigning a bitfield to another bitfield will fail, sorry,
8496         * src/pic16/main.c: disabled the use of lr-support feature,
8497         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
8498         * added some function prototypes, added function _debugf prototype,
8499         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
8500         bits with offset (case PO_GPR_BIT),
8501         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
8502         command line,
8503         * (isBankInstruction): modified to return 0 for no banking instruction,
8504         and 1 for banking instruction,
8505         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
8506         caused stop processing pCodes after a inline assembly block,
8507         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
8508         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
8509         registers when it shouldn't,
8510         * src/pic16/ralloc.c (allocReg): add preliminary support for
8511         supporting a limited set of temporary registers,
8512
8513 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8514
8515         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
8516           genDataPointerSet): ensure assignments always copy in MSB to LSB
8517           order,
8518           (loadRegFromAop): recognize CLRH optimization,
8519           (genFunction): optimize RECEIVE iCodes in reentrant functions
8520
8521 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8522
8523         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
8524           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
8525           selected.
8526         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
8527         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
8528           contiguous with data
8529
8530 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8531
8532         * device/lib/_gptrget.c (_gptrget),
8533         * device/lib/_gptrgetc.c (_gptrgetc),
8534         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
8535           instead of sjmp to ret
8536         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
8537           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
8538
8539 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
8540
8541         * .version: bumped version to 2.4.7
8542         * device/lib/_gptrget.c (_gptrget): is now _naked
8543         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
8544         * device/lib/_gptrput.c (_gptrput): is now _naked
8545         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
8546           (createFunction): fixed xstack
8547         * src/SDCCglue.c (emitMaps): set allocation required for bit area
8548         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
8549           or bit either,
8550           (geniCodeCritical): store original interrupt state in an iTemp bit
8551           var unless stack-auto
8552         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
8553         * src/SDCCmain.c (setIncludePath): added include/target to search path
8554         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
8555         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
8556           prototype,
8557           (processFuncArgs): put bit vars in bit area
8558         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
8559           unsaveRBank): fixed xstack,
8560           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
8561           (genFunction, genEndFunction): fixed xstack,
8562           (genAssign): optimization don't walk backwards through mem
8563         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
8564         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
8565         * support/regression/Makefile: also make library (for stack-auto) when
8566           making "all" and added "test-mcs51-xstack-auto"
8567         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
8568         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
8569         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
8570         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
8571         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
8572           make-library by MAKE_LIBRARY
8573         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
8574           regression tests for xstack
8575         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
8576         * support/regression/tests/critical.c: test for critical on mcs51
8577
8578 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8579
8580         * support/regression/ports/ucz80/spec.mk: use include and lib files from
8581           built version of sdcc instead of installed version
8582
8583 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
8584
8585         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
8586         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
8587           vprintf.c now
8588         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
8589         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
8590           WARNING: remove device/lib/build/z80/printf.o by hand when
8591           updating from previous build!
8592         * device/lib/z80/printf.c: updated comment
8593         * support/regression/tests/bug1057979.c: test all ports now
8594         * support/regression/tests/bug1065458.c: file added
8595
8596 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8597
8598         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
8599           *_start and *_end symbols for static functions
8600
8601 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
8602
8603         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
8604           and search crt0.o in all library paths,
8605           (setIncludePath): proper handling of --nostdinc,
8606           (setLibPath): proper handling of --nostdlib
8607         * support/regression/Makefile,
8608         * support/regression/ports/ds390/spec.mk,
8609         * support/regression/ports/gbz80/spec.mk,
8610         * support/regression/ports/hc08/spec.mk,
8611         * support/regression/ports/mcs51/spec.mk,
8612         * support/regression/ports/mcs51-large/spec.mk,
8613         * support/regression/ports/mcs51-stack-auto/spec.mk,
8614         * support/regression/ports/z80/spec.mk: use include and lib files from
8615           built version of sdcc instead of installed version
8616         * doc/sdccman.lyx: fixed typo in --nostdinc
8617
8618 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
8619
8620         * src/pic/pcode.c,
8621         * src/pic/device.c,
8622         * src/pic/ralloc.c,
8623         * src/pic/gen.c : added support to generate code for struct bit fields.
8624
8625 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
8626
8627         * as/xa51/xa_version.h,
8628         * device/include/errno.h,
8629         * device/include/regc515c.h,
8630         * device/lib/_itoa.c,
8631         * device/lib/_ltoa.c,
8632         * device/lib/ser_ir_cts_rts.c,
8633         * sim/ucsim/xa.src/glob.cc,
8634         * sim/ucsim/xa.src/inst_gen.cc,
8635         * sim/ucsim/xa.src/xa_bit.cc,
8636         * sim/ucsim/xa.src/xa_sfr.cc,
8637         * sim/ucsim/z80.src/inst_dd.cc,
8638         * sim/ucsim/z80.src/inst_fdcb.cc,
8639         * support/scripts/keil2sdcc.pl,
8640         * src/pic16/pic16.dsp,
8641         * src/pic16/pic16a.dsp: corrected cvs line endings
8642         * device/lib/printf_large.c: fixed bug 1057979
8643         * src/pic16/gen.c: fixed non-C standard code
8644         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
8645         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
8646         * support/regression/ports/mcs51/support.c: reload T1 asap
8647         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
8648           pdata use and clear idata startup behaviour
8649         * support/regression/tests/bug1057979.c: added
8650
8651 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
8652
8653         * device/examples/ds390/ow390/ad26.h,
8654         * device/examples/ds390/ow390/cnt1d.h,
8655         * device/examples/ds390/ow390/crcutil.c,
8656         * device/examples/ds390/ow390/ownet.h,
8657         * device/examples/ds390/ow390/owsesu.c,
8658         * device/examples/ds390/ow390/swt12.h,
8659         * device/examples/ds390/ow390/swtoper.c,
8660         * device/examples/ds390/ow390/temp10.h,
8661         * device/examples/ds390/ow390/thermodl.c,
8662         * device/examples/ds390/tinitalk/tinitalk.dsp,
8663         * device/examples/ds390/tinitalk/tinitalk.dsw,
8664         * device/examples/mcs51/clock/hw.h,
8665         * device/examples/mcs51/simple2/go.bat,
8666         * device/examples/serialcomm/windows/serial.h,
8667         * device/examples/xa51/dummy.c,
8668         * device/examples/xa51/hello.c,
8669         * device/include/80c51xa.h,
8670         * device/include/at89x051.h: corrected cvs line endings
8671
8672 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
8673
8674         * src/pic16/main.c (options): added command line --gstack, to trace
8675         stack over/under flows,
8676         * added pragma 'wparam' to allow passing first byte of function
8677         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
8678         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
8679         call to __gstack_test function and sets up the symbol as extern,
8680         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
8681         * popaop): added call to pic16_testStackOverflow,
8682         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
8683         wparamList list,
8684         * (genCall, genPcall): now all parameters are passed via stack
8685         except in functions that are pass to wparam pragma in which WREG is
8686         used too,
8687         * (genPcall): REENTRANT flag is checked to see if variable prototype
8688         contains reentrant keyword, don't call a non-reentrant function, via
8689         a reentrant function pointer or vice versa, functions are never
8690         passed via WREG,
8691         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
8692         D.Winkler,
8693         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
8694         SIGSEGV when accessing a NULL register stucture,
8695         * (pic16_printGPointerType): modified to handle UPPER modifier for
8696         function initializers, changed prototype of function to simpler one,
8697         * (pic16_printIvalFuncPtr): check to see if function is already
8698         added in externs list,
8699         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
8700         optimized a move from W to SFR with a move to the same register
8701         later after a CALL,
8702         * device/lib/pic16/debug: NEW directory, contains debug features
8703         which are enabled when linking with libdebug.lib, currently command
8704         line option --gstack enables stack pointer tracing for over/under
8705         flow, corresponding sources are in debug/gstack
8706
8707 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
8708
8709         * doc/sdccman.lyx: updated SDCC version,
8710         * (PIC16 port): update list of command line options,
8711         * src/pic16/device.h (structure pic16_options_t): added field gstack
8712         to enable stack overflow tracing on push/pops,
8713         * src/pic16/device.c (statistics structure): added statistics
8714         structure,
8715         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
8716         pic16_dump_int_registers): increase statistics counters for each
8717         * variable which is encountered
8718         * (pic16_dump_usection): emit each .udata variable to its own udata
8719         section,
8720         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
8721         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
8722         parameters via stack, otherwise use old scheme,
8723         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
8724         assembler output file,
8725         * src/pic16/main.c: added command line options --gstack to enable
8726         push/pop tracing for stack overflow,
8727         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
8728         instructions): added size of each instruction,
8729         * (pic16_countInstruction): estimate size of instructions in
8730         the_pFile list, inline assembly blocks are not counted,
8731         * (pic16_FixRegisterBanking): trace previous register usage, when
8732         banksel optimizations is greater than 0, don't emit a redudant
8733         banksel directive,
8734
8735 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
8736
8737         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
8738         * src/pic16/ralloc.c : applied same fix for pic16.
8739         * src/pic/gen.c : tidied it up a little.
8740
8741 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8742
8743         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
8744         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
8745
8746 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8747
8748         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
8749
8750 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8751
8752         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
8753         non-reentrant function __modsint in the interrupt function (thus
8754         corrupting math operations during serial I/O)
8755         * device/lib/ser_ir.c: as above, changed buffersize
8756         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
8757         256.c,d for zeroing
8758         * doc/Makefile: added option -t for rsync
8759
8760 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8761
8762         * src/SDCCast.h (struct ast),
8763         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
8764
8765 2004-10-20 Borut Razem <borut.razem AT siol.net>
8766
8767         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
8768         package
8769
8770 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
8771
8772         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
8773         makefile targets,
8774         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
8775         support functions to replace long sequences of MOVFF's from access
8776         bank registers to stack and vice versa,
8777         * src/pic16/device.h: added new field opt_flags, where optimization
8778         flags can be set to enable certain features,
8779         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
8780         * pBlock, (genFunction, genEndFunction): surroung loop for
8781         saving/loading used registers in stack with PC_INFO pCodes,
8782         INF_LREGS. Code in between can then be optimized by pCode optimizer
8783         to support function calls,
8784         * (genDataPointerSet): fixed bug which loaded float fields in
8785         structures with corrupt data,
8786         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
8787         in a standard way debug info on stderr. Feature used for developing
8788         and debugging only,
8789         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
8790         obsolete chunks of code,
8791         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
8792         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
8793         * pic16/src/pcode.c (pic16_newpCodeInfo,
8794         * (pic16_newpCodeOpLocalRegs),
8795         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
8796         feature,
8797         * (pic16_pCodeConstString): printing of the initial value of a
8798         symbol as a comment is inhibited since parsing was already done by
8799         copyStr and output is corrupt,
8800         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
8801
8802 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8803
8804         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
8805
8806 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
8807
8808         * as/mcs51/lkarea.c: removed old K&R style,
8809           (lnksect): changed check on boundary error,
8810           (lnksect2): changed check on boundary error,
8811           (lnksect2): extend XSTK to end of page if size = 1
8812         * as/mcs51/lkmain.c: removed old K&R style,
8813           (Areas51): create l_IRAM symbol
8814         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
8815         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
8816           model-mcs51-stack-auto, added model-mcs51-xstack-auto
8817         * device/lib/_mullong.c: added version to be compiled with xstack
8818         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
8819         * device/lib/mcs51/crtxclear.asm: clear pdata as well
8820         * device/lib/mcs51/crtxstack.asm: fixed comment
8821         * src/SDCCglue.c: maxInterrupts defaults to 0,
8822           (emitMaps): added pdata,
8823           (createInterruptVect): (re)moved default,
8824           (glue): added pdata,
8825           (glue): moved __start__xstack to XSTK with default size 1
8826         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
8827           and options.float_rent when options.stackAuto is set,
8828           (linkEdit): only write XDATA_NAME if provided on command line
8829         * src/SDCCmem.h,
8830         * src/SDCCmem.c: added pdata
8831         * src/port.h: added pdata_name to PORT
8832         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
8833           (saveRegisters, unsaveRegisters): removed usage of B,
8834           (genMinus): fixed accumulator clash,
8835           (genJumpTab): added comment, this needs another look
8836         * src/mcs51/gen.c: added check for "B in use" paranoia,
8837           added pushB() and popB()
8838         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
8839           chance
8840         * src/avr/main.c,
8841         * src/ds390/main.c,
8842         * src/hc08/main.c,
8843         * src/mcs51/main.c,
8844         * src/pic/main.c,
8845         * src/pic16/main.c,
8846         * src/xa51/main.c,
8847         * src/z80/main.c: (reset_regparms) made void parameter explicit and
8848           added PSEG (PAG,XDATA) or NULL to port specifier
8849         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
8850         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
8851           (_mcs51_genInitStartup): removed __start__xstack equ,
8852           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
8853         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
8854         * src/z80/gen.c (_rleAppend): fixed warnings
8855         * support/regression/tests/zeropad.c: added pdata test
8856         * .version: bumped to 2.4.6
8857
8858 2004-10-17 Borut Razem <borut.razem AT siol.net>
8859
8860         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
8861         as a part of nightly build
8862
8863 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
8864
8865         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
8866         WREG holds the first byte function parameters,
8867         * (aopForSym): take special case for symbols which are in FARSPACE
8868         but in CODESPACE too,
8869         * (assignResultValue): modified to take into account _G.useWreg,
8870         * (genCall): don't use wreg for parameter passing when function is
8871         declared as reentrant, too, added optimization INCF to stack
8872         pointer when stack parameter count is 1,
8873         * (genFunction, genEndFunction): refurnished and fixed to not using
8874         wreg for passing parameters when function has varargs or is
8875         reentrant, fixed bug with symbol name compare for generating
8876         functions in absolute address,
8877         * (pic16_storeForReturn): refurnished,
8878         * (genCmp): began writing a new version of the function, not ready
8879         yet, therefore it is disabled,
8880         * (genAssign): do not read code memory when assigning a function to
8881         a pointer function,
8882         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
8883         array of characters, not pointer,
8884         * (pic16initialComments): in debug mode emit an .ident directive for
8885         the assembler,
8886         * (_process_pragma): emit a new warning type (internal to pic16)
8887         when setting stack to default length, emit a similar warning when
8888         placing a function at absolute address and address is not word aligned
8889         * (_pic16_parseOptions): added 'return TRUE' statement,
8890         * (_pic16_linkEdit): if compiling a source, then add the source's
8891         file object, first in the list of objects to link,
8892
8893 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
8894
8895         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
8896         * src/pic/main.c : removed VC warning.
8897         * src/pic/gen.c : changed comment.
8898
8899 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
8900
8901         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
8902         reference to a deprecated symbol _GPTRREG was causing failure to
8903         link. Thanks G. M. Gallant for the info.
8904
8905 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
8906
8907         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
8908         comments for Bugs item #954788.
8909
8910 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
8911
8912         * src/pic16/device.c (pic16_dump_gsection,
8913         * pic16_groupRegistersInSection): handle symbols declared to be in
8914         access bank differently,
8915         * src/pic16/gen.c (struct _G): added field resDirect,
8916         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
8917         send values read from stack directly to result and don't allocate
8918         temporary values,
8919         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
8920         same registers,
8921         * (pic16_sameRegsOfs): NEW,
8922         * (freeAsmop): if _G.resDirect is set then do not mark registers as
8923         free because they were not allocated from temporary pool,
8924         * pic16_popRegFromString): workaround to fix a problem with
8925         allocating variables twice or never,
8926         * (genGenPointerGet): using PRODL instead of FSR0H,
8927         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
8928         instead of FSR0H,
8929         * (genAssign): take advantage of the _G.resDirect flag,
8930         * (genCast): around line 11844, use mov2f instead of directly
8931         MOVFF'ing between operands to account for literal values,
8932         * src/pic16/genutils.c: some new debug functions for gpsim have been
8933         added,
8934         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
8935         float with integer part only,
8936         * src/pic16/main.c (_process_pragma): handle pragma udata access to
8937         place variables in access bank
8938         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
8939         updated sources to reflect recent changes in gen.c
8940
8941 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
8942
8943         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
8944         sources that searched for headers in installation path, now the
8945         device/include/pic16 is used,
8946         * src/pic16/glue.c (pic16glue),
8947         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
8948         .line directives if not in debug mode, this suppresses assembler's
8949         warnings for ignored directives
8950
8951 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
8952
8953         * src/port.h: made reset_regparms prototype void parameter explicit.
8954         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
8955         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
8956         * doc/sdccman.lyx: documented warning disabling and how to use
8957           printf_large to make it print floats.
8958         * device/include/stdbool.h: NEW
8959         * device/lib/_atof.c,
8960         * device/lib/_divuint.c,
8961         * device/lib/_divulong.c,
8962         * device/lib/expf.c,
8963         * device/lib/printf_large.c,
8964         * device/lib/sincosf.c,
8965         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
8966         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
8967           a completely reentrant lib.
8968
8969 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
8970
8971         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
8972         * device/include/pic16/stdio.h: fixed bug with colon
8973
8974 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
8975
8976         * device/include/pic16/stdio.h,
8977         * device/include/pic16/stdlib.h,
8978         * device/include/pic16/math.h: NEW
8979         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
8980         declared as _naked to reduce overhead
8981         * device/lib/Makefile.in (target port-specific-objects-pic16):
8982         changed * to *.* so to ignore the CVS directory,
8983         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
8984         stacked variables back in stack,
8985         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
8986         corruption
8987
8988 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
8989
8990         * .version: bumped version number to 2.4.5
8991         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
8992         * support/Util/SDCCerr.c (messages structure): added entry for
8993         W_POSSBUG2
8994
8995         Large cumulative patch for pic16 port and libraries.
8996         * device/include/pic16/sdcc-lib.h,
8997         * device/include/pic16/stdarg.h,
8998         * device/include/asm/pic16/features.h,
8999         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
9000         * device/include/pic16/float.h: changes reentrant keyword with
9001         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
9002         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
9003         updated target build-libraries to include objects from gptr,
9004         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
9005         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
9006         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
9007         all function headings,
9008         * src/SDCCmain.c: added global parameter userIncDirsSet,
9009         * (parseCmdLine): when option -I is encountered add directory to
9010         userIncDirsSet too,
9011         * src/version.awk: added space between control and long,
9012         * src/pic16/NOTES: added some notes for the port,
9013         * src/pic16/gen.c: added prototype for mov2fp function,
9014         * (fReturnpic16[]): properly named return value registers,
9015         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
9016         * (aopForSym): added code to handle symbols with onStack flag set,
9017         symbols onStack are allocated PTRSIZE bytes,
9018         * (aopFreeAsmop): handles special case where asmops are stack objects,
9019         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
9020         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
9021         added argument lock to trace flaws in allocating temporary registers
9022         when developing port,
9023         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
9024         * (pic16_popRegFromString): reenabled allocating a direct register
9025         from string,
9026         * (assignResultValue): various beautifications,
9027         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
9028         referenced function argument,
9029         * (genIpush): reenabled to allow stacked arguments, handles only
9030         ic->parmPush iCodes,
9031         * (genCall, genPcall): major changes to allow for variable argument
9032         functions, fixed a bug with falsely restoring stack pointer after
9033         returning from call,
9034         * (genFunction): pending code for critical function,
9035         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
9036         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
9037         * (genNearPointerGet): fixed bug with indirect reading, was always
9038         reading from INDF0
9039         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
9040         pointers,
9041         * (genAddrOf): rewrote code to take address of a stacked function parameter
9042         * (genCast): fixed casting to generic pointer type,
9043         * src/pic16/gen.h: added AOP_STA,
9044         * (struct asmop): added field stk,
9045         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
9046         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
9047         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
9048         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
9049         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
9050         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
9051         generic pointers,
9052         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
9053         and library paths,
9054         * (pic16_port structure): generic pointer size is set to 3,
9055         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
9056         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
9057         compiler warning,
9058         * src/pic16/ralloc.c (allocReg): prevent allocating register when
9059         operand is an iTemp,
9060
9061 2004-09-24 Martin Helmling <mh AT octo-soft.de>
9062
9063         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
9064         * debugger/mcs51/simi.c: addapt new syntax of s51
9065
9066 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
9067
9068         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
9069         * src/pic16/pcode.c: commented out some calls to free() in order to
9070         fix bug #989576,
9071
9072 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9073
9074         * src/SDCCicode.h,
9075         * src/SDCCicode.c (isiCodeInFunctionCall),
9076         * src/avr/ralloc.c (selectSpil),
9077         * src/pic/ralloc.c (selectSpil),
9078         * src/pic16/ralloc.c (selectSpil),
9079         * src/ds390/ralloc.c (selectSpil),
9080         * src/hc08/ralloc.c (selectSpil),
9081         * src/xa51/ralloc.c (selectSpil),
9082         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
9083         stack in the middle of a function call sequence (fixes bug #1020268)
9084         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
9085         costs associated with the minimum switch case.
9086
9087 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9088
9089         * src/SDCC.lex: fixed bug #1030549
9090
9091 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9092
9093         * src/SDCCcse.h (struct cseDef),
9094         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
9095         over a function call if the CSE is derived from a symbol whose
9096         address has been taken (fixes bug #1029883)
9097         * support/regression/tests/bug-1029883: a new regression test for
9098         this bug
9099
9100 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9101
9102         * src/hc08/gen.c (emitinline): fixed bug #1029778
9103         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
9104         to a cast object is no longer a syntax error ("fixes" bug #1030006,
9105         and starts toward RFE #905167)
9106
9107 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
9108
9109         * src/pic16/gen.c (mov2f): New function to move an operand to
9110         another without considering if it is a literal or a register,
9111         * (pic16_sameRegs): don't check if they are both AOP_REG,
9112         * (AccRsh): removed andmask=0 lines,
9113         * (genLeftShift): duplicated to be improved in future versions,
9114         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
9115         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
9116         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
9117         * (pic16initMnemonics): added initialization for POC_INFSNZW,
9118         * (insertBankSwitch): fixed inserting banksel directives algorithm
9119         for instructions that follow a skip instruction, this fixes a report
9120         for broken subtraction code generation,
9121         * src/pic16/ralloc.c (deassignLRs): do not free register if current
9122         iCode is a left op, just in case result and right share the same
9123         registers
9124
9125 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9126
9127         * src/hc08/main.c,
9128         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
9129         preservation of HX
9130         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
9131         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
9132         on 2004-09-12; it was buggy
9133
9134 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
9135
9136         * src/SDCCsymt.h: removed RESULT_CHECK
9137         * src/SDCCast.c,
9138         * src/SDCCglue.c,
9139         * src/SDCCval.c,
9140         * src/pic/glue.c,
9141         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
9142
9143 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
9144
9145         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
9146         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
9147         configuration values no more rejected by compiler, they are assigned
9148         to configuration registers with a warning message instead,
9149         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
9150         the for-loop so last conf register is emitted too,
9151         * (_pic16_initPaths): link library libsdcc.lib by default,
9152         * (_hasNativeMulFor): modified test for multiplication according to
9153         Raphael Neider's remarks. Integer multiplication is also done with
9154         support functions,
9155         * device/include/pic16/pic18fregs.h: corrected type error in while
9156         testing and including 18f6720 header file
9157
9158 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
9159
9160         * src/pic16/device.h (pic16_options): removed field use_crt,
9161         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
9162         until an optimization to handle single bits is added,
9163         * (pic16_loadFSR0): moved before genUnpackBits,
9164         * (genAnd): some white lines removed,
9165         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
9166         leave_reset flags in pic16_options when using crt modules,
9167
9168 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
9169
9170         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
9171           for bugs 898889 & 979599. Also used some safer print instructions.
9172
9173 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
9174
9175         * src/pic16/device.h (pic16_options_t): added field use_crt,
9176         crt_name, no_crt,
9177         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
9178         catch a probable future bug,
9179         * src/pic16/gen.c: aopIdx function commented out,
9180         * (genAssign): commented out old code which used aopIdx,
9181         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
9182         code, added if conditionals to take into account the --use-crt
9183         command line options,
9184         * src/pic16/main.c (pic16_optionsTable): added new command line
9185         options, --use-crt= and --no-crt,
9186         * (_pic16_linkEdit): now the proper crt object is added in the
9187         linker command line except than when --no-crt is specified,
9188         * src/pic16/pcode.c,
9189         * src/pic16/pcode.h: added some structures and functions for a new
9190         optimization scheme to compansate for instruction overhead between
9191         same iCodes, this scheme is currently under development and is not
9192         working in any way,
9193         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
9194         to && operator,
9195         * device/lib/pic16/startup/crt0i.c,
9196         * device/lib/pic16/startup/crt0iz.c: added global char variable
9197         __uflags to force the generation of an idata section
9198
9199 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
9200
9201         * doc/Makefile,
9202         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
9203         * doc/sdccman.lyx: updated sdcc version to 2.4.4
9204
9205 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9206
9207         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
9208         Frieder) and clarified the default code optimization mode
9209
9210 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9211
9212         * src/SDCC.lex (doPragma, process_pragma),
9213         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
9214         "opt_code_size", and "opt_code_balanced"
9215         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
9216         regrouped options by category, added support for category headers
9217         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
9218         and "--opt-code-size"
9219         * doc/sdccman.lyx: documented these new options and pragmas
9220         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
9221         preference into account
9222
9223 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
9224
9225         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
9226           geniCodePreDec): Fixed bug 904237 by generating a warning
9227         * src/SDCCerr.h,
9228         * src/SDCCerr.c: added warning W_SIZEOF_VOID
9229
9230 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
9231
9232         * src/pic/device.c : When no max ram set validate full memory range.
9233         * src/pic/pcode.c,
9234         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
9235
9236 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
9237
9238         * device/lib/_gptrget.c,
9239         * device/lib/_gptrput.c: updated comment
9240         * device/lib/calloc.c,
9241         * device/lib/free.c,
9242         * device/lib/malloc.c,
9243         * device/lib/realloc.c: added LGPL, made them reentrant-safe
9244         * src/SDCCcse.c (cseBBlock),
9245         * src/SDCCicode.c (printOperand, geniCodeArray),
9246         * src/SDCCicode.h (struct operand): fixed bug 868103
9247         * support/regression/tests/bug-868103.c: added
9248         * src/SDCCast.c (searchLitOp),
9249         * src/SDCCcse.h (struct cseDef),
9250         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
9251         * src/SDCCicode.h (struct operand),
9252         * src/SDCCsymt.h (struct sym_link),
9253         * src/avr/gen.c (hasInc),
9254         * src/ds390/gen.c (hasInc),
9255         * src/hc08/gen.c (genPlusIncr, hasInc),
9256         * src/mcs51/gen.c (hasInc),
9257         * src/pic16/glue.c (pic16_printIvalChar),
9258         * src/pic16/ralloc.c (regWithIdx),
9259         * src/xa51/gen.c (hasInc) : removed warnings
9260         * src/SDCCast.c (createBlock): added comment ???
9261         * src/hc08/ralloc.c: updated comments
9262
9263 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9264
9265         * doc/sdccman.lyx: updated section on switch statements, added
9266         section about semaphore locking
9267         * doc/Makefile: added option -info for latex2html
9268         * device/lib/_gptrget.c,
9269         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
9270
9271 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
9272
9273         * src/pic/device.h,
9274         * src/pic/device.c,
9275         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
9276          maxram is less than 0x100.
9277
9278 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
9279
9280         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
9281
9282 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9283
9284         * src/port.h,
9285         * src/mcs51/main.c,
9286         * src/ds390/main.c,
9287         * src/z80/main.c,
9288         * src/hc08/main.c,
9289         * src/pic/main.c,
9290         * src/pic16/main.c,
9291         * src/avr/main.c,
9292         * src/xa51/main.c
9293         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
9294         a jump table is the best form for a switch statement, including
9295         automatic insertion of missing cases to make the case range
9296         continuous. Developed in collaboration with Frieder Ferlemann.
9297
9298 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9299
9300         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
9301         accumulator result if it needs sign extension
9302
9303 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9304
9305         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
9306
9307 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9308
9309         * device/lib/gbz80/printf.c,
9310         * device/lib/z80/printf.c: removed define for NULL
9311
9312 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9313
9314         * as/xa51/xa_link.c,
9315         * device/examples/ds390/ow390/ad26.c,
9316         * device/examples/ds390/ow390/cnt1d.c,
9317         * device/examples/ds390/ow390/counter.c,
9318         * device/examples/ds390/ow390/ds2480.h,
9319         * device/examples/ds390/ow390/ds2480ut.c,
9320         * device/examples/ds390/ow390/findtype.c,
9321         * device/examples/ds390/ow390/gethumd.c,
9322         * device/examples/ds390/ow390/owllu.c,
9323         * device/examples/ds390/ow390/ownetu.c,
9324         * device/examples/ds390/ow390/swt12.c,
9325         * device/examples/ds390/ow390/swtloop.c,
9326         * device/examples/ds390/ow390/temp.c,
9327         * device/examples/ds390/ow390/temp10.c,
9328         * device/examples/ds390/ow390/thermo21.c,
9329         * device/examples/ds390/ow390/tinilnk.c,
9330         * device/examples/ds390/ow390/tstfind.c,
9331         * device/examples/serialcomm/windows/serial.cpp,
9332         * device/examples/serialcomm/windows/test_serialcomm.cpp,
9333         * device/include/reg51.h: fixed line endings for cvs
9334
9335 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9336
9337         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
9338         packRegsForAccUse, packRegisters): new accumulator register
9339         packing algorithm
9340         * support/regression/ports/hc08/support.c (_putchar): suppress
9341         warning of unused variable
9342         * src/SDCCicode.c: added SWAP entry to codeTable
9343
9344 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
9345
9346         * device/lib/sprintf.c: forgot to add this file before previous commit
9347
9348 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
9349
9350         * src/pic16/gen.c (genPackBits): added operand right in function
9351         parameters, load result directly if p_type is POINTER (that is
9352         called by genNearPointerSet)
9353         * (genUnPackBits): added operand left in function parameters,
9354         * (genNearPointerGet, genNearPointerSet): prevent the loading of
9355         FSR0 if accessing bitfields,
9356
9357 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
9358
9359         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
9360           _print_format; updated printf, sprintf, vsprintf
9361         * device/include/asm/default/features.h: corrected comment/define
9362         * device/lib/Makefile.in: added sprintf.c
9363         * device/lib/libsdcc.lib: added sprintf module
9364         * device/lib/printf_large.c,
9365         * device/lib/vprintf.c,
9366         * device/lib/sprintf.c: totally refactored printf_large and vprintf
9367           into these 3 files
9368         * support/regression/Makefile: changed ALL_PORTS into a usefull default
9369         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
9370         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
9371           hc08 test
9372         * support/regression/tests/zeropad.c: define idata as data for hc08
9373
9374 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9375
9376         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
9377         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
9378         labels are referenced at least once (even if a reference is not found)
9379         * src/hc08/gen.c (emitcode): set isComment flag for comments
9380         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
9381         loads), rules 6a..6b (optimize jumps to return)
9382
9383 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9384
9385         * device/lib/acosf.c (acosf),
9386         * device/lib/asinf.c (asinf),
9387         * device/lib/atanf.c (atanf),
9388         * device/lib/ceilf.c (ceilf),
9389         * device/lib/cosf.c (cosf),
9390         * device/lib/coshf.c (coshf),
9391         * device/lib/cotf.c (cotf),
9392         * device/lib/fabsf.c (fabsf),
9393         * device/lib/floorf.c (floorf),
9394         * device/lib/log10f.c (log10f),
9395         * device/lib/logf.c (logf),
9396         * device/lib/sinf.c (sinf),
9397         * device/lib/sinhf.c (sinhf),
9398         * device/lib/sqrtf.c (sqrtf),
9399         * device/lib/tanf.c (tanf),
9400         * device/lib/tanhf.c (tanhf),
9401         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
9402         replaced all instances of "reentrant" in the library functions
9403         defined in math.h with this macro.
9404         * support/regression/tests/float_trans.c: reenabled test for hc08
9405
9406 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
9407
9408         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
9409         erroneously deleted
9410
9411 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9412
9413         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
9414         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
9415         multi-byte volatile operands are used
9416         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
9417         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
9418         initialization to area GSINIT0 so that it would always precede
9419         any static initializers in GSINIT
9420         * support/regression/tests/zeropad.c: fixed idata define for hc08
9421         * support/regression/tests/bug-927659.c,
9422         * support/regression/tests/float_trans.c: disabled tests for hc08
9423         pending missing library routines
9424         * .version: increased version number to 2.4.4 - hc08 port now passes
9425         regression tests
9426
9427
9428 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
9429
9430         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
9431         * Makefile.common.in,
9432         * as/Makefile,
9433         * as/hc08/Makefile.in,
9434         * as/mcs51/Makefile.in,
9435         * as/z80/Makefile.in,
9436         * debugger/mcs51/Makefile.in,
9437         * device/include/Makefile.in,
9438         * device/lib/Makefile.in,
9439         * doc/Makefile,
9440         * link/Makefile,
9441         * link/z80/Makefile.in,
9442         * packihx/Makefile.in,
9443         * sim/ucsim/main_in.mk,
9444         * sim/ucsim/avr.src/Makefile.in,
9445         * sim/ucsim/doc/Makefile.in,
9446         * sim/ucsim/gui.src/serio.src/Makefile.in,
9447         * sim/ucsim/hc08.src/Makefile.in,
9448         * sim/ucsim/s51.src/Makefile.in,
9449         * sim/ucsim/xa.src/Makefile.in,
9450         * sim/ucsim/z80.src/Makefile.in,
9451         * src/Makefile.in,
9452         * support/cpp2/Makefile.in,
9453         * support/librarian/Makefile,
9454         * support/makebin/Makefile: added DESTDIR to the install path proposed
9455         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
9456         * doc/sdccman.lyx: added DESTDIR documentation
9457
9458 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
9459
9460         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
9461         instruction for interrupt handlers, use fast returns when returning
9462         from high priority interrupts
9463
9464 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9465
9466         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
9467         code generation
9468         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
9469         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
9470         bugs, ported much of Bernhard's code from mcs51
9471         * src/mcs51/gen.c (genSend),
9472         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
9473         than one when calling a reentrant function
9474         * device/lib/_mullong.c: defined an alternate struct layout for big
9475         endian ports (hc08)
9476
9477 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9478
9479         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
9480         test
9481
9482 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9483
9484         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
9485         are sane and complete before asking the port its prefered parameter
9486         passing method (fixes bug #1017633)
9487         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
9488         and _ret3
9489
9490 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9491
9492         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
9493         problem in bitfields >= 8 bits.
9494
9495 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9496
9497         * src/SDCCsymt.c: undid changes that were not meant to be committed
9498
9499 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9500
9501         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
9502
9503 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9504
9505         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
9506           copied and wrong bit got inverted
9507
9508 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9509
9510         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
9511         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
9512         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
9513         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
9514         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
9515         assignments to bitfields at known addresses
9516         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
9517         reads from bitfields at known addresses
9518         * src/hc08/ralloc.c (packRegisters),
9519         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
9520         genhc08Code): optimize pointer get values used as conditionals
9521         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
9522         and branch
9523
9524 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9525
9526         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
9527         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
9528         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
9529         as conditionals
9530
9531 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9532
9533         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
9534
9535 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9536
9537         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
9538         related problems
9539
9540 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
9541
9542         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
9543
9544 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9545
9546         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
9547         mcs51 port
9548
9549 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
9550
9551         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
9552
9553 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9554
9555         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
9556         cases use more compact code.
9557
9558 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
9559
9560         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
9561
9562 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9563
9564         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
9565
9566 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9567
9568         * src/SDCCsymt.h,
9569         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
9570         parameter of changePointer() from symbol* to sym_link*
9571         * src/SDCCast.c (decorateType): call changePointer() for CAST op
9572         * src/SDCCsymt.c (compareType): void* type is castable to other
9573         pointers, but not necesarily an exact match.
9574         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
9575         is no longer blindly treated as an exact match.
9576         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
9577
9578 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
9579
9580         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
9581
9582 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
9583
9584         * src/pic/gen.c,
9585         * src/pic/pcode.c,
9586         * src/pic/ralloc.h,
9587         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
9588
9589 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
9590
9591         * src/pic/device.c,
9592         * src/pic/device.h,
9593         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
9594
9595 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9596
9597         * src/mcs51/gen.c (emitcode): fixed bug #992819
9598
9599 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
9600
9601         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
9602           there's no need to make it worse
9603
9604 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9605
9606         * src/mcs51/ralloc.c (deassignLR),
9607         * src/ds390/ralloc.c (deassignLR),
9608         * src/hc08/ralloc.c (deassignLR),
9609         * src/z80/ralloc.c (deassignLR),
9610         * src/pic/ralloc.c (deassignLR),
9611         * src/pic16/ralloc.c (deassignLR),
9612         * src/avr/ralloc.c (deassignLR),
9613         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
9614         rlivePoint): fixed another part of bug #971834
9615
9616 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9617
9618         * src/z80/main.c: enabled "critical" keyword
9619         * src/z80/mappings.i,
9620         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
9621         functions (fixes bug #979646)
9622         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
9623
9624 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9625
9626         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
9627           such as c:\mydir.
9628
9629 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
9630
9631         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
9632           doesn't disable too much optimizations
9633
9634 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
9635
9636         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
9637
9638 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
9639
9640         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
9641
9642 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
9643
9644         * src/pic/gen.c tidied up tabs
9645         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
9646         * src/pic/main.c tidied up tabs
9647         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
9648         * src/pic/pcoderegs.c tidied up tabs
9649         * src/pic/ralloc.c tidied up tabs
9650
9651 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
9652
9653         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
9654         to S_FIXED for pic16 port and when symbol is not in level 0,
9655         allocate for S_REGISTER storage class and pic16 port, too,
9656         * src/pic16/device.h: prototype for checkSym,
9657         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
9658         * (pic16_assignConfigWordValue): test the value and the mask to
9659         validate that the value is suitable for the configuration word,
9660         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
9661         collect extern declared symbols, don't emit symbol twice, check
9662         first if symbol is in publics set first,
9663         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
9664         * added command line '--fstack' which enables an experimental
9665         feature for stack access, too buggy to be used yet...
9666         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
9667         * (pic16_allocDirReg): when register has storage class S_REGISTER
9668         allocate in pic16_dynAccessRegs,
9669         * device/include/pic16/pic18f????.h: modified configuration word
9670         naming convention, words started as CONFIG0H but should be CONFIG1H
9671
9672 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
9673
9674         * device/include/mcs51reg.h: fixed bug 970993
9675
9676 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
9677
9678         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
9679         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
9680         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
9681         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
9682         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
9683         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
9684           error/warning numbers,
9685           added function setWarningDisabled()
9686         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
9687         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
9688           _memcmp.c _memmove.c calloc.c realloc.c free.c
9689         * support/regression/tests/malloc.c: added tests for new functionality
9690         * support/regression/tests/zeropad.c: added tests for truncated initializers
9691           and initialized char arrays starting with '\x0'
9692         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
9693
9694 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
9695
9696         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
9697
9698 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9699
9700         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
9701         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
9702         peephole 177.e. Thanks to anonymous
9703
9704 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
9705
9706         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
9707         function isn't used in the source but referenced as a
9708         variable initializer then declare it as extern in .asm file
9709
9710 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
9711
9712         * .version: increased version number to 2.4.3
9713
9714         Adding version extension according to ChangeLog CVS revision
9715         * src/Makefile.in (target all): added dependency 'version.h'
9716         * (rule version.h): added rule to create version.h from ChangeLog,
9717         * (rule dep): added dependency version.h,
9718         * src/version.awk: AWK script to create version.h
9719         * src/SDCCdwarf2.c (dwWriteModule),
9720         * src/SDCCglue.c (initialComments),
9721         * src/SDCCmain.c (printVersionInfo): modified to write after
9722         version string the version extension number,
9723         * src/SDCCutil.c: included "version.h"
9724         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
9725         number,
9726         * src/SDCCutil.h: added prototype for getBuildNumber
9727
9728         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
9729         includeDirsSet, too,
9730         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
9731         const char [] is found in function prototype...
9732
9733         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
9734         moving to WREG with source is already in WREG,
9735         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
9736         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
9737         * (aopForSym): stack'ed symbols are partially supported, added
9738         if-clause to support symbols in FARSPACE,
9739         * (sameRegs): added test for AOP_ACC to see if registers are same,
9740         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
9741         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
9742         * (pic16_popRegFromString): will not allocate a new register if it
9743         doesn't find one by name, bug may have introduced...
9744         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
9745         * (genIpush): revived to use pic16 port's stack,
9746         * (genAddrOf): added incomplete case for stack'ed operand,
9747         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
9748         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
9749         can handle multibyte operands,
9750         * src/pic16/glue.c (pic16_printIval*): some debug info added,
9751         * (pic16initialComments): added message for MPLAB compatibility
9752         mode enabled,
9753         * src/pic16/main.h: prototype for pic16_mplab_comp,
9754         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
9755         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
9756         * (_pic16_linkEdit): NEW, handles link stage, transferred here
9757         because of increased complexity of procedure,
9758         * (_process_pragma): stack pragma changed to format 'stack pos len',
9759         emit symbol '_stack_end' to conform with gplink,
9760         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
9761         to search for register,
9762         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
9763         PO_GPR_REGISTER,
9764         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
9765         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
9766         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
9767         case for PO_GPR_REGISTER,
9768         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
9769         dies, the new era is ahead !...
9770         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
9771         pic16_dynInternalRegs,
9772         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
9773         * (pic16_allocDirReg): minor optimizations and bug fixes,
9774         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
9775
9776         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
9777         load stack and frame pointer with address of 'stack_end' symbol
9778
9779 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
9780
9781         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
9782         without source code but only variable initializers
9783
9784 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
9785
9786         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
9787         external are not declared as extern to reduce overhead while linking
9788
9789 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
9790
9791         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
9792
9793 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
9794
9795         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
9796           Yee Keat for the patch
9797         * src/SDCCast.c (decorateType): fixed bug #979599
9798         * src/ds390/gen.h: removed local fReturnSizeDS390
9799         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
9800         * src/ds390/gen.c (genAnd, genOr, genXor),
9801         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
9802
9803 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
9804
9805         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
9806         add relFilesSet to $3, manipulate $2 to handle linking of object
9807         files without source files in command line,
9808         * device/include/pic16 (all headers): added ID location macros,
9809         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
9810         entries for ID location bytes,
9811         * (pic16_assignIdByteValue): NEW,
9812         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
9813         added field dumpcalltree to pic16_options_t,
9814         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
9815         is used instead of pic16_Gstack_base_addr, check if (ifx) before
9816         emitting rFalseIfx label after check_carry label,
9817         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
9818         pic16_emitDIRegs), NEW
9819         * (pic16glue): dump .calltree file when option --calltree found,
9820         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
9821         * (_pic16_genAssemblerPreamble): emit ID locations after
9822         configuration registers,
9823         * (pic16_linkCmd): modifications of the link command,
9824         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
9825         * (pic16_pCodeInitRegisters): don't init stack registers,
9826         * (pic16_findPrevInstruction): fixed bug,
9827         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
9828         bug with immediate registers,
9829         * (buildCallTree): traces stack push and pop,
9830         * (pct2): dump also stack usage for each function,
9831         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
9832         * (pic16_allocDirReg): various modifications,
9833         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
9834         fixed to 1,
9835
9836 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
9837
9838         * src/pic16/pcode.c: removed buggy double colon
9839
9840 2004-07-01 Borut Razem <borut.razem AT siol.net>
9841
9842         * support/scripts/sdcc.nsi: added include/pic16 to setup
9843
9844 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
9845
9846         * device/lib/Makefile.in: fixed bug in target objects-pic16,
9847         * device/lib/pic16/Makefile: prefixed with dash (-) command under
9848         target 'clean',
9849         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
9850         specific command line arguments. Also added sample lkr script
9851         for placing a variable at a specific memory bank.
9852         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
9853         at a specific memory bank,
9854         * (pic16_dump_isection): fixed bug which caused string literals to
9855         be omitted when dumping idata section,
9856         * (pic16_groupRegistersInSection): added code to handle registers
9857         in specific memory banks,
9858         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
9859         public, all references are renamed too,
9860         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
9861         AOP_DPTR2,
9862         * (pic16_storeForReturn): added case to handle when dest is WREG,
9863         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
9864         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
9865         pic16_rel_udata, check to see if that register is marked as being
9866         a member of a specific memory bank,
9867         * (pic16_printIvalCharPtr): added code to add string literals either
9868         to code or the idata sections,
9869         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
9870         also accept the 'udata' pragma,
9871         * src/pic16/main.h: new structure types sectName and sectSym
9872         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
9873         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
9874         * (pic16_findPrevInstruction): fixed, it returned nothing,
9875         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
9876         instruction combinations,
9877         * (pic16_FixRegisterBanking): heavily reorganised,
9878         * (pic16_AnalyzeBanking): if generating banksel directives is
9879         disabled, then don't call FixRegisterBanking at all,
9880         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
9881         completely removed,
9882         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
9883
9884 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
9885
9886         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
9887         Phuah Yee Keat <yk.phuah AT nestac.com>
9888
9889 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
9890
9891         * src/pic16/glue.c (pic16createInterruptVect): function now emits
9892         correctly the IVT even if it is relocated to some other location
9893
9894 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
9895
9896         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
9897         * device/include/pic16/pic18f2220.h: NEW,
9898         * device/lib/pic16/libdev/pic18f2220.c: NEW,
9899         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
9900         * src/pic16/device.c (struct Pics16): added info for 18f2220,
9901         * src/pic16/device.h (struct pic16_options): added ivt_loc and
9902         nodefaultlibs, ivt_loc is the location of the interrupt vector
9903         table, and nodefaultlibs signs that default libraries should not be
9904         linked in link stage,
9905         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
9906         according to --ivt-loc argument,
9907         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
9908         when pragma stack is found,
9909
9910 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9911
9912         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
9913         256 (range check), 257 (do while), 258.a-f (bit banging
9914         f.e. on 3-wire SPI bus)
9915
9916 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9917
9918         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
9919         variables used exclusively within a loop
9920
9921 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
9922
9923         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
9924
9925 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9926
9927         * src/SDCClrange.c (computeClash): fixed bug #971834
9928
9929 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9930
9931         * src/mcs51/gen.c (genCmp): fixed bug #975903
9932         * src/hc08/gen.c (operandsEqu),
9933         * src/ds390/gen.c (operandsEqu),
9934         * src/z80/gen.c (operandsEqu),
9935         * src/pic/gen.c (operandsEqu),
9936         * src/pic16/gen.c (operandsEqu),
9937         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
9938         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
9939
9940 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9941
9942         * src/SDCCcse.c (cseBBlock): fixed bug #966963
9943
9944 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
9945
9946         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
9947         default case in switch statement,
9948         * glue.c (pic16_initPointer): expr is initialised via decoarteType
9949         to eliminate problem with initialisation of pointers, but problem
9950         still exists,
9951         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
9952         * (emitStaticSegment): removed various lines emitting debug info,
9953         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
9954         added processor registers for utilizing EEPROM,
9955         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
9956         configurable and set 8
9957
9958 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
9959
9960         * .version: increased version number to 2.4.2,
9961
9962         Cumulative patch for pic16 port
9963         * src/pic16/device.c: changed scheme to dump initial values for
9964         variables in idata segment, all print_idata* functions were removed,
9965         now the pic16_printIval* will be called,
9966         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
9967         * _pic16_printPointerType, pic16_printPointerType,
9968         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
9969         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
9970         NEW, similar to the respective functions in SDCCglue.c,
9971         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
9972         way, emitting hex bytes,
9973         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
9974
9975 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9976
9977         * src/avr/ralloc.c (serialRegAssign),
9978         * src/xa51/ralloc.c (serialRegAssign),
9979         * src/pic/ralloc.c (serialRegAssign),
9980         * src/pic16/ralloc.c (serialRegAssign),
9981         * src/hc08/ralloc.c (serialRegAssign),
9982         * src/z80/ralloc.c (serialRegAssign),
9983         * src/ds390/ralloc.c (serialRegAssign),
9984         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
9985
9986 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9987
9988         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
9989         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
9990
9991 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
9992
9993         Cumulative patch for pic16 port:
9994         * src/pic16/device.h (typedef PIC16_device) modified fields for
9995         defining microcontrollers,
9996         * src/pic16/device.c: added new info for all devices in Pics16 array,
9997         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
9998         to be optimised out by the pCode optimiser,
9999         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
10000         specially, bug reported by G.M. Gallant,
10001         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
10002         as force'd so that cannot be optimised out by pCode optimiser,
10003         * src/pic16/pcode.c,
10004         * src/pic16/pcodepeeph.c,
10005         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
10006         they are disabled by default, but can be enabled explicit with
10007         command argument --denable-peeps, for testing,
10008         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
10009         --pomit-ivt in COMPILE_FLAGS
10010
10011 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
10012
10013         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
10014           compilation on MSVC
10015
10016 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
10017
10018         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
10019
10020 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10021
10022         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
10023         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
10024
10025 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
10026
10027         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
10028         would only assign 0x300001 register.
10029
10030 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
10031
10032         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
10033         in COMPILE_FLAGS. Thanks to G. Gallant for report.
10034
10035 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10036
10037         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
10038         for ds80c400
10039         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
10040         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
10041         added peephole 254 (left shift), 255 (jump table)
10042
10043 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
10044
10045         * device/lib/Makefile.in: removed comment line with model-pic16,
10046         * (target port-specific-objects-pic16): the libraries and objects
10047         are copied to the build directory form the device/lib/pic16/bin
10048         directory
10049
10050         Cumulative patch concerning pic16 port:
10051         * library directory has been re-organized,
10052         * added support for PIC18F1220,
10053         * added headers and library sources for chips 18f1220,18f6520,
10054         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
10055
10056         * configuration registers setting has changed, now each supported
10057         device has a complete description of the registers it uses,
10058         * all initialisations are moved to idata sections, these section
10059         can be absolute or relocatable,
10060         * fixed initialisation of codespace variables,
10061         * fixed warning about PCLATU and gpsim,
10062         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
10063         * (genAssign): use table reads when assigning from variables in codespace,
10064         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
10065         char/int variables placed in codespace,
10066         * (pic16_emitConfigRegs): NEW, emits a list with configuration
10067         registers set in .asm file, no need for --pomit-config-words anymore,
10068         * (pic16glue): some 8051 legacy segments are commented out
10069         (to be removed completely),
10070         * added support for alternative assembler and linker with --asm=
10071         and --link= command line arguments,
10072         * peepholes are disabled automatically in the port, no need to
10073         specify on command line,
10074         * port supports natively char/int/long multiplication, but converts
10075         all divisions to support functions,
10076         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
10077         to the file set in variable $2,
10078         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
10079         strings in ASCII format and not in hex,
10080         * ralloc.c (serialRegAssign): added a triplet of conditional calls
10081         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
10082         allocate proper register if iCodes aren't temporary,
10083
10084 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
10085
10086         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
10087
10088 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
10089
10090         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
10091         is commented out
10092
10093 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10094
10095         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
10096         computed address is reused
10097         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
10098         multi-byte bitfields
10099
10100 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
10101
10102         * src/z80/gen.c: (genArrayInit): must check for pointers too
10103
10104 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
10105
10106         * support/regression/tests/zeropad.c: never meant to commit the
10107           nestedstruct test: removed, added check for GCC version
10108
10109 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
10110
10111         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
10112         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
10113         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
10114           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
10115           bugs 928906 and 954082 half-empty initializers
10116         * src/SDCCsymt.h,
10117         * src/SDCCsymt.c (getAllocSize): added for above fix
10118         * src/z80/gen.c (genArrayInit): fixed bug 741044
10119         * support/regression/tests/zeropad.c: added tests
10120
10121 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
10122
10123         * src/pic16/device.c (pic16_dump_section): corrected bug which
10124         caused some symbols of the libraries to be misplaced
10125
10126 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
10127
10128         * src/pic16/glue.c,
10129         * src/pic16/ralloc.h,
10130         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
10131         to fix conflict with pic port
10132
10133 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
10134
10135         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
10136         externs configuration variables,
10137         * src/pic16/ralloc.h,
10138         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
10139         prototype in header, commented out some debug messages
10140
10141 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
10142
10143         * src/pic16/glue.c,
10144         * src/pic16/main.c,
10145         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
10146         for gpasm COFF object generation. Thanks to D. Hawkins for
10147         his patch info
10148
10149 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10150
10151         * src/ds390/main.c,
10152         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
10153         Brock for spotting this)
10154         * src/ds390/gen.c (genEndFunction),
10155         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
10156         interrupt handler and critical. Disable push/pop optimizations when
10157         peephole optimizations disabled.
10158
10159 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
10160
10161         Updated pic16 library sources and headers.
10162         * device/lib/pic16/pic18f*/ ,
10163         * device/include/pic16/*.h: modified to handle structured SFR
10164         definitions
10165
10166 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
10167
10168         * src/port.h (PORT structure): added hook initPaths, now each
10169         port can declare its own default search paths,
10170         which can been seen with the --print-search-dirs option,
10171         see pic16 port for example,
10172         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
10173         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
10174         * (doPrintSearchDirs): NEW, replaces in a central manner the
10175         printing of search dirs which was split in set*Paths functions,
10176         * (main): added call to port->initPaths and doPrintSearchDirs,
10177         * src/avr/main.c,
10178         * src/ds390/main.c,
10179         * src/hc08/main.c,
10180         * src/izt/i186.c,
10181         * src/izt/tlcs900h.c,
10182         * src/mcs51/main.c,
10183         * src/pic/main.c,
10184         * src/pic16/main.c: modified port structures to reflect addition of
10185         initPaths hook,
10186
10187         * src/pic16/device.c (regCompare): registers are finally sorted by name,
10188         * (pic16_dump_section): for registers in same address reserve memory once,
10189         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
10190         to no_banksel,
10191         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
10192         result is greater in size than right or left,
10193         * (pic16_genUMult8X8_8): there are some cases where the result can
10194         be 16 bits size, so handle these,
10195         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
10196         * (pic16_outBitC): modified to emit pcodes,
10197         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
10198         or not,
10199         * (genDivOneByte): implemented algorithm to divide 8-bits,
10200         * (genCmp): uncommented goto, but issues still exist,
10201         * (genAnd): fixed a bug with variables >8bits,
10202         * (genPackBits): optimization added that uses BCF/BSF to change a
10203         single bit,
10204         * (genAssign): fixed bug when assigning floating point literals,
10205         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
10206         __sdcc_gsinit_startup label,
10207         * src/pic16/main.c (_pic16_init): removed search directory
10208         initialisations,
10209         * (_pic16_initPaths): NEW, used to initialise search directories,
10210         * (_hasNativeMulFor): support functions for all except char/int
10211         multiplication, and char division,
10212         * (PIC16_port struct): modified entry for native mul support,
10213         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
10214         no_banksel option,
10215         * (buildCallTree): call to register_usage is ifdef'ed out,
10216
10217 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10218
10219         * device/include/string.h: applied Stas Sergeev's patch to make this
10220         header file compatible with the preprocessor -Wundef option
10221         * src/SDCCmain.c (main): abort compilation if preprocessor reports
10222         failure (fixes bug #941458)
10223
10224 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10225
10226         * src/SDCCopt.c (killDeadCode): fixed bug #907733
10227         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
10228         that the variable, not the function, should be static
10229         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
10230         to be consistent with non-literal case
10231
10232 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10233
10234         * src/SDCCast.c (isConformingBody): fixed bug #949967
10235         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
10236         convilong): fixed bug #952086
10237
10238 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10239
10240         * src/SDCCmem.c (allocVariables): fixed bug #955321
10241
10242 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10243
10244         * src/hc08/main.c (_hc08_genAssemblerEnd),
10245         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
10246         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
10247         completely eliminated the use of a temporary file
10248         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
10249         when more than one file linked
10250         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
10251
10252 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10253
10254         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
10255         which fixes bug #543481
10256         * support/regression/tests/bug-751703.c: fixed comments left from a
10257         cut and paste error
10258         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
10259         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
10260         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
10261         scopes
10262         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
10263         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
10264         are now changed to underscores in moduleName
10265
10266 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10267
10268         * as/mcs51/lkmem.c: better fix for bug #954173
10269
10270 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
10271         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10272
10273         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
10274         * device/include/c8051f000.h,
10275         * device/include/c8051f120.h,
10276         * device/include/c8051f300.h,
10277         * device/include/c8051f310.h,
10278         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
10279         PWM16) and detab'ed
10280
10281 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10282
10283         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
10284         and mailing lists, doc'ed --no-peep-comments, removed reference
10285         to knoppix (newest version has no LyX/LaTeX), other minor changes
10286         * src/SDCCglue.c (glue): save 2 bytes stack space with
10287         option --main-return. The ljmp could probably be avoided too
10288
10289 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10290
10291         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
10292
10293 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10294
10295         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
10296         * src/SDCCopt.c (isLocalWithoutDef),
10297         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
10298         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
10299         (credit to Maarten Brock for patch #949363, on which this is based)
10300         * support/regression/tests/bug-751703.c: some test cases of extern used
10301         within inner scopes.
10302
10303 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10304
10305         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
10306         SPEC_STRUCT
10307         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
10308         struct definitions
10309         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
10310         dwWriteLabel): fix to create valid debugger symbols even when
10311         the module name has non-alphanumeric symbols in it
10312         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
10313         when a variable's allocation has been optimized away
10314
10315
10316 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10317
10318         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
10319         * src/hc08/main.c,
10320         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
10321         * src/mcs51/main.c,
10322         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
10323         * src/ds390/main.c,
10324         * src/z80/gen.c (z80_emitDebuggerSymbol),
10325         * src/z80/main.c,
10326         * src/pic/gen.c (pic14_emitDebuggerSymbol),
10327         * src/pic/main.c,
10328         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
10329         * src/pic16/main.c,
10330         * src/avr/gen.c (avr_emitDebuggerSymbol),
10331         * src/avr/main.c,
10332         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
10333         * src/xa51/main.c,
10334         * src/SDCCdebug.c (emitDebuggerSymbol),
10335         * src/SDCCdebug.h,
10336         * src/port.h: added a debugger struct to the port struct. Added a
10337         callback for defining debugger symbols
10338
10339         * src/SDCCast.c (createLabel),
10340         * src/SDCC.y (labeled_statement): mark all compiler generated labels
10341         with isitmp = 1
10342         * src/SDCCicode.h,
10343         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
10344         iCode back to the ast for the function
10345
10346         * src/hc08/ralloc.c (hc08_assignRegisters),
10347         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
10348         unneeded fields from the regs struct.
10349         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
10350         pushReg() & pullReg() functions instead of emitcode()
10351
10352         * src/hc08/gen.c (genLabel, genhc08Code),
10353         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
10354
10355         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
10356         debugger hooks
10357
10358         * src/hc08/gen.c (genEndFunction, genhc08Code),
10359         * src/hc08/gen.h,
10360         * src/mcs51/gen.c (genEndFunction, gen51Code),
10361         * src/mcs51/gen.h,
10362         * src/ds390/gen.c (genEndFunction, gen390Code),
10363         * src/ds390/gen.h,
10364         * src/z80/gen.c (genEndFunction, genZ80Code),
10365         * src/z80/gen.h,
10366         * src/z80/z80.h,
10367         * src/pic/gen.c (genEndFunction, genpic14Code),
10368         * src/pic/gen.h,
10369         * src/pic16/gen.c (genEndFunction, genpic16Code),
10370         * src/pic16/gen.h,
10371         * src/avr/gen.c (genEndFunction, genAVRCode),
10372         * src/avr/gen.h,
10373         * src/xa51/gen.c (genEndFunction, genXA51Code),
10374         * src/xa51/gen.h,
10375         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
10376         specific code to cdbFile.c and out of the backend code generators
10377
10378         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
10379         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
10380         starting address is now 0
10381
10382         * as/hc08/asm.h,
10383         * as/hc08/m08pst.c,
10384         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
10385         assembler directive for DWARF support
10386         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
10387
10388         * src/src.dsp,
10389         * src/Makefile.in,
10390         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
10391
10392 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10393
10394         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
10395         and inappropriate peephole optimization in jump tables
10396
10397 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10398
10399         * as/hc08/m08pst.c,
10400         * src/SDCCglue.c: sdccopt works for the hc08 port now
10401
10402 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
10403
10404         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
10405
10406 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10407
10408         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
10409
10410 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10411
10412         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
10413         rules
10414         * src/SDCCmain.c,
10415         * src/SDCCglobl.h,
10416         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
10417         comments from the peephole optimizer replacement rules
10418         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
10419         symbols
10420         * src/SDCCcse.c (updateSpillLocation),
10421         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
10422         equivalents
10423         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
10424         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
10425         objects far pointers
10426
10427 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10428
10429         * src/SDCCsymt.h: a missing part of my last change
10430         * src/pic/ralloc.c (regTypeNum),
10431         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
10432
10433 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10434
10435         * src/SDCCicode.h,
10436         * src/SDCCicode.c (aggrToPtrDclType),
10437         * src/SDCCptropt.h,
10438         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
10439         ptrPseudoSymConvert),
10440         * src/pic/ralloc.c (regTypeNum),
10441         * src/pic16/ralloc.c (regTypeNum),
10442         * src/hc08/ralloc.c (regTypeNum),
10443         * src/ds390/ralloc.c (regTypeNum),
10444         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
10445         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
10446
10447 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10448
10449         * link/z80/lkmain.c (afile),
10450         * as/hc08/lkmain.c (afile),
10451         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
10452         prevent a pointer problem when a filename has no directory and
10453         no extension specified.
10454
10455 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10456
10457         * link/z80/lkmain.c (afile): allow periods in directory names
10458         * link/z80/lkmain.c (afile),
10459         * as/mcs51/lkmain.c (afile),
10460         * as/hc08/lkmain.c (afile): allow linker script file to have an
10461         extension other than ".lnk"
10462         * link/z80/lklex.c (getfid),
10463         * link/z80/lkmain.c (parse),
10464         * as/mcs51/lklex.c (getfid),
10465         * as/mcs51/lkmain.c (parse),
10466         * as/hc08/lklex.c (getfid),
10467         * as/hc08/lkmain.c (parse): Support comments in the linker script
10468         file on lines by themselves and after filenames
10469
10470 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10471
10472         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
10473
10474 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10475
10476         * src/z80/peeph-z80.def: removed some peephole rules that don't
10477         work with multibyte arithmetic (fixed bug #937126)
10478         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
10479         to registers and not global variables
10480         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
10481         geniCodePreInc, geniCodePostDec, geniCodePreDec,
10482         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
10483         checking for assignments not internally generated (fixed bug #931895)
10484         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
10485         structure member (fixed bug #930072)
10486
10487 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10488
10489         * src/SDCCmain.c (linkEdit),
10490         * src/hc08/main.c (_hc08_parseOptions),
10491         * as/hc08/Makefile.in,
10492         * as/hc08/aslink.h,
10493         * as/hc08/asm.h,
10494         * as/hc08/m08pst.c,
10495         * as/hc08/lkrloc.c (relr, rele),
10496         * as/hc08/lkarea.c (lnkarea)
10497         * as/hc08/lkmain.c (afile, parse),
10498         * as/hc08/lkelf.c: support for ELF output
10499         * as/hc08/lks19.c (s19),
10500         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
10501
10502 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10503
10504         * as/mcs51/lkihx.c: Fixed bug #899105.
10505
10506 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10507
10508         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
10509         .dsp files from Unix to DOS.
10510
10511 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10512
10513         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
10514         function pointers; we have been compliant for several months now.
10515         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
10516         change that was accidently commented out
10517         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
10518         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
10519         bug #922319
10520
10521 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10522
10523         * src/hc08/gen.c: output of all of the internal debugging information
10524         is now controlled by the D() macro; it is disabled by default
10525
10526 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10527
10528         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
10529         harder to keep the same registers during a CAST iCode
10530         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
10531         long via int can be done in a single cast, if the signedness is
10532         correct.
10533         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
10534         putchar() in tinibios.c in ds390's library
10535
10536 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
10537
10538         * src/SDCCast.c (decorateType): fixed bug #898889,
10539         cast result of a literal complement too
10540         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
10541         fixed check for bitfields
10542
10543 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
10544
10545         * src/SDCCicode.c (geniCodeLogic): made it static,
10546         (geniCodeLogicAndOr): added in order to fix bug #905492,
10547         (ast2iCode): fixed bug #905492
10548         * support/regression/tests/bug-905492.c: added
10549         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
10550         (processParms): fixed bug #927659: don't copy parms, this will clear
10551         decorated flag
10552         * support/regression/tests/bug-927659.c: added
10553
10554 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
10555
10556         * src/SDCCast.c (addCast): don't cast float to char
10557         * device/lib/libsdcc.lib: added _memmove
10558
10559 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
10560
10561         * device/lib/large/Makefile: fixed parallel execution by
10562         replacing `make` by `$(MAKE)`
10563
10564 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10565
10566         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
10567         offsets (fixes bug #923936)
10568
10569 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
10570
10571         * device/lib/small/Makefile: fixed parallel execution by
10572         replacing `make` by `$(MAKE)`
10573
10574 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
10575
10576         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
10577
10578 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
10579
10580         * src/pic/gen.c (genCpl): multi-byte complements were not working.
10581         * src/regression/Makefile: Regression test was not running.
10582
10583 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
10584
10585         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
10586         complement if possible
10587         * src/SDCCval.c (valComplement),
10588         * src/SDCCicode.c (operandOperation): fixed complement of literal
10589         * support/regression/tests/onebyte.c (testComplement): added
10590
10591 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
10592
10593         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
10594         return an optimized tree; actually replace actParm with the new tree
10595         * src/SDCCast.h: added some parantheses to remove side effects
10596         * support/regression/tests/bug-920866.c
10597
10598 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
10599         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
10600         Bit operands were not being handled properly in the pic14 port.
10601         (now src/regression/add.c passes again).
10602
10603 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10604
10605         * src/SDCC.y (labeled_statement): case and default no longer require
10606         a following statement (RFE #893037)
10607
10608 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10609
10610         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
10611         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
10612         disabled (fixes bug #916294)
10613         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
10614         "mov a,acc"; patch provided by Lenny Story
10615         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
10616
10617 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10618
10619         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
10620         functions
10621         * src/ds390/gen.c (genFunction, genEndFunction),
10622         * src/ds390/ralloc.c (ds390_assignRegisters),
10623         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
10624         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
10625         pushed if there are parameters passed on the stack. Also, a cleaner
10626         way to decide if r0/r1 should be pushed/popped. (Together they fix
10627         bug #918693)
10628
10629 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10630
10631         * doc/sdccman.lyx,
10632         * device/lib/mcs51/crtpagesfr.asm,
10633         * device/lib/mcs51/crtxinit.asm,
10634         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
10635         to avoid confusion with Si Lab's SFRPAGE register.
10636
10637 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10638
10639         * src/SDCCglue.c (emitMaps): allow public sfr variables
10640         * src/SDCCglue.c (initialComments): include compiler build date
10641         with compiler version and put the timestamp of the generated
10642         assembly file on a serperate line to be less confusing.
10643         * src/port.h: added genInitStartup hook
10644         * src/avr/main.c,
10645         * src/ds390/main.c,
10646         * src/hc08/main.c,
10647         * src/pic/main.c,
10648         * src/pic16/main.c,
10649         * src/xa51/main.c,
10650         * src/z80/main.c: genInitStartup initialize as NULL (default to
10651         historical behaviour)
10652         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
10653         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
10654         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
10655         library instead of hard coding it into the compiler.
10656         * support/regression/ports/mcs51-stack-auto/spec.mk,
10657         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
10658         * device/lib/mcs51/Makefile,
10659         * device/lib/small/Makefile,
10660         * device/lib/large/Makefile,
10661         * device/lib/mcs51/crtpagesfr.asm,
10662         * device/lib/mcs51/crtstart.asm,
10663         * device/lib/mcs51/crtxclear.asm,
10664         * device/lib/mcs51/crtxinit.asm,
10665         * device/lib/mcs51/crtclear.asm,
10666         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
10667         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
10668         and into user configurable files.
10669         * device/lib/clean.mk: clean mcs51 directory too
10670         * support/regression/tests/longlit.c: added static to T1 declaration
10671         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
10672         accesses in the initialization code
10673
10674 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10675
10676         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
10677         OSCTRIMVAL as noted in bug #916008
10678
10679 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10680
10681         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
10682         in loops with multiple exits (reported as incorrect registers
10683         used by Martin Helmling in Sdcc-user list)
10684
10685 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10686
10687         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
10688         made ds390 register extensions look less like error messages
10689
10690 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10691
10692         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
10693         reported by Adam Wozniak in Sdcc-user list
10694
10695 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
10696
10697         * src/SDCCast.c (decorateType): fixed with bug and promotion in
10698         arithmetic optimizations, added debug output
10699
10700 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
10701
10702         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
10703         * sdcc.spec: updated and split sdcc into 3 rpms
10704         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
10705         needed for literals of LEFT_OP and '+'
10706         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
10707         introduced RESULT_TYPE_NOPROM
10708         (geniCodeMultiply): fixed logic for decision if mul is optimized to
10709         left shift
10710         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
10711         limited promotion to int only for '*'
10712         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
10713
10714 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
10715
10716         * src/pic16/gen.c (genSkip),
10717         (genc16bit2lit), (gencjneshort): commented out
10718         (is_LitOp): new helper function, checks operand type
10719         (genCmpEq): rewritten
10720
10721 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
10722
10723         * support/regression/tests/bug-908454.c: added
10724
10725 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
10726
10727         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
10728         * src/SDCCicode.c (usualBinaryConversions): op needs int type
10729         (geniCodeCast): cosmetic, don't preserve bit storage class
10730         (geniCodeLeftShift): added promotion
10731         (geniCodeLogic): fixed regression
10732         * src/SDCCsymt.c (computeTypeOr): accept bits too
10733         (compareType): 2nd part of fix for bug #908454, needed for bitfields
10734
10735 2004-03-07  Borut Razem <borut.razem AT siol.net>
10736
10737         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
10738
10739 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
10740
10741         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
10742         version of pic16_genPackRegisters which does not check if ic is a
10743         CAST operator,
10744         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
10745         function cause string1.c regression test fails
10746
10747 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
10748
10749         * sim/ucsim/configure.in,
10750         * sim/ucsim/configure,
10751         * sim/ucsim/doc/Makefile.in: use docdir
10752         * src/SDCC.y: fixed sbit atrributes
10753         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
10754         * src/SDCCast.c (decorateType): |^& need special promotion handling
10755         * src/SDCCast.h,
10756         * src/SDCCsymt.h: moved definition of RESULT_TYPE
10757         * src/SDCCsymt.h (computeType),
10758         * src/SDCCicode.c: computeType() needs op
10759         * src/SDCCsymt.c (checkTypeSanity),
10760         * doc/sddman.lyx: "plain" bitfields are unsigned
10761         * src/SDCCsymt.c (computeTypeOr): added
10762         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
10763         |^& ops
10764         * src/SDCCval.c (val*): computeType() needs op
10765         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
10766         * support/regression/tests/onebyte.c: added tests for |^&
10767
10768 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
10769
10770         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
10771         for writing icode into asm output.
10772
10773 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
10774
10775         * src/pic16/device.c: added some debug lines enabled
10776         with macro DEBUG_CHECK,
10777         * src/pic16/genarith.c: more debug in genPlus,
10778         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
10779         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
10780         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
10781         * (aopForSym): onStack symbols are re-placed in data memspace,
10782         and onStack flag is cleared,
10783         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
10784         copy temporary pcodeop,
10785         * (genPcall): added warning for not updating PCLATU,
10786         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
10787         always true for pic16 port,
10788         * (genMultOneWord): NEW, supports integer multiplication,
10789         * (genMult): modified to call genMultOneWord,
10790         * (ifxForOp): added warning when return NULL,
10791         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
10792         flag is set before call to operandFromSymbol for implicit
10793         added structures,
10794         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
10795         options.intlong_rent are set by default,
10796         * (_hasNativeMulFor): modified to allow port generation of integer
10797         multiplication,
10798         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
10799         set regtype to REG_SFR for all registers, restricting seting the
10800         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
10801
10802 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10803
10804         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
10805         more than 500 times in the regression tests
10806
10807 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10808
10809         * support/Util/SDCCerr.h,
10810         * support/Util/SDCCerr.c,
10811         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
10812         enumerator_list),
10813         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
10814         for symbol conflicts.
10815         * support/valdiags/tests/enum.c,
10816         * support/valdiags/tests/tentdecl.c,
10817         * support/valdiags/tests/struct.c: expect possible error messages
10818         referring to original symbol definitions.
10819         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
10820         * src/SDCCsymt.h,
10821         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
10822
10823 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
10824
10825         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
10826
10827 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
10828
10829         * src/pic16/ralloc.c (newReg): fixed bug #908929
10830
10831 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10832
10833         * src/ds390/gen.c: added missing #include "main.h"
10834
10835 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
10836
10837         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
10838         checking if symbol is already in set,
10839         * src/pic16/device.h: prototype for checkAddSym,
10840         * src/pic16/gen.c: (_G): added entry interruptvector,
10841         * (assignResultValue): removed some commented out lines,
10842         * (genFunction): check for ISR via sym->type, absolute section for
10843         interrupt code is created via a new pBlock, the goto instruction is
10844         placed now correctly at the interrupt vector position, changed all
10845         references from ivec to _G.interruptvector,
10846         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
10847         is the interrupt is a high priority one, same for return from ISR,
10848         * src/pic16/glue.c: changed all calls of addSetHead for publics and
10849         externs to calls of checkAddSym,
10850         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
10851         pic16_pcode_verbose flag is set,
10852         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
10853         * src/pic16/pcoderegs.c: message about how many registers are saved
10854         will only be emitted if pic16_pcode_verbose flag is set,
10855
10856 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10857
10858         * src/ds390/ralloc.h,
10859         * src/ds390/ralloc.c (ds390_regWithIdx),
10860         * src/ds390/gen.c (emitcode),
10861         * src/ds390/main.h,
10862         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
10863         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
10864         ds390operandCompare, getRegsRead, getRegsWritten,
10865         initializeAsmLineNode): customized instruction size calculation for
10866         ds390, started basis for some register optimizations
10867         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
10868         corresponding assembly output
10869         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
10870         missing push/pop of r0/r1. Optimized push/pops
10871
10872 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10873
10874         * src/mcs51/main.c (instructionSize): fixed ACALL size
10875         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
10876
10877 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
10878
10879         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
10880         the sorting of rlist with NULL elements
10881         * (print_idataType, print_idata): NEW to create idata sections
10882         * src/pic16/device.h: idataSymSet new variable
10883         * src/pic16/gen.c (genFunction): fixed some bugs in string
10884         comparing, improved the absolute section creation for ISRs,
10885         added FSR0L/FSR0H in registers that are saved in an ISR,
10886         * (genInline): fixed the processing of inline snippets,
10887         now they undergo no process by the peephole optimizer
10888         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
10889         are placed in idataSymSet,
10890         * (pic16emitStaticSeg): extern symbols are added in externs,
10891         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
10892         switching when aboslute variables are placed in access bank memory
10893         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
10894         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
10895         commented out with #if,
10896         * (pic16_packRegisters): reintroduce the check for CAST because some
10897         symbols are not correctly handled,
10898         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
10899         pCodeInstruction instead of pCode,
10900         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
10901         pCodeAsmDir definition,
10902         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
10903         directive, then the argument directive is emitted without the leading
10904         tab, hack for inline labels which must be in the first column,
10905         * (compareLabel,pic16_findNextInstruction),
10906         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
10907         * (insertBankSwitch): modified for the new pCodeAsmDir,
10908
10909 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
10910         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
10911
10912         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
10913         instance,
10914         * (pushSide): commented out with #if,
10915         * (assignResultValue): fixed some typos in saving
10916         registers,
10917         * (genPcall): FIXED and sync'ed with genCall,
10918         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
10919         * (genNearPointerGet): fixed to handle some more cases,
10920         implementation scheme via table reads,
10921         * (genConstPointerGet): modified to access code memory correct,
10922         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
10923         and improved to handle some cases
10924         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
10925         instead of "RETLW" for init data
10926         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
10927         not IN_DIRSPACE, work around to reduce bank switching when aboslute
10928         variables are placed in access bank memory (<0x80 and >=0xf80),
10929         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
10930         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
10931         TBLWT_POSTDEC,TBLWT_PREINC
10932         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
10933         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
10934         directives
10935         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
10936         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
10937         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
10938         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
10939
10940 2004-02-29  Borut Razem <borut.razem AT siol.net>
10941
10942         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
10943         support/Util/findme.h, support/Util/system.h: enhance binary relative
10944         search for lib and include by using findProgramPath()
10945
10946 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10947
10948         * src/SDCCpeeph.h,
10949         * src/SDCCpeeph.c (pcDistance),
10950         * src/port.h,
10951         * src/mcs51/ralloc.h,
10952         * src/mcs51/ralloc.c (mcs51_regWithIdx),
10953         * src/mcs51/main.h,
10954         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
10955         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
10956         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
10957         size calculation port specific, started basis for some register
10958         optimizations
10959         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
10960         missing push/pop of r0/r1. Optimized push/pops
10961         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
10962         * device/lib/_modsint.c (_modsint),
10963         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
10964         and stack version so regression tests pass
10965
10966 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
10967
10968         * src/Makefile.in (dep): include SLIBOBJS in dependency check
10969         * src/SDCCast.c (decorateType): catch another small optimization
10970         with '?' operator
10971         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
10972         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
10973         modified to finally use computeType() all over SDCC,
10974         see Feature Request #877103
10975         * src/SDCCval.h: cosmetic
10976         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
10977         valCompare(); regression tested in muldiv.c
10978         * support/regression/tests/muldiv.c (testMod): mod sign follows
10979         dividend only
10980
10981 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
10982
10983         * src/SDCCast.c (decorateType): fixed bug #902362
10984         * doc/INSTALL.txt: fixed install instructions for win32
10985
10986 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
10987
10988         * device/include/Makefile.in (install): fixed by replacing spaces
10989         by tabs
10990         * doc/README.txt,
10991         * doc/INSTALL.txt: updated for release
10992         * doc/sdccman.lyx: added warning for --xstack being buggy
10993
10994 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
10995
10996         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
10997         to eliminate build warnings.
10998         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
10999
11000 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
11001            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11002
11003         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
11004         removed -penable-stack, added comment for stack pragma, added
11005         warning for not initializing the stack/frame registers, removed
11006         comment at interrupts section
11007
11008         Stack is made permanent, there is no ability to disable stack usage.
11009         * src/pic16/device.h,
11010         * src/pic16/device.c: removed all references to USE_STACK macro,
11011         * src/pic16/device.c (pic16_dump_section): when no elements in
11012         rlist, free rlist before return,
11013         * (pic16_dump_int_registers): NEW, internal registers are a new set
11014         of general purpose registers reused by each function,
11015         * (checkAddReg): returns 1 if registers is added to set,
11016         * (pic16_groupRegistersInSection): when a registers is of type
11017         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
11018         * src/pic16/device.h: memRange and Assigned Memory are deleted,
11019         SRCASECMP macro is moved here from device.c
11020         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
11021         PO_PCLATU, PO_PRODL, PO_PRODH,
11022         * (pic16_pCodeOpType, genMinus,
11023         changed compares to "a" register, with AOP_ACC,
11024         * (pic16_genPlus): fixed some bugs and indented properly,
11025         * (pic16_addSign): changed size to size+offset in the MOVWF
11026         instruction,
11027         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
11028         multiply 8-bit operand by literal, result is 8-bit,
11029         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
11030         multiply 2 8-bit operand, result is 8-bit,
11031         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
11032         genUMult8X*_16,
11033         * src/pic16/gen.c: changed accUse to contain WREG only,
11034         * (pic16_emitcomment): renamed to pic16_emitpcomment,
11035         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
11036         true, do not use immediate addressing any more unless sym is a
11037         pointer in codespace,
11038         * (aopForRemat): do not use immediate addressing when symbol not in
11039         codespace and when symbol's address is requested,
11040         * (aopOp): for-loop in if(sym->accUse) is modified for the new
11041         accUse size (= 1),
11042         * (aopGet): added case for AOP_ACC and don't return "accumulator
11043         bug" but WREG instead,
11044         * (popGetTempReg): pushes contents of temporary register in stack,
11045         * (popReleaseTempReg): pops contents of temporary register from
11046         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
11047         * (pic16_popGet): separated case AOP_ACC to return register WREG
11048         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
11049         or PO_IMMEDIATE and initializes their instance/offset appropriately,
11050         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
11051         the use of immediate pointers to certain cases only.
11052
11053         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
11054         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
11055         * (assignResultValue, genCall, genRet): modified to use the new
11056         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
11057         genPcall is still broken,
11058         * (genFunction): added code to create 'A' type pBlocks when
11059         interrupt functions are generated, code not extensively tested yet,
11060         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
11061         * (genEndFunction): modified so ISRs pop stored registers from stack,
11062         * (genMultOneByte): cleanup,
11063         * (AccRsh): added flag andmask, to and result with appropriate mask,
11064         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
11065         * (genDataPointerGet): fixed and reenabled its use,
11066         * (genNearDataPointerGet): bugs fixed,
11067         * (genDataPointerSet): bugs fixed,
11068         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
11069         pic16_DumpSymbol, pic16_DumpOp,
11070         * src/pic16/genutils.h: function prototypes for the above functions,
11071         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
11072         pointers,
11073         * (pic16emitRegularMap): many many many improvements, but needs a
11074         major cleanup,
11075         * src/pic16/main.c: enable_stack in pic16_options is removed,
11076         * (_pic16_parseOptions): removed command line options -penable-stack,
11077         * (_process_pragma): emit stack symbol only when stack pragma is
11078         processed,
11079         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
11080         redirected to FSR0L/FSR0H pair,
11081         * (pic16_get_op, pic16_get_op2): modifications and improvements,
11082         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
11083         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
11084         for immediates,
11085         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
11086         * (dumpPicOptype): NEW,
11087         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
11088         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
11089         with movff instruction,
11090         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
11091         added pic16_int_regs, some packRegsFor* functions are commented out,
11092         because produce errors,
11093         * src/pic16/NOTES: minor modifications
11094
11095 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11096
11097         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
11098         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
11099         --pack-iram.
11100         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
11101         * as/mcs51/lkaomf51.c: fixed bug #895763
11102
11103 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
11104
11105         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
11106
11107 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11108
11109         * doc/sdccman.lyx: added details about the HC08 storage classes and
11110         interrupts, fixed the register usage info for z80 & gbz80
11111
11112 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
11113
11114         * doc/sdccman.lyx: added more pic16 port documentation
11115         * device/include/pic16/: added header pic18fregs.h
11116
11117 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
11118
11119         * doc/sdccman.lyx: added Vangelis' contribution
11120
11121 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11122
11123         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
11124         extend to the next CALL or PCALL, not just to the next CALL.
11125
11126 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
11127
11128         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
11129
11130 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11131
11132         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
11133         bug #895752 and a better fix for bug #716790
11134
11135 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11136
11137         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
11138
11139 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11140
11141         * doc/sdccman.lyx: minor changes, minor changed
11142
11143 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
11144
11145         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
11146         which can't handle SDCC_NEWONEBYTEOPS,
11147         (geniCodeMultiply): removed conversion from mult to shift for pic14
11148         and pic16
11149
11150 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11151
11152         * src/hc08/gen.h,
11153         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
11154         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
11155         thus fixing bug #895406
11156
11157 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
11158
11159         * device/lib/_modsint.c,
11160         * device/lib/_modslong.c: sign follows divisor only
11161         * src/hc08/gen.c (genMultOneByte): if result size is 1,
11162         signs or signedness can be ignored
11163         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
11164         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
11165         added optimization for IFX,
11166         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
11167         arguments;
11168         reenabled optimization for IFX, which was removed on 2004-01-11
11169         * src/SDCCast.h: added return type IFX
11170         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
11171         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
11172         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
11173         SDCC_OLDONEBYTEOPS selects the old behaviour
11174         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
11175         changed again and commented promotion rule
11176         * src/SDCCval.c (valDiv): promotion no longer necessary
11177         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
11178         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
11179         rewritten
11180         * support/regression/tests/onebyte.c: added
11181
11182 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
11183
11184         * gen.c (genInline): reverted to old code for assemnling inline
11185         code because of bug reported James Chadd
11186
11187 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
11188
11189         * ralloc.h: missing declarations from previous patch,
11190         seems that patch for ralloc.h was never applied, fixed
11191
11192 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11193            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
11194
11195         * pcode.c,
11196         * pcode.h,
11197         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
11198         indirect addressing. Marked FSR0 as deprecated
11199         * gen.c (pointerCode): commented out, not needed now
11200         (pic16_popGet2p): new MOVFF helper function
11201         (genGenPointerGet),
11202         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
11203         (shiftRLong): removed duplicate debugging info
11204
11205 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11206
11207         * src/ds390/gen.c (genNearPointerGet),
11208         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
11209         optimization with bits, but not bitfields.
11210         * src/ds390/ralloc.c (packRegisters),
11211         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
11212
11213 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
11214
11215         * src/SDCCcse.c (algebraicOpts): copy operands before modification
11216
11217 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11218
11219         * src/SDCCsymt.h,
11220         * src/SDCCicode.c (operandFromSymbol),
11221         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
11222         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
11223         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
11224         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
11225         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
11226         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
11227         bug #892038
11228         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
11229         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
11230         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
11231         * src/SDCCsymt.c (newSymbol),
11232         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
11233         enumerator_list),
11234         * src/SDCCval.h,
11235         * src/SDCCval.c (newiList): fixed bug #885705
11236
11237 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11238
11239         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
11240         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
11241
11242 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11243
11244         * device/include/c8051f120.h,
11245         * device/include/c8051f300.h,
11246         * device/include/c8051f310.h: added/updated header files for Silicon
11247         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
11248         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
11249         in new section Submitting patches
11250
11251 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11252
11253         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
11254         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11255         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11256         genGenPointerSet),
11257         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
11258         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11259         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11260         genGenPointerSet),
11261         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
11262         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11263         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11264         genGenPointerSet),
11265         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
11266         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11267         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11268         genGenPointerSet): fixed bug #892400
11269         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
11270         to eliminate build warnings.
11271         * src/SDCCast.c (processParms),
11272         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
11273         fixed bug 751859
11274         * support/valdiag/valdiag.py: added GCC to the list of defines active
11275         when compiling with gcc
11276
11277 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11278
11279         * support/Util/SDCCerr.h,
11280         * support/Util/SDCCerr.c,
11281         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
11282         with an incomplete type (fixed bug #883734)
11283         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
11284
11285 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11286
11287         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
11288
11289 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11290
11291         * src/SDCCast.c (decorateType),
11292         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
11293         function pointer implementation
11294         * support/regression/tests/funptrs.c: added tests to verify both forms
11295         of function pointers work correctly. Added tests to verify parameters
11296         are passed in the correct order.
11297
11298 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
11299
11300         * device.c (regCompare): registers are sorted by ascending
11301         address and increasing size,
11302         * main.c (_pic16_finaliseOptions): removed the declaration
11303         of compiler macro MCU. Now a macro of the format pic18fxxxx
11304         will be defined from the command line
11305
11306 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11307             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
11308
11309         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
11310         PCOP_RLCF was overwritten!
11311         * gen.c (genSkip): commented out calls to pic16_emitcode,
11312         * (genCmpEQ): fixed "long" compares, only high word did get compared,
11313         * (genlshTwo),
11314         * (genRRC): added debugging info,
11315         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
11316         overwritten while shifting,
11317         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
11318         overwritten while shifting,
11319         * (AccLsh),
11320         * (AccRsh),
11321         * (shiftLLeftOrResult),
11322         * (shiftRLeftOrResult),
11323         * (shiftRLong),
11324         * (shiftLLong): Implemented with pic16_emitpcode
11325         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
11326         * (genLeftShift): Fixed bug, operand for shift by variable always
11327         was "and"ed with 0x0f,
11328         * (genLeftShiftLiteral),
11329         * (genrshTwo),
11330         * (genRightShiftLiteral): added debugging info,
11331         * (genrshFour): added comment,
11332         * (genRightShift): determined signedness from operand "left"
11333         instead of "result"
11334
11335 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11336
11337         * src/SDCCicode.c (geniCodeParms),
11338         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
11339         function pointers, fixed function pointer bugs #861242 and #861896
11340
11341 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11342
11343         * device/include/c8051f000.h,
11344         * device/include/c8051f120.h,
11345         * device/include/c8051f300.h: added header files for Silicon
11346         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
11347
11348 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
11349
11350         * src/SDCCast.c (processParams): added new type flow and restructured
11351         (gatherAutoInit): added new type flow
11352         (addCast): cosmetic changes
11353         (getLeftResultType): added new type flow for array indices, patch
11354         provided by Stas, see FR #877103
11355         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
11356         array index patch by Stas
11357         * src/SDCCast.h: added prototype getResultTypeFromType()
11358         * src/SDCCval.h,
11359         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
11360         * src/pic/glue.c (pic14emitStaticSeg),
11361         * src/pic16/glue.c (pic16emitStaticSeg),
11362         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
11363         for initialization of symbols
11364         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
11365         * support/Util/SDCCerr.h:
11366         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
11367         * .version: bumped version number to 2.3.8
11368         * device/include/Makefile.in (install),
11369         * doc/Makefile (install): changed to 'rm `find ...`' construct to
11370         avoid warnings
11371
11372 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
11373
11374         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
11375         Slade Rich fixed an optimization bug
11376         * src/pic/pcodepeep.c,
11377         * src/pic/pcoderegs.c
11378         * doc/Makefile (install): added test for directory
11379
11380 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11381
11382         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
11383         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
11384         * src/pic/ralloc.c (getRegPtr, getRegGpr),
11385         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
11386         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
11387         * as/mcs51/asexpr.c (term),
11388         * as/hc08/asexpr.c (term): fixed bug #887146
11389
11390 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11391
11392         * src/z80/gen.c (genMult): handle single byte result product
11393         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
11394         DUMMY_READ_VOLATILE (fixed bug #886367)
11395
11396 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
11397
11398         * support/regression/tests/libmullong.c: fixed logic, on little endian
11399         hosts we ended without a mullong_wrapper()
11400
11401 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11402
11403         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
11404         virus/worm forged address usage.
11405
11406 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
11407
11408         Fixed promotion, it should be done on AST level:
11409         * src/SDCCast.c (addCast): added promotion to int
11410         (decorateType): updated call to upCast()
11411         * src/SDCCicode.c (geniCodeLeftShift): removed call to
11412         usualUnaryConversions()
11413
11414 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
11415
11416         * support/regression/tests/literalop.c (mulWrapper): Added a
11417         wrapper to remove integer overflow warnings.
11418
11419         * support/regression/tests/float_trans.c: Made work on host.
11420
11421         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
11422         location of sz80.
11423
11424         * support/regression/generate-cases.py (main): Changed from inline
11425         to a main method.
11426
11427         * doc/Makefile (install): Changed to depth first to get rid of
11428         missing directory install warning.
11429
11430         * as/Makefile (install-doc): Made work on Mac.
11431
11432 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
11433
11434         * src/SDCCast.c: added an additional type flow in decorateType() of
11435         opposite direction, see feature request #860006; it's enabled at runtime
11436         by setting the environment variable SDCC_NEWTYPEFLOW
11437         * src/SDCCast.h: changed prototype of decorateType()
11438         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
11439         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
11440         'char' to 'int' can be omitted, if both operands are 'unsigned char';
11441         see feature request #877103
11442         * src/SDCCval.c: updated call of decorateType()
11443         (valBitwise): fixed bug #882876
11444         (valMinus): added promotion
11445         (valLogicAndOr): result is unsigned
11446         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
11447         * src/SDCCsymt.c (computeType),
11448         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
11449         must not cause an unsigned operation
11450         * src/pic/glue (pic14emitRegularMap),
11451         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
11452
11453 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
11454
11455         * src/pic/pcode.c (PCodeID): commented out left over debug code
11456
11457 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
11458
11459         * support/valdiag/tests/overflow.c: added shift tests
11460         * src/pic/device.c,
11461         * src/pic/gen.c,
11462         * src/pic/gen.h,
11463         * src/pic/glue.c,
11464         * src/pic/main.c,
11465         * src/pic/pcode.c,
11466         * src/pic/pcode.h,
11467         * src/pic/pcodepeep.c,
11468         * src/pic/pcoderegs.c,
11469         * src/pic/ralloc.c,
11470         * src/pic/ralloc.h: applied patch from Slade Rich;
11471         added support for multiple code pages and multiple RAM banks on the
11472         PIC 14 port. The ASM files now no longer simply assume all the
11473         code / RAM are in the same page / bank. This means the linker can
11474         safely allocate code/RAM of separate ASM files to different pages/banks.
11475         * doc/sdccman.lyx: added Slade's tips
11476         * src/mcs51/peeph.def: fixed bug #880768
11477
11478 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11479
11480         * src/hc08/ralloc.c (rematStr): fixed bug #879282
11481         * src/SDCCast.c (decorateType): fixed bug #880197
11482
11483 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
11484
11485         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
11486         getopt.h.
11487
11488         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
11489         strtof is not part of C89 and isn't included with Mac OS X.
11490
11491 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11492
11493         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
11494         shiftL2Left2Result): fixed bug #879326
11495         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
11496         (genMultOneByte): fixed bug in signed vs unsigned multiplication
11497         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
11498         address fetch for clr instruction
11499         * device/lib/hc08/_mulint.c: created optimized assembly version
11500         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
11501
11502 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
11503
11504         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
11505         proposed in FR #877103
11506
11507 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
11508
11509         * src/SDCCval.c (cheapestVal): added missing checks
11510         * src/SDCCicode.c (usualBinaryConversions): fixed condition
11511         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
11512
11513 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
11514
11515         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
11516         equal operands
11517
11518 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
11519
11520         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
11521         loaded with the linker search paths (-L arguments) and the libraries
11522         to be linked with the current source (-l arguments). Changes
11523         currently will affect only the pic16 port.
11524         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
11525         include path the port specific paths and port specific libraries,
11526         * gplink command now contains the $3 argument,
11527         * src/pic16/device.h,
11528         * src/pic16/device.c,: structure PIC_device is made public and
11529         renamed to PIC16_device, the same for variable Pics which is renamed
11530         to Pics16. Updated all references to them.
11531         * src/pic16/glue.c (pic16glue): corrected bug with code
11532         initialization which bypassed the variable initializations block.
11533
11534         * device/lib/pic16/Makefile.rules: removed --penable-stack from
11535         COMPILE_FLAGS and added the --nostdinc option
11536
11537 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11538
11539         * device/include/mc68hc908jb8.h: Register defs for another member
11540         of the hc08 family. Contributed by Bjorn Bringert - thanks!
11541
11542 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
11543
11544         Documenting changes from previous commits.
11545         * configure.in (version 1.56),
11546         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
11547         when generating output files to configure the pic16 library,
11548         but now I've commented it out, since gputils aren't installed in the
11549         SF compile farm, so library won't compile
11550
11551         * device/lib/Makefile.in (version 1.56): initially I've added in
11552         target 'all' the prerequestive 'model-pic16' so it compiled the
11553         pic16 library, but now I've commented it out for the same reasons
11554         above,
11555         * added targets 'model-pic16' and 'objects-pic16' to compile the
11556         library
11557         * added target 'port-specific-objects-pic16' to handle the
11558         generated libraries and copy them into the build/ directory
11559         * added target 'clean-intermediate-pic16' to clean intermediate
11560         files into pic16 directory
11561         * in target 'installdirs' added line to create directory pic16 in
11562         the installation path
11563
11564         * device/include/Makefile.in (version 1.11): in target 'install'
11565         added lines to copy all header files to installation path,
11566         * in target 'installdirs' added line create directory for pic16
11567         headers in the installation path
11568
11569 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
11570
11571         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
11572          a function call
11573
11574 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
11575
11576         * configure,
11577         * device/lib/configure.in,
11578         * device/lib/configure: fixed for autoconf 2.57
11579
11580 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11581
11582         * src/z80/main.c (_parseOptions): fixed the portmode= command line
11583         option so that it actually works. Made it specific to the z80, since
11584         the gbz80 doesn't have these kinds of I/O ports.
11585
11586 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11587
11588         * device/include/z180.h,
11589         * device/lib/_memcpy.c,
11590         * device/lib/_memmove.c,
11591         * device/lib/_mulint.c,
11592         * device/lib/ser_ir.c,
11593         * device/lib/ser_ir_cts_rts.c,
11594         * device/lib/_strcmp.c,
11595         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
11596         * src/z80/main.c (_process_pragma): add support for pragmas bank and
11597         portmode; added deprecation warning for bank= and protmode= forms.
11598         Also, guard against buffer overflow.
11599         * src/z80/gen.c (aopGet): generate better code for sfr banked read
11600
11601 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11602
11603         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
11604         changed interrupt vector table generation to only emit declared vectors.
11605         * device/include/Makefile.in: added missing backslash
11606         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
11607
11608 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
11609
11610         Mainly changes to support compilation of the device libraries
11611         * src/pic16/device.c: stack is allocated via symbol and not
11612         via literal number. The symbol is placed in the corresponding
11613         position of the data ram
11614         * (pic16_dump_section): relocatable and absolute uninitialized
11615         data are now emitted in sorted order to reduce section naming,
11616         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
11617         weren't marked as being in the access bank,
11618
11619 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
11620
11621         Added portion of GNU PIC Library under the directory
11622         device/include/pic16 and device/lib/pic16. These files
11623         contain the declarations of SFRs for the PIC18Fxx2 devices.
11624         The directory is initialized via configure from toplevel.
11625
11626 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
11627
11628         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
11629         the spilllocations to be compared correctly
11630
11631 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
11632
11633         * src/SDCCast.c (decorateType): fixed bug introduced today
11634
11635 2004-01-12  Borut Razem <borut.razem AT siol.net>
11636
11637         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
11638         doc/sdccman.lyx: upper case pragmas are deprecated
11639
11640 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
11641
11642         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
11643         in simpler and even better code
11644
11645 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
11646
11647         * src/SDCCicode.c (operandOperation): fixed bug #874819
11648         * src/SDCCast.c (decorateType): fixed
11649         char foo (unsigned long ul) { return ul > 0; }
11650
11651 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11652
11653         * doc/sdccman.lyx: Moved and added some sections, small changes
11654         all over. Telling LaTeX to be less strict with word spacing
11655         to better keep the right margin. Changed some notes about
11656         maintainance of the ports in section 3.2.1 - is it OK like this?
11657
11658 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
11659
11660         SDCC source changes:
11661         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
11662         convilong): modified to inform the pic16 port that builtin functions
11663         are external
11664
11665         PIC16 PORT specific changes:
11666         * src/pic16/device.c pic16_dump_equates() added,
11667         processor registers declared internally by the port are emitted in
11668         the translation as equates,
11669         * src/pic16/gen.c: inline code is passed unprocessed to the
11670         translation,
11671         * (pic16_popGetLit2): fnuction modified to take second operand as
11672         pCodeOp pointer and not as literal,
11673         * (popRegFromIdx): prefixed with pic16_,
11674         * (pic16_popCombine2): modified to receive already allocated pCode
11675         operands,
11676         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
11677         * (genFunction): initializes local stack frame and pushes on stack
11678         all the registers used by this function,
11679         * (genEndFunction): restores all registers from stack and restores
11680         stack frame,
11681         * src/pic16/glue.c (pic16emitRegularMap): various changes and
11682         improvements,
11683         * (pic16glue): changed the program startup sequence,
11684         * added new dbName code 'A' for functions placed in absolute section
11685         * src/pic16/main.c: added function attribute _naked,
11686         * added pragma 'code' to place a fnuction at an absolute address,
11687         * added command line arguments --debug-ralloc and --pcode-verbose,
11688         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
11689         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
11690         * (pic16_newpCodeOpLit2): modified to take the second operand as
11691         pCodeOp pointer,
11692         * (pic16_printpBlock): modified to emit each function in a separate
11693         section,
11694         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
11695         UPPER for immediate operands,
11696         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
11697         instruction,
11698         * src/pic16/peeph.def: all peepholes with movff are commented out,
11699         because there is a problem in the pcode peep optimizer,
11700         * src/pic16/ralloc.c: the register allocator can now reuse local
11701         function symbols for another function. This saves register usage.
11702         * src/pic16/ralloc.h: added flag isLocal in structure regs,
11703
11704         Added file src/pic16/NOTES with information about program writing on
11705         the current port version.
11706
11707 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11708
11709         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
11710         and peephole 252 (array access)
11711
11712 2004-01-09  Borut Razem <borut.razem AT siol.net>
11713
11714         * src/SDCCmain.c : fixed #872250: -l command line defined library
11715           files are scanned before standard library files
11716
11717 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11718
11719         * src/SDCCast.c (decorateType): fixed bug #874046
11720
11721 2004-01-09  Borut Razem <borut.razem AT siol.net>
11722
11723         * support/scripts/sdcc.nsi: remove previous installation
11724
11725 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11726
11727         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
11728         bytes for last interrupt vector (mcs51)
11729         * sdcc.spec: fixed typo
11730
11731 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11732
11733         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
11734         gen51Code): more efficient parameter receive for --model-large
11735         ("bug" #845294)
11736
11737 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11738
11739         * src/ds390/main.c,
11740         * src/z80/main.c: added missed needLinkerScript flags (more than
11741         one port structure defined in these file)
11742         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
11743         bug #795325
11744
11745 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
11746
11747         * src/SDCCmain.c: removed various references to DEFAULT_PORT
11748         * src/port.h: added flag needLinkerScript in port->linker
11749         structure to inform whether to create a .lnk file or not,
11750         * src/avr/main.c,
11751         * src/ds390/main.c,
11752         * src/hc08/main.c,
11753         * src/mcs51/main.c,
11754         * src/pic/main.c,
11755         * src/pic16/main.c,
11756         * src/xa51/main.c,
11757         * src/z80/main.c: changed appropriately to configure
11758         needLinkerScript flag
11759         * src/pic/gen.c,
11760         * src/pic16/gen.c (genAddrOf): fixed bug #863624
11761         * src/pic/glue.c: added variable udata_section_name to
11762         override default uninitialized data segment definition for
11763         devices only with SHAREBANK memory (reported from Erik Epetrich)
11764         * (pic14emitOverlay): modified to emit a commented overlay segment
11765         directive when no overlay data exist
11766         * (picglue): modified to emit uninitialized data segment
11767         according to udata_section_name
11768         * src/pic/main.c (_pic14_parseOptions): added command line
11769         options --udata-section-name=[name] to override default
11770         udata definition name
11771         * modified _linkCmd and _asmCmd to include compiler passed
11772         arguments via -W option
11773         * src/pic16/main.c: added $l in _asmCmd, changed extension for
11774         object file from '.rel' to '.o' in port->linker structure,
11775         changed size of fptr from 2 to 3 in port structure
11776
11777 2004-01-07  Borut Razem <borut.razem AT siol.net>
11778
11779         * support/scripts/sdcc.nsi: update PATH
11780         * support/scripts/sdcc.ico: craeted
11781
11782 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
11783
11784         * device/include/Makefile.in: fix install
11785         * doc/Makefile: fix install
11786
11787 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11788
11789         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
11790         in bug #860505
11791         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
11792         how the function variable allocation summary is displayed; also
11793         include information about variables allocated to the overlay
11794         segment
11795
11796 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11797
11798         * as/mcs51/lkmain.c: Help about -Y option
11799         * as/mcs51/lkarea.c: Fixed gcc warnings
11800
11801 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
11802
11803         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
11804         fixed warning
11805         * support/valdiag/tests/overflow.c: added
11806         * src/SDCCast.c (decorateType),
11807         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
11808         LEFT_OP (left shift)
11809
11810 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11811
11812         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
11813         (default behaviour).
11814
11815 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11816
11817         A python script to validate compiler diagnostic messages. It can be
11818         used to verify that sdcc complains about bad c source code and
11819         gives a good location of the error.
11820         * support/valdiag/Makefile,
11821         * support/valdiag/valdiag.py,
11822         * support/valdiag/tests/*
11823
11824 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11825
11826         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
11827         * src/SDCCsymt.c (newEnumType),
11828         * src/SDCCsymt.h
11829         * support/Util/SDCCerr.c,
11830         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
11831         enum related bugs.
11832         * support/regression/tests/enum.c: added test for enum values that
11833         require at least 2 bytes of storage.
11834
11835 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
11836
11837         * src/common.h: added ifndef/define/endif macros
11838         around the header file.
11839         Bug reported from Jesus Calvino-Fraga
11840
11841 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
11842
11843         * sdcc.spec: updated
11844         * device/include/Makefile.in: don't install CVS directories
11845         * device/lib/Makefile.in: added removal of CVS directories after install
11846         * doc/Makefile: fixed install, added local_icons
11847         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
11848         * src/mcs51/gen.c (genRightShift): fixed bug #870788
11849         * src/ds390/gen.c (genRightShift): fixed bug #870788
11850         * src/SDCCast.c (decorateType): fixed bug #870781
11851
11852 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
11853
11854         PIC16 port related changes:
11855         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
11856         added variable stackPos,
11857
11858         * gen.c: genCall, assignResultValue: added support for
11859         pushing/retrieving function parameters to/from stack,
11860         genFunction,genEndFunction: setup stack frame for the
11861         generated function,
11862         genAddrOf: will be changed according to bug 863624
11863
11864         * added files genutils.c and genutils.h which contain gen*
11865         debugged and optimised functions extracted from gen.c
11866
11867         * glue.c: added variable 'externs' which holds extern symbols,
11868         pic16emitRegularMap: is modified to properly handle relocatable
11869          symbols under the new scheme,
11870         pic16createInterruptVect: is modified
11871         pic16printPublics: is modified to emit 'global' assembler directives,
11872         added pic16_printExterns to print extern symbols,
11873         pic16glue: initializes stack/frame pointer in the beginning of
11874         the assembly output. Temporary hack, will be corrected later,
11875         because gplink yet does not support stack and SDCC does not
11876         yet support a type of crt0.o object to create the final binary.
11877
11878         * Removed many lines that contain 8051 legacy code.
11879         * The code is finally placed under a 'code' directive.
11880         * Added port specific options.
11881
11882         * _process_pragma: simplified since now we do not need *special*
11883         include file to define SFR registers. But a separate header
11884         will be needed. This will be developed later.
11885         * _pic16_parseOptions: added, parses port specific options:
11886         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
11887         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
11888         --preplace-udata-with=
11889
11890         * _pic16_setDefaultOptions: modified to initialize section names,
11891         but hack is temporarly out of order since it needs improvement.
11892         * _pic16_genAssemblerPreamble: configuration words are emitted by
11893         their address instead of their name. This part is incomplete and
11894         supports only the 18Fxx2 devices. Other devices will emit an error
11895         during assembly since they do not contain the same set of config
11896         registers
11897         * _pic16_genIVT: is modified,
11898
11899         * pcode.c: added definitions for some hardware registers that are needed
11900         for stack support
11901         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
11902         All PCI entries are updated. Now LFSR is supported.
11903         * Removed pic16_pciTRIS is mentioned by mdubuc in source
11904         * added pic16_newpCodeOpLit2 to support instructions with
11905         two literal arguments
11906         * pic16_pCode2str: corrected code that emits assembler instructions
11907         with two literal operands and those that have an access bit modifier
11908         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
11909         this fixes a bug which caused some labels to be lost, when an
11910         assembler directive was added, i.e. banksel,
11911         * pic16_FixRegisterBanking: improved logic that causes the insertion
11912         of bank switching,
11913         * InlineFunction: functions that are called once, are not any more
11914         inlined. This can be a port option in the future,
11915
11916         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
11917
11918         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
11919         hold the corresponding uninitialized symbols,
11920         * pic16_allocProcessorRegister: registers have explicit marked the
11921         accessBank field,
11922         * pic16_allocInternalRegister: registers are explicit marked as
11923         not used,
11924         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
11925         processing list, so bit registers were lost,
11926         *
11927
11928         * ralloc.h: added field 'accessBank' and original symbol operand
11929         in register definition,
11930         * removed the field isMapped from register definition,
11931
11932         ** Several functions have been removed from various sources:
11933         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
11934         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
11935         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
11936         pic16_assignRelocatableRegisters
11937
11938         ** others have been introduced:
11939         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
11940         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
11941
11942 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
11943
11944         * support/scripts/inc2h.pl: changed definition of BIT_AT
11945         to emit 'sbit at' instead of 'bit at'. This was a request.
11946
11947         PIC16 port related preliminary changes:
11948         * gen.c: prefixed function popRegFromString with
11949         pic16_ and all references to it corrected
11950         * pcode.c: all pic16_pc_* hardware registers prefixed
11951         with underscore (_),
11952         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
11953         * ralloc.c: newReg(): when register is REG_SFR then
11954         set address to rIdx,
11955         pic16_allocProcessorRegister(): marks register wasUsed=0
11956         pic16_writeUsedRegs(): added a call to assign processor
11957         registers via pic16_assignFixedRegisters
11958
11959 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11960
11961         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
11962         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
11963         variables in unused register banks.  Also the SSEG is placed
11964         wherever there is enough space for it, and IDATA can be anywhere
11965         in internal RAM.  For now compile using -Wl-Y[stack_size].
11966         The mem file is different for this option as well, since it
11967         makes no sense of talking about DSEG lenght.
11968
11969 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
11970
11971         * src/SDCClrange.c: fixed bug 869095 that caused segfault
11972         in certain cases, e.g. when ROM assignment, patch provided
11973         from Albert den Haan.
11974
11975 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
11976
11977         Many signedness and type propagation fixes:
11978         * src/SDCCicode.c: made geniCodeCast() static
11979         replaced SPEC_ by IS_ (cosmetic)
11980         (operandOperation): fixed div and mod operation
11981         (usualBinaryConversions): added support for promotion of char
11982         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
11983         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
11984         (geniCodeAdd): an array index will stay unsigned, even if promoted
11985         from char to int
11986         (geniCodeArray): ditto
11987         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
11988         * src/SDCCsymt.c (computeType): added more support for char;
11989         promotion of char is selectable by promoteCharToInt, fixed signedness
11990         for all cases
11991         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
11992         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
11993         * src/SDCCval (val*): replaced signedness calculation by
11994         computeType()
11995         rearranged if-branches (cosmetic)
11996         (valShift): added warning W_SHIFT_CHANGED
11997         (valCompare): fixed problem with different types
11998         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
11999         * support/regression/tests/literalop.c: added many cases
12000         * support/regression/tests/ast_constant_folding.c: changed finally to
12001         'unsigned int'
12002         * .version: new year, new version: 2.3.7
12003         * src/SDCCmain.c (main): applied patch #866468
12004         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
12005         provided by Scott Bronson
12006         * doc/sdccman.lyx: updated documentation for sdcdb
12007         updated and added chapter tips
12008
12009 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12010
12011         * src/SDCCsymt.h: missing from yesterday's commits
12012
12013 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12014
12015         * src/SDCC.y (struct_or_union_specifier),
12016         * support/Util/SDCCerr.c,
12017         * support/Util/SDCCerr.h: verify that struct & union tags are used
12018         as declared.
12019
12020 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12021
12022         * src/SDCCglobl.h: missing from yesterday's commits
12023
12024 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12025
12026         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
12027         sft_attributes, struct_declaration, parameter_declaration,
12028         type_name, start_block, declaration_list),
12029         * src/SDCC.lex (check_type): support redefinition of typedef names
12030
12031 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12032
12033         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
12034         aligned xdata arrays. Erik helped me with the if clause.
12035
12036 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12037
12038         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
12039         warning
12040
12041 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12042
12043         * src/SDCCast.h,
12044         * src/SDCCast.c (newAst_),
12045         * src/SDCCicode.h,
12046         * src/SDCCicode.c (ast2iCode, newiCode),
12047         * src/SDCCglobl.h,
12048         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
12049         expr, statement, expression_statement, selection_statement,
12050         iteration_statement, expr_opt, jump_statement): foundation for tracking
12051         sequence points
12052         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
12053         point code too)
12054
12055 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12056
12057         * support/Util/SDCCerr.c,
12058         * src/SDCCast.h,
12059         * src/SDCCast.c (createCase, createDefault, decorateType),
12060         * src/SDCClabel.c (labelUnreach),
12061         * src/SDCC.y (labeled_statement, jump_statement): More improvements
12062         to error messages.
12063         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
12064         (with thanks to Stas Sergeev)
12065         * device/include/time.h,
12066         * device/lib/time.c (CheckTime): suppress unreachable code warning
12067
12068 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12069
12070         * src/SDCCast.c (createIvalCharPtr),
12071         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
12072         bug #753752)
12073         * support/regression/tests/nullstring.c: tests for these two bugs
12074
12075 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12076
12077         * support/Util/SDCCerr.h,
12078         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
12079         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
12080         about storage class and 'at' used inside struct or union
12081         * src/SDCCBBlock.c (iCodeFromeBBlock),
12082         * src/SDCCcse.c (ifxOptimize),
12083         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
12084         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
12085         printIval, emitStaticSeg, emitOverlay),
12086         * src/SDCClabel.c (deleteIfx),
12087         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
12088         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
12089         gatherAutoInit, processParms),
12090         * support/Util/SDCCerr.h,
12091         * support/Util/SDCCerr.c (werrorfl): Support for better error location
12092         reporting for post-parse errors.
12093
12094 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12095
12096         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
12097         implicit casts via union; they don't work on big endian systems
12098         (possible fix for bug #861138)
12099
12100 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12101
12102         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
12103         * src/mcs51/main.c: fixed the fix for bug #737001
12104
12105 2003-12-15  Borut Razem <borut.razem AT siol.net>
12106
12107         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
12108
12109 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12110
12111         * support/makebin/makebin.c: put output in binary mode
12112
12113 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12114
12115         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
12116         xdata and data memory on startup. Set the environment variable
12117         SDCC_NOGENRAMCLEAR to disable this.
12118         * src/mcs51/peephole.def,
12119         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
12120         (allows non-interrupt and interrupt code to safely compete for a resource
12121         without the non-interrupt code having to disable interrupts)
12122
12123 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12124
12125         * src/SDCCicode.c (geniCodeAdd),
12126         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
12127         with valFromType if type might be a pointer and host is big endian).
12128         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
12129         types, not just integer types.
12130         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
12131         multiply defined with mismatching "at" address.
12132
12133 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12134
12135         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
12136         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
12137         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
12138         with embedded nulls (fixed bug #753752)
12139
12140 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12141
12142         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
12143         Apparently this did not see much testing (endless loop)
12144
12145 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12146
12147         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
12148
12149 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12150
12151         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
12152         gracefully handle NULL memmap pointers
12153
12154 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12155
12156         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
12157         instead of deleting the iCode when an operand is volatile
12158         * src/z80/gen.c (genDummyRead),
12159         * src/mcs51/gen.c (genDummyRead),
12160         * src/ds390/gen.c (genDummyRead),
12161         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
12162         not just IC_RIGHT
12163         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
12164         * src/SDCC.y: fixed bug #850420
12165
12166 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12167
12168         Applied z80 i/o port patch from Peter Townson and fixed some operators
12169         to better handle operands in A register.
12170         * device/include/z180.h
12171         * src/SDCC.y
12172         * src/SDCCglue.c
12173         * src/z80/gen.c
12174         * src/z80/gen.h
12175         * src/z80/main.c
12176         * src/z80/peeph-z80.def
12177         * src/z80/peeph.def
12178         * src/z80/z80.h
12179
12180 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12181
12182         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
12183
12184 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12185
12186         * device/lib/hc08/_mullong.c: Removed extra #endif
12187
12188 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12189
12190         * sim/ucsim/hc08.src/inst.cc,
12191         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
12192         carries from x to h
12193         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
12194         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
12195         * device/include/stdarg.h: fixed varargs for hc08
12196         * device/lib/Makefile.in,
12197         * device/lib/hc08/Makefile,
12198         * device/lib/hc08/_mulint.c,
12199         * device/lib/hc08/_mullong.c: fixed some endian problems
12200
12201 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12202
12203         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
12204         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
12205         * device/lib/_gptrget.c,
12206         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
12207
12208 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12209
12210         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
12211         * src/SDCCast.c (astErrors): fixed bug #846007
12212         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
12213
12214 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12215
12216         * src/SDCCast.c (decorateType): disabled a transformation I added in
12217         revision 1.188 (access to fields of a structure at an absolute address);
12218         it breaks with bitfields, extern declarations, and gcse analysis.
12219         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
12220         could be assigned through a pointer, so don't complain.
12221         * src/SDCCast.c (astErrors),
12222         * src/SDCCast.h,
12223         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
12224
12225 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
12226
12227         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
12228         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
12229         output of __config directives, since gpasm now supports them
12230         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
12231         pre-processor macro, i.e. -DMCU=p18f452
12232         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
12233         and modified to handle 'cast' icode similarly to '=' icode
12234         * src/pic16/device.h (typedef struct PIC_device): added field
12235         'extMIface' to indicate that chip has external memory interface
12236         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
12237         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
12238         18F8720
12239
12240 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12241
12242         * src/SDCC.y (pointer): fixed bug #846006
12243         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
12244         * src/SDCCast.c (decorateType): fixed bug #846009
12245         * src/ds390/peeph.def,
12246         * src/ds390/gen.c (genAnd, genOr),
12247         * src/mcs51/peeph.def,
12248         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
12249
12250 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12251
12252         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
12253         * src/SDCCdflow.c
12254         * src/SDCCcse.c
12255         * src/SDCCcse.h
12256         * src/SDCCBBlock.h
12257         * src/SDCCBBlock.c
12258
12259 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
12260
12261         fixed bug #845089
12262         * src/SDCCbitv.h,
12263         * src/SDCCbitv.c: added function to free a bitvector
12264         * src/SDCClrange.h,
12265         * src/SDCClrange.c: added function to recompute the liveranges
12266         * src/avr/ralloc.c,
12267         * src/ds390/ralloc.c,
12268         * src/hc08/ralloc.c,
12269         * src/mcs51/ralloc.c,
12270         * src/pic/ralloc.c,
12271         * src/pic16/ralloc.c,
12272         * src/xa51/ralloc.c,
12273         * src/z80/ralloc.c: recompute the liveranges after register packing
12274
12275 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
12276
12277         * src/SDCCloop.c (newInduction): fixed bug #845630
12278
12279 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12280
12281         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
12282         inadvertantly left behind from my 2003-11-12 change
12283
12284 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12285
12286         Updated headers I neglected to commit yesterday.
12287         * src/SDCClrange.h,
12288         * src/SDCCicode.h
12289
12290 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12291
12292         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
12293         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
12294         * src/SDCCopt.c (eBBlockFromiCode),
12295         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
12296         the creation of the key hash table from the sequencing so it can be used
12297         earlier (for some GCSE bug fixes still pending)
12298
12299 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12300
12301         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
12302         * support/regression/tests/addsub.c: testing genPlus shortcut
12303
12304 2003-11-15  Borut Razem <borut.razem AT siol.net>
12305
12306         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
12307
12308 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12309
12310         * src/SDCCcse.c (cseBBlock): fixed bug #527779
12311         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
12312         ordering is immaterial.
12313         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
12314
12315 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12316
12317         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
12318         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
12319         (SIGSEV) of bug #840381
12320         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
12321         unlink new file before rename if new and old filenames are the same)
12322
12323 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12324
12325         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
12326         uninitialized variables) for the mcs51. Set environment variable
12327         SDCC_GENRAMCLEAR to test.
12328         xdata initialization slightly shorter
12329
12330 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12331
12332         * src/SDCCsymt.h,
12333         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
12334         #838241 & 780691 (basicly the same bug)
12335         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
12336         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
12337
12338 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
12339
12340         * src/SDCCmain.c (linkEdit): "fix" #834252
12341
12342 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12343
12344         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
12345         * src/SDCCast.h,
12346         * src/SDCC.y: fixed bug #819403
12347
12348 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12349
12350         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
12351         the reentrant attribute.
12352         * src/hc08/gen.c (genPackBits): added missing stack readjustment
12353         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
12354         simulation
12355         * src/SDCCast.c (decorateType): fixed bug with storage class not being
12356         updated during pointer dereference; f.e. ~(((char *)1)*) was being
12357         erroneously reduced to a literal.
12358         * src/hc08/ralloc.c (packRegisters, rematStr),
12359         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
12360         some cases
12361
12362 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12363
12364         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
12365         * doc/sdccman.lyx: changed from 'article' to 'book'
12366         * doc/Makefile: readded test_suite_spec and cdbfileformat
12367
12368 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
12369
12370         * device/include/stdlib.h: include malloc.h to comply with ANSI
12371         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
12372
12373 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12374
12375         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
12376         * doc/clean.mk: also remove *.out files
12377         * doc/sdccman.lyx: some additions, larger top/bottom margins
12378
12379 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12380
12381         * src/SDCC.y: fixed bug #837365
12382         * support/regression/tests/bitopcse.c
12383         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
12384         a symbol (might be valop instead)
12385         * device/lib/Makefile.in: added errno.c to HC08SOURCES
12386         * device/lib/clean.mk: added hc08 to the cleaning list
12387
12388 2003-11-04  Borut Razem <borut.razem AT siol.net>
12389
12390         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
12391           made 2003-11-04
12392         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
12393           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
12394           malloc is declared in standard stdlib.h
12395
12396 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12397
12398         * device/lib/hc08/Makefile: need to clean .rel not .o files
12399         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
12400
12401 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12402
12403         * src/port.h,
12404         * src/hc08/main.c,
12405         * src/mcs51/main.c,
12406         * src/ds390/main.c,
12407         * src/z80/main.c,
12408         * src/avr/main.c,
12409         * src/pic/main.c,
12410         * src/pic16/main.c,
12411         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
12412         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
12413         tests (which uses the port's oclsExpense function)
12414         * src/SDCC.y,
12415         * src/SDCCast.c,
12416         * src/SDCCicode.c,
12417         * src/hc08/gen.c,
12418         * src/ds390/gen.c,
12419         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
12420
12421 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12422
12423         * src/SDCCcse.c (ifxOptimize),
12424         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
12425         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
12426         deleting the IFX iCode.
12427         * src/hc08/ralloc.c: reduced unneeded slocs
12428         * src/hc08/gen.c: fixed bug in asmopToBoolean
12429
12430 2003-11-04  Borut Razem <borut.razem AT siol.net>
12431
12432         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
12433           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
12434           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
12435           transferred to configure
12436
12437 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
12438
12439         Use headers defined in the C[++] standards:
12440         * sim/ucsim/gui.src/serio.src/fileio.cc
12441         * sim/ucsim/gui.src/serio.src/frontend.cc
12442         * sim/ucsim/gui.src/serio.src/main.cc
12443         * sim/ucsim/gui.src/serio.src/posix_signal.cc
12444         * support/Util/NewAlloc.c
12445         * as/hc08/lklibr.c
12446         * as/mcs51/lklibr.c
12447         * as/z80/aslist.c
12448         * as/z80/assym.c
12449
12450 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12451
12452         * Added MSVC projects for hc08 assembler and linker:
12453         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
12454         /as/hc08/link_hc08.dsp
12455
12456 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
12457
12458         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
12459
12460 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
12461
12462         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
12463
12464 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12465
12466         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
12467
12468 2003-10-31  Borut Razem <borut.razem AT siol.net>
12469
12470         * support/cpp2/cpplib.h,
12471           support/cpp2/cpplib.c,
12472           support/cpp2/cpplex.c,
12473           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
12474           to switch _asm block preprocessing on / off. Default is
12475           #pragma preproc_asm +
12476
12477 2003-10-31  Borut Razem <borut.razem AT siol.net>
12478
12479         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
12480           when outputting comment blocks (when executed with -C option) and
12481           _asm (SDCPP specific) blocks
12482
12483 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12484
12485         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
12486
12487 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
12488
12489         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
12490
12491 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
12492
12493         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
12494         * src/SDCCast.c (decorateType): fixed bug #832664
12495
12496 2003-10-31  Borut Razem <borut.razem AT siol.net>
12497
12498         * support/cpp2/cpplex.c: fixed for SDCPP:
12499           comments(when executed with -C option) and _asm blocks
12500           were included even if they where in skipped #if block.
12501           Applied solution from GCC cpp 3.3.2
12502
12503 2003-10-31  Borut Razem <borut.razem AT siol.net>
12504
12505         * src/SDCC.lex: sdcc now understands both formats:
12506           '# <line_number> <file_name>' and
12507           '#line <line_number> <file_name>'
12508         * support/cpp2/cppmain.c: sdcpp now generates the standard
12509           '# <line_number> <file_name>' instead of former
12510           '#line <line_number> <file_name>'
12511
12512 2003-10-30  Borut Razem <borut.razem AT siol.net>
12513
12514         * support/cpp2/cpphash.h,
12515         * support/cpp2/cpplib.h
12516         * support/cpp2/cpplex.c,
12517         * support/cpp2/cppmain.c,
12518         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
12519
12520 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12521
12522         Fixed a number of problems revealed by bug #827883.
12523         * src/SDCCloop.c (loopInvariants): Spill location of the
12524         result operand should be recomputed if extracted from
12525         a loop. Also, don't extract assignments of an iTemp
12526         from a literal.
12527         * src/SDCCast.c (isConformingBody): loop reversal should
12528         not occur if the control variable is involved with a
12529         relational operator.
12530
12531 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
12532
12533         * .version: bumped to 2.3.6 to reflect the big improvements
12534         made by Erik and Klaus. Thanks!
12535
12536 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
12537
12538         Replaced the livrange code.
12539         * src/SDCClrange.c: added new LR code
12540         * src/SDCCloop.c,
12541         * src/SDCCBBlock.h: removed remainig parts from old LR code
12542         * src/ds390/ralloc.c,
12543         * src/ds390/gen.c: minor fixes to make it work with new code
12544
12545 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12546
12547         * as/hc08/asm.h,
12548         * as/hc08/lkrloc.c,
12549         * src/hc08/gen.c,
12550         * src/hc08/ralloc.c: Fix various warnings related to the hc08
12551         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
12552         (tweaked fix for bug #818696)
12553
12554 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12555
12556         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
12557
12558 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12559
12560         * src/SDCCmain.c,
12561         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
12562         * src/mcs51/gen.c (gencjneshort),
12563         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
12564         more efficient (per Scott Bronson's suggestion)
12565
12566 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12567
12568         Extended the semantics of the critical keyword to include
12569         individual statements. See RFE #827755 and #799831
12570         * src/SDCC.y
12571         * src/SDCCicode.c
12572         * src/SDCCopt.c
12573         * src/SDCCast.c
12574         * support/Util/SDCCerr.c
12575         * support/Util/SDCCerr.h
12576         * src/mcs51/gen.c
12577         * src/ds390/gen.c
12578         * src/hc08/gen.c
12579
12580 2003-10-19  Borut Razem <borut.razem AT siol.net>
12581
12582         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
12583
12584 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12585
12586         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
12587         Fixed bug #818696
12588         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
12589         and predecrement operand is displayed
12590
12591 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
12592
12593         * src/SDCCval.c (valMinus): fixed bug #826041
12594
12595 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12596
12597         Some hc08 related updates that I missed earlier
12598         * sim/ucsim/stypes.h
12599         * support/regression/ports/hc08/spec.mk
12600
12601 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12602
12603         New target "hc08" for the Motorola 68hc08 family of micros
12604
12605         * configure
12606         * configure.in
12607         * Makefile
12608         * src/hc08/*
12609         * src/SDCCmain.c
12610         * src/port.h
12611         * sim/ucsim/hc08.src/*
12612         * sim/ucsim/configure.in
12613         * src/ucsim/configure
12614         * sim/ucsim/packages_in.mk
12615         * as/hc08/*
12616         * as/Makefile
12617         * device/include/mc68hc908qy.h
12618         * device/lib/hc08/*
12619         * device/lib/Makefile.in
12620         * support/regression/ports/hc08/*
12621         * support/regression/Makefile
12622
12623 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12624
12625         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
12626         regression test
12627         * src/ds390/gen.c (genCast): fixed bug #821957
12628
12629 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
12630
12631         * device/lib/logf.c: "fixed" overlay bug
12632         * support/regression/ports/host/spec.mk: added m library
12633         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
12634         * support/regression/tests/float_trans: added (for Eric)
12635
12636 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
12637
12638         * src/mcs51/gen.c (genCpl): fixed bug
12639         http://sf.net/mailarchive/message.php?msg_id=6263915
12640
12641 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
12642
12643         * src/SDCCast.c (decorateType): added extended constant folding
12644         * src/SDCCsymt.c (computeType): cleanup
12645         * src/SDCCval.c (valShift): minor optimization
12646         * support/regression/tests/ast_constant_folding.c: added
12647
12648 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12649
12650         * src/SDCCmain.c: removed some unintended changes
12651
12652 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12653
12654         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
12655         * src/z80/gen.c: fixed part of bug #817589
12656         * src/SDCCsymt.c (checkFunction): fixed bug #817895
12657
12658 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
12659
12660         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
12661         * src/SDCCcflow.c
12662         * src/SDCCcse.c
12663         * src/SDCCdflow.c
12664         * src/SDCClabel.c
12665         * src/SDCClrange.c
12666         * src/SDCCmem.c
12667         * src/SDCCopt.c
12668         * src/SDCCpeeph.c
12669         * src/SDCCset.c
12670         * src/avr/ralloc.c
12671         * src/ds390/ralloc.c
12672         * src/izt/ralloc.c
12673         * src/mcs51/ralloc.c
12674         * src/pic/ralloc.c
12675         * src/pic16/ralloc.c
12676         * src/xa51/ralloc.c
12677         * src/z80/ralloc.c
12678         * src/z80/gen.c: removed unused label "release:"
12679
12680 2003-10-06  Borut Razem <borut.razem AT siol.net>
12681
12682         * src/SDCC.lex: removed definition of unused variables
12683           save_optimize and save_options
12684
12685 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
12686
12687         * clean.mk: removed '=' in "-maxdepth=1"
12688         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
12689         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
12690
12691 2003-10-06  Borut Razem <borut.razem AT siol.net>
12692
12693         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
12694           my_unput() replaced by unput()
12695
12696 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
12697
12698         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
12699         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
12700         type-punned pointer will break strict-aliasing rules"
12701         Old LR behaviour is again default; Klaus' LR can be choosen by
12702         defining the environment variable LRKLAUS
12703         * src/SDCCBBlock.h
12704         * src/SDCCloop.c
12705         * src/SDCClrange.c
12706         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
12707         * clean.mk: fixed removal of files in bin/CVS/
12708         * device/lib/clean.mk: fixed removal of directories small and large
12709         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
12710         * src/SDCCicode.c,
12711         * src/SDCCval.c: removed superflous test for pedantic
12712
12713 2003-10-05  Borut Razem <borut.razem AT siol.net>
12714
12715         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
12716           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
12717           message "unmatched #pragma SAVE and #pragma RESTORE"
12718
12719 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12720
12721         * doc/sdccman.lyx: various additions and updates (interrupts, inline
12722           assembly, critical functions, atomic, nojtbound)
12723
12724 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
12725
12726         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
12727         * src/SDCCBBlock.h
12728         * src/SDCCloop.c
12729         * src/SDCCloop.h
12730         * src/SDCClrange.c
12731
12732 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12733
12734         * src/z80/gen.h,
12735         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
12736         * src/mcs51/gen.h
12737         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
12738         * src/ds390/gen.h
12739         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
12740         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
12741         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
12742
12743 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12744
12745         * src/z80/gen.c (genRet): fixed bug #524753
12746         * src/z80/gen.c (genCast): fixed internal error on cast from
12747         pointer to long
12748         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
12749         fix for bug #477835 to the z80
12750         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
12751         for tracking iCodes in the peephole optimizer for z80
12752
12753 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12754
12755         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
12756         the other part of bug #814548
12757         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
12758
12759 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
12760
12761         * src/SDCCcse.c: fixed part of bug #814548
12762
12763 2003-09-28  Borut Razem <borut.razem AT siol.net>
12764
12765         * src/asm.c: rewrite of printILine() to use temporary file instead
12766           a pipe
12767         * src/xa51/main.c: commented out declaration of int rewinds
12768
12769 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12770
12771         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
12772
12773 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12774
12775         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
12776         * src/asm.c (printILine): Fixed bug #811015
12777
12778 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12779
12780         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
12781         freeing.
12782
12783 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12784
12785         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
12786         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
12787         to correctly handle general case of AOP_PAIRPTR
12788         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
12789
12790 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12791
12792         * src/mcs51/ralloc.c (fillGaps),
12793         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
12794         register positioning bug)
12795
12796 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
12797
12798         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
12799
12800 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12801
12802         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
12803         genCodePointerGet, genGenPointerGet, genFarPointerSet,
12804         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
12805         (ralloc doesn't intentionally do this now, but perhaps later)
12806         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
12807         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
12808         register positioning bugs (Fixed bug #762602 and #795325)
12809         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
12810         (Fixed bug #808779)
12811         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
12812         lines that --i-code-in-asm generates
12813
12814 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12815
12816         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
12817         trying to fclose a FILE* that was already closed.
12818
12819 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12820
12821         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
12822         of const struct should be treated as if const themselves)
12823
12824 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
12825
12826         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
12827
12828 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12829
12830         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
12831         Unix (/n) and DOS (/r/n) line terminations.
12832
12833 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12834
12835         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
12836         bug #613775
12837
12838 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12839
12840         * src/mcs51/gen.c (genFunction, genEndFunction),
12841         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
12842         and restore of EA so that stack offsets to parameters are
12843         correct when using both critical and reentrant/stack-auto.
12844         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
12845         size (can be triggered in error if sloc is shared between
12846         different sized objects)
12847         * device/include/float.h: fixed macros to explicitly use
12848         unsigned long where needed
12849
12850 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
12851
12852         Feature req. 799831: added code to allow nesting of critical functions
12853         * src/mcs51/gen.c (genFunction, genEndFunction)
12854         * src/ds390/gen.c (genFunction, genEndFunction)
12855
12856 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12857
12858         * src/SDCCsymt.c (sclsFromPtr),
12859         * src/SDCCsymt.h,
12860         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
12861         support for standard C idiom of memory mapped variables; for
12862         example, *((xdata int*)0x1234) = 1 is now internally equivalent
12863         to xdata int at 0x1234 tempvar = 1.
12864         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
12865         provided by Akiya ISHIDA
12866
12867 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
12868
12869         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
12870         * src/SDCCval.c (constVal): added reduction from int to char
12871         * src/SDCCval.c (valMult, valDiv): fixed sign handling
12872         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
12873         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
12874         to ignore the sign
12875         * support/regression/tests/shifts.c: fixed
12876
12877 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12878
12879         * src/z80/gen.c (genXor): Fixed bug #805445
12880
12881 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12882
12883         Fixed bug #621531 (const & volatile confusion in the type chain).
12884         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
12885         refer to the const or volatile state of the pointer itself.
12886
12887         * src/SDCCast.c
12888         * src/SDCCglue.c
12889         * src/SDCCicode.c
12890         * src/SDCCsymt.c
12891         * src/SDCCval.c
12892         * src/SDCC.y
12893         * src/SDCCsymt.h
12894         * src/pic/gen.c
12895         * src/pic/ralloc.c
12896         * src/pic16/gen.c
12897         * src/pic16/ralloc.c
12898         * support/regression/tests/const.c
12899
12900 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12901
12902         When checking for duplicated modules, use absolute paths
12903         instead of relative paths.  Files changed:
12904
12905         * as/mcs51/lklib.c
12906         * link/z80/lklib.c
12907
12908 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12909
12910         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
12911
12912 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12913
12914         * device/include/string.h: added size_t typedef, changed
12915         prototypes to use size_t, eliminated separate reentrant and
12916         non-reentrant declarations, added _memmove declaration
12917         * device/lib/_memcpy.c: changed to use size_t instead of int,
12918         changed /4 to >>2 to avoid division library call
12919         * device/lib/_memcmp.c,
12920         * device/lib/_memset.c,
12921         * device/lib/_strncat.c,
12922         * device/lib/_strncpy.c,
12923         * device/lib/_strncmp.c: changed to use size_t instead of int
12924         * device/lib/_memmove.c: new file (fixed bug #772294)
12925         * device/lib/Makefile.in: added _memmove.c
12926         * device/lib/z80/asm_strings.s: fixed bug #772290
12927         * support/regression/tests/bitfields.c: attempt to fix host assertion
12928         failure on amd64-unknown-linux2.2
12929
12930 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12931
12932         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
12933         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
12934         * as/z80/asmain.c (main): fixed bug #801766
12935
12936 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
12937
12938         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
12939         compilers
12940
12941 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12942
12943         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
12944         reported in bug #800609
12945
12946 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
12947
12948         * Top header beautifications in src/pic16 directory:
12949           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
12950           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
12951           pcoderegs.h, ralloc.c, ralloc.h
12952         * main.c: added top header and GPL license notice
12953         * pcode.c: fixed the if-conditional warning
12954
12955 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
12956
12957         * device/lib/_mullong.c: replaced int by short for gcc
12958
12959 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12960
12961         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
12962         and JUMPTABLE iCodes properly now (worked by accident before)
12963         * src/mcs51/gen.c (leftRightUseAcc),
12964         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
12965         iCode properly now. Use getSize instead of nRegs since a & b
12966         aren't part of the nRegs tally.
12967
12968 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
12969
12970         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
12971         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
12972           before instructions that use the _STATUS register
12973
12974 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
12975
12976         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
12977         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
12978         fetching of the pointer
12979         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
12980         copied from genNearPointerSet()
12981         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
12982         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
12983         If they pop r0/r1 they must be called in the opposite order than aopOp().
12984         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
12985         (resp. --stack-auto), prepared for --xstack
12986
12987 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12988
12989         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
12990
12991 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
12992
12993         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
12994         these ports have their own __sdcc_external_start()
12995
12996 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
12997
12998         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
12999         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
13000         type for bits was changed. It resulted in bit variables becoming
13001         global, which is not permitted in PIC 14 assembly output.
13002
13003 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13004
13005         * doc/sdccman.lyx: various additions and updates. Rearranged sections
13006
13007 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13008
13009         Z80 and MCS51 linkers complaint if a public symbol is defined
13010         in more than one library module:
13011
13012         * as/mcs51/lklib.c
13013         * link/z80/lklib.c
13014         * as/mcs51/Makefile.in
13015
13016 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13017
13018         A few small changes that speed up the peephole optimizer.
13019
13020         * src/SDCCpeeph.c
13021
13022 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13023
13024         Try to make the peephole optimizer smarter by maintaining
13025         an association between the assembly source code and the
13026         iCodes that originated them. Put this information to use
13027         with a new peephole rule condition "notVolatile" so that
13028         the rules can be aggressive yet still safe.
13029
13030         * src/SDCCpeeph.c
13031         * src/SDCCpeeph.h
13032         * src/mcs51/gen.c
13033         * src/mcs51/peeph.def
13034
13035 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13036
13037         Fixed bug #741761
13038
13039         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
13040         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
13041         if the left or right operand symbols have the accuse flag set.
13042
13043 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13044
13045         Changed the type of the result of the ! (NOT) operator to char;
13046         previously it returned the same type as the source. This allows
13047         us to eliminate all the genFloatNot functions (all of its target
13048         implementations were very buggy) since !float can use the same
13049         code as !long now.
13050
13051         * src/SDCCicode.c (ast2iCode): ! returns char
13052         * src/mcs51/gen.c (genNot, genNotFloat),
13053         * src/ds390/gen.c (genNot, genNotFloat),
13054         * src/z80/gen.c (genNot, genNotFloat),
13055         * src/pic/gen.c (genNot, genNotFloat),
13056         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
13057
13058 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
13059
13060         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
13061         1. Interrupt would not compile properly. Ensure PCLATH register is saved
13062            during interrupts. Ensure WSAVE is located at a shared bank address.
13063         2. Fixed page selection in some places
13064         3. Fixed BTFSS/C to where necessary use registers directly and not simply
13065            the registers name strings.
13066         4. Fixed "signed / unsigned compare" compiler warnings.
13067         5. The PIC port manages its own allocation of the general purpose
13068            registers, but makes no attempt to reuse them. As a result when
13069            compiling it soon runs out of general purpose registers. Some
13070            additional code was added to the files pcode.c and device.c to walk
13071            through the function call tree and rename the registers so that they
13072            get reused.
13073
13074         * src/pic/device.c
13075         * src/pic/gen.c
13076         * src/pic/glue.c
13077         * src/pic/pcode.c
13078         * src/pic/pcode.h
13079         * src/pic/ralloc.c
13080         * src/pic/ralloc.h
13081         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
13082         genPlus() & genMinus() when the result is the same as left or right
13083
13084 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13085
13086         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
13087
13088 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13089
13090         Made bitfield a distinct type from bit so that bitfields
13091         convert as per ANSI C and bits retain their traditional
13092         boolean style behaviour. Implemented bitfield support in
13093         the z80 port.
13094
13095         * src/SDCCsymt.h,
13096         * src/SDCCsymt.c,
13097         * src/SDCCast.c,
13098         * src/cdbFile.c,
13099         * src/mcs51/gen.c,
13100         * src/ds390/gen.c: bit v bitfield split
13101         * src/z80/gen.c: New support for bitfields
13102         * support/regression/tests/bitfields.c: reenabled z80,
13103         added more tests
13104
13105 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13106
13107         Rules 246.x, 247.x relate to bitfields, the others speed up
13108         access to xdata mapped I/O devices.
13109
13110         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
13111
13112 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13113
13114         Cleaned up genPackBits and genUnpackBits and added two helper
13115         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
13116         for literal assignments in genPackBits (thanks to Frieder for
13117         reminding me).
13118
13119         * src/mcs51/gen.c
13120         * src/ds390/gen.c
13121
13122 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13123
13124         Fixed bug #748310 (pointer to function type mishandled when the
13125         function name is omitted). Also fixed a SIGSEGV when a function
13126         attribute (reentrant, etc) is used on a non-function or on a
13127         function but misplaced before the parameter list.
13128
13129         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
13130         bug #748310
13131         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
13132         * support/Util/SDCCerr.h,
13133         * support/Util/SDCCerr.c: Added func attr misuse error msg
13134
13135 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
13136
13137         Fixed bug #787649 by anonymous
13138         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
13139         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
13140
13141 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13142
13143         Fixed numerous bitfield problems.
13144
13145         * src/SDCC.y: More bitfield related error checking
13146         * src/SDCCsymt.h,
13147         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
13148         * support/Util/SDCCerr.h,
13149         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
13150         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
13151         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
13152         * support/regression/tests/bitfields.c: tests added
13153
13154 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13155
13156         Made the constant following the "interrupt" keyword optional. If
13157         omitted, the function will not automatically be given an entry
13158         in the interrupt vector table (similar to #pragma NOIV, but
13159         less syntacticly kludgy). The interrupt number is also now
13160         range checked. Also fixed a bug in the high order bit example
13161         in the manual.
13162
13163         * src/SDCC.y
13164         * src/SDCCmem.c
13165         * src/SDCCglue.c
13166         * src/SDCCsymt.h
13167         * support/Util/SDCCerr.c
13168         * support/Util/SDCCerr.h
13169         * doc/sdccman.lyx
13170
13171 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
13172
13173         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
13174         * src/SDCCicode.c (operandOperation): rewritten some ops
13175         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
13176         * src/SDCCsymt.c (computeType): literals are handled the same way as any
13177         other type
13178         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
13179         be re-activated by defining REDUCE_LITERALS)
13180         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
13181         unsigned, but are signed by default
13182         * src/SDCCval.c (constVal): rearranged
13183         * src/SDCCval.c (valMod): preliminary fix
13184         * src/SDCCval.c (valCastLiteral): use TYPE_* types
13185         * support/regression/literalop.c: added, work in progress
13186
13187 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13188
13189         Generate warnings for useless declarations like "char data;"
13190         that don't do what new users expect.
13191
13192         * src/SDCC.y
13193         * support/Util/SDCCerr.h
13194         * support/Util/SDCCerr.c
13195
13196 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
13197
13198         * src/SDCCval.c (valMult): fix overflow detection of negative int
13199
13200 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13201
13202         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
13203
13204         Changes to support big endian targets:
13205
13206         * src/ports.h
13207         * src/SDCCglue.c
13208         * src/avr/main.c
13209         * src/ds390/main.c
13210         * src/izt/i186.c
13211         * src/mcs51/main.c
13212         * src/pic/main.c
13213         * src/pic16/main.c
13214         * src/xa51/main.c
13215         * src/z80/main.c
13216
13217 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
13218
13219         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
13220         * device/lib/time.c: fixed warning "integer overflow in expression"
13221
13222 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
13223
13224         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
13225         * src/SDCCval.c (constVal): changed default to signed; hex and octal
13226         constants are unsigned; added recognition of "u" flag for unsigned
13227         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
13228         * src/SDCCval.c (valDiv, valMod): fixed signdness
13229         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
13230         signedness of modulo, left and right shift
13231         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
13232         * support/Util/SDCCerr.h: added warning W_INT_OVL
13233         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
13234         * src/SDCCast.c (ast_print): improved output of constants
13235
13236 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13237
13238         Fixed some warnings when building with MSVC:
13239
13240         * as/mcs51/asdata.c
13241         * as/z80/asdata.c
13242         * as/mcs51/asm.h
13243         * as/z80/asm.h
13244         * link/z80/aslink.h
13245         * link/z80/lkdata.c
13246         * link/z80/lkeval.c
13247         * link/z80/lkgb.c
13248         * link/z80/lkihx.c
13249         * link/z80/lks19.c
13250         * link/z80/lksym.c
13251         * support/cpp2/cpplib.c
13252         * src/ds390/gen.c
13253         * src/mcs51/gen.c
13254
13255 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
13256
13257         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
13258
13259 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13260
13261         * support/librarian/clean.mk: Do not remove Makefile.
13262         * support/librarian/Makefile: added.
13263
13264 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13265
13266         Added librarian to MSVC build:
13267         * all.dsp
13268         * sdcc.dsw
13269         * support/librarian/librarian.dsp
13270
13271         'configure' not needed for librarian, removed:
13272         * support/librarian/configure
13273         * support/librarian/configure.in
13274         * support/librarian/config_in.h
13275         * support/librarian/Makefile.in
13276
13277         Hopefully these ones built the librarian and the rest of sdcc properly:
13278         * Makefile
13279         * Makefile.common.in
13280
13281         Messed up 'configure', so revert to previous version:
13282         * configure
13283         * configure.in
13284
13285 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
13286
13287         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
13288         there, while the mantissa of a double is "only" 53 bits wide.
13289
13290 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13291
13292         Adding sdcclib to the build.  MSVC project coming soon.
13293         Files added/changed:
13294
13295         * support/librarian/clean.mk
13296         * support/librarian/configure
13297         * support/librarian/configure.in
13298         * support/librarian/config_in.h
13299         * support/librarian/Makefile.bcc
13300         * support/librarian/Makefile.in
13301         * support/librarian/sdcclib.c
13302         * Makefile.bcc
13303         * Makefile
13304         * Makefile.common.in
13305         * configure
13306         * configure.in
13307
13308 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13309
13310         Linker now complaints if linked modules have conflicting options, for
13311         example, one compiled using --model-large and another one compiled with
13312         --model-small.  The following files were modified:
13313
13314         * as/mcs51/asdata.c
13315         * as/mcs51/aslink.h
13316         * as/mcs51/asm.h
13317         * as/mcs51/asmain.c
13318         * as/mcs51/asout.c
13319         * as/mcs51/i51pst.c
13320         * as/mcs51/lkdata.c
13321         * as/mcs51/lklibr.c
13322         * as/mcs51/lkmain.c
13323         * as/z80/asdata.c
13324         * as/z80/asm.h
13325         * as/z80/asmain.c
13326         * as/z80/asout.c
13327         * as/z80/z80pst.c
13328         * link/z80/aslink.h
13329         * link/z80/lkdata.c
13330         * link/z80/lklibr.c
13331         * link/z80/lkmain.c
13332         * src/SDCCglue.c
13333
13334 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13335
13336         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
13337         as/mcs51/lklibr.c: Generate a warning when a library is not found.
13338
13339 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
13340
13341         * src/z80/mappings.i: fix _mul[us][int,long] entries
13342
13343 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13344
13345         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
13346
13347 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
13348
13349         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
13350         * support/regression/tests/bitopcse.c: added
13351         fixed warning:
13352         * src/avr/gen.c:
13353         * src/pic/gen.c:
13354         * src/pic16/gen.c:
13355         * src/z80/gen.c:
13356         * src/xa51/gen.c:
13357
13358 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13359
13360         added support for new library format to z80, gbz80 linkers:
13361         *link/z80/aslink.h
13362         *link/z80/lklex.c
13363         *link/z80/lklib.c
13364         *link/z80/lklist.c
13365
13366 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
13367
13368         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
13369         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
13370
13371 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
13372
13373         added DUMMY_READ_VOLATILE:
13374         * src/SDCC.y:
13375         * src/avr/gen.c:
13376         * src/xa51/gen.c:
13377         * src/z80/gen.c:
13378         * src/pic/gen.c:
13379         * src/pic16/gen.c:
13380         * src/mcs51/gen.c:
13381         * src/ds390/gen.c:
13382         * src/SDCCcse.c (algebraicOpts): many improvements
13383         * src/SDCCcse.h: removed algebraicOpts()
13384         * src/SDCCicode.c (picDummyRead): added
13385
13386 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13387
13388         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
13389         "Insufficient space in data memory".
13390
13391 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13392
13393         * src/mcs51/gen.c: fixed bug #771358
13394         * src/z80/gen.c: fixed bug #759087
13395
13396 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
13397
13398         * src/pic16/glue.c: minor cleanup by Vangelis
13399
13400 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13401
13402         * device/include/regc515c.h: fixed #758477
13403         * device/lib/_gptrget.c: saving some cycles in generic pointer get
13404         * device/lib/_gptrput.c: saved a few bytes
13405         * my tab spacing is 8, yours too?)
13406         * device/lib/_ser.c: process RX bytes earlier than TX bytes
13407         * device/lib/serial.c: process RX bytes earlier than TX bytes
13408         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
13409
13410 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13411
13412         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
13413
13414 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13415
13416     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
13417
13418 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
13419
13420         * device/lib/Makefile.in: bad fix, reverted to 1.43
13421
13422 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
13423
13424         * device/lib/Makefile.in: added missing z80 object files
13425
13426 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
13427
13428         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
13429         pic16 progress by Vangelis:
13430         * src/SDCCglobl.h:
13431         * src/SDCCmain.c:
13432         * src/pic/Makefile:
13433         * src/pic:
13434         * pic/Makefile:
13435         * pic16/device.c:
13436         * pic16/device.h:
13437         * pic16/gen.c:
13438         * pic16/gen.h:
13439         * pic16/genarith.c:
13440         * pic16/glue.c:
13441         * pic16/main.c:
13442         * pic16/pcode.c:
13443         * pic16/pcode.h:
13444         * pic16/pcodepeep.c:
13445         * pic16/peeph.def:
13446
13447 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13448
13449     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
13450
13451 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13452
13453     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
13454     added gbz80 build to MSVC project.
13455     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
13456     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
13457     from 8051 stuff and setup so it links using a .lnk file.
13458
13459 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13460
13461     * support/librarian/sdcclib.c: sdcc librarian.
13462     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
13463     with sdcclib.
13464
13465 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13466
13467     * as/mcs51/lkmain.c: properly handle extensions in function afile.
13468
13469 2003-07-02  Borut Razem <borut.razem AT siol.net>
13470
13471         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
13472         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
13473         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
13474         src/xa51/main.c, src/z80/main.c:
13475         virtualization of glue() function: each port has it's own glue function,
13476         which is accessed by do_glue function pointer in PORT.general structure
13477
13478 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
13479
13480         * DS800C400 fun, improved ROM interface and tinibios.
13481
13482 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
13483
13484         * More support for DS80C400. Now includes beginning of interface to ROM.
13485
13486 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
13487
13488         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
13489
13490 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13491
13492         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
13493
13494 2003-06-19  Borut Razem <borut.razem AT siol.net>
13495
13496         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
13497
13498 2003-06-19  Borut Razem <borut.razem AT siol.net>
13499
13500         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
13501         fixed Z80 port - crt0.o: cannot open.
13502
13503 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
13504
13505         * support/Util/MySystem.c (merge_command): revert bad fix
13506
13507 2003-06-18  Borut Razem <borut.razem AT siol.net>
13508
13509         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
13510
13511 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13512
13513         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
13514         option --use-stdout sends errors to stdout instead of stderr.
13515
13516 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
13517
13518         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
13519
13520 2003-06-15  Borut Razem <borut.razem AT siol.net>
13521
13522         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
13523         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
13524         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
13525         fixed width array of pointers replaced with sets;
13526         multiple include and lib paths ared transferred to preprocessor and linker
13527         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
13528         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
13529         fixed width array of pointers
13530         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
13531         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
13532         fixupPath(), getPathDifference()
13533         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
13534         fixed width array of pointers
13535
13536 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
13537
13538         * src/pic16/ralloc.c: fix warnings
13539         * src/pic16/pcode.c: fix warning
13540
13541 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
13542
13543          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
13544         know all the details, but essentially this set of changes enable
13545         the pic16 port to generate movff instructions and generate assembler
13546         directives,
13547         * src/SDCCmain.c:
13548         * src/pic16/gen.c:
13549         * src/pic16/glue.c:
13550         * src/pic16/pcode.c:
13551         * src/pic16/device.c:
13552         * src/pic16/main.c:
13553         * src/pic16/pcode.h:
13554         * src/pic16/pcoderegs.c:
13555         * src/pic16/ralloc.c:
13556         * src/pic16/ralloc.h:
13557
13558 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13559
13560         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
13561         added option --vc, so sdcc errors and warnings are compatible with
13562         Microsoft Visual Studio.
13563
13564 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13565
13566         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
13567           device/lib/libfloat.lib: added atof function.
13568
13569 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
13570
13571         * doc/sdccman.lyx: updated to Lyx 1.3
13572         * doc/cdbfileformat.lyx: updated to Lyx 1.3
13573         * doc/test_suite_spec.lyx: updated to Lyx 1.3
13574         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
13575
13576 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
13577
13578         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
13579
13580 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13581
13582         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
13583           additions to the "related tools/documentation" section
13584
13585 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
13586
13587         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
13588
13589 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
13590
13591         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
13592         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
13593
13594 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
13595
13596         * doc/sdccman.lyx: fix double dash and other minor things
13597         * doc/Makefile: fix double dash
13598
13599 2003-05-28  Karl Bongers(patches from Martin Helmling)
13600         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
13601           condition and ignore commands.
13602
13603 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13604
13605         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
13606           is in parts still quite out of date, I did changes as far as I felt makes sense
13607           for a non-native english speaker.
13608           Please feel free to add to the manual or to correct my changes.
13609         * doc/Makefile: undid touching the date of intermediate tex files.
13610
13611 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13612
13613         * doc/sdccman.lyx: Manual has an index now
13614
13615 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
13616
13617         Finalize muluint/mulsint and mululong/mulslong merging:
13618         * device/lib/_mulint.c
13619         * device/lib/_mullong.c
13620         * device/lib/gbz80/mul.s
13621         * device/lib/gbz80/stubs.s
13622         * device/lib/z80/mul.s
13623         * device/lib/z80/stubs.s
13624         * src/SDCCsymt.c (initCSupport)
13625
13626 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13627
13628         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
13629         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
13630           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
13631           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
13632           instead of /Zm500.
13633
13634 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13635
13636         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
13637           the regression tests I'm not brave enough to enable 245.b, 245.c
13638         * doc/sdccman.lyx: added latex preamble for hyperref package.
13639           Using pdflatex this will give you a hyperlinked pdf file with
13640           bookmarks. (prepend '%' before /usepackage if this breaks something)
13641
13642 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13643
13644          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
13645
13646 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
13647
13648         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
13649
13650 2003-05-21    <johan AT balder>
13651
13652         * src/SDCCglue.c (printIval): fixed bug #739934
13653
13654 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
13655
13656         Applied patch from bug 737905 (renamed yylineo to mylineno):
13657         * src/altlex.c
13658         * src/SDCCast.c
13659         * src/SDCglobl.h
13660         * src/SDCC.lex
13661         * src/SDCCsymt.c
13662         * src/SDCCval.c
13663         * src/pic16/pcode.c: Cleaned warnings
13664         * src/pic16/pcodeflow.c: Cleaned warnings
13665         * src/pic16/pcoderegs.c: Cleaned warnings
13666
13667 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
13668
13669         * src/pic16/pcode.c: Cleaned warnings
13670         * src/pic16/pcodepeep.c: Cleaned warnings
13671         * src/pic16/ralloc.c: Cleaned warnings
13672
13673 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
13674
13675         * doc/sdccman.lyx: fixed bug 739745
13676         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
13677
13678 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
13679
13680         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
13681         it can be defined with CFLAGS when running configure
13682         * src/SDCCmain.c: fixed compiling + linking with object files
13683
13684 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
13685
13686         * configure.in: configure for pic16 port,
13687             added --disable-pic16-port
13688         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
13689         * src/SDCCmain.c: linkOptions is changed to set *,
13690             added if/endif conditional macros to remove options help
13691             messages from optionsTable when a port is not configured, added
13692             support for the PIc16 port in the ports table, when executing
13693             the compiler with no port specified on command line, a default
13694             port is selected with the new macro DEFAULT_PORT which is
13695             defined in port.h, in setDefaultOptions() linkOptions is removed
13696             from initialization assignment, since now it is a set,
13697             parseCmdLine uses setParseWithComma for linkOptions, in
13698             linkEdit() linkOptions are accessed with new function indexSet()
13699             which returns the i'th item of a set variable. See SDCCset.c, in
13700             linkEdit() when calling buildCmdLine(), added linkOptions as
13701             last argument. Now users can pass arguments to gplink via the
13702             -Wl option, main() uses pic16glue() to glue up pic16 programs
13703         * src/SDCCpeeph.c: various changes to support pic16
13704         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
13705             return the i'th item of the set
13706         * src/SDCCset.h: added function prototype for indexSet()
13707         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
13708         * src/clean.mk: added pic16 in CLEANALLPORTS variable
13709         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
13710             added macro DEFAULT_PORT
13711         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
13712         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
13713             generated
13714         * src/pic16/glue.c: commented out some error producing lines
13715         * src/pic16/main.c: __config directives are commented out to stop
13716             gpasm complaining and test the linkage with gplink, _linkCmd and
13717             _asmCmd changed to be more gplink and gpasm friendly
13718         * src/pic16/peeph.def: peep rule 3 is commented out, since it
13719             produced an error when parsed, peep rule 12 is added to utilize
13720             movff, but it is commented out since the pCode does not support
13721             yet a command with 2 address arguments
13722
13723 2003-05-18    <johan AT balder>
13724
13725         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
13726         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
13727 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
13728
13729         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
13730   Added feature to script commands from file.
13731
13732 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
13733
13734         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
13735         * src/SDCCutil.c: include ctype.h for win32
13736
13737 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
13738
13739         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
13740
13741 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
13742
13743         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
13744   Fixed so you can set breakpoints prior to run, run does not stop
13745   on entry now.  Add tbreak.  Other enhancements and fixes for use
13746   with ddd.
13747
13748 2003-05-12  Borut Razem <borut.razem AT siol.net>
13749
13750         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
13751
13752 2003-05-11  Borut Razem <borut.razem AT siol.net>
13753
13754         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
13755         the path of bin directory, so that PATH is the only env. variable, which has to be set
13756         in case of standard installation.
13757         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
13758         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
13759         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
13760
13761 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
13762
13763         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
13764         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
13765         temp files are in the port dir; clean the gen/test directory when
13766         generating new test.c
13767         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
13768         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
13769         * support/regression/tests/zeropad.c: added
13770
13771 2003-05-09    <johan AT balder>
13772
13773         * src/SDCCglue.c: fixed bug #597940
13774
13775 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
13776
13777         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
13778   cache sfr, optimize next,step, fix off by one sourceline,
13779   support ddd list function.
13780         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
13781
13782 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
13783
13784         * support/regression/HTMLgen.py: added compare_s2f()
13785         * support/regression/Makefile: redo 1.27
13786         * support/regression/generate-cases.py: redo 1.5
13787
13788 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
13789
13790         * support/regression/tests/float.c: workaround 33 bit hex constant
13791         * support/regression/tests/simplefloat.c: fix division for host
13792
13793 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
13794
13795         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
13796         that tame's the PIC's over-aggressive optimizer.
13797
13798 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13799
13800          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
13801          support for MSVC.
13802
13803 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
13804
13805         Initial support for DS80C400. "Hello world" runs on TINIm400
13806         (with polled I/O).
13807
13808 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
13809
13810          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
13811          * Some notes on ddd usage added in debugger/README
13812          Martin Helmling adding more features and fixes for ddd GUI debugger.
13813          Code added for nexti, stepi, up, down, and other adjustments.
13814
13815 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
13816
13817         * src/pic/pCodepeep.c non-wildcard asmops are now handled
13818         * src/pic/peeph.def Added two rules to optimize carry manipulation
13819         * src/pic/* removed debug printfs
13820
13821 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
13822
13823         * debugger/mcs51/cmd.c: added header newalloc.h
13824
13825 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
13826
13827         * as/Makefile: new EXEEXT
13828         * as/z80/Makefile: remove trailing slash of BUILDIR
13829         * as/z80/clean.mk: new EXEEXT
13830         * Makefile.common.in: add to CFLAGS (and others), don't replace it
13831         * support/cpp2/Makefile.in: new EXEEXT
13832         * src/pic/glue.c (pic14emitRegularMap): fixed warning
13833
13834 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
13835
13836         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
13837         EXEEXT was introduced to fix all related problems with targets
13838         "clean", "install" and "uninstall"; a couple of further flaws
13839         especially with "clean" have been fixed too
13840         * as/mcs51/Makefile.in
13841         * as/mcs51/clean.mk
13842         * as/z80/Makefile
13843         * Makefile
13844         * clean.mk
13845         * debugger/mcs51/Makefile.in
13846         * debugger/mcs51/clean.mk
13847         * link/z80/Makefile
13848         * link/z80/Makefile.in
13849         * link/z80/clean.mk
13850         * link/Makefile
13851         * packihx/Makefile.in
13852         * packihx/clean.mk
13853         * sim/ucsim/Makefile
13854         * sim/ucsim/clean.mk
13855         * sim/ucsim/avr.src/Makefile.in
13856         * sim/ucsim/avr.src/clean.mk
13857         * sim/ucsim/s51.src/Makefile.in
13858         * sim/ucsim/s51.src/clean.mk
13859         * sim/ucsim/xa.src/Makefile.in
13860         * sim/ucsim/xa.src/clean.mk
13861         * sim/ucsim/z80.src/Makefile.in
13862         * sim/ucsim/z80.src/clean.mk
13863         * sim/ucsim/main_in.mk
13864         * sim/ucsim/packages_in.mk
13865         * sim/ucsim/gui.src/Makefile.in
13866         * sim/ucsim/gui.src/serio.src/Makefile.in
13867         * sim/ucsim/gui.src/serio.src/clean.mk
13868         * src/Makefile.in
13869         * src/clean.mk
13870         * support/cpp2/Makefile.in
13871         * support/cpp2/clean.mk
13872         * support/makebin/Makefile
13873         * support/makebin/clean.mk
13874         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
13875         * doc/sdccman.lyx: --program-suffix no longer needed
13876
13877 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
13878
13879          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
13880          Martin Helmling added support for ddd GUI debugger.
13881          Code added to display assembly, set variables, and other commands
13882          to interface to ddd.
13883
13884 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
13885
13886         * as/Makefile: fix target clean
13887         * as/clean.mk: fix target clean
13888         * as/z80/clean.mk: fix target clean
13889
13890 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
13891
13892         * Makefile.common.in: added  AT EXEEXT AT
13893         * configure.in: removed all mingw32 stuff
13894         * configure: rebuilt from configure.in
13895         * doc/sdccman.lyx: updated section "installation"
13896         * support/scripts/sdcc_mingw32: adapted to configure
13897         * support/scripts/sdcc_cygwin_mingw32: added
13898
13899 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
13900
13901         * src/pic Added object file support for the PIC port
13902         * src/pic Applied patch from Craig Franklin (this started the object file support)
13903         * src/regression Updated the PIC regression tests for object files
13904
13905 2003-04-20  Borut Razem <borut.razem AT siol.net>
13906
13907         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
13908           lklex.c: In function `getfid':
13909           lklex.c:203: warning: array subscript has type `char'
13910         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
13911           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
13912         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
13913           stack handling macros
13914
13915 2003-04-19  Borut Razem <borut.razem AT siol.net>
13916
13917         * "handling space characters in file path" task:
13918         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
13919         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
13920         * support/Util/MySystem.h: make it self-sufficient
13921         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
13922           src/z80/main.c, sdcc/as/mcs51/lklex.c:
13923           handling space characters in file path
13924         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
13925           (it will be used by assemblers, which have their own includes, e.g. gpasm)
13926         * support/Util/MySystem.c: handling space characters in executable's path
13927
13928 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
13929
13930         * as/z80/Makefile: fix permanent rebuild of z80
13931         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
13932         * support/regression/tests/bitfields.c: added Johan's bitfields.c
13933
13934 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
13935
13936         * src/SDCCopt.c: add special case optimization to replace modulo by
13937           a power of two with a bitwise AND.
13938
13939 2003-04-18    <johan AT balder>
13940
13941         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
13942
13943 2003-04-17    <johan AT balder>
13944
13945         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
13946         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
13947
13948 2003-04-13  Borut Razem <borut.razem AT siol.net>
13949
13950         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
13951         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
13952           fixed mingw problem in adl_NORMALIZE_PATH
13953
13954 2003-04-12  Borut Razem <borut.razem AT siol.net>
13955
13956         * fixed "#pragma SAVE/RESTORE can not be nested":
13957         * src/SDCC.lex: reworked pragma handling functions
13958         * sdcc/src/SDCCglobl.h: reworked stack handling macros
13959         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
13960
13961 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
13962
13963         * src/SDCCutil.c (pathEquivalent): defined but not used
13964         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
13965         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
13966         * configure: rebuilt from configure.in
13967         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
13968         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
13969         * device/include/Makefile.in: replace sdcc_datadir
13970         * device/lib/Makefile.in: replace sdcc_datadir
13971         * Makefile.common.in: add LDFLAGS from configure
13972         * packihx/Makefile.in: use LDFLAGS
13973         * src/Makefile.in: use LDFLAGS
13974         * support/cpp2/Makefile.in: add LDFLAGS from configure
13975         * support/makebin/Makefile: use LDFLAGS
13976         * .version: bumped version number to 2.3.5
13977
13978 2003-04-12  Borut Razem <borut.razem AT siol.net>
13979
13980         * completed "different paths" task:
13981         * src/SDCCmacro.c: fixed bug in handling quotes
13982         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
13983         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
13984
13985 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
13986
13987         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
13988
13989 2003-04-11 kevin Vigor <kevin AT vigor.nu>
13990
13991         * ds390/gen.c ds390/peeph.def: fix bug 706781
13992
13993 2003-04-11  Borut Razem <borut.razem AT siol.net>
13994
13995         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
13996
13997 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
13998
13999         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
14000         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
14001          set - this bit used to not be set...).
14002         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
14003           bad code in PIC Port
14004         * src/regression/and2.c added to test bug 609268
14005         * src/regression/Makefile added and2.c to regression test
14006
14007
14008 2003-04-08    <johan AT CP255758-A>
14009
14010         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
14011         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
14012         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
14013
14014 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
14015
14016         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
14017         fix bug #487815
14018         * support/cpp2/Makefile.in: fix bug #487815
14019         * configure: rebuilt from configure.in
14020         * Makefile.common.in: docdir changed, new path suffixes
14021         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
14022         * sdcc_vc_in.h: reflect changes from sdccconf.h
14023         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
14024         * src/SDCCutil.h: remove BINDIR hack
14025         * doc/sdccman.lyx: update new path hierarchy
14026
14027 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
14028
14029         * src/SDCCpeeph.c: added okToRemoveSLOC test
14030
14031 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
14032
14033         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
14034
14035 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
14036
14037         * src/SDCCpeeph.c: added labelIsReturnOnly test
14038         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
14039
14040 2003-04-05    <johan AT balder>
14041
14042         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
14043         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
14044         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
14045         * src/SDCCast.c: fixed a warning
14046         * src/SDCCast.h: fixed a warning
14047         * src/SDCCicode.c (operandFromAst): fixed a warning
14048
14049 2003-04-04    <johan AT balder>
14050
14051         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
14052         * src/SDCCast.c (decorateType): fixed bug #715076
14053         * src/SDCC.y: fixed bug #702907
14054
14055 2003-04-03    <johan AT balder>
14056
14057         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
14058         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
14059         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
14060         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
14061         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
14062
14063 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
14064
14065         * _decdptr.c: fix return values
14066         * _gptrget.c: fix return values
14067         * _gptrgetc.c: fix return values
14068         * _gptrput.c: fix return values
14069         * _mulint.c: fix return values
14070         * as/z80/Makefile: fix 'make -j' problem
14071
14072 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
14073
14074         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
14075         * configure.in: big cleanup, updated to autoconf 2.5x
14076         * configure: rebuilt from configure.in
14077         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
14078         * sdcc_vc_in.h: reflect changes from sdccconf.h
14079         * doc/Makefile: fixed a flaw in "make install"
14080
14081 2003-04-02    <johan AT balder>
14082
14083         * src/ds390/gen.c (genCmp): no comments
14084         * src/mcs51/gen.c (genCmp): no comments
14085         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
14086         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
14087
14088 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
14089
14090         * support/regression/generate-cases.py: place generated file in given sub directory
14091         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
14092         * support/regression/Makefile: improvements for 'make -j';
14093         side effect: it's simpler and faster now
14094
14095 2003-03-31  Borut Razem <borut.razem AT siol.net>
14096
14097         * src/z80/main.c: link-{port} and as-{port} defined without path
14098         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
14099
14100 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
14101
14102         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
14103
14104 2003-03-30  Borut Razem <borut.razem AT siol.net>
14105
14106         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
14107           changed type of list parameter to set
14108         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
14109         * src/port.h: changed type of do_assemble() parameter to set
14110         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
14111           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
14112           definition of "cppoutfilename" macro with NULL value in preProcess()
14113         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
14114         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
14115         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
14116           replaced with set *binPathSet
14117         * shash_add() deallocates the item, if allready exsists, before adding the new one
14118         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
14119
14120 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
14121
14122         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
14123           a nested for loop bug in the PIC port
14124         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
14125           for loops
14126
14127 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
14128
14129         * support/Util/dbuf.h: remove C++ stuff to make it portable
14130
14131 2003-03-28  Borut Razem <borut.razem AT siol.net>
14132
14133         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
14134           literal strings in stringLiteral()
14135         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
14136         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
14137           to the project
14138
14139 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
14140
14141         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
14142
14143 2003-03-26    <johan AT balder>
14144
14145         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
14146         * src/ds390/gen.c (saveRegisters): catched symbol abuse
14147         * src/SDCCast.c (decorateType): fixed " -v < 3"
14148
14149 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
14150
14151         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
14152         Added Lenny Story's debug infrastructure changes:
14153         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
14154         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
14155         * src/cdbFile.c: added
14156         * src/SDCCdebug.c: added
14157         * src/SDCCdebug.h: added
14158         * src/SDCCast.c (createFunction)
14159         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
14160         * src/SDCCmain.c (parseCmdLine, main)
14161         * src/SDCCmem.c (redoStackOffsets)
14162         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
14163         * src/SDCCsymt.h
14164         * src/common.h
14165         * src/avr/gen.c (genAVRCode)
14166         * src/ds390/gen.c (gen390Code)
14167         * src/mcs51/gen.c (gen51Code)
14168         * src/pic/gen.c (genpic14Code)
14169         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
14170         * src/xa51/gen.c (genXA51Code)
14171         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
14172
14173 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14174
14175         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
14176         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
14177
14178 2003-03-22    <johan AT balder>
14179
14180         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
14181
14182 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
14183
14184         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
14185         * doc/cdbfileformat.lyx: added, written by Lenny Story
14186         * doc/Makefile: added cdbfileformat.lyx
14187         * doc/clean.mk: added cdbfileformat.lyx
14188
14189 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
14190
14191         * src/mcs51/peeph.def: fix bug #705773
14192
14193 2003-03-20    <johan AT balder>
14194
14195         An sfr/sbit can have an "at #" AND an initializer
14196         * src/SDCCsymt.c (checkSClass):
14197         * src/SDCCmem.c (allocGlobal):
14198         * src/SDCCmem.c (allocLocal):
14199         * src/SDCCast.c (createBlock):
14200
14201 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
14202
14203         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
14204
14205 2003-03-16    <johan AT balder>
14206
14207         Undid the hackup of const and volatile, the problem is much bigger
14208         * src/SDCC.y:1.65
14209         * src/SDCCast.c:1.171
14210         * src/SDCCglue.c:1.138
14211         * src/SDCCicode.c:1.146
14212         * src/SDCCsymt.c:1.150
14213         * src/SDCCval.c:1.65
14214
14215 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
14216
14217         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
14218         * src/ds390/gen.c (genAddrOf): fixed bug #704087
14219
14220 2003-03-13    <johan AT balder>
14221
14222         Hackup const and volatile modifiers in type chains a bit:
14223         * src/SDCC.y:1.63
14224         * src/SDCCast.c:1.169
14225         * src/SDCCglue.c:1.136
14226         * src/SDCCicode.c:1.143
14227         * src/SDCCsymt.c1.146
14228         * src/SDCCsymt.h1.59
14229         * src/SDCCval.c:1.63
14230
14231 2003-03-12    <johan AT balder>
14232
14233         * src/SDCCBBlock.h: more LRH debugging junk
14234         * src/SDCCcflow.h: more LRH debugging junk
14235         * src/SDCCloop.c: more LRH debugging junk
14236         * src/SDCC.y (struct_declaration): fixed bug #697590
14237         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
14238         * src/ds390/gen.c (aopForRemat): fixed bug #700031
14239         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
14240
14241 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14242         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
14243         test function names must now match exactly).
14244         * src/SDCCcse.c: added special case in findCheaperOp to allow
14245         extending a short integer. Makes less awful code for bug 700121 test case.
14246
14247 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14248
14249         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
14250         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
14251
14252 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14253
14254         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
14255         actually called (operandsNotEqual() was called for all
14256         operandsNotEqualX tests).
14257
14258 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14259
14260         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
14261         with shorter literals. Fixes bug 700121.
14262
14263 2003-03-11    <johan AT balder>
14264
14265         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
14266
14267 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
14268
14269         * src/SDCCloop.c (mergeRegions): an evil beast is dead
14270         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
14271
14272 2003-03-10  Borut Razem <borut.razem AT siol.net>
14273
14274         * src/SDCCmain.c: pipe preprocessor's output
14275         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
14276         * sdcc_vc_in.h: define pclose as _pclose for WIN32
14277         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
14278         which closes all pipes in pipeSet set
14279         * src/SDCCset.c: free deleted item in function deleteSetItem()
14280         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
14281         moved from z80 to src subproject
14282         * .version: increased version number to 2.3.4
14283
14284 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
14285
14286         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
14287         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
14288         * support/regression/ports/xa51/spec.mk: fix typo
14289
14290 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
14291
14292         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
14293
14294 2003-03-09  Borut Razem <borut.razem AT siol.net>
14295
14296         * src/SDCCmain.c: pipe preprocessor's output
14297         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
14298         * sdcc_vc_in.h: define pclose as _pclose for WIN32
14299         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
14300         which closes all pipes in pipeSet set
14301         * src/SDCCset.c: free deleted item in function deleteSetItem()
14302         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
14303         moved from z80 to src subproject
14304
14305 2003-03-09  Borut Razem <borut.razem AT siol.net>
14306
14307         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
14308         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
14309         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
14310         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
14311         * src/SDCCglobl.h: unification of WIN32 native definitions
14312
14313 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14314
14315         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
14316
14317 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
14318
14319         * src/configure.in:   check for endianess (even while cross-compiling)
14320         * src/configure:      check for endianess (even while cross-compiling)
14321         * src/configure_in.h: check for endianess (even while cross-compiling)
14322         * src/avr/gen.c:        remove old endianess stuff
14323         * src/mcs51/gen.c:      remove old endianess stuff
14324         * src/ds390/gen.c:      remove old endianess stuff
14325         * src/pic/gen.c:        remove old endianess stuff
14326         * src/pic/genarith.c:   remove old endianess stuff
14327         * src/pic/glue.c:       fix endianess check
14328         * src/pic16/gen.c:      remove old endianess stuff
14329         * src/pic16/genarith.c: remove old endianess stuff
14330         * src/pic16/glue.c:     fix endianess check
14331         * src/xa51/gen.c:       remove old endianess stuff
14332         * src/z80/gen.c:        fix endianess check
14333         * src/SDCCglue.c:       fix endianess check
14334         * src/ds390/peeph.def: fix bug 700036
14335
14336 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
14337
14338         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
14339         * src/configure: find appropriate data-types on host for SDCC's int and long
14340         * src/configure.in: find appropriate data-types on host for SDCC's int and long
14341         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
14342         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
14343
14344 2003-03-07    <johan AT balder>
14345
14346         Just a big NOOP:
14347                 some minor cleanups before the big shot
14348                 OP_DEFS and OP_USES now use Kevin's protection
14349                 new option --nolabelopt
14350
14351         * src/SDCCBBlock.c:
14352         * src/SDCCast.c,:
14353         * src/SDCCcflow.c:
14354         * src/SDCCcse.c:
14355         * src/SDCCicode.c:
14356         * src/SDCCicode.h:
14357         * src/SDCClabel.c:
14358         * src/SDCCloop.c:
14359         * src/SDCCmain.c:
14360         * src/ds390/ralloc.c:
14361         * src/mcs51/ralloc.c:
14362         * src/pic/ralloc.c:
14363         * src/xa51/ralloc.c:
14364         * src/z80/ralloc.c:
14365
14366 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
14367
14368         * src/pic/pcode.c (get_op): fix 64 bit warnings
14369         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
14370         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
14371         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
14372         * support/regression/tests/malloc.c: fix 64 bit warnings
14373
14374 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
14375
14376         * src/mcs51/gen.c (genMinus): fixed bug 696436
14377
14378 2003-03-02  Borut Razem <borut.razem AT siol.net>
14379
14380         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
14381
14382 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
14383
14384         * configure.in: test for mkstemp
14385         * sdccconf_in.h: add HAVE_MKSTEMP
14386
14387 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
14388
14389         * device/include/ctype.h: removed warning while using --stack-auto
14390         * device/include/malloc.h: removed warning while using --stack-auto
14391         * device/include/string.h: removed warning while using --stack-auto
14392
14393 2003-02-23  Borut Razem <borut.razem AT siol.net>
14394
14395         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
14396         because NDEBUG is defined (see man assert)
14397         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
14398
14399 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14400
14401         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
14402         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
14403
14404 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14405
14406         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
14407         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
14408
14409 2003-02-18    <johan AT balder>
14410
14411         * as/mcs51/asmain.c (asmbl): module can start with a digit
14412         * as/z80/asmain.c (asmbl): module can start with a digit
14413
14414 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
14415
14416         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
14417         * src/asm.c: fix pipe() for Mingw32
14418
14419 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
14420
14421         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
14422         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
14423         make -V work again; --c1mode reads now from stdin
14424         * doc/sdccman.lyx: added --c1mode
14425         * support/Util/SDCCerr.c: new messages for c1 mode
14426         * support/Util/SDCCerr.h: new messages for c1 mode
14427         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
14428
14429 2003-02-15    <johan AT balder>
14430
14431         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
14432
14433 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
14434
14435         * doc/sdccman.lyx: Environment variables, -o and other minor things
14436
14437 2003-02-14    <johan AT balder>
14438
14439         * src/xa51/main.c: before anyone really tries to use it :)
14440
14441         * Install doc's in share/sdcc/doc
14442         * removed some obsolete files
14443         * Do a proper make distclean and uninstall
14444         M Makefile.common.in
14445         R sdccbuild.sh
14446         M as/Makefile
14447         M device/include/Makefile.in
14448         M device/lib/Makefile.in
14449         M doc/sdccman.lyx
14450         M link/Makefile
14451         M sim/ucsim/doc/Makefile.in
14452         M src/clean.mk
14453         R src/avr/peeph.rul
14454         R src/xa51/peeph.rul
14455         M support/cpp2/Makefile.in
14456         M support/makebin/Makefile
14457
14458
14459 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
14460
14461         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
14462
14463 2003-02-10  Borut Razem <borut.razem AT siol.net>
14464
14465         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
14466         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
14467         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
14468         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
14469         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
14470         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
14471         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
14472         src/z80/Makefile.bcc: Borland Makefile cleanup
14473         * as/z80/Makefile.bcc: Added Borland Makefile
14474         * support/cpp2/borland.h: Removed
14475
14476 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
14477
14478         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
14479         * src/SDCC.lex: new pragma NOIV
14480         * src/SDCCglobl.h: new pragma NOIV
14481         * src/SDCCmem.c: new pragma NOIV
14482
14483 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
14484
14485         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
14486
14487 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
14488
14489         * src/SDCCmain.c: signal handling is switched off by --debug
14490         * doc/Makefile: small fix for install; use clean.mk again
14491         * doc/clean.mk: clean *.pdf and *.html too
14492
14493 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
14494
14495         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
14496         * device/lib/printfl.c: fix a ds390 bug by making it portable
14497         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
14498         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
14499         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
14500         * debugger/mcs51/cmd.c: converted multi-line string literals
14501         * sim/ucsim/globals.cc: converted multi-line string literals
14502         * src/SDCCmain.c: introduced signal handler to remove temp files
14503         * doc/Makefile: small tweaks, implement clean
14504         * doc: removed generated files
14505
14506 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14507
14508         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
14509         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
14510         Address Record is not correctly generated for DS390."
14511
14512 2003-02-02  Borut Razem <borut.razem AT siol.net>
14513
14514         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
14515         * as/mcs51/asm.h: fixed compilation with Borland C
14516         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
14517         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
14518         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
14519         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
14520         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
14521         src/z80/Makefile.bcc: delete $(LIB) only if exist
14522         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
14523
14524 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
14525
14526         * device/include/malloc.h: introduced NULL
14527         * device/include/string.h: introduced NULL
14528         * device/include/stdlib.h: introduced NULL
14529         * device/lib/_memcpy.c: removed NULL
14530         * device/lib/_strcat.c: removed NULL
14531         * device/lib/_strchr.c: removed NULL
14532         * device/lib/_strcmp.c: removed NULL
14533         * device/lib/_strcpy.c: removed NULL
14534         * device/lib/_strcspn.c: removed NULL
14535         * device/lib/_strlen.c: removed NULL
14536         * device/lib/_strncat.c: removed NULL
14537         * device/lib/_strncmp.c: removed NULL
14538         * device/lib/_strncpy.c: removed NULL
14539         * device/lib/_strpbrk.c: removed NULL
14540         * device/lib/_strrchr.c: removed NULL
14541         * device/lib/_strspn.c: removed NULL
14542         * device/lib/_strstr.c: removed NULL
14543         * device/lib/_strtok.c: removed NULL
14544         * device/lib/malloc.c: removed NULL, include own header
14545
14546 2003-02-02    <johan AT balder>
14547
14548         * 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
14549         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
14550         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
14551         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
14552         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
14553         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
14554
14555 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14556
14557         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
14558         area 'DATA'"
14559
14560 2003-02-01    <johan AT balder>
14561
14562         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
14563
14564 2003-01-31    <johan AT CP255758-A>
14565
14566         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
14567
14568 2003-01-30    <johan AT balder>
14569
14570         * src/SDCCBBlock.c: automatic bug detection
14571         * src/SDCCicode.c: automatic bug detection
14572
14573 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14574
14575         * src/SDCCglobl.h:   now --xram-size 0 works
14576         * src/SDCCmain.c:    now --xram-size 0 works
14577
14578 2003-01-29    <johan AT balder>
14579
14580         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
14581
14582 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14583
14584         * as/mcs51/aslink.h: Added options --xram-size and --code-size
14585         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
14586         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
14587         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
14588         * src/SDCCglobl.h:   Added options --xram-size and --code-size
14589         * src/SDCCmain.c:    Added options --xram-size and --code-size
14590
14591 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
14592
14593         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
14594         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
14595
14596 2003-01-27    <johan AT balder>
14597
14598         * src/SDCC.y: fixed bug #613764
14599
14600 2003-01-26    <johan AT balder>
14601
14602         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
14603         * src/SDCCsymt.h: fixed bug #673374
14604         * src/SDCCglue.c: fixed bug #661910
14605         * src/SDCCast.c: fixed bug #458099 and 673374
14606
14607 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
14608
14609         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
14610         * as/mcs51/strcmpi.h: added
14611         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
14612         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
14613         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
14614         * as/mcs51/assym.c: strcmpi -> as_strcmpi
14615         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
14616         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
14617         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
14618         * as/mcs51/Makefile.aslink: new module strcmpi
14619         * as/mcs51/Makefile.asx8051: new module strcmpi
14620         * as/mcs51/Makefil.bcc: new module strcmpi
14621         * as/mcs51/Makefile.in: new module strcmpi
14622         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
14623
14624 2003-01-26    <johan AT balder>
14625
14626         * src/SDCCglue.c: reverted back to 1.124
14627         * src/SDCCast.c: reverted back to 1.156
14628         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
14629
14630 2003-01-25    <johan AT balder>
14631
14632         * src/SDCCglue.c: A better fix for bug #661910
14633         * src/SDCCast.c: A better fix for bug #661910
14634         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
14635
14636 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
14637
14638         * src/Makefile.in: remove spawn.o
14639         * src/SDCCmain.c: remove spawn.h
14640         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
14641         * src/spawn.c: removed
14642         * src/spawn.h: removed
14643         * support/regression/ports/ds390/spec.mk: link with -r
14644
14645 2003-01-24    <johan AT CP255758-A>
14646
14647         * src/ds390/gen.c (aopOp): fixed bug #667458
14648         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
14649         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
14650         (createIvalCharPtr): an ival doesn't always have a storage class anymore
14651
14652 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
14653
14654         * src/mcs51/peeph.def: better assembler identation by Frieder
14655         * src/mcs51/gen.c: better assembler identation by Frieder
14656
14657 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
14658
14659         * as/z80/string.h: removed for gcc 3.2
14660         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
14661         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
14662
14663 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
14664
14665         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
14666         * src/SDCCpeeph.c (replaceRule): fix bug #663503
14667         * support/regression/Makefile: separate temp files for ports
14668         * support/regression/generate-cases.py: separate temp files for ports
14669         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
14670         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
14671
14672 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
14673
14674         * moved tinitalk to device/examples/ds390
14675
14676 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
14677
14678         * as/mcs51/lkmem.c: rflag is for DS390
14679         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
14680         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
14681                          (linkEdit): move mem- and map-files the same way as ihx-files
14682         * src/z80/main.c (_setDefaultOptions): removed --generic
14683         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
14684         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
14685         * src/pic/glue.c (picglue): --c1mode works again
14686         * src/pic16/glue.c (pic16glue): --c1mode works again
14687         * src/asm.c (printCLine): fix #660034
14688
14689 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
14690
14691         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
14692         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
14693         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
14694         * as/mcs51/lkmem (summary): better fix for sp problem
14695         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
14696         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
14697         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
14698                                               remove --stack-after-data
14699
14700 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
14701
14702         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
14703         * src/SDCCutil.c (join): ugly bug: missing '\0'
14704         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
14705
14706 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
14707
14708         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
14709         * src/port.h: typo
14710         * src/pic/main.c (_asmCmd): gpasm supports -o
14711         * src/z80/main.c: more general macros
14712         * device/lib/Makefile.in: remove intermediate files
14713
14714 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
14715
14716         * .version: Bumped version number to 2.3.3
14717         * src/SDCCBBlock.c: new option -o
14718         * src/SDCCglobl.h: new option -o
14719         * src/SDCCglue.c: new option -o
14720         * src/SDCCmain.c: new option -o
14721         * src/asm.c: new option -o
14722         * src/ds390/main.c: new option -o
14723         * src/pic/glue.c: new option -o
14724         * src/pic/pcode.c: new option -o
14725         * src/pic/ralloc.c: new option -o
14726         * src/pic16/glue.c: new option -o
14727         * src/pic16/pcode.c: new option -o
14728         * src/pic16/ralloc.c: new option -o
14729         * src/z80/main.c: new option -o
14730         * device/lib/Makefile.in: use -o
14731         * support/regression/ports/ds390/spec.mk: use -o
14732         * support/regression/ports/gbz80/spec.mk: use -o
14733         * support/regression/ports/mcs51/spec.mk: use -o
14734         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
14735         * support/regression/ports/z80/spec.mk: use -o
14736         * support/regression/ports/ucz80/spec.mk: use -o
14737         * support/regression/ports/xa51/spec.mk: use -o
14738         * support/regression/fwk/lib/timeout.c: fix usage string
14739
14740 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
14741         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
14742
14743 2003-01-07    <johan AT balder>
14744
14745         * src/SDCCast.c (decorateType): fixed bug #600035
14746
14747 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
14748         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
14749         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
14750         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
14751         * src/pic/pcode.c: outcommented unused variable to remove warnings
14752         * src/pic/ralloc.c: outcommented unused variable to remove warnings
14753
14754 2003-01-06    <karl AT turbobit.com>
14755         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
14756    regression tests.
14757
14758 2003-01-06    <johan AT balder>
14759
14760         * src/SDCCicode.c: fixed array add
14761
14762 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
14763         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
14764         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
14765
14766 2003-01-04    <johan AT balder>
14767
14768         * src/SDCCval.c (getNelements): fixed the initialized array of structures
14769
14770 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14771         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
14772
14773 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
14774         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
14775         * support/regression/tests/bug-524697.c: fit mem usage into 8032
14776
14777 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
14778         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
14779
14780 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
14781         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
14782
14783 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
14784         * src/mcs51/main.c: removed {bindir}{sep} from aslink
14785
14786 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14787
14788     * in /sdcc/as/mcs51/ changed these files in order to create an
14789     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
14790     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
14791     following files to include the previous two files: aslink.dsp,
14792     Makefile.aslink, Makefile.bcc, and Makefile.in.
14793
14794     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
14795     .adb instead of .cdb
14796
14797 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14798
14799         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
14800         value from option --iram-size.
14801
14802 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14803
14804         * /sdcc/as/mcs51/lklist.c: added boundary check before using
14805         dram[] array.
14806
14807 2002-09-18    <wiml AT hhhh.org>
14808
14809         * SDCClrange.h: exposed setFromRange() and setToRange()
14810         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
14811           packRegsForAccUse() (bug 542397)
14812         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
14813           multiple times and emitting the fetch operations more than once
14814           added aopGetUsesAcc() function to allow binary operators to
14815           fetch their operands in the correct order; made genMinus() emit
14816           compact code for X = LITERAL - Y
14817
14818 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14819         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
14820         sprintf() in line 1267.
14821
14822 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14823         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
14824         like ports.
14825
14826 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14827         Changes to aslink (All the changes are marked with 'JCF'):
14828
14829         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
14830         summary().
14831
14832         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
14833         area BSEG.  Also moves, if possible, the DATA area down into the internal
14834         ram so more space is available.
14835
14836         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
14837         sflag.
14838
14839         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
14840         not bytes.  Function summary() which creates a memory usage summary
14841         file with extension .mem.  Reports of overlaping stack and small stack
14842         size.  If the space for the stack is less than 16 bytes aslink trows a
14843         warning.
14844
14845         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
14846         the 8051.  Option 'y' for memory summary output file.
14847
14848         Changes to sdcc (All the changes are marked with 'JCF'):
14849
14850         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
14851
14852         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
14853         overlaying area for it (uses RegBankUsed[4]).
14854
14855         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
14856         bank zero as used by default.  By default aslink locates the stack
14857         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
14858         the creation of the .mem file.  Delegates the allocation of data area
14859         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
14860         the begining of the stack area to aslink.
14861
14862         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
14863         glue() in SDCCglue.c creates an area for it.
14864
14865 2002-09-03  Borut Razem <borut.razem AT siol.net>
14866         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
14867         sdcc/src/pic/glue.c:
14868         introduced atexit() handler for teporay files removal in case of
14869         errors, assertions, ...
14870
14871 2002-08-29  Borut Razem <borut.razem AT siol.net>
14872         * sdcc/support/cpp2/auto-host_vc_in.h:
14873         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
14874         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
14875         Maybe there is a similar problem with BORLANDC? It should be checked!
14876
14877         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
14878         corrected improper use of assert: the assignment to clr variable was done inside the assert.
14879         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
14880         was not executed, and the compiler (cl) launched a warning:
14881         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
14882
14883 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
14884         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
14885
14886 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
14887         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
14888
14889         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
14890           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
14891           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
14892           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
14893           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
14894           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
14895           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
14896         - added Release configuration in VS projects
14897         - review of compiler an linker options
14898         - VC .exe files are generated in bin_vc directory, not to interfere
14899           with binaries generated from other projects (cygwin, mingw, bcc ...)
14900
14901         * sdcc/src/yacc.dsp: added
14902
14903         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
14904         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
14905         and insert the version number definitions from .version
14906
14907         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
14908
14909         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
14910         added - genarate auto-host.h using auto-host_vc_in.h as template
14911
14912         * sdcc/sdcc_vc.h,
14913         removed from CVS, generated automatically
14914
14915 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
14916         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
14917
14918 2002-08-11  Borut Razem <borut.razem AT siol.net>
14919         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
14920
14921 2002-08-10  Borut Razem <borut.razem AT siol.net>
14922         * src/SDCCmain.c (main):
14923         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
14924         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
14925         The consequence was that some temporary files were not removed.
14926
14927         * src/SDCCglue.c:
14928         unification of code in functions tempfilename() and tempfile():
14929         function tempnam() is defined in Visual Studio 6.0 and .NET
14930
14931         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
14932
14933         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
14934           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
14935         - removed compiler command line option /WX: Treats all warnings as errors
14936         - update a list of source files, included into the project
14937
14938         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
14939           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
14940         changed project type to Generic Project so that can be correcly converted to VS.NET project
14941
14942         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
14943
14944         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
14945
14946         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
14947
14948         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
14949         added return 0 statements after assert() to make compiler happy
14950
14951         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
14952         added newline in the def file to keep MSC compiler satisfied
14953
14954         * sdcc/src/z80/gen.c:
14955         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
14956           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
14957         - solved MSC error in function aopDump()
14958
14959         * sdcc_vc.h: define PREFIX as "\\sdcc"
14960
14961 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
14962         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
14963
14964 2002-06-22  Scott Dattalo <scott AT dattalo.com>
14965         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
14966         - Rewrote the register banking algorithm.
14967         - Added pCode live-range analysis to registers (for now, only non-used and
14968         singly-used registers optimized away)
14969
14970         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
14971
14972         * 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.
14973
14974 2002-05-10  Scott Dattalo <scott AT dattalo.com>
14975         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
14976
14977 2002-04-22  Michael Hope  <michaelh AT vroom>
14978
14979         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
14980
14981         * configure.in (DD_COPT): Added include support required for gbdk.
14982
14983         * .version: Bumped version number just to increase it.
14984
14985         * src/SDCCmain.c: Added -nostdinc to the default options.
14986
14987 2002-04-15  Michael Hope  <michaelh AT vroom>
14988
14989         * device/lib/z80/printf.c (sprintf): Added.
14990
14991         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
14992
14993         * src/z80/peeph.def: Added transpose redundent load rule.
14994
14995         * src/z80/main.c: Added force callee saves for jaune.
14996
14997         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
14998
14999         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
15000
15001 2002-03-28  Johan Knol  <johan AT balder>
15002
15003         * src/SDCCval.c: fixed bug #532436
15004
15005 2002-03-14  Scott Dattalo <scott AT dattalo.com>
15006         * /src/port.h:
15007         Added "char *Processor" field to the port structure.
15008
15009         * /src/SDCCmain.c:
15010         Added -p option. Allows port dependent processor to be specified.
15011
15012         * all ports:
15013         Initialized the new field char *Processor field to NULL in all ports
15014
15015         * /src/pic/*:
15016         Compiler generated registers for interrupt context saving
15017         were not getting allocated.
15018
15019 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
15020
15021         * /src/SDCCast.c:
15022         Fixed left shift. Will promote the left side of a left shift
15023         if a) left shifting more than size of operand or b) when assigned
15024         to something size > size of left side
15025
15026 2002-03-14  Scott Dattalo <scott AT dattalo.com>
15027         * src/pic/*
15028         tons of changes. Register allocation has been
15029         rewritten. Added customization for the various PICs. Flow
15030         analysis is restructured. ...
15031
15032         * src/pic/device.h:
15033         Added
15034
15035         * src/pic/device.c:
15036         Added. device.c is a PIC port hack to accomodate variations
15037         in PIC devices.
15038
15039 2002-03-13  Michael Hope  <michaelh AT vroom>
15040
15041         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
15042
15043 2002-03-04  johanknol  <johanknol AT manik>
15044
15045         * /src/SDCCval.c: fixed
15046
15047         const unsigned char arr[][2] = { { 0, 1 } };
15048         t18.c:1: error: Initializer element is not constant
15049
15050 2002-03-04  bela  <bela AT manik>
15051
15052         * /device/include/mcs51reg.h:
15053         ds89c420 register definition update
15054
15055 2002-03-03    <johan AT FRIJA>
15056
15057         * support/Util/SDCCerr.c: did something, but don't no why anymore
15058
15059         * support/regression/tests/bug-524691.c: made it a little less shy
15060
15061         * src/SDCCast.c (decorateType): fixed bug #524697
15062
15063         * src/SDCCast.c: made some lineno improvements
15064
15065         * src/SDCCval.c (getNelements): changed warning to error
15066
15067         * src/SDCCglue.c (printIvalArray): changed warning to error
15068
15069         * src/SDCCicode.c: fixed a warning for mingw
15070
15071         * src/SDCCast.c (decorateType): fixed the << promotion for ops
15072
15073         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
15074
15075 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
15076
15077         * src/ds390/peeph.def:
15078         Added some more peephole rules
15079
15080         * src/ds390/gen.c: Various fixes & enhancements
15081
15082         * src/SDCClrange.c, src/SDCClrange.h:
15083         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
15084
15085         * src/ds390/ralloc.c:
15086         various fixes & enhancements (ds390) specific
15087
15088         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
15089         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
15090         from rallocs.
15091
15092         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
15093
15094 2002-03-02    <johan AT FRIJA>
15095
15096         * src/SDCCast.c (decorateType): fixed bug #524708
15097
15098         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
15099
15100         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
15101
15102 2002-03-01  Michael Hope  <michaelh AT vroom>
15103
15104         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
15105
15106         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
15107
15108 2002-03-01    <johan AT FRIJA>
15109
15110         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
15111
15112         * src/SDCCast.c (decorateType): fixed bug #524209
15113
15114         * src/SDCCval.c (valNot): fixed bug #524195
15115
15116 2002-02-26    <johan AT balder>
15117
15118         * src/xa51/gen.c: fixed a warning
15119
15120         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
15121
15122         * src/SDCCast.c (decorateType): fixed bug #522534
15123
15124 2002-02-23    <johan AT balder>
15125
15126         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
15127
15128 2002-02-22    <johan AT balder>
15129
15130         * src/SDCCast.c: fixed bug #514865
15131
15132         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
15133
15134 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
15135
15136         * sdcc/src/SDCCloop.c:
15137         Previous fix was not good. basic blocks that have "break" or "return" are
15138         not really partof a loop , but live ranges used in these blocks should
15139         be live thru the entire loop, so set partOfLoop but don't add them to
15140         loop region
15141
15142 2002-02-21    <johan AT FRIJA>
15143
15144         * src/SDCCcse.c: fixed bug #514308
15145
15146 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
15147
15148         * src/SDCCloop.c:
15149         Fixed BUG #519583. If a conditional block ended in a return/break
15150         statement inside a loop, it was not being considered part of the loop.
15151
15152         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
15153
15154 2002-02-10  Karl Bongers <karl AT turbobit.com>
15155
15156         * debugger/*:
15157         Fixed up SDCDB debugger somewhat.  Updated debugger/README
15158         with lots of comments and notes.
15159
15160         * device/examples/test2.c:
15161         Fix bug, "red" variable not being initialized(compiler complained).
15162
15163         * device/examples/Makefile, examples/test3.c:
15164         Add Makefile in device/examples folder, compiles test3.c
15165         for use as a multiple module SDCDB test case.
15166
15167         * sim/ucsim/cmd.src/cmdset.cc:
15168         Took out debug printfs in ucsim "next" command.
15169
15170         * sim/ucsim/xa.src:
15171         Karl and Johan start ucsim XA support.  Most dissassembly working,
15172         about 75% emulation done(plenty of work remaining).
15173
15174         * sim/ucsim/z80.src:
15175         Add Z80 support to ucsim, add test-ucz80 regression test,
15176         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
15177         Notice z80 compiler fails on examples/test3.c/crc code.
15178
15179 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
15180
15181         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
15182         Added support for --parms-in-bank1
15183
15184         * src/ds390/peeph.def:
15185         added a few more peephole optimzations
15186
15187         * src/ds390/main.c:
15188         1) added __builtin_inp & __builtin_outp used to read in data of given length
15189            from a memory mapped port
15190         2) added __builtin_memcmp
15191         3) added __builtin_swapw swap bytes of a short
15192
15193         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
15194         1) handle multiple send & receives from register bank1
15195         2) ralloc can now allocate DPTR1 to some liveRanges
15196
15197         * src/SDCCsymt.c, src/SDCCsymt.h:
15198         changes to handle multiple sends & receives
15199
15200         * src/SDCCptropt.h:
15201         added some pointer arithmetic optimization
15202
15203         * src/SDCCptropt.c:
15204         added some pointer arithmetic optimizations but not stable yet so not
15205         called from anywhere (will get this working shortly)
15206
15207         * src/SDCCopt.c: fixed for multiple sends & receives
15208
15209         * src/SDCCmain.c:
15210         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
15211         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
15212            set preprocessor defines (depending on options)
15213
15214         * src/SDCCicode.c, src/SDCCicode.h:
15215         changes made to handle multiple sends & receives
15216
15217         * src/SDCCglobl.h:
15218         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
15219
15220         * src/SDCCcse.c, src/SDCCcse.h:
15221         added function findbackward def (to be used in upcoming optimization)
15222
15223         * src/SDCCcflow.c, src/SDCCcflow.h:
15224         added function returnAtEnd - to determine if a basic block terminates with
15225         a RETURN iCode
15226
15227         * src/SDCCast.c, src/SDCCast.h:
15228         added option parms-in-bank1
15229
15230         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
15231         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
15232         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
15233         adjusted for --parms-in-bank1 option
15234
15235         * device/include/string.h:
15236         donot redefine "reentrant" keyword
15237
15238         * device/include/ds80c390.h: Added some more SFRs
15239
15240 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
15241
15242         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
15243
15244 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
15245
15246         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
15247
15248 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
15249
15250         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
15251
15252 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
15253
15254         * Added --xram-movc option
15255
15256 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
15257
15258         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
15259
15260 2002-01-11  Johan Knol
15261
15262         * Added math lib of Jesus Calvino-Fraga
15263
15264 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
15265
15266         * src/SDCCmain.c (processFile): fix processing of ../../src.c
15267         * support/regression/Makefile: new target test-mcs51-stack-auto
15268         * support/regression/ports/mcs51-stack-auto/spec.mk: added
15269
15270 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
15271
15272         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
15273
15274 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
15275
15276         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
15277
15278 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
15279
15280         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
15281
15282         * src/SDCCglue.h: add definition for printIvalChar()
15283
15284 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
15285
15286         * src/SDCCast.c: fix #498138 by Johan
15287
15288         * src/SDCCglue.c: fix #498138 by Johan
15289
15290 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
15291
15292         * support/regression/Makefile: fix clean
15293
15294         * support/regression/ports/ds390/support.c: fix transmission of last character
15295
15296 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
15297
15298         * /sdcc/src/ds390/gen.c:
15299         a) improved computing address of stack variable
15300         b) took out some #if 0 code
15301         c) improved parmBytes adjustment
15302         d) improved genPlusIncr & genMinusIncr
15303         e) genCmp could generate bad code (when left assigned to DPTR)
15304         f) Fixed bug in hasInc
15305
15306         * /sdcc/src/ds390/ralloc.c:
15307         a) packRegsForSupport could mess up live information (Fixed)
15308         b) packRegsDPTRuse could be incorrect for left & right shift
15309
15310         * /sdcc/src/mcs51/ralloc.c:
15311         packRegsForSupport could mess up the live information (Fixed)
15312
15313         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
15314
15315         * /sdcc/src/SDCCast.c:
15316         can reverse a loop even if function call is present as long
15317         as the loop control variable is local & is not passed as parameter
15318
15319 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15320
15321         * /sdcc/ChangeLog: *** empty log message ***
15322
15323         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
15324         More builtin function additions for TININative
15325
15326         * /sdcc/src/ds390/ralloc.c:
15327         Had broken the regression testsuite
15328
15329         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
15330
15331         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
15332         Added funcattr hasStackParms will be set for reentrant functions when there
15333         are paramteres on the stack, this helps in minimizing frame pointer generation
15334         typeFromStr can handle function pointers now
15335
15336         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
15337         *** empty log message ***
15338
15339 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15340
15341         * /src/ds390/gen.c, /src/ds390/main.c:
15342         More builtin function additions for TININative
15343
15344         * /src/ds390/ralloc.c:
15345         Had broken the regression testsuite
15346
15347         * /src/SDCCast.c: Fixed a bug in dumptree
15348
15349         * /src/SDCCsymt.c, /src/SDCCsymt.h:
15350         Added funcattr hasStackParms will be set for reentrant functions when there
15351         are paramteres on the stack, this helps in minimizing frame pointer generation
15352         typeFromStr can handle function pointers now
15353
15354         * /doc/builtins.txt, /doc/TININative.txt:
15355         *** empty log message ***
15356
15357
15358 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15359
15360         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
15361         ALPHA version for -mTININative
15362
15363         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
15364         updated to reflect changes in the port structure
15365
15366         * /src/port.h:
15367         added function do_assemble (similar to do_link) if non-null this function
15368         will be called to do assembly (-mTININative) requires a multi command
15369         assembly
15370         added function genAssemblerEnd will be called to generate assembler Epilogue
15371
15372         * /src/SDCCsymt.c:
15373         added _JavaNative to debug info printing
15374
15375         * /src/SDCCmain.c: added option --tini-libid
15376         added port->do_assemble function (-mTININative) has a multi command assemble
15377
15378         * /src/SDCCglue.c: Disabled "constExpr" check
15379         added port->genAssemblerEnd function
15380
15381         * /src/SDCCglobl.h: Added option --tini-libid value
15382
15383         * /src/SDCCast.h:
15384         tookout optimizeCompare from the header (has no external references)
15385
15386         * /src/SDCCast.c: made one more function "static"
15387
15388 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
15389
15390         * src/z80/mappings.i: Added z80asm support.
15391
15392         * src/z80/main.c: Added z80asm support on --asm=z80asm
15393
15394         * src/z80/gen.c: Fixed asm portability issues.
15395
15396         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
15397
15398         * src/SDCCglue.c (printExterns): Added global/extern split.
15399
15400 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
15401
15402         * support/regression/Makefile: added test for mcs51 model large
15403
15404         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
15405
15406         * support/regression/ports/gbz80/spec.mk: added -mgbz80
15407
15408 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
15409
15410         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
15411
15412 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
15413
15414         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
15415
15416         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
15417
15418 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
15419
15420         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
15421
15422         * support/regression/tests/simplefloat.c: Port to mcs51.
15423
15424 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
15425         * support/regression/tests/bug-485362.c: Added.
15426
15427         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
15428
15429         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
15430
15431         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
15432
15433         * src/z80/gen.c (aopDump): Added a dump function.
15434
15435 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
15436         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
15437
15438         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
15439
15440         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
15441
15442         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
15443
15444         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
15445
15446         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
15447
15448         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
15449
15450         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
15451
15452         * support/regression/ports/ds390/support.c: Use tinibios.
15453
15454         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
15455
15456 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
15457
15458         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
15459         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
15460
15461         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
15462
15463         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
15464
15465 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
15466
15467         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
15468
15469         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
15470         (packRegsForIYUse): Created and optimised.
15471
15472 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
15473
15474         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
15475 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
15476
15477         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
15478
15479         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
15480
15481         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
15482
15483 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15484
15485         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
15486
15487         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
15488
15489 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15490
15491         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
15492
15493         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
15494
15495         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
15496
15497 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
15498
15499         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
15500         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
15501         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
15502
15503         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
15504
15505         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
15506         (genNotFloat): Added.
15507         (genUminusFloat): Added.
15508
15509         * device/lib/z80/Makefile: Added floating pt stubs.
15510
15511         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
15512
15513         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
15514
15515         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
15516
15517 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15518
15519         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
15520
15521         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
15522
15523         * sdcc/support/regression/Makefile: Add port ds390.
15524
15525         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
15526
15527         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
15528
15529         * sdcc/support/regression/ports/ds390/spec.mk: Added.
15530
15531         * sdcc/support/regression/ports/ds390/support.c: Added.
15532
15533         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
15534
15535         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
15536
15537         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
15538
15539 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
15540
15541         * device/include/malloc.h: Added z80 and gbz80 support.
15542
15543         * device/lib/gbz80/heap.s: Added.
15544
15545         * device/lib/z80/heap.s: Added.
15546
15547         * device/lib/malloc.c: Added z80 and gbz80 support.
15548
15549         * support/regression/tests/malloc.c (testMalloc): Added.
15550
15551         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
15552
15553         * support/regression/tests/bug-478094.c: Added.
15554
15555         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
15556
15557 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
15558
15559         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
15560
15561         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
15562
15563         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
15564
15565         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
15566
15567         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
15568
15569 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
15570
15571         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
15572
15573 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
15574
15575         * support/regression/tests/bug-477927.c: Added.
15576
15577         * src/z80/peeph.def: Added minor rules.
15578
15579         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
15580
15581         * src/z80/peeph.def: Added jump optimisation modification.
15582
15583 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
15584
15585         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
15586
15587 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
15588
15589         * support/regression/tests/funptrs.c: Added.
15590
15591 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
15592
15593         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
15594
15595 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
15596
15597         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
15598
15599         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
15600
15601         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
15602         (movLeft2ResultLong): Created.
15603
15604         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
15605         (joinPushes): Added.  Joins two char pushes into a word push.
15606
15607 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
15608
15609         * support/cpp2/Makefile.in (install): Added creation of dest dir.
15610
15611         * support/makebin/Makefile (install): Added creation of dest dir.
15612
15613 2001-10-24 Karl Bongers <karl AT turbobit.com>
15614
15615         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
15616
15617 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
15618
15619         * src/z80/ralloc.c: Turned off faulty pack for one use.
15620
15621         * src/z80/peeph-gbz80.def: Removed redundent restart options.
15622
15623         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
15624
15625 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
15626
15627         * support/regression/Makefile: Improved clean
15628
15629         * support/regression/ports/gbz80/spec.mk: Added clean
15630
15631         * support/regression/ports/host/spec.mk: Added clean
15632
15633         * support/regression/ports/z80/spec.mk: Added clean
15634
15635         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
15636
15637         * support/regression/ports/mcs51/timeout.c: little improvements
15638
15639 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
15640
15641         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
15642
15643         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
15644
15645         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
15646
15647 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
15648
15649         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
15650
15651         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
15652
15653 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
15654         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
15655
15656         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
15657
15658         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
15659
15660         * src/mcs51/main.c (_linkCmd): Added bin path to command.
15661
15662         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
15663
15664         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
15665
15666         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
15667
15668         * support/regression/tests/longor.c: Added.
15669
15670 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
15671
15672         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
15673
15674         * as/mcs51/aslink.h: define PATH_MAX
15675
15676         * as/mcs51/asm.h: define PATH_MAX
15677
15678         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
15679
15680         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
15681
15682         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
15683
15684         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
15685
15686         * src/SDCCglobl.h: define PATH_MAX
15687
15688         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
15689
15690         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
15691
15692 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
15693
15694         * src/z80/gen.c (gencjneshort): Fixed
15695
15696         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
15697
15698 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
15699
15700         * support/regression/tests/bug-469671.c: Added.
15701
15702         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
15703
15704 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
15705
15706         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
15707
15708         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
15709
15710 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
15711
15712         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
15713
15714         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
15715
15716         * src/device/lib/_mullong.c : removed hint: nooverlay bug
15717
15718         * src/device/lib/_divuint.c : removed hint: nooverlay bug
15719
15720         * src/device/lib/_divulong.c: removed hint: nooverlay bug
15721
15722         * src/device/lib/_moduint.c : removed hint: nooverlay bug
15723
15724         * src/device/lib/_modulong.c: removed hint: nooverlay bug
15725
15726 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
15727
15728         * 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.
15729
15730         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
15731
15732         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
15733
15734 2001-10-07    <johan AT FRIJA>
15735
15736         * device/lib/gets.c (gets): fixed the return value.
15737
15738 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
15739         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
15740
15741         * 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.
15742
15743         * 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.
15744
15745         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
15746
15747         * src/pic/gen.c: Removed Safe_strdup.
15748
15749         * configure.in: Added option to enable libgc support.
15750
15751         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
15752         (bitVectUnion): Optimised.
15753         (bitVectIntersect): Optimised.
15754         (bitVectBitsInCommon): Optimised.
15755         (bitVectCplAnd): Optimised.
15756
15757         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
15758
15759 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
15760
15761         * src/SDCCmain.c: distinguish between assembler debug and plain options
15762
15763         * src/avr/main.c:   remove standard assembler options
15764
15765         * src/ds390/main.c: remove standard assembler options
15766
15767         * src/mcs51/main.c: remove standard assembler options
15768
15769         * src/port.h: removed "PENDING" comment
15770
15771 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
15772
15773         * src/device/lib/_mulint.c  : new, with assember functions
15774
15775         * src/device/lib/_mullong.c : new, with assember functions
15776
15777         * src/device/lib/_divuint.c : with assember functions
15778
15779         * src/device/lib/_divsint.c : with assember functions
15780
15781         * src/device/lib/_divulong.c: with assember functions
15782
15783         * src/device/lib/_divslong.c: with assember functions
15784
15785         * src/device/lib/_moduint.c : with assember functions
15786
15787         * src/device/lib/_modsint.c : with assember functions
15788
15789         * src/device/lib/_modulong.c: with assember functions
15790
15791         * src/device/lib/_modslong.c: with assember functions
15792
15793         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
15794
15795         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
15796
15797         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
15798                                       replaced _mululong.c and _mulslong.c by _mullong.c
15799
15800 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
15801
15802         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
15803
15804 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
15805
15806         * src/SDCCglue.c: test, if win32api is available for MINGW
15807
15808 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
15809
15810         * src/SDCCsymt.c: no more _modifier in printTypeChain()
15811         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
15812         * support/regression/ports/gbz80/spec.mk: removed GENERIC
15813         * support/regression/ports/host/spec.mk: removed GENERIC
15814         * support/regression/ports/mcs51/spec.mk: removed GENERIC
15815         * support/regression/ports/z80/spec.mk: removed GENERIC
15816
15817 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
15818
15819         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
15820
15821         * support/regression/tests/bug-467035.c: Created.
15822
15823 2001-10-01    <johan AT FRIJA>
15824
15825         * src/SDCC.y: fixed bug #466586 part 1
15826
15827 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
15828
15829         * SDCCicode.c: z80 has no generic pointers
15830         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
15831
15832 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
15833
15834         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
15835
15836 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
15837
15838         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
15839
15840         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
15841
15842 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
15843
15844         * configure.in: Fixed up so that ucsim is only configured once.
15845
15846         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
15847
15848         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
15849         (getPathDifference): As above.
15850
15851         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
15852
15853         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
15854
15855 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
15856         * .version: Updated to 2.3.1
15857
15858         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
15859         Added copyright header.
15860
15861         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
15862         (assemble): Added support for macro based assembler commands.
15863         (linkEdit): Added support for macro based linker commands.
15864         (preProcess): Changed the pre-processor to use macros.
15865         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
15866         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
15867
15868         * device/lib/z80/crt0.s: Added module name for debugging.
15869
15870 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
15871
15872         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
15873
15874         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
15875
15876         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
15877
15878         * src/Makefile.in: Added SDCCmacro and SDCCutil
15879
15880 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
15881
15882         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
15883
15884 2001-09-16    <johan AT FRIJA>
15885
15886         * 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.
15887
15888 2001-09-15    <johan AT FRIJA>
15889
15890         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
15891         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
15892
15893 2001-09-11    <johan AT FRIJA>
15894
15895         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
15896
15897 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
15898
15899         * support/regression/tests/bug-460444.c: Added test case.
15900
15901         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
15902         (genCast): Added justification for all of the asserts.
15903
15904 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
15905
15906         * support/regression/support.c: _xdata replaced by xdata
15907
15908         * support/regression/spec.mk: removed _generic
15909
15910 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
15911
15912         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
15913
15914         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
15915         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
15916
15917         * src/z80/peeph.def: Added a rule to optimise shift then compare.
15918
15919         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
15920
15921         * support/regression/tests/bug-460010.c: Added test case.
15922
15923         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
15924
15925 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
15926
15927         * support/regression/Makefile: inter-port-clean adjusted for mcs51
15928
15929         * support/regression/testfwk.c: removed workaround for bug #436344
15930
15931         * support/regression/tests/bp.c: use less memory with mcs51
15932
15933         * support/regression/tests/bug-441448.c: use less memory
15934
15935         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
15936
15937         * support/regression/collate-results.py: typo
15938
15939 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
15940
15941         * support/regression/tests/fetchoverlap.c: Added new test case.
15942
15943         * support/regression/tests/bp.c: Added new test case.
15944
15945         * support/regression/tests/bug-448984.c: Added new test case.
15946
15947         * support/regression/tests/pow2shifts.c: Added new test case.
15948
15949         * src/z80/gen.c: Turned off the noise it normally generates for the release.
15950         (genlshTwo): Fixed right shift for count > 8.
15951
15952         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
15953
15954 2001-09-08    <johan AT FRIJA>
15955
15956         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
15957
15958 2001-09-07    <johan AT FRIJA>
15959
15960         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
15961
15962         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
15963
15964 2001-09-06    <johan AT FRIJA>
15965
15966         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
15967         * bernhard noted me at this: "() equals to (void)" (1.38)
15968
15969 2001-09-05    <johan AT FRIJA>
15970
15971         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
15972
15973 2001-09-04    <johan AT FRIJA>
15974
15975         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
15976
15977
15978 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
15979
15980         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
15981
15982 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
15983
15984         * link/z80/aslink.h: Fixed path for PATH_MAX
15985
15986 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
15987
15988         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
15989
15990         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
15991
15992         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
15993
15994         * 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.
15995
15996 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
15997
15998         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
15999         (genCmp): Fixed up genCmp for the GB with longs.
16000
16001         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
16002
16003         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
16004
16005         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
16006
16007         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
16008
16009 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
16010
16011         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
16012
16013 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
16014
16015         * 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.
16016
16017         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
16018
16019 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
16020
16021         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
16022
16023         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
16024
16025 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
16026
16027   * sim/ucsim/configure:    little improvement of Cygwin-detection
16028   * sim/ucsim/configure.in: little improvement of Cygwin-detection
16029   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
16030   * support/regression/tests/bug-221100.c: small changes for mcs51
16031   * support/regression/tests/bug-221168.c: small changes for mcs51
16032   * support/regression/tests/bug-227710.c: small changes for mcs51
16033   * support/regression/tests/staticinit.c: small changes for mcs51
16034   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
16035   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
16036   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
16037
16038 $Revision$