12a896522ea3138907b612a69a13ba6547972af1
[fw/sdcc] / ChangeLog
1 2008-03-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2
3         * support/librarian/sdcclib.c:Added feature request 1908061: 
4           Synchronise sdcclib commands with ar.
5
6 2008-03-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7
8         * src/SDCCmain.c: added predefined macros SDCC_REVISION (RFE #1907229),
9           and (depending on corresponding compiler option) SDCC_PARMS_IN_BANK1, 
10           SDCC_FLOAT_REENT, SDCC_INT_LONG_REENT 
11         * device/include/mcs51/compiler.h: removed umlauts, added double
12           underscore
13
14 2008-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
15
16         * src/SDCCptropt.c (ptrPseudoSymConvert): fixed bug 1536762
17         * support/regression/tests/bug1536762.c: new, added
18         * src/SDCCutil.c,
19         * src/SDCCutil.h: added getBuildDate()
20         * src/SDCCmain.c (printVersionInfo),
21         * src/SDCCglue.c (initialComments): use getBuildDate() instead of __DATE__
22         * src/*/ralloc.c: removed IS_OP_RUONLY macro
23         * src/ds390/ralloc.c (packRegisters),
24         * src/mcs51/ralloc.c (packRegisters),
25         * src/z80/ralloc.c (packRegisters): applied fix for bug 1618050, thanks
26           Robert Larice
27         * support/regression/tests/bug1618050.c: new, added
28         * src/SDCCsymt.h: fixed typo in DECLSPEC2TXT
29         * support/regression/fwk/include/testfwk.h,
30         * support/regression/tests/bug1838000.c: moved _AUTOMEM and _STATMEM to
31           testfwk.h
32
33 2008-03-04 Raphael Neider <rneider AT web.de>
34
35         * src/pic/gen.c: removed unused prototypes, prevent internal errors
36           on accessing OP_SYM_TYPE(op)
37         * src/pic/gen.h: removed unused prototype of genMinusDec()
38         * src/pic/genarith.c (genMinus): cosmetic changes, rewritten to
39           fix #1876953 (invalid subtraction code), removed unused code
40
41 2008-03-03 Raphael Neider <rneider AT web.de>
42
43         * src/pic/gen.c,
44         * src/pic/gen.h,
45         * src/pic/genarith.c,
46         * src/pic/ralloc.c,
47         * src/pic/ralloc.h: removed AOP_R0, AOP_R1, AOP_DPTR, AOP_DPTR2,
48           AOP_ACC, and *_IDX and adjusted code, removed unused legacy code
49
50 2008-03-03 Raphael Neider <rneider AT web.de>
51
52         * src/pic/device.c (find_device): search user-specified paths first
53           for pic14devices.txt, fixes #1900827
54
55 2008-03-02 Borut Razem <borut.razem AT siol.net>
56
57         * support/scripts/sdcc.nsi: fixed bug in IsNT, LogicLib-isation of
58           AddToPath and RemoveFromPath
59
60 2008-03-01 Borut Razem <borut.razem AT siol.net>
61
62         * support/scripts/sdcc.nsi: reverted MULTIUSER page since it didn't
63           work correctly, added debugging support if -DSDCC.DEBUG command line
64           option is defined
65
66 2008-02-28 Borut Razem <borut.razem AT siol.net>
67
68         * doc/sdccman.lyx: cosmetic changes
69
70 2008-02-28 Maarten Brock <sourceforge.brock AT dse.nl>
71
72         * src/mcs51/ralloc.c (fillGaps): fixed bug 1839671
73         * doc/sdccman.lyx: fixed unmeant removal of spaces
74
75 2008-02-27 Borut Razem <borut.razem AT siol.net>
76
77         * support/scripts/sdcc.nsi: corrected installation directory for
78           current user installation mode
79         * doc/README.txt: added Philipp Klaus Krause to the developers list
80
81 2008-02-27 Maarten Brock <sourceforge.brock AT dse.nl>
82
83         * src/mcs51/gen.c (genUnpackBits): don't generate ifxJump, instead return
84           ifx condition
85           (genNearPointerGet, genPagedPointerGet, genFarPointerGet,
86           genCodePointerGet, genGenPointerGet): cleanup aop before generating
87             ifxJump to fix bug 1838000
88         * src/SDCCsymt.c (aggregateToPointer): fix problem for xstack
89         * support/regression/tests/bug1838000.c: new, added
90         * device/include/mcs51/cc1110.h: new, added, thanks to Pravin Angolkar
91
92 2008-02-26 Borut Razem <borut.razem AT siol.net>
93
94         * src/SDCCast.c, doc/sdccman.lyx: fixed RFE #1901171: inerger promotion
95           of casted varargs
96         * support/scripts/sdcc.nsi: added MULTIUSER page,
97           NSIS upgraded to version 2.35
98
99 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
100
101         * src/mcs51/ralloc.c (isSpiltOnStack): fixed bug 1565152
102         * support/regression/tests/bug1565152.c: new, added
103
104 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
105
106         * src/mcs51/gen.c (genPagedPointerSet): fixed bug 1670148
107         * support/regression/ports/mcs51-xstack-auto/spec.mk: added expf.c
108         * support/regression/tests/bug1670148.c: new, added
109
110 2008-02-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
111
112         * device/include/mcs51/at89c51ed2.h: fixed bug 1901469.
113
114 2008-02-24 Borut Razem <borut.razem AT siol.net>
115
116         * src/SDCCast.c, src/SDCCast.h: fixed bug #1874922: explicit typecast
117           is ineffective for unsigned char parameter
118
119 2008-02-24 Maarten Brock <sourceforge.brock AT dse.nl>
120
121         * src/SDCCast.c (expandInlineFuncs): fixed bug 1875869
122         * src/SDCCglue.c (printIvalBitFields): fixed bug 1806631
123         * support/regression/tests/bitopcse.c: removed hc08 exception, see testfwk.h
124         * support/Util/MySystem.c (my_system): output errorcode when verbose
125
126 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
127
128         * src/z80/gen.c (genMult): Rewrote 8-bit multiplication by constant,
129           implements #1898231
130
131 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
132
133         * device/lib/z80/mul.s: Rewrote __muluchar_rrx_s, to improve 8-bit mult.,
134           implements #1896290
135
136 2008-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
137
138         * src/SDCCast.c (createIvalStruct): fixed bug 1466761
139
140 2008-02-21 Borut Razem <borut.razem AT siol.net>
141
142         * support/regression/Makefile.in,
143           support/regression/ports/ds390/spec.mk,
144           support/regression/ports/hc08/spec.mk,
145           support/regression/ports/mcs51-common/spec.mk,
146           support/regression/ports/pic14/spec.mk,
147           support/regression/ports/pic16/spec.mk,
148           support/regression/ports/ucz80/spec.mk,
149           support/regression/ports/xa51/spec.mk:
150           added CFLAGS when compiling timeout
151
152 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
153
154         * support/regression/tests/bugs-1596270-1736867.c: Regression test for
155           #1596270, #1736867
156
157 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
158
159         * src/SDCClrange.c (findPrevUse): fixed bug 1888147
160         * support/regression/tests/bug1888147.c: new, added
161
162 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
163
164         * src/z80/gen.c: fixed bugs #1596270, #1736867
165
166 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
167
168         * src/z80/gen.c: fixed bug in register pair loading when swapping register
169           contents, mostly fixes #1596270
170
171 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
172
173         * src/z80/peeph.def,
174         * src/z80/peeph-z80.def: moved peephole that breaks gbz80 to z80-specific
175           peepholes, fixes #1806565
176
177 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
178
179         * src/SDCCpeeph.c (operandBaseName): added check for @Ri
180         * src/mcs51/peeph.def (rule 177.c): added operandsNotRelated(%1 %3)
181           fixes bug 1739475, thanks Robert Larice
182           (rule 271): new, added
183
184 2008-02-18 Borut Razem <borut.razem AT siol.net>
185
186         * sim/ucsim/s51.src/Makefile.in: fixed error made in previous commit
187
188 2008-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
189
190         * src/SDCCmain.c (linkEdit): emit -z when using --debug for z80
191
192 2008-02-17 Raphael Neider <rneider AT web.de>
193
194         * src/pic16/genarith.c,
195         * src/pic16/gen.c,
196         * src/pic16/gen.h,
197         * src/pic16/genutils.c: removed unused legacy code,
198           removed unused fields from struct asmop and struct _G
199
200 2008-02-17 Raphael Neider <rneider AT web.de>
201
202         * src/pic16/gen.c (AccRsh): cosmetic changes,
203           (shiftR1Left2ResultSigned,shiftR1Left2Result,shiftL1Left2Result,
204           genRightShiftLiteral): fixed to work with SFRs as result by
205           assigning only once to result,
206           removed a lot of unused/excluded code fragments
207
208 2008-02-17 Raphael Neider <rneider AT web.de>
209
210         * device/include/pic/pic16f88.h,
211         * device/include/pic/pic16f886.h,
212         * device/include/pic/pic16f887.h: added TRISA6 and TRISA7
213
214 2008-02-17 Borut Razem <borut.razem AT siol.net>
215
216         * src/z80/peeph.def: applied patch
217           #1893626: Optimize tail calls on Z80, thanks to Philipp Krause
218         * src/z80/gen.c, src/z80/peeph.def: applied patch
219           #1893510: Improve logical left shift on Z80, thanks to Philipp Krause
220         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
221           sim/ucsim/s51.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
222           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
223           sim/ucsim/main_in.mk: renamed libutil.a to libucsimutil.a in order to
224           enable compilation on Mac OS X 10.5 (Leopard) and XCode v3.0
225
226 2008-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
227
228         * as/link/mcs51/aslink.dsp: removed SDK define
229         * as/link/z80/clean.mk: brought in sync with other ports
230         * as/link/z80/lklibr.c (SdccLib, fndsym): handle the dflag here too
231         * as/hc08/Makefile.bcc,
232         * as/mcs51/Makefile.bcc,
233         * as/z80/Makefile.bcc: noice.c was moved to as/asxxsrc/
234         * src/z80/main.c (_setValues): use the now capitalized -Z,
235           (z80_port, gbz80_port): generate debug information when asked
236
237 2008-02-16 Borut Razem <borut.razem AT siol.net>
238
239         * as/z80/asmain.c, as/z80/asm.h, as/z80/asdata.c,
240           as/link/z80/lkmain.c, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
241           as/z80/Makefile.in. as/z80/Makefile.bcc:
242           applied patch #1893393: patch for as-z80 and link-z80 to generate
243           cdb, thanks to Armin Diehl
244         * as/*/asnoice.c, as/hc08/as_hc08.dsp, as/hc08/Makefile.in,
245           as/mcs51/asx8051.dsp, as/mcs51/Makefile.in:
246           asnoice.c moved to as/asxxsrc/asnoice.c
247         * src/z80/peeph-gbz80.def: applied patch
248           #1880235: Z80 return peephole, thanks to Philipp Krause
249
250 2008-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
251
252         * .version,
253         * doc/sdccman.lyx: bumped version to 2.7.5
254         * src/SDCCsymt.c (compareType, comparePtrType): fixed bug 1281583
255
256 2008-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
257
258         * device/include/pic16/stdlib.h,
259         * device/lib/pic16/libc/stdlib/ltoa.c,
260         * device/lib/pic16/libc/stdio/vfprintf.c: ascii strings are char*
261
262 2008-02-13 Borut Razem <borut.razem AT siol.net>
263
264         * src/SDCCmain.c, src/SDCCglue.c: fixed --c1mode
265         * src/pic16/glue.c, src/SDCCast.c, src/SDCCast.h, src/SDCCBBlock.c,
266           src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c, src/SDCCloop.c,
267           src/SDCCopt.c,  src/SDCCval.c:
268           fixed bug #1890273: SDCC Warning 154 shows wrong filename
269
270 2008-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
271
272         * src/SDCCsymt.c (compareType): fixed bug 1309013
273
274 2008-02-09 Borut Razem <borut.razem AT siol.net>
275
276         * src/SDCCval.c, src/SDCCval.h:
277           code cleaning, added function constChrVal()
278         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c, src/SDCCast.c, src/SDCC.y:
279           call constChrVal() instead constVal()
280
281 2008-02-01 Maarten Brock <sourceforge.brock AT dse.nl>
282
283         * src/SDCCast.c (resolveSymbols): added reentrancy check for parameters
284           of function pointer
285         * src/SDCCerr.h,
286         * src/SDCCerr.c: changed warning W_NONRENT_ARGS to error E_NONRENT_ARGS
287         * support/regression/tests/absolute.c: added TestStruct TestVar (see also
288           bug 1859853)
289
290 2008-02-01 Raphael Neider <rneider AT web.de>
291
292         * device/include/pic/pic16f886.h,
293         * device/include/pic/pic16f887.h: added RA6 and RA7
294
295 2008-01-24 Raphael Neider <rneider AT web.de>
296
297         * device/include/pic/pic16f88.h: added RA6 and RA7
298         * device/lib/pic/libdev/disabled_pic16f886.c,
299         * device/lib/pic/libdev/disabled_pic16f887.c: renamed and enabled
300
301         * src/pic16/devices.inc,
302         * device/include/pic16/pic18f2423.h,
303         * device/include/pic16/pic18f2523.h,
304         * device/include/pic16/pic18fregs.h,
305         * device/lib/pic16/pics.all
306         * device/lib/pic16/libdev/pic18f2423.c,
307         * device/lib/pic16/libdev/pic18f2523.c: added 18f2423 and 18f2523
308         * device/lib/pic16/libio/i2c.ignore,
309         * device/lib/pic16/libio/usart.ignore,
310         * device/lib/pic16/libio/adc.ignore: ignore new devices
311
312 2008-01-23 Maarten Brock <sourceforge.brock AT dse.nl>
313
314         * src/SDCCast.c (createRMW): fixed bug 1582651
315
316 2008-01-20 Borut Razem <borut.razem AT siol.net>
317
318         * src/SDCCcse.c: partially fixed enhancement request
319           #1793872 - multiply by -1 not collapsed
320         * support/regression/tests/arithcsi.c: added regression test
321
322 2008-01-19 Maarten Brock <sourceforge.brock AT dse.nl>
323
324         * as/mcs51/asx8051.dsp: removed define SDK
325         * as/mcs51/i51mch.c (machine): fixed bug 1865114
326         * device/include/asm/ds390/features.h: fixed bug with ds390 & stack-auto
327         * as/link/lklex.c,
328         * as/link/mcs51/lkmain.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
329           cosmetic changes, brought more in sync, changed old K&R to ANSI
330
331 2008-01-13 Borut Razem <borut.razem AT siol.net>
332
333         * support/scripts/sdcc.nsi: added Uninstall/reinstall page, ...
334         * src/SDCCicode.c: fixed bug #1870216 - Error 122: dividing by zero
335
336 2007-12-30 Borut Razem <borut.razem AT siol.net>
337
338         * src/pic16/gen.c: fixed implementation of bitwise operations for
339           pic16 target
340         * support/regression/tests/bitwise.c: added test cases
341
342 2007-12-29 Borut Razem <borut.razem AT siol.net>
343
344         * src/SDCCasm.[ch]: renamed from asm[ch], use dbuf_getline(), ...
345         * src/src.dsp, src/Makefile.bcc, src/Makefile.in, src/common.h,
346           src/SDCCglue.c, src/xa51/main.c: asm.[ch] renamed to SDCCasm.[ch]
347         * support/Util/dbuf_string.[ch]: added function dbuf_getline()
348         * src/ds390/gen.c, src/hc08/gen.c, src/mcs51/gen.c, src/pic16/gen.c,
349           src/pic/gen.c, src/z80/gen.c, src/xa51/gen.c, src/pic16/ralloc.c,
350           src/pic16/pcode.[ch]: added const qualifier
351         * as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
352           as/mcs51/Makefile.bcc, as/mcs51/Makefile.in, as/mcs51/asx8051.dsp,
353           as/z80/Makefile.bcc, as/z80/Makefile.in, as/z80/as_gbz80.dsp,
354           as/z80/as_z80.dsp: added dbuf.[ch] and dbuf_string[ch] to project
355         * as/asxxsrc/aslex.c: use dbuf_getline()
356         * as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/asm.h, as/hc08/m08adr.c,
357           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/asm.h,
358           as/mcs51/i51adr.c, as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c,
359           as/z80/asm.h, as/z80/z80adr.c:
360           changed type of ib and ip to const char *
361
362 2007-12-28 Borut Razem <borut.razem AT siol.net>
363
364         * as/asxxsrc/aslex.c: moved from as/mcs51/aslex.c;
365           introduced (readlin) - long lines are turuncated
366         * as/hc08/as_hc08.dsp, as/mcs51/asx8051.dsp, as/z80/as_gbz80.dsp,
367           as/z80/as_z80.dsp, as/hc08/Makefile.in, as/mcs51/Makefile.in,
368           as/z80/Makefile.in: moved aslex.c to asxxsrc
369         * as/hc08/aslex.c, as/z80/aslex.c: deleted
370         * as/hc08/asmain.c, as/mcs51/asmain.c:
371           added missing initialization of a_addr field
372         * support/regression/tests/long_asm_line.c: added regtest for long
373           assembler line
374
375 2007-12-22 Borut Razem <borut.razem AT siol.net>
376
377         * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
378
379 2007-12-20 Maarten Brock <sourceforge.brock AT dse.nl>
380
381         * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang
382
383 2007-12-16 Borut Razem <borut.razem AT siol.net>
384
385         * device/include/pic16/stdbool.h: removed, since already exists in
386          device/include/; this also fixes bitopcse.c regression test for pic16
387          target
388         * support/regression/fwk/inclusw/testfwk.h: added macro ASSERT_FAILED
389         * src/pic16/glue.c: fixed bug #1851855: generic static pointer
390           dereference doesn't work; covered by regression test bug1399290
391
392 2007-12-05 Borut Razem <borut.razem AT siol.net>
393
394         * doc/sdccman.lyx: fixed bug #1844509 - Correction to Manual 4.6.9
395           Adding new PIC16
396
397 2007-12-01 Borut Razem <borut.razem AT siol.net>
398
399         * sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/mem.cc:
400           corrected handling of the highest_valid_address
401
402 2007-11-17 Raphael Neider <rneider AT web.de>
403
404         * src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
405         * src/pic/glue.c (picglue): emit .file if --debug is given
406
407 2007-11-17 Raphael Neider <rneider AT web.de>
408
409         * src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
410         care when left or right operand resides in result, fixes #1830220
411
412 2007-11-17 Borut Razem <borut.razem AT siol.net>
413
414         * src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
415           #983491 - "Merge duplicate strings function is ineffective"
416         * support/regression/tests/bug-983491.c: regtest disabled
417         * as/asxxsrc: created
418           as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
419           as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
420           as/z80/assym.c, as/hc08/asstore.c, as/mcs51/asstore.c: deleted
421           as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
422           as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
423           as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
424           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
425           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
426           as/link/z80/linkz80.dsp, as/mcs51/Makefile.bcc, as/mcs51/Makefile.in,
427           as/mcs51/asm.h, as/mcs51/asx8051.dsp, as/z80/Makefile.bcc,
428           as/z80/Makefile.in, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
429           as/z80/Makefile.as_hc08, as/mcs51/Makefile.asx8051: modified
430           created as/asxxsrc directory, assym.c and strcpi.c moved into it
431
432 2007-11-15 Maarten Brock <sourceforge.brock AT dse.nl>
433
434         * device/include/stdarg.h: added and removed some casts
435         * src/SDCCsymt.c (compareType): Fully check types between generic and
436           non-generic pointers, also accept ptr-ptr to void-ptr assignments
437
438 2007-11-13 Borut Razem <borut.razem AT siol.net>
439
440         * support/regression/tests/bug-1817005.c:
441           added regtest for bug #1817005 - as-z80 chokes on long labels
442
443 2007-11-12 Borut Razem <borut.razem AT siol.net>
444
445         * as\z80\asmain.c, as\z80\asm.h, as\z80\assym.c, as\z80\asdata.c,
446           as\z80\asout.c, as\z80\aslist.c:
447           fixed bug #1817005 - as-z80 chokes on long labels
448
449 2007-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
450
451         * as/hc08/asmain.c,
452         * as/z80/asmain.c: cosmetic changes
453         * as/hc08/alloc.h,
454         * as/mcs51/alloc.h,
455         * as/z80/alloc.h: removed
456         * as/hc08/assym.c,
457         * as/mcs51/assym.c: replaced alloc.h with stdlib.h
458         * as/link/aslink.h: added LKDIRSEP and, LKDIRSEPSTR
459         * as/link/hc08/Makefile.in,
460         * as/link/mcs51/Makefile.in,
461         * as/link/z80/Makefile.in: added -DUNIX to CFLAGS
462         * as/link/lklex.c,
463         * as/link/mcs51/lkarea.c,
464         * as/link/mcs51/lkmain.c: cosmetic changes
465         * as/link/hc08/lklibr.c,
466         * as/link/z80/lklibr.c,
467         * as/link/mcs51/lklibr.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
468           used cygwin_conv_to_full_posix_path,
469           added warnings, cosmetic changes, brought more in sync
470           changed old K&R into ANSI function declarations
471         * as/link/z80/lklibr.c (loadAdb): added
472         * as/link/z80/lkmain.c: removed -- option from usage text
473
474 2007-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
475
476         * src/mcs51/gen.c (outBitC): optimized for no result
477
478 2007-10-31 Borut Razem <borut.razem AT siol.net>
479
480         * src/SDCCsymt.c: fixed (hopeful properly) bug
481           #1805702 - order of extern matters
482         * support/regression/tests/bug-1805702.c: enabled regtest for bug
483           #1805702
484
485 2007-10-29 Borut Razem <borut.razem AT siol.net>
486
487         * src/SDCCsymt.c: reverted bad fixed of bug #1805702
488           - order of extern matters
489         * support/regression/tests/bug-1805702.c: disabled regtest for bug
490           #1805702
491
492 2007-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
493
494         * src/ds390/peeph.def: replaced 24bitModeAndPortDS390 by
495           24bitMode, portIsDS390
496         * src/mcs51/gen.c (genOr): optimized for RFE 1750727
497         * src/SDCCpeeph.c (flat24bitModeAndPortDS390): removed
498           (notVolatileVariable): also check sloc names,
499           (callFuncByName): moved ftab[] out of function and sorted it by use
500
501 2007-10-28 Maarten Brock <sourceforge.brock AT dse.nl>
502
503         * device/include/stdarg.h: fixed bug in va_start macro for --xstack
504         * src/hc08/gen.c (aopForRemat): aop->aopu.aop_immd.from_cast_remat not set,
505           aop->aopu.aop_immd.aop_immd2 not filled with (generic) pointer type
506         * src/SDCCicode.c (geniCodeCast): fixed bug 880197
507         * support/regression/tests/bug-880197.c: new, added
508
509 2007-10-28 Borut Razem <borut.razem AT siol.net>
510
511         * support/regression/Makefile.in,
512           support/regression/ports/mcs51-large/spec.mk,
513           support/regression/ports/mcs51-xstack-auto/spec.mk,
514           support/regression/ports/mcs51-stack-auto/spec.mk,
515           support/regression/ports/mcs51-medium/spec.mk,
516           support/regression/ports/mcs51-common/spec.mk,
517           support/regression/ports/mcs51-common/*,
518           support/regression/ports/mcs51-small/*:
519           mcs51 renamed to mcs51-common, created mcs51-small
520         * src/SDCCsymt.c: fixed bug #1805702 - order of extern matters
521         * support/regression/tests/bug-1805702.c: added regtest for bug
522           #1805702
523
524 2007-10-26 Maarten Brock <sourceforge.brock AT dse.nl>
525
526         * src/mcs51/peeph.def: moved rules 257.x to 253.x and re-enabled 253.b,
527           added new rules 265 - 270
528         * support/regression/tests/bug1721024.c:new, added
529         * support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
530           introduced new test-mcs51 to run all mcs51 tests
531
532 2007-10-25 Maarten Brock <sourceforge.brock AT dse.nl>
533
534         * support/regression/tests/bug1816470.c: new, added
535
536 2007-10-21 Maarten Brock <sourceforge.brock AT dse.nl>
537
538         * src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
539           propagate for *,+,- with float, fixed bug 1816470
540           (decorateType): cast to resultTypeProp instead of resultType
541
542 2007-10-19 Borut Razem <borut.razem AT siol.net>
543
544         * src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
545           function is ineffective" for pic16 tareget
546         * support/scripts/listerr.c: corrected include path
547         * device/lib/_itoa.c: fixed bug #1806402 - _itoa and _uitoa leak to
548           adjacent memory
549
550 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
551
552         * support/regression/tests/using.c: new, added
553         * support/regression/tests/vaargs.c: fixed and enabled test
554
555 2007-10-18 Borut Razem <borut.razem AT siol.net>
556
557         * src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
558           is ineffective
559         * support/regression/tests/bug-983491.c: added regtest for bug #983491
560
561 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
562
563         * doc/sdccman.lyx: documented option --Werror
564         * src/SDCCsymt.c (checkFunction): fixed bug 1815418 by setting
565           RegBankUsed[] earlier
566
567 2007-10-14 Maarten Brock <sourceforge.brock AT dse.nl>
568
569         * device/include/mcs51/p89lpc938.h: new, added, thanks Kyle Guinn
570         * src/pic/glue.c,
571         * src/SDCCval.c,
572         * src/SDCCast.c,
573         * src/SDCCast.h: replaced AST_LIT_VALUE with AST_FLOAT_VALUE and
574           AST_ULONG_VALUE
575         * src/SDCCast.c (decorateType): improved optimization of tri-op
576         * src/SDCCerr.c (vwerror, setWError),
577         * src/SDCCerr.h,
578         * src/SDCCmain.c (parseCmdLine): added option --Werror to treat all
579           warnings as errors, thanks Stas Sergeev for PATCH 1813211
580
581 2007-10-13 Maarten Brock <sourceforge.brock AT dse.nl>
582
583         * src/mcs51/gen.c (leftRightUseAcc): use macro IS_OP_ACCUSE
584         * src/SDCCast.c (decorateType): optimize bit=cond?1:0, RFE 1738430
585         * support/regression/tests/bug-223113.c,
586         * support/regression/tests/bug-426632.c,
587         * support/regression/tests/bug-468811.c,
588         * support/regression/tests/bug-477835.c,
589         * support/regression/tests/bug-478094.c,
590         * support/regression/tests/bug-499644.c,
591         * support/regression/tests/bug-524209.c,
592         * support/regression/tests/bug-524211.c,
593         * support/regression/tests/packcast.c,
594         * support/regression/tests/structidx.c: added empty tests
595         * support/regression/tests/bug-607243.c: enabled test
596
597 2007-10-06 Borut Razem <borut.razem AT siol.net>
598
599         * .version, doc/sdccman.lyx: bumped version to 2.7.4 to indicate the full
600            support of universal binaries on Mac OS X
601
602 2007-10-02 Borut Razem <borut.razem AT siol.net>
603
604         * src/SDCCval.h: unified double2ul macro for all platforms
605         * src/SDCCval.c: fixed bug #1777758 - applied Maarten's patch
606         * support/regression/tests/bitwise.c: added regtest for bug #1777758
607
608 2007-09-30 Borut Razem <borut.razem AT siol.net>
609
610         * src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
611           platforms
612         * sdcc_vc_in.h: enabled warnings
613         * src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
614           unsigned type, result still unsigned
615         * src/mcs51/peep.c: fixed gcc warning: suggest parentheses around && within ||
616
617 2007-09-28 Raphael Neider <rneider AT web.de>
618
619         * src/pic/device.c (find_device): prevent buffer underflow error
620         * src/pic/pcoderegs.c (OptimizeRegUsage): avoid dereferencing
621           the just destroyed list entry
622
623 2007-09-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
624
625         * doc/sdccman.lyx: there's a dedicated wiki page for cmake and sdcc, thanks
626           Alexander Neundorf
627
628 2007-09-18 Borut Razem <borut.razem AT siol.net>
629
630         * src/SDCCval.c: fixed MSVC warning C4146: unary minus operator
631          applied to unsigned type, result still unsigned
632
633 2007-09-17 Borut Razem <borut.razem AT siol.net>
634
635         * src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c,
636           src/SDCCicode.c, src/SDCCopt.c, src/SDCCsymt.c, src/SDCCval.c,
637           src/SDCCval.h, src/hc08/gen.c, src/avr/gen.c, src/ds390/gen.c,
638           src/mcs51/gen.c, src/pic/gen.c, src/pic/genarith.c, src/pic/glue.c,
639           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/genarith.c,
640           src/pic16/genutils.c, src/pic16/glue.c, src/pic16/main.c,
641           src/z80/gen.c, src/z80/ralloc.c:
642           fixed bug #1739860 - sdcc does not work correctly on some platforms
643           (not finished)
644           introduced and used ulFromVal(), double2ul(), used strtod() instead sscanf()
645
646 2007-09-17 Raphael Neider <rneider AT web.de>
647
648         * src/pic16/device.c: reverted to previous version
649         * device/lib/pic16/Makefile.common.in: quieten gpasm via -Wa,-q
650
651 2007-09-16 Raphael Neider <rneider AT web.de>
652
653         * src/pic16/device.c (pic16_dump_usection): do not reserve 0 bytes,
654           as this raises a ton of gpasm warnings, just emit a second label
655         * src/pic16/devices.inc,
656         * device/lib/pic16/pics.all,
657         * device/lib/pic16/libdev/pic18f2585.c,
658         * device/lib/pic16/libdev/pic18f2680.c,
659         * device/lib/pic16/libdev/pic18f2682.c,
660         * device/lib/pic16/libdev/pic18f2685.c,
661         * device/lib/pic16/libdev/pic18f4585.c,
662         * device/lib/pic16/libdev/pic18f4680.c,
663         * device/lib/pic16/libdev/pic18f4682.c,
664         * device/lib/pic16/libdev/pic18f4685.c,
665         * device/include/pic16/pic18f2585.h,
666         * device/include/pic16/pic18f2680.h,
667         * device/include/pic16/pic18f2682.h,
668         * device/include/pic16/pic18f2685.h,
669         * device/include/pic16/pic18f4585.h,
670         * device/include/pic16/pic18f4680.h,
671         * device/include/pic16/pic18f4682.h,
672         * device/include/pic16/pic18f4685.h,
673         * device/include/pic16/pic18fregs.h: added 18f2585, 18f2680,
674           18f2682, 18f2685, 18f4585, 18f4680, 18f4682, 18f4685,
675           patch contributed by Anton Strobl, applied with changes
676
677 2007-09-16 Raphael Neider <rneider AT web.de>
678
679         * device/include/pic16/pic18f2431.h,
680         * device/include/pic16/pic18f25j10.h,
681         * device/include/pic16/pic18f4431.h,
682         * device/include/pic16/pic18f45j10.h: adopted common include style
683         * device/include/pic16/pic18f1320.h,
684         * device/include/pic16/pic18f2320.h,
685         * device/include/pic16/pic18f2525.h,
686         * device/include/pic16/pic18f4320.h,
687         * device/include/pic16/pic18f4525.h: NEW, just include proper .h file
688         * device/include/pic16/pic18fregs.h: prepared for automatic include
689           file selection by having DEVICE.h for every DEVICE
690         * device/lib/pic16/libdev/pic18f2320.c,
691         * device/lib/pic16/libdev/pic18f4320.c: just include proper .c file
692
693         * device/lib/pic16/configure.in,
694         * device/lib/pic16/configure: use rm -rf instead of rmdir
695         * device/lib/pic16/Makefile.in: use RMDIR to remove build directories
696         * device/lib/pic16/libc/stdlib/free.c: avoid warning on pointer cast
697
698 2007-09-09 Borut Razem <borut.razem AT siol.net>
699
700         * src/SDCCmain.c, src/SDCCutil.c: print newline after printVersionInfo(),
701           distingush between i386 and ppc Mac OS X versions
702
703 2007-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
704
705         * src/mcs51/gen.c (genReceive): fixed bug 1788177
706         * support/regression/tests/bug1788177.c: new, added
707
708 2007-09-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
709
710         * doc/sdccman.lyx: mentioned d52 and cmake, customizing startup code
711         * device/include/mcs51/lint.h added keyword __naked
712
713 2007-09-04 Maarten Brock <sourceforge.brock AT dse.nl>
714
715         * src/pic16/glue.c,
716         * src/pic/glue.c,
717         * src/SDCCmem.h: removed maxRegBank
718         * src/SDCCmem.c (allocVariables): removed maxRegBank and moved setting
719           RegBankUsed[] to checkFunction() in SDCCsymt.c to fix bug 1759839
720         * src/SDCCsymt.c (checkFunction): set RegBankUsed[] here
721         * src/mcs51/peep.c (isCallerSaveFunc, termScanAtFunc): changed function
722           name and behaviour to handle banked functions
723           (scan4op): and use it to fix bug 1786213
724
725 2007-09-03 Raphael Neider <rneider AT web.de>
726
727         * device/include/pic16/pic18f248.h,
728         * device/include/pic16/pic18f258.h,
729         * device/include/pic16/pic18f448.h,
730         * device/lib/pic16/libdev/pic18f248.c,
731         * device/lib/pic16/libdev/pic18f258.c,
732         * device/lib/pic16/libdev/pic18f448.c: fixed TRISEbits,
733           added T0CONbits, fixes #1786891
734
735 2007-08-29 Maarten Brock <sourceforge.brock AT dse.nl>
736
737         * src/ds390/gen.c (genFarPointerSet),
738         * src/hc08/ralloc.c (packRegisters),
739         * src/mcs51/ralloc.c (packRegisters),
740         * src/SDCCcse.c (cseBBlock): check if result is a symbol first to fix
741           bug 1750318
742         * src/SDCCicode.h: POINTER_SET can be true for literals too
743         * support/regression/tests/bug1750318.c: new, added
744
745 2007-08-23 Borut Razem <borut.razem AT siol.net>
746
747         * debugger/mcs51/sdcdb.c: fixed compilation with older readline
748           library versions without the completition functionality
749
750 2007-08-22 Raphael Neider <rneider AT web.de>
751
752         * device/include/pic16/pic18f1220.h,
753         * device/lib/pic16/libdev/pic18f1220.c: applied patch #1776191
754
755 2007-08-12 Borut Razem <borut.razem AT siol.net>
756
757         * debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
758
759 2007-08-11 Borut Razem <borut.razem AT siol.net>
760
761         * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
762           src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
763           support/Util/SDCCerr.[ch] moved to src
764         * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
765           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
766           device/examples/ds390/tinitalk/tinitalk.dsp,
767           device/examples/serialcomm/windows/serialcomm.dsp,
768           support/librarian/librarian.dsp:
769           removed linking of unused odbc32.lib and odbccp32.lib
770         * support/scripts/winres.h:
771           added for compilation with Visual C++ 2005 Express Edition
772
773 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
774
775         * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
776           and CKCON1.
777
778 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
779
780         * sdccconf_in.h: update the endian test so that SPARC Solaris
781           does not throw syntax errors
782
783 2007-08-06 Borut Razem <borut.razem AT siol.net>
784
785         * doc/sdccman.lyx: removed two index entries which prevented the
786           generation of sdcc doc archive
787
788 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
789
790         * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
791           instead of lyx 1.5.0.
792
793 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
794
795         * device/include/hc08/mc68hc908apxx.h: new header contributed by
796           Lucas Loizaga, with minor modifications. Thanks!
797
798 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
799
800         * doc/sdccman.lyx: Documented --acall-ajmp and described new features
801           in sdcclib.
802
803 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
804
805         * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
806           src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
807           with acall/ajmp.
808
809 2007-07-22 Borut Razem <borut.razem AT siol.net>
810
811         * configure.in, configure: re-introduced .version
812         * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
813           the version reverted to 2.7.0
814
815 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
816
817         * configure.in,
818         * doc/sdccman.lyx: bumped version to 2.7.3
819         * device/include/mcs51/compiler.h: fixed elif->else
820         * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
821         * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
822           (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
823            enable accuse for bit operands
824         * src/SDCCmain.c (printVersionInfo),
825         * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
826           environment descriptor
827         * src/SDCCutil.h: added getBuildEnvironment
828         * src/SDCCglue.c (initialComments): use getBuildEnvironment
829         * support/regression/tests/bug1464657.c: enabled test test_Peephole251
830         * support/regression/tests/bug-408972.c: enabled test leftShiftLong
831         * support/regression/tests/bug1348008.c,
832         * support/regression/tests/bug1496419.c,
833         * support/regression/tests/bug1503067.c,
834         * support/regression/tests/preproc.c: added empty tests
835
836 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
837
838         * support/regression/tests/bug1678803.c: new, added
839
840 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
841
842         * as/link/aslink.h,
843         * as/link/hc08/lkihx.c,
844         * as/link/hc08/lkrloc.c,
845         * as/link/mcs51/lkihx.c,
846         * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
847           ihxExtendedLinearAddress
848         * as/link/mcs51/lkrloc.c (relr),
849         * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
850           acall/ajmp, see bug 830513
851
852 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
853
854         * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
855           (cseBBlock): remember aggr2ptr has been used
856         * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
857           (geniCodeAssign): fixed bug 868103
858         * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
859           added operandSize prototype
860         * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
861           (genDataPointerSet): use max of size of right and result,
862           (gencjne): added parameter useCarry for optimization,
863           (genCmpEq): use carry if appropriate,
864           (genXor): check if operand already in carry
865         * support/regression/tests/bug-868103.c: enabled test
866
867 2007-07-12 Raphael Neider <rneider AT web.de>
868
869         * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
870
871 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
872
873         * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
874           from Robert Larice, thanks
875         * support/regression/tests/bitopcse.c,
876         * support/regression/tests/bitvars.c,
877         * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
878         * support/regression/tests/bug-927659.c: enabled test for z80
879         * support/regression/tests/bug1738367.c: added extra tests by Frieder
880         * support/regression/tests/bug1745717.c: new, added
881         * support/regression/tests/literalop.c,
882         * support/regression/tests/nullstring.c: removed storage definitions that
883           are now in testfwk.h
884
885 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
886
887         * device/include/stdbool.h: do not define __bool_true_false_are_defined
888           and bool for targets that do not fully support it.
889         * support/regression/tests/bug1546986.c,
890         * support/regression/tests/bug1723128.c,
891         * support/regression/tests/bug1734654.c,
892         * support/regression/tests/bug1738367.c,
893         * support/regression/tests/constantRange.c: only use bool if allowed
894
895 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
896
897         * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
898           Larice, also handle function pointers
899         * support/regression/tests/bug1749275.c: new, added
900
901 2007-07-03 Borut Razem <borut.razem AT siol.net>
902
903         * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
904           src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
905           #1746528: SDCC should ignore ':' in inline assembler comments
906         * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
907
908 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
909
910         * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
911         * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
912
913 2007-06-29 Borut Razem <borut.razem AT siol.net>
914
915         * src/SDCCmain.c: fixed bug
916           #1744746: SDCC #4867: broken option --xram-size
917
918 2007-06-28 Borut Razem <borut.razem AT siol.net>
919
920         * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
921           find out the endianess of host machine for ucsim
922
923 2007-06-27 Borut Razem <borut.razem AT siol.net>
924
925         * support/regression/generate-cases.py: corrected the file name
926           in warning
927         * configure.in, configure, sdccconf_in.h: find out the endianess of
928           host machine
929         * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
930           negative size
931
932 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
933
934         * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
935
936 2007-06-26 Borut Razem <borut.razem AT siol.net>
937
938         * support/regression/generate-cases.py: display warning if function
939           list is empty; implemented more flexible rule for detection of
940           testing functions, allowing return type 'void' in the same line as
941           the function name in the function definition
942         * support/regression/tests/bug-1654060.c: corrected test
943         * support/librarian/sdcclib.c: fixed warning:
944           format '%s' expects type 'char *', but argument 2 has type 'int'
945
946 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
947
948         * support/librarian/sdcclib.c: Added feature Requests [1510635]
949           Multiple infiles for sdcclib.
950
951 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
952
953         * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
954           bug 1731741
955
956 2007-06-18 Borut Razem <borut.razem AT siol.net>
957
958         * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
959           how to handle comments, so they have to be removed by the
960           preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
961         * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
962           src/pic16/main.c, src/pic/main.c, src/z80/main.c,
963           support/Util/SDCCerr.c, support/Util/SDCCerr.h:
964           table driven option hadling
965
966 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
967
968         * src/SDCCast.c (decorateType),
969         * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
970           iCode to ast level to fix bug 1738367
971         * support/regression/tests/bug1738367.c: new, added
972
973 2007-06-15 Raphael Neider <rneider AT web.de>
974
975         * src/pic16/devices.inc,
976         * device/lib/pic16/pics.all,
977         * device/include/pic16/pic18fregs.h,
978         * device/include/pic16/pic18f[24][45]20.h,
979         * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
980           18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
981         * device/lib/pic16/Makefile.in: faster cleanup
982
983 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
984
985         * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
986
987 2007-06-13 Raphael Neider <rneider AT web.de>
988
989         * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
990
991 2007-06-12 Raphael Neider <rneider AT web.de>
992
993         * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
994           suppress bit defines if NO_BIT_DEFINES is #define'd
995         * device/include/pic/pic*.h: recreated all headers to include
996           conditional bit defines
997         * device/include/pic/pic16f886.h,
998         * device/include/pic/pic16f887.h: fixed based on newer .inc file
999         * device/include/pic/recreate.sh: script to recreate the complete
1000           device library files based on the currently supported devices
1001
1002 2007-06-12 Borut Razem <borut.razem AT siol.net>
1003
1004         * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
1005           support/regression/Makefile.in, support/scripts/build.mak,
1006           support/scripts/Makefile.snapshot:
1007           use new svn URL scheme
1008         * doc/sdccman.lyx: SDCC Wiki moved to
1009           http://sdcc.wiki.sourceforge.net/
1010
1011 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1012
1013         * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
1014         * support/regression/tests/bug1734654.c: added
1015
1016 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
1017
1018         * src/SDCCast.c (decorateType): optimized '?' for equal operands
1019         * src/SDCCicode.c (geniCodeConditional): optimization for bit result
1020           with literal operands
1021
1022 2007-06-10 Borut Razem <borut.razem AT siol.net>
1023
1024         * as/link/z80/lklibr.c: fixed mingw build warning
1025           lklibr.c:575: warning: implicit declaration of function 'tolower'
1026         * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
1027           src/z80/main.c: move target specific options from src/SDCCmain.c
1028           to src/<target>/main.c
1029
1030 2007-06-09 Borut Razem <borut.razem AT siol.net>
1031
1032         * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
1033           removed unused swap_sense; removed outBitCLong, replaced with outBitC
1034         * support/regression/tests/bug-1294691.c: added
1035
1036 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
1037
1038         * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
1039           can also be static, fixes bug 1733438
1040         * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
1041           have absolute address too
1042           (computeType): added optimization for 'cond ? true : false'
1043         * support/regression/tests/absolute.c: added test for static absolute var
1044
1045 2007-06-08 Raphael Neider <rneider AT web.de>
1046
1047         * src/regression/Makefile: suppress parallel builds, allow easy
1048           switching between pic14/pic16 ports
1049         * src/regression/picregs.h: added pic14/16 header file switch
1050         * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
1051           inline.c,nestfor.c,string1.c}: include "picregs.h"
1052
1053 2007-06-07 Borut Razem <borut.razem AT siol.net>
1054
1055         * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
1056           permanent solution to suppress GCC 4.2.0 c++ warning:
1057           deprecated conversion from string constant to `char *'
1058           use 'const char *' where ever required
1059         * support/regression/generate-cases.py: implemented more flexible rule
1060           for detection of testing functions, allowing white-spaces surrounding
1061           the function name and the 'void' parameter.
1062         * support/regression/tests/constantRange.c,
1063           support/regression/tests/scott-compare3.c: fixed failing regression
1064           tests, uncovered by implementation of more flexible rule for detection
1065           of testing functions
1066
1067 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
1068
1069         * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
1070
1071 2007-06-04 Borut Razem <borut.razem AT siol.net>
1072
1073         * configure.in, configure, config_vc.awk: sdcc version number is now
1074           stored in configure.in; removed .version
1075         * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
1076           doc/INSTALL.txt: version bumped to 2.7.2
1077         * sim/ucsim/configure.in, sim/ucsim/configure:
1078           use "read" to read from .version
1079
1080 2007-06-03 Borut Razem <borut.razem AT siol.net>
1081
1082         * */Makefile.in: removed annoying warning:
1083           Makefile:xx: Makefile.dep: No such file or directory
1084
1085 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
1086
1087         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
1088           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
1089         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
1090         * src/SDCCast.c (resultTypePropagate): propagate for '!',
1091           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
1092           bugfix: only use newBoolLink for bit result type
1093         * src/SDCCicode.c (geniCodeLogic): added param tree,
1094           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
1095           (geniCodeLogicAndOr): use IS_BIT,
1096           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
1097           (ast2iCode): added tree param to geniCodeLogic for comparisons
1098         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
1099         * support/regression/tests/bug1723128.c: added test NotZero
1100
1101 2007-06-01 Borut Razem <borut.razem AT siol.net>
1102
1103         * SDCPP synchronized with GCC CPP release version 4.2.0,
1104           currently the latest release:
1105         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1106           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
1107           support/cpp2/cppdefault.h, support/cpp2/except.h,
1108           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
1109           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
1110           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
1111           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
1112           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
1113           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
1114           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
1115           support/cpp2/opts.h, support/cpp2/output.h,
1116           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
1117           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
1118           support/cpp2/system.h, support/cpp2/version.c,
1119           support/cpp2/Makefile.in: modified
1120         * support/cpp2/opts-common.c: added
1121         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
1122         * device/lib/pic16/libdev/pic18f[24]5j10.c:
1123           search for included source file in local directory
1124         * sim/ucsim/configure, sim/ucsim/configure.in:
1125           temporary solution to suppress GCC 4.2.0 c++ warning:
1126           deprecated conversion from string constant to `char *'
1127
1128 2007-06-01 Raphael Neider <rneider AT web.de>
1129
1130         * device/lib/pic/libdev/pic12f683.c,
1131         * device/include/pic/pic12f683.h: added GPIO bits
1132
1133 2007-06-01 Raphael Neider <rneider AT web.de>
1134
1135         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
1136           quotation marks, clarified role of PIC14 vs. PIC16 ports
1137         * src/pic16/devices.inc,
1138         * device/include/pic16/pic18fregs.h,
1139         * device/include/pic16/pic18f[24][45]j10.h,
1140         * device/lib/pic16/pics.all,
1141         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
1142           18f24j10, 18f25j10, 18f44j10, and 18f45j10
1143         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
1144           for new devices as they are not yet supported by gputils
1145
1146 2007-05-31 Borut Razem <borut.razem AT siol.net>
1147
1148         * Small Device C Compiler 2.7.0 released
1149         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
1150           changed sdcc version to 2.7.1
1151         * support/scripts/sdcc.nsi: added How to create WIN32 release
1152           setup.exe package
1153
1154 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
1155
1156         * doc/sdccman.lyx: documented initialization and allocation of absolute
1157           variables, bit parameter passing, the need for function pointers to be
1158           reentrant and alpha quality support of inline and retrict
1159
1160 2007-05-26 Borut Razem <borut.razem AT siol.net>
1161
1162         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
1163           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
1164         * docs/knownbugs.html: updated
1165
1166 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
1167
1168         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
1169           thanks Jan Waclawek
1170         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
1171           AOP_CRY and ruonly
1172           (gencjneshort): optimized when left is AOP_DIR
1173         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
1174           initializing unions in a struct/array
1175         * support/regression/fwk/include/testfwk.h: added defines for data, near
1176           and far for host and z80
1177         * support/regression/tests/bug1723128.c: new, added
1178
1179 2007-05-22 Borut Razem <borut.razem AT siol.net>
1180
1181         * doc/knownbugs.html: updated
1182
1183 2007-05-21 Raphael Neider <rneider AT web.de>
1184
1185         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
1186           error message instead
1187         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
1188
1189 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
1190
1191         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
1192
1193 2007-05-21 Raphael Neider <rneider AT web.de>
1194
1195         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
1196           closes #1722392
1197         * src/regression/gpsim_assert.h,
1198         * src/regression/Makefile,
1199         * src/regression/pcodeopt.c: regression test for the above fix
1200
1201 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
1202
1203         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
1204           jumps to self, fixed bug 1717281
1205
1206 2007-05-10 Borut Razem <borut.razem AT siol.net>
1207
1208         * support/scripts/gen_known_bugs.pl: cosmetic fix
1209         * doc/knownbugs.html: generated by gen_known_bugs.pl
1210
1211 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1212
1213         * src/SDCCast.c (createFunction): also generate non-inlined version of
1214           function for functions declared as "static inline"
1215         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
1216           function can be inlined after non-inlined version generated.
1217
1218 2007-05-10 Borut Razem <borut.razem AT siol.net>
1219
1220         * support/scripts/gen_known_bugs.pl: added script
1221           which generates knownbugs.html
1222
1223 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
1224
1225         * doc/knownbugs.html: updated for release 2.7.0
1226
1227 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1228
1229         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
1230
1231 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
1232
1233         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
1234           (throughout): updated generating comments
1235         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
1236           (throughout): updated generating comments
1237         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
1238           rule instead of at the second, or it might skip lines when removing the
1239           complete match
1240         * support/regression/tests/bug1714204.c: changed test to foo
1241
1242 2007-05-08 Borut Razem <borut.razem AT siol.net>
1243
1244         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
1245           thanks to SDCC Distributed Compile Farm members,
1246           added Z80 and GBZ80 command line options
1247         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
1248
1249 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
1250
1251         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
1252         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
1253         * support/regression/tests/longlit.c: modified to be tested at all and
1254           to pass the actual test
1255
1256 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1257
1258         * device/include/mcs51/uPSD33xx.h: Added.
1259
1260 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
1261
1262         * device/lib/_gptrput.c,
1263         * device/lib/_gptrget.c: removed old code,
1264          (_gptrgetWord),
1265         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
1266         * support/regression/tests/bug1714204.c: new, added
1267
1268 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1269
1270         * support/regression/tests/regtrack.c: test was never executed
1271           because of the regression test being picky about white spaces.
1272         * device/lib/mcs51/crtclear.asm: added comment
1273
1274 2007-05-06 Raphael Neider <rneider AT web.de>
1275
1276         * device/lib/pic/Makefile.rules,
1277         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
1278           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
1279
1280 2007-05-06 Raphael Neider <rneider AT web.de>
1281
1282         * src/pic16/device.h,
1283         * src/pic16/main.h,
1284         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
1285           _pic16_setDefaultOptions): removed/reordered command-line args
1286         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
1287           devices, regrouped command line args, environment variables),
1288           clarified sone points, added sections on how to add devices to the
1289           PIC14/PIC16 ports
1290
1291 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
1292
1293         * src/z80/peeph.def: fixed bug in rule 2
1294
1295 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
1296
1297         * src/port.h: added TARGET_MCS51_LIKE
1298         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
1299           take advantage of it too
1300         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
1301           (shiftR2Left2Result): Optimized: don't check shifting by 0
1302         * src/z80/peeph-z80.def,
1303         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
1304           modifications, see patch 1700823
1305         * src/mcs51/peep.c (): fixed bug 1712928
1306         * support/regression/tests/bug1712928.c: new, added
1307
1308 2007-05-05 Borut Razem <borut.razem AT siol.net>
1309
1310         * device/lib/pic16/Makefile.common.in,
1311           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
1312           removed bash dependencies
1313
1314 2007-05-01 Borut Razem <borut.razem AT siol.net>
1315
1316         * src/SDCCicode.c:
1317           fixed bug #1710507: --i-code-in-asm makes compile fail
1318           all iCode comments are now one liners
1319         * src/mcs51/gen.c: fixed memory leak
1320
1321 2007-05-01 Raphael Neider <rneider AT web.de>
1322
1323         * device/lib/pic/libdev/*.c
1324         * device/include/pic/*.h: regenerated all device libs from updated
1325           .inc files
1326         * support/scripts/inc2h.pl: documented usage, now uses strict to
1327           catch more bugs
1328
1329 2007-04-30 Borut Razem <borut.razem AT siol.net>
1330
1331         * doc/sdccman.lyx:
1332           fixed bug #1669175: Problem with space in output paths
1333           documented how to use paths with spaces for Windows users
1334
1335 2007-04-29 Borut Razem <borut.razem AT siol.net>
1336
1337         * Fixed svn:eol-style and svn:keywords properties
1338         * src/SDCCval.c: fixed bug
1339           #1592871: Segfault with "large" const arrays of characters
1340           replaced recursion with iteration
1341         * Removed svn:executable property from non-executable files
1342
1343 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
1344
1345         * src/mcs51/gen.c (genRet): fixed bug 1707003
1346
1347 2007-04-27 Raphael Neider <rneider AT web.de>
1348
1349         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
1350           createReachingDefinitions,assignValnums,pic16_destructDF,
1351           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
1352           prevent NULL pointer dereferences
1353         * device/lib/pic/libdev/pic16f886.c,
1354         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
1355           prevent building them, gputils do not really support them yet
1356
1357 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1358
1359         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
1360           helps printf_small. 32 bytes more __idata mem.
1361
1362 2007-04-27 Raphael Neider <rneider AT web.de>
1363
1364         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
1365           return early when pb or pb->pcHead is NULL (patch #1708427)
1366         * src/regression/empty.c,
1367         * src/regression/Makefile: added test with empty functions
1368         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
1369
1370 2007-04-27 Borut Razem <borut.razem AT siol.net>
1371
1372         * src/SDCCast.c: fixed feature request
1373           #1547512: Redundant strings linked when using sizeof("abc")
1374
1375 2007-04-23 Borut Razem <borut.razem AT siol.net>
1376
1377         * doc/sdccman.lyx, src/SDCCmain.c:
1378           peep-hole comments are generated only if --fverbose-asm option is
1379           specified and --no-peep-comments is not, as proposed by Frieder.
1380         * support/regression/Makefile.in: compile regression tests with
1381           --fverbose-asm option so one can "grep" whether a new (or an old)
1382           peephole is (still) applied; requested by Frieder.
1383
1384 2007-04-23 Kevin Buettner <kevin AT buettner.to>
1385
1386         * device/include/pic/pic16f886.h,
1387         * device/include/pic/pic16f887.h,
1388         * device/lib/pic/libdev/pic16f886.c,
1389         * device/lib/pic/libdev/pic16f887.c,
1390         * device/include/pic/pic14devices.txt,
1391         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
1392
1393 2007-04-23 Kevin Buettner <kevin AT buettner.to>
1394
1395         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
1396           fixes #1704666
1397
1398 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1399
1400         * device/lib/_memset.c: assembler version for mcs51
1401
1402 2007-04-22 Borut Razem <borut.razem AT siol.net>
1403
1404         * support/scripts/listerr.c: program to create the list of errors and
1405           warnings list from - added
1406         * doc/sdccman.lyx: removed the note
1407           "For list of warnings and corresponding codes, see err_warn.txt"
1408         * src/SDCCsymt.c: fixed bug #1699804:
1409           Bug with some uses of sizeof(static local array) (MCS51)
1410         * support/regression/tests/bug-1699804.c: added
1411
1412 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
1413
1414         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
1415           (main): added option -i,
1416           (asmbl, case S_INCL): use search_path_fopen,
1417           mostly from patch 1579668 by Peter Miller, thanks
1418         * src/z80/main.c: fixed typo --callee-saves-bc
1419         * device/include/mcs51/compiler.h: added sfrword for Tasking
1420
1421 2007-04-20 Borut Razem <borut.razem AT siol.net>
1422
1423         * src/z80/main.c: replaced reserved keyword asm with asmblr
1424
1425 2007-04-19 Borut Razem <borut.razem AT siol.net>
1426
1427         * src/port.h: use const pointers to strings
1428         * src/SDCCargs.h: declared getStringArg() and getIntArg()
1429         * src/pic16/main.c: include SDCCargs.h
1430         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
1431           const char, since the strings are dynamically allocated
1432         * src/SDCCmain.c: options.code_seg and options.const_seg are
1433           dynamically allocated; check port specific command line options
1434           before the general ones
1435         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
1436
1437 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
1438
1439         * device/include/ds400rom.h,
1440         * device/lib/ds390/lcd390.c,
1441         * device/lib/ds390/memcpyx.c,
1442         * device/lib/ds390/rtc390.c,
1443         * device/lib/ds400/ds400rom.c,
1444         * device/lib/ds400/memcpyx.c,
1445         * device/lib/hc08/_ret.c: more replacements of keywords with their
1446           double underscore equivalents
1447         * device/lib/ds390/Makefile.in,
1448         * device/lib/ds400/Makefile.in,
1449         * device/lib/gbz80/Makefile.in,
1450         * device/lib/hc08/Makefile.in,
1451         * device/lib/mcs51/Makefile.in,
1452         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
1453
1454 2007-04-17 Borut Razem <borut.razem AT siol.net>
1455
1456         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
1457           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
1458           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
1459           to --fverbose-asm, to be gcc'ish
1460
1461 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
1462
1463         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
1464
1465 2007-04-17 Borut Razem <borut.razem AT siol.net>
1466
1467         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
1468         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
1469           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
1470           with their double underscore equivalent
1471
1472 2007-04-14 Borut Razem <borut.razem AT siol.net>
1473
1474         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
1475           source"
1476
1477 2007-04-13 Borut Razem <borut.razem AT siol.net>
1478
1479         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
1480           C99 standard
1481         * device/examples/serialcomm/windows/serial.[ch],
1482           device/examples/serialcomm/windows/test_serialcomm.cpp:
1483           updated by Bela Torok
1484         * device/examples/serialcomm/windows/serialcomm.dsw,
1485           device/examples/serialcomm/windows/serialcomm.dsp: added
1486
1487 2007-04-13 Jan Waclawek <wek AT efton.sk>
1488
1489         * doc/sdccman.lyx: additions and changes at various places
1490           (submitted as #1697136).
1491           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
1492
1493 2007-04-10 Borut Razem <borut.razem AT siol.net>
1494
1495         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
1496           LyX file format changed to 245
1497         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
1498           "FreeWare" replaced with "free open source"
1499
1500 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
1501
1502         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
1503
1504 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
1505
1506         * device/include/pic16/pic18fregs.h,
1507         * device/lib/_bp.c,
1508         * device/lib/_decdptr.c,
1509         * device/lib/_divsint.c,
1510         * device/lib/_divslong.c,
1511         * device/lib/_divuint.c,
1512         * device/lib/_divulong.c,
1513         * device/lib/_fs2schar.c,
1514         * device/lib/_fs2sint.c,
1515         * device/lib/_fs2slong.c,
1516         * device/lib/_fs2uchar.c,
1517         * device/lib/_fs2uint.c,
1518         * device/lib/_fs2ulong.c,
1519         * device/lib/_fsadd.c,
1520         * device/lib/_fscmp.c,
1521         * device/lib/_fsdiv.c,
1522         * device/lib/_fseq.c,
1523         * device/lib/_fsget1arg.c,
1524         * device/lib/_fsget2args.c,
1525         * device/lib/_fsgt.c,
1526         * device/lib/_fslt.c,
1527         * device/lib/_fsmul.c,
1528         * device/lib/_fsneq.c,
1529         * device/lib/_fsnormalize.c,
1530         * device/lib/_fsreturnval.c,
1531         * device/lib/_fsrshift.c,
1532         * device/lib/_fssub.c,
1533         * device/lib/_fsswapargs.c,
1534         * device/lib/_gptrget.c,
1535         * device/lib/_gptrgetc.c,
1536         * device/lib/_gptrput.c,
1537         * device/lib/_logexpf.c,
1538         * device/lib/_modsint.c,
1539         * device/lib/_modslong.c,
1540         * device/lib/_moduint.c,
1541         * device/lib/_modulong.c,
1542         * device/lib/_mulint.c,
1543         * device/lib/_mullong.c,
1544         * device/lib/_schar2fs.c,
1545         * device/lib/_ser.c,
1546         * device/lib/_setjmp.c,
1547         * device/lib/_sint2fs.c,
1548         * device/lib/_slong2fs.c,
1549         * device/lib/_spx.c,
1550         * device/lib/_uchar2fs.c,
1551         * device/lib/_uint2fs.c,
1552         * device/lib/_ulong2fs.c,
1553         * device/lib/asincosf.c,
1554         * device/lib/atanf.c,
1555         * device/lib/calloc.c,
1556         * device/lib/ds390/tinibios.c,
1557         * device/lib/ds400/tinibios.c,
1558         * device/lib/expf.c,
1559         * device/lib/free.c,
1560         * device/lib/hc08/_mulint.c,
1561         * device/lib/logf.c,
1562         * device/lib/malloc.c,
1563         * device/lib/printf_fast.c,
1564         * device/lib/printf_tiny.c,
1565         * device/lib/printfl.c,
1566         * device/lib/realloc.c,
1567         * device/lib/ser_ir.c,
1568         * device/lib/serial.c,
1569         * support/regression/tests/libmullong.c: replaced all special keywords
1570           with their double underscore equivalent
1571         * support/regression/ports/mcs51-xstack-auto/spec.mk,
1572         * device/lib/Makefile.in: compile libs with --std-c99 instead of
1573           --std-sdcc99
1574         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
1575           (genRet): if the bit-symbol is ruonly it already is in the carry
1576         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
1577         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
1578         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
1579           type UCHAR if dest is not bit
1580
1581 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
1582
1583         * device/include/math.h,
1584         * device/lib/cotf.c,
1585         * device/lib/expf.c,
1586         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
1587
1588 2007-04-01 Borut Razem <borut.razem AT siol.net>
1589
1590         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
1591           fixed bug #1692042: input buffer overflow...scanner uses REJECT
1592         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
1593           gcc_unreachable() called internal_error()...
1594
1595 2007-03-30 Raphael Neider <rneider AT web.de>
1596
1597         * src/pic/ralloc.c (isData): suppress garbage debug output
1598
1599 2007-03-28 Borut Razem <borut.razem AT siol.net>
1600
1601         * doc/sdccman.lyx:
1602           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
1603           is developed, built and used worldwide, and the word "night" doesn't
1604           make any sense.
1605
1606 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
1607
1608         * device/include/mcs51/C8051F360.h: new, added
1609         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
1610
1611 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1612
1613         * src/SDCC.y (declaration_specifiers, function_specifier),
1614         * support/Util/SDCCerr.c,
1615         * support/Util/SDCCerr.h,
1616         * src/SDCCsymt.h,
1617         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
1618           inline keyword
1619         * src/SDCCmem.c (deallocParms),
1620         * src/SDCCast.c: support for function inlining, not quite complete
1621         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
1622           'restrict' qualifier
1623
1624 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
1625
1626         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
1627           (saveRBank, unsaveRBank): don't save bits,
1628           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
1629         * support/regression/tests/bug1535242.c: new, added
1630         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
1631           thanks Alexey Shamrin <shamrin AT gmail.com>,
1632           made assert.h header ANSI compliant (added a check for NDEBUG macro,
1633           removed header guard)
1634         * .version,
1635         * sdcc.spec: bumped version to 2.6.5
1636         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
1637
1638 2007-03-22 Borut Razem <borut.razem AT siol.net>
1639
1640         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
1641           fixed bug #1653671: sdcdb integration into ddd is broken
1642
1643 2007-03-22 Raphael Neider <rneider AT web.de>
1644
1645         * src/pic/gen.c (popGetExternal): augmented to also create references
1646           to external variables (not only labels),
1647           (genCall): comment on plan to reduce PAGESEL overhead,
1648           (genFunction, genEndFunction): also save/restore FSR around interrupt
1649           handling code, removed lots of unused code
1650           (genDivOneByte): release acquired temp register
1651         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
1652           of popGetExternal
1653         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
1654           for registers that need to be saved during interrupts (FSR, STATUS,
1655           PCLATH; W needs special handling), currently only FSR is used
1656
1657 2007-03-22 Raphael Neider <rneider AT web.de>
1658
1659         * device/include/pic/pic14devices.txt: 16f688 has only one config word
1660
1661 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1662
1663         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
1664
1665 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
1666
1667         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
1668
1669 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
1670
1671         * as/link/aslink.h: added LKOBJEXT
1672         * as/link/hc08/link_hc08.dsp,
1673         * as/link/hc08/Makefile.bcc,
1674         * as/link/hc08/Makefile.in,
1675         * as/link/mcs51/aslink.dsp,
1676         * as/link/mcs51/Makefile.bcc,
1677         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
1678         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
1679         * as/link/lkaomf51.c: merged and moved
1680         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
1681         * as/link/z80/lkdata.c,
1682         * as/link/lkdata.c: merged and moved
1683         * as/link/hc08/lkmain.c,
1684         * as/link/mcs51/lkmain.c: cosmetic changes
1685         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
1686         * as/link/lklex.c: use LKOBJEXT
1687         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
1688           ANSI-fied functions, removed bubble-sorts
1689         * as/link/z80/lksym.c           as/link/lksym.c: merged,
1690           ANSI-fied functions
1691         * as/link/z80/linkgbz80.dsp,
1692         * as/link/z80/linkz80.dsp,
1693         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
1694           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
1695         * as/link/z80/lkhead.c,
1696         * as/link/z80/lklex.c: deleted
1697         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
1698         * as/link/z80/lkmain.c: added copyfile()
1699
1700 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1701
1702         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
1703
1704 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1705
1706         * device/lib/_strlen.c: assembler version for mcs51
1707
1708 2007-03-13 Raphael Neider <rneider AT web.de>
1709
1710         * device/include/pic16/pic18f2221.h,
1711         * device/include/pic16/pic18f2321.h,
1712         * device/include/pic16/pic18f2331.h,
1713         * device/include/pic16/pic18f4221.h,
1714         * device/include/pic16/pic18f4321.h,
1715         * device/include/pic16/pic18f4331.h: fixed config byte location names
1716         * support/scripts/inc2h-pic16.pl: removed debug output, emit
1717           consistently named config byte locations
1718
1719 2007-03-13 Borut Razem <borut.razem AT siol.net>
1720
1721         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
1722           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
1723           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
1724           as/link/z80/Makefile.in, as/z80/Makefile.in:
1725           introduced LDFLAGS
1726
1727 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1728
1729         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
1730         * device/lib/printf_large.c: pointer was converted to generic
1731         pointer for mcs51 models other than model-small (Maarten noticed)
1732
1733 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1734
1735         * device/include/mcs51/ADuC84x.h: Added.
1736
1737 2007-03-10 Borut Razem <borut.razem AT siol.net>
1738
1739         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
1740           fixed RFE #1624219: double backslashes in filenames;
1741           functions hexEscape(), octalEscape() and copyStr() moved from
1742           SDCCval.c to SDCCutil.c and made them glovbally available
1743
1744 2007-03-09 Borut Razem <borut.razem AT siol.net>
1745
1746         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
1747           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
1748           1673361: Missaligned comments in output files
1749
1750 2007-03-09 Raphael Neider <rneider AT web.de>
1751
1752         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
1753
1754 2007-03-09 Raphael Neider <rneider AT web.de>
1755
1756         * src/pic/gen.c,
1757         * src/pic/glue.c,
1758         * src/pic/ralloc.c: suppress undesired debug output
1759         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
1760
1761 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1762
1763         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
1764
1765 2007-03-07 Borut Razem <borut.razem AT siol.net>
1766
1767         * device/lib/pic16/libdev/pic18f[24][34]31.c:
1768           search include files in the current directory
1769
1770 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
1771
1772         * src/SDCCglue.c (emitMaps, glue),
1773         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
1774           absolute xdata
1775         * support/regression/tests/absolute.c: added xdata test
1776
1777 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
1778
1779         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
1780           added condition to macro, fixes bug 1666080
1781
1782 2007-03-02 Raphael Neider <rneider AT web.de>
1783
1784         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
1785
1786 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1787
1788         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
1789         be cleared. Unconditionally set __XPAGE
1790         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
1791
1792 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1793
1794         * src/SDCCglobl.h,
1795         * src/SDCCmain.c,
1796         * src/mcs51/gen.c,
1797         * src/mcs51/rtrack.c,
1798         * src/ds390/gen.c,
1799         * doc/sdccman.lyx: added --no-gen-comments
1800         * src/mcs51/peeph.def: added 192.b, disabled 185
1801
1802 2007-02-25 Raphael Neider <rneider AT web.de>
1803
1804         * src/pic16/gen.c (genCast): fixed typo
1805         * device/lib/pic16/Makefile.subdir: only install existing files
1806         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
1807
1808 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1809
1810         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
1811         * device/lib/mcs51/crtclear.asm,
1812         * device/lib/mcs51/crtxclear.asm: renumbered labels
1813         * device/lib/mcs51/Makefile.in: added crtcall.asm
1814         * doc/sdccman.lyx: documented mcs51 crt* library startup code
1815         * src/mcs51/gen.c (movc): removed,
1816           (aopGet, genPlusBits): clear a after loading the carry (possibly from
1817             acc.x or psw.x),
1818           (toCarry, genSend, genRet): added function toCarry,
1819           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
1820           (assignBit, genAssign, genCast): added function assignBit
1821         * src/mcs51/Makefile.bcc: added rtrack.c
1822         * src/mcs51/ralloc.h: made valueKnown a bitfield
1823         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
1824           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
1825           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
1826         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
1827         * src/z80/gen.c: added AOP_IS_PAIRPTR,
1828           (_pop): only pop valid pairs, see gencjneshort,
1829           (gencjneshort): return pair that still needs to be popped, restructured,
1830           (gencjne, genCmpEq): call _pop
1831
1832 2007-02-23 Raphael Neider <rneider AT web.de>
1833
1834         * device/include/pic/pic14devices.txt: 16f684 has only one config word
1835
1836 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1837
1838         * device/include/mcs51/P89LPC925.h: Added.
1839
1840 2007-02-18 Raphael Neider <rneider AT web.de>
1841
1842         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
1843
1844 2007-02-17 Borut Razem <borut.razem AT siol.net>
1845
1846         * support/cpp2/directives.c, support/cpp2/version.c:
1847           synchronized with GCC CPP 4.1.2
1848
1849 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1850
1851         * src/mcs51/rtrack.h,
1852         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
1853           by checking the strings passed by emitcode() to the assembler.
1854           Feel free to change. This in part addresses RFE #482179.
1855           Set environment variable SDCC_RTRACK to enable.
1856         * src/mcs51/gen.c: inserted hooks
1857         * src/mcs51/ralloc.h: added two members to struct regs
1858         * support/regression/tests/regtrack.c: added
1859
1860 2007-02-14 Borut Razem <borut.razem AT siol.net>
1861
1862         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
1863         * Makefile.in: applied patch from Makefile related part of
1864           #1469393: Compiler does not initialize static data
1865
1866 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
1867
1868         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
1869           for better fix of bug 1273984, compiles pic16 rand.c
1870
1871 2007-02-12 Borut Razem <borut.razem AT siol.net>
1872
1873         * src/pic16/main.c: fixed pic16 standard library directory bug
1874
1875 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
1876
1877         * src/hc08/gen.c (genSwap): fix swap regression test
1878
1879 2007-02-10 Borut Razem <borut.razem AT siol.net>
1880
1881         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
1882           with same scope
1883         * support/regression/tests/bug-1654060.c: added regression test for
1884           #1654060
1885
1886 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
1887
1888         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
1889         bit moves in return statement
1890
1891 2007-02-09 Borut Razem <borut.razem AT siol.net>
1892
1893         * src/SDCC.y: fixed bug #1654060 typedef within function causes
1894           syntax error
1895
1896 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
1897
1898         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
1899         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
1900
1901 2007-02-07 Raphael Neider <rneider AT web.de>
1902
1903         * src/pic16/devices.inc,
1904         * device/include/pic16/pic18fregs.h,
1905         * device/include/pic16/pic18f[24][34]31.h,
1906         * device/lib/pic16/libdev/pic18f[24][34]31.c,
1907         * device/lib/pic16/pics.all: added 18f[24][34]31 family
1908         * device/lib/pic16/libio/i2c.ignore: do not build i2c
1909
1910 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
1911
1912         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
1913           can this have lived here for so many years?
1914         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
1915           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
1916         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
1917
1918 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
1919
1920         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
1921         appended by loop induction must be at the very end of the eBBlock
1922
1923 2007-02-05 Kevin Vigor
1924
1925         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
1926
1927 2007-02-05 Borut Razem <borut.razem AT siol.net>
1928
1929         * support/regression/fwk/lib/timeout.c: native WIN32 port,
1930           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
1931
1932 2007-02-03 Borut Razem <borut.razem AT siol.net>
1933
1934         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
1935           applied patch #1646602 option to set default signedness of char to
1936           unsigned, added -funsigned-char command line option,
1937           thanks to Gunther Jehle
1938         * device/lib/Makefile.in: added the -f option to rm so it doesn't
1939           prompt for file deletion a few hundred times (especially the
1940           subversion files, which have ro permissions so it asks for
1941           confirmation), thanks to Simon McAuliffe;
1942           added {} + option to find in order to remove multiple files from a
1943           single rm commad
1944
1945 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1946
1947         * device/include/mcs51/SST89x5xRDx.h: Added.
1948
1949 2007-02-02 Raphael Neider <rneider AT web.de>
1950
1951         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
1952         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
1953
1954 2007-02-01 Raphael Neider <rneider AT web.de>
1955
1956         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
1957           config words again
1958
1959 2007-01-31 Borut Razem <borut.razem AT siol.net>
1960
1961         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
1962           if compiled with GCC. Thanks to Raphael Neider
1963
1964 2007-01-31 Raphael Neider <rneider AT web.de>
1965
1966         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
1967             operand names, handles name and (name + n) for all n,
1968           (sameBank): restructured, also check bank allocation policy,
1969         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
1970           (pic14_operandsAllocatedInSameBank): check whether to operands
1971             will be allocated into the same bank (i.e., section) to reduce
1972             BANKSEL overhead, queried from pcode.c:sameBank,
1973           (pic14printLocals): reintroduced clustering registers into a single
1974             section: all compiler generated symbols will now reside in one
1975             bank (per file), reducing BANKSEL overhead and code size,
1976           (showAllMemmaps): use local dbuf where possible
1977
1978 2007-01-29 Raphael Neider <rneider AT web.de>
1979
1980         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
1981           (call_libraryfunc): retrieve/create symbol and mark as used,
1982           (genFunction): mark defined functions as non-extern and add again
1983            to code memmap for later output
1984         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
1985           (pic14printLocals): reworked for new symbol emission,
1986           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
1987           showAllMemmaps): reworked symbol output using dbufs, added handling
1988             of string literals (still incomplete),
1989           (picglue): removed symbol emission, moved into showAllMemmaps,
1990           (emitSymbolSet): new workhorse for symbol output,
1991           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
1992
1993 2007-01-29 Borut Razem <borut.razem AT siol.net>
1994
1995         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
1996           component contains the extension separator.
1997
1998 2007-01-28 Borut Razem <borut.razem AT siol.net>
1999
2000         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
2001           on WIN32
2002         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
2003           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
2004           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
2005           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
2006           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
2007           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
2008           src/z80/gen.c, support/Util/MySystem.c:
2009           accept slash and backslash as directory separator on WIN32 and
2010           Cygwin ports
2011
2012 2007-01-28 Raphael Neider <rneider AT web.de>
2013
2014         * src/pic16/devices.inc,
2015         * device/include/pic16/pic18f[24][23]21.h,
2016         * device/include/pic16/pic18fregs.h,
2017         * device/lib/pic16/libdev/pic18f[24][23]21.c,
2018         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
2019         * device/lib/pic16/libio/adc.ignore,
2020         * device/lib/pic16/libio/i2c.ignore,
2021         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
2022           family, as gputils do not yet support the devices
2023         * device/lib/pic16/Makefile.subdir: ignore errors on install
2024         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
2025           headers and libraries from gputils .inc files
2026
2027 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
2028
2029         * doc/sdccman.lyx: add printf_fast_f precision limitation note
2030
2031 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
2032
2033         * doc/sdccman.lyx: add printf benchmarks
2034
2035 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
2036
2037         * device/lib/printf_fast.c: fix %c, char promoted to int
2038         * device/lib/printf_tiny.c: fix %c, char promoted to int
2039
2040 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
2041
2042         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
2043
2044 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2045
2046         * support/regression/tests/swap.c: 64 bit hosts failed
2047         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
2048
2049 2007-01-25 Raphael Neider <rneider AT web.de>
2050
2051         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
2052           based on absolute register address, patch by Alex Blond
2053
2054 2007-01-22 Raphael Neider <rneider AT web.de>
2055
2056         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
2057           emitted, do not emit them again...
2058
2059 2007-01-22 Raphael Neider <rneider AT web.de>
2060
2061         * src/regression/bank1.c, src/regression/compare6.c,
2062           src/regression/add.c: cosmetic changes
2063         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
2064         * src/pic/gen.c: fixed global zero and one,
2065           (aopForSym): removed unued code,
2066           (aopGet): assert aop is defined, check and use `index' of
2067             pCodeImmd operands (fixes #1630908),
2068         * src/pic/pcode.c (get_op): added output of generic pointer tag,
2069           (register_reassign): prevent accidental register unification,
2070           (ReuseReg): cosmetic changes (also above)
2071         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
2072           pic14emitStaticSeg): do not emit initialized data,
2073           (printIval*): replaced with working versions,
2074           (pic14createInterruptVect,picglue): use idata for initialized data,
2075             now init data should work in all modules (not only main()),
2076         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
2077
2078 2007-01-21 Borut Razem <borut.razem AT siol.net>
2079
2080         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
2081           use -fPIC or -fpic if they are supported and not ignored
2082         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
2083         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
2084
2085 2007-01-20 Borut Razem <borut.razem AT siol.net>
2086
2087         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
2088           implemented RFE #1470316: allow "$" in variable names
2089
2090 2007-01-20 Raphael Neider <rneider AT web.de>
2091
2092         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
2093
2094 2007-01-20 Raphael Neider <rneider AT web.de>
2095
2096         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
2097         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
2098         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
2099         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
2100           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
2101         * device/lib/pic/libdev/pic*.c,
2102         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
2103         * device/lib/pic/libdev/Makefile.in: show progress
2104
2105 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
2106
2107         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
2108         * support/scripts/sdcc_cygwin_mingw32,
2109         * support/scripts/sdcc_mingw32,
2110         * support/scripts/build.mak: replaced --datadir by --datarootdir for
2111         conformance with autoconf 2.6
2112
2113 2007-01-19 Raphael Neider <rneider AT web.de>
2114
2115         * src/pic/device.c (register_map): fixed list construction
2116         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
2117           (genMod): removed case for genModbits,
2118           (genModbits): removed as now unused/unimplemented
2119         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
2120
2121 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2122
2123         * support/regression/tests/swap.c: added in response to #1638622
2124         * doc/sdccman.lyx: synced version, minor changes
2125
2126 2007-01-18 Borut Razem <borut.razem AT siol.net>
2127
2128         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
2129           thanks to Gunther Jehle
2130         * src/asm.c: don't die if the file drfined in #line couldn't be opened
2131         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
2132           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
2133           use filename in lineno instead.
2134         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
2135           print the file name in ast_print()
2136
2137 2007-01-18 Borut Razem <borut.razem AT siol.net>
2138
2139         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
2140           defined in MSVC
2141         * src/SDCC.lex: stringLiteral() returns const char pointer,
2142           EOF detection in stringLiteral(), fixed asmbuf memory leak,
2143           fixed column counting
2144         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
2145           accept const char pointer as parameter
2146         * src/SDCCdwarf2.c: corrected buffer size
2147
2148 2007-01-17 Borut Razem <borut.razem AT siol.net>
2149
2150         * support/Util/dbuf_string.c: fixed for amd64
2151
2152 2007-01-15 Borut Razem <borut.razem AT siol.net>
2153
2154         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
2155           removed terminal symbol ELIPSIS, since it was never generated by the
2156           lexer and it was wrongly used in parameter_identifier_list rule
2157
2158 2007-01-15 Raphael Neider <rneider AT web.de>
2159
2160         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
2161             code page and data banking description
2162         * src/pic/genarith.c,
2163         * src/pic/gen.h: removed bit arithmetic functions,
2164             updated exit(1) to exit(EXIT_FAILURE)
2165         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
2166         * device/include/pic16/pic18f2455.h,
2167         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
2168             TRISD and TRISE, fixed/added some bit names
2169         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
2170         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
2171             updated pic18f2455.{c,h} instead of duplicating them
2172
2173 2007-01-14 Borut Razem <borut.razem AT siol.net>
2174
2175         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
2176           Cannot debug files that contain spaces in the path name
2177           by converting spaces in asm file name to underscores
2178
2179 2007-01-13 Borut Razem <borut.razem AT siol.net>
2180
2181         * doc/sdccman.lyx: fixed format errors
2182
2183 2007-01-10 Borut Razem <borut.razem AT siol.net>
2184
2185         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
2186           codeseg/constseg #pragma fail
2187         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
2188         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
2189           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
2190           suppoprt/cpp2/sdcpp.[ch]: house cleaning
2191
2192 2007-01-09 Borut Razem <borut.razem AT siol.net>
2193
2194         * get rid of diagnistic.[ch], pretty-print.[ch],
2195           c-pretty-print.[ch], ... used just for error, warning, ...
2196           message formatting
2197         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
2198           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
2199           suppoprt/cpp2/pretty-print.[ch]:
2200           removed
2201         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
2202           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
2203           suppoprt/cpp2/sdcpp.dsp:
2204           changed
2205
2206 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
2207
2208         * device/lib/printf_large.c (output_float): removed recursion,
2209           use smaller buffer on stack for mcs51,
2210           fixed bug printing 1.96
2211         * support/regression/tests/snprintf.c: added test
2212
2213 2007-01-07 Borut Razem <borut.razem AT siol.net>
2214
2215         * use dynamic memory buffers instead temporary files
2216         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
2217           added
2218         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
2219           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
2220           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
2221           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
2222           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
2223           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
2224           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
2225           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
2226           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
2227           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
2228           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
2229           support/Util/dbuf.c, support/Util/dbuf.h:
2230           modified
2231         * .version, sdcc.spec: bumped version to 2.6.4
2232
2233 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
2234
2235         * src/port.h: added TARGET_Z80_LIKE macro
2236         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
2237           output PSEG location if --xram-loc or --xstack-loc was used
2238         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
2239
2240 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
2241
2242         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
2243         * as/as_z80.dsp,   as/z80/as_z80.dsp,
2244         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
2245         * sdcc.dsw: moved project files into subdir
2246         * as/hc08/as_hc08.dsp,
2247         * as/hc08/Makefile.bcc,
2248         * as/hc08/Makefile.in,
2249         * as/mcs51/Makefile.bcc,
2250         * as/mcs51/Makefile.in,
2251         * as/z80/Makefile.bcc,
2252         * as/z80/Makefile.in,
2253         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
2254         * as/hc08/asm.h,
2255         * as/mcs51/asm.h,
2256         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
2257         * as/hc08/asmain.c,
2258         * as/hc08/assym.c,
2259         * as/mcs51/asmain.c,
2260         * as/mcs51/assym.c,
2261         * as/z80/assym.c: removed include "strcmpi.h"
2262         * as/hc08/strcmpi.c,
2263         * as/hc08/strcmpi.h,
2264         * as/mcs51/strcmpi.c,
2265         * as/mcs51/strcmpi.h,
2266         * support/Util/strcmpi.c,
2267         * support/Util/strcmpi.h: removed files
2268         * as/strcmpi.c: added as_strncmpi()
2269
2270 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2271
2272         * sdcc.dsw: Added some dependencies on project config.dsp
2273
2274 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
2275
2276         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
2277           with [di]ram_start to fix a regresion
2278
2279 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
2280
2281         * configure.in: added missing mcs51 in status output
2282         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
2283         directory
2284         * debugger/mcs51/clean.mk (distclean): remove config.h
2285         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
2286         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
2287         options.h, s-options-h and options.c
2288         * support/cpp2/clean.mk: unused, removed
2289         * Makefile.common.in,
2290         * main_in.mk,
2291         * as/Makefile.in,
2292         * as/hc08/Makefile.in,
2293         * as/hc08/clean.mk,
2294         * as/mcs51/Makefile.in,
2295         * as/mcs51/clean.mk,
2296         * as/z80/clean.mk,
2297         * as/z80/conf.mk,
2298         * as/z80/Makefile.in,
2299         * as/z80/clean.mk,
2300         * as/link/Makefile.in,
2301         * as/link/hc08/Makefile.in,
2302         * as/link/hc08/clean.mk,
2303         * as/link/mcs51/Makefile.in,
2304         * as/link/mcs51/clean.mk,
2305         * as/link/z80/Makefile.in,
2306         * as/link/z80/clean.mk,
2307         * as/link/z80/conf.mk,
2308         * debugger/mcs51/Makefile.in,
2309         * debugger/mcs51/clean.mk,
2310         * device/include/Makefile.in,
2311         * device/lib/Makefile.in,
2312         * device/lib/mcs51/Makefile.in,
2313         * device/lib/pic/Makefile.in,
2314         * device/lib/pic/Makefile.common.in,
2315         * device/lib/pic/Makefile.subdir,
2316         * device/lib/pic/Makefile.rules,
2317         * device/lib/pic16/libio/Makefile.in,
2318         * device/lib/pic16/Makefile.subdir,
2319         * device/lib/pic16/libdev/Makefile.in,
2320         * device/lib/pic16/Makefile.rules,
2321         * device/lib/pic16/Makefile.common.in,
2322         * sim/ucsim/avr.src/Makefile.in,
2323         * sim/ucsim/main_in.mk,
2324         * sim/ucsim/cmd.src/Makefile.in,
2325         * sim/ucsim/doc/Makefile.in,
2326         * sim/ucsim/gui.src/Makefile.in,
2327         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
2328         * sim/ucsim/gui.src/serio.src/Makefile.in,
2329         * sim/ucsim/hc08.src/Makefile.in,
2330         * sim/ucsim/libltdl/Makefile.in,
2331         * sim/ucsim/s51.src/Makefile.in,
2332         * sim/ucsim/sim.src/Makefile.in,
2333         * sim/ucsim/sim.src/conf.mk,
2334         * sim/ucsim/xa.src/Makefile.in,
2335         * sim/ucsim/z80.src/Makefile.in,
2336         * src/Makefile.in,
2337         * src/clean.mk,
2338         * src/port.mk,
2339         * support/cpp2/Makefile.in,
2340         * support/librarian/Makefile.in,
2341         * support/librarian/clean.mk,
2342         * support/makebin/Makefile.in,
2343         * support/makebin/clean.mk,
2344         * support/packihx/Makefile.in,
2345         * support/regression/Makefile.in,
2346         * support/regression/ports/ds390/spec.mk,
2347         * support/regression/ports/gbz80/spec.mk,
2348         * support/regression/ports/hc08/spec.mk,
2349         * support/regression/ports/mcs51/spec.mk,
2350         * support/regression/ports/mcs51-large/spec.mk,
2351         * support/regression/ports/mcs51-medium/spec.mk,
2352         * support/regression/ports/mcs51-xstack-auto/spec.mk,
2353         * support/regression/ports/pic14/spec.mk,
2354         * support/regression/ports/pic16/spec.mk,
2355         * support/regression/ports/mcs51-stack-auto/spec.mk,
2356         * support/regression/ports/ucz80/spec.mk,
2357         * support/regression/ports/xa51/spec.mk,
2358         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
2359         adding a slash after $(top_builddir) and/or adding @datarootdir@
2360         * configure.in,
2361         * debugger/mcs51/configure.in,
2362         * device/lib/pic/configure.in,
2363         * device/lib/pic16/configure.in,
2364         * sim/ucsim/configure.in,
2365         * support/cpp2/configure.in,
2366         * support/packihx/configure.in: changed AC_PREREQ to 2.60
2367         * configure,
2368         * debugger/mcs51/configure,
2369         * device/lib/pic/configure,
2370         * device/lib/pic16/configure,
2371         * sim/ucsim/configure,
2372         * support/cpp2/configure,
2373         * support/packihx/configure: generated with autoconf 2.60
2374
2375 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
2376
2377         * as/link/hc08/lkihx.c (newArea),
2378         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
2379
2380 2007-01-02 Borut Razem <borut.razem AT siol.net>
2381
2382         * doc/sdccman.lyx: documented #pragma sdcc_hash
2383         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
2384           initialized to 0
2385         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
2386
2387 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
2388
2389         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
2390         empty 'while'-loop to work correctly, see regression test 'while.c'
2391         * support/regression/tests/while.c: added
2392
2393 2007-01-01 Borut Razem <borut.razem AT siol.net>
2394
2395         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
2396           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
2397           support/cpp2/libcpp/sdcpp.c:
2398           sdcpp specific pragma/directive/option handling moved to sdcpp.c
2399         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
2400         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
2401
2402 2006-12-31 Borut Razem <borut.razem AT siol.net>
2403
2404         * SDCPP synchronized with GCC CPP release version 4.1.1,
2405           currently the latest release:
2406         * support/cpp2/libcpp, support/cpp2/libcpp/include,
2407           support/cpp2/libcpp/include/cpp-id-data.h
2408           support/cpp2/libiberty/fopen_unlocked.c
2409           support/cpp2/libiberty/md5.c
2410           support/cpp2/md5.h
2411           support/cpp2/opt-functions.awk
2412           support/cpp2/opt-gather.awk
2413           support/cpp2/optc-gen.awk
2414           support/cpp2/opth-gen.awk:
2415           added
2416         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
2417           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2418           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
2419           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
2420           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
2421           support/cpp2/diagnostic.h, support/cpp2/except.h,
2422           support/cpp2/hwint.h, support/cpp2/input.h,
2423           support/cpp2/intl.h, support/cpp2/move-if-change,
2424           support/cpp2/opts.c, support/cpp2/opts.h,
2425           support/cpp2/output.h, support/cpp2/prefix.c,
2426           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
2427           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
2428           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
2429           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
2430           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
2431           support/cpp2/version.c:
2432           modified
2433         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
2434           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
2435           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
2436           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
2437           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
2438           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
2439           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
2440           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
2441           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
2442           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
2443           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
2444           moved
2445         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
2446           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
2447           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
2448           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
2449           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
2450           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
2451           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
2452           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
2453           support/cpp2/hashtable.h, support/cpp2/line-map.c,
2454           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
2455           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
2456           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
2457           support/cpp2/system.h:
2458           deleted / moved
2459
2460 2006-12-31 Borut Razem <borut.razem AT siol.net>
2461
2462         * configure.in, configure: fixed bug #1538756: configure dies if bison
2463           and flex are not installed, 2nd try
2464
2465 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
2466
2467         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
2468         400.x for better code in RFE 899102
2469
2470 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
2471
2472         * src/SDCCpeeph.c (deadMove),
2473         * src/port.h,
2474         * src/mcs51/peep.h: renamed 'op' by 'reg'
2475         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
2476         (scan4op): small change for removeDeadMove(), added support for
2477         'callee saves' and/or PACLL function calls,
2478         (removeDeadMove): added, removes superflous 'mov r%1,%2',
2479         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
2480         left in new dispatcher mcs51DeadMove()
2481         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
2482         removeDeadMove()
2483         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
2484
2485 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2486
2487         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
2488           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
2489
2490 2006-12-30 Borut Razem <borut.razem AT siol.net>
2491
2492         * support/cpp2/spacs.h: deleted from svn
2493         * configure.in, configure: fixed bug #1538756: configure dies if bison
2494           and flex are not installed
2495
2496 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
2497
2498         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
2499           with this z80 passes printf float test when enabled
2500         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
2501
2502 2006-12-28 Borut Razem <borut.razem AT siol.net>
2503
2504         * support/cpp2/config.in, support/cpp2/configure.in,
2505           support/cpp2/configure, support/cpp2/Makefile.in:
2506           fix for the solaris build
2507
2508 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2509
2510         * src/SDCC.y (type_specifier2, pointer),
2511         * src/SDCCsymt.h,
2512         * src/SDCCsymt.c (mergeSpec, checkSClass),
2513         * support/Util/SDCCerr.c,
2514         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
2515         * support/valdiag/valdiag.py: Allow test cases to specify
2516           required language standard
2517         * support/valdiag/tests/restrict.c: New file to test restrict keyword
2518         * support/valdiag/tests/tentdecl.c: Supress empty source file error
2519
2520 2006-12-27 Borut Razem <borut.razem AT siol.net>
2521
2522         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
2523         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
2524           mbchar removed
2525         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
2526           fixed for borland C
2527         * support/cpp2/libiberty/Makefile.bcc: updated
2528         * src/pic16/main.c: fixed #pragma udata handling
2529         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
2530
2531 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
2532
2533         * src/SDCCpeeph.c: made labelHashEntry global,
2534         made pcDistance, FBYNAME static,
2535         (pcDistance): made static, use isComment and isLabel,
2536         (deadMove): added,
2537         (getLabelRef): added, extracted from labelRefCount(),
2538         (labelRefCount): use new getLabelRef(),
2539         (callFuncByName): made static, added deadMove,
2540         use isComment and isLabel,
2541         (newPeepRule): made static, set isLabel,
2542         (isLabelDefinition): added parameter isPeepRule to allow '%' in
2543         labels from peephole rules,
2544         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
2545         when isComment or isLabel is set
2546         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
2547         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
2548         to make them global
2549         * src/mcs51/peep.h: added
2550         * src/mcs51/peep.c: added, implements mcs51DeadMove()
2551         * src/port.h: added peep->deadMove to port structure
2552         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
2553         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
2554         deadMove, finally removed no. 1 and 2
2555         * src/mcs51/gen.c,
2556         * src/pic/gen.c,
2557         * src/z80/gen.c,
2558         * src/z80/ralloc.c,
2559         * src/pic16/gen.c,
2560         * src/ds390/gen.c,
2561         * src/hc08/gen.c: mark lines with isComment or isLabel
2562         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
2563         * .version,
2564         * sdcc.spec: bumped version to 2.6.3
2565
2566 2006-12-26 Borut Razem <borut.razem AT siol.net>
2567
2568         * support/cpp2/Makefile.in: added dependency on options.h
2569         * configure: regenerated
2570         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
2571         * support/cpp2/Makefile.in: added vasprintf.c
2572
2573 2006-12-25 Borut Razem <borut.razem AT siol.net>
2574
2575         * SDCPP synchronized with GCC CPP release version 3.4.6,
2576           the latest release before 4.x:
2577         * support/cpp2/Makefile.in, support/cpp2/config.h,
2578           support/cpp2/configure, support/cpp2/configure.in,
2579           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
2580           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
2581           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
2582           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
2583           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
2584           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
2585           support/cpp2/cpptrad.c, support/cpp2/except.h,
2586           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
2587           support/cpp2/hwint.h, support/cpp2/intl.h,
2588           support/cpp2/line-map.c, support/cpp2/line-map.h,
2589           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
2590           support/cpp2/output.h, support/cpp2/prefix.c,
2591           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
2592           support/cpp2/system.h, support/cpp2/version.c:
2593           modified
2594         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2595           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
2596           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
2597           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
2598           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
2599           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
2600           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
2601           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
2602           support/cpp2/move-if-change, support/cpp2/opts.c,
2603           support/cpp2/opts.h, support/cpp2/opts.sh,
2604           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
2605           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
2606           support/cpp2/win32, support/cpp2/win32/dirent.c,
2607           support/cpp2/win32/dirent.h:
2608           added
2609         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
2610         * support/cpp2/sdcpp.h: renamed from sdcc.h
2611         * sdcppinit.c: deleted
2612
2613 2006-12-23 Borut Razem <borut.razem AT siol.net>
2614
2615         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
2616           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
2617           preproc.c: an other try to fix bug #982435: introduced
2618           -pedantic-parse-number command line option and pedantic_parse_number
2619           pragma
2620
2621 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
2622
2623         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
2624            BSEG handling,
2625           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
2626            corrected overlayed areax addresses, warn about memory overlaps
2627         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
2628         * src/avr/main.c,
2629         * src/ds390/main.c,
2630         * src/hc08/main.c,
2631         * src/mcs51/main.c,
2632         * src/pic16/main.c,
2633         * src/pic/main.c,
2634         * src/xa51/main.c,
2635         * src/z80/main.c,
2636         * src/port.h: added xabs_name and iabs_name
2637         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
2638           (glue, emitMaps): create and emit maps d_abs and i_abs
2639         * src/SDCCglue.h: cosmetic changes
2640         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
2641         * src/SDCCmem.h,
2642         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
2643           (allocDefault): put absolute, initialized globals in them
2644         * support/regression/tests/absolute.c: added absolute bdata test
2645         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
2646
2647 2006-12-20 Borut Razem <borut.razem AT siol.net>
2648
2649         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
2650         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
2651           added regression test for bug #982435
2652
2653 2006-12-18 Borut Razem <borut.razem AT siol.net>
2654
2655         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
2656         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
2657           small cosmetic changes
2658         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
2659         * support/regression/tests/bug-1351710.c: added regression test
2660
2661 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2662
2663         * doc/sdccman.lyx: added the long missed iCode table
2664           "<where is figure II?>", added links to wiki
2665
2666 2006-12-17 Borut Razem <borut.razem AT siol.net>
2667
2668         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
2669           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
2670           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
2671           unified table driven pragma handling, pragma argument type checking
2672         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
2673           current one - version 1.1.3
2674         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
2675
2676 2006-12-13 Raphael Neider <rneider AT web.de>
2677
2678         * src/pic/device.h: removed AssignedMemory structure and macros
2679         * src/pic/device.c: removed global finalMapping (linker assigns
2680             memory locations),
2681           (register_map): add SFRs to remembered memRanges
2682           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
2683           assignFixedRegisters,assignRelocatableRegisters): removed,
2684           (setMaxRAM,validAddress): adapted accordingly,
2685           (pic14_hasSharebank,pic14_getSharedStack): only report and use
2686             reasonably sized sharebanks,
2687         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
2688           (allDefsOutOfRange): removed unused code,
2689         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
2690             handling
2691         * src/pic/pcode.c (register_reassign): removed recursion warning,
2692             fired far too often,
2693         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
2694             to use existing pic14_stringInSet() to avoid duplicate symbols,
2695             tidied up the code a bit,
2696           (pic14printLocals): added in symmetry to printExterns, replaces
2697             writeUsedRegs more or less,
2698           (picglue): call new pic14_printLocals(),
2699         * device/include/pic/pic*.h: removed #pragma memmap directives,
2700             information gathered from include/pic/pic14devices.txt
2701         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
2702
2703 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
2704
2705         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
2706
2707 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2708
2709         * device/include/mcs51/cc2430.h: fixed missing ';'
2710
2711 2006-12-10 Raphael Neider <rneider AT web.de>
2712
2713         * device/lib/pic16/libc/stdio/vfprintf.c,
2714         * device/lib/pic16/libc/stdio/printf_small.c,
2715         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
2716           char arguments, as char varargs are cast to int by the caller,
2717           hopefully fixes #1604915 (other device libraries are still affected)
2718
2719 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2720
2721         * src/mcs51/ralloc.c (packRegsForAssign),
2722         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
2723
2724 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
2725
2726         * device/include/malloc.h: removed init_dynamic_memory
2727         * device/lib/malloc.c: made init_dynamic_memory static and automatically
2728           call it once from malloc. Also use _sdcc_heap[] from _heap.c
2729         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
2730         * device/lib/libsdcc.lib,
2731         * device/lib/Makefile.in,
2732         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
2733         * doc/sdccman.lyx: documented use of new _heap.c
2734         * support/regression/tests/malloc.c: removed init_dynamic_memory
2735         * src/cdbFile.c(spacesToUnderscores): new function,
2736           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
2737           1068030
2738         * device/include/tinibios.h: removed defines for putchar and getchar
2739         * device/lib/ds390/Makefile.in: added putchar.c
2740         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
2741
2742 2006-12-09 Borut Razem <borut.razem AT siol.net>
2743
2744         * support/cpp2/sdcc.h: prevent multiple inclusion
2745         * support/cpp2/options.h: deleted
2746
2747 2006-12-08 Borut Razem <borut.razem AT siol.net>
2748
2749         * support/cpp2/sdcc.h: removed x*alloc() macros
2750         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
2751         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
2752           support/cpp2/sdcpp.sdc: x*alloc files added to the project
2753         * support/cpp2/system.h: moved #include "sdcc.h"
2754         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
2755           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
2756           added
2757         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
2758           -funsigned-char options
2759         * support/cpp2/sdcppmain.c: fixed bug 1611411
2760
2761 2006-12-07 Borut Razem <borut.razem AT siol.net>
2762
2763         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
2764           directive
2765
2766 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
2767
2768         * src/SDCCsymt.c (addDecl): fixed bug 1609244
2769         * src/SDCCmain.c (linkEdit): fixed bug 1609279
2770         * doc/sdccman.lyx,
2771         * .version: bumped to 2.6.2 because a) it's been a while
2772           b) the linker sources have moved c) the preprocessor is upgraded
2773
2774 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2775
2776         * support/regression/tests/snprintf.c: some checks
2777         * lib/src/printf_large.c: %bc: read char instead of int from stack
2778
2779 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
2780
2781         * device/include/mcs51/cc2430.h: inserted _XPAGE
2782
2783 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2784
2785         * device/include/mcs51/cc2430.h: added
2786
2787 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
2788
2789         * device/include/asm/default/features.h,
2790         * device/include/asm/ds390/features.h,
2791         * device/include/mcs51/at89s53.h,
2792         * device/include/ser.h,
2793         * device/include/ser_ir.h,
2794         * device/include/serial.h: changed keywords to double underscore variants,
2795           fixes bug 1590261 some more, thanks Steven Borley
2796
2797 2006-12-01 Raphael Neider <rneider AT web.de>
2798
2799         * src/pic/pcode.c (register_reassign): do not crash on recursive code
2800           but emit warning (recursion is not supported for pic14)
2801
2802 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2803
2804         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
2805         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
2806
2807 2006-11-30 Raphael Neider <rneider AT web.de>
2808
2809         * src/pic/device.c (dump_sfr): always emit symbols
2810         * src/pic/glue.c (pic14printPublics): fixed typo
2811
2812 2006-11-30 Raphael Neider <rneider AT web.de>
2813
2814         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
2815           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
2816           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
2817            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
2818            a sharebank, use a non-shared bank for the stack if none available
2819         * src/pic/device.h (struct memRange): added linked list next field,
2820           added prototypes for above functions
2821         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
2822           (typeRegWithIdx): accept fixed and unfixed stack registers
2823         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
2824           the stack, handle shared and banked stack (except for WSAVE),
2825           (insertBankSel): removed useless optimization (will never fire),
2826           (FixRegisterBanking): added optimization for devices with only one
2827           possibly aliased bank of memory, like 16f84
2828         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
2829           devices have no SHAREBANK in the linker script
2830         * device/include/pic/pic14devices.txt: documented memmap
2831         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
2832
2833 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2834
2835         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
2836           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
2837           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
2838           genhc08Code): switched most of the D (debug) macros to DD (detailed
2839           debug) macros to better control clutter in the generated .asm file.
2840         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
2841           genRightShift): fixed bug with non-constant bit shift stored to
2842           a volatile result (SF Open Discussion forum thread #1616749).
2843           Single byte case is not yet optimized.
2844
2845 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
2846
2847         * device/include/asm/mcs51/features.h,
2848         * device/include/malloc.h,
2849         * device/include/stdio.h: changed keywords to double underscore variants,
2850           fixes bug 1590261
2851
2852 2006-11-27 Borut Razem <borut.razem AT siol.net>
2853
2854         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
2855           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
2856           support/cpp2/output.h, support/cpp2/cppinit.c,
2857           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
2858           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
2859           support/cpp2/cppdefault.c, support/cpp2/system.h,
2860           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
2861           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
2862           support/cpp2/prefix.c, support/cpp2/except.h,
2863           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
2864           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
2865           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
2866           support/cpp2/version.c, support/cpp2/cppmain.c,
2867           support/cpp2/version.h, support/cpp2/hashtable.c,
2868           support/cpp2/cpperror.c:
2869           synchronized with GCC CPP release version 3.3.6,
2870           the latest where cppmain.c still exists.
2871         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
2872           support/cpp2/sdcppinit.c: added
2873
2874 2006-11-27 Borut Razem <borut.razem AT siol.net>
2875
2876         * support/cpp2/cpplex.c:
2877           fixed _asm ... _endasm handling bug, introduce with GCC CPP
2878           synchronization
2879         * support/cpp2/cpplib.c: removed definitions of unused variables
2880
2881 2006-11-26 Borut Razem <borut.razem AT siol.net>
2882
2883         * support/cpp2/libiberty.h: commented out x*alloc() declarations
2884           since they are redefined by macros in support/cpp2/sdcc.h
2885         * support/cpp2/sdcc.h: x*alloc macro redefinition
2886
2887 2006-11-25 Borut Razem <borut.razem AT siol.net>
2888
2889         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
2890           support/cpp2/configure, support/cpp2/Makefile.in,
2891           support/cpp2/cppfiles.c, support/cpp2/output.h,
2892           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
2893           support/cpp2/config.h, support/cpp2/cpplib.h,
2894           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
2895           support/cpp2/cppdefault.c, support/cpp2/config.in,
2896           support/cpp2/system.h, support/cpp2/cpplex.c,
2897           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
2898           support/cpp2/cppdefault.h, support/cpp2/prefix.c
2899           support/cpp2/hwint.h, support/cpp2/mbchar.h,
2900           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
2901           support/cpp2/configure.in, support/cpp2/intl.h,
2902           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
2903           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
2904           support/cpp2/version.c, support/cpp2/cppmain.c,
2905           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
2906           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
2907           support/cpp2/cpperror.c,
2908           support/cpp2/libiberty/safe-ctype.c,
2909           support/cpp2/libiberty/safe-ctype.h,
2910           support/cpp2/libiberty/splay-tree.c,
2911           support/cpp2/libiberty/obstack.c,
2912           support/cpp2/libiberty/lbasename.c,
2913           support/cpp2/libiberty/splay-tree.h,
2914           support/cpp2/libiberty/obstack.h:
2915           synchronized with GCC CPP release version 3.2.3,
2916           the latest before integration of cpp into gcc
2917         * support/cpp2/except.h, support/cpp2/line-map.c,
2918           support/cpp2/line-map.h,
2919           support/cpp2/libiberty/hex.c,
2920           support/cpp2/libiberty/concat.c,
2921           support/cpp2/libiberty/filenames.h: added
2922         * support/cpp2/intl.c: deleted
2923
2924 2006-11-24 Borut Razem <borut.razem AT siol.net>
2925
2926         * src/SDCC.y: enabled compilation of empty source file
2927         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
2928           "ISO C forbids an empty source file"
2929         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
2930           if all the code is ifdefed out.
2931
2932 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2933
2934         * src/hc08/gen.c (genPcall): fix for bug #1601032
2935
2936 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
2937
2938         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
2939         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
2940         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
2941         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
2942         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
2943         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
2944         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
2945         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
2946         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
2947         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
2948         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
2949         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
2950         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
2951         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
2952         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
2953           Renamed to all upper case as per the standard set by SiLabs
2954
2955 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
2956
2957         * device/include/mcs51/C8051F520.h: new, added
2958         * device/include/mcs51/compiler.h: added link about predefined macros
2959
2960 2006-11-23 Raphael Neider <rneider AT web.de>
2961
2962         * src/regression/Makefile: add -L path to fresh library
2963         * src/regression/simulate: emphasize FAILED output
2964         * src/regression/create_stc: output _failures from gpsim
2965         * src/regression/compare4.c,
2966         * src/regression/rotate6.c: fixed char literals,
2967           all compile, all run =8-D
2968
2969         * src/pic/pcode.h: added isPCASMDIR macro
2970         * src/pic/gen.c (genAnd): fixed bit offset
2971         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
2972           packBits): unified register numbering schemes,
2973           (newReg): do not insert stack registers into hash table,
2974           (initStack): unpinned pseudo stack, simplified,
2975           (typeRegWithIdx): fixed retrieval of stack registers,
2976         * src/pic/pcode.c (addpCodeComment,sameBank): added,
2977           (pCodeReplace): removed invalid assertion,
2978           (insertPCodeInstruction): fixed newly added labels,
2979           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
2980           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
2981           DumpFlow): removed unsed (broken?) code,
2982           (insertBankSel): prevent STATUS from being BANKSELed,
2983           (FixRegisterBanking): rewritten from scratch, implemented generic
2984             optimizations (suppress BANKSELs to same register and to registers
2985             present in all banks),
2986           (AnalyzeBanking): update flow after BANKSELection
2987
2988         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
2989             sharebank, let linker place it, mark STKxx symbols as emitted
2990
2991 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2992
2993         * src/regression/arrays.c,
2994         * src/regression/bank1.c,
2995         * src/regression/bool2.c,
2996         * src/regression/compare7.c,
2997         * src/regression/compare8.c,
2998         * src/regression/compare9.c,
2999         * src/regression/compare10.c,
3000         * src/regression/configword.c,
3001         * src/regression/for.c,
3002         * src/regression/mult1.c,
3003         * src/regression/pointer1.c,
3004         * src/regression/rotate6.c,
3005         * src/regression/string1.c,
3006         * src/regression/struct1.c,
3007         * src/regression/Makefile: make PIC14 regression tests run again
3008           (3 fail, 6 won't compile)
3009
3010 2006-11-21 Raphael Neider <rneider AT web.de>
3011
3012         * device/include/pic16/pic18f4550.h,
3013         * device/include/pic16/pic18f4455.h,
3014         * device/lib/pic16/libdev/pic18f4550.c,
3015         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
3016         * configure.in: removed superfluous closing bracket
3017
3018 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3019
3020         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
3021           always positive.
3022
3023 2006-11-21 Raphael Neider <rneider AT web.de>
3024
3025         * src/pic/device.{c,h}: added pic14_getPIC()
3026         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
3027           (genAnd): added PIC code for one case, fixes #1597044
3028         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
3029           SFRs that are present in all banks (e.g., STATUS)
3030
3031 2006-11-20 Raphael Neider <rneider AT web.de>
3032
3033         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
3034           INCFSZ/INCFSZW and declared them as changing Z bit,
3035           (insertPCodeInstruction): correctly invert the above instructions,
3036           fixes #1599333,
3037           (DoBankSelect): don't panic on po_immediates
3038
3039 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
3040
3041         * as/link/aslink.h,
3042         * as/link/mcs51/lkihx.c (newArea),
3043         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
3044         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
3045
3046 2006-11-11 Raphael Neider <rneider AT web.de>
3047
3048         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
3049           bitfield symbols, fixes #1579535 (once more...).
3050
3051 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3052
3053         * support/regression/generate-cases.py,
3054         * support/regression/fwk/include/testfwk.h,
3055         * support/regression/fwk/lib/testfwk.c: used code pointers,
3056           (about 50kByte less code generated for mcs51)
3057
3058 2006-11-06 Borut Razem <borut.razem AT siol.net>
3059
3060         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3061           debugger/mcs51/configure: fixed failed check because the function
3062           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
3063           who submitted the patch for gpsim.
3064         * debugger/mcs51/configure.in: removed the result message
3065         * debugger/mcs51/Makefile.in: fixed the config.status warning
3066           "... seems to ignore the --datarootdir setting"
3067
3068 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
3069
3070         * device/include/mcs51/c8051f020.h,
3071         * device/include/mcs51/c8051f040.h,
3072         * device/include/mcs51/c8051f060.h,
3073         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
3074         * src/z80/gen.c (gencjneshort),
3075         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
3076
3077 2006-10-31 Borut Razem <borut.razem AT siol.net>
3078
3079         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3080           debugger/mcs51/configure: get readline version
3081
3082 2006-10-30 Borut Razem <borut.razem AT siol.net>
3083
3084         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
3085         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3086           debugger/mcs51/configure: locate readline even when cross compiling
3087         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
3088
3089 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3090
3091         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
3092           serial port.
3093
3094 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
3095
3096         * device/include/malloc.h,
3097         * device/lib/calloc.c,
3098         * device/lib/free.c,
3099         * device/lib/malloc.c,
3100         * device/lib/realloc.c: moved definition of struct into sources
3101         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
3102
3103 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
3104
3105         * as/asx8051.dsp: corrected output directories
3106         * as/link/hc08: new directory for hc08 linker
3107         * as/hc08/aslink.h,             as/link/aslink.h,
3108         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
3109         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
3110         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
3111         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
3112         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
3113         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
3114         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
3115         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
3116         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
3117         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
3118         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
3119         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
3120         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
3121         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
3122         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
3123         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
3124         * as/link/hc08/conf.mk,
3125         * configure,
3126         * configure.in,
3127         * Makefile.in,
3128         * sdcc.dsw: moved hc08 linker to as/link/hc08
3129         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
3130         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
3131         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
3132         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
3133         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
3134         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
3135         * as/link/mcs51/aslink.dsp,
3136         * as/link/mcs51/Makefile.in: factored out the common files
3137         * as/hc08/lkstore.c: deleted, use the one already in as/link/
3138         * as/clean.mk: extra cleaning common files
3139         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
3140         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
3141         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
3142
3143 2006-10-29 Raphael Neider <rneider AT web.de>
3144
3145         * src/pic/ralloc.c (newReg): create aliases for registers with
3146           multiple names to fix #1579535 and #1584001,
3147           (regWithIdx,dirregWithName): resolve aliases on lookup
3148         * src/pic/pcode.c (DoBankSelect): die with error message on failing
3149           bankselect
3150         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
3151           to prevent build errors on small devices
3152
3153 2006-10-28 Raphael Neider <rneider AT web.de>
3154
3155         * src/pic/gen.c (genFunction,genCall): drop "same code page"
3156           assumption within interrupt handlers, fixes #1584940
3157         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
3158           "emitted" to avoid emitting them again in udata
3159
3160 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3161
3162         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
3163         Removed.
3164
3165 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3166
3167         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
3168         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
3169         on/off CR to CRLF conversion.
3170
3171 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3172
3173         * doc/sdccman.lyx: updated IRQ section
3174
3175 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3176
3177         * device/lib/serial_io.c: removed
3178         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
3179         replacements for serial_io.c
3180
3181 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
3182
3183         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
3184
3185 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3186
3187         * device/lib/serial_io.c: Default putchar() and getchar() for
3188           mcs51 uses serial port.
3189
3190 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
3191
3192         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
3193
3194 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3195
3196         * support/regression/ports/mcs51/support.c: smaller
3197         _sdcc_external_startup()
3198         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
3199
3200 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
3201
3202         * device/lib/gbz80/crt0.s,
3203         * device/lib/gbz80/crt0_rle.s,
3204         * device/lib/gbz80/div.s,
3205         * device/lib/gbz80/fstubs.s,
3206         * device/lib/gbz80/heap.s,
3207         * device/lib/gbz80/mul.s,
3208         * device/lib/gbz80/putchar.s,
3209         * device/lib/gbz80/stubs.s,
3210         * device/lib/z80/crt0.s,
3211         * device/lib/z80/crt0_rle.s,
3212         * device/lib/z80/div.s,
3213         * device/lib/z80/fstubs.s,
3214         * device/lib/z80/heap.s,
3215         * device/lib/z80/mul.s,
3216         * device/lib/z80/putchar.s,
3217         * device/lib/z80/stubs.s: reverted, I was mistaken
3218
3219 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3220
3221         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
3222         * support/regression/ports/mcs51/support.c: removed race
3223         condition on TI in _putchar allowing to use serial port mode 0
3224
3225 2006-10-20 Borut Razem <borut.razem AT siol.net>
3226
3227         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
3228
3229 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
3230
3231         * device/lib/gbz80/crt0.s,
3232         * device/lib/gbz80/crt0_rle.s,
3233         * device/lib/gbz80/div.s,
3234         * device/lib/gbz80/fstubs.s,
3235         * device/lib/gbz80/heap.s,
3236         * device/lib/gbz80/mul.s,
3237         * device/lib/gbz80/putchar.s,
3238         * device/lib/gbz80/stubs.s,
3239         * device/lib/z80/crt0.s,
3240         * device/lib/z80/crt0_rle.s,
3241         * device/lib/z80/div.s,
3242         * device/lib/z80/fstubs.s,
3243         * device/lib/z80/heap.s,
3244         * device/lib/z80/mul.s,
3245         * device/lib/z80/putchar.s,
3246         * device/lib/z80/stubs.s: removed all leading underscores from area names
3247
3248 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
3249
3250         * support/regression/ports/mcs51/support.c: use highest baudrate so the
3251           regression tests are not waiting in the simulator for simulated
3252           transmission of debug output
3253
3254 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3255
3256         * device/lib/printf_large.c: slightly smaller
3257         * doc/sdccman.lyx: do not use spaces within html links
3258
3259 2006-10-16 Borut Razem <borut.razem AT siol.net>
3260
3261         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
3262           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
3263           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
3264           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
3265           debugger/mcs51/configure:
3266           [ 1185668 ] add gnu readline support to sdcdb - enabled
3267
3268 2006-10-16 Raphael Neider <rneider AT web.de>
3269
3270         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
3271           fixes #1577882, removes close to all banking optimizations
3272
3273 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
3274
3275         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
3276           variables in code memory
3277         * support/regression/tests/absolute.c: added test for this
3278
3279 2006-10-15 Raphael Neider <rneider AT web.de>
3280
3281         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
3282           devices,
3283           (BankSelect): emit BANKSEL before touching linker-placed regs,
3284           fixes #1570934
3285
3286 2006-10-10 Raphael Neider <rneider AT web.de>
3287
3288         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
3289         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
3290         * src/pic/main.c (_pic14_parseOptions),
3291         * src/pic/main.h: mostly reverted to previous state, now use results
3292             from SDCCmain.c's argument parsing
3293
3294 2006-10-10 Borut Razem <borut.razem AT siol.net>
3295
3296         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
3297           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
3298           [ 1185668 ] add gnu readline support to sdcdb -
3299           prepared for READLINE, not enabled yet,
3300           thanks to <tal.bav AT gmail.com>
3301
3302 2006-10-10 Raphael Neider <rneider AT web.de>
3303
3304         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
3305         * src/pic16/devices.inc,
3306         * device/include/pic16 (pic18f[24]620.h),
3307         * device/include/pic18fregs.h,
3308         * device/lib/pic16/pics.all,
3309         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
3310             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
3311             Gary Plumbridge and Anton Strobl
3312
3313 2006-10-10 Raphael Neider <rneider AT web.de>
3314
3315         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
3316           --stack-siz=NUM options to configure the argument passing stack
3317         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
3318         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
3319           (pic14_getSharebankSize): obey --stack-siz=NUM,
3320           (pic14_getSharebankAddress): obey --stack-loc=NUM
3321
3322 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3323
3324         * doc/sdccman.lyx: added to the manual
3325         * doc/figures/ddd_example.png: added (neither pdflatex nor
3326         most browsers seem to like the .eps file)
3327
3328 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
3329
3330         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
3331         to /tmp and /var/tmp acc. LSB
3332         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
3333         RESULT_TYPE_IFX
3334         * support/regression/tests/onebyte.c: added test
3335
3336 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3337
3338         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
3339
3340 2006-10-05 Borut Razem <borut.razem AT siol.net>
3341
3342         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
3343           thanks to dfulab:
3344           - sdcc.dsw: changed property eol-style to CRLF
3345           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
3346
3347 2006-10-04 Raphael Neider <rneider AT web.de>
3348
3349         * device/include/pic/{pic16f84.h,pic16f84a.h},
3350         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
3351           from patch #1522504, thanks to Robas Teodor
3352
3353 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
3354
3355         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
3356           fixes bug 1566015
3357
3358 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
3359
3360         * src/pic16/glue.c (pic16emitMaps),
3361         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
3362         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
3363         * device/lib/pic16/libc/string/memcpypgm2ram.c,
3364         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
3365           Philipp Krause
3366         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
3367         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
3368
3369 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3370
3371         * support/librarian/sdcclib.c: Added option -l.
3372         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
3373           usage totals.
3374         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
3375           using Windows command prompt.
3376
3377 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
3378
3379         * device/lib/libsdcc.lib: added module rand
3380         * src/ds390/ralloc.c (rematStr),
3381         * src/hc08/ralloc.c (rematStr),
3382         * src/mcs51/ralloc.c (rematStr),
3383         * src/z80/ralloc.c (rematStr): made output more consistent
3384         * src/mcs51/gen.c: cosmetic changes
3385
3386 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
3387
3388         * src/port.h: added mem.cabs_name to PORT
3389         * src/ds390/main.c,
3390         * src/hc08/main.c,
3391         * src/mcs51/main.c,
3392         * src/pic16/main.c,
3393         * src/pic/main.c,
3394         * src/xa51/main.c,
3395         * src/z80/main.c: added cabs_name initializers
3396         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
3397           constants
3398           (emitMaps): emit absolutes in code memory into cabs_name
3399         * src/SDCCmem.c,
3400         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
3401         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
3402         * support/regression/fwk/include/testfwk.h: added define for at
3403         * support/regression/tests/absolute.c: added, new
3404
3405 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
3406
3407         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
3408           optimizations, see also patch 887161 by Stas Sergeev
3409         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
3410           to be necessary anymore,
3411           (102, 103, 104, 127): renamed all occurances of bp to _bp
3412
3413 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
3414
3415         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
3416           thanks Weston T. Schmidt for patch 1555221
3417         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
3418         * src/SDCCicode.c(geniCodeMultiply): small optimization
3419
3420 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
3421
3422         * device/include/stdlib.h: added rand prototypes
3423         * device/lib/rand.c: new, added
3424         * device/lib/Makefile.in: added rand.c
3425         * src/z80/peeph.def,
3426         * src/z80/peeph-gbz80.def,
3427         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
3428
3429 2006-09-20 Raphael Neider <rneider AT web.de>
3430
3431         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
3432
3433 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
3434
3435         * as/link/aslink.h: cosmetic changes
3436         * as/link/mcs51/Makefile.in,
3437         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
3438
3439 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
3440
3441         * as/link/aslink.h,
3442         * as/link/mcs51/aslink.h,
3443         * as/link/z80/aslink.h: merged and moved to as/link/
3444         * as/link/lkstore.c,
3445         * as/link/mcs51/lkstore.c: moved to as/link/
3446         * as/link/clean.mk: remove *.o
3447         * as/link/mcs51/alloc.h: deleted
3448         * as/link/mcs51/lkarea.c: added lnksect prototype
3449         * as/link/mcs51/lkdata.c,
3450         * as/link/mcs51/lklex.c,
3451         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
3452         * as/link/mcs51/lkmem.c,
3453         * as/link/mcs51/lknoice.c: removed include strcmpi.h
3454         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
3455         * as/link/mcs51/aslink.dsp,
3456         * as/link/mcs51/Makefile.aslink,
3457         * as/link/mcs51/Makefile.bcc,
3458         * as/link/mcs51/Makefile.in: updated for moved files
3459         * as/link/z80/lkarea.c,
3460         * as/link/z80/lkhead.c,
3461         * as/link/z80/lklex.c,
3462         * as/link/z80/lklibr.c,
3463         * as/link/z80/lklist.c,
3464         * as/link/z80/lkmain.c,
3465         * as/link/z80/lkrloc.c,
3466         * as/link/z80/lksym.c: synced with mcs51
3467         * as/link/z80/lkdata.c,
3468         * as/link/z80/lkeval.c,
3469         * as/link/z80/lkihx.c,
3470         * as/link/z80/lks19.c: cosmetic changes
3471         * as/link/z80/Makefile.in,
3472         * as/link/z80/linkgbz80.dsp,
3473         * as/link/z80/linkz80.dsp: updated for moved files
3474
3475 2006-09-16 Borut Razem <borut.razem AT siol.net>
3476
3477         * debugger/mcs51/sdcdb.c: partially fixed
3478           [ 1203664 ] sdcdb fails to open files w. two "." periods
3479         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
3480           debugger/mcs51/symtab.h: fixed indenting
3481         * configure.in, configure: up to date with latest Maarten's changes
3482
3483 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
3484
3485         as/link/mcs51
3486         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
3487         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
3488         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
3489         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
3490         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
3491         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
3492         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
3493         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
3494         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
3495         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
3496         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
3497         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
3498         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
3499         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
3500         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
3501         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
3502         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
3503         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
3504         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
3505         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
3506         as/link/mcs51/alloc.h,
3507         as/link/mcs51/clean.mk,
3508         as/link/mcs51/conf.mk,
3509         as/link/mcs51/Makefile.bcc,
3510         as/link/mcs51/Makefile.in,
3511         as/link/mcs51/readme.390,
3512         as/link/mcs51/strcmpi.c,
3513         as/link/mcs51/strcmpi.h,
3514         as/mcs51/clean.mk,
3515         as/mcs51/Makefile.bcc,
3516         as/mcs51/Makefile.in,
3517         configure,
3518         Makefile.in,
3519         sdcc.dsw: moved mcs51 linker to as/link/mcs51
3520
3521 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
3522
3523         * as/link,
3524         * as/link/Makefile.in,
3525         * as/link/z80/linkgbz80.dsp,
3526         * as/link/z80/linkz80.dsp,
3527         * configure,
3528         * link,
3529         * link/clean.mk,
3530         * link/Makefile.in,
3531         * link/README,
3532         * link/z80,
3533         * link/z80/aslink.h,
3534         * link/z80/clean.mk,
3535         * link/z80/conf.mk,
3536         * link/z80/linkgbz80.dsp,
3537         * link/z80/linkz80.dsp,
3538         * link/z80/lkarea.c,
3539         * link/z80/lkdata.c,
3540         * link/z80/lkeval.c,
3541         * link/z80/lkgb.c,
3542         * link/z80/lkgg.c,
3543         * link/z80/lkhead.c,
3544         * link/z80/lkihx.c,
3545         * link/z80/lklex.c,
3546         * link/z80/lklibr.c,
3547         * link/z80/lklist.c,
3548         * link/z80/lkmain.c,
3549         * link/z80/lkrloc.c,
3550         * link/z80/lks19.c,
3551         * link/z80/lksym.c,
3552         * link/z80/Makefile.in,
3553         * Makefile.in,
3554         * sdcc.dsw: moved link/ to as/link/
3555
3556 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
3557
3558         * as/mcs51/i51mch.c (machine): fixed warning
3559
3560 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
3561
3562         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
3563
3564 2006-09-09 Borut Razem <borut.razem AT siol.net>
3565
3566         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
3567           sdcdb WIN32 native port
3568         * src/clean.mk: fixed
3569
3570 2006-09-08 Borut Razem <borut.razem AT siol.net>
3571
3572         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
3573
3574 2006-09-08 Raphael Neider <rneider AT web.de>
3575
3576         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
3577         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
3578             to gplink to disable processor mismatch warning and to allow
3579             the use of devices with only aliased (shared) memory banks,
3580           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
3581
3582 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3583
3584         * doc/sdccman.lyx: Some re-formating plus example on using
3585           #pragma preproc_asm +/-
3586
3587 2006-09-07 Borut Razem <borut.razem AT siol.net>
3588
3589         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
3590           section
3591
3592 2006-09-06 Borut Razem <borut.razem AT siol.net>
3593
3594         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
3595           line at sdcc.nsi:153
3596         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
3597
3598 2006-09-05 Borut Razem <borut.razem AT siol.net>
3599
3600         * configure.in, configure: support for winsock2
3601         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
3602           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
3603           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
3604           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
3605           debugger/mcs51/symtab.h: sdcdb WIN32 native port
3606
3607 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
3608
3609         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
3610           and OP_DEFS
3611         * support/regression/tests/bug1551947.c: new, added
3612         * src/SDCCsymt.h: strings are char* not byte*
3613
3614 2006-09-05 Raphael Neider <rneider AT web.de>
3615
3616         * device/lib/pic16/libdev/pic18f4550.c,
3617           device/include/pic16/pic18f4550.h: added PORTD/TRISD
3618             declarations/definitions from patch #1520949
3619
3620 2006-09-05 Raphael Neider <rneider AT web.de>
3621
3622         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
3623           byte-aligned bitfields, fixes #1539278
3624
3625 2006-09-05 Raphael Neider <rneider AT web.de>
3626
3627         * src/pic/gen.c (genReceive): skip unreferenced arguments,
3628           fixes #1544120
3629
3630 2006-09-04 Borut Razem <borut.razem AT siol.net>
3631
3632         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
3633         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
3634           -mno-cygwin is a part of the compiler name
3635         * support/scripts/sdcc_mingw32: don't disable ucsim
3636
3637 2006-09-03 Borut Razem <borut.razem AT siol.net>
3638
3639         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
3640         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
3641
3642 2006-09-03 Raphael Neider <rneider AT web.de>
3643
3644         * src/pic/ralloc.c,
3645         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
3646           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
3647           fixes #1550049
3648
3649 2006-09-01 Borut Razem <borut.razem AT siol.net>
3650
3651         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
3652           to make ppc-osx happy
3653
3654 2006-08-31 Borut Razem <borut.razem AT siol.net>
3655
3656         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
3657         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
3658         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
3659         * support/regression/ports/ds390/spec.mk,
3660           support/regression/ports/mcs51/spec.mk,
3661           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
3662           To run regression tests in mingw environment:
3663           make DEV_NULL=NUL CC=gcc
3664
3665 2006-08-30 Borut Razem <borut.razem AT siol.net>
3666
3667         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
3668           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
3669           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
3670           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
3671           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
3672           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
3673           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
3674           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
3675           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
3676           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
3677           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
3678           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
3679           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
3680           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
3681           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
3682           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
3683           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
3684           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
3685           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
3686           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
3687           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
3688           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
3689           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
3690           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
3691           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
3692           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
3693           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
3694           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
3695           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
3696           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
3697           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
3698           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
3699           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
3700           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
3701           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
3702           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
3703           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
3704           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
3705           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
3706           ucsim WIN32 native port
3707
3708 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3709
3710         * doc/sdccman.lyx: added note on dynamic memory heap initialization
3711
3712 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
3713
3714         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
3715         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
3716
3717 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
3718
3719         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
3720         * support/regression/tests/bug1546986.c: new, added
3721         * as/mcs51/.cvsignore,
3722         * debugger/mcs51/.cvsignore,
3723         * src/.cvsignore: deleted
3724
3725 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3726
3727         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
3728           definitions)
3729
3730 2006-08-20 Borut Razem <borut.razem AT siol.net>
3731
3732         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
3733           removed cl_listen_console::match(), cl_console::match(),
3734           restructured cl_commander::proc_input()
3735
3736 2006-08-16 Borut Razem <borut.razem AT siol.net>
3737
3738         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
3739           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
3740           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
3741
3742 2006-08-14 Borut Razem <borut.razem AT siol.net>
3743
3744         * support/regression/Makefile.in,
3745           support/regression/ports/pic14/gpsim.cmd,
3746           support/regression/ports/pic14/spec.mk,
3747           support/regression/ports/pic14/support.c:
3748           added pic14 regression test
3749
3750 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
3751
3752         * as/doc/asxhtm.html: documented changed ABS behaviour
3753         * as/doc/README: fixed some typos
3754
3755 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
3756
3757         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
3758           not defined on host
3759
3760 2006-08-12 Borut Razem <borut.razem AT siol.net>
3761
3762         * support/regression/fwk/include/testfwk.h,
3763           support/regression/fwk/lib/testfwk.c,
3764           support/regression/generate-cases.py,
3765           support/regression/Makefile.in:
3766           regression test framework does not depend on function pointers and
3767           variable arguments
3768
3769 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
3770
3771         * device/include/stddef.h: c temporary hack to fix bug 1518273
3772
3773 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3774
3775         * device/include/mcs51/cc2510fx.h: added
3776         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
3777           to projects.
3778
3779 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
3780
3781         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
3782         * as/z80/Makefile.in: added strcmpi.c
3783         * as/z80/z80adr.c: added upper case registers and lower case conditionals
3784         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
3785
3786 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
3787
3788         * device/lib/gbz80/asm_strings.s,
3789         * device/lib/gbz80/crt0_rle.s,
3790         * device/lib/gbz80/div.s,
3791         * device/lib/gbz80/mul.s,
3792         * device/lib/gbz80/shift.s,
3793         * device/lib/z80/asm_strings.s,
3794         * device/lib/z80/crt0_rle.s,
3795         * device/lib/z80/div.s,
3796         * device/lib/z80/mul.s,
3797         * device/lib/z80/shift.s: changed to all lower case menmonics except the
3798           flags which are all upper case
3799
3800 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
3801
3802         * as/z80/asm.h: made CASE_SENSITIVE 1
3803         * link/z80/aslink.h: made CASE_SENSITIVE 1
3804         * src/z80/gen.c (throughout): made all conditionals upper case
3805         * support/regression/tests/bug1503067.c: new
3806
3807 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
3808
3809         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
3810           (shiftIntoPair): added case 2 for PAIR_IY,
3811           (setupToPreserveCarry): replaced parameters with iCode and check if
3812            PAIR_DE is in use to fix bug 1399290,
3813           (genPlus, genMinus): updated call to setupToPreserveCarry
3814         * support/regression/tests/bug1399290.c: new
3815
3816 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
3817
3818         * device/lib/Makefile.in (Z80SOURCES): enabled float support
3819         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
3820         * src/ds390/gen.c (shiftRLong),
3821         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
3822         * src/mcs51/gen.c (sameReg): changed to sameByte,
3823           (xch_a_aopGet): new,
3824           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
3825            shiftRLong): fixed bug 1533966
3826         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
3827           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
3828         * support/regression/Makefile.in: disabled z80, enabled ucz80
3829         * support/regression/tests/float_trans.c: enabled test for z80 and host
3830         * support/regression/tests/shifts2.c: new, for testing bug 1533966
3831
3832 2006-08-01 Borut Razem <borut.razem AT siol.net>
3833
3834         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
3835           comparison is always false due to limited range of data type
3836           on PPC64 machine (openpower-linux1) where "char = unsigned char"
3837
3838 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
3839
3840         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
3841         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
3842         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
3843         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
3844
3845 2006-07-31 Borut Razem <borut.razem AT siol.net>
3846
3847         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
3848           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
3849           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
3850           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
3851           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
3852           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
3853           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
3854           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
3855           enable ucsim mingw compilation. Serial port is disabled,
3856           since it uses termios.h API, which is not available on native
3857           WIN32
3858
3859 2006-07-31 Borut Razem <borut.razem AT siol.net>
3860
3861         * Small Device C Compiler 2.6.0 released
3862         * support/scripts/sdcc.nsi: added FULL_DOC option
3863         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
3864
3865 2006-07-28 Borut Razem <borut.razem AT siol.net>
3866
3867         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
3868         * doc/INSTALL.txt: updated
3869
3870 2006-07-27 Borut Razem <borut.razem AT siol.net>
3871
3872         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
3873           device/lib/pic/libdev/Makefile.in: fixed bug
3874           [ 1438354 ] pic libsdcc: distclean doesn't work
3875         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
3876           device/lib/pic16/libio/Makefile.in: fixed bug
3877           [ 1438344 ] pic16 lib: clean doesn't work properly
3878         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
3879
3880 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
3881
3882         * device/lib/pic/libsdcc/fsdiv.c,
3883         * device/lib/pic/libsdcc/fsmul.c,
3884         * device/lib/pic16/libsdcc/float/fsdiv.c,
3885         * device/lib/pic16/libsdcc/float/fsmul.c,
3886         * device/lib/_fsdiv.c,
3887         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
3888         * support/regression/tests/bug1520966.c: added
3889         * doc/knownbugs.html: removed [ 1520966 ] from the list
3890
3891 2006-07-25 Borut Razem <borut.razem AT siol.net>
3892
3893         * configure.in, configure, sdccconf_in.h: fixed bug
3894           [ 1519095 ] regression test onebyte.c fails on ppc64 host
3895         * doc/knownbugs.html: removed [ 1519095 ] from the list
3896
3897 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
3898
3899         * doc/knownbugs.html: added, contains list of known bugs at release
3900         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
3901
3902 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
3903
3904         * device/include/mcs51/compiler.h: added SFRX for xdata based special
3905           function registers and corrected defaults with additional warning
3906         * device/lib/malloc.c: cosmetic changes
3907         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
3908         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
3909           (fillGaps): and used it
3910
3911 2006-07-20 Raphael Neider <rneider AT web.de>
3912
3913         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
3914           output unless SDCCPICDEBUG is set
3915         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
3916           output if SILENT is set
3917
3918 2006-07-11 Borut Razem <borut.razem AT siol.net>
3919
3920         * doc/README.txt: updated
3921
3922 2006-07-10 Borut Razem <borut.razem AT siol.net>
3923
3924         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
3925           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
3926           in WIN32 installation
3927         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
3928           release candidate 1
3929
3930 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
3931
3932         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
3933         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
3934
3935 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
3936
3937         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
3938
3939 2006-07-06 Borut Razem <borut.razem AT siol.net>
3940
3941         * support/regression/tests/bitfields.c:
3942           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
3943         * support/regression/tests/constantRange.c:
3944           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
3945
3946 2006-07-04 Borut Razem <borut.razem AT siol.net>
3947
3948         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
3949           src/port.mk,
3950           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
3951           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
3952           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
3953           reverted changes from 2006-07-03
3954         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
3955         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
3956           added CPPFLAGS, used by the host port
3957
3958 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
3959
3960         * support/regression/valdiag/tests/switch.c,
3961         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
3962         * support/regression/tests/libmullong.c: fixed for host
3963         * support/regression/ports/host/spec.mk: disable all warnings for host,
3964         SDCC runs with --less-pedantic too
3965
3966 2006-07-03 Borut Razem <borut.razem AT siol.net>
3967
3968         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
3969           defined CPPFLAGS
3970         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
3971         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
3972           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
3973           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
3974           include ../port.mk
3975         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
3976           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
3977           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
3978           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
3979
3980 2006-07-02 Raphael Neider <rneider AT web.de>
3981
3982         * src/pic16/devices.inc,
3983         * device/include/pic16/pic18fregs.h,
3984         * device/include/pic16/pic18f4550.h,
3985         * device/lib/pic16/pics.all,
3986         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
3987
3988 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
3989
3990         * as/hc08/lkaomf51.c (OutputName),
3991         * as/mcs51/lkaomf51.c (OutputName),
3992         * as/z80/asmain.c (asmbl),
3993         * src/ds390/main.c (asmLineNodeFromLineNode),
3994         * src/hc08/ralloc.c (hc08_assignRegisters),
3995         * src/mcs51/main.c (asmLineNodeFromLineNode),
3996         * src/xa51/ralloc.c (checkRegMask),
3997         * src/xa51/gen.c (emitcode),
3998         * src/z80/gen.c (_emit2),
3999         * src/SDCCast.c (searchLitOp),
4000         * src/SDCCglobl.h,
4001         * support/packihx/packihx.c,
4002         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
4003         * src/ds390/gen.c (aopPutUsesAcc),
4004         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
4005         * support/regression/tests/libmullong.c (mullong_wrapper),
4006         * src/SDCCsymt.c (powof2),
4007         * src/SDCCast.c,
4008         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
4009         * src/SDCCsymt.h: added TYPE_TARGET_*
4010         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
4011         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
4012         SDCCast because 1) header problems 2) this is the right place
4013         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
4014         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
4015         prototype
4016
4017 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
4018
4019         * src/SDCCicode.h: removed buggy semicolon in unused macro
4020         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
4021         search for previous definiton of auto symbols too,
4022         (findPrevUse): fixed logic of emitWarnings
4023
4024 2006-06-26 Raphael Neider <rneider AT web.de>
4025
4026         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
4027           PCLATH and PCLATU on interrupts, potentially fixes #1505141
4028
4029 2006-06-25 Raphael Neider <rneider AT web.de>
4030
4031         * device/lib/pic/libm: NEW, added math library functions
4032         * device/lib/pic/libsdcc: NEW; added float support functions
4033         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
4034         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
4035           NEW, added math related headers
4036         * device/include/asm/pic/features.h: NEW
4037         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
4038           (popGet): allow larger offsets for AOP_PCODE,
4039           (genDataPointerSet): handle literals explicitly, more debug output,
4040           (genAssign): fixed for float using aopLiteral ;-)
4041         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
4042           GOTO initialisation routine
4043         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
4044           flag on registers, fixes #1469043 (local variables do not work)
4045         * src/pic/main.c (_pic14_do_link),
4046         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
4047           available
4048
4049 2006-06-25 Borut Razem <borut.razem AT siol.net>
4050
4051         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
4052           characters printed (not including the trailing '\0' used to end
4053           output to strings). Problem detected in regression test bug-927659.c.
4054           NOTE: printf() family functions should return int instead
4055           unsigned int!
4056         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
4057           specifier are printed as themselves
4058         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
4059           support flags, width and precision specifiers
4060
4061 2006-06-24 Borut Razem <borut.razem AT siol.net>
4062
4063         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
4064           to the list of sdcc tagrets not supporting bit type
4065         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
4066           testfor pic16 due to bug:
4067           [ 1511794 ] pic16: regression test bug-895992.c fails
4068
4069 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
4070
4071         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
4072         * src/SDCCglue.c (initPointer), fixed bug 1496419
4073         * support/regression/tests/bug1496419.c: new, added
4074
4075 2006-06-22 Borut Razem <borut.razem AT siol.net>
4076
4077         * support/regression/ports/pic16/support.c: use gpsim usart module from
4078           libgpsim_modules library
4079
4080 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4081
4082         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
4083         IP0H to IPH0.
4084
4085 2006-06-19 Raphael Neider <rneider AT web.de>
4086
4087         * src/pic/glue.h,src/pic16/glue.h: added prototypes
4088         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
4089           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
4090           (pic14printExterns,pic14printPublics,pic16printPublics,
4091           pic16_printExterns): use new functions to emit symbols
4092           (picglue,pic16glue): emit publics before emitting externs
4093         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
4094           locally defined functions to avoid bug #1443651
4095         * support/regression/tests/bug-716242.c: removed pic16 workaround
4096         * support/regression/ports/pic16/spec.mk: ignore errors during build
4097
4098 2006-06-19 Raphael Neider <rneider AT web.de>
4099
4100         * src/pic/glue.h: added pic14aopLiteral prototype
4101         * src/pic/glue.c (pic14aopLiteral): return unsigned int
4102         * src/pic/gen.c: removed stdint.h dependency
4103           (aopGet): use Safe_strdup()
4104           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
4105           (genDataPointerSet): use pic14aopLiteral()
4106         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
4107           for pic16; thanks to Bernhard and Maarten
4108
4109 2006-06-18 Borut Razem <borut.razem AT siol.net>
4110
4111         * support/regression/tests/structflexarray.c: flexible array members
4112           not supported by gcc < 3
4113         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
4114           GUI tool by default
4115         * src/pic/gen.c: don't include [p]strdin.h on solaris
4116         * support/Util/pstdint.h: addad svn attributes
4117         * support/regression/tests/constantRange.c,
4118           support/regression/tests/rotate.c: include inttypes.h instead
4119           stdint.h on solaris, addad svn attributes
4120
4121 2006-06-18 Raphael Neider <rneider AT web.de>
4122
4123         * src/SDCCsymt.c (initCSupport): change return type of divschar to
4124           int for PIC16
4125         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
4126           (pic16_genMinusBits): simplified sign-extension
4127           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
4128             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
4129             adjusted to correctly handle mixed-signed operands, disabled
4130             now unused multiplciation routines
4131         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
4132           (assignResultValue): added argument denoting the size of the result
4133             as returned by the function (fixes upcasts in assigning from
4134             function calls: char foo(); int i = foo();)
4135           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
4136             function result to assignResultValue
4137           (genMult): disabled inlined multiplication code
4138           (genDiv): augmented to also handle the modulus operator, fixed to
4139             handle mixed-signed operands correctly
4140           (genMod): simply call genDiv, disabled unused code
4141           (genAssign): fixed missing (sign-)extension on result
4142         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
4143             valid char operands, allow signed operands for native code, added
4144             division and modulo operator handling
4145         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
4146
4147         As a consequence, onebyte.c (if split into two files) and muldiv.c
4148         pass regression tests.
4149
4150 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4151
4152         * doc/Makefile.in: two runs of makeindex seem needed to get
4153         correct page references in the index of sdccman.pdf
4154         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
4155
4156 2006-06-17 Borut Razem <borut.razem AT siol.net>
4157
4158         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
4159
4160 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4161
4162         * doc/sdccman.lyx: updated, added (porting source code, debugging),
4163         mentioned ec2drv and paulmon
4164
4165 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
4166
4167         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
4168           consecutive abs areas
4169           (find_empty_space, allocate_space): added map to handle codemap or
4170            xdatamap,
4171           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
4172            absolute idata and xdata
4173         * as/mcs51/lkmem.c (summary2): updated legend
4174
4175 2006-06-16 Raphael Neider <rneider AT web.de>
4176
4177         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
4178
4179 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
4180
4181         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
4182           1208515
4183         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
4184
4185 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
4186
4187         * src/port.h (struct PORT): added field gp_tags, to hold the tag
4188         value of generic pointers,
4189         * src/avr/main.c,
4190           src/ds390/main.c,
4191           src/hc08/main.c,
4192           src/izt/i186.c,
4193           src/izt/tlcs900h.c,
4194           src/mcs51/main.c,
4195           src/pic/main.c,
4196           src/pic16/main.c,
4197           src/xa51/main.c,
4198           src/z80/main.c: PORT structure, added elements for gp_tags field,
4199         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
4200         fields in the PORT structure of each port,
4201         * src/SDCCast.c (decorateType): allow processing of generic pointers
4202         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
4203         S_FIXED symbols
4204
4205 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
4206
4207         * link/z80/lkgb.c,
4208         * link/z80/lkgg.c,
4209         * src/pic16/gen.c,
4210         * src/pic16/main.c,
4211         * src/pic16/pcode.c,
4212         * src/pic/main.c,
4213         * src/pic/pcoderegs.c,
4214         * src/SDCCicode.c,
4215         * src/SDCCmain.c,
4216         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
4217           bug 1504689 on minGW
4218
4219 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4220
4221         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
4222
4223 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
4224
4225         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
4226
4227 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
4228
4229         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
4230           for optimization
4231
4232 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
4233
4234         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
4235         to a char variable. Fixed bug #1504211
4236         * device/include/pic16/adc.h,
4237         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
4238         and fixed bug #1364390
4239
4240 2006-06-10 Borut Razem <borut.razem AT siol.net>
4241
4242         * CVSROOT: removed the CVS left-over
4243
4244 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
4245
4246         * as/hc08/asmain.c (asexit),
4247         * as/hc08/lkmain.c (lkexit),
4248         * as/mcs51/asmain.c (asexit),
4249         * as/mcs51/lkmain.c (lkexit),
4250         * src/SDCCglue.c (DEFSETFUNC),
4251         * src/SDCCmain.c (linkEdit, assemble),
4252         * support/librarian/sdcclib.c (AddRel),
4253           replaced unlink() by standard C remove()
4254         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
4255         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
4256           gatherImplicitVariables): new, added to fix bug 608752,
4257           (createFunction): added gatherImplicitVariables()
4258         * src/SDCCast.h: added createRMW prototype
4259         * src/SDCCsymt.h (struct symbol): added infertype
4260         * support/regression/tests/bug608752.c: new, added
4261
4262 2006-06-10 Raphael Neider <rneider AT web.de>
4263
4264         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
4265           multibyte dummy reads (fixes #1503234)
4266
4267 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
4268
4269         * device/include/mcs51/compiler.h: new, added header file to enable
4270           creating common sfr definition header files for different compilers
4271
4272 2006-06-05 Raphael Neider <rneider AT web.de>
4273
4274         * src/pic16/{pcode.h,genarith.c}:
4275           introduced pCodeOp combining any two pCodeOps (previously only
4276           two register operands could be combined), removed pcop2 from
4277           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
4278         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
4279         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
4280           rewritten to use new PO_TWO_OPS
4281         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
4282         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
4283           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
4284           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
4285           (pic16_get_op): embraced return arg to allow #define return(x),
4286             added new case for combined opcodes
4287           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
4288           (pic16_pCode2str,pic16_getRegFrompCodeOp,
4289            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
4290
4291 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
4292
4293         * src/SDCCval.c (checkConstantRange): added
4294         * src/SDCCval.h: added checkConstantRange
4295         * support/Util/SDCCerr.c,
4296         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
4297         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
4298         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
4299         * src/SDCCast.c (decorateType): added checkConstantRange,
4300         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
4301         can be emitted with the correct always true/false warning,
4302         added optimization for double '!';
4303         result of decorateType() must be assigned back to the tree, because
4304         decorateType() can change the tree
4305         * src/SDCCicode.c (geniCodeLogic),
4306         (geniCodeAssign): replaced new checkConstantRange, added warnings,
4307         (checkConstantRange): removed, it was only a fragment which never
4308         emitted a warning
4309         * src/SDCCsymt.c (computeType): fixed promotion for
4310         "-1 < (unsigned bit) b"
4311         * src/pic/ralloc.c (packRegsForAssign),
4312         * src/pic16/ralloc.c (packRegsForAssign),
4313         * src/hc08/ralloc.c (packRegsForAssign),
4314         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
4315         from mcs51
4316         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
4317         * support/regression/tests/constantRange.c: added
4318         * support/valdiag/tests/constantRange.c: added
4319         * support/valdiag/valdiag.py: added -DPORT_HOST=1
4320
4321 2006-06-02 Borut Razem <borut.razem AT siol.net>
4322
4323         * support/regression/ports/pic16/support.c: increase stack size
4324           to 255 bytes
4325         * support/regression/Makefile.in: sort tests by name so that the
4326           resutlts can be compared on different machines / platforms
4327
4328 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
4329
4330         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
4331         * src/ds390/gen.c (emitLabel): new, added,
4332           (genDjnz): fixed stack overflow bug,
4333           (throughout): cosmetic changes to sync with mcs51/gen.c,
4334           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
4335         * src/mcs51/gen.c (genEndFunction): small optimization,
4336           (throughout): cosmetic changes to sync with ds390/gen.c
4337
4338 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
4339
4340         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
4341           (_print_format): fixed printing pointers
4342         * src/mcs51/gen.c (emitLabel, movb): new, added,
4343           (genAssign): small optimization,
4344           (genDjnz): fixed stack overflow bug,
4345           (throughout): replaced sprintf with SNPRINTF,
4346           replaced mcs51_regWithIdx with REG_WITH_INDEX,
4347           replaced emitcode("mov", "b,...") with MOVB(...),
4348           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
4349           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
4350         * src/mcs51/peeph.def: added rules 140 and 264
4351         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
4352           so they may get optimized into registers
4353
4354 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
4355
4356         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
4357           immediately when encountered,
4358           (printUsage): always use stderr even on windows
4359
4360 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
4361
4362         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
4363         (processParms): fixed bug #1247551
4364         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
4365         parseCmdLine, main): print '--version' to stdout,
4366         print 'help' to stdout if --help is given,
4367         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
4368         arguments are given; fixed --help
4369
4370 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
4371
4372         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
4373         * support/regression/tests/bug-1493710.c: added
4374
4375 2006-05-27 Borut Razem <borut.razem AT siol.net>
4376
4377         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
4378           static instead auto
4379         * support/regression/ports/pic16/support.c: increase stack size
4380           from default 64 bytes to 128 bytes
4381         * support/regression/tests/staticinit.c,
4382           support/regression/tests/float.c: regression tests fully enabled
4383           for pic16 port by putting the initialized data arrays into the code
4384           section
4385         * support/regression/ports/pic16/spec.mk: don't link default libraries.
4386           This was changed by mistake in the previous version.
4387
4388 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
4389
4390         * src/pic16/gen.c (genFunction, genEndFunction): some
4391         beautifications, fixed bug with falsely restoring FSR2 in large
4392         stack model, thanks to Beau E. Cox for reporting the bug
4393
4394 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
4395
4396         * debugger/mcs51/break.c,
4397         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
4398           use %p to print pointers, made address variables unsigned
4399         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
4400         * debugger/mcs51/symtab.c (parseSymbol): must return something
4401         * src/mcs51/gen.c (aopForSym): small optimization,
4402            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
4403           (freeAsmop): added missing break,
4404           (aopPut): removed parameter bvolatile, determine it inside the function,
4405           (saveRegisters, unsaveRegisters): small optimization,
4406           (genIpush): removed pointless check,
4407           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
4408           replaced sprintf with SNPRINTF,
4409           replaced strcpy with strncpyz,
4410           updated aopPut calls,
4411           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
4412         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
4413
4414 2006-05-24 Borut Razem <borut.razem AT siol.net>
4415
4416         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
4417           modification of test for the pic16 port, put the array to the code
4418           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
4419
4420 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4421
4422         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
4423         * support/Util/pstdint.h: added
4424
4425 2006-05-22 Borut Razem <borut.razem AT siol.net>
4426
4427         * src/regression/Makefile: removed bool2.c test, added -q linker option
4428         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
4429           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
4430           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
4431           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
4432           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
4433           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
4434           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
4435           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
4436           define SUPPORT_BIT_TYPES 0, removed unused bit variables
4437
4438 2006-05-22 Raphael Neider <rneider AT web.de>
4439
4440         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
4441           bug #1492360 (problematic due to generic pointers, see code)
4442
4443 2006-05-22 Borut Razem <borut.razem AT siol.net>
4444
4445         * support/regression/ports/pic16/specs.mk: removed stack size linker
4446           directive
4447         * support/regression/tests/array.c,
4448           support/regression/tests/bitopcse.c,
4449           support/regression/tests/bug-908454.c,
4450           support/regression/tests/malloc.c: modified for pic16 regression test
4451         * support/regression/tests/bitfields.c:
4452           pic16 - excluded bitfileds of size > 8
4453         * support/regression/tests/bp.c: pic16 - reduced data size
4454         * support/regression/tests/bug-221100.c: pic16 - reduced data size
4455         * support/regression/tests/bug-460010.c:
4456           pic16 - used the absolute address the fits in memory
4457         * support/regression/tests/bug-716242.c:
4458           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
4459         * support/regression/tests/float.c:
4460           pic16 - excluded - data size too big
4461         * support/regression/tests/onebyte.c:
4462           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
4463         * support/regression/tests/shifts.c:
4464           pic16 - function names probably have to differ in first X characters
4465           (gpasm limitation?)
4466         * support/regression/tests/staticinit.c:
4467           pic16 - excluded some tests due error: no target memory available for
4468           section ".idata"
4469
4470 2006-05-22 Borut Razem <borut.razem AT siol.net>
4471
4472         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
4473           second try. Thanks Stas Sergeev once more.
4474
4475 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
4476
4477         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
4478           (genLeftShift, genRightShift): fixed bug 1491627
4479         * src/hc08/peeph.def (rules 7, 8.x): added
4480         * support/regression/tests/shifts.c (ShiftLeftByParam,
4481           ShiftRightByParam, testShiftByParam): added to test variable shifting
4482
4483 2006-05-20 Raphael Neider <rneider AT web.de>
4484
4485         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
4486         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
4487           (allocReg): add only new registers to dynAllocRegs,
4488           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
4489             #1489055, #1445850, and probably #1483693
4490
4491 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
4492
4493         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
4494         bug in for-loop that didn't emit the last of CONFIG and ID registers
4495
4496 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
4497
4498         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
4499           with offset
4500         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
4501           1489016, 1434401 and 1490124
4502         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
4503           1489016, 1434401 and 1490124
4504
4505 2006-05-17 Borut Razem <borut.razem AT siol.net>
4506
4507         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
4508           thanks Stas Sergeev
4509
4510 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
4511
4512         * device/include/mcs51/P89c51RD2.h,
4513         * device/include/mcs51/P89LPC901.h,
4514         * device/include/mcs51/P89LPC922.h,
4515         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
4516
4517 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
4518
4519         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
4520         to fix missing stack pragma in compiled binary object file,
4521
4522 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
4523
4524         * support/packihx/configure.in,
4525         * support/packihx/configure: removed warning, autoconf >= 2.5x can
4526         determine sizeof basic types even while cross compiling
4527
4528 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
4529
4530         * src/avr/gen.c (aopop),
4531         * src/ds390/gen.c (aopOp),
4532         * src/hc08/gen.c (aopOp),
4533         * src/mcs51/gen.c (aopop),
4534         * src/pic16/gen.c (pic16_aopOp),
4535         * src/pic/gen.c (aopOp),
4536         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
4537         if size of operand is smaller than spill location
4538
4539 2006-05-12 Borut Razem <borut.razem AT siol.net>
4540
4541         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
4542           have to have CR/LF line endings even if they are checked out on *nix
4543           or on WIN32 in cygwin binmode
4544
4545 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
4546
4547         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
4548         * device/include/ds80c390.h: added sfr16 definitions
4549         * src/ds390/gen.c,
4550         * src/ds390/gen.h,
4551         * src/ds390/main.c,
4552         * src/ds390/ralloc.c,
4553         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
4554           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
4555           bit returning functions
4556         * support/regression/tests/sfr16.c: enabled test on ds390
4557
4558 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4559
4560         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
4561         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
4562
4563 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
4564
4565         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
4566         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
4567           (cl_address_space constructor): removed expensive initialization,
4568           (cl_address_space::get_cell): extended for late initialization,
4569           (cl_address_space::*): use late initialization,
4570           (cl_address_decoder::activate): removed expensive initialization,
4571           This reduced regression test running time by 25%
4572
4573 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
4574
4575         * packihx/,
4576         * configure.in,
4577         * configure,
4578         * sdcc.dsw,
4579         * Makefile.bcc,
4580         * Makefile.in,
4581         * support/packihx/Makefile.in,
4582         * support/packihx/clean.mk,
4583         * support/packihx/Makefile.bcc,
4584         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
4585
4586 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4587
4588         * src/SDCCval.c (valNot): fix for regression test failure
4589           of not.c on big endian hosts
4590
4591 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
4592
4593         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
4594
4595 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4596
4597         * device/lib/mcs51/Makefile.in: changed string comparison operator
4598           to = for POSIX compliance; == is bash extension
4599
4600 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
4601
4602         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
4603           kosmonaut_pirx
4604
4605 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
4606
4607         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
4608         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
4609         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
4610         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
4611         bug report #1478657,
4612
4613 2006-05-05 Borut Razem <borut.razem AT siol.net>
4614
4615         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
4616           making the html
4617
4618 2006-05-02 Borut Razem <borut.razem AT siol.net>
4619
4620         * doc/Makefile.in: removed *.ind dependency since there is no rule to
4621           create *.ind, which made make to fail if invoked with -j 2
4622
4623 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
4624
4625         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
4626           Hubert Sack for patch 1479782
4627
4628 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
4629
4630         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
4631
4632 2006-05-01 Raphael Neider <rneider AT web.de>
4633
4634         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
4635           (create_pic): store only prefix-free device name,
4636           (init_pic): check for device names with "16" prefix,
4637           (list_valid_pics),
4638         * src/pic/device.h (struct PIC_device),
4639         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
4640             stored device name,
4641         * device/include/pic/pic12f{635,675,629,683}.h,
4642         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
4643         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
4644         * device/include/pic/pic16f505.h,
4645         * device/lib/pic/libdev/pic16f505.c: removed
4646         * device/include/pic/pic14devices.txt: added support for pic12f
4647             devices, removed unsupported non 16-bit devices
4648             [above changes provided by patch from Zik Saleeba]
4649         * src/pic/*, src/pic16/*, device/include/pic16/*,
4650           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
4651
4652 2006-05-01 Borut Razem <borut.razem AT siol.net>
4653
4654         * configure.in, configure, doc/Makefile.in:
4655           sync with nightly build makefile - latex, dvipdf and dvips
4656           not needed any more
4657
4658 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
4659
4660         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
4661         in the library source
4662
4663 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
4664
4665         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
4666
4667 2006-04-28 Raphael Neider <rneider AT web.de>
4668
4669         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
4670         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
4671           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
4672         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
4673
4674 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
4675
4676         * device/lib/pic/libdev/Makefile.in,
4677         * device/lib/hc08/Makefile.in,
4678         * device/lib/gbz80/Makefile.in,
4679         * device/lib/z80/Makefile.in,
4680         * device/lib/ds390/Makefile.in,
4681         * device/lib/ds400/Makefile.in: added srcdir to include search path,
4682         thanks to Borut for the bug report
4683         * configure.in,
4684         * configure: always create doc/Makefile independent from --enable-doc
4685         * Makefile.in: always install from directory doc independent from
4686         --enable-doc
4687         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
4688         removed
4689         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
4690         * doc/Makefile.in: install *.txt if present
4691         * device/include/Makefile.in (install): added installation of pic/*.inc
4692         and pic/*.txt files again, they were erroneously removed
4693
4694 2006-04-28 Raphael Neider <rneider AT web.de>
4695
4696         * src/pic/{gen.c,main.h,pcode.c},
4697         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
4698             concerning signedness with casts
4699
4700 2006-04-28 Raphael Neider <rneider AT web.de>
4701
4702         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
4703             definition of an interrupt handler,
4704         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
4705             interrupt handler stuff from picglue() to separate routine,
4706           (picglue): enabled definition of intr handlers in files w/o main()
4707
4708 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
4709
4710         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
4711           compilation with MSVC 2005 Express Edition (VC8)
4712
4713 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
4714
4715         * device/lib/Makefile: fixed build of gbz80 lib
4716
4717 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
4718
4719         * support/regression/tests/bug-460010.c,
4720         * support/regression/tests/bug-524691.c,
4721         * support/regression/tests/bug-716242.c: removed conditional defines
4722           that are already in testfwk.h
4723
4724 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
4725
4726         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
4727           (AccAXRsh1): added, shift right by 1,
4728           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
4729            AccAXLrl1
4730         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
4731
4732 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
4733
4734         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
4735         remove cast to same type
4736         * src/SDCCast.c (decorateType): fix for RFE 1475742,
4737         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
4738         * as/z80/Makefile,
4739         * link/z80/Makefile: removed, they have moved to
4740         Makefile.in files
4741         * configure,
4742         * configure.in: replaced duplicate message about ucsim by missing sdcpp
4743         * install-sh: fix bug #1204398 by setting umask 0022
4744         * device/lib/Makefile: separate build of z80 and gbz80 lib
4745
4746 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
4747
4748         Enabled VPATH feature: changed nearly all Makefiles (149 files).
4749         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
4750
4751         One basic decision: e.g. src/clean.mk includes further files. In order
4752         to make this work there are two solutions:
4753         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
4754           run configure on them. This way they can use
4755           'include $(srcdir)/port-clean.mk'
4756         - always include clean.mk by the Makefile at the same level. To avoid
4757           that `make clean` tries to include and build Makefile.dep the
4758           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
4759           implemented, because now even `make uninstall` doesn't create
4760           Makefile.in. clean.mk could be eliminated by pasting it in
4761           Makefile.in.
4762
4763         * debugger/mcs51/Makefile.in: build own objects from library sources
4764         (SLIB, SDCC) in current directory
4765
4766         * configure, configure.in: renamed --disable-device-lib-build in
4767         --disable-device-lib; added --enable-doc, the required tools are
4768         searched by configure; added result message; the toolchain for the
4769         belonging ports are now only built, if the port is enabled.
4770
4771         * support/regression/*: all output is written in directory gen, because
4772         the fwk and ports directories don't livet in the build tree using vpath
4773
4774         * doc/sdccman.lyx: renamed --disable-device-lib-build to
4775         --disable-device-lib, added --enable-doc, added section VPATH
4776
4777         * sim/ucsim/configure.in,
4778         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
4779         z80 are enabled by default
4780
4781 2006-04-24 Raphael Neider <rneider AT web.de>
4782
4783         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
4784             to config word, "pic14_"-prefixed some extern functions
4785           (pic14_emitConfigWord): emit __config directive(s) if assignment to
4786             config word has been found
4787         * src/pic/device.h: added prototypes
4788         * src/pic/pcode.c: added "pic14_"-prefix where needed
4789         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
4790             fixup
4791         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
4792             words,
4793           (pic14emitRegularMap): ignore config words,
4794           (pic14createInterruptVect): moved generating __config directives away
4795           (picglue): have __config directives emitted
4796
4797 2006-04-24 Borut Razem <borut.razem AT siol.net>
4798
4799         * doc/Makefile: sync with nightly build makefile
4800
4801 2006-04-24 Raphael Neider <rneider AT web.de>
4802
4803         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
4804             registers that have not been assigned proper liveranges,
4805             fixes #1469504 and #1474602,
4806           (pCodeRegOptimizeRegUsage): fixed typo in comment
4807
4808 2006-04-24 Borut Razem <borut.razem AT siol.net>
4809
4810         * device/examples/main8051.c: deleted - it was removed from CVS
4811           24.mar.2000 and after that modified 18.feb.2001, so it reappered
4812           after the transition to Subversion
4813         * src/SDCCalloc.h: deleted - it was removed  from CVS
4814           3.feb.2001 and after that modified 18.feb.2001, so it reappered
4815           after the transition to Subversion
4816         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
4817           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
4818           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
4819           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
4820
4821 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
4822
4823         * as/asx8051.dsp: added mcs51/strcmpi.h
4824         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
4825         * as/hc08/aslink.h: updated lnksect prototype
4826         * as/hc08/asm.h,
4827         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
4828         * as/hc08/asmain.c,
4829         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
4830           (newdot): handle A_ABS
4831         * as/hc08/asout.c,
4832         * as/mcs51/asout.c (outarea): output address
4833         * as/hc08/lkaomf51.c,
4834         * as/mcs51/lkaomf51.c: disabled unused array UsageType
4835         * as/hc08/m08pst.c,
4836         * as/mcs51/i51pst.c,
4837         * as/z80/z80pst.c: "ABS" is not A_OVR
4838         * as/hc08/lkarea.c (newarea): read a_addr,
4839           (lnkarea): added codemap array, sort absolute areas to the front,
4840            combine all GSINITx/GSFINAL,
4841           (find_empty_space, allocate_space): new functions,
4842           (lnksect): return next address, handle absolute sections
4843         * as/mcs51/lkarea.c (newarea): read a_addr,
4844           lnksect2 prototype changed,
4845           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
4846           (find_empty_space, allocate_space): new, factored out of lnksect2,
4847           (lnksect2): return next address, handle absolute sections
4848         * as/hc08/lkhead.c,
4849         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
4850         * as/hc08/lklibr.c (addfile, fndsym),
4851         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
4852           index out of range and detect both '\' and '/'
4853         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
4854         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
4855           regression tests (ds390 cannot return bool yet)
4856         * doc/sdccman.lyx: changed version number, document changed --no-peep,
4857           document critical interrupts on z80, document changed SDCC define
4858         * src/asm.c (_asxxxx_mapping): fixed .org directive,
4859           (_a390_mapping): added .org directive
4860         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
4861           (genMultOneByte): fixed warnings
4862         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
4863           ones
4864         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
4865         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
4866           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
4867         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
4868         * src/pic16/main.c: removed newReg prototype
4869         * src/pic16/pcode.c,
4870         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
4871           warnings
4872         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
4873           ones
4874         * src/pic16/ralloc.c
4875         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
4876           to fix warnings
4877         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
4878           from short to PIC_OPTYPE
4879         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
4880         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
4881           optype from short to PIC_OPTYPE
4882         * src/port.h: made int_size unsigned to fix warnings
4883         * src/SDCC.y: fixed warning on MSVC
4884         * src/SDCCicode.c (getArraySizePtr): return unsigned int
4885         * src/SDCCopt.c (convertToFcall): fixed warnings
4886         * src/SDCCsymt.h: removed double prototype for genSymName
4887         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
4888           offset int to fix warnings
4889
4890 2006-04-22 Borut Razem <borut.razem AT siol.net>
4891
4892         * doc/sdccman.lyx, */Makefile, */Makefile.in:
4893           references to CVS replaced with Subversion
4894
4895 2006-04-21 Borut Razem <borut.razem AT siol.net>
4896
4897         * doc/sdccman.lyx, */Makefile, */Makefile.in:
4898           references to CVS replaced with Subversion
4899
4900 2006-04-19 Borut Razem <borut.razem AT siol.net>
4901
4902         * src/version.awk: adapted for svn
4903         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
4904           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
4905           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
4906           /binutils-avr/etc/*.vi, *.jin: removed all properties
4907           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
4908
4909 2006-04-19 Borut Razem <borut.razem AT siol.net>
4910
4911         * CVS to Subversion migration completed
4912
4913 2006-04-18 Borut Razem <borut.razem AT siol.net>
4914
4915         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
4916           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
4917
4918 2006-04-17 Borut Razem <borut.razem AT siol.net>
4919
4920         * device/include/Makefile.in: added pic/*.inc to the installation
4921
4922 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
4923
4924         * support/regression/collate-results.py: fixed output in case of
4925         a valdiag error
4926         * support/regression/generate-cases.py: fixed splitting of pathnames
4927         with dots
4928         * as/hc08/lklibr.c (addfile),
4929         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
4930
4931 2006-04-11 Raphael Neider <rneider AT web.de>
4932
4933         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
4934         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
4935         * src/pic16/pcode.c (assignValnums): fixed #1460578
4936
4937 2006-04-11 Raphael Neider <rneider AT web.de>
4938
4939         * device/lib/pic/libdev/*.c,
4940         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
4941           fixes #1468739, enables compilation in --std-c99 mode
4942         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
4943
4944 2006-04-11 Raphael Neider <rneider AT web.de>
4945
4946         * src/pic/device.c (find_device): removed debug output
4947           (list_valid_pics): enabled verbose listing of supported devices
4948         * device/include/stdbool.h: define bool as char for pic14/16 as well
4949
4950 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4951
4952         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
4953
4954 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
4955
4956         * .version: bumped version to 2.5.6
4957         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
4958
4959 2006-04-06 Raphael Neider <rneider AT web.de>
4960
4961         * .version: bumped version to 2.5.6 (pic14 ABI changed)
4962         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
4963         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
4964           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
4965             pic14_constructAbsMap
4966           (pic14printPublics): declare absolute global symbols as global
4967           (pic14createInterruptVect),
4968         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
4969           (newReg): assume new registers unused, use correct name in
4970             hashtable (reg->name instead of name), more debugLog output
4971         * src/pic/device.h (PIC_device): added fields for verbose output
4972         * src/pic/device.c: moved device definition to pic14devices.txt,
4973             added routines for runtime parsing of pic14devices.txt,
4974             added support for second config word
4975         * src/pic/main.c (_process_pragma): removed #pragma maxram,
4976           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
4977           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
4978           (_pic14_parseOptions): moved pCodeInitRegisters here
4979           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
4980         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
4981           (pCodeInitRegisters): rewrapped comments, perpared new approach to
4982             handling the pseudo stack
4983         * device/lib/Makefile.in: ignore failures in objects-pic16,
4984         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
4985         * device/lib/pic/NEWS: document new dependency on picXXX.lib
4986         * device/lib/pic/Makefile.subdir,
4987         * device/lib/pic16/Makefile.subdir: improved clean rules
4988         * device/lib/pic/libdev/: NEW, pic14 device libraries
4989         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
4990         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
4991         * device/include/Makefile.in: create subdir and install pic14 headers
4992         * device/include/pic/p16f_common.inc: removed unused declarations
4993         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
4994             PICs from inc2h.pl v1.6,
4995             replaced BIT_AT macros with struct declarations
4996         * device/include/pic/pic14devices.txt: definition of supported devices,
4997             all above improvements contributed by Zik Saleeba, thanks
4998         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
4999         * support/scripts/sdcc.nsi: also install pic14 device libraries and
5000             headers
5001
5002 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
5003
5004         * device/include/mcs51/c8051f410.h: added interrupt numbers,
5005         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
5006           thanks to Charles Olds
5007
5008 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5009
5010         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
5011
5012 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
5013
5014         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
5015         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
5016         * support/regression/bug1464657.c: added, new test
5017
5018 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5019
5020         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
5021           version number
5022
5023 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5024
5025         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
5026           --no-peep and --peep-file <file> are used don't use default rules but
5027           do use the <file>
5028
5029 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5030
5031         * src/mcs51/gen.c (genCall): fixed bug 1457608
5032
5033 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5034
5035         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
5036         changes seem to cause (trigger?) problems with the build system.
5037
5038 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
5039
5040         * src/SDCCpeeph.c (operandsLiteral): new, added,
5041           (callFuncByName): inserted operandsLiteral
5042         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
5043
5044 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5045
5046         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
5047         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
5048
5049 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
5050
5051         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
5052           implemented patch 1120823 Thanks to Willy De la Court (normal
5053           interrupts need an interrupt number now if they are made critical),
5054           and enabled nesting of critical functions though not for gbz80
5055           (genCritical, genEndCritical): added functions
5056           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
5057         * src/z80/mappings.i: added "ei" to all mappings
5058
5059 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5060
5061         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
5062         submitted by the Debian SDCC maintainer Aurelien Jarno:
5063         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
5064         archive with gcc 4.1 on mips and wrote the patch"
5065
5066 2006-03-16 Raphael Neider <rneider AT web.de>
5067
5068         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
5069           the left operand is shorter than the result (c* = lit-c* + int),
5070           fixes bug #1450796
5071         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
5072           OP_SYMBOL
5073
5074 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
5075
5076         * src/.version: increased version number to 2.5.5
5077         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
5078         linking is done manually in pic16 port's _linkEdit,
5079         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
5080         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
5081         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
5082         allocate asmop as AOP_ACC,
5083         (aopForRemat): added parameter 'bool result' in function declaration,
5084         (pic16_aopGet): return AOP_ACC when accessing WREG,
5085         (pic16_popGetTempReg): minor modification,
5086         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
5087         'pic16_allocWithIdx',
5088         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
5089         calling function in absolute addresses,
5090         (genAssign): take into account AOP_ACC asmop,
5091         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
5092         * src/pic16/pcoderegs.c: some debug functions and lines added,
5093         * src/pic16/ralloc.c (decodeRegType): added but commented out,
5094         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
5095         register too,
5096         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
5097         call to allocReg, not by manually allocating a new one,
5098         (pic16_assignRegisters): now before going through the register
5099         allocating functions mark all registers as free. This eliminates some
5100         side effects resulting from peephole parser done earlier in the backbone
5101
5102 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
5103
5104         * src/SDCCicode.c (geniCodeLogic),
5105         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
5106
5107 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
5108
5109         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
5110           (genSend): bugfix, do not allocate and free twice,
5111           (shiftRLong): handle partially overlapping aops
5112         * support/regression/tests/bitopcse.c: fixed warning redefined idata
5113
5114 2006-03-08 Borut Razem <borut.razem AT siol.net>
5115
5116         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
5117           for pic16
5118
5119 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
5120
5121         * support/regression/tests/bug1409955.c: new, added
5122         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
5123         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
5124           (aopForSym, aopOp): increment asmop.allocated if reused,
5125           (freeAsmop): decrement asmop.allocated and check for zero instead of
5126           using asmop.freed,
5127           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
5128           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
5129            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
5130            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
5131            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
5132            genSignedRightShift, genRightShift, genDataPointerGet,
5133            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
5134            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
5135             in reverse order from allocation,
5136           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
5137             added swappedLR to keep track
5138         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
5139           pdata & code for GCC, z80, gbz80 & hc08
5140         * support/regression/tests/zeropad.c: moved defines to testfwk.h
5141
5142 2006-03-08 Raphael Neider <rneider AT web.de>
5143
5144         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
5145
5146 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
5147
5148         * device/include/mcs51/c8051f410.h: new SiLabs mcu
5149         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
5150         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
5151
5152 2006-03-06 Borut Razem <borut.razem AT siol.net>
5153
5154         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
5155           made the linker quiet
5156
5157 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
5158
5159         * src/pic16/gen.c (genPcall): fixed bug #1443644
5160         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
5161         which dumps before the function entry point a data byte which represents
5162         the number of the local variables used by the specified function, added
5163         'xinst' for initial support for Extended Instruction Support,
5164         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
5165         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
5166         port->fun_prefix anymore (may change later),
5167         (genFunction, genEndFunction): do not store/restore local registers for
5168         _main (this should take care the --main-return command line option in
5169         the future),
5170         (genOr): removed some legacy pic-port instructions,
5171         * src/pic16/genarith.c (genAddLit): re-enabled old code because
5172         performing operations with SFR's causes data to be written more than
5173         once to each SFR. Perhaps SFRs should be handled in special cases...
5174         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
5175         pcode.h
5176         * src/pic16/main.c (_process_pragma): stack bound checking did not take
5177         into account for stack starting position,
5178         (struct OPTIONS pic16_optionsTable): added command line argument
5179         --extended or -y for Extended Instruction Support,
5180         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
5181         (deassignLRs): *** perhaps the most important change, old 'for' code
5182         (commented out for reference), didn't account for some registers which
5183         were left marked 'not free' after a pointer operation. The change
5184         reduces register usage a lot in some cases
5185
5186 2006-03-04 Borut Razem <borut.razem AT siol.net>
5187
5188         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
5189           _clean
5190         * support/regression/tests/bug-524697.c: decreased array size for
5191           mcs51 to fit into the internal RAM
5192         * support/regression/Makefile.in: a little bit more verbose
5193
5194 2006-03-03 Borut Razem <borut.razem AT siol.net>
5195
5196         * support/regression/fwk/lib/testfwk.c,
5197           support/regression/fwk/include/testfwk.h: introduced function
5198           _prints(), nonrecursive _printn(), call _initEmu() from main()
5199         * support/regression/ports/gbz80/support.asm,
5200           support/regression/ports/ucz80/support.asm,
5201           support/regression/ports/z80/support.asm,
5202           support/regression/ports/ds390/support.c,
5203           support/regression/ports/hc08/support.c,
5204           support/regression/ports/host/support.c,
5205           support/regression/ports/mcs51/support.c,
5206           support/regression/ports/xa51/support.c: added empty _initEmu()
5207           function
5208         * support/regression/ports/pic16/gpsim.cmd,
5209           support/regression/ports/pic16/spec.mk,
5210           support/regression/ports/pic16/support.c,
5211           support/regression/Makefile.in: added pic16 regression test
5212
5213 2006-03-01 Raphael Neider <rneider AT web.de>
5214
5215         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
5216           genConstPointerGet): use safe way of generating MOVFF to cover
5217             literals as well as registers, fixes bug #1440527
5218         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
5219             dereference
5220           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
5221             more correctly, fixes bug #1232186
5222           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
5223         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
5224             gplink guess the correct processor in more cases, applied patch
5225             from Till Riedel attached to and fixing bug #1436552
5226
5227 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5228
5229         * support/regression/tests/array.c: added, contains check for #1434401
5230         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
5231
5232 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
5233
5234         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
5235         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
5236         * device/include/mcs51/c8051f326.h,
5237         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
5238         * device/include/mcs51/c8051f000.h,
5239         * device/include/mcs51/c8051f018.h,
5240         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
5241           PCON_IDLE,PCON_STOP and added sfr16 definitions
5242
5243 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
5244
5245         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
5246           genGetWord): fixed bug 1409955
5247
5248 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
5249
5250         * device/include/hc08/mc68hc908gp32.h,
5251         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
5252
5253 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
5254
5255         * src/SDCCast.c (constExprValue): return NULL if not a value
5256         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
5257         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
5258         * support/regression/tests/bitfields.c: enabled signed bitfield for all
5259
5260 2006-02-13 Borut Razem <borut.razem AT siol.net>
5261
5262         * src/regression/ptrarg.c: added, fails due to bug #1430967
5263         * src/regression/Makefile: ptrarg.c added, ...
5264
5265 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
5266
5267         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
5268         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
5269
5270 2006-02-11 Borut Razem <borut.razem AT siol.net>
5271
5272         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
5273           print "Processor: xxx" message to stdout only if --verbose
5274
5275 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
5276
5277         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
5278         * support/regression/tests/bug1426356.c: added
5279         * support/regression/tests/bitfields.c: removed 2 tests
5280
5281 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
5282
5283         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
5284         * device/include/mcs51/c8051f330.h,
5285         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
5286           PCON_IDLE,PCON_STOP and added sfr16 definitions
5287         * device/lib/_divsint.c,
5288         * device/lib/_divuint.c,
5289         * device/lib/_divulong.c,
5290         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
5291           register bank bug for small stackauto
5292
5293 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
5294
5295         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
5296
5297 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
5298
5299         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
5300         * all.dsp: corrected several bin paths
5301         * device/include/mcs51/c8051f120.h,
5302         * device/include/mcs51/c8051f300.h,
5303         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
5304           to PCON_IDLE,PCON_STOP
5305         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
5306         * device/lib/printf_large.c (output_float): fixed bug 1388703
5307         * support/regression/tests/bug1057979.c: added test for bug 1388703
5308
5309 2006-02-08 Raphael Neider <rneider AT web.de>
5310
5311         * src/pic/pcode.c (pciTRIS): fixed typo,
5312           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
5313           (LinkFlow): fixed handling of flows that end in a call,
5314           (ReuseReg): perform safety check earlier
5315         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
5316             to work with flows at the beginning of a pBlock,
5317             fixes #1426557 (Symbol not previously defined),
5318           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
5319             usage information
5320           (RemoveUnusedRegisters): update register usage info
5321         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
5322             created, reuse existing ones instead
5323         * src/pic/gen.c (genPcall): fixed #1424719
5324
5325 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
5326
5327         * link/z80/lkmain.c,
5328         * link/z80/lklex.c,
5329         * link/z80/lkdata.c,
5330         * link/z80/aslink.h: fixed build on current cygwin:
5331         replaced getline() by lk_getline()
5332
5333 2006-02-01 Borut Razem <borut.razem AT siol.net>
5334
5335         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
5336           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
5337           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
5338           src/regression/bool1.c, src/regression/bool2.c,
5339           src/regression/bool3.c, src/regression/call1.c,
5340           src/regression/compare.c, src/regression/compare10.c,
5341           src/regression/compare2.c, src/regression/compare3.c,
5342           src/regression/compare4.c, src/regression/compare5.c,
5343           src/regression/compare6.c, src/regression/compare7.c,
5344           src/regression/compare8.c, src/regression/compare9.c,
5345           src/regression/configword.c, src/regression/for.c,
5346           src/regression/inline.c, src/regression/mult1.c,
5347           src/regression/nestfor.c, src/regression/or1.c,
5348           src/regression/pointer1.c, src/regression/ptrfunc.c,
5349           src/regression/rotate1.c, src/regression/rotate2.c,
5350           src/regression/rotate3.c, src/regression/rotate4.c,
5351           src/regression/rotate5.c, src/regression/rotate6.c,
5352           src/regression/rotate7.c, src/regression/string1.c,
5353           src/regression/struct1.c, src/regression/sub.c,
5354           src/regression/sub2.c, src/regression/switch1.c,
5355           src/regression/while.c, src/regression/xor.c,
5356           src/regression/create_stc, src/regression/simulate,
5357           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
5358           regression tests
5359         * src/regression/gpsim_assert.h: added
5360
5361 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
5362
5363         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
5364         ((void (code *) (void)) 0) ();
5365         * as/hc08/aslex.c,
5366         * as/hc08/aslink.h,
5367         * as/hc08/asm.h,
5368         * as/hc08/asmain.c,
5369         * as/hc08/lkdata.c,
5370         * as/hc08/lklex.c,
5371         * as/hc08/lkmain.c,
5372         * as/mcs51/aslex.c,
5373         * as/mcs51/aslink.h,
5374         * as/mcs51/asm.h,
5375         * as/mcs51/asmain.c,
5376         * as/mcs51/lkdata.c,
5377         * as/mcs51/lklex.c,
5378         * as/mcs51/lkmain.c,
5379         * as/z80/aslex.c,
5380         * as/z80/asm.h,
5381         * as/z80/asmain.c: fixed build on current cygwin:
5382         replaced getline() by as_getline()
5383
5384 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
5385
5386         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
5387         declarator in the symbol chain
5388         * src/SDCCsymt.h,
5389         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
5390         parameter list for function pointers
5391         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
5392         * support/regression/tests/bug-716242.c: added
5393
5394 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
5395
5396         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
5397         offset if possible
5398         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
5399
5400 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
5401
5402         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
5403         inifinitely recurseable, added static
5404         * support/regression/tests/bug-1408066.c: added
5405
5406 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
5407
5408         * src/SDCCicode.h,
5409         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
5410         renamed, added possibility to create "postLoopLbl"-labels
5411         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
5412         newiTempLoopHeaderLabel
5413         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
5414         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
5415         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
5416         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
5417         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
5418         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
5419         (basicInduction): fixed bug #136564, made static,
5420         (loopInduction): changed parameter of basicInduction, made static,
5421         (addPostLoopBlock): added
5422         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
5423         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
5424         findLoopEndSeq
5425         * support/regression/tests/bug-136564.c: added
5426         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
5427         --std-sdcc99 to LIBSDCCFLAGS
5428
5429 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
5430
5431         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
5432         while loop
5433         * support/regression/tests/bug-1406131.c: added
5434
5435 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
5436
5437         * src/SDCCast.c (decorateType): fix promotion of unary minus
5438         * src/SDCCsymt.c (computeType): beautified
5439         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
5440         (valUnaryPM, valComplement): fix sign and promotion,
5441         (valNot): ANSI: result type is int (SDCC: unsigned char)
5442         * support/regression/tests/uminus.c: speedup by removing superflous
5443         test case 'int'
5444         * support/regression/tests/onebyte.c: added promotion and signedness
5445         tests for unary minus
5446         * support/regressions/tests/bug-477927.c: disable warning about
5447         uninitialized variables
5448         * support/regression/tests/not.c: added
5449
5450 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
5451
5452         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
5453         * src/mcs51/gen.c (gen51Code): show final register usage after
5454         fillGaps in asm with --i-code-in-asm
5455         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
5456         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
5457         incUsed, rliveClear, adjustIChain): made static,
5458         (setFromRange): excluded because it's unused,
5459         (findPrevUseSym, markWholeLoop): added,
5460         (findPrevUse): rewritten; fixes bug 895992; now a complete search
5461         through all branches of predecessors enables sdcc to emit the warning
5462         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
5463         (rlivePoint): made static, added parameter emitWarnings which is only
5464         true during the first run out of two,
5465         (findRecursiveSucc, findRecursivePred): removed,
5466         (computeLiveRanges): made static, added parameter emitWarnings,
5467         (dumpIcRlive): added for debugging only
5468         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
5469         removed prototype of setFromRange()
5470         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
5471         in call of computeLiveRanges()
5472         * support/regression/tests/bug-895992.c: added
5473         * support/regression/tests/bug-971834.c: added
5474         * support/valdiag/tests/bug-895992.c: added
5475         * support/valdiag/tests/bug-971834.c: added
5476
5477 2005-12-18 Raphael Neider <rneider AT web.de>
5478
5479         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
5480           (genUnpackBits): improved code for direct operands,
5481           (genPackBits): improved code for literal assignment to bitfields
5482             and for direct destination operands (no FSR indirection),
5483             prevented redundant AND, fixes #1362800,
5484           (AccLsh): added parameter to disable masking of the result
5485         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
5486           skip instructions with side-effects (like incfsz),
5487           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
5488         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
5489         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
5490           fixes #1375263
5491
5492 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
5493
5494         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
5495         volatile variables as spill location
5496
5497 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
5498
5499         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
5500         replacing literals
5501         * support/regression/tests/bug-1376320.c: added
5502
5503 2005-12-08 Raphael Neider <rneider AT web.de>
5504
5505         * src/pic/device.c: renamed is_shared to pic14_is_shared
5506         * src/pic/gen.c (genIfx): re-enabled handling of sbits
5507         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
5508           (is_valid_identifier): added for above workaround
5509
5510 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
5511
5512         * device/lib/Makefile.in: fixed to enable port-specific-objects
5513         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
5514           char, thanks Hubert Sack
5515         * doc/sdccman.lyx: documented --xstack-loc,
5516           elaborated a bit more on interrupts and pitfalls,
5517           removed "setjmp/longjmp unsupported",
5518           documented some unsupported C99 features
5519         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
5520         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
5521           if, thanks Hubert Sack
5522         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
5523         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
5524           make make_library
5525         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
5526           regression tests can report resource usage (rfe 700441)
5527         * support/regression/collate-results.py: report resource usage
5528         * support/regression/ports/ds390/spec.mk,
5529         * support/regression/ports/hc08/spec.mk,
5530         * support/regression/ports/mcs51/spec.mk,
5531         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
5532         * support/regression/ports/ds390/uCsim.cmd,
5533         * support/regression/ports/hc08/uCsim.cmd,
5534         * support/regression/ports/mcs51/uCsim.cmd,
5535         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
5536         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
5537           library, use the default one
5538         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
5539           building the library
5540
5541 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
5542
5543         * config.dsp: added dependency on .version and configure_vc.awk
5544         * device/include/setjmp.h: updated for --stack-auto and --xstack
5545         * device/include/mcs51/at89c51snd1c.h: corrected line endings
5546         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
5547         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
5548         * device/lib/libsdcc.lib: added _setjmp
5549         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
5550           (decorateType): fixed bug 1372851,
5551           (optimizeGetHbit): fixed warning
5552         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
5553           array initialisation
5554         * support/regression/tests/bug1057979.c: added test for bug 1358192
5555         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
5556
5557 2005-12-03 Borut Razem <borut.razem AT siol.net>
5558
5559         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
5560           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
5561
5562 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
5563
5564         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
5565         createIval): implement symbol independant "flexible array member",
5566         (createIvalCharPtr): implemented flexible array initialisation with a
5567         string
5568         * src/SDCCsymt.c (copyStruct): removed,
5569         (getSize): fixed misleading comment,
5570         (getAllocSize): removed, the additional allocation size is now in
5571         sym->flexArrayLength,
5572         (checkStructFlexArray): new, syntax checks for flexible array members,
5573         (compStructSize): added syntax checks for "flexible array members"
5574         (copyStruct): removed,
5575         (copyLinkChain): removed inefficient fix for bug 770487
5576         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
5577         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
5578         symbol->flexArrayLength
5579         * src/SDCCerr.c,
5580         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
5581         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
5582         * support/regression/tests/structflexarray.c: added
5583         * support/valdiag/tests/structflexiblearray.c: added
5584
5585 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
5586
5587         * src/SDCCast.c (decorateType): fixed bug 1368489
5588         * support/Util/SDCCerr.c,
5589         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
5590
5591 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5592
5593         * device/include/mcs51/at89c51snd1c.h: added file submitted by
5594           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
5595
5596 2005-11-27 Borut Razem <borut.razem AT siol.net>
5597
5598         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
5599           support/cpp2/mkdeps.h: added command line option
5600           -obj-ext=<extension> to SDCPP to define object file externion, used
5601           for generation of make dependencies (-M)
5602         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
5603
5604 2005-11-26 Borut Razem <borut.razem AT siol.net>
5605
5606         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
5607           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
5608           added pic and pic16 libraries
5609
5610 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5611
5612         * device/include/float.h: Corrected typo in prototype of __fsgt
5613
5614 2005-11-25 Borut Razem <borut.razem AT siol.net>
5615
5616         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
5617           added creation of model-mcs51-stack-auto libraries
5618
5619 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
5620
5621         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
5622         and fields-list too
5623         * src/SDCCast.c (createIvalArray): removed obsolete comment
5624
5625 2005-11-24 Borut Razem <borut.razem AT siol.net>
5626
5627         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
5628           added missing device/lib/mcs51/crt*.asm sources
5629
5630 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
5631
5632         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
5633
5634 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
5635
5636         * device/lib/_fs2schar.c,
5637         * device/lib/_fs2sint.c,
5638         * device/lib/_fs2slong.c: optimized inline asm
5639
5640 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5641
5642         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
5643           Better handling of floats between -1.0 and 0.0.
5644
5645 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5646
5647         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
5648           (the missing "if"s prohibited removal of redundant labels)
5649
5650 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5651
5652         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
5653           Properly convert floats between -1.0 and 0.0 to long, int, and char
5654           types (max integer value of negative floats tends to zero).
5655         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
5656           Removed changes made so to work properly with floats between
5657           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
5658           and _fs2char.c
5659
5660 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
5661
5662         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
5663         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
5664         (genCast) cosmetic change
5665         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
5666         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
5667         from mcs51
5668         * support/regression/tests/bitfields (testSignedBitfields): added
5669
5670 2005-11-18 Borut Razem <borut.razem AT siol.net>
5671
5672         * sdcc/device/lib/Makefile.in: remove all unnecessary files
5673         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
5674           introduced SILENT option to make building of pic16 libraries less
5675
5676 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5677
5678         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
5679           Now they work properly with floats between -1.0 and 0.0
5680         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
5681
5682 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
5683
5684         * src/SDCCicode.c (printOperand): added missing else
5685
5686 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
5687
5688         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
5689         reformatted for better readability
5690         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
5691         signed bitfields
5692
5693 2005-11-17 Borut Razem <borut.razem AT siol.net>
5694
5695         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
5696           introduced SILENT option to make building of pic16 libraries less
5697           verbose - used for nightly snapshot build
5698         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
5699           available on Win32 platforms.
5700         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
5701           medium, large, pic and pic16
5702
5703 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5704
5705         * device/lib/printf_large.c: Temporary patch for bug 1358192:
5706           printf("%f"...) sets fraction to zero.
5707
5708 2005-11-16 Raphael Neider <rneider AT web.de>
5709
5710         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
5711           fixes #1357221
5712         * src/pic/gen.c (genIfx): implemented for CARRY bit
5713         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
5714           to generic pointers, fixes #1357332,
5715           (pic16_movLit2f): NEW,
5716           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
5717
5718 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
5719
5720         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
5721
5722 2005-11-11 Raphael Neider <rneider AT web.de>
5723
5724         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
5725         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
5726           compute pointer's type from operand,
5727           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
5728           improved single bit reads, fixes bug #1353379
5729
5730 2005-11-09 Borut Razem <borut.razem AT siol.net>
5731
5732         * support/scripts/sdcc.nsi: added lib/pic to the package
5733
5734 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
5735
5736         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
5737
5738 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
5739
5740         * support/regression/tests/bug1348008.c: added
5741         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
5742         * support/regression/tests/bug1337835.c: updated comment
5743
5744 2005-11-06 Borut Razem <borut.razem AT siol.net>
5745
5746         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
5747           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
5748           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
5749           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
5750           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
5751           dynamic construction of cl_error_class and derivates - 2.nd try
5752
5753 2005-11-05 Borut Razem <borut.razem AT siol.net>
5754
5755         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
5756           bug, which caused Bus Errors on sparc solaris
5757
5758 2005-11-04 Borut Razem <borut.razem AT siol.net>
5759
5760         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
5761           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
5762           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
5763           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
5764           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
5765           and derivates to resolve the initialization problem on OSX
5766
5767 2005-11-02 Borut Razem <borut.razem AT siol.net>
5768
5769         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
5770           corrected typo - #include <winsock2.h>
5771
5772 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
5773
5774         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
5775           (_asxxxx_mapping): added org directive for future enhancements
5776
5777 2005-11-01 Borut Razem <borut.razem AT siol.net>
5778
5779         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
5780           enabled sockets on WIN32
5781         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
5782
5783 2005-10-31 Borut Razem <borut.razem AT siol.net>
5784
5785         * support/regression/generate-cases.py: escape backslashes in {testcase}:
5786           WIN32 backslash path delimiters should be escaped when used in C strings
5787         * support/regression/tests/bitfields.c: exclude failing assertions for
5788           __CYGWIN32__ and __MINGW32__ hosts
5789
5790 2005-10-30 Borut Razem <borut.razem AT siol.net>
5791
5792         * src/SDCCutil.c: corrected double comparison typo
5793
5794 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
5795
5796         * device/lib/medium/Makefile: added for new memory model medium
5797         * device/include/asm/mcs51/features.h: updated for medium/pdata
5798         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
5799           added Multiply & Accumulate sbit's and MAC0_PAGE define
5800         * device/include/mcs51/c8051f300.h: added sfr16 definitions
5801         * device/include/mcs51/c8051f310.h: added sfr16 definitions
5802         * device/lib/_mullong.c: update for medium model
5803         * device/lib/incl.mk: added medium model
5804         * doc/sdccman.lyx: documented medium model
5805         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
5806         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
5807         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
5808         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
5809           (allocParms): set SCLS and OCLS to pdata for medium model
5810         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
5811           for pdata,
5812           (powof2): return <0 if not power of 2
5813         * src/avr/gen.c (genBitWise): use updated powof2
5814         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
5815           (shiftR2Left2Result): small optimization in setup, save acc when storing,
5816           (shiftLLeftOrResult): use B if necessary
5817         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
5818         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
5819         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
5820         * support/regression/Makefile.in: added test-mcs51-medium
5821         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
5822
5823 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
5824
5825         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
5826         specifier unsigned
5827         * device/lib/time.c (mktime): fixed bug 1334315
5828
5829 2005-10-28 Raphael Neider <rneider AT web.de>
5830
5831         * device/include/pic/p16f_common.inc: added common declarations
5832         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
5833
5834 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
5835
5836         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
5837           (aopPutUsesAcc): added to predict accumulator use,
5838           (assignResultValue): save acc if necessary,
5839           (genMinusDec): store result if indirectly addressed,
5840           (genDivOneByte):  save acc if necessary,
5841           (movLeft2Result): bugfix if left already in acc,
5842           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
5843             attention to accumulator use (esp. pdata),
5844           (genReceive): receive pdata correctly
5845         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
5846         * src/SDCCicode.h: added isOperandInPagedSpace prototype
5847
5848 2005-10-27 Raphael Neider <rneider AT web.de>
5849
5850         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
5851
5852 2005-10-27 Raphael Neider <rneider AT web.de>
5853
5854         * .version: changed version to 2.5.4
5855         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
5856         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
5857           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
5858             arithmetics support routines
5859         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
5860         * device/lib/Makefile.in: also create installdir for pic
5861
5862         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
5863           pic14 port as well
5864         * src/pic/device.c (dump_sfr): rewritten to delegate register
5865           placement to the linker (use `extern sym' rather than sym EQU addr),
5866           (validAddress): fixed to check last specified address
5867         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
5868           (popGetLit): truncate literal value to 8 bit,
5869           (popGet): moved assert to more appropriate place
5870           (popGetExternal): create pCode operand from and mark the according
5871             symbol as being `extern'
5872           (popGetAddr): added sanity check on immediate's offset, provide
5873             GPOINTER tag on demand
5874           (aopPut): fixed for immediates,
5875           (mov2w_op): move operand's address or contents to WREG (depending on
5876             operand type), safer variant of mov2w,
5877           (movwf,call_libraryfunc): NEW, handy abbreviations,
5878           (get_argument_pcop,get_return_val_pcop,pass_argument,
5879           get_returnvalue): interface for accessing function parameters and
5880             return values,
5881           (assignResultValuei,genRet): use new parameter/return value interface
5882           (pic14_getDataSize): back to old version handling generic pointers,
5883           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
5884             provided implementation and/or fixed old one,
5885           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
5886             calls, removed legacy 8051 reference code
5887           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
5888           (loadSignToC): NEW, move the operands sign bit to CARRY,
5889           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
5890             genRightShiftSigned, accepts negative shift counts,
5891           (setup_fsr): load FSR and adjust IRP (indirect memory access),
5892           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
5893             generic pointers, __data pointers and __code pointers,
5894           (genUnpackBits,genPackBits): rewritten to work with generic pointers
5895             and signed bitfields, limit bitfields to 8 bit,
5896           (genDataPointerGet): fixed number of bytes read,
5897           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
5898           (genPointerGet,genPointerSet): fixed handling of __code pointers,
5899             pointers to constant data are no longer assumed to point to __code
5900             space, removed invalid pointer types,
5901           (bitpatternFromVal): retrieve the PICs representation of an integer
5902             or float literal,
5903           (genDataPointerSet): fixed assigning to po_immediate operands,
5904           (genGenPointerSet): implemented as library call,
5905           (genIfx): fixed incorrect condition,
5906           (genAddrOf): limit generic pointers' addresses to 2 bytes,
5907             provide GPOINTER tag according to destination's storage class,
5908           (genCast): added code to handle casting to generic pointers, added
5909             sign-/zero extension of the result
5910           (aop_isLitLike,op_isLitLike): fixed handling of immediates
5911         * src/pic/gen.h: added macros to access IRP bit in STATUS register
5912         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
5913           extend the result
5914         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
5915           address/register resides in the shared banks
5916           (emitSymbolToFile): improved to handle global and `pinned' symbols,
5917             put all variables into separate sections (have the linker arrange
5918             them)
5919           (picglue): put init code and interrupt handlers in separate sections
5920         * src/pic/main.c: added port specific options table, modified to PORT
5921           structure to make GPOINTERs 3 byte, added pic14_options
5922           (_pic14_do_link): private linking routine (update paths to libraries,
5923             add libsdcc.lib by default)
5924         * src/pic/main.h: declare pic14_options
5925         * src/pic/pcode.c: fixed instructions i/o relations,
5926           (RegCond): reverted to correct version,
5927           (newpCodeOpLit): truncate literals to 8 bit,
5928           (genericPrint): added debug output,
5929           (getRegFromInstruction): fixed for various operand types, simplified
5930           (BuildFlow): fixed broken handling of isntructions with labels
5931           (LinkFlow): start at last instruction in flow (skip trailing comments),
5932             pass the flow on to the next instruction after CALL
5933           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
5934           (insertPCodeInstruction): fixed inserting after a skip instruction,
5935           (DoBankSelect): fixed for labeled instructions
5936           (OptimizepBlock): honor --nopeep switch
5937           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
5938         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
5939         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
5940           (pCodeOptime2pCodes): allow disabling this optimization via
5941             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
5942             but is still buggy), started implementation of a dataflow based
5943             pCode optimization (CSE + dead code elimination)
5944           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
5945         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
5946           names are independant of the stack location and therefore portable across
5947           devices
5948
5949 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
5950
5951         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
5952           (selectSpil): fixed bug 1337835 by not spilling bit variables
5953         * support/regression/tests/bug1337835.c: added test for this bug
5954         * src/mcs51/peeph.def: restart after rule 3.c,
5955           addded rules 263.x to optimize loading constants
5956
5957 2005-10-26 Raphael Neider <rneider AT web.de>
5958
5959         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
5960         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
5961           (genAssign): emit warning when casting literals to generic pointer
5962             type, also applies when taking the address of a fixed variable,
5963           (genCast): improved casting to generic pointers
5964         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
5965           extern variables, added verbose error message
5966         * device/include/pic16/{string.h,errno.h}: added #pragma library c
5967
5968 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
5969
5970         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
5971         carry must be complemented too
5972         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
5973         could be emitted by genMinus
5974         * src/SDCCval.c (constVal): fixed bug 1305065
5975
5976 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
5977
5978         * src/SDCCast.c (addCast): added promotion for bit variables
5979         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
5980         promotion casts + optimisation
5981         (optimizeGetWord): fix warning 'i' might be used uninitialized
5982         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
5983         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
5984
5985 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
5986
5987         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
5988         all chars are promoted to int; promotion should be handled in SDCCast.c
5989
5990 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5991
5992         * device/lib/_strcmp.c: Fixed bug 1326457
5993
5994 2005-10-11 Raphael Neider <rneider AT web.de>
5995
5996         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
5997         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
5998
5999 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
6000
6001         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
6002         * support/regression/tests/sfr16.c: added test for the sfr32 bug
6003
6004 2005-10-04 Raphael Neider <rneider AT web.de>
6005
6006         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
6007           device/lib/pic16/pics.all: added pic18f1320
6008         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
6009
6010 2005-09-30 Raphael Neider <rneider AT web.de>
6011
6012         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
6013         * src/pic16/devices.inc: NEW, provides device descriptions
6014         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
6015
6016 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
6017
6018         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
6019           GETHBIT
6020
6021 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
6022
6023         * doc/sdccman.lyx: updated Highest Order Bit documentation,
6024           documented Any Order Bit, Higher Order Byte and Higher Order Word
6025         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
6026         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
6027           (optimizeGetAbit): new, to get any bit, not only the high bit,
6028           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
6029           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
6030           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
6031           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
6032             RIGHT_OP: also try GETBYTE, GETWORD optimization,
6033             GETABIT, GETBYTE, GETWORD: decorate them,
6034           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
6035           (ast_print): added GETABIT, GETBYTE, GETWORD
6036         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
6037         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
6038           (geniCodeBinary): new generic binary icode,
6039           (ast2iCode): added GETABIT, GETBYTE, GETWORD
6040         * src/port.h: updated comment for PORT.hasExtBitOp
6041         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
6042           (genGetByte): new, to get a single byte,
6043           (genGetWord): new, to get a word from a long,
6044           (gen51Code): added GETABIT, GETBYTE, GETWORD
6045         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
6046
6047 2005-09-23 Raphael Neider <rneider AT web.de>
6048
6049         * configure.in, configure: have device/lib/pic configured
6050         * device/lib/Makefile.in: added model-pic14
6051         * device/lib/clean.mk: added pic/ to clean rule
6052         * device/lib/pic: added rudimentary pic14 library providing support
6053           functions for multiplication/division/generic pointer access
6054         * src/SDCCopt.c (convilong): mark support functions as extern
6055           for pic14 port as well
6056         * src/pic/gen.c (genMult): added assertions,
6057           (genpic14Code): emit warning on unhandled iCodes
6058         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
6059         * src/pic/pcode.c (pCodeOpCopy),
6060         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
6061           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
6062           SFR_REGISTER}), made safe for future extensions
6063         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
6064           instructions even if preceeded by SKIP instructions (also remove
6065           them); removed unused code
6066         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
6067           prevents leaving parts of the structure uninitialized after copying
6068
6069 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
6070
6071         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
6072           ago by me
6073         * support/regression/tests/addsub.c: added test for the bug
6074
6075 2005-09-21 Raphael Neider <rneider AT web.de>
6076
6077         * device/include/pic16/pic18f1220.h,
6078           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
6079         * device/lib/pic16/Makefile.rules: added missing opening paren
6080         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
6081           are provided in genutils.c,
6082           (genUminusFloat,genUminus,genCmpEq): added asserts on different
6083           operand/result sizes,
6084           (genCmp): assert on NULL pointers first, then check deref'ed values
6085         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
6086           result size
6087
6088 2005-09-18 Raphael Neider <rneider AT web.de>
6089
6090         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
6091           as these are now unused,
6092           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
6093         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
6094           local, avoids uninitialized pointer dereference on r->name
6095         * src/pic16/ralloc.c (newReg): fixed indentation
6096
6097 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
6098
6099         * src/SDCCval.c (constVal): fixed bug 730366
6100         * support/Util/SDCCerr.c,
6101         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
6102
6103 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
6104
6105         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
6106
6107 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
6108
6109         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
6110
6111 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
6112
6113         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
6114           (hex2dec): made hex_digit unsigned char, removed ascii dependance
6115         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
6116           (hex2dec): made hex_digit unsigned char, removed ascii dependance
6117         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
6118         * packihx/packihx.c (hexDigit): made c unsigned char
6119         * as/mcs51/lklibr.c (fndsym),
6120         * link/z80/lkgb.c (gb),
6121         * link/z80/lklibr.c (fndsym),
6122         * link/z80/lkrloc.c (relr),
6123         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
6124         * src/SDCC.lex (checkCurrFile, process_pragma),
6125         * src/SDCCglue.c (spacesToUnderscores),
6126         * src/SDCCmain.c (setParseWithComma, processFile),
6127         * src/asm.c (tvsprintf, printCLine),
6128         * src/avr/gen.c (emitcode, aopPut),
6129         * src/ds390/gen.c (emitcode),
6130         * src/hc08/gen.c (emitcode, emitinline),
6131         * src/mcs51/gen.c (emitcode, genInline),
6132         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
6133           tokenizeLineNode),
6134         * src/pic/ralloc.c (debugLog),
6135         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
6136           tokenizeLineNode),
6137         * src/pic16/ralloc.c (debugLog),
6138         * src/z80/main.c (_process_pragma):
6139            made all ctype.h function calls safe
6140         * src/SDCCopt.c: include math.h for fabs
6141         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
6142           and used them throughout the code to make ctype.h function calls safe
6143         * src/ds390/main.c (asmLineNodeFromLineNode),
6144         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
6145         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
6146            unsigned char*
6147         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
6148           (newpCodeAsmDir): made ctype.h function calls safe
6149         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
6150           pic16_emitcode):  made lbp unsigned char*
6151         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
6152           (pic16_newpCodeAsmDir): made ctype.h function calls safe
6153         * src/xa51/gen.c (emitcode),
6154         * src/z80/gen.c (_emit2): made lbp unsigned char*
6155         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
6156            char*
6157
6158 2005-09-05 Raphael Neider <rneider AT web.de>
6159
6160         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
6161           access bank splitpoint
6162
6163 2005-09-05 Raphael Neider <rneider AT web.de>
6164
6165         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
6166
6167 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
6168
6169         * .version: changed to version 2.5.3
6170         * doc/sdccman.lyx: changed version to 2.5.3,
6171           documented --codeseg and --constseg and pragma codeseg and constseg,
6172           documented bit parameters (reentrant) and bit returning
6173         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
6174            currFunc->recvSize, but is this ok for all ports?
6175           (ast2iCode): result of ~ on unsigned char must be cast to int for
6176            bool to work
6177         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
6178           function pointers in bit space
6179         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
6180           (processFuncArgs): call port.reg_parm() with reentrancy info
6181         * src/port.h,
6182         * src/avr/main.c,
6183         * src/ds390/main.c,
6184         * src/hc08/main.c,
6185         * src/pic/main.c,
6186         * src/pic16/main.c,
6187         * src/xa51/main.c,
6188         * src/z80/main.c: port.reg_parm prototype extended with
6189           "bool reentrant" parameter
6190         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
6191           options.stackAuto for allocating bit register parameters
6192         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
6193           (genSend): set BitBankUsed if it is,
6194           (selectRegBank): factored out of genCall for use in genPcall,
6195           (genCall): removed redundant dtype assignmen, use selectRegBank,
6196           (genPcall): handle returning in Carry properly, save in F0 if needed,
6197           (genReceive): handle bit register parameters
6198         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
6199           (mcs51_assignRegisters): enable bit registers for all reentrant
6200            functions and don't set BitBankUsed unconditionally
6201         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
6202         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
6203         * support/regression/tests/funptrs.c: added tests for BOOL and for return
6204
6205 2005-08-27 Borut Razem <borut.razem AT siol.net>
6206
6207         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
6208         ppc-osx (Darwin) does not support -u option. It seems that it is
6209         supported only on Linux - GNU cp
6210
6211 2005-08-25 Borut Razem <borut.razem AT siol.net>
6212
6213         * sim/ucsim/gui.src/serio.src/Makefile.in,
6214           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
6215           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
6216           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
6217           install and strip, since the strip at /usr/ccs/bin should be used
6218           on solaris
6219
6220 2005-08-24 Borut Razem <borut.razem AT siol.net>
6221
6222         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
6223
6224 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
6225
6226         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
6227         ffffffffu
6228
6229 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
6230
6231         * as/mcs51/aslink.h: completed lkrloc.c prototypes
6232         * as/mcs51/lkmain.c (link_main): fixed warning
6233         * device/include/stdbool.h: ds390 has no advanced bit support yet
6234         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
6235         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
6236         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
6237           and updated their macros
6238         * src/SDCCval.c (constVal): updated comment for renamed b_long
6239
6240 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
6241
6242         * as/mcs51/asdata.c: changed ctype['['] to BINOP
6243         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
6244           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
6245           (oprio): set priority for '['
6246         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
6247            and adb_24_bit
6248         * as/mcs51/asm.h: added defines R_BIT and S_BIT
6249         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
6250         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
6251         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
6252           added overlayable BIT_BANK area
6253         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
6254           (summary2): explain 'T' in legenda
6255         * as/mcs51/lkrloc.c: replaced old K&R style,
6256           (relr): added R_BIT processing,
6257           (errmsg): added "Bit-addressable relocation error",
6258           (adb_bit): added for converting from byte- to bit-addressable space,
6259           (adb_24_bit): added for converting from byte- to bit-addressable space
6260         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
6261            used in reentrant functions now even as return value
6262         * device/lib/_gptrput.c (_gptrput): removed obsolete code
6263         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
6264           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
6265         * src/SDCCglobl.h: added indicator BitBankUsed
6266         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
6267            the bit registers b0-b7
6268         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
6269           (geniCodeCast): fixed bug 1263853,
6270           (geniCodeLogicAndOr): put result in bool or char,
6271           (geniCodeReceive): added parameter func for accessing the return type,
6272           (geniCodeFunctionBody): pass func to geniCodeReceive
6273         * src/SDCCmain.c: added indicator BitBankUsed
6274         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
6275         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
6276           (checkSClass): don't put automatic bool/bit on stack,
6277           (checkFunction): removed check on function cannot return bit
6278         * src/SDCCsymt.h: added newBoolLink prototype
6279         * src/mcs51/gen.c (rb1regs): added bit registers,
6280           (movc): created for assigning to carry,
6281           (pushReg, popReg): created for pushing registers,
6282           (sameRegs): check both AOP_REG and AOP_CRY types,
6283           (aopOp): handle bit registers,
6284           (aopPut): optimization no self-assign,
6285           (saveRegisters): push reg->base (bits) only once for bit registers,
6286            and use pushReg,
6287           (unsaveRegisters): pop reg->base only once and use popReg,
6288           (assignResultValue): added parameter func and return in carry for bits,
6289           (genIpush): optimization no reload in A if not changed,
6290           (genSend): bit parameters in reentrant functions are passed in bit
6291            registers by first assigning to bits in B, then save registers and
6292            copy B to bits,
6293           (genCall): handle returning in Carry properly, save it in F0 if needed,
6294           (genPcall): updated assignResultValue call, this is not safe yet for bit
6295            returning function !!!
6296           (genFunction): don't generate equ's for bit registers and use pushReg,
6297           (genEndFunction): take care of bit returning functions and use popReg,
6298           (genRet): return bit in Carry,
6299           (genIfx): optimize bit registers and other directly addressable bits,
6300           (genReceive): updated assignResultValue call
6301         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
6302           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
6303            registers when using stack-auto
6304         * src/mcs51/ralloc.c (_G): added allBitregs,
6305           (regs8051): added the bit registers,
6306           (createStackSpil): use macro IS_BIT,
6307           (getRegBit): added to allocate a bit register, else spill,
6308           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
6309           (updateRegUsage): factored out to ease stepping while debugging,
6310           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
6311            also allocate bit registers,
6312           (fillGaps): handle bit registers,
6313           (findAllBitregs): added to create bit vector with all bit registers,
6314           (mcs51_allBitregs): returns this bit vector,
6315           (mcs51_assignRegisters): when using stack-auto use bit registers for
6316            passing parameters and creating local variables
6317         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
6318
6319 2005-08-22 Borut Razem <borut.razem AT siol.net>
6320
6321         * device/lib/Makefile.in: replaced find option -or with -o
6322           to make it run on solaris
6323
6324 2005-08-22 Raphael Neider <rneider AT web.de>
6325
6326         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
6327           fixes #1265442 (crash on Solaris)
6328
6329 2005-08-20 Borut Razem <borut.razem AT siol.net>
6330
6331         * configure, configure.in: added tests for libsocket and libnsl libraries,
6332           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
6333           from support/regression/Makefile.in
6334         * support/regression/Makefile.in: added
6335         * device/lib/pic16/Makefile.common.in: force make to use bash shell
6336         * sim/ucsim/libtool: regenerated on sparc-solaris
6337         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
6338           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
6339           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
6340           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
6341           sparc-solaris, which doesn't use GNU ld linker
6342         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
6343         * as/Makefile: find on sparc-solaris does not support -maxdepth option
6344
6345 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
6346
6347         * src/mcs51/peeph.def: updated comments
6348
6349 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6350
6351         * device/lib/_gptrget.c,
6352         * device/lib/_gptrput.c: slightly shorter
6353         * doc/sdccman.lyx: incremented version
6354         * src/mcs51/peeph.def: moved peephole comments to the line of first
6355           change to better keep line correlation, reanimated 186.e
6356         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
6357
6358 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
6359
6360         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
6361           David Saxton with quotes around file name.
6362
6363 2005-08-15 Borut Razem <borut.razem AT siol.net>
6364
6365         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
6366           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
6367           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
6368           make tests run on x86_64 platform
6369
6370 2005-08-13 Raphael Neider <rneider AT web.de>
6371
6372         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
6373           as it might be executed DURING a build (parallel make is wonderful)
6374
6375 2005-08-13 Raphael Neider <rneider AT web.de>
6376
6377         * device/lib/Makefile.in (port-specific-objects-pic16):
6378           revert to cp $(PORT)/bin/*.* $(PORTDIR)
6379         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
6380           dependency
6381         * device/lib/pic16/Makefile.rules: build subdirs before creating
6382           the library, removed builddir rule, create $(builddir) early in
6383           recurse rule, use empty recurse rule for leaf directories
6384         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
6385           mkdir errors (race condition), removed duplicate suffix "hex"
6386           from clean rules
6387         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
6388         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
6389           prevents mkdir -p from aborting on Alpha
6390
6391 2005-08-12 Raphael Neider <rneider AT web.de>
6392
6393         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
6394           db-statements in order to allow for arrays of pointers in code
6395           sections to be placed without interspersed 0-padding, fixes
6396           bug #1256215
6397         * (emitStatistics): fixed division by zero for pic18f1220
6398         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
6399           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
6400         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
6401         * (pic16_pCodeConstString): keep track of already emitted string
6402           literals to prevent "duplicate definitions of symbol _str_NR"
6403         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
6404           debug message
6405         * device/lib/Makefile.in: ignore failing PIC16 library builds
6406         * device/lib/pic16/Makefile: do not build if gputils are missing
6407         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
6408
6409 2005-08-10 Raphael Neider <rneider AT web.de>
6410
6411         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
6412           my last commit)
6413
6414 2005-08-10 Raphael Neider <rneider AT web.de>
6415
6416         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
6417           Rokas' patch to add the new fixed point type "__fixed16x16"
6418         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
6419           functions for __fixed16x16 arithmetics
6420         * device/lib/pic16: reimplemented the build system to support
6421           a separate build directory, better handling of libio (create
6422           the library in a separate subdir for each architecture) and
6423           easier configuration (centralized in Makefile.common)
6424
6425 2005-08-07 Raphael Neider <rneider AT web.de>
6426
6427         * src/pic16/gen.c (genrshTwo): fixed sign extension
6428         * src/pic16/device.c: added pic18f2320, 4220 and 4320
6429         * device/include/pic16/pic18f2220.h: changed some bit definitions,
6430           added T0CONbits
6431         * device/include/pic16/pic18f4220.h: NEW, header for
6432           pic18f4220 and pic18f4320
6433         * device/include/pic16/pic18fregs.h: added new devices,
6434           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
6435         * device/include/pic16/signal.h: resolved name clashes
6436           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
6437           to also allow testing for interrupt enable bits, added
6438           comments on how to use the macros
6439         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
6440         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
6441           register definitions for the devices
6442         * device/lib/pic16/pics.all: added new devices
6443         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
6444           allocated memory
6445         * device/lib/pic16/libc/stdlib/memfree: do not count
6446           the block header as free memory
6447         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
6448           simplified and added missing end-of-blocklist-marker
6449           (reported by Peter Onion, fixes #1252814)
6450         * (_mergeHeapBlock): fixed loop condition
6451         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
6452           len==0, restructured code
6453         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
6454           up a bit, reduced bitfield accesses, prevent endless loops
6455           in case of heap corruption
6456         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
6457           "unreferenced arguments/must return a value" warnings
6458         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
6459           replaced BAUDREG with SPBRG
6460         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
6461           device/lib/pic16/debug/gstack/gstack.c: replaced
6462           _naked, _asm, _endasm with __naked, __asm, __endasm
6463
6464 2005-08-05 Raphael Neider <rneider AT web.de>
6465
6466         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
6467           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
6468
6469 2005-08-05 Borut Razem <borut.razem AT siol.net>
6470
6471         * device/lib/Makefile.in: added missing ';'
6472         * configure: removed ^M characters
6473
6474 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6475
6476         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
6477           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
6478           License
6479
6480 2005-08-04 Borut Razem <borut.razem AT siol.net>
6481
6482         * configure.in: pic16 libraries build 2nd try - enable running
6483           configure in device/lib/pic16
6484         * configure: regenerated from configure.in
6485         * device/lib/Makefile.in: create $(PORT)/bin directory
6486
6487 2005-08-03 Raphael Neider <rneider AT web.de>
6488
6489         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
6490           to get/set values via pointers
6491         * (genUnpackBits,genPackBits): changed detection of
6492           ptr->bitfield vs. sym.bitfield, fixed access via generic
6493           pointers, removed dead (wrong) code for multibyte bitfields
6494         * (genNearPointerGet, genGenPointerGet): removed useless code,
6495           fixed bitfield detection, fixes #1250594
6496         * (genNearPointerSet): removed useless code
6497         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
6498           and introduced macro pic16_emitpcode that conditionally emits
6499           the origin of the following pCode (useful for debugging SDCC)
6500         * src/pic16/pcode.c: changed (and disabled) some debug outputs
6501         * (createDefmap): fixed handling of LFSR for --optimize-df
6502
6503 2005-08-02 Borut Razem <borut.razem AT siol.net>
6504
6505         * device/lib/Makefile.in: pic16 libraries build enabled since
6506           gputils-0.13.2 are now localy installed at sourceforge's compile farm
6507
6508 2005-08-02 Raphael Neider <rneider AT web.de>
6509
6510         * src/pic16/gen.c (genPackBits): removed deprecated warning
6511         * (genGenPointerSet): fixed bitfield detection
6512
6513 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6514
6515         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
6516
6517 2005-07-31 Raphael Neider <rneider AT web.de>
6518
6519         * device/lib/pic16/libdev/pic18f458.c,
6520           device/include/pic16/pic18f458.h: added missing T0CONbits
6521
6522 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
6523
6524         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
6525
6526 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
6527
6528         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
6529
6530 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6531
6532         * device/include/mcs51/at89c51ed2.h: added.
6533
6534 2005-07-23 Raphael Neider <rneider AT web.de>
6535
6536         * src/pic/gen.h: added emitpcode macro for debugging
6537         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
6538           and replace by macro adding debug information on demand
6539         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
6540         * (gencjne): tried to fix; replaced with correct (slower) code
6541         * (gen{Unp,P}ackBits): fixed single bit access
6542         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
6543         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
6544           previous instruction
6545         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
6546           register has to be handled with care (forbidding movement
6547           of assignments/uses, removing assignments completely, ...)
6548         * (pCodeOptime2pCodes): make use of regIsSpecial
6549         * added lots of debugging output (commented out)
6550         * src/pic/rallloc.c (deassignLRs): prevent operand registers
6551           from being reused as result UNLESS it is known to work
6552
6553 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
6554
6555         * support/Util/dbuf.h: include <stddef.h> for size_t
6556         * .version: changed to version 2.5.2
6557
6558 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6559
6560         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
6561
6562 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6563
6564         * src/hc08/gen.c (genMinus): fixed bug #1241835,
6565           (genModOneByte): removed needless psha/pula
6566
6567 2005-07-22 Raphael Neider <rneider AT web.de>
6568
6569         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
6570           have PIC14 handled like PIC16, fixes broken pic14 linker calls
6571         * src/pic/gen.c (resolveIfx): do not "invent" labels
6572         * (genSkipc): changed to positive logic
6573         * (genSkipCond): removed as no longer needed
6574         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
6575           backport from PIC16
6576         * (genLeftShift): check operands are in different registers
6577         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
6578           INCF does not update CARRY...
6579         * src/pic/main.c: fixed _linkCmd
6580         * src/pic/pcode.c (unlinkpCode): added inactive code
6581         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
6582           alive (do not assign result and operand overlapping registers)
6583
6584 2005-07-22 Raphael Neider <rneider AT web.de>
6585
6586         * src/pic/device.c (dump_sfr): replaced register declaration with
6587           call to emitSymbolToFile() to avoid duplicate symbols
6588         * (assignRelocatableRegisters): do not declare external symbols
6589         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
6590           right (take size of type, not etype)
6591         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
6592         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
6593         * (packRegsForAccUse): disabled assignment of WREG as
6594           the result reg to prevent occurence of just fixed #1235003,
6595           fixes #1242954
6596         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
6597           symbols (avoids duplicate symbols in .asm file)
6598         * (pic14emitRegularMap): use emitSymbolToFile()
6599         * src/pic/gen.c (aopOp): fixed spillLocation handling
6600         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
6601         * (genDataPointerSet): removed unneccessary variables/output
6602
6603 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
6604
6605         * as/mcs51/lkarea.c: enlarged codemap for banked memory
6606         * device/lib/mcs51/crtbank.asm: added # to 0x0F
6607
6608 2005-07-21 Raphael Neider <rneider AT web.de>
6609
6610         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
6611           architecture cannot handle them efficiently, fixes bug #1235003
6612         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
6613           check for empty sets before using them (fixes bug #1232190)
6614
6615 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
6616
6617         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
6618           (lnksect2): generate warnings for memory overlap
6619         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
6620           constseg to set the name of these segments so you can instruct the linker
6621           to place them in banks
6622         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
6623         * src/SDCCglobl.h: added MODEL_HUGE to enum,
6624           added code_seg and const_seg to options
6625         * src/SDCCglue.c (emitMaps): use options.const_seg,
6626           (createInterruptVect): put interrupt vectors in segment HOME,
6627           (glue): put HOME before static segment and put the main glue in HOME,
6628           (glue): use options.code_seg
6629         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
6630         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
6631           these segments so you can instruct the linker to place them in banks
6632           (linkEdit): use code_loc for HOME segment which should be the first
6633           segment in code memory now
6634         * src/SDCCmem.c: fixed more stuff like bug 1238386
6635         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
6636           (changePointer): don't change function pointers to code pointers for
6637           banked functions,
6638           (compareType): added exceptional check for banked function pointers
6639         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
6640         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
6641           after static in code memory
6642         * src/mcs51/gen.c: added aopLiteralLong prototype,
6643           (aopForSym): use getSize for functions,
6644           (genCall): generate banked calls over one trampoline __sdcc_banked_call
6645           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
6646           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
6647           the segment,
6648           (genPcall): use call for literal function pointers and generate banked
6649           calls over the one trampoline so there's only one place for the user to
6650           modify according to his/hers hardware,
6651           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
6652           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
6653         * src/mcs51/main.c: added keyword banked,
6654           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
6655         * support/Util/SDCCerr.c,
6656         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
6657           needed for passing the bank and address to the trampoline
6658         * device/lib/mcs51/crtbank.asm: added for bankswitching
6659         * device/lib/mcs51/Makefile: added crtbank
6660
6661 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6662
6663         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
6664           for fields at offset 0 of a struct or union as reported
6665           on 2005-07-07 in the developer mailing list.
6666
6667 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
6668
6669         * src/SDCCmem.c: fixed bug 1238386
6670
6671 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6672
6673         * src/mcs51/peeph.def: added labelrefcounting for peepholes
6674           (patch #1144962), added peephole 300, enabled 259.x
6675         * doc/sdccman.lyx: removed screenshot and provided link instead
6676
6677 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6678
6679         * doc/sdccman.lyx: added section about debugging with ddd
6680         * doc/figures/ddd_example.eps: screenshot of debugging session
6681
6682 2005-07-04 Raphael Neider <rneider AT web.de>
6683
6684         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
6685           like CODE pointers, fixes #1115683
6686         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
6687           call, fixes bugs #1232211, #1228110,
6688           fixed wrong casts to pCodeFlow from pCodeInstructions
6689
6690 2005-07-04 Raphael Neider <rneider AT web.de>
6691
6692         * src/pic/gen.c (popGet): changed assert to allow for
6693           bit operands
6694         * (popGetAddr): changed signature to provide
6695           an additional index, patched all call sites
6696         * (genCmpEq): handle literal-like operands correctly
6697         * (genAddrOf): added sanity checks on __code/__data pointers
6698         * (genAssign): added handling of symbols from __code section
6699         * (gencjne): do not generate code for comparisons whose result
6700           is neither stored nor used, fixes bug #1171114
6701         * (AccLsh, AccRsh): operate on operand instead of WREG
6702         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
6703           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
6704           by known count
6705         * rewrote complete shift-by-literal logic, commented unused
6706           functions out
6707         * (genConstPointerGet): get multiple bytes (if result size > 1),
6708           fixed handling of non-immediate addresses
6709         * (genPointerGet): handle CODE pointers like CONST pointers
6710         * (genpic14Code): insert C-SRC lines as Cource-pCodes
6711         * ({aop,op}_isLitLike): NEW, single place to decide whether an
6712           operand is to be treated as a literal or not
6713         * (mov2w,genPcall,genCmpEq),
6714           src/pic/genarith.c: use aop_isLitLike() to decide between
6715           literal/register contents
6716         * (addSign): added missing offset
6717         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
6718           only emit comment in debug-mode,
6719           use {aop,op}_isLitLike throughout the file
6720         * src/pic/glue.c: fix initializers for pointers (work in progress)
6721         * src/pic/pcode.c (get_op): honor index on _const symbols
6722         * ({reset,dump}pCodeStatistics): NEW, estimate code size
6723         * (dumppBlock): added pCode size estimation
6724         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
6725           check for IS_SYMOP before OP_SYMBOL'ing
6726         * fixed indentation, compacted switch-statements
6727         * (allocReg): find free register and allocate it instead of
6728           allocating new registers all the time
6729         * (deassignLRs): prevent POINTER_GET's from being assigned the same
6730           registers as its operands (necessary only for multibyte GETs)
6731
6732 2005-07-01 Raphael Neider <rneider AT web.de>
6733
6734         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
6735           debugging .asm-output macros FENTRY + FEXIT
6736         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
6737           way... I wonder...
6738         * (emitpComment): NEW, printf to pCode
6739         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
6740           offset handling
6741         * (popGetAddr): NEW, variant of popGet to access an immediates
6742           high(er) bytes instead of the n'th byte of memory they reference,
6743           replaced popGet with popGetAddr where neccessary
6744         * (genDataPointerGet): reactivated and fixed implementation
6745         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
6746           accesses
6747         * (genDataPointerSet): fixed multibyte assignments
6748         * (genpic14Code): fixed --i-code-in-asm handling
6749         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
6750         * (genPlus): fixed index-out-of-bounds error
6751         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
6752         * src/pic/ralloc.c: added debugging output macro FENTRY2
6753         * (spillThis): fixed indentation, enbraced for-body for clarity
6754         * (rematStr): commented out as now unused
6755         * (regTypeNum): commented out special spill case (overwrites
6756           arbitrary values)
6757         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
6758
6759 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
6760
6761         * doc/sdccman.lyx: documented sfr16/sfr32,
6762           added example for using storage class with function pointers
6763         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
6764
6765 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
6766
6767         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
6768         * device/lib/_itoa.c,
6769         * device/lib/_ltoa.c: optimized codesize
6770         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
6771           but don't know how to suppress the double warning.
6772         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
6773         * support/Util/SDCCerr.c,
6774         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
6775
6776 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
6777
6778         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
6779           fixed old K&R prototypes
6780         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
6781         * device/lib/_gptrget.c,
6782         * device/lib/_gptrgetc.c,
6783         * device/lib/_gptrput.c: changed versions for new memory indicator values,
6784           also new versions for small generic pointers and banked generic pointers
6785         * src/port.h: added const_name
6786         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
6787         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
6788         * src/SDCCcse.c (findPrevIc): check all associative operators
6789         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
6790         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
6791         * src/SDCCmem.c: updated comments,
6792           set far-space to 0 for pdata, results in optimized code
6793         * src/SDCCmem.h: added macro CONST_NAME
6794         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
6795           moving the info into the highest bits, see also gptrget/gptrput
6796         * src/src.dsp: added sdcc.ico to project files
6797         * src/avr/gen.c (genCast): fixed bug 0x%d
6798         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
6799         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
6800           relation between ptr_type and DCL_TYPE,
6801           (genCast): fixed bug 0x%d
6802         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
6803           (CODE)" for const_name
6804         * src/hc08/gen.c (genCast): fixed bug 0x%d
6805         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
6806           (hc08_port): added "CONST (CODE)" for const_name
6807         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
6808           (aopForRemat, adjustArithmeticResult): disconnected direct relation
6809           between ptr_type and DCL_TYPE,
6810           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
6811           operand* and took AOP() inside function so sfr-ness can be checked,
6812           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
6813           new prototype,
6814           (genFunction, genEndFunction): optimized stack setup,
6815           (genMinus): optimized for literals with ending zeroes (in bytes),
6816           (genCast): fixed bug 0x%d
6817         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
6818           (mcs51_port): added "CONST (CODE)" for const_name
6819         * src/mcs51/peeph.def: made rule 226 more generic
6820         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
6821         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
6822         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
6823         * src/z80/main.c (z80_port): added NULL for const_name,
6824           (gbz80_port): added NULL for const_name
6825         * support/regression/tests/bug663539.c,
6826         * support/regression/tests/sfr16.c: new tests
6827
6828 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6829
6830         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
6831
6832 2005-06-24 Raphael Neider <rneider AT web.de>
6833
6834         * device/lib/pic16/libdev/pic18f[68][567]20.c:
6835           corrected typos...
6836         * device/include/pic16/signal.h: added USBIF
6837           and SIG_USB
6838
6839 2005-06-24 Raphael Neider <rneider AT web.de>
6840
6841         * device/lib/pic16/libdev/pic18f2455.c,
6842           device/include/pic16/pic18f2455.h: NEW
6843         * device/include/pic16/pic18fregs.h,
6844           device/lib/pic16/pics.all,
6845           src/pic16/device.c: added 18f2455
6846         * device/lib/pic16/libdev/pic18f[68][567]20.c,
6847           device/include/pic16/{pic18f[68][567].h,usart.h}:
6848           replaced MULTIPLE_USARTS define with more relaible
6849           compatibility sfrs (for USART access)
6850
6851 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
6852
6853         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
6854           and the output asm file line is printed on two lines.
6855
6856 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6857
6858         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
6859           BGT, BLE, BHI, and BLS instructions
6860         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
6861           genCmpEq): removed
6862         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
6863           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
6864           fixes bug #1216342
6865         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
6866
6867 2005-06-15 Raphael Neider <rneider AT web.de>
6868
6869         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
6870         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
6871         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
6872           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
6873           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
6874
6875 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6876
6877         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
6878           Marcel Telka in bug #1215704
6879
6880 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
6881
6882         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
6883           located in shared memory bank.
6884
6885 2005-05-31 Raphael Neider <rneider AT web.de>
6886
6887         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
6888           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
6889           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
6890
6891 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
6892
6893         * device/lib/_strncpy.c: fixed the fix
6894
6895 2005-05-26 Raphael Neider <rneider AT web.de>
6896
6897         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
6898           initializers with \0, bug #1208187
6899         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
6900           intializers with \0, bug #1208187
6901
6902 2005-05-26 Raphael Neider <rneider AT web.de>
6903
6904         * src/pic16/glue.c (pic16_printIvalChar): fixed string
6905           initializers with \0, bug #1208187
6906         * src/pic16/main.c (_process_pragma): added sanity checks
6907           for stack position and size, emit warnings when appropriate
6908
6909 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
6910
6911         * device/lib/_strncpy.c: fixed not filling with \0
6912
6913 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6914
6915         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
6916           createFunction),
6917         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
6918           compound_statement),
6919         * src/SDCCsymt.h,
6920         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
6921
6922 2005-05-24 Raphael Neider <rneider AT web.de>
6923
6924         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
6925
6926 2005-05-24 Raphael Neider <rneider AT web.de>
6927
6928         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
6929           TRISE definitions, closes bug #1162453
6930
6931 2005-05-22 Raphael Neider <rneider AT web.de>
6932
6933         * src/pic16/main.c (_process_pragma): check for missing
6934           arguments to pragmas code and udata
6935         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
6936           consistency fixes to match other headers (thanks to Jim Paris)
6937         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
6938
6939 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
6940
6941         * src/SDCCicode.c (isOperandEqual): fixed missing ;
6942
6943 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
6944
6945         * support/regression/tests/bug1198642.c: new test
6946         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
6947         * src/SDCCcse.c (findPrevIc): added comment, please have a look
6948         * support/scripts/resource.h,
6949         * support/scripts/resource.rc,
6950         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
6951         * support/scripts/sdcc.ico: added 32x32 icon
6952
6953 2005-05-18 Raphael Neider <rneider AT web.de>
6954
6955         * device/lib/pic16/libdev/pic18f*.c,
6956         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
6957           keywords to "__sfr" and "__at (X)"
6958         * device/include/pic16/pic18fregs.h: added pic18f4520
6959         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
6960           #1203088 (MPLAB compatibility)
6961
6962 2005-05-17 Raphael Neider <rneider AT web.de>
6963
6964         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
6965         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
6966         * device/lib/pic16/pics.all: added new devices
6967         * src/pic16/device.c: added support for pic18f4520
6968
6969 2005-05-16 Raphael Neider <rneider AT web.de>
6970         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
6971         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
6972         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
6973           convenience function for bit access
6974
6975 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
6976
6977         * device/lib/printf_large.c: fixed bug 1193299
6978         * support/regression/tests/bug1057979.c: added test %3.3s
6979
6980 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6981
6982         * device/include/mcs51/8051.h,
6983         * device/include/mcs51/8052.h: made parseable with lint
6984         * device/include/mcs51/lint.h: added include file for (sp)lint
6985         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
6986         * doc/cdbfileformat.lyx,
6987         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
6988
6989 2005-05-14 Raphael Neider <rneider AT web.de>
6990
6991         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
6992         * device/lib/pic16/libc/stdlib/itoa.c (new)
6993         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
6994         * device/lib/pic16/libio/Makefile: exclude subdir according to
6995           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
6996         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
6997         * src/pic16/gen.c (genFunction): prevent annoying warning
6998         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
6999           nameclashes on BeOS
7000         * support/cpp2/cppmain.c (cpp_output_string): new
7001         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
7002           fixes bug 1116802
7003
7004 2005-05-13 Borut Razem <borut.razem AT siol.net>
7005
7006         * src/SDCCmain.c (linkEdit): fixed bug 1195202
7007
7008 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7009
7010         * .version: changed to version 2.5.1; back to bleeding edge development
7011
7012 2005-05-11 Borut Razem <borut.razem AT siol.net>
7013
7014         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
7015           generate PDF version 1.3 documents
7016
7017 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7018
7019         * .version: changed to version 2.5.0
7020
7021 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7022
7023         * doc/sdccman.lyx: updated weblinks, index and smaller updates
7024
7025 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7026
7027         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
7028         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
7029         well as many smaller updates.
7030         * .version: changed to version 2.5.0-pre1
7031
7032 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7033
7034         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
7035
7036 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
7037
7038         * support/regression/tests/bug1185672.c: added
7039         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
7040           bug 1185672
7041         * src/mcs51/gen.c (genCall): added comments, made it look safer
7042         * src/mcs51/gen.c (genEndFunction): simplified
7043
7044 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
7045
7046         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
7047
7048 2005-04-14 Borut Razem <borut.razem AT siol.net>
7049
7050         * fixed bug 1045046 - SIGSEGV with really simple code?:
7051           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
7052           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
7053
7054 2005-04-14 Borut Razem <borut.razem AT siol.net>
7055
7056         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
7057           src/pic16/device.h: temporarily disabled experimental #inline pragma
7058           for 2.5.0 release
7059
7060 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
7061
7062         * device/include/z80/stdio.h,
7063         * device/include/z80/string.h: removed these highly incomplete files so
7064           SDCC can use the default ones in device/include/
7065
7066 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7067
7068         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
7069         gcc warning.
7070         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
7071         fix sdcpp warnings.
7072
7073 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
7074
7075         * device/include/malloc.h: removed redundant __reentrant prototypes
7076         * device/lib/_mullong.c: added working xstack variant in asm (C version
7077           doesn't pass regression tests)
7078         * device/lib/bpx.c: used __data and made bpx char for mcs51
7079         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
7080           (createFunction): fixed bug with xstackPtr
7081         * src/SDCCcse.c: corrected comments
7082         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
7083           (killDeadCode, eBBlockFromiCode): removed unused code
7084         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
7085           corrected comments
7086         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
7087           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
7088           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
7089           (genModOneByte): fixed warning in MSVC
7090         * src/mcs51/main.c (): added comments
7091         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
7092
7093 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
7094
7095         * src/SDCCmain.c (linkEdit): oops, changed one line too many
7096
7097 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
7098
7099         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
7100
7101 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
7102
7103         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
7104         characters arrays of larger size than the declared one.
7105
7106 2005-04-10 Borut Razem <borut.razem AT siol.net>
7107
7108         * src/pic/gen.c (genInline),
7109           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
7110           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
7111           (findNextInstruction), (findPrevInstruction),
7112           (findInstructionUsingLabel),
7113           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
7114         * src/pic/pcode.c (findLabel): added missing '\n'
7115         * src/src.dsp: added SDCCdwarf2.c to the project
7116
7117 2005-04-09 Borut Razem <borut.razem AT siol.net>
7118
7119         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
7120
7121 2005-04-08 Raphael Neider <rneider AT web.de>
7122
7123         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
7124           into the chain after a given one) and mergeDefmapSymbols (combine
7125           defmap entries for each symbol per pcode)
7126         * (createDefmap): have defmap entries merged in the end
7127         * (defmapReplaceSymRef): split defmap entries covering two accesses to
7128           a symbol before replacing one access type's symbol, merge symbols in
7129           the end (replacement symbol might already have an entry)
7130         * (assignValnums): keep reference to written WREG intact
7131
7132 2005-04-08 Raphael Neider <rneider AT web.de>
7133
7134         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
7135           Alpha)
7136
7137 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
7138
7139         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
7140         bytes
7141
7142 2005-04-07 Raphael Neider <rneider AT web.de>
7143
7144         * device/include/pic16/usart.h: added compatibility defines for
7145           devices with more than one USART
7146         * device/include/pic16/pic18f[68][567]20.h: activated above defines
7147
7148 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7149
7150         * device/lib/Makefile.in: updated for port specific include
7151
7152 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7153
7154         * support/regression/ports/mcs51/spec.mk: added mcs51 include
7155
7156 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7157
7158         * device/include/8051.h,
7159         * device/include/8052.h,
7160         * device/include/at89S8252.h,
7161         * device/include/at89c55.h,
7162         * device/include/at89x051.h,
7163         * device/include/at89x51.h,
7164         * device/include/at89x52.h,
7165         * device/include/mcs51reg.h,
7166         * device/include/reg51.h,
7167         * device/include/reg764.h,
7168         * device/include/regc515c.h,
7169         * device/include/sab80515.h: (re)moved these 12 files
7170         * device/include/mcs51/8051.h,
7171         * device/include/mcs51/8052.h,
7172         * device/include/mcs51/at89S8252.h,
7173         * device/include/mcs51/at89c55.h,
7174         * device/include/mcs51/at89x051.h,
7175         * device/include/mcs51/at89x51.h,
7176         * device/include/mcs51/at89x52.h,
7177         * device/include/mcs51/mcs51reg.h,
7178         * device/include/mcs51/reg51.h,
7179         * device/include/mcs51/reg764.h,
7180         * device/include/mcs51/regc515c.h,
7181         * device/include/mcs51/sab80515.h: and added them here
7182
7183 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
7184
7185         * device/include/stdarg.h: changed SDCC specific keywords to double
7186           underlined form.
7187         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
7188           mcs51 and ds390.
7189         * device/include/hc08/mc68hc908gp32.h,
7190         * device/include/hc08/mc68hc908jb8.h,
7191         * device/include/hc08/mc68hc908jkjl.h,
7192         * device/include/hc08/mc68hc908qy.h: fixed comments
7193         * device/include/mcs51/README: updated
7194         * device/include/mcs51/c8051f120.h: added PINRSF
7195         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
7196         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
7197           amidst code. Also inline is not supported.
7198
7199 2005-04-06 Raphael Neider <rneider AT web.de>
7200
7201         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
7202         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
7203           callers stack/frame pointers
7204
7205 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
7206
7207         * device/include/pic16/usart.h: added, missing in previous commit,
7208         * device/include/pic16/adc.h: fixed typo,
7209         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
7210         commit,
7211         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
7212         <p18fxxx.inc>
7213         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
7214         uninitialized because a bug appears with gplink
7215         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
7216         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
7217         complains for unrecognised option
7218
7219 2005-04-05 Raphael Neider <rneider AT web.de>
7220
7221         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
7222           structs as well (using memcpy)
7223         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
7224           on ISRs (GOTO has no label)
7225         * src/pic16/device.h: added OF_OPTIMIZE_DF
7226         * src/pic16/main.c: added compiler switch --optimize-df to enable the
7227           new data flow analysis/optimization
7228         * src/pic16/pcode.c: added (prototypes for and implementation of)
7229           dataflow analysis functions, fixed pCodeInstructions' inCond and
7230           outCond values, made RCALL a branch instruction
7231         * (pic16_unlinkpCode): keep C line if possible
7232         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
7233           C line moved if possible
7234         * (pic16_getRegFrompCodeOp): NEW, improved version of...
7235         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
7236           to use new pic16_getRegFrompCodeOp (works for more SFRs)
7237         * (pic16_BuildFlow): fixed skip instructions with label (did not start
7238           new flow)
7239         * (pic16_getJumptabpCode): NEW, needed in...
7240         * (LinkFlow): fixed handling of jumptables, calls and conditional
7241           branches
7242         * (pic16_InsertCommentAfter): NEW
7243         * (pic16_pCodeReplace): made verbose and flow preserving
7244         * (AnalyzeFlow): added call to data flow analysis
7245         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
7246         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
7247         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
7248
7249 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7250
7251         * src/SDCCast.c (decorateType): fixed bug #1105626
7252
7253 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
7254
7255         * device/include/asm/pic16/features.h,
7256         * pic18f*.h headers,
7257         * device/include/pic16/adc.h,
7258         * device/include/pic16/delay.h,
7259         * device/include/pic16/i2c.h,
7260         * device/include/pic16/malloc.h,
7261         * device/include/pic16/stdio.h,
7262         * device/include/pic16/stdlib.h,
7263         * device/include/pic16/string.h,
7264         * device/lib/pic16/libc/stdio/printf_tiny.c,
7265         * device/lib/pic16/libc/stdio/printf_small.c,
7266         * device/lib/pic16/libc/stdio/strmgpsim.c,
7267         * device/lib/pic16/libc/stdio/strmmssp.c,
7268         * device/lib/pic16/libc/stdio/strmusart.c,
7269         * device/lib/pic16/libc/stdio/vfprintf.c,
7270         * device/lib/pic16/libc/stdlib/ltoa.c,
7271         * device/lib/pic16/libc/stdlib/putchar.c,
7272         * device/lib/pic16/libc/stdlib/x_ftoa.c,
7273         * device/lib/pic16/libc/stdlib/memchrpgm.c,
7274         * device/lib/pic16/libc/stdlib/memchrram.c,
7275         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
7276         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
7277         * device/lib/pic16/libio/adc/adcbusy.c,
7278         * device/lib/pic16/libio/adc/adcread.c,
7279         * device/lib/pic16/libio/adc/adcsetch.c,
7280         * device/lib/pic16/libio/usart/ubaud.c,
7281         * device/lib/pic16/libio/usart/ubusy.c,
7282         * device/lib/pic16/libio/usart/udrdy.c,
7283         * device/lib/pic16/libio/usart/uopen.c,
7284         * device/lib/pic16/libio/usart/uputc.c,
7285         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
7286         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
7287         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
7288         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
7289         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
7290         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
7291         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
7292         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
7293         specific keywords to double underlined form,
7294         * device/lib/pic16/libc/Makefile.rules,
7295         * device/lib/pic16/libsdcc/Makefile.rules,
7296         * device/lib/pic16/libm/Makefile,
7297         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
7298         to compile with C standard set in Makefile.common
7299         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
7300         rand.c and crc.c in compilation process,
7301         * device/lib/pic16/libsdcc/int/divuint.c,
7302         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
7303         `c' from signed to unsigned,
7304         * device/lib/pic16/startup/crt0.c,
7305         * device/lib/pic16/startup/crt0i.c,
7306         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
7307         keywords to double underlined form, bug fixes in _do_cinit function
7308         which prevented the correct initialization of the .idata segment,
7309         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
7310         core to enter a infinite loop
7311         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
7312
7313 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7314
7315         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
7316
7317 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7318
7319         * device/include/Makefile.in: add support for hc08 subdirectory
7320         * device/include/hc08/: new subdirectory
7321         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
7322         Lucas Loizaga, thanks!
7323         * device/include/hc08/mc68hc908qy.h,
7324         * device/include/hc08/mc68hc908gp32.h,
7325         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
7326         their own directory. Changed internal macro names to use the compiler
7327         reserved namespace. Changed SDCC specific keywords to double
7328         underlined form.
7329         * device/include/math.h,
7330         * device/include/malloc.h,
7331         * device/include/stdarg.h,
7332         * device/include/stdbool.h
7333         * device/include/string.h,
7334         * device/include/tinibios.h,
7335         * device/include/ds400rom.h,
7336         * device/include/8051.h,
7337         * device/include/8052.h,
7338         * device/include/80c51xa.h,
7339         * device/include/at89c55.h,
7340         * device/include/at89S8252.h,
7341         * device/include/at89x51.h,
7342         * device/include/at89x52.h,
7343         * device/include/ds80c390.h,
7344         * device/include/reg764.h,
7345         * device/include/regc515c.h,
7346         * device/include/sab80515.h,
7347         * device/include/mcs51/c8051f000.h,
7348         * device/include/mcs51/c8051f018.h,
7349         * device/include/mcs51/c8051f020.h,
7350         * device/include/mcs51/c8051f040.h,
7351         * device/include/mcs51/c8051f060.h,
7352         * device/include/mcs51/c8051f120.h,
7353         * device/include/mcs51/c8051f300.h,
7354         * device/include/mcs51/c8051f310.h,
7355         * device/include/mcs51/c8051f320.h,
7356         * device/include/mcs51/c8051f330.h,
7357         * device/include/mcs51/c8051f350.h,
7358         * device/include/z180.h: Changed SDCC specific keywords to double
7359         underlined form.
7360
7361 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
7362
7363         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
7364         18F4455,
7365         * (pic16_assignConfigWordValue): disable testing of configuration
7366         register value with config mask,
7367         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
7368         function with port->fun_prefix,
7369         * (genFunction): when generating a naked interrupt function never
7370         create an absolute segment placed in interrupt vector address, place
7371         the actual interrupt function at IVA instead, when an interrupt
7372         function is generated with unspecified interrupt then do not create
7373         the absolute section,
7374         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
7375         code for generating a call to generic pointer get/put function with
7376         a call to function pic16_callGenericPointer(),
7377         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
7378         the call to the generic pointer get/put functions with prefixing the
7379         function name with port->fun_prefix,
7380         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
7381         * src/pic16/main.c (_process_pragma): prefix function with
7382         port->fun_prefix,
7383         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
7384         calling assembler, old 18Fxxxx macro is deprecated,
7385         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
7386         PC_ASMDIR in while condition,
7387         * (findInstruction): add PC_ASMDIR in while condition,
7388         * (buildCallTree): prefix main with port->fun_prefix,
7389         * (pic16_pCode2str): fixed bug that didn't emit the memory access
7390         identifier for variable with banked access in instructions BTFSS,
7391         BTFSC, BCF, BSF, BTG
7392         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
7393         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
7394         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
7395         perform optimization when enviroment variable NO_REG_OPT is set,
7396         * (insideLRBlock): NEW, return 1 if register is inside an
7397         INF_LOCALREGS block,
7398         * (RemoveRegFromLRBlock): remove a register that is completely
7399         eliminated by register optimization, but it is still left in local
7400         register store/restore in/from stack block,
7401         * (Remove2pcodes): after removing register, check to see if it
7402         should be removed from local register store/restore in/from stack
7403         block,
7404         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
7405         DUMMY_READ_VOLATILE,
7406
7407         * device/include/pic16/adc.h: minor prototype modifications and
7408         update,
7409         * device/include/pic16/malloc.h: added GPL notice various
7410         modifications,
7411         * device/include/pic16/stdint.h: NEW, standard header for ints
7412         * device/include/pic16/delay.h: NEW, header for delay functions,
7413         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
7414         delay1mtcy,
7415         * device/include/pic16/signal.h: NEW, header providing helper macros
7416         for implementing signal handlers,
7417         * device/include/pic16/stdio.h: added prototypes for functions,
7418         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
7419         prototypes for stdin and stdout, added macro PUTCHAR to
7420         automatically implement putchar function prototype,
7421         * device/include/pic16/usart.h: modified and updated USART library,
7422         * device/lib/pic16/libio/adc/,
7423         * device/lib/pic16/libio/i2c: some modifications to improve library
7424         performance,
7425         * device/lib/pic16/libc/stdio/: modifications for the new printf*
7426         family of functions,
7427         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
7428         family of functions and other sources,
7429         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
7430         of the PIC18Fxx[28] devices,
7431         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
7432         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
7433         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
7434         _do_cinit function, because the previous failed when local variables
7435         where not placed in the same memory bank,
7436         * device/lib/pic16/libsdcc/char/: various modifications to improve
7437         library performance,
7438         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
7439         information on the new functions of the c library and more...
7440
7441 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7442
7443         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
7444
7445 2005-03-26 Raphael Neider <rneider AT web.de>
7446
7447         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
7448           if condition == CARRY)
7449         * (genCmp): adapted to new genSkipc semantics
7450         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
7451           on rIfx (genCmp was broken)
7452
7453 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7454
7455         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
7456         * src/z80/main.c (_keywords[]),
7457         * src/SDCCglobal.h (struct options),
7458         * src/SDCC.y,
7459         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
7460         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
7461         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
7462         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
7463         always available in leading double underscore form. The C99 support is
7464         mostly missing, but it's a start.
7465         * support/regression/tests/bug-227710.c: fixed nonconforming use of
7466         reserved identifier "__data".
7467
7468 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
7469
7470         * src/mcs51/peeph.def: fixed bug 1170013
7471
7472 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
7473
7474         * device/include/mcs51reg.h: fixed bug 842007
7475
7476 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7477
7478         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
7479         last time.
7480
7481 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7482
7483         * src/port.h (struct PORT),
7484         * src/avr/ralloc.c (avr_assignRegisters),
7485         * src/avr/main.c,
7486         * src/ds390/ralloc.c (ds390_assignRegisters),
7487         * src/ds390/main.c,
7488         * src/hc08/ralloc.c (hc08_assignRegisters),
7489         * src/hc08/main.c,
7490         * src/mcs51/ralloc.c (mcs51_assignRegisters),
7491         * src/mcs51/main.c,
7492         * src/pic/ralloc.c (pic14_assignRegisters),
7493         * src/pic/main.c,
7494         * src/pic16/ralloc.c (pic16_assignRegisters),
7495         * src/pic16/main.c,
7496         * src/xa51/ralloc.c (xa51_assignRegisters),
7497         * src/xa51/main.c,
7498         * src/z80/ralloc.c (z80_assignRegisters),
7499         * src/z80/ralloc.h,
7500         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
7501         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
7502         * src/SDCCcse.h,
7503         * src/SDCCdflow.c (computeDataFlow),
7504         * src/SDCCdflow.h,
7505         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
7506         * src/SDCCloop.h,
7507         * src/SDCCcflow.c (*),
7508         * src/SDCCcflow.h,
7509         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
7510         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
7511         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
7512         immedDom() returning wrong block; probably fixes bug #1160833)
7513
7514 2005-03-20 Borut Razem <borut.razem AT siol.net>
7515
7516         * support/scripts/inc2h.pl: WIN32 port
7517
7518 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
7519
7520         * device/lib/makefile.in: added abs.c and labs.c
7521
7522 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
7523
7524         * device/include/stdint.h: added
7525         * device/lib/abs.c: added
7526         * device/lib/labs.c: added
7527         * device/include/stdlib.h: added abs() and labs() prototypes
7528         * device/lib/libsdcc.lib: added abs and labs
7529         * device/include/float.h,
7530         * device/lib/_fsmul.c,
7531         * device/lib/printf_fast.c,
7532         * device/lib/printf_tiny.c: updated comments
7533
7534 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7535
7536         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
7537         bug #1164313
7538
7539 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7540
7541         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
7542         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
7543
7544 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
7545
7546         * device/lib/printf_large.c: removed inline assembly for portability and
7547           readability. Use printf_fast if speed or size are more important.
7548         * src/pic16/gen.c: removed conditions around use of DEBUGpc
7549         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
7550
7551 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
7552
7553         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
7554         prevent compiler warning
7555
7556 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
7557
7558         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
7559         moved to level 0 and declared as static. Also they are explicit
7560         placed in access bank. This was necessery because some times they
7561         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
7562         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
7563         optimizations. Currently only compare to unsigned char is implemented,
7564         * src/pic16/gen.c: added fReturnIdx array,
7565         * (struct resolvedIfx) is moved to gen.h and made public,
7566         * (struct _G): added sregsAlloc and sregsAllocSet fields,
7567         * (aopForSym): added an optimization to directly store in stack of
7568         the operand of a SEND iCode,
7569         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
7570         but as registers instead (AOP_REG) using the fReturnIdx array,
7571         * (pic16_freeAsmop): remove the freed register from the
7572         _G.sregsAlloc field,
7573         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
7574         a compare of 'WREG',
7575         * (pic16_popGetTempRegCond): changed function prototype, now
7576         function takes also a bitVector argument v which holds the current
7577         set of registers that are allocated for stack access by aopForSym,
7578         registers allocated in aopForSym for accessing stack symbols are not
7579         any more part of the functions usedRegs field,
7580         * (genCall): some times aopOp is called for a stack variable to be
7581         send, aopForSym might perform the push, if this is true make sure
7582         that genCall doesn't push the variable twice by testing _G.resDirect,
7583         * (genFunction): changed testing for unspecified interrupt number
7584         from 256 to INTNO_UNSPEC,
7585         * modified selection scheme of frame pointer generation. Previously
7586         if function did use local registers a frame pointer was generated,
7587         now a frame pointer is generated only if function has arguments
7588         (that need PLUSW2 register access), or has stack arguments, or the
7589         compiler is not instructed to omit the frame pointer,
7590         * (genEndFunction): before restoring local registers that were saved
7591         in the function preamble, also restore the registers that *might*
7592         have been allocated for stack access,
7593         * (genRet): removed some old comments,
7594         * (genCmp, the active (RN's) version): added a call to the
7595         pic16_genCmp_special function to perform the compare with a more
7596         robust and optimized way,
7597         * (genInline): a feature has been added in inline code generation,
7598         which allows a wildcard variable substitution when writing inline
7599         assembly. Code is incomplete and experimental therefore undocumented,
7600         * (genCast): changed order of aopOp for result and right to allow
7601         aopForSym to directly load the result if possible,
7602         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
7603         perform an optimized compare on some selected special occasions,
7604         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
7605         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
7606         generate an IVT any more,
7607         * src/pic16/main.c (pic16_optionsTable): added command line option
7608         --optimize-cmp,
7609         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
7610         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
7611         macros,
7612         * src/pic16/NOTES: Raphael Neider added in list of active developers
7613         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
7614         jumptable_end to prevent bug #,
7615         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
7616         inCond and outCond fields,
7617         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
7618         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
7619         turn off register spilling,
7620         * (packRegsForOneUse): synced with other ports' versions although it
7621         is not used currently,
7622         * (pic16_packRegisters): added an optimization while reading
7623         structure bitfields, some registers may be saved (malloc code is
7624         decreased by 80 bytes)
7625
7626 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
7627
7628         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
7629         left is a bitfield, if yes, then don't optimize assignment. Perhaps
7630         this can be optimized more?
7631
7632 2005-03-10 Raphael Neider <rneider AT web.de>
7633
7634         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
7635           genNearPointerGet): (hopefully) fixed access to bitfields via
7636           pointers (p->bitN = x; and x = p->bitN; failed)
7637
7638 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
7639
7640         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
7641
7642 2005-03-09 Raphael Neider <rneider AT web.de>
7643
7644         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
7645
7646 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
7647
7648         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
7649         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
7650           (regTypeNum): set REG_BIT type if necessary
7651         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
7652         * support/regression/tests/critical.c: check bug 1144613
7653
7654 2005-03-02 Raphael Neider <rneider AT web.de>
7655
7656         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
7657
7658 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7659
7660         * src/avr/ralloc.c (serialRegAssign),
7661         * src/ds390/ralloc.c (serialRegAssign),
7662         * src/hc08/ralloc.c (serialRegAssign),
7663         * src/mcs51/ralloc.c (serialRegAssign),
7664         * src/pic/ralloc.c (serialRegAssign),
7665         * src/pic16/ralloc.c (serialRegAssign),
7666         * src/xa51/ralloc.c (serialRegAssign),
7667         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
7668
7669 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
7670
7671         * src/SDCCast.c (decorateType): fixed bug 1124787
7672
7673 2005-02-20 Hubert Sack <sack AT digiplan.de>
7674         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7675
7676         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
7677         patch #1121755
7678
7679 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7680
7681         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
7682         to keep the correct label reference count when adding/removing references
7683         to labels. A peephole file using this is appended to patch #1144962.
7684
7685 2005-02-14 Raphael Neider <rneider AT web.de>
7686
7687         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
7688         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
7689         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
7690           retrievals of result operand's value on assignment
7691
7692 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
7693
7694         * device/include/pic16/string.h: modified prototype for memccpy()
7695         to memccpy(void *, void *, char, size_t)
7696         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
7697         check whether to omit frame pointer or not,
7698         * (genInline): convert all occurences of "\n" to LF in inline
7699         assembler blocks, this helps formatting the inline text,
7700         * (pic16_loadFSR0): modified prototype,
7701         * (genNearPointerGet, genNearPointerSet): reorganization of code,
7702         removed some 8051 legacy code,
7703         * (genPackBits): enabled handling bitfields exceeding one byte in size,
7704         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
7705         before allocating temporary registers in functions,
7706
7707 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
7708
7709         * support/regression/tests/bitvars.c: corrected the "fix"
7710
7711 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
7712
7713         * support/regression/tests/bitvars.c,
7714         * support/regression/tests/bitwise.c,
7715         * support/regression/tests/rotate.c: "fixed" problems on Alpha
7716
7717 2005-02-10 Raphael Neider <rneider AT web.de>
7718
7719         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
7720           different size for Alpha
7721         * src/pic16/gen.c (genCmpEq) : improved compare with 0
7722
7723 2005-02-09 Raphael Neider <rneider AT web.de>
7724
7725         * src/SDCC.lex(doPragma) : save and restore warning options as well
7726           (also added new stack plus clone- and copyAndFreeSDCCERRG())
7727         * have #pragma less_pedantic set the errorlevel to WARNING
7728           (fixes #1117001)
7729         * (cloneOptimize) : fixed wrong malloc's size
7730         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
7731           facilitate correct handling of #pragma (save|restore)
7732
7733 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
7734
7735         * src/mcs51/gen.c: removed non-standard C nameless struct/union
7736
7737 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
7738
7739         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
7740
7741 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
7742
7743         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
7744
7745 2005-02-02 Raphael Neider <rneider AT web.de>
7746
7747         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
7748         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
7749         * (pic16_storeForReturn): fixed to allow returning function pointers
7750         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
7751         * device/include/pic16/{stddef.h,stdbool.h}: added
7752
7753 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
7754
7755         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
7756
7757 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
7758
7759         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
7760         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
7761          appeared to be required
7762
7763 2005-01-31 Borut Razem <borut.razem AT siol.net>
7764
7765         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
7766           include/mcs51 and include/z80 directories to the package
7767
7768 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7769
7770         * src/hc08/gen.c (genFunction): fixed bug #1112752
7771
7772 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7773
7774         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
7775
7776 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7777
7778         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
7779
7780 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
7781
7782         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
7783
7784 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
7785
7786         * device/include/c8051fxxx.h: removed these 6 files
7787         * device/include/mcs51/c8051fxxx.h: added these 11 new files
7788
7789 2005-01-26 Raphael Neider <rneider AT web.de>
7790
7791         * src/pic16/gen.c (genAssign): fixed assignment from longs
7792           in codespace (were cut to three bytes)
7793         * (genDummyRead): implemented (except for CODESPACE...),
7794           fixed bug #1108575
7795         * src/pic16/glue.c (emitStatistics): beautified
7796         * device/lib/pic16/libm/Makefile: added include path
7797
7798 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7799
7800         * src/z80/gen.c (aopPut): fixed bug #1103902
7801
7802 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7803
7804         * device/lib/expf.c: fixed bug #1095792
7805
7806 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
7807
7808         * device/lib/pic16/libm: added Math library sources
7809
7810 2005-01-24 Raphael Neider <rneider AT web.de>
7811
7812         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
7813           to enable upcast to pCodeOpReg2 (there is no type tag to
7814           differenciate the two and pic16_popGet2p cast into PCOR2)
7815         * src/pic16/main.c (_process_pragma): fixed another malloc bug
7816           (sizeof(sectNames) changed to sizeof(sectName))
7817           Both patches fix segfaults under MinGW.
7818
7819 2005-01-23 Raphael Neider <rneider AT web.de>
7820
7821         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
7822           Safe_[mc]?alloc()'ed variables
7823         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
7824           of (byte sized) temporaries (assign them to WREG for now)
7825         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
7826           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
7827           this might fix SIGSEGVs on MinGW...
7828         * src/SDCCopt.c (killDeadCode): restored original behaviour
7829           (volatile operands might get thrown away though)
7830
7831 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
7832
7833         * src/pic16/gen.c: fixed bug #1106975,
7834         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
7835         pointer update, INTCON is saved, global interrupts are disabled and
7836         restored after updateing TOS.
7837         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
7838         * added function attribute 'shadowregs' to take advantage of shadow
7839         registers,
7840         * added function attribute 'wparam' as an alternative to the wparam
7841         pragma,
7842         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
7843         user declares a non-ISR function as 'shadowregs',
7844         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
7845
7846 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
7847
7848         * .version: bumped version number to 2.4.8
7849         * device/lib/pic16/pics.all: list of PIC18F devices supported by
7850         pic16 port,
7851         * device/lib/pic16/libio/i2c/: I2C module support library,
7852         * device/include/pic16/i2c.h: I2C support library header,
7853         * device/lib/pic16/libc/stdio/: standard IO support sources,
7854         * (printf_small.c): printf_small() source, supports float print,
7855         * (printf_tiny.c): printf_tiny() source, does not support floats,
7856         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
7857         enable global optimizations for entire library source, other
7858         Makefiles in the source tree are also modified to reflect this,
7859         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
7860         function,
7861         * doc/sdccman.lyx: updated to reflect new changes,
7862         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
7863         sym->onStack if-case,
7864         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
7865         sbit, idata, _idata, xdata, _xdata,
7866         * added pragma library, to link an external library, (see doc),
7867         * removed command line options, --pomit-config-words, --pomit-ivt,
7868         --pleave-reset-vector,
7869         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
7870         when calling assembler to reflect memory model used, also define
7871         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
7872         reflect stack model used,
7873         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
7874         on stack return NULL,
7875
7876 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
7877
7878         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
7879           of the operands is volatile. Fixes #1020220
7880
7881 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
7882
7883         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
7884         * (OptimizeRegUsage): make sure that there is really no other flow where
7885           the first pCode is used
7886
7887 2005-01-22 Raphael Neider <rneider AT web.de>
7888
7889         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
7890           to fix #1106967 (pCode->seq are not set up correctly)
7891
7892 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7893
7894         * src/SDCCglue.c (glue): make sure code area is declared before the
7895         static initialization area.
7896
7897 2005-01-21 Raphael Neider <rneider AT web.de>
7898
7899         * device/lib/Makefile.in: fixed test for pic16 install dir
7900         * device/lib/pic16/*/Makefile*: modified compile flags to enable
7901           optimizations
7902         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
7903           added --optimize-goto compiler switch and pragma wparam documentation
7904         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
7905         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
7906           and PRODH closing bug #1071770 (peephole optimizer)
7907
7908 2005-01-19 Raphael Neider <rneider AT web.de>
7909
7910         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
7911           cmdLine buffers (used when calling sdcpp...) are large enough
7912           (MAX_PATH=256 truncates arguments leading to system halts when
7913           used in MinGW...)
7914         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
7915         * (genUminus): rewritten to for efficiency
7916         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
7917           used uninitialized in some cases)
7918         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
7919           copy the third byte from the int -- now assumes 0x80 (data memory)
7920         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
7921           operands (genAddLit expects the iCode's operands to swapped as
7922           well), fixed leftover bytes (crashed for short left operands)
7923         * (pic16_genMinusDec): performance improvements, removed false
7924           PIC14 emitSKPNCs
7925         * (pic16_genMinus): fixed to cope with differently sized operands
7926         * src/pic16/glue.c (pic16_glue): added new banksel optimization
7927           for --obanksel > 1
7928         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
7929         * src/pic16/graph.[ch]: implementation of directed graphs, used by
7930           new banksel optimization
7931         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
7932           analysis for temporary registers (segfaults...)
7933         * src/pic16/peeph.def: added rule
7934
7935 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
7936
7937         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
7938         which converts a float number to its ASCII representation
7939         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
7940         functions to convert the fractional and integer part of a float to ASCII,
7941         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
7942         realloc.c): added _MALLOC_SPEC to explicit place variables in data
7943         ram
7944         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
7945         _STATMEM macros,
7946         * device/include/pic16/adc.h: added GPL info,
7947         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
7948         a pCodeOp as tested operand,
7949         * (genNearPointerGet): optimized bit testing, does not use
7950         intermediate register for bit value, test directly instead with
7951         BTFSS, BTFSC, works only for single bits,
7952         * (genpic16Code): dump the name of the iCode in the asm,
7953         * src/pic16/ralloc.c (decodeOp): removed static declaration and
7954         renamed to pic16_decodeOp,
7955         * (serialRegAssign): do not allocate a temporary register for iCode
7956         sequences that test a single bit for 1/0
7957
7958 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
7959
7960         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
7961         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
7962         access stack and frame pointers. They are initially assigned to
7963         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
7964         accessing SFRs. Updated all occurences of modification of stack or
7965         frame pointer in gen.c and pcode.c,
7966         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
7967         assigning of a literal value to pointers,
7968         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
7969         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
7970         selected
7971
7972 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
7973
7974         * doc/sdccman.lyx: update documentation about stack pragma, added
7975         some info for stack memory models
7976
7977 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7978
7979         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
7980
7981 2005-01-08 Raphael Neider <rneider AT web.de>
7982
7983         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
7984           udata sections to fix bug #1097823
7985
7986 2005-01-05 Raphael Neider <rneider AT web.de>
7987
7988         * src/pic16/gen.c (genGenericShift): added handling of differently
7989           sized left operand and result
7990
7991 2005-01-04 Raphael Neider <rneider AT web.de>
7992
7993         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
7994         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
7995           to hold the condition bit)
7996         * added new version of genCmp (old code available via #define)
7997         * added new version of genShiftLeft/genShiftRight in a generic
7998           way, now supports shifting by negative values
7999         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
8000           shiftCount (expected by genGenericShift)
8001         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
8002         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
8003           dump
8004         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
8005           is an invalid literal too...)
8006
8007 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
8008
8009         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
8010         from Raphael Neider,
8011         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
8012         for 8-bit literals. This fixes some literal operands which are sign
8013         extended to 16-bits ints when instruction needs only 8-bits.
8014
8015 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
8016
8017         * device/lib/logf.c: added mcs51 assembly version
8018         * device/lib/expf.c: added mcs51 assembly version
8019         * device/lib/_logexpf.c: new shared asm code for expf and logf
8020         * device/include/math.h: add defines for assembly math library
8021         * device/lib/Makefile.in: build new _logexpf.c
8022         * device/lib/libfloat.lib: use new _logexpf.c
8023
8024 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
8025
8026         * src/pic/device.c
8027         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
8028           device types which have less than 0x7f registers.
8029
8030 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
8031
8032         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
8033
8034 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
8035
8036         * device/lib/printf_fast.c: only build on supported arch.
8037         * device/lib/printf_tiny.c: only build on supported arch.
8038         * device/lib/printf_fast_f.c: only build if asm float lib
8039         * device/lib/_fsget1arg.c: only build if asm float lib
8040         * device/lib/_fsget2args.c: only build if asm float lib
8041         * device/lib/_fsnormalize.c: only build if asm float lib
8042         * device/lib/_fsreturnval.c: only build if asm float lib
8043         * device/lib/_fsrshift.c: only build if asm float lib
8044         * device/lib/_fsswapargs.c: only build if asm float lib
8045         * device/include/stdio.h: don't provide print_fast,
8046           print_fast_f, print_tiny prototypes if --xstack used
8047
8048 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
8049
8050         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
8051         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
8052           to the SOURCES
8053
8054 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
8055
8056         * device/lib/printf_fast_f.c: same as printf_fast, but
8057           with floating point enabled
8058         * device/lib/printf_fast.c: minor tweaks
8059         * device/include/stdio.h: add printf_fast_f
8060
8061 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
8062
8063         * src/SDCCmain.c: make --float-reent default for mcs51
8064         * device/lib/_fsadd.c: added mcs51 assembly version
8065         * device/lib/_fssub.c: added mcs51 assembly version
8066         * device/lib/_fsmul.c: added mcs51 assembly version
8067         * device/lib/_fsdiv.c: added mcs51 assembly version
8068         * device/lib/_fseq.c: added mcs51 assembly version
8069         * device/lib/_fsneq.c: added mcs51 assembly version
8070         * device/lib/_fsgt.c: added mcs51 assembly version
8071         * device/lib/_fslt.c: added mcs51 assembly version
8072         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
8073         * device/lib/Makefile.in: add _fscmp to build
8074         * device/lib/libfloat.lib: add _fscmp to build
8075
8076 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
8077
8078         * device/lib/_fs2slong.c: added mcs51 assembly version
8079         * device/lib/_fs2sint.c: added mcs51 assembly version
8080         * device/lib/_fs2schar.c: added mcs51 assembly version
8081         * device/lib/_fs2ulong.c: added mcs51 assembly version
8082         * device/lib/_fs2uint.c: added mcs51 assembly version
8083         * device/lib/_fs2uchar.c: added mcs51 assembly version
8084         * device/lib/_slong2fs.c: added mcs51 assembly version
8085         * device/lib/_sint2fs.c: added mcs51 assembly version
8086         * device/lib/_schar2fs.c: added mcs51 assembly version
8087         * device/lib/_ulong2fs.c: added mcs51 assembly version
8088         * device/lib/_uint2fs.c: added mcs51 assembly version
8089         * device/lib/_uchar2fs.c: added mcs51 assembly version
8090         * device/include/float.h: added #define to select asm vs c
8091
8092 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
8093
8094         * device/lib/printf_fast.c: improvements to float output
8095         * device/include/float.h: add defines for assembly float library
8096         * device/lib/_fsget1arg.c: receive 1 float arg
8097         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
8098         * device/lib/_fsnormalize.c: normalize a float
8099         * device/lib/_fsreturnval.c: return float, various helper routines
8100         * device/lib/_fsrshift.c: right shift a float's mantissa
8101         * device/lib/_fsswapargs.c: swap 2 floats
8102         * device/lib/Makefile.in: build these 6 new files for mcs51
8103         * device/lib/libfloat.lib: add these 6 files to the library
8104
8105 2004-12-26 Borut Razem <borut.razem AT siol.net>
8106
8107         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
8108           built by gcc 3.4.2
8109
8110 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
8111
8112         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
8113           and fully reentrant and register bank neutral.
8114         * device/lib/printf_fast.c: added float (not enabled by default),
8115           added compact/slower integer (also not enabled by default),
8116           improved size/speed of fast integer code, other minor changes
8117         * device/include/stdio.h, device/lib/Makefile.in,
8118           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
8119
8120 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
8121
8122         * src/pic16/pcode.c: declaring variables other than at the start of a
8123           block is not supported in C by VC6.
8124
8125 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
8126
8127         * applied a previous patch from Raphael Neider that wasn't included
8128         in the previous commits, which fixes infinite loops within jumptable
8129         improvements,
8130         * made some fixes that previous patches introduced
8131
8132 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
8133
8134         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
8135         that fixes an issue with AOP_PCODE asmop's offset,
8136         * (pic16_popCopyReg): update instance field too,
8137         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
8138         function of pic port,
8139         * (genCmp, genAnd, genAssign),
8140         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
8141
8142 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
8143
8144         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
8145         variables initial values to idata section,
8146         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
8147         variables in some functions. This utilizes parmBytes field of iCode
8148         structure to hold the offset of the variable in stack. (might be
8149         able to use the stack field too?)
8150         * applied patch from Raphael Neider # ### , # ###
8151         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
8152         variable initial values in idata section,
8153         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
8154         for static variables with initial value
8155         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
8156         applied fix in while loop from Raphael Neider.
8157
8158 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
8159
8160         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
8161         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
8162         * src/ds390/ralloc.c (serialRegAssign): spill bits
8163         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
8164         * support/Util/SDCCerr.c,
8165         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
8166         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
8167         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
8168
8169 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
8170
8171         * device/include/sdcc-lib.h: inserted LGPL, added includes
8172           asm/ds390/features.h and asm/mcs51/features.h
8173         * device/include/asm/default/features.h,
8174         * device/include/asm/gbz80/features.h,
8175         * device/include/asm/z80/features.h: added empty _AUTOMEM
8176           and _STATMEM
8177         * device/include/asm/ds390/features.h,
8178         * device/include/asm/mcs51/features.h: added files with defines for
8179           _AUTOMEM and _STATMEM indicating automatic and static storage class
8180         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
8181         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
8182         * src/SDCCicode.c (geniCodeCast),
8183         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
8184         * src/SDCCloop.c (loopInduction): removed unused variable lr
8185         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
8186           to convertToFcall to include char modulo (RFE 1065037), added check
8187           if left operand is unsigned and use abs of literal value
8188         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
8189           as it doesn't work after conversion from peephole.def to peephole.rul
8190         * src/mcs51/gen.c (toBoolean): added check for size,
8191           (genModOneByte): optimized code for signed char modulo a literal
8192           power of 2 (thanks to Hubert Sack),
8193           (genRRC): removed unnecessary "clr c",
8194           (genRLC): replaced "add a,acc" with cheaper "rlc a"
8195         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
8196           jump optimization,
8197           swapped rules 256.c and 256.d,
8198           extended 256.d by using new multiple checks (thanks Erik),
8199           added rules 256.e and 256.f,
8200           updated rule 261.a and 261.b to new generated code
8201         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
8202
8203 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8204
8205         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
8206           induction related bugs, including first part of bug #1074377
8207
8208 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
8209
8210         * applied patch from bug-report #1076292,
8211         * applied patches for genAnd and Goto-optimizations for Raphael
8212         Neider,
8213         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
8214         dump a less iCode information,
8215         * src/pic16/device.h (pic16_options_t): added field debgen,
8216         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
8217         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
8218         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
8219         puclic,
8220         * (various functions): added macros FENTRY and FENTRY2 to functions,
8221         to emit function prologue,
8222         * (various functions): fixed indentation,
8223         * (genNearPointerGet): fixed loading of FSR0,
8224         * (genPackBits): applied patch from Raphael Neider to fix updating
8225         of FSR0 and touching only the modified bits,
8226         * src/pic16/genarith.c (various functions): added macros FENTRY to
8227         emit function prologue in comments,
8228         * src/pic16/pcode.h: added functions debugf2, debugf3,
8229         * src/pic16/ralloc.c: partial fix for packForPush caused
8230         segmentation fault,
8231
8232 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8233
8234         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
8235           <stsp AT users.sourceforge.net> with reversed byte order
8236         * support/regression/tests/rotate.c: added (ds390 skips some tests)
8237
8238 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8239
8240         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
8241           bug #1074377
8242         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
8243         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
8244
8245 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
8246
8247         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
8248
8249 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8250
8251         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
8252           conditions,
8253           (setFromConditionArgs): friendly operand parser for peephole rules,
8254           (operandBaseName, operandsNotRelated): new peephole condition
8255           "operandsNotRelated" -- similar to "operandsNotSame", but takes
8256           architecture specific register naming into account, handles n-way
8257           comparisons, and supports quoted literals
8258         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
8259
8260 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8261
8262         * src/mcs51/peeph.def: fixed bug #1076940
8263
8264 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
8265
8266         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
8267
8268 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8269
8270         Adding support for replacing ljmps with sjmps in jumptables
8271         generated for switch statements. For now you need to set the
8272         environment variable SDCC_SJMP_JUMPTABLE to enable this.
8273         Now 4 algorithms for mcs51 jumptable generation are used:
8274         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
8275         addresses loaded pc-relative for up to 112 cases and stack-pushing
8276         target addresses loaded with offset from dptr for up to 256 cases.
8277
8278         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
8279         * src/mcs51/main.c: adapted constants for switch table generation
8280         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
8281
8282 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
8283
8284         * device/lib/printf_large.c (_print_format): fixed bug 1073386
8285         * support/regression/tests/bug1057979.c: added test for bug 1073386
8286
8287 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
8288
8289         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
8290         compilers
8291
8292 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
8293
8294         * src/pic16/device.h,
8295         * src/pic16/genarith.c,
8296         * src/pic16/glue.c,
8297         * src/pic16/main.c,
8298         * src/pic16/pcode.c: applied patches #1068154 and #1070213
8299
8300 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
8301
8302         Large cummulative patch for pic16 port.
8303         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
8304         to call when a stack overflow occurs,
8305         * (malloc.h): added CVS Id tag,
8306         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
8307         variable,
8308         * added libc directory. The current version of LibC contains string
8309         functions, ctype functions and macros and some functions of the
8310         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
8311         be extensively tested in the future. Standard disclaimer here.
8312         Library is not automatically build yet. But one can build it by
8313         invoking 'make' inside the libc directory.
8314         * added ADC library under libio. Preliminary version yet.
8315
8316         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
8317         * src/pic16/gen.c (aopForRemat): asmop size is filled by
8318         aopForRemat() now and not by pic16_aopOp(),
8319         * (pic16_popGetTempReg): removed warning messgae when allocating
8320         temporary registers, its a buggy feature and will be removed,
8321         * (pic16_popGet): set register instance field in AOP_CRY,
8322         * (pic16_outBitC): fixed for results in size greater than 1,
8323         * (genUminusFloat): fixed for pic16, ported code from mcs51,
8324         * (pic16_storeForReturn): optimized return of 0,
8325         * (genCmp): experimental code for new genCmp which uses PIC18's
8326         special compare&skip instructions. Initial tests fail some times
8327         with variables grater than 1 byte in size, so new code is disabled,
8328         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
8329         a single bit,
8330         * (genCast): began a fix to optimize the casting of a bit to another
8331         bit, now assigning a bitfield to another bitfield will fail, sorry,
8332         * src/pic16/main.c: disabled the use of lr-support feature,
8333         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
8334         * added some function prototypes, added function _debugf prototype,
8335         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
8336         bits with offset (case PO_GPR_BIT),
8337         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
8338         command line,
8339         * (isBankInstruction): modified to return 0 for no banking instruction,
8340         and 1 for banking instruction,
8341         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
8342         caused stop processing pCodes after a inline assembly block,
8343         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
8344         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
8345         registers when it shouldn't,
8346         * src/pic16/ralloc.c (allocReg): add preliminary support for
8347         supporting a limited set of temporary registers,
8348
8349 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8350
8351         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
8352           genDataPointerSet): ensure assignments always copy in MSB to LSB
8353           order,
8354           (loadRegFromAop): recognize CLRH optimization,
8355           (genFunction): optimize RECEIVE iCodes in reentrant functions
8356
8357 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8358
8359         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
8360           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
8361           selected.
8362         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
8363         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
8364           contiguous with data
8365
8366 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8367
8368         * device/lib/_gptrget.c (_gptrget),
8369         * device/lib/_gptrgetc.c (_gptrgetc),
8370         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
8371           instead of sjmp to ret
8372         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
8373           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
8374
8375 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
8376
8377         * .version: bumped version to 2.4.7
8378         * device/lib/_gptrget.c (_gptrget): is now _naked
8379         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
8380         * device/lib/_gptrput.c (_gptrput): is now _naked
8381         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
8382           (createFunction): fixed xstack
8383         * src/SDCCglue.c (emitMaps): set allocation required for bit area
8384         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
8385           or bit either,
8386           (geniCodeCritical): store original interrupt state in an iTemp bit
8387           var unless stack-auto
8388         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
8389         * src/SDCCmain.c (setIncludePath): added include/target to search path
8390         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
8391         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
8392           prototype,
8393           (processFuncArgs): put bit vars in bit area
8394         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
8395           unsaveRBank): fixed xstack,
8396           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
8397           (genFunction, genEndFunction): fixed xstack,
8398           (genAssign): optimization don't walk backwards through mem
8399         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
8400         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
8401         * support/regression/Makefile: also make library (for stack-auto) when
8402           making "all" and added "test-mcs51-xstack-auto"
8403         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
8404         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
8405         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
8406         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
8407         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
8408           make-library by MAKE_LIBRARY
8409         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
8410           regression tests for xstack
8411         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
8412         * support/regression/tests/critical.c: test for critical on mcs51
8413
8414 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8415
8416         * support/regression/ports/ucz80/spec.mk: use include and lib files from
8417           built version of sdcc instead of installed version
8418
8419 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
8420
8421         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
8422         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
8423           vprintf.c now
8424         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
8425         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
8426           WARNING: remove device/lib/build/z80/printf.o by hand when
8427           updating from previous build!
8428         * device/lib/z80/printf.c: updated comment
8429         * support/regression/tests/bug1057979.c: test all ports now
8430         * support/regression/tests/bug1065458.c: file added
8431
8432 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8433
8434         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
8435           *_start and *_end symbols for static functions
8436
8437 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
8438
8439         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
8440           and search crt0.o in all library paths,
8441           (setIncludePath): proper handling of --nostdinc,
8442           (setLibPath): proper handling of --nostdlib
8443         * support/regression/Makefile,
8444         * support/regression/ports/ds390/spec.mk,
8445         * support/regression/ports/gbz80/spec.mk,
8446         * support/regression/ports/hc08/spec.mk,
8447         * support/regression/ports/mcs51/spec.mk,
8448         * support/regression/ports/mcs51-large/spec.mk,
8449         * support/regression/ports/mcs51-stack-auto/spec.mk,
8450         * support/regression/ports/z80/spec.mk: use include and lib files from
8451           built version of sdcc instead of installed version
8452         * doc/sdccman.lyx: fixed typo in --nostdinc
8453
8454 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
8455
8456         * src/pic/pcode.c,
8457         * src/pic/device.c,
8458         * src/pic/ralloc.c,
8459         * src/pic/gen.c : added support to generate code for struct bit fields.
8460
8461 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
8462
8463         * as/xa51/xa_version.h,
8464         * device/include/errno.h,
8465         * device/include/regc515c.h,
8466         * device/lib/_itoa.c,
8467         * device/lib/_ltoa.c,
8468         * device/lib/ser_ir_cts_rts.c,
8469         * sim/ucsim/xa.src/glob.cc,
8470         * sim/ucsim/xa.src/inst_gen.cc,
8471         * sim/ucsim/xa.src/xa_bit.cc,
8472         * sim/ucsim/xa.src/xa_sfr.cc,
8473         * sim/ucsim/z80.src/inst_dd.cc,
8474         * sim/ucsim/z80.src/inst_fdcb.cc,
8475         * support/scripts/keil2sdcc.pl,
8476         * src/pic16/pic16.dsp,
8477         * src/pic16/pic16a.dsp: corrected cvs line endings
8478         * device/lib/printf_large.c: fixed bug 1057979
8479         * src/pic16/gen.c: fixed non-C standard code
8480         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
8481         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
8482         * support/regression/ports/mcs51/support.c: reload T1 asap
8483         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
8484           pdata use and clear idata startup behaviour
8485         * support/regression/tests/bug1057979.c: added
8486
8487 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
8488
8489         * device/examples/ds390/ow390/ad26.h,
8490         * device/examples/ds390/ow390/cnt1d.h,
8491         * device/examples/ds390/ow390/crcutil.c,
8492         * device/examples/ds390/ow390/ownet.h,
8493         * device/examples/ds390/ow390/owsesu.c,
8494         * device/examples/ds390/ow390/swt12.h,
8495         * device/examples/ds390/ow390/swtoper.c,
8496         * device/examples/ds390/ow390/temp10.h,
8497         * device/examples/ds390/ow390/thermodl.c,
8498         * device/examples/ds390/tinitalk/tinitalk.dsp,
8499         * device/examples/ds390/tinitalk/tinitalk.dsw,
8500         * device/examples/mcs51/clock/hw.h,
8501         * device/examples/mcs51/simple2/go.bat,
8502         * device/examples/serialcomm/windows/serial.h,
8503         * device/examples/xa51/dummy.c,
8504         * device/examples/xa51/hello.c,
8505         * device/include/80c51xa.h,
8506         * device/include/at89x051.h: corrected cvs line endings
8507
8508 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
8509
8510         * src/pic16/main.c (options): added command line --gstack, to trace
8511         stack over/under flows,
8512         * added pragma 'wparam' to allow passing first byte of function
8513         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
8514         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
8515         call to __gstack_test function and sets up the symbol as extern,
8516         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
8517         * popaop): added call to pic16_testStackOverflow,
8518         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
8519         wparamList list,
8520         * (genCall, genPcall): now all parameters are passed via stack
8521         except in functions that are pass to wparam pragma in which WREG is
8522         used too,
8523         * (genPcall): REENTRANT flag is checked to see if variable prototype
8524         contains reentrant keyword, don't call a non-reentrant function, via
8525         a reentrant function pointer or vice versa, functions are never
8526         passed via WREG,
8527         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
8528         D.Winkler,
8529         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
8530         SIGSEGV when accessing a NULL register stucture,
8531         * (pic16_printGPointerType): modified to handle UPPER modifier for
8532         function initializers, changed prototype of function to simpler one,
8533         * (pic16_printIvalFuncPtr): check to see if function is already
8534         added in externs list,
8535         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
8536         optimized a move from W to SFR with a move to the same register
8537         later after a CALL,
8538         * device/lib/pic16/debug: NEW directory, contains debug features
8539         which are enabled when linking with libdebug.lib, currently command
8540         line option --gstack enables stack pointer tracing for over/under
8541         flow, corresponding sources are in debug/gstack
8542
8543 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
8544
8545         * doc/sdccman.lyx: updated SDCC version,
8546         * (PIC16 port): update list of command line options,
8547         * src/pic16/device.h (structure pic16_options_t): added field gstack
8548         to enable stack overflow tracing on push/pops,
8549         * src/pic16/device.c (statistics structure): added statistics
8550         structure,
8551         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
8552         pic16_dump_int_registers): increase statistics counters for each
8553         * variable which is encountered
8554         * (pic16_dump_usection): emit each .udata variable to its own udata
8555         section,
8556         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
8557         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
8558         parameters via stack, otherwise use old scheme,
8559         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
8560         assembler output file,
8561         * src/pic16/main.c: added command line options --gstack to enable
8562         push/pop tracing for stack overflow,
8563         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
8564         instructions): added size of each instruction,
8565         * (pic16_countInstruction): estimate size of instructions in
8566         the_pFile list, inline assembly blocks are not counted,
8567         * (pic16_FixRegisterBanking): trace previous register usage, when
8568         banksel optimizations is greater than 0, don't emit a redudant
8569         banksel directive,
8570
8571 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
8572
8573         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
8574         * src/pic16/ralloc.c : applied same fix for pic16.
8575         * src/pic/gen.c : tidied it up a little.
8576
8577 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8578
8579         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
8580         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
8581
8582 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8583
8584         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
8585
8586 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8587
8588         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
8589         non-reentrant function __modsint in the interrupt function (thus
8590         corrupting math operations during serial I/O)
8591         * device/lib/ser_ir.c: as above, changed buffersize
8592         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
8593         256.c,d for zeroing
8594         * doc/Makefile: added option -t for rsync
8595
8596 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8597
8598         * src/SDCCast.h (struct ast),
8599         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
8600
8601 2004-10-20 Borut Razem <borut.razem AT siol.net>
8602
8603         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
8604         package
8605
8606 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
8607
8608         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
8609         makefile targets,
8610         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
8611         support functions to replace long sequences of MOVFF's from access
8612         bank registers to stack and vice versa,
8613         * src/pic16/device.h: added new field opt_flags, where optimization
8614         flags can be set to enable certain features,
8615         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
8616         * pBlock, (genFunction, genEndFunction): surroung loop for
8617         saving/loading used registers in stack with PC_INFO pCodes,
8618         INF_LREGS. Code in between can then be optimized by pCode optimizer
8619         to support function calls,
8620         * (genDataPointerSet): fixed bug which loaded float fields in
8621         structures with corrupt data,
8622         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
8623         in a standard way debug info on stderr. Feature used for developing
8624         and debugging only,
8625         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
8626         obsolete chunks of code,
8627         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
8628         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
8629         * pic16/src/pcode.c (pic16_newpCodeInfo,
8630         * (pic16_newpCodeOpLocalRegs),
8631         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
8632         feature,
8633         * (pic16_pCodeConstString): printing of the initial value of a
8634         symbol as a comment is inhibited since parsing was already done by
8635         copyStr and output is corrupt,
8636         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
8637
8638 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8639
8640         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
8641
8642 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
8643
8644         * as/mcs51/lkarea.c: removed old K&R style,
8645           (lnksect): changed check on boundary error,
8646           (lnksect2): changed check on boundary error,
8647           (lnksect2): extend XSTK to end of page if size = 1
8648         * as/mcs51/lkmain.c: removed old K&R style,
8649           (Areas51): create l_IRAM symbol
8650         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
8651         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
8652           model-mcs51-stack-auto, added model-mcs51-xstack-auto
8653         * device/lib/_mullong.c: added version to be compiled with xstack
8654         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
8655         * device/lib/mcs51/crtxclear.asm: clear pdata as well
8656         * device/lib/mcs51/crtxstack.asm: fixed comment
8657         * src/SDCCglue.c: maxInterrupts defaults to 0,
8658           (emitMaps): added pdata,
8659           (createInterruptVect): (re)moved default,
8660           (glue): added pdata,
8661           (glue): moved __start__xstack to XSTK with default size 1
8662         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
8663           and options.float_rent when options.stackAuto is set,
8664           (linkEdit): only write XDATA_NAME if provided on command line
8665         * src/SDCCmem.h,
8666         * src/SDCCmem.c: added pdata
8667         * src/port.h: added pdata_name to PORT
8668         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
8669           (saveRegisters, unsaveRegisters): removed usage of B,
8670           (genMinus): fixed accumulator clash,
8671           (genJumpTab): added comment, this needs another look
8672         * src/mcs51/gen.c: added check for "B in use" paranoia,
8673           added pushB() and popB()
8674         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
8675           chance
8676         * src/avr/main.c,
8677         * src/ds390/main.c,
8678         * src/hc08/main.c,
8679         * src/mcs51/main.c,
8680         * src/pic/main.c,
8681         * src/pic16/main.c,
8682         * src/xa51/main.c,
8683         * src/z80/main.c: (reset_regparms) made void parameter explicit and
8684           added PSEG (PAG,XDATA) or NULL to port specifier
8685         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
8686         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
8687           (_mcs51_genInitStartup): removed __start__xstack equ,
8688           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
8689         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
8690         * src/z80/gen.c (_rleAppend): fixed warnings
8691         * support/regression/tests/zeropad.c: added pdata test
8692         * .version: bumped to 2.4.6
8693
8694 2004-10-17 Borut Razem <borut.razem AT siol.net>
8695
8696         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
8697         as a part of nightly build
8698
8699 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
8700
8701         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
8702         WREG holds the first byte function parameters,
8703         * (aopForSym): take special case for symbols which are in FARSPACE
8704         but in CODESPACE too,
8705         * (assignResultValue): modified to take into account _G.useWreg,
8706         * (genCall): don't use wreg for parameter passing when function is
8707         declared as reentrant, too, added optimization INCF to stack
8708         pointer when stack parameter count is 1,
8709         * (genFunction, genEndFunction): refurnished and fixed to not using
8710         wreg for passing parameters when function has varargs or is
8711         reentrant, fixed bug with symbol name compare for generating
8712         functions in absolute address,
8713         * (pic16_storeForReturn): refurnished,
8714         * (genCmp): began writing a new version of the function, not ready
8715         yet, therefore it is disabled,
8716         * (genAssign): do not read code memory when assigning a function to
8717         a pointer function,
8718         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
8719         array of characters, not pointer,
8720         * (pic16initialComments): in debug mode emit an .ident directive for
8721         the assembler,
8722         * (_process_pragma): emit a new warning type (internal to pic16)
8723         when setting stack to default length, emit a similar warning when
8724         placing a function at absolute address and address is not word aligned
8725         * (_pic16_parseOptions): added 'return TRUE' statement,
8726         * (_pic16_linkEdit): if compiling a source, then add the source's
8727         file object, first in the list of objects to link,
8728
8729 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
8730
8731         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
8732         * src/pic/main.c : removed VC warning.
8733         * src/pic/gen.c : changed comment.
8734
8735 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
8736
8737         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
8738         reference to a deprecated symbol _GPTRREG was causing failure to
8739         link. Thanks G. M. Gallant for the info.
8740
8741 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
8742
8743         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
8744         comments for Bugs item #954788.
8745
8746 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
8747
8748         * src/pic16/device.c (pic16_dump_gsection,
8749         * pic16_groupRegistersInSection): handle symbols declared to be in
8750         access bank differently,
8751         * src/pic16/gen.c (struct _G): added field resDirect,
8752         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
8753         send values read from stack directly to result and don't allocate
8754         temporary values,
8755         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
8756         same registers,
8757         * (pic16_sameRegsOfs): NEW,
8758         * (freeAsmop): if _G.resDirect is set then do not mark registers as
8759         free because they were not allocated from temporary pool,
8760         * pic16_popRegFromString): workaround to fix a problem with
8761         allocating variables twice or never,
8762         * (genGenPointerGet): using PRODL instead of FSR0H,
8763         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
8764         instead of FSR0H,
8765         * (genAssign): take advantage of the _G.resDirect flag,
8766         * (genCast): around line 11844, use mov2f instead of directly
8767         MOVFF'ing between operands to account for literal values,
8768         * src/pic16/genutils.c: some new debug functions for gpsim have been
8769         added,
8770         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
8771         float with integer part only,
8772         * src/pic16/main.c (_process_pragma): handle pragma udata access to
8773         place variables in access bank
8774         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
8775         updated sources to reflect recent changes in gen.c
8776
8777 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
8778
8779         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
8780         sources that searched for headers in installation path, now the
8781         device/include/pic16 is used,
8782         * src/pic16/glue.c (pic16glue),
8783         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
8784         .line directives if not in debug mode, this suppresses assembler's
8785         warnings for ignored directives
8786
8787 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
8788
8789         * src/port.h: made reset_regparms prototype void parameter explicit.
8790         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
8791         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
8792         * doc/sdccman.lyx: documented warning disabling and how to use
8793           printf_large to make it print floats.
8794         * device/include/stdbool.h: NEW
8795         * device/lib/_atof.c,
8796         * device/lib/_divuint.c,
8797         * device/lib/_divulong.c,
8798         * device/lib/expf.c,
8799         * device/lib/printf_large.c,
8800         * device/lib/sincosf.c,
8801         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
8802         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
8803           a completely reentrant lib.
8804
8805 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
8806
8807         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
8808         * device/include/pic16/stdio.h: fixed bug with colon
8809
8810 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
8811
8812         * device/include/pic16/stdio.h,
8813         * device/include/pic16/stdlib.h,
8814         * device/include/pic16/math.h: NEW
8815         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
8816         declared as _naked to reduce overhead
8817         * device/lib/Makefile.in (target port-specific-objects-pic16):
8818         changed * to *.* so to ignore the CVS directory,
8819         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
8820         stacked variables back in stack,
8821         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
8822         corruption
8823
8824 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
8825
8826         * .version: bumped version number to 2.4.5
8827         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
8828         * support/Util/SDCCerr.c (messages structure): added entry for
8829         W_POSSBUG2
8830
8831         Large cumulative patch for pic16 port and libraries.
8832         * device/include/pic16/sdcc-lib.h,
8833         * device/include/pic16/stdarg.h,
8834         * device/include/asm/pic16/features.h,
8835         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
8836         * device/include/pic16/float.h: changes reentrant keyword with
8837         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
8838         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
8839         updated target build-libraries to include objects from gptr,
8840         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
8841         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
8842         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
8843         all function headings,
8844         * src/SDCCmain.c: added global parameter userIncDirsSet,
8845         * (parseCmdLine): when option -I is encountered add directory to
8846         userIncDirsSet too,
8847         * src/version.awk: added space between control and long,
8848         * src/pic16/NOTES: added some notes for the port,
8849         * src/pic16/gen.c: added prototype for mov2fp function,
8850         * (fReturnpic16[]): properly named return value registers,
8851         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
8852         * (aopForSym): added code to handle symbols with onStack flag set,
8853         symbols onStack are allocated PTRSIZE bytes,
8854         * (aopFreeAsmop): handles special case where asmops are stack objects,
8855         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
8856         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
8857         added argument lock to trace flaws in allocating temporary registers
8858         when developing port,
8859         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
8860         * (pic16_popRegFromString): reenabled allocating a direct register
8861         from string,
8862         * (assignResultValue): various beautifications,
8863         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
8864         referenced function argument,
8865         * (genIpush): reenabled to allow stacked arguments, handles only
8866         ic->parmPush iCodes,
8867         * (genCall, genPcall): major changes to allow for variable argument
8868         functions, fixed a bug with falsely restoring stack pointer after
8869         returning from call,
8870         * (genFunction): pending code for critical function,
8871         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
8872         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
8873         * (genNearPointerGet): fixed bug with indirect reading, was always
8874         reading from INDF0
8875         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
8876         pointers,
8877         * (genAddrOf): rewrote code to take address of a stacked function parameter
8878         * (genCast): fixed casting to generic pointer type,
8879         * src/pic16/gen.h: added AOP_STA,
8880         * (struct asmop): added field stk,
8881         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
8882         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
8883         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
8884         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
8885         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
8886         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
8887         generic pointers,
8888         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
8889         and library paths,
8890         * (pic16_port structure): generic pointer size is set to 3,
8891         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
8892         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
8893         compiler warning,
8894         * src/pic16/ralloc.c (allocReg): prevent allocating register when
8895         operand is an iTemp,
8896
8897 2004-09-24 Martin Helmling <mh AT octo-soft.de>
8898
8899         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
8900         * debugger/mcs51/simi.c: addapt new syntax of s51
8901
8902 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
8903
8904         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
8905         * src/pic16/pcode.c: commented out some calls to free() in order to
8906         fix bug #989576,
8907
8908 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8909
8910         * src/SDCCicode.h,
8911         * src/SDCCicode.c (isiCodeInFunctionCall),
8912         * src/avr/ralloc.c (selectSpil),
8913         * src/pic/ralloc.c (selectSpil),
8914         * src/pic16/ralloc.c (selectSpil),
8915         * src/ds390/ralloc.c (selectSpil),
8916         * src/hc08/ralloc.c (selectSpil),
8917         * src/xa51/ralloc.c (selectSpil),
8918         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
8919         stack in the middle of a function call sequence (fixes bug #1020268)
8920         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
8921         costs associated with the minimum switch case.
8922
8923 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8924
8925         * src/SDCC.lex: fixed bug #1030549
8926
8927 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8928
8929         * src/SDCCcse.h (struct cseDef),
8930         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
8931         over a function call if the CSE is derived from a symbol whose
8932         address has been taken (fixes bug #1029883)
8933         * support/regression/tests/bug-1029883: a new regression test for
8934         this bug
8935
8936 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8937
8938         * src/hc08/gen.c (emitinline): fixed bug #1029778
8939         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
8940         to a cast object is no longer a syntax error ("fixes" bug #1030006,
8941         and starts toward RFE #905167)
8942
8943 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
8944
8945         * src/pic16/gen.c (mov2f): New function to move an operand to
8946         another without considering if it is a literal or a register,
8947         * (pic16_sameRegs): don't check if they are both AOP_REG,
8948         * (AccRsh): removed andmask=0 lines,
8949         * (genLeftShift): duplicated to be improved in future versions,
8950         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
8951         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
8952         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
8953         * (pic16initMnemonics): added initialization for POC_INFSNZW,
8954         * (insertBankSwitch): fixed inserting banksel directives algorithm
8955         for instructions that follow a skip instruction, this fixes a report
8956         for broken subtraction code generation,
8957         * src/pic16/ralloc.c (deassignLRs): do not free register if current
8958         iCode is a left op, just in case result and right share the same
8959         registers
8960
8961 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8962
8963         * src/hc08/main.c,
8964         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
8965         preservation of HX
8966         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
8967         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
8968         on 2004-09-12; it was buggy
8969
8970 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
8971
8972         * src/SDCCsymt.h: removed RESULT_CHECK
8973         * src/SDCCast.c,
8974         * src/SDCCglue.c,
8975         * src/SDCCval.c,
8976         * src/pic/glue.c,
8977         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
8978
8979 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
8980
8981         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
8982         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
8983         configuration values no more rejected by compiler, they are assigned
8984         to configuration registers with a warning message instead,
8985         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
8986         the for-loop so last conf register is emitted too,
8987         * (_pic16_initPaths): link library libsdcc.lib by default,
8988         * (_hasNativeMulFor): modified test for multiplication according to
8989         Raphael Neider's remarks. Integer multiplication is also done with
8990         support functions,
8991         * device/include/pic16/pic18fregs.h: corrected type error in while
8992         testing and including 18f6720 header file
8993
8994 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
8995
8996         * src/pic16/device.h (pic16_options): removed field use_crt,
8997         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
8998         until an optimization to handle single bits is added,
8999         * (pic16_loadFSR0): moved before genUnpackBits,
9000         * (genAnd): some white lines removed,
9001         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
9002         leave_reset flags in pic16_options when using crt modules,
9003
9004 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
9005
9006         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
9007           for bugs 898889 & 979599. Also used some safer print instructions.
9008
9009 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
9010
9011         * src/pic16/device.h (pic16_options_t): added field use_crt,
9012         crt_name, no_crt,
9013         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
9014         catch a probable future bug,
9015         * src/pic16/gen.c: aopIdx function commented out,
9016         * (genAssign): commented out old code which used aopIdx,
9017         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
9018         code, added if conditionals to take into account the --use-crt
9019         command line options,
9020         * src/pic16/main.c (pic16_optionsTable): added new command line
9021         options, --use-crt= and --no-crt,
9022         * (_pic16_linkEdit): now the proper crt object is added in the
9023         linker command line except than when --no-crt is specified,
9024         * src/pic16/pcode.c,
9025         * src/pic16/pcode.h: added some structures and functions for a new
9026         optimization scheme to compansate for instruction overhead between
9027         same iCodes, this scheme is currently under development and is not
9028         working in any way,
9029         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
9030         to && operator,
9031         * device/lib/pic16/startup/crt0i.c,
9032         * device/lib/pic16/startup/crt0iz.c: added global char variable
9033         __uflags to force the generation of an idata section
9034
9035 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
9036
9037         * doc/Makefile,
9038         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
9039         * doc/sdccman.lyx: updated sdcc version to 2.4.4
9040
9041 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9042
9043         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
9044         Frieder) and clarified the default code optimization mode
9045
9046 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9047
9048         * src/SDCC.lex (doPragma, process_pragma),
9049         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
9050         "opt_code_size", and "opt_code_balanced"
9051         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
9052         regrouped options by category, added support for category headers
9053         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
9054         and "--opt-code-size"
9055         * doc/sdccman.lyx: documented these new options and pragmas
9056         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
9057         preference into account
9058
9059 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
9060
9061         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
9062           geniCodePreDec): Fixed bug 904237 by generating a warning
9063         * src/SDCCerr.h,
9064         * src/SDCCerr.c: added warning W_SIZEOF_VOID
9065
9066 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
9067
9068         * src/pic/device.c : When no max ram set validate full memory range.
9069         * src/pic/pcode.c,
9070         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
9071
9072 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
9073
9074         * device/lib/_gptrget.c,
9075         * device/lib/_gptrput.c: updated comment
9076         * device/lib/calloc.c,
9077         * device/lib/free.c,
9078         * device/lib/malloc.c,
9079         * device/lib/realloc.c: added LGPL, made them reentrant-safe
9080         * src/SDCCcse.c (cseBBlock),
9081         * src/SDCCicode.c (printOperand, geniCodeArray),
9082         * src/SDCCicode.h (struct operand): fixed bug 868103
9083         * support/regression/tests/bug-868103.c: added
9084         * src/SDCCast.c (searchLitOp),
9085         * src/SDCCcse.h (struct cseDef),
9086         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
9087         * src/SDCCicode.h (struct operand),
9088         * src/SDCCsymt.h (struct sym_link),
9089         * src/avr/gen.c (hasInc),
9090         * src/ds390/gen.c (hasInc),
9091         * src/hc08/gen.c (genPlusIncr, hasInc),
9092         * src/mcs51/gen.c (hasInc),
9093         * src/pic16/glue.c (pic16_printIvalChar),
9094         * src/pic16/ralloc.c (regWithIdx),
9095         * src/xa51/gen.c (hasInc) : removed warnings
9096         * src/SDCCast.c (createBlock): added comment ???
9097         * src/hc08/ralloc.c: updated comments
9098
9099 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9100
9101         * doc/sdccman.lyx: updated section on switch statements, added
9102         section about semaphore locking
9103         * doc/Makefile: added option -info for latex2html
9104         * device/lib/_gptrget.c,
9105         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
9106
9107 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
9108
9109         * src/pic/device.h,
9110         * src/pic/device.c,
9111         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
9112          maxram is less than 0x100.
9113
9114 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
9115
9116         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
9117
9118 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9119
9120         * src/port.h,
9121         * src/mcs51/main.c,
9122         * src/ds390/main.c,
9123         * src/z80/main.c,
9124         * src/hc08/main.c,
9125         * src/pic/main.c,
9126         * src/pic16/main.c,
9127         * src/avr/main.c,
9128         * src/xa51/main.c
9129         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
9130         a jump table is the best form for a switch statement, including
9131         automatic insertion of missing cases to make the case range
9132         continuous. Developed in collaboration with Frieder Ferlemann.
9133
9134 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9135
9136         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
9137         accumulator result if it needs sign extension
9138
9139 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9140
9141         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
9142
9143 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9144
9145         * device/lib/gbz80/printf.c,
9146         * device/lib/z80/printf.c: removed define for NULL
9147
9148 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9149
9150         * as/xa51/xa_link.c,
9151         * device/examples/ds390/ow390/ad26.c,
9152         * device/examples/ds390/ow390/cnt1d.c,
9153         * device/examples/ds390/ow390/counter.c,
9154         * device/examples/ds390/ow390/ds2480.h,
9155         * device/examples/ds390/ow390/ds2480ut.c,
9156         * device/examples/ds390/ow390/findtype.c,
9157         * device/examples/ds390/ow390/gethumd.c,
9158         * device/examples/ds390/ow390/owllu.c,
9159         * device/examples/ds390/ow390/ownetu.c,
9160         * device/examples/ds390/ow390/swt12.c,
9161         * device/examples/ds390/ow390/swtloop.c,
9162         * device/examples/ds390/ow390/temp.c,
9163         * device/examples/ds390/ow390/temp10.c,
9164         * device/examples/ds390/ow390/thermo21.c,
9165         * device/examples/ds390/ow390/tinilnk.c,
9166         * device/examples/ds390/ow390/tstfind.c,
9167         * device/examples/serialcomm/windows/serial.cpp,
9168         * device/examples/serialcomm/windows/test_serialcomm.cpp,
9169         * device/include/reg51.h: fixed line endings for cvs
9170
9171 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9172
9173         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
9174         packRegsForAccUse, packRegisters): new accumulator register
9175         packing algorithm
9176         * support/regression/ports/hc08/support.c (_putchar): suppress
9177         warning of unused variable
9178         * src/SDCCicode.c: added SWAP entry to codeTable
9179
9180 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
9181
9182         * device/lib/sprintf.c: forgot to add this file before previous commit
9183
9184 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
9185
9186         * src/pic16/gen.c (genPackBits): added operand right in function
9187         parameters, load result directly if p_type is POINTER (that is
9188         called by genNearPointerSet)
9189         * (genUnPackBits): added operand left in function parameters,
9190         * (genNearPointerGet, genNearPointerSet): prevent the loading of
9191         FSR0 if accessing bitfields,
9192
9193 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
9194
9195         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
9196           _print_format; updated printf, sprintf, vsprintf
9197         * device/include/asm/default/features.h: corrected comment/define
9198         * device/lib/Makefile.in: added sprintf.c
9199         * device/lib/libsdcc.lib: added sprintf module
9200         * device/lib/printf_large.c,
9201         * device/lib/vprintf.c,
9202         * device/lib/sprintf.c: totally refactored printf_large and vprintf
9203           into these 3 files
9204         * support/regression/Makefile: changed ALL_PORTS into a usefull default
9205         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
9206         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
9207           hc08 test
9208         * support/regression/tests/zeropad.c: define idata as data for hc08
9209
9210 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9211
9212         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
9213         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
9214         labels are referenced at least once (even if a reference is not found)
9215         * src/hc08/gen.c (emitcode): set isComment flag for comments
9216         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
9217         loads), rules 6a..6b (optimize jumps to return)
9218
9219 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9220
9221         * device/lib/acosf.c (acosf),
9222         * device/lib/asinf.c (asinf),
9223         * device/lib/atanf.c (atanf),
9224         * device/lib/ceilf.c (ceilf),
9225         * device/lib/cosf.c (cosf),
9226         * device/lib/coshf.c (coshf),
9227         * device/lib/cotf.c (cotf),
9228         * device/lib/fabsf.c (fabsf),
9229         * device/lib/floorf.c (floorf),
9230         * device/lib/log10f.c (log10f),
9231         * device/lib/logf.c (logf),
9232         * device/lib/sinf.c (sinf),
9233         * device/lib/sinhf.c (sinhf),
9234         * device/lib/sqrtf.c (sqrtf),
9235         * device/lib/tanf.c (tanf),
9236         * device/lib/tanhf.c (tanhf),
9237         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
9238         replaced all instances of "reentrant" in the library functions
9239         defined in math.h with this macro.
9240         * support/regression/tests/float_trans.c: reenabled test for hc08
9241
9242 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
9243
9244         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
9245         erroneously deleted
9246
9247 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9248
9249         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
9250         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
9251         multi-byte volatile operands are used
9252         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
9253         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
9254         initialization to area GSINIT0 so that it would always precede
9255         any static initializers in GSINIT
9256         * support/regression/tests/zeropad.c: fixed idata define for hc08
9257         * support/regression/tests/bug-927659.c,
9258         * support/regression/tests/float_trans.c: disabled tests for hc08
9259         pending missing library routines
9260         * .version: increased version number to 2.4.4 - hc08 port now passes
9261         regression tests
9262
9263
9264 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
9265
9266         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
9267         * Makefile.common.in,
9268         * as/Makefile,
9269         * as/hc08/Makefile.in,
9270         * as/mcs51/Makefile.in,
9271         * as/z80/Makefile.in,
9272         * debugger/mcs51/Makefile.in,
9273         * device/include/Makefile.in,
9274         * device/lib/Makefile.in,
9275         * doc/Makefile,
9276         * link/Makefile,
9277         * link/z80/Makefile.in,
9278         * packihx/Makefile.in,
9279         * sim/ucsim/main_in.mk,
9280         * sim/ucsim/avr.src/Makefile.in,
9281         * sim/ucsim/doc/Makefile.in,
9282         * sim/ucsim/gui.src/serio.src/Makefile.in,
9283         * sim/ucsim/hc08.src/Makefile.in,
9284         * sim/ucsim/s51.src/Makefile.in,
9285         * sim/ucsim/xa.src/Makefile.in,
9286         * sim/ucsim/z80.src/Makefile.in,
9287         * src/Makefile.in,
9288         * support/cpp2/Makefile.in,
9289         * support/librarian/Makefile,
9290         * support/makebin/Makefile: added DESTDIR to the install path proposed
9291         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
9292         * doc/sdccman.lyx: added DESTDIR documentation
9293
9294 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
9295
9296         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
9297         instruction for interrupt handlers, use fast returns when returning
9298         from high priority interrupts
9299
9300 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9301
9302         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
9303         code generation
9304         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
9305         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
9306         bugs, ported much of Bernhard's code from mcs51
9307         * src/mcs51/gen.c (genSend),
9308         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
9309         than one when calling a reentrant function
9310         * device/lib/_mullong.c: defined an alternate struct layout for big
9311         endian ports (hc08)
9312
9313 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9314
9315         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
9316         test
9317
9318 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9319
9320         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
9321         are sane and complete before asking the port its prefered parameter
9322         passing method (fixes bug #1017633)
9323         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
9324         and _ret3
9325
9326 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9327
9328         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
9329         problem in bitfields >= 8 bits.
9330
9331 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9332
9333         * src/SDCCsymt.c: undid changes that were not meant to be committed
9334
9335 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9336
9337         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
9338
9339 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9340
9341         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
9342           copied and wrong bit got inverted
9343
9344 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9345
9346         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
9347         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
9348         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
9349         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
9350         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
9351         assignments to bitfields at known addresses
9352         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
9353         reads from bitfields at known addresses
9354         * src/hc08/ralloc.c (packRegisters),
9355         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
9356         genhc08Code): optimize pointer get values used as conditionals
9357         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
9358         and branch
9359
9360 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9361
9362         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
9363         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
9364         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
9365         as conditionals
9366
9367 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9368
9369         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
9370
9371 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9372
9373         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
9374         related problems
9375
9376 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
9377
9378         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
9379
9380 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9381
9382         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
9383         mcs51 port
9384
9385 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
9386
9387         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
9388
9389 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9390
9391         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
9392         cases use more compact code.
9393
9394 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
9395
9396         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
9397
9398 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9399
9400         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
9401
9402 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9403
9404         * src/SDCCsymt.h,
9405         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
9406         parameter of changePointer() from symbol* to sym_link*
9407         * src/SDCCast.c (decorateType): call changePointer() for CAST op
9408         * src/SDCCsymt.c (compareType): void* type is castable to other
9409         pointers, but not necesarily an exact match.
9410         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
9411         is no longer blindly treated as an exact match.
9412         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
9413
9414 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
9415
9416         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
9417
9418 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
9419
9420         * src/pic/gen.c,
9421         * src/pic/pcode.c,
9422         * src/pic/ralloc.h,
9423         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
9424
9425 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
9426
9427         * src/pic/device.c,
9428         * src/pic/device.h,
9429         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
9430
9431 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9432
9433         * src/mcs51/gen.c (emitcode): fixed bug #992819
9434
9435 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
9436
9437         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
9438           there's no need to make it worse
9439
9440 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9441
9442         * src/mcs51/ralloc.c (deassignLR),
9443         * src/ds390/ralloc.c (deassignLR),
9444         * src/hc08/ralloc.c (deassignLR),
9445         * src/z80/ralloc.c (deassignLR),
9446         * src/pic/ralloc.c (deassignLR),
9447         * src/pic16/ralloc.c (deassignLR),
9448         * src/avr/ralloc.c (deassignLR),
9449         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
9450         rlivePoint): fixed another part of bug #971834
9451
9452 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9453
9454         * src/z80/main.c: enabled "critical" keyword
9455         * src/z80/mappings.i,
9456         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
9457         functions (fixes bug #979646)
9458         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
9459
9460 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9461
9462         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
9463           such as c:\mydir.
9464
9465 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
9466
9467         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
9468           doesn't disable too much optimizations
9469
9470 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
9471
9472         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
9473
9474 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
9475
9476         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
9477
9478 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
9479
9480         * src/pic/gen.c tidied up tabs
9481         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
9482         * src/pic/main.c tidied up tabs
9483         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
9484         * src/pic/pcoderegs.c tidied up tabs
9485         * src/pic/ralloc.c tidied up tabs
9486
9487 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
9488
9489         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
9490         to S_FIXED for pic16 port and when symbol is not in level 0,
9491         allocate for S_REGISTER storage class and pic16 port, too,
9492         * src/pic16/device.h: prototype for checkSym,
9493         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
9494         * (pic16_assignConfigWordValue): test the value and the mask to
9495         validate that the value is suitable for the configuration word,
9496         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
9497         collect extern declared symbols, don't emit symbol twice, check
9498         first if symbol is in publics set first,
9499         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
9500         * added command line '--fstack' which enables an experimental
9501         feature for stack access, too buggy to be used yet...
9502         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
9503         * (pic16_allocDirReg): when register has storage class S_REGISTER
9504         allocate in pic16_dynAccessRegs,
9505         * device/include/pic16/pic18f????.h: modified configuration word
9506         naming convention, words started as CONFIG0H but should be CONFIG1H
9507
9508 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
9509
9510         * device/include/mcs51reg.h: fixed bug 970993
9511
9512 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
9513
9514         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
9515         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
9516         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
9517         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
9518         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
9519         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
9520           error/warning numbers,
9521           added function setWarningDisabled()
9522         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
9523         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
9524           _memcmp.c _memmove.c calloc.c realloc.c free.c
9525         * support/regression/tests/malloc.c: added tests for new functionality
9526         * support/regression/tests/zeropad.c: added tests for truncated initializers
9527           and initialized char arrays starting with '\x0'
9528         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
9529
9530 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
9531
9532         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
9533
9534 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9535
9536         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
9537         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
9538         peephole 177.e. Thanks to anonymous
9539
9540 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
9541
9542         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
9543         function isn't used in the source but referenced as a
9544         variable initializer then declare it as extern in .asm file
9545
9546 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
9547
9548         * .version: increased version number to 2.4.3
9549
9550         Adding version extension according to ChangeLog CVS revision
9551         * src/Makefile.in (target all): added dependency 'version.h'
9552         * (rule version.h): added rule to create version.h from ChangeLog,
9553         * (rule dep): added dependency version.h,
9554         * src/version.awk: AWK script to create version.h
9555         * src/SDCCdwarf2.c (dwWriteModule),
9556         * src/SDCCglue.c (initialComments),
9557         * src/SDCCmain.c (printVersionInfo): modified to write after
9558         version string the version extension number,
9559         * src/SDCCutil.c: included "version.h"
9560         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
9561         number,
9562         * src/SDCCutil.h: added prototype for getBuildNumber
9563
9564         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
9565         includeDirsSet, too,
9566         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
9567         const char [] is found in function prototype...
9568
9569         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
9570         moving to WREG with source is already in WREG,
9571         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
9572         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
9573         * (aopForSym): stack'ed symbols are partially supported, added
9574         if-clause to support symbols in FARSPACE,
9575         * (sameRegs): added test for AOP_ACC to see if registers are same,
9576         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
9577         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
9578         * (pic16_popRegFromString): will not allocate a new register if it
9579         doesn't find one by name, bug may have introduced...
9580         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
9581         * (genIpush): revived to use pic16 port's stack,
9582         * (genAddrOf): added incomplete case for stack'ed operand,
9583         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
9584         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
9585         can handle multibyte operands,
9586         * src/pic16/glue.c (pic16_printIval*): some debug info added,
9587         * (pic16initialComments): added message for MPLAB compatibility
9588         mode enabled,
9589         * src/pic16/main.h: prototype for pic16_mplab_comp,
9590         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
9591         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
9592         * (_pic16_linkEdit): NEW, handles link stage, transferred here
9593         because of increased complexity of procedure,
9594         * (_process_pragma): stack pragma changed to format 'stack pos len',
9595         emit symbol '_stack_end' to conform with gplink,
9596         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
9597         to search for register,
9598         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
9599         PO_GPR_REGISTER,
9600         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
9601         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
9602         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
9603         case for PO_GPR_REGISTER,
9604         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
9605         dies, the new era is ahead !...
9606         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
9607         pic16_dynInternalRegs,
9608         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
9609         * (pic16_allocDirReg): minor optimizations and bug fixes,
9610         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
9611
9612         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
9613         load stack and frame pointer with address of 'stack_end' symbol
9614
9615 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
9616
9617         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
9618         without source code but only variable initializers
9619
9620 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
9621
9622         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
9623         external are not declared as extern to reduce overhead while linking
9624
9625 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
9626
9627         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
9628
9629 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
9630
9631         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
9632           Yee Keat for the patch
9633         * src/SDCCast.c (decorateType): fixed bug #979599
9634         * src/ds390/gen.h: removed local fReturnSizeDS390
9635         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
9636         * src/ds390/gen.c (genAnd, genOr, genXor),
9637         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
9638
9639 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
9640
9641         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
9642         add relFilesSet to $3, manipulate $2 to handle linking of object
9643         files without source files in command line,
9644         * device/include/pic16 (all headers): added ID location macros,
9645         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
9646         entries for ID location bytes,
9647         * (pic16_assignIdByteValue): NEW,
9648         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
9649         added field dumpcalltree to pic16_options_t,
9650         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
9651         is used instead of pic16_Gstack_base_addr, check if (ifx) before
9652         emitting rFalseIfx label after check_carry label,
9653         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
9654         pic16_emitDIRegs), NEW
9655         * (pic16glue): dump .calltree file when option --calltree found,
9656         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
9657         * (_pic16_genAssemblerPreamble): emit ID locations after
9658         configuration registers,
9659         * (pic16_linkCmd): modifications of the link command,
9660         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
9661         * (pic16_pCodeInitRegisters): don't init stack registers,
9662         * (pic16_findPrevInstruction): fixed bug,
9663         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
9664         bug with immediate registers,
9665         * (buildCallTree): traces stack push and pop,
9666         * (pct2): dump also stack usage for each function,
9667         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
9668         * (pic16_allocDirReg): various modifications,
9669         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
9670         fixed to 1,
9671
9672 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
9673
9674         * src/pic16/pcode.c: removed buggy double colon
9675
9676 2004-07-01 Borut Razem <borut.razem AT siol.net>
9677
9678         * support/scripts/sdcc.nsi: added include/pic16 to setup
9679
9680 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
9681
9682         * device/lib/Makefile.in: fixed bug in target objects-pic16,
9683         * device/lib/pic16/Makefile: prefixed with dash (-) command under
9684         target 'clean',
9685         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
9686         specific command line arguments. Also added sample lkr script
9687         for placing a variable at a specific memory bank.
9688         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
9689         at a specific memory bank,
9690         * (pic16_dump_isection): fixed bug which caused string literals to
9691         be omitted when dumping idata section,
9692         * (pic16_groupRegistersInSection): added code to handle registers
9693         in specific memory banks,
9694         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
9695         public, all references are renamed too,
9696         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
9697         AOP_DPTR2,
9698         * (pic16_storeForReturn): added case to handle when dest is WREG,
9699         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
9700         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
9701         pic16_rel_udata, check to see if that register is marked as being
9702         a member of a specific memory bank,
9703         * (pic16_printIvalCharPtr): added code to add string literals either
9704         to code or the idata sections,
9705         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
9706         also accept the 'udata' pragma,
9707         * src/pic16/main.h: new structure types sectName and sectSym
9708         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
9709         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
9710         * (pic16_findPrevInstruction): fixed, it returned nothing,
9711         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
9712         instruction combinations,
9713         * (pic16_FixRegisterBanking): heavily reorganised,
9714         * (pic16_AnalyzeBanking): if generating banksel directives is
9715         disabled, then don't call FixRegisterBanking at all,
9716         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
9717         completely removed,
9718         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
9719
9720 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
9721
9722         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
9723         Phuah Yee Keat <yk.phuah AT nestac.com>
9724
9725 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
9726
9727         * src/pic16/glue.c (pic16createInterruptVect): function now emits
9728         correctly the IVT even if it is relocated to some other location
9729
9730 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
9731
9732         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
9733         * device/include/pic16/pic18f2220.h: NEW,
9734         * device/lib/pic16/libdev/pic18f2220.c: NEW,
9735         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
9736         * src/pic16/device.c (struct Pics16): added info for 18f2220,
9737         * src/pic16/device.h (struct pic16_options): added ivt_loc and
9738         nodefaultlibs, ivt_loc is the location of the interrupt vector
9739         table, and nodefaultlibs signs that default libraries should not be
9740         linked in link stage,
9741         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
9742         according to --ivt-loc argument,
9743         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
9744         when pragma stack is found,
9745
9746 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9747
9748         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
9749         256 (range check), 257 (do while), 258.a-f (bit banging
9750         f.e. on 3-wire SPI bus)
9751
9752 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9753
9754         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
9755         variables used exclusively within a loop
9756
9757 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
9758
9759         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
9760
9761 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9762
9763         * src/SDCClrange.c (computeClash): fixed bug #971834
9764
9765 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9766
9767         * src/mcs51/gen.c (genCmp): fixed bug #975903
9768         * src/hc08/gen.c (operandsEqu),
9769         * src/ds390/gen.c (operandsEqu),
9770         * src/z80/gen.c (operandsEqu),
9771         * src/pic/gen.c (operandsEqu),
9772         * src/pic16/gen.c (operandsEqu),
9773         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
9774         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
9775
9776 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9777
9778         * src/SDCCcse.c (cseBBlock): fixed bug #966963
9779
9780 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
9781
9782         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
9783         default case in switch statement,
9784         * glue.c (pic16_initPointer): expr is initialised via decoarteType
9785         to eliminate problem with initialisation of pointers, but problem
9786         still exists,
9787         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
9788         * (emitStaticSegment): removed various lines emitting debug info,
9789         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
9790         added processor registers for utilizing EEPROM,
9791         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
9792         configurable and set 8
9793
9794 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
9795
9796         * .version: increased version number to 2.4.2,
9797
9798         Cumulative patch for pic16 port
9799         * src/pic16/device.c: changed scheme to dump initial values for
9800         variables in idata segment, all print_idata* functions were removed,
9801         now the pic16_printIval* will be called,
9802         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
9803         * _pic16_printPointerType, pic16_printPointerType,
9804         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
9805         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
9806         NEW, similar to the respective functions in SDCCglue.c,
9807         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
9808         way, emitting hex bytes,
9809         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
9810
9811 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9812
9813         * src/avr/ralloc.c (serialRegAssign),
9814         * src/xa51/ralloc.c (serialRegAssign),
9815         * src/pic/ralloc.c (serialRegAssign),
9816         * src/pic16/ralloc.c (serialRegAssign),
9817         * src/hc08/ralloc.c (serialRegAssign),
9818         * src/z80/ralloc.c (serialRegAssign),
9819         * src/ds390/ralloc.c (serialRegAssign),
9820         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
9821
9822 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9823
9824         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
9825         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
9826
9827 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
9828
9829         Cumulative patch for pic16 port:
9830         * src/pic16/device.h (typedef PIC16_device) modified fields for
9831         defining microcontrollers,
9832         * src/pic16/device.c: added new info for all devices in Pics16 array,
9833         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
9834         to be optimised out by the pCode optimiser,
9835         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
9836         specially, bug reported by G.M. Gallant,
9837         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
9838         as force'd so that cannot be optimised out by pCode optimiser,
9839         * src/pic16/pcode.c,
9840         * src/pic16/pcodepeeph.c,
9841         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
9842         they are disabled by default, but can be enabled explicit with
9843         command argument --denable-peeps, for testing,
9844         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
9845         --pomit-ivt in COMPILE_FLAGS
9846
9847 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
9848
9849         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
9850           compilation on MSVC
9851
9852 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
9853
9854         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
9855
9856 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9857
9858         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
9859         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
9860
9861 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
9862
9863         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
9864         would only assign 0x300001 register.
9865
9866 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
9867
9868         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
9869         in COMPILE_FLAGS. Thanks to G. Gallant for report.
9870
9871 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9872
9873         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
9874         for ds80c400
9875         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
9876         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
9877         added peephole 254 (left shift), 255 (jump table)
9878
9879 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
9880
9881         * device/lib/Makefile.in: removed comment line with model-pic16,
9882         * (target port-specific-objects-pic16): the libraries and objects
9883         are copied to the build directory form the device/lib/pic16/bin
9884         directory
9885
9886         Cumulative patch concerning pic16 port:
9887         * library directory has been re-organized,
9888         * added support for PIC18F1220,
9889         * added headers and library sources for chips 18f1220,18f6520,
9890         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
9891
9892         * configuration registers setting has changed, now each supported
9893         device has a complete description of the registers it uses,
9894         * all initialisations are moved to idata sections, these section
9895         can be absolute or relocatable,
9896         * fixed initialisation of codespace variables,
9897         * fixed warning about PCLATU and gpsim,
9898         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
9899         * (genAssign): use table reads when assigning from variables in codespace,
9900         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
9901         char/int variables placed in codespace,
9902         * (pic16_emitConfigRegs): NEW, emits a list with configuration
9903         registers set in .asm file, no need for --pomit-config-words anymore,
9904         * (pic16glue): some 8051 legacy segments are commented out
9905         (to be removed completely),
9906         * added support for alternative assembler and linker with --asm=
9907         and --link= command line arguments,
9908         * peepholes are disabled automatically in the port, no need to
9909         specify on command line,
9910         * port supports natively char/int/long multiplication, but converts
9911         all divisions to support functions,
9912         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
9913         to the file set in variable $2,
9914         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
9915         strings in ASCII format and not in hex,
9916         * ralloc.c (serialRegAssign): added a triplet of conditional calls
9917         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
9918         allocate proper register if iCodes aren't temporary,
9919
9920 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
9921
9922         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
9923
9924 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
9925
9926         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
9927         is commented out
9928
9929 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9930
9931         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
9932         computed address is reused
9933         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
9934         multi-byte bitfields
9935
9936 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
9937
9938         * src/z80/gen.c: (genArrayInit): must check for pointers too
9939
9940 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
9941
9942         * support/regression/tests/zeropad.c: never meant to commit the
9943           nestedstruct test: removed, added check for GCC version
9944
9945 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
9946
9947         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
9948         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
9949         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
9950           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
9951           bugs 928906 and 954082 half-empty initializers
9952         * src/SDCCsymt.h,
9953         * src/SDCCsymt.c (getAllocSize): added for above fix
9954         * src/z80/gen.c (genArrayInit): fixed bug 741044
9955         * support/regression/tests/zeropad.c: added tests
9956
9957 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
9958
9959         * src/pic16/device.c (pic16_dump_section): corrected bug which
9960         caused some symbols of the libraries to be misplaced
9961
9962 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
9963
9964         * src/pic16/glue.c,
9965         * src/pic16/ralloc.h,
9966         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
9967         to fix conflict with pic port
9968
9969 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
9970
9971         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
9972         externs configuration variables,
9973         * src/pic16/ralloc.h,
9974         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
9975         prototype in header, commented out some debug messages
9976
9977 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
9978
9979         * src/pic16/glue.c,
9980         * src/pic16/main.c,
9981         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
9982         for gpasm COFF object generation. Thanks to D. Hawkins for
9983         his patch info
9984
9985 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9986
9987         * src/ds390/main.c,
9988         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
9989         Brock for spotting this)
9990         * src/ds390/gen.c (genEndFunction),
9991         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
9992         interrupt handler and critical. Disable push/pop optimizations when
9993         peephole optimizations disabled.
9994
9995 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
9996
9997         Updated pic16 library sources and headers.
9998         * device/lib/pic16/pic18f*/ ,
9999         * device/include/pic16/*.h: modified to handle structured SFR
10000         definitions
10001
10002 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
10003
10004         * src/port.h (PORT structure): added hook initPaths, now each
10005         port can declare its own default search paths,
10006         which can been seen with the --print-search-dirs option,
10007         see pic16 port for example,
10008         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
10009         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
10010         * (doPrintSearchDirs): NEW, replaces in a central manner the
10011         printing of search dirs which was split in set*Paths functions,
10012         * (main): added call to port->initPaths and doPrintSearchDirs,
10013         * src/avr/main.c,
10014         * src/ds390/main.c,
10015         * src/hc08/main.c,
10016         * src/izt/i186.c,
10017         * src/izt/tlcs900h.c,
10018         * src/mcs51/main.c,
10019         * src/pic/main.c,
10020         * src/pic16/main.c: modified port structures to reflect addition of
10021         initPaths hook,
10022
10023         * src/pic16/device.c (regCompare): registers are finally sorted by name,
10024         * (pic16_dump_section): for registers in same address reserve memory once,
10025         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
10026         to no_banksel,
10027         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
10028         result is greater in size than right or left,
10029         * (pic16_genUMult8X8_8): there are some cases where the result can
10030         be 16 bits size, so handle these,
10031         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
10032         * (pic16_outBitC): modified to emit pcodes,
10033         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
10034         or not,
10035         * (genDivOneByte): implemented algorithm to divide 8-bits,
10036         * (genCmp): uncommented goto, but issues still exist,
10037         * (genAnd): fixed a bug with variables >8bits,
10038         * (genPackBits): optimization added that uses BCF/BSF to change a
10039         single bit,
10040         * (genAssign): fixed bug when assigning floating point literals,
10041         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
10042         __sdcc_gsinit_startup label,
10043         * src/pic16/main.c (_pic16_init): removed search directory
10044         initialisations,
10045         * (_pic16_initPaths): NEW, used to initialise search directories,
10046         * (_hasNativeMulFor): support functions for all except char/int
10047         multiplication, and char division,
10048         * (PIC16_port struct): modified entry for native mul support,
10049         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
10050         no_banksel option,
10051         * (buildCallTree): call to register_usage is ifdef'ed out,
10052
10053 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10054
10055         * device/include/string.h: applied Stas Sergeev's patch to make this
10056         header file compatible with the preprocessor -Wundef option
10057         * src/SDCCmain.c (main): abort compilation if preprocessor reports
10058         failure (fixes bug #941458)
10059
10060 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10061
10062         * src/SDCCopt.c (killDeadCode): fixed bug #907733
10063         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
10064         that the variable, not the function, should be static
10065         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
10066         to be consistent with non-literal case
10067
10068 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10069
10070         * src/SDCCast.c (isConformingBody): fixed bug #949967
10071         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
10072         convilong): fixed bug #952086
10073
10074 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10075
10076         * src/SDCCmem.c (allocVariables): fixed bug #955321
10077
10078 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10079
10080         * src/hc08/main.c (_hc08_genAssemblerEnd),
10081         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
10082         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
10083         completely eliminated the use of a temporary file
10084         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
10085         when more than one file linked
10086         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
10087
10088 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10089
10090         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
10091         which fixes bug #543481
10092         * support/regression/tests/bug-751703.c: fixed comments left from a
10093         cut and paste error
10094         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
10095         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
10096         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
10097         scopes
10098         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
10099         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
10100         are now changed to underscores in moduleName
10101
10102 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10103
10104         * as/mcs51/lkmem.c: better fix for bug #954173
10105
10106 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
10107         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10108
10109         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
10110         * device/include/c8051f000.h,
10111         * device/include/c8051f120.h,
10112         * device/include/c8051f300.h,
10113         * device/include/c8051f310.h,
10114         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
10115         PWM16) and detab'ed
10116
10117 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10118
10119         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
10120         and mailing lists, doc'ed --no-peep-comments, removed reference
10121         to knoppix (newest version has no LyX/LaTeX), other minor changes
10122         * src/SDCCglue.c (glue): save 2 bytes stack space with
10123         option --main-return. The ljmp could probably be avoided too
10124
10125 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10126
10127         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
10128
10129 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10130
10131         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
10132         * src/SDCCopt.c (isLocalWithoutDef),
10133         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
10134         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
10135         (credit to Maarten Brock for patch #949363, on which this is based)
10136         * support/regression/tests/bug-751703.c: some test cases of extern used
10137         within inner scopes.
10138
10139 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10140
10141         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
10142         SPEC_STRUCT
10143         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
10144         struct definitions
10145         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
10146         dwWriteLabel): fix to create valid debugger symbols even when
10147         the module name has non-alphanumeric symbols in it
10148         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
10149         when a variable's allocation has been optimized away
10150
10151
10152 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10153
10154         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
10155         * src/hc08/main.c,
10156         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
10157         * src/mcs51/main.c,
10158         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
10159         * src/ds390/main.c,
10160         * src/z80/gen.c (z80_emitDebuggerSymbol),
10161         * src/z80/main.c,
10162         * src/pic/gen.c (pic14_emitDebuggerSymbol),
10163         * src/pic/main.c,
10164         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
10165         * src/pic16/main.c,
10166         * src/avr/gen.c (avr_emitDebuggerSymbol),
10167         * src/avr/main.c,
10168         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
10169         * src/xa51/main.c,
10170         * src/SDCCdebug.c (emitDebuggerSymbol),
10171         * src/SDCCdebug.h,
10172         * src/port.h: added a debugger struct to the port struct. Added a
10173         callback for defining debugger symbols
10174
10175         * src/SDCCast.c (createLabel),
10176         * src/SDCC.y (labeled_statement): mark all compiler generated labels
10177         with isitmp = 1
10178         * src/SDCCicode.h,
10179         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
10180         iCode back to the ast for the function
10181
10182         * src/hc08/ralloc.c (hc08_assignRegisters),
10183         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
10184         unneeded fields from the regs struct.
10185         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
10186         pushReg() & pullReg() functions instead of emitcode()
10187
10188         * src/hc08/gen.c (genLabel, genhc08Code),
10189         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
10190
10191         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
10192         debugger hooks
10193
10194         * src/hc08/gen.c (genEndFunction, genhc08Code),
10195         * src/hc08/gen.h,
10196         * src/mcs51/gen.c (genEndFunction, gen51Code),
10197         * src/mcs51/gen.h,
10198         * src/ds390/gen.c (genEndFunction, gen390Code),
10199         * src/ds390/gen.h,
10200         * src/z80/gen.c (genEndFunction, genZ80Code),
10201         * src/z80/gen.h,
10202         * src/z80/z80.h,
10203         * src/pic/gen.c (genEndFunction, genpic14Code),
10204         * src/pic/gen.h,
10205         * src/pic16/gen.c (genEndFunction, genpic16Code),
10206         * src/pic16/gen.h,
10207         * src/avr/gen.c (genEndFunction, genAVRCode),
10208         * src/avr/gen.h,
10209         * src/xa51/gen.c (genEndFunction, genXA51Code),
10210         * src/xa51/gen.h,
10211         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
10212         specific code to cdbFile.c and out of the backend code generators
10213
10214         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
10215         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
10216         starting address is now 0
10217
10218         * as/hc08/asm.h,
10219         * as/hc08/m08pst.c,
10220         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
10221         assembler directive for DWARF support
10222         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
10223
10224         * src/src.dsp,
10225         * src/Makefile.in,
10226         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
10227
10228 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10229
10230         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
10231         and inappropriate peephole optimization in jump tables
10232
10233 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10234
10235         * as/hc08/m08pst.c,
10236         * src/SDCCglue.c: sdccopt works for the hc08 port now
10237
10238 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
10239
10240         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
10241
10242 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10243
10244         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
10245
10246 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10247
10248         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
10249         rules
10250         * src/SDCCmain.c,
10251         * src/SDCCglobl.h,
10252         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
10253         comments from the peephole optimizer replacement rules
10254         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
10255         symbols
10256         * src/SDCCcse.c (updateSpillLocation),
10257         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
10258         equivalents
10259         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
10260         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
10261         objects far pointers
10262
10263 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10264
10265         * src/SDCCsymt.h: a missing part of my last change
10266         * src/pic/ralloc.c (regTypeNum),
10267         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
10268
10269 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10270
10271         * src/SDCCicode.h,
10272         * src/SDCCicode.c (aggrToPtrDclType),
10273         * src/SDCCptropt.h,
10274         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
10275         ptrPseudoSymConvert),
10276         * src/pic/ralloc.c (regTypeNum),
10277         * src/pic16/ralloc.c (regTypeNum),
10278         * src/hc08/ralloc.c (regTypeNum),
10279         * src/ds390/ralloc.c (regTypeNum),
10280         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
10281         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
10282
10283 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10284
10285         * link/z80/lkmain.c (afile),
10286         * as/hc08/lkmain.c (afile),
10287         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
10288         prevent a pointer problem when a filename has no directory and
10289         no extension specified.
10290
10291 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10292
10293         * link/z80/lkmain.c (afile): allow periods in directory names
10294         * link/z80/lkmain.c (afile),
10295         * as/mcs51/lkmain.c (afile),
10296         * as/hc08/lkmain.c (afile): allow linker script file to have an
10297         extension other than ".lnk"
10298         * link/z80/lklex.c (getfid),
10299         * link/z80/lkmain.c (parse),
10300         * as/mcs51/lklex.c (getfid),
10301         * as/mcs51/lkmain.c (parse),
10302         * as/hc08/lklex.c (getfid),
10303         * as/hc08/lkmain.c (parse): Support comments in the linker script
10304         file on lines by themselves and after filenames
10305
10306 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10307
10308         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
10309
10310 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10311
10312         * src/z80/peeph-z80.def: removed some peephole rules that don't
10313         work with multibyte arithmetic (fixed bug #937126)
10314         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
10315         to registers and not global variables
10316         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
10317         geniCodePreInc, geniCodePostDec, geniCodePreDec,
10318         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
10319         checking for assignments not internally generated (fixed bug #931895)
10320         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
10321         structure member (fixed bug #930072)
10322
10323 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10324
10325         * src/SDCCmain.c (linkEdit),
10326         * src/hc08/main.c (_hc08_parseOptions),
10327         * as/hc08/Makefile.in,
10328         * as/hc08/aslink.h,
10329         * as/hc08/asm.h,
10330         * as/hc08/m08pst.c,
10331         * as/hc08/lkrloc.c (relr, rele),
10332         * as/hc08/lkarea.c (lnkarea)
10333         * as/hc08/lkmain.c (afile, parse),
10334         * as/hc08/lkelf.c: support for ELF output
10335         * as/hc08/lks19.c (s19),
10336         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
10337
10338 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10339
10340         * as/mcs51/lkihx.c: Fixed bug #899105.
10341
10342 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10343
10344         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
10345         .dsp files from Unix to DOS.
10346
10347 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10348
10349         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
10350         function pointers; we have been compliant for several months now.
10351         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
10352         change that was accidently commented out
10353         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
10354         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
10355         bug #922319
10356
10357 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10358
10359         * src/hc08/gen.c: output of all of the internal debugging information
10360         is now controlled by the D() macro; it is disabled by default
10361
10362 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10363
10364         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
10365         harder to keep the same registers during a CAST iCode
10366         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
10367         long via int can be done in a single cast, if the signedness is
10368         correct.
10369         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
10370         putchar() in tinibios.c in ds390's library
10371
10372 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
10373
10374         * src/SDCCast.c (decorateType): fixed bug #898889,
10375         cast result of a literal complement too
10376         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
10377         fixed check for bitfields
10378
10379 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
10380
10381         * src/SDCCicode.c (geniCodeLogic): made it static,
10382         (geniCodeLogicAndOr): added in order to fix bug #905492,
10383         (ast2iCode): fixed bug #905492
10384         * support/regression/tests/bug-905492.c: added
10385         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
10386         (processParms): fixed bug #927659: don't copy parms, this will clear
10387         decorated flag
10388         * support/regression/tests/bug-927659.c: added
10389
10390 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
10391
10392         * src/SDCCast.c (addCast): don't cast float to char
10393         * device/lib/libsdcc.lib: added _memmove
10394
10395 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
10396
10397         * device/lib/large/Makefile: fixed parallel execution by
10398         replacing `make` by `$(MAKE)`
10399
10400 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10401
10402         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
10403         offsets (fixes bug #923936)
10404
10405 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
10406
10407         * device/lib/small/Makefile: fixed parallel execution by
10408         replacing `make` by `$(MAKE)`
10409
10410 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
10411
10412         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
10413
10414 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
10415
10416         * src/pic/gen.c (genCpl): multi-byte complements were not working.
10417         * src/regression/Makefile: Regression test was not running.
10418
10419 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
10420
10421         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
10422         complement if possible
10423         * src/SDCCval.c (valComplement),
10424         * src/SDCCicode.c (operandOperation): fixed complement of literal
10425         * support/regression/tests/onebyte.c (testComplement): added
10426
10427 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
10428
10429         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
10430         return an optimized tree; actually replace actParm with the new tree
10431         * src/SDCCast.h: added some parantheses to remove side effects
10432         * support/regression/tests/bug-920866.c
10433
10434 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
10435         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
10436         Bit operands were not being handled properly in the pic14 port.
10437         (now src/regression/add.c passes again).
10438
10439 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10440
10441         * src/SDCC.y (labeled_statement): case and default no longer require
10442         a following statement (RFE #893037)
10443
10444 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10445
10446         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
10447         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
10448         disabled (fixes bug #916294)
10449         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
10450         "mov a,acc"; patch provided by Lenny Story
10451         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
10452
10453 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10454
10455         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
10456         functions
10457         * src/ds390/gen.c (genFunction, genEndFunction),
10458         * src/ds390/ralloc.c (ds390_assignRegisters),
10459         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
10460         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
10461         pushed if there are parameters passed on the stack. Also, a cleaner
10462         way to decide if r0/r1 should be pushed/popped. (Together they fix
10463         bug #918693)
10464
10465 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10466
10467         * doc/sdccman.lyx,
10468         * device/lib/mcs51/crtpagesfr.asm,
10469         * device/lib/mcs51/crtxinit.asm,
10470         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
10471         to avoid confusion with Si Lab's SFRPAGE register.
10472
10473 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10474
10475         * src/SDCCglue.c (emitMaps): allow public sfr variables
10476         * src/SDCCglue.c (initialComments): include compiler build date
10477         with compiler version and put the timestamp of the generated
10478         assembly file on a serperate line to be less confusing.
10479         * src/port.h: added genInitStartup hook
10480         * src/avr/main.c,
10481         * src/ds390/main.c,
10482         * src/hc08/main.c,
10483         * src/pic/main.c,
10484         * src/pic16/main.c,
10485         * src/xa51/main.c,
10486         * src/z80/main.c: genInitStartup initialize as NULL (default to
10487         historical behaviour)
10488         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
10489         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
10490         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
10491         library instead of hard coding it into the compiler.
10492         * support/regression/ports/mcs51-stack-auto/spec.mk,
10493         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
10494         * device/lib/mcs51/Makefile,
10495         * device/lib/small/Makefile,
10496         * device/lib/large/Makefile,
10497         * device/lib/mcs51/crtpagesfr.asm,
10498         * device/lib/mcs51/crtstart.asm,
10499         * device/lib/mcs51/crtxclear.asm,
10500         * device/lib/mcs51/crtxinit.asm,
10501         * device/lib/mcs51/crtclear.asm,
10502         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
10503         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
10504         and into user configurable files.
10505         * device/lib/clean.mk: clean mcs51 directory too
10506         * support/regression/tests/longlit.c: added static to T1 declaration
10507         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
10508         accesses in the initialization code
10509
10510 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10511
10512         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
10513         OSCTRIMVAL as noted in bug #916008
10514
10515 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10516
10517         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
10518         in loops with multiple exits (reported as incorrect registers
10519         used by Martin Helmling in Sdcc-user list)
10520
10521 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10522
10523         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
10524         made ds390 register extensions look less like error messages
10525
10526 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10527
10528         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
10529         reported by Adam Wozniak in Sdcc-user list
10530
10531 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
10532
10533         * src/SDCCast.c (decorateType): fixed with bug and promotion in
10534         arithmetic optimizations, added debug output
10535
10536 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
10537
10538         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
10539         * sdcc.spec: updated and split sdcc into 3 rpms
10540         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
10541         needed for literals of LEFT_OP and '+'
10542         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
10543         introduced RESULT_TYPE_NOPROM
10544         (geniCodeMultiply): fixed logic for decision if mul is optimized to
10545         left shift
10546         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
10547         limited promotion to int only for '*'
10548         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
10549
10550 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
10551
10552         * src/pic16/gen.c (genSkip),
10553         (genc16bit2lit), (gencjneshort): commented out
10554         (is_LitOp): new helper function, checks operand type
10555         (genCmpEq): rewritten
10556
10557 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
10558
10559         * support/regression/tests/bug-908454.c: added
10560
10561 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
10562
10563         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
10564         * src/SDCCicode.c (usualBinaryConversions): op needs int type
10565         (geniCodeCast): cosmetic, don't preserve bit storage class
10566         (geniCodeLeftShift): added promotion
10567         (geniCodeLogic): fixed regression
10568         * src/SDCCsymt.c (computeTypeOr): accept bits too
10569         (compareType): 2nd part of fix for bug #908454, needed for bitfields
10570
10571 2004-03-07  Borut Razem <borut.razem AT siol.net>
10572
10573         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
10574
10575 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
10576
10577         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
10578         version of pic16_genPackRegisters which does not check if ic is a
10579         CAST operator,
10580         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
10581         function cause string1.c regression test fails
10582
10583 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
10584
10585         * sim/ucsim/configure.in,
10586         * sim/ucsim/configure,
10587         * sim/ucsim/doc/Makefile.in: use docdir
10588         * src/SDCC.y: fixed sbit atrributes
10589         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
10590         * src/SDCCast.c (decorateType): |^& need special promotion handling
10591         * src/SDCCast.h,
10592         * src/SDCCsymt.h: moved definition of RESULT_TYPE
10593         * src/SDCCsymt.h (computeType),
10594         * src/SDCCicode.c: computeType() needs op
10595         * src/SDCCsymt.c (checkTypeSanity),
10596         * doc/sddman.lyx: "plain" bitfields are unsigned
10597         * src/SDCCsymt.c (computeTypeOr): added
10598         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
10599         |^& ops
10600         * src/SDCCval.c (val*): computeType() needs op
10601         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
10602         * support/regression/tests/onebyte.c: added tests for |^&
10603
10604 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
10605
10606         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
10607         for writing icode into asm output.
10608
10609 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
10610
10611         * src/pic16/device.c: added some debug lines enabled
10612         with macro DEBUG_CHECK,
10613         * src/pic16/genarith.c: more debug in genPlus,
10614         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
10615         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
10616         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
10617         * (aopForSym): onStack symbols are re-placed in data memspace,
10618         and onStack flag is cleared,
10619         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
10620         copy temporary pcodeop,
10621         * (genPcall): added warning for not updating PCLATU,
10622         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
10623         always true for pic16 port,
10624         * (genMultOneWord): NEW, supports integer multiplication,
10625         * (genMult): modified to call genMultOneWord,
10626         * (ifxForOp): added warning when return NULL,
10627         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
10628         flag is set before call to operandFromSymbol for implicit
10629         added structures,
10630         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
10631         options.intlong_rent are set by default,
10632         * (_hasNativeMulFor): modified to allow port generation of integer
10633         multiplication,
10634         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
10635         set regtype to REG_SFR for all registers, restricting seting the
10636         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
10637
10638 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10639
10640         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
10641         more than 500 times in the regression tests
10642
10643 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10644
10645         * support/Util/SDCCerr.h,
10646         * support/Util/SDCCerr.c,
10647         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
10648         enumerator_list),
10649         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
10650         for symbol conflicts.
10651         * support/valdiags/tests/enum.c,
10652         * support/valdiags/tests/tentdecl.c,
10653         * support/valdiags/tests/struct.c: expect possible error messages
10654         referring to original symbol definitions.
10655         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
10656         * src/SDCCsymt.h,
10657         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
10658
10659 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
10660
10661         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
10662
10663 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
10664
10665         * src/pic16/ralloc.c (newReg): fixed bug #908929
10666
10667 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10668
10669         * src/ds390/gen.c: added missing #include "main.h"
10670
10671 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
10672
10673         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
10674         checking if symbol is already in set,
10675         * src/pic16/device.h: prototype for checkAddSym,
10676         * src/pic16/gen.c: (_G): added entry interruptvector,
10677         * (assignResultValue): removed some commented out lines,
10678         * (genFunction): check for ISR via sym->type, absolute section for
10679         interrupt code is created via a new pBlock, the goto instruction is
10680         placed now correctly at the interrupt vector position, changed all
10681         references from ivec to _G.interruptvector,
10682         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
10683         is the interrupt is a high priority one, same for return from ISR,
10684         * src/pic16/glue.c: changed all calls of addSetHead for publics and
10685         externs to calls of checkAddSym,
10686         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
10687         pic16_pcode_verbose flag is set,
10688         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
10689         * src/pic16/pcoderegs.c: message about how many registers are saved
10690         will only be emitted if pic16_pcode_verbose flag is set,
10691
10692 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10693
10694         * src/ds390/ralloc.h,
10695         * src/ds390/ralloc.c (ds390_regWithIdx),
10696         * src/ds390/gen.c (emitcode),
10697         * src/ds390/main.h,
10698         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
10699         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
10700         ds390operandCompare, getRegsRead, getRegsWritten,
10701         initializeAsmLineNode): customized instruction size calculation for
10702         ds390, started basis for some register optimizations
10703         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
10704         corresponding assembly output
10705         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
10706         missing push/pop of r0/r1. Optimized push/pops
10707
10708 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10709
10710         * src/mcs51/main.c (instructionSize): fixed ACALL size
10711         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
10712
10713 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
10714
10715         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
10716         the sorting of rlist with NULL elements
10717         * (print_idataType, print_idata): NEW to create idata sections
10718         * src/pic16/device.h: idataSymSet new variable
10719         * src/pic16/gen.c (genFunction): fixed some bugs in string
10720         comparing, improved the absolute section creation for ISRs,
10721         added FSR0L/FSR0H in registers that are saved in an ISR,
10722         * (genInline): fixed the processing of inline snippets,
10723         now they undergo no process by the peephole optimizer
10724         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
10725         are placed in idataSymSet,
10726         * (pic16emitStaticSeg): extern symbols are added in externs,
10727         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
10728         switching when aboslute variables are placed in access bank memory
10729         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
10730         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
10731         commented out with #if,
10732         * (pic16_packRegisters): reintroduce the check for CAST because some
10733         symbols are not correctly handled,
10734         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
10735         pCodeInstruction instead of pCode,
10736         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
10737         pCodeAsmDir definition,
10738         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
10739         directive, then the argument directive is emitted without the leading
10740         tab, hack for inline labels which must be in the first column,
10741         * (compareLabel,pic16_findNextInstruction),
10742         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
10743         * (insertBankSwitch): modified for the new pCodeAsmDir,
10744
10745 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
10746         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
10747
10748         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
10749         instance,
10750         * (pushSide): commented out with #if,
10751         * (assignResultValue): fixed some typos in saving
10752         registers,
10753         * (genPcall): FIXED and sync'ed with genCall,
10754         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
10755         * (genNearPointerGet): fixed to handle some more cases,
10756         implementation scheme via table reads,
10757         * (genConstPointerGet): modified to access code memory correct,
10758         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
10759         and improved to handle some cases
10760         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
10761         instead of "RETLW" for init data
10762         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
10763         not IN_DIRSPACE, work around to reduce bank switching when aboslute
10764         variables are placed in access bank memory (<0x80 and >=0xf80),
10765         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
10766         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
10767         TBLWT_POSTDEC,TBLWT_PREINC
10768         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
10769         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
10770         directives
10771         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
10772         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
10773         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
10774         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
10775
10776 2004-02-29  Borut Razem <borut.razem AT siol.net>
10777
10778         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
10779         support/Util/findme.h, support/Util/system.h: enhance binary relative
10780         search for lib and include by using findProgramPath()
10781
10782 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10783
10784         * src/SDCCpeeph.h,
10785         * src/SDCCpeeph.c (pcDistance),
10786         * src/port.h,
10787         * src/mcs51/ralloc.h,
10788         * src/mcs51/ralloc.c (mcs51_regWithIdx),
10789         * src/mcs51/main.h,
10790         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
10791         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
10792         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
10793         size calculation port specific, started basis for some register
10794         optimizations
10795         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
10796         missing push/pop of r0/r1. Optimized push/pops
10797         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
10798         * device/lib/_modsint.c (_modsint),
10799         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
10800         and stack version so regression tests pass
10801
10802 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
10803
10804         * src/Makefile.in (dep): include SLIBOBJS in dependency check
10805         * src/SDCCast.c (decorateType): catch another small optimization
10806         with '?' operator
10807         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
10808         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
10809         modified to finally use computeType() all over SDCC,
10810         see Feature Request #877103
10811         * src/SDCCval.h: cosmetic
10812         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
10813         valCompare(); regression tested in muldiv.c
10814         * support/regression/tests/muldiv.c (testMod): mod sign follows
10815         dividend only
10816
10817 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
10818
10819         * src/SDCCast.c (decorateType): fixed bug #902362
10820         * doc/INSTALL.txt: fixed install instructions for win32
10821
10822 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
10823
10824         * device/include/Makefile.in (install): fixed by replacing spaces
10825         by tabs
10826         * doc/README.txt,
10827         * doc/INSTALL.txt: updated for release
10828         * doc/sdccman.lyx: added warning for --xstack being buggy
10829
10830 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
10831
10832         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
10833         to eliminate build warnings.
10834         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
10835
10836 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
10837            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
10838
10839         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
10840         removed -penable-stack, added comment for stack pragma, added
10841         warning for not initializing the stack/frame registers, removed
10842         comment at interrupts section
10843
10844         Stack is made permanent, there is no ability to disable stack usage.
10845         * src/pic16/device.h,
10846         * src/pic16/device.c: removed all references to USE_STACK macro,
10847         * src/pic16/device.c (pic16_dump_section): when no elements in
10848         rlist, free rlist before return,
10849         * (pic16_dump_int_registers): NEW, internal registers are a new set
10850         of general purpose registers reused by each function,
10851         * (checkAddReg): returns 1 if registers is added to set,
10852         * (pic16_groupRegistersInSection): when a registers is of type
10853         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
10854         * src/pic16/device.h: memRange and Assigned Memory are deleted,
10855         SRCASECMP macro is moved here from device.c
10856         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
10857         PO_PCLATU, PO_PRODL, PO_PRODH,
10858         * (pic16_pCodeOpType, genMinus,
10859         changed compares to "a" register, with AOP_ACC,
10860         * (pic16_genPlus): fixed some bugs and indented properly,
10861         * (pic16_addSign): changed size to size+offset in the MOVWF
10862         instruction,
10863         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
10864         multiply 8-bit operand by literal, result is 8-bit,
10865         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
10866         multiply 2 8-bit operand, result is 8-bit,
10867         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
10868         genUMult8X*_16,
10869         * src/pic16/gen.c: changed accUse to contain WREG only,
10870         * (pic16_emitcomment): renamed to pic16_emitpcomment,
10871         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
10872         true, do not use immediate addressing any more unless sym is a
10873         pointer in codespace,
10874         * (aopForRemat): do not use immediate addressing when symbol not in
10875         codespace and when symbol's address is requested,
10876         * (aopOp): for-loop in if(sym->accUse) is modified for the new
10877         accUse size (= 1),
10878         * (aopGet): added case for AOP_ACC and don't return "accumulator
10879         bug" but WREG instead,
10880         * (popGetTempReg): pushes contents of temporary register in stack,
10881         * (popReleaseTempReg): pops contents of temporary register from
10882         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
10883         * (pic16_popGet): separated case AOP_ACC to return register WREG
10884         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
10885         or PO_IMMEDIATE and initializes their instance/offset appropriately,
10886         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
10887         the use of immediate pointers to certain cases only.
10888
10889         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
10890         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
10891         * (assignResultValue, genCall, genRet): modified to use the new
10892         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
10893         genPcall is still broken,
10894         * (genFunction): added code to create 'A' type pBlocks when
10895         interrupt functions are generated, code not extensively tested yet,
10896         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
10897         * (genEndFunction): modified so ISRs pop stored registers from stack,
10898         * (genMultOneByte): cleanup,
10899         * (AccRsh): added flag andmask, to and result with appropriate mask,
10900         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
10901         * (genDataPointerGet): fixed and reenabled its use,
10902         * (genNearDataPointerGet): bugs fixed,
10903         * (genDataPointerSet): bugs fixed,
10904         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
10905         pic16_DumpSymbol, pic16_DumpOp,
10906         * src/pic16/genutils.h: function prototypes for the above functions,
10907         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
10908         pointers,
10909         * (pic16emitRegularMap): many many many improvements, but needs a
10910         major cleanup,
10911         * src/pic16/main.c: enable_stack in pic16_options is removed,
10912         * (_pic16_parseOptions): removed command line options -penable-stack,
10913         * (_process_pragma): emit stack symbol only when stack pragma is
10914         processed,
10915         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
10916         redirected to FSR0L/FSR0H pair,
10917         * (pic16_get_op, pic16_get_op2): modifications and improvements,
10918         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
10919         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
10920         for immediates,
10921         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
10922         * (dumpPicOptype): NEW,
10923         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
10924         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
10925         with movff instruction,
10926         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
10927         added pic16_int_regs, some packRegsFor* functions are commented out,
10928         because produce errors,
10929         * src/pic16/NOTES: minor modifications
10930
10931 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10932
10933         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
10934         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
10935         --pack-iram.
10936         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
10937         * as/mcs51/lkaomf51.c: fixed bug #895763
10938
10939 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
10940
10941         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
10942
10943 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10944
10945         * doc/sdccman.lyx: added details about the HC08 storage classes and
10946         interrupts, fixed the register usage info for z80 & gbz80
10947
10948 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
10949
10950         * doc/sdccman.lyx: added more pic16 port documentation
10951         * device/include/pic16/: added header pic18fregs.h
10952
10953 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
10954
10955         * doc/sdccman.lyx: added Vangelis' contribution
10956
10957 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10958
10959         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
10960         extend to the next CALL or PCALL, not just to the next CALL.
10961
10962 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
10963
10964         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
10965
10966 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10967
10968         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
10969         bug #895752 and a better fix for bug #716790
10970
10971 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10972
10973         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
10974
10975 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10976
10977         * doc/sdccman.lyx: minor changes, minor changed
10978
10979 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
10980
10981         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
10982         which can't handle SDCC_NEWONEBYTEOPS,
10983         (geniCodeMultiply): removed conversion from mult to shift for pic14
10984         and pic16
10985
10986 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10987
10988         * src/hc08/gen.h,
10989         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
10990         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
10991         thus fixing bug #895406
10992
10993 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
10994
10995         * device/lib/_modsint.c,
10996         * device/lib/_modslong.c: sign follows divisor only
10997         * src/hc08/gen.c (genMultOneByte): if result size is 1,
10998         signs or signedness can be ignored
10999         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
11000         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
11001         added optimization for IFX,
11002         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
11003         arguments;
11004         reenabled optimization for IFX, which was removed on 2004-01-11
11005         * src/SDCCast.h: added return type IFX
11006         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
11007         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
11008         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
11009         SDCC_OLDONEBYTEOPS selects the old behaviour
11010         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
11011         changed again and commented promotion rule
11012         * src/SDCCval.c (valDiv): promotion no longer necessary
11013         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
11014         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
11015         rewritten
11016         * support/regression/tests/onebyte.c: added
11017
11018 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
11019
11020         * gen.c (genInline): reverted to old code for assemnling inline
11021         code because of bug reported James Chadd
11022
11023 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
11024
11025         * ralloc.h: missing declarations from previous patch,
11026         seems that patch for ralloc.h was never applied, fixed
11027
11028 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11029            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
11030
11031         * pcode.c,
11032         * pcode.h,
11033         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
11034         indirect addressing. Marked FSR0 as deprecated
11035         * gen.c (pointerCode): commented out, not needed now
11036         (pic16_popGet2p): new MOVFF helper function
11037         (genGenPointerGet),
11038         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
11039         (shiftRLong): removed duplicate debugging info
11040
11041 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11042
11043         * src/ds390/gen.c (genNearPointerGet),
11044         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
11045         optimization with bits, but not bitfields.
11046         * src/ds390/ralloc.c (packRegisters),
11047         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
11048
11049 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
11050
11051         * src/SDCCcse.c (algebraicOpts): copy operands before modification
11052
11053 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11054
11055         * src/SDCCsymt.h,
11056         * src/SDCCicode.c (operandFromSymbol),
11057         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
11058         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
11059         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
11060         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
11061         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
11062         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
11063         bug #892038
11064         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
11065         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
11066         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
11067         * src/SDCCsymt.c (newSymbol),
11068         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
11069         enumerator_list),
11070         * src/SDCCval.h,
11071         * src/SDCCval.c (newiList): fixed bug #885705
11072
11073 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11074
11075         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
11076         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
11077
11078 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11079
11080         * device/include/c8051f120.h,
11081         * device/include/c8051f300.h,
11082         * device/include/c8051f310.h: added/updated header files for Silicon
11083         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
11084         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
11085         in new section Submitting patches
11086
11087 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11088
11089         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
11090         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11091         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11092         genGenPointerSet),
11093         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
11094         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11095         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11096         genGenPointerSet),
11097         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
11098         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11099         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11100         genGenPointerSet),
11101         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
11102         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11103         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11104         genGenPointerSet): fixed bug #892400
11105         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
11106         to eliminate build warnings.
11107         * src/SDCCast.c (processParms),
11108         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
11109         fixed bug 751859
11110         * support/valdiag/valdiag.py: added GCC to the list of defines active
11111         when compiling with gcc
11112
11113 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11114
11115         * support/Util/SDCCerr.h,
11116         * support/Util/SDCCerr.c,
11117         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
11118         with an incomplete type (fixed bug #883734)
11119         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
11120
11121 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11122
11123         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
11124
11125 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11126
11127         * src/SDCCast.c (decorateType),
11128         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
11129         function pointer implementation
11130         * support/regression/tests/funptrs.c: added tests to verify both forms
11131         of function pointers work correctly. Added tests to verify parameters
11132         are passed in the correct order.
11133
11134 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
11135
11136         * device.c (regCompare): registers are sorted by ascending
11137         address and increasing size,
11138         * main.c (_pic16_finaliseOptions): removed the declaration
11139         of compiler macro MCU. Now a macro of the format pic18fxxxx
11140         will be defined from the command line
11141
11142 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11143             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
11144
11145         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
11146         PCOP_RLCF was overwritten!
11147         * gen.c (genSkip): commented out calls to pic16_emitcode,
11148         * (genCmpEQ): fixed "long" compares, only high word did get compared,
11149         * (genlshTwo),
11150         * (genRRC): added debugging info,
11151         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
11152         overwritten while shifting,
11153         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
11154         overwritten while shifting,
11155         * (AccLsh),
11156         * (AccRsh),
11157         * (shiftLLeftOrResult),
11158         * (shiftRLeftOrResult),
11159         * (shiftRLong),
11160         * (shiftLLong): Implemented with pic16_emitpcode
11161         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
11162         * (genLeftShift): Fixed bug, operand for shift by variable always
11163         was "and"ed with 0x0f,
11164         * (genLeftShiftLiteral),
11165         * (genrshTwo),
11166         * (genRightShiftLiteral): added debugging info,
11167         * (genrshFour): added comment,
11168         * (genRightShift): determined signedness from operand "left"
11169         instead of "result"
11170
11171 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11172
11173         * src/SDCCicode.c (geniCodeParms),
11174         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
11175         function pointers, fixed function pointer bugs #861242 and #861896
11176
11177 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11178
11179         * device/include/c8051f000.h,
11180         * device/include/c8051f120.h,
11181         * device/include/c8051f300.h: added header files for Silicon
11182         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
11183
11184 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
11185
11186         * src/SDCCast.c (processParams): added new type flow and restructured
11187         (gatherAutoInit): added new type flow
11188         (addCast): cosmetic changes
11189         (getLeftResultType): added new type flow for array indices, patch
11190         provided by Stas, see FR #877103
11191         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
11192         array index patch by Stas
11193         * src/SDCCast.h: added prototype getResultTypeFromType()
11194         * src/SDCCval.h,
11195         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
11196         * src/pic/glue.c (pic14emitStaticSeg),
11197         * src/pic16/glue.c (pic16emitStaticSeg),
11198         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
11199         for initialization of symbols
11200         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
11201         * support/Util/SDCCerr.h:
11202         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
11203         * .version: bumped version number to 2.3.8
11204         * device/include/Makefile.in (install),
11205         * doc/Makefile (install): changed to 'rm `find ...`' construct to
11206         avoid warnings
11207
11208 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
11209
11210         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
11211         Slade Rich fixed an optimization bug
11212         * src/pic/pcodepeep.c,
11213         * src/pic/pcoderegs.c
11214         * doc/Makefile (install): added test for directory
11215
11216 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11217
11218         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
11219         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
11220         * src/pic/ralloc.c (getRegPtr, getRegGpr),
11221         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
11222         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
11223         * as/mcs51/asexpr.c (term),
11224         * as/hc08/asexpr.c (term): fixed bug #887146
11225
11226 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11227
11228         * src/z80/gen.c (genMult): handle single byte result product
11229         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
11230         DUMMY_READ_VOLATILE (fixed bug #886367)
11231
11232 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
11233
11234         * support/regression/tests/libmullong.c: fixed logic, on little endian
11235         hosts we ended without a mullong_wrapper()
11236
11237 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11238
11239         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
11240         virus/worm forged address usage.
11241
11242 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
11243
11244         Fixed promotion, it should be done on AST level:
11245         * src/SDCCast.c (addCast): added promotion to int
11246         (decorateType): updated call to upCast()
11247         * src/SDCCicode.c (geniCodeLeftShift): removed call to
11248         usualUnaryConversions()
11249
11250 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
11251
11252         * support/regression/tests/literalop.c (mulWrapper): Added a
11253         wrapper to remove integer overflow warnings.
11254
11255         * support/regression/tests/float_trans.c: Made work on host.
11256
11257         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
11258         location of sz80.
11259
11260         * support/regression/generate-cases.py (main): Changed from inline
11261         to a main method.
11262
11263         * doc/Makefile (install): Changed to depth first to get rid of
11264         missing directory install warning.
11265
11266         * as/Makefile (install-doc): Made work on Mac.
11267
11268 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
11269
11270         * src/SDCCast.c: added an additional type flow in decorateType() of
11271         opposite direction, see feature request #860006; it's enabled at runtime
11272         by setting the environment variable SDCC_NEWTYPEFLOW
11273         * src/SDCCast.h: changed prototype of decorateType()
11274         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
11275         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
11276         'char' to 'int' can be omitted, if both operands are 'unsigned char';
11277         see feature request #877103
11278         * src/SDCCval.c: updated call of decorateType()
11279         (valBitwise): fixed bug #882876
11280         (valMinus): added promotion
11281         (valLogicAndOr): result is unsigned
11282         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
11283         * src/SDCCsymt.c (computeType),
11284         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
11285         must not cause an unsigned operation
11286         * src/pic/glue (pic14emitRegularMap),
11287         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
11288
11289 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
11290
11291         * src/pic/pcode.c (PCodeID): commented out left over debug code
11292
11293 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
11294
11295         * support/valdiag/tests/overflow.c: added shift tests
11296         * src/pic/device.c,
11297         * src/pic/gen.c,
11298         * src/pic/gen.h,
11299         * src/pic/glue.c,
11300         * src/pic/main.c,
11301         * src/pic/pcode.c,
11302         * src/pic/pcode.h,
11303         * src/pic/pcodepeep.c,
11304         * src/pic/pcoderegs.c,
11305         * src/pic/ralloc.c,
11306         * src/pic/ralloc.h: applied patch from Slade Rich;
11307         added support for multiple code pages and multiple RAM banks on the
11308         PIC 14 port. The ASM files now no longer simply assume all the
11309         code / RAM are in the same page / bank. This means the linker can
11310         safely allocate code/RAM of separate ASM files to different pages/banks.
11311         * doc/sdccman.lyx: added Slade's tips
11312         * src/mcs51/peeph.def: fixed bug #880768
11313
11314 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11315
11316         * src/hc08/ralloc.c (rematStr): fixed bug #879282
11317         * src/SDCCast.c (decorateType): fixed bug #880197
11318
11319 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
11320
11321         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
11322         getopt.h.
11323
11324         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
11325         strtof is not part of C89 and isn't included with Mac OS X.
11326
11327 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11328
11329         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
11330         shiftL2Left2Result): fixed bug #879326
11331         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
11332         (genMultOneByte): fixed bug in signed vs unsigned multiplication
11333         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
11334         address fetch for clr instruction
11335         * device/lib/hc08/_mulint.c: created optimized assembly version
11336         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
11337
11338 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
11339
11340         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
11341         proposed in FR #877103
11342
11343 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
11344
11345         * src/SDCCval.c (cheapestVal): added missing checks
11346         * src/SDCCicode.c (usualBinaryConversions): fixed condition
11347         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
11348
11349 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
11350
11351         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
11352         equal operands
11353
11354 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
11355
11356         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
11357         loaded with the linker search paths (-L arguments) and the libraries
11358         to be linked with the current source (-l arguments). Changes
11359         currently will affect only the pic16 port.
11360         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
11361         include path the port specific paths and port specific libraries,
11362         * gplink command now contains the $3 argument,
11363         * src/pic16/device.h,
11364         * src/pic16/device.c,: structure PIC_device is made public and
11365         renamed to PIC16_device, the same for variable Pics which is renamed
11366         to Pics16. Updated all references to them.
11367         * src/pic16/glue.c (pic16glue): corrected bug with code
11368         initialization which bypassed the variable initializations block.
11369
11370         * device/lib/pic16/Makefile.rules: removed --penable-stack from
11371         COMPILE_FLAGS and added the --nostdinc option
11372
11373 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11374
11375         * device/include/mc68hc908jb8.h: Register defs for another member
11376         of the hc08 family. Contributed by Bjorn Bringert - thanks!
11377
11378 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
11379
11380         Documenting changes from previous commits.
11381         * configure.in (version 1.56),
11382         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
11383         when generating output files to configure the pic16 library,
11384         but now I've commented it out, since gputils aren't installed in the
11385         SF compile farm, so library won't compile
11386
11387         * device/lib/Makefile.in (version 1.56): initially I've added in
11388         target 'all' the prerequestive 'model-pic16' so it compiled the
11389         pic16 library, but now I've commented it out for the same reasons
11390         above,
11391         * added targets 'model-pic16' and 'objects-pic16' to compile the
11392         library
11393         * added target 'port-specific-objects-pic16' to handle the
11394         generated libraries and copy them into the build/ directory
11395         * added target 'clean-intermediate-pic16' to clean intermediate
11396         files into pic16 directory
11397         * in target 'installdirs' added line to create directory pic16 in
11398         the installation path
11399
11400         * device/include/Makefile.in (version 1.11): in target 'install'
11401         added lines to copy all header files to installation path,
11402         * in target 'installdirs' added line create directory for pic16
11403         headers in the installation path
11404
11405 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
11406
11407         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
11408          a function call
11409
11410 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
11411
11412         * configure,
11413         * device/lib/configure.in,
11414         * device/lib/configure: fixed for autoconf 2.57
11415
11416 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11417
11418         * src/z80/main.c (_parseOptions): fixed the portmode= command line
11419         option so that it actually works. Made it specific to the z80, since
11420         the gbz80 doesn't have these kinds of I/O ports.
11421
11422 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11423
11424         * device/include/z180.h,
11425         * device/lib/_memcpy.c,
11426         * device/lib/_memmove.c,
11427         * device/lib/_mulint.c,
11428         * device/lib/ser_ir.c,
11429         * device/lib/ser_ir_cts_rts.c,
11430         * device/lib/_strcmp.c,
11431         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
11432         * src/z80/main.c (_process_pragma): add support for pragmas bank and
11433         portmode; added deprecation warning for bank= and protmode= forms.
11434         Also, guard against buffer overflow.
11435         * src/z80/gen.c (aopGet): generate better code for sfr banked read
11436
11437 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11438
11439         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
11440         changed interrupt vector table generation to only emit declared vectors.
11441         * device/include/Makefile.in: added missing backslash
11442         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
11443
11444 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
11445
11446         Mainly changes to support compilation of the device libraries
11447         * src/pic16/device.c: stack is allocated via symbol and not
11448         via literal number. The symbol is placed in the corresponding
11449         position of the data ram
11450         * (pic16_dump_section): relocatable and absolute uninitialized
11451         data are now emitted in sorted order to reduce section naming,
11452         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
11453         weren't marked as being in the access bank,
11454
11455 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
11456
11457         Added portion of GNU PIC Library under the directory
11458         device/include/pic16 and device/lib/pic16. These files
11459         contain the declarations of SFRs for the PIC18Fxx2 devices.
11460         The directory is initialized via configure from toplevel.
11461
11462 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
11463
11464         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
11465         the spilllocations to be compared correctly
11466
11467 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
11468
11469         * src/SDCCast.c (decorateType): fixed bug introduced today
11470
11471 2004-01-12  Borut Razem <borut.razem AT siol.net>
11472
11473         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
11474         doc/sdccman.lyx: upper case pragmas are deprecated
11475
11476 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
11477
11478         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
11479         in simpler and even better code
11480
11481 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
11482
11483         * src/SDCCicode.c (operandOperation): fixed bug #874819
11484         * src/SDCCast.c (decorateType): fixed
11485         char foo (unsigned long ul) { return ul > 0; }
11486
11487 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11488
11489         * doc/sdccman.lyx: Moved and added some sections, small changes
11490         all over. Telling LaTeX to be less strict with word spacing
11491         to better keep the right margin. Changed some notes about
11492         maintainance of the ports in section 3.2.1 - is it OK like this?
11493
11494 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
11495
11496         SDCC source changes:
11497         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
11498         convilong): modified to inform the pic16 port that builtin functions
11499         are external
11500
11501         PIC16 PORT specific changes:
11502         * src/pic16/device.c pic16_dump_equates() added,
11503         processor registers declared internally by the port are emitted in
11504         the translation as equates,
11505         * src/pic16/gen.c: inline code is passed unprocessed to the
11506         translation,
11507         * (pic16_popGetLit2): fnuction modified to take second operand as
11508         pCodeOp pointer and not as literal,
11509         * (popRegFromIdx): prefixed with pic16_,
11510         * (pic16_popCombine2): modified to receive already allocated pCode
11511         operands,
11512         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
11513         * (genFunction): initializes local stack frame and pushes on stack
11514         all the registers used by this function,
11515         * (genEndFunction): restores all registers from stack and restores
11516         stack frame,
11517         * src/pic16/glue.c (pic16emitRegularMap): various changes and
11518         improvements,
11519         * (pic16glue): changed the program startup sequence,
11520         * added new dbName code 'A' for functions placed in absolute section
11521         * src/pic16/main.c: added function attribute _naked,
11522         * added pragma 'code' to place a fnuction at an absolute address,
11523         * added command line arguments --debug-ralloc and --pcode-verbose,
11524         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
11525         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
11526         * (pic16_newpCodeOpLit2): modified to take the second operand as
11527         pCodeOp pointer,
11528         * (pic16_printpBlock): modified to emit each function in a separate
11529         section,
11530         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
11531         UPPER for immediate operands,
11532         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
11533         instruction,
11534         * src/pic16/peeph.def: all peepholes with movff are commented out,
11535         because there is a problem in the pcode peep optimizer,
11536         * src/pic16/ralloc.c: the register allocator can now reuse local
11537         function symbols for another function. This saves register usage.
11538         * src/pic16/ralloc.h: added flag isLocal in structure regs,
11539
11540         Added file src/pic16/NOTES with information about program writing on
11541         the current port version.
11542
11543 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11544
11545         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
11546         and peephole 252 (array access)
11547
11548 2004-01-09  Borut Razem <borut.razem AT siol.net>
11549
11550         * src/SDCCmain.c : fixed #872250: -l command line defined library
11551           files are scanned before standard library files
11552
11553 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11554
11555         * src/SDCCast.c (decorateType): fixed bug #874046
11556
11557 2004-01-09  Borut Razem <borut.razem AT siol.net>
11558
11559         * support/scripts/sdcc.nsi: remove previous installation
11560
11561 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11562
11563         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
11564         bytes for last interrupt vector (mcs51)
11565         * sdcc.spec: fixed typo
11566
11567 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11568
11569         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
11570         gen51Code): more efficient parameter receive for --model-large
11571         ("bug" #845294)
11572
11573 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11574
11575         * src/ds390/main.c,
11576         * src/z80/main.c: added missed needLinkerScript flags (more than
11577         one port structure defined in these file)
11578         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
11579         bug #795325
11580
11581 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
11582
11583         * src/SDCCmain.c: removed various references to DEFAULT_PORT
11584         * src/port.h: added flag needLinkerScript in port->linker
11585         structure to inform whether to create a .lnk file or not,
11586         * src/avr/main.c,
11587         * src/ds390/main.c,
11588         * src/hc08/main.c,
11589         * src/mcs51/main.c,
11590         * src/pic/main.c,
11591         * src/pic16/main.c,
11592         * src/xa51/main.c,
11593         * src/z80/main.c: changed appropriately to configure
11594         needLinkerScript flag
11595         * src/pic/gen.c,
11596         * src/pic16/gen.c (genAddrOf): fixed bug #863624
11597         * src/pic/glue.c: added variable udata_section_name to
11598         override default uninitialized data segment definition for
11599         devices only with SHAREBANK memory (reported from Erik Epetrich)
11600         * (pic14emitOverlay): modified to emit a commented overlay segment
11601         directive when no overlay data exist
11602         * (picglue): modified to emit uninitialized data segment
11603         according to udata_section_name
11604         * src/pic/main.c (_pic14_parseOptions): added command line
11605         options --udata-section-name=[name] to override default
11606         udata definition name
11607         * modified _linkCmd and _asmCmd to include compiler passed
11608         arguments via -W option
11609         * src/pic16/main.c: added $l in _asmCmd, changed extension for
11610         object file from '.rel' to '.o' in port->linker structure,
11611         changed size of fptr from 2 to 3 in port structure
11612
11613 2004-01-07  Borut Razem <borut.razem AT siol.net>
11614
11615         * support/scripts/sdcc.nsi: update PATH
11616         * support/scripts/sdcc.ico: craeted
11617
11618 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
11619
11620         * device/include/Makefile.in: fix install
11621         * doc/Makefile: fix install
11622
11623 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11624
11625         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
11626         in bug #860505
11627         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
11628         how the function variable allocation summary is displayed; also
11629         include information about variables allocated to the overlay
11630         segment
11631
11632 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11633
11634         * as/mcs51/lkmain.c: Help about -Y option
11635         * as/mcs51/lkarea.c: Fixed gcc warnings
11636
11637 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
11638
11639         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
11640         fixed warning
11641         * support/valdiag/tests/overflow.c: added
11642         * src/SDCCast.c (decorateType),
11643         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
11644         LEFT_OP (left shift)
11645
11646 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11647
11648         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
11649         (default behaviour).
11650
11651 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11652
11653         A python script to validate compiler diagnostic messages. It can be
11654         used to verify that sdcc complains about bad c source code and
11655         gives a good location of the error.
11656         * support/valdiag/Makefile,
11657         * support/valdiag/valdiag.py,
11658         * support/valdiag/tests/*
11659
11660 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11661
11662         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
11663         * src/SDCCsymt.c (newEnumType),
11664         * src/SDCCsymt.h
11665         * support/Util/SDCCerr.c,
11666         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
11667         enum related bugs.
11668         * support/regression/tests/enum.c: added test for enum values that
11669         require at least 2 bytes of storage.
11670
11671 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
11672
11673         * src/common.h: added ifndef/define/endif macros
11674         around the header file.
11675         Bug reported from Jesus Calvino-Fraga
11676
11677 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
11678
11679         * sdcc.spec: updated
11680         * device/include/Makefile.in: don't install CVS directories
11681         * device/lib/Makefile.in: added removal of CVS directories after install
11682         * doc/Makefile: fixed install, added local_icons
11683         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
11684         * src/mcs51/gen.c (genRightShift): fixed bug #870788
11685         * src/ds390/gen.c (genRightShift): fixed bug #870788
11686         * src/SDCCast.c (decorateType): fixed bug #870781
11687
11688 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
11689
11690         PIC16 port related changes:
11691         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
11692         added variable stackPos,
11693
11694         * gen.c: genCall, assignResultValue: added support for
11695         pushing/retrieving function parameters to/from stack,
11696         genFunction,genEndFunction: setup stack frame for the
11697         generated function,
11698         genAddrOf: will be changed according to bug 863624
11699
11700         * added files genutils.c and genutils.h which contain gen*
11701         debugged and optimised functions extracted from gen.c
11702
11703         * glue.c: added variable 'externs' which holds extern symbols,
11704         pic16emitRegularMap: is modified to properly handle relocatable
11705          symbols under the new scheme,
11706         pic16createInterruptVect: is modified
11707         pic16printPublics: is modified to emit 'global' assembler directives,
11708         added pic16_printExterns to print extern symbols,
11709         pic16glue: initializes stack/frame pointer in the beginning of
11710         the assembly output. Temporary hack, will be corrected later,
11711         because gplink yet does not support stack and SDCC does not
11712         yet support a type of crt0.o object to create the final binary.
11713
11714         * Removed many lines that contain 8051 legacy code.
11715         * The code is finally placed under a 'code' directive.
11716         * Added port specific options.
11717
11718         * _process_pragma: simplified since now we do not need *special*
11719         include file to define SFR registers. But a separate header
11720         will be needed. This will be developed later.
11721         * _pic16_parseOptions: added, parses port specific options:
11722         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
11723         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
11724         --preplace-udata-with=
11725
11726         * _pic16_setDefaultOptions: modified to initialize section names,
11727         but hack is temporarly out of order since it needs improvement.
11728         * _pic16_genAssemblerPreamble: configuration words are emitted by
11729         their address instead of their name. This part is incomplete and
11730         supports only the 18Fxx2 devices. Other devices will emit an error
11731         during assembly since they do not contain the same set of config
11732         registers
11733         * _pic16_genIVT: is modified,
11734
11735         * pcode.c: added definitions for some hardware registers that are needed
11736         for stack support
11737         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
11738         All PCI entries are updated. Now LFSR is supported.
11739         * Removed pic16_pciTRIS is mentioned by mdubuc in source
11740         * added pic16_newpCodeOpLit2 to support instructions with
11741         two literal arguments
11742         * pic16_pCode2str: corrected code that emits assembler instructions
11743         with two literal operands and those that have an access bit modifier
11744         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
11745         this fixes a bug which caused some labels to be lost, when an
11746         assembler directive was added, i.e. banksel,
11747         * pic16_FixRegisterBanking: improved logic that causes the insertion
11748         of bank switching,
11749         * InlineFunction: functions that are called once, are not any more
11750         inlined. This can be a port option in the future,
11751
11752         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
11753
11754         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
11755         hold the corresponding uninitialized symbols,
11756         * pic16_allocProcessorRegister: registers have explicit marked the
11757         accessBank field,
11758         * pic16_allocInternalRegister: registers are explicit marked as
11759         not used,
11760         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
11761         processing list, so bit registers were lost,
11762         *
11763
11764         * ralloc.h: added field 'accessBank' and original symbol operand
11765         in register definition,
11766         * removed the field isMapped from register definition,
11767
11768         ** Several functions have been removed from various sources:
11769         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
11770         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
11771         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
11772         pic16_assignRelocatableRegisters
11773
11774         ** others have been introduced:
11775         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
11776         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
11777
11778 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
11779
11780         * support/scripts/inc2h.pl: changed definition of BIT_AT
11781         to emit 'sbit at' instead of 'bit at'. This was a request.
11782
11783         PIC16 port related preliminary changes:
11784         * gen.c: prefixed function popRegFromString with
11785         pic16_ and all references to it corrected
11786         * pcode.c: all pic16_pc_* hardware registers prefixed
11787         with underscore (_),
11788         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
11789         * ralloc.c: newReg(): when register is REG_SFR then
11790         set address to rIdx,
11791         pic16_allocProcessorRegister(): marks register wasUsed=0
11792         pic16_writeUsedRegs(): added a call to assign processor
11793         registers via pic16_assignFixedRegisters
11794
11795 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11796
11797         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
11798         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
11799         variables in unused register banks.  Also the SSEG is placed
11800         wherever there is enough space for it, and IDATA can be anywhere
11801         in internal RAM.  For now compile using -Wl-Y[stack_size].
11802         The mem file is different for this option as well, since it
11803         makes no sense of talking about DSEG lenght.
11804
11805 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
11806
11807         * src/SDCClrange.c: fixed bug 869095 that caused segfault
11808         in certain cases, e.g. when ROM assignment, patch provided
11809         from Albert den Haan.
11810
11811 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
11812
11813         Many signedness and type propagation fixes:
11814         * src/SDCCicode.c: made geniCodeCast() static
11815         replaced SPEC_ by IS_ (cosmetic)
11816         (operandOperation): fixed div and mod operation
11817         (usualBinaryConversions): added support for promotion of char
11818         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
11819         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
11820         (geniCodeAdd): an array index will stay unsigned, even if promoted
11821         from char to int
11822         (geniCodeArray): ditto
11823         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
11824         * src/SDCCsymt.c (computeType): added more support for char;
11825         promotion of char is selectable by promoteCharToInt, fixed signedness
11826         for all cases
11827         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
11828         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
11829         * src/SDCCval (val*): replaced signedness calculation by
11830         computeType()
11831         rearranged if-branches (cosmetic)
11832         (valShift): added warning W_SHIFT_CHANGED
11833         (valCompare): fixed problem with different types
11834         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
11835         * support/regression/tests/literalop.c: added many cases
11836         * support/regression/tests/ast_constant_folding.c: changed finally to
11837         'unsigned int'
11838         * .version: new year, new version: 2.3.7
11839         * src/SDCCmain.c (main): applied patch #866468
11840         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
11841         provided by Scott Bronson
11842         * doc/sdccman.lyx: updated documentation for sdcdb
11843         updated and added chapter tips
11844
11845 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11846
11847         * src/SDCCsymt.h: missing from yesterday's commits
11848
11849 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11850
11851         * src/SDCC.y (struct_or_union_specifier),
11852         * support/Util/SDCCerr.c,
11853         * support/Util/SDCCerr.h: verify that struct & union tags are used
11854         as declared.
11855
11856 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11857
11858         * src/SDCCglobl.h: missing from yesterday's commits
11859
11860 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11861
11862         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
11863         sft_attributes, struct_declaration, parameter_declaration,
11864         type_name, start_block, declaration_list),
11865         * src/SDCC.lex (check_type): support redefinition of typedef names
11866
11867 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11868
11869         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
11870         aligned xdata arrays. Erik helped me with the if clause.
11871
11872 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11873
11874         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
11875         warning
11876
11877 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11878
11879         * src/SDCCast.h,
11880         * src/SDCCast.c (newAst_),
11881         * src/SDCCicode.h,
11882         * src/SDCCicode.c (ast2iCode, newiCode),
11883         * src/SDCCglobl.h,
11884         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
11885         expr, statement, expression_statement, selection_statement,
11886         iteration_statement, expr_opt, jump_statement): foundation for tracking
11887         sequence points
11888         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
11889         point code too)
11890
11891 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11892
11893         * support/Util/SDCCerr.c,
11894         * src/SDCCast.h,
11895         * src/SDCCast.c (createCase, createDefault, decorateType),
11896         * src/SDCClabel.c (labelUnreach),
11897         * src/SDCC.y (labeled_statement, jump_statement): More improvements
11898         to error messages.
11899         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
11900         (with thanks to Stas Sergeev)
11901         * device/include/time.h,
11902         * device/lib/time.c (CheckTime): suppress unreachable code warning
11903
11904 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11905
11906         * src/SDCCast.c (createIvalCharPtr),
11907         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
11908         bug #753752)
11909         * support/regression/tests/nullstring.c: tests for these two bugs
11910
11911 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11912
11913         * support/Util/SDCCerr.h,
11914         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
11915         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
11916         about storage class and 'at' used inside struct or union
11917         * src/SDCCBBlock.c (iCodeFromeBBlock),
11918         * src/SDCCcse.c (ifxOptimize),
11919         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
11920         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
11921         printIval, emitStaticSeg, emitOverlay),
11922         * src/SDCClabel.c (deleteIfx),
11923         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
11924         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
11925         gatherAutoInit, processParms),
11926         * support/Util/SDCCerr.h,
11927         * support/Util/SDCCerr.c (werrorfl): Support for better error location
11928         reporting for post-parse errors.
11929
11930 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11931
11932         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
11933         implicit casts via union; they don't work on big endian systems
11934         (possible fix for bug #861138)
11935
11936 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11937
11938         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
11939         * src/mcs51/main.c: fixed the fix for bug #737001
11940
11941 2003-12-15  Borut Razem <borut.razem AT siol.net>
11942
11943         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
11944
11945 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11946
11947         * support/makebin/makebin.c: put output in binary mode
11948
11949 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11950
11951         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
11952         xdata and data memory on startup. Set the environment variable
11953         SDCC_NOGENRAMCLEAR to disable this.
11954         * src/mcs51/peephole.def,
11955         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
11956         (allows non-interrupt and interrupt code to safely compete for a resource
11957         without the non-interrupt code having to disable interrupts)
11958
11959 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11960
11961         * src/SDCCicode.c (geniCodeAdd),
11962         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
11963         with valFromType if type might be a pointer and host is big endian).
11964         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
11965         types, not just integer types.
11966         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
11967         multiply defined with mismatching "at" address.
11968
11969 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11970
11971         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
11972         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
11973         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
11974         with embedded nulls (fixed bug #753752)
11975
11976 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11977
11978         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
11979         Apparently this did not see much testing (endless loop)
11980
11981 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11982
11983         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
11984
11985 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11986
11987         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
11988         gracefully handle NULL memmap pointers
11989
11990 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11991
11992         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
11993         instead of deleting the iCode when an operand is volatile
11994         * src/z80/gen.c (genDummyRead),
11995         * src/mcs51/gen.c (genDummyRead),
11996         * src/ds390/gen.c (genDummyRead),
11997         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
11998         not just IC_RIGHT
11999         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
12000         * src/SDCC.y: fixed bug #850420
12001
12002 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12003
12004         Applied z80 i/o port patch from Peter Townson and fixed some operators
12005         to better handle operands in A register.
12006         * device/include/z180.h
12007         * src/SDCC.y
12008         * src/SDCCglue.c
12009         * src/z80/gen.c
12010         * src/z80/gen.h
12011         * src/z80/main.c
12012         * src/z80/peeph-z80.def
12013         * src/z80/peeph.def
12014         * src/z80/z80.h
12015
12016 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12017
12018         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
12019
12020 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12021
12022         * device/lib/hc08/_mullong.c: Removed extra #endif
12023
12024 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12025
12026         * sim/ucsim/hc08.src/inst.cc,
12027         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
12028         carries from x to h
12029         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
12030         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
12031         * device/include/stdarg.h: fixed varargs for hc08
12032         * device/lib/Makefile.in,
12033         * device/lib/hc08/Makefile,
12034         * device/lib/hc08/_mulint.c,
12035         * device/lib/hc08/_mullong.c: fixed some endian problems
12036
12037 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12038
12039         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
12040         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
12041         * device/lib/_gptrget.c,
12042         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
12043
12044 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12045
12046         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
12047         * src/SDCCast.c (astErrors): fixed bug #846007
12048         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
12049
12050 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12051
12052         * src/SDCCast.c (decorateType): disabled a transformation I added in
12053         revision 1.188 (access to fields of a structure at an absolute address);
12054         it breaks with bitfields, extern declarations, and gcse analysis.
12055         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
12056         could be assigned through a pointer, so don't complain.
12057         * src/SDCCast.c (astErrors),
12058         * src/SDCCast.h,
12059         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
12060
12061 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
12062
12063         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
12064         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
12065         output of __config directives, since gpasm now supports them
12066         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
12067         pre-processor macro, i.e. -DMCU=p18f452
12068         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
12069         and modified to handle 'cast' icode similarly to '=' icode
12070         * src/pic16/device.h (typedef struct PIC_device): added field
12071         'extMIface' to indicate that chip has external memory interface
12072         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
12073         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
12074         18F8720
12075
12076 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12077
12078         * src/SDCC.y (pointer): fixed bug #846006
12079         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
12080         * src/SDCCast.c (decorateType): fixed bug #846009
12081         * src/ds390/peeph.def,
12082         * src/ds390/gen.c (genAnd, genOr),
12083         * src/mcs51/peeph.def,
12084         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
12085
12086 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12087
12088         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
12089         * src/SDCCdflow.c
12090         * src/SDCCcse.c
12091         * src/SDCCcse.h
12092         * src/SDCCBBlock.h
12093         * src/SDCCBBlock.c
12094
12095 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
12096
12097         fixed bug #845089
12098         * src/SDCCbitv.h,
12099         * src/SDCCbitv.c: added function to free a bitvector
12100         * src/SDCClrange.h,
12101         * src/SDCClrange.c: added function to recompute the liveranges
12102         * src/avr/ralloc.c,
12103         * src/ds390/ralloc.c,
12104         * src/hc08/ralloc.c,
12105         * src/mcs51/ralloc.c,
12106         * src/pic/ralloc.c,
12107         * src/pic16/ralloc.c,
12108         * src/xa51/ralloc.c,
12109         * src/z80/ralloc.c: recompute the liveranges after register packing
12110
12111 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
12112
12113         * src/SDCCloop.c (newInduction): fixed bug #845630
12114
12115 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12116
12117         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
12118         inadvertantly left behind from my 2003-11-12 change
12119
12120 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12121
12122         Updated headers I neglected to commit yesterday.
12123         * src/SDCClrange.h,
12124         * src/SDCCicode.h
12125
12126 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12127
12128         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
12129         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
12130         * src/SDCCopt.c (eBBlockFromiCode),
12131         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
12132         the creation of the key hash table from the sequencing so it can be used
12133         earlier (for some GCSE bug fixes still pending)
12134
12135 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12136
12137         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
12138         * support/regression/tests/addsub.c: testing genPlus shortcut
12139
12140 2003-11-15  Borut Razem <borut.razem AT siol.net>
12141
12142         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
12143
12144 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12145
12146         * src/SDCCcse.c (cseBBlock): fixed bug #527779
12147         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
12148         ordering is immaterial.
12149         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
12150
12151 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12152
12153         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
12154         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
12155         (SIGSEV) of bug #840381
12156         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
12157         unlink new file before rename if new and old filenames are the same)
12158
12159 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12160
12161         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
12162         uninitialized variables) for the mcs51. Set environment variable
12163         SDCC_GENRAMCLEAR to test.
12164         xdata initialization slightly shorter
12165
12166 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12167
12168         * src/SDCCsymt.h,
12169         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
12170         #838241 & 780691 (basicly the same bug)
12171         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
12172         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
12173
12174 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
12175
12176         * src/SDCCmain.c (linkEdit): "fix" #834252
12177
12178 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12179
12180         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
12181         * src/SDCCast.h,
12182         * src/SDCC.y: fixed bug #819403
12183
12184 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12185
12186         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
12187         the reentrant attribute.
12188         * src/hc08/gen.c (genPackBits): added missing stack readjustment
12189         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
12190         simulation
12191         * src/SDCCast.c (decorateType): fixed bug with storage class not being
12192         updated during pointer dereference; f.e. ~(((char *)1)*) was being
12193         erroneously reduced to a literal.
12194         * src/hc08/ralloc.c (packRegisters, rematStr),
12195         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
12196         some cases
12197
12198 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12199
12200         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
12201         * doc/sdccman.lyx: changed from 'article' to 'book'
12202         * doc/Makefile: readded test_suite_spec and cdbfileformat
12203
12204 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
12205
12206         * device/include/stdlib.h: include malloc.h to comply with ANSI
12207         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
12208
12209 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12210
12211         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
12212         * doc/clean.mk: also remove *.out files
12213         * doc/sdccman.lyx: some additions, larger top/bottom margins
12214
12215 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12216
12217         * src/SDCC.y: fixed bug #837365
12218         * support/regression/tests/bitopcse.c
12219         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
12220         a symbol (might be valop instead)
12221         * device/lib/Makefile.in: added errno.c to HC08SOURCES
12222         * device/lib/clean.mk: added hc08 to the cleaning list
12223
12224 2003-11-04  Borut Razem <borut.razem AT siol.net>
12225
12226         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
12227           made 2003-11-04
12228         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
12229           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
12230           malloc is declared in standard stdlib.h
12231
12232 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12233
12234         * device/lib/hc08/Makefile: need to clean .rel not .o files
12235         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
12236
12237 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12238
12239         * src/port.h,
12240         * src/hc08/main.c,
12241         * src/mcs51/main.c,
12242         * src/ds390/main.c,
12243         * src/z80/main.c,
12244         * src/avr/main.c,
12245         * src/pic/main.c,
12246         * src/pic16/main.c,
12247         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
12248         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
12249         tests (which uses the port's oclsExpense function)
12250         * src/SDCC.y,
12251         * src/SDCCast.c,
12252         * src/SDCCicode.c,
12253         * src/hc08/gen.c,
12254         * src/ds390/gen.c,
12255         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
12256
12257 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12258
12259         * src/SDCCcse.c (ifxOptimize),
12260         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
12261         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
12262         deleting the IFX iCode.
12263         * src/hc08/ralloc.c: reduced unneeded slocs
12264         * src/hc08/gen.c: fixed bug in asmopToBoolean
12265
12266 2003-11-04  Borut Razem <borut.razem AT siol.net>
12267
12268         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
12269           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
12270           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
12271           transferred to configure
12272
12273 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
12274
12275         Use headers defined in the C[++] standards:
12276         * sim/ucsim/gui.src/serio.src/fileio.cc
12277         * sim/ucsim/gui.src/serio.src/frontend.cc
12278         * sim/ucsim/gui.src/serio.src/main.cc
12279         * sim/ucsim/gui.src/serio.src/posix_signal.cc
12280         * support/Util/NewAlloc.c
12281         * as/hc08/lklibr.c
12282         * as/mcs51/lklibr.c
12283         * as/z80/aslist.c
12284         * as/z80/assym.c
12285
12286 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12287
12288         * Added MSVC projects for hc08 assembler and linker:
12289         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
12290         /as/hc08/link_hc08.dsp
12291
12292 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
12293
12294         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
12295
12296 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
12297
12298         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
12299
12300 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12301
12302         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
12303
12304 2003-10-31  Borut Razem <borut.razem AT siol.net>
12305
12306         * support/cpp2/cpplib.h,
12307           support/cpp2/cpplib.c,
12308           support/cpp2/cpplex.c,
12309           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
12310           to switch _asm block preprocessing on / off. Default is
12311           #pragma preproc_asm +
12312
12313 2003-10-31  Borut Razem <borut.razem AT siol.net>
12314
12315         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
12316           when outputting comment blocks (when executed with -C option) and
12317           _asm (SDCPP specific) blocks
12318
12319 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12320
12321         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
12322
12323 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
12324
12325         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
12326
12327 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
12328
12329         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
12330         * src/SDCCast.c (decorateType): fixed bug #832664
12331
12332 2003-10-31  Borut Razem <borut.razem AT siol.net>
12333
12334         * support/cpp2/cpplex.c: fixed for SDCPP:
12335           comments(when executed with -C option) and _asm blocks
12336           were included even if they where in skipped #if block.
12337           Applied solution from GCC cpp 3.3.2
12338
12339 2003-10-31  Borut Razem <borut.razem AT siol.net>
12340
12341         * src/SDCC.lex: sdcc now understands both formats:
12342           '# <line_number> <file_name>' and
12343           '#line <line_number> <file_name>'
12344         * support/cpp2/cppmain.c: sdcpp now generates the standard
12345           '# <line_number> <file_name>' instead of former
12346           '#line <line_number> <file_name>'
12347
12348 2003-10-30  Borut Razem <borut.razem AT siol.net>
12349
12350         * support/cpp2/cpphash.h,
12351         * support/cpp2/cpplib.h
12352         * support/cpp2/cpplex.c,
12353         * support/cpp2/cppmain.c,
12354         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
12355
12356 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12357
12358         Fixed a number of problems revealed by bug #827883.
12359         * src/SDCCloop.c (loopInvariants): Spill location of the
12360         result operand should be recomputed if extracted from
12361         a loop. Also, don't extract assignments of an iTemp
12362         from a literal.
12363         * src/SDCCast.c (isConformingBody): loop reversal should
12364         not occur if the control variable is involved with a
12365         relational operator.
12366
12367 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
12368
12369         * .version: bumped to 2.3.6 to reflect the big improvements
12370         made by Erik and Klaus. Thanks!
12371
12372 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
12373
12374         Replaced the livrange code.
12375         * src/SDCClrange.c: added new LR code
12376         * src/SDCCloop.c,
12377         * src/SDCCBBlock.h: removed remainig parts from old LR code
12378         * src/ds390/ralloc.c,
12379         * src/ds390/gen.c: minor fixes to make it work with new code
12380
12381 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12382
12383         * as/hc08/asm.h,
12384         * as/hc08/lkrloc.c,
12385         * src/hc08/gen.c,
12386         * src/hc08/ralloc.c: Fix various warnings related to the hc08
12387         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
12388         (tweaked fix for bug #818696)
12389
12390 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12391
12392         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
12393
12394 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12395
12396         * src/SDCCmain.c,
12397         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
12398         * src/mcs51/gen.c (gencjneshort),
12399         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
12400         more efficient (per Scott Bronson's suggestion)
12401
12402 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12403
12404         Extended the semantics of the critical keyword to include
12405         individual statements. See RFE #827755 and #799831
12406         * src/SDCC.y
12407         * src/SDCCicode.c
12408         * src/SDCCopt.c
12409         * src/SDCCast.c
12410         * support/Util/SDCCerr.c
12411         * support/Util/SDCCerr.h
12412         * src/mcs51/gen.c
12413         * src/ds390/gen.c
12414         * src/hc08/gen.c
12415
12416 2003-10-19  Borut Razem <borut.razem AT siol.net>
12417
12418         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
12419
12420 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12421
12422         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
12423         Fixed bug #818696
12424         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
12425         and predecrement operand is displayed
12426
12427 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
12428
12429         * src/SDCCval.c (valMinus): fixed bug #826041
12430
12431 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12432
12433         Some hc08 related updates that I missed earlier
12434         * sim/ucsim/stypes.h
12435         * support/regression/ports/hc08/spec.mk
12436
12437 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12438
12439         New target "hc08" for the Motorola 68hc08 family of micros
12440
12441         * configure
12442         * configure.in
12443         * Makefile
12444         * src/hc08/*
12445         * src/SDCCmain.c
12446         * src/port.h
12447         * sim/ucsim/hc08.src/*
12448         * sim/ucsim/configure.in
12449         * src/ucsim/configure
12450         * sim/ucsim/packages_in.mk
12451         * as/hc08/*
12452         * as/Makefile
12453         * device/include/mc68hc908qy.h
12454         * device/lib/hc08/*
12455         * device/lib/Makefile.in
12456         * support/regression/ports/hc08/*
12457         * support/regression/Makefile
12458
12459 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12460
12461         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
12462         regression test
12463         * src/ds390/gen.c (genCast): fixed bug #821957
12464
12465 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
12466
12467         * device/lib/logf.c: "fixed" overlay bug
12468         * support/regression/ports/host/spec.mk: added m library
12469         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
12470         * support/regression/tests/float_trans: added (for Eric)
12471
12472 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
12473
12474         * src/mcs51/gen.c (genCpl): fixed bug
12475         http://sf.net/mailarchive/message.php?msg_id=6263915
12476
12477 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
12478
12479         * src/SDCCast.c (decorateType): added extended constant folding
12480         * src/SDCCsymt.c (computeType): cleanup
12481         * src/SDCCval.c (valShift): minor optimization
12482         * support/regression/tests/ast_constant_folding.c: added
12483
12484 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12485
12486         * src/SDCCmain.c: removed some unintended changes
12487
12488 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12489
12490         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
12491         * src/z80/gen.c: fixed part of bug #817589
12492         * src/SDCCsymt.c (checkFunction): fixed bug #817895
12493
12494 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
12495
12496         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
12497         * src/SDCCcflow.c
12498         * src/SDCCcse.c
12499         * src/SDCCdflow.c
12500         * src/SDCClabel.c
12501         * src/SDCClrange.c
12502         * src/SDCCmem.c
12503         * src/SDCCopt.c
12504         * src/SDCCpeeph.c
12505         * src/SDCCset.c
12506         * src/avr/ralloc.c
12507         * src/ds390/ralloc.c
12508         * src/izt/ralloc.c
12509         * src/mcs51/ralloc.c
12510         * src/pic/ralloc.c
12511         * src/pic16/ralloc.c
12512         * src/xa51/ralloc.c
12513         * src/z80/ralloc.c
12514         * src/z80/gen.c: removed unused label "release:"
12515
12516 2003-10-06  Borut Razem <borut.razem AT siol.net>
12517
12518         * src/SDCC.lex: removed definition of unused variables
12519           save_optimize and save_options
12520
12521 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
12522
12523         * clean.mk: removed '=' in "-maxdepth=1"
12524         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
12525         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
12526
12527 2003-10-06  Borut Razem <borut.razem AT siol.net>
12528
12529         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
12530           my_unput() replaced by unput()
12531
12532 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
12533
12534         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
12535         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
12536         type-punned pointer will break strict-aliasing rules"
12537         Old LR behaviour is again default; Klaus' LR can be choosen by
12538         defining the environment variable LRKLAUS
12539         * src/SDCCBBlock.h
12540         * src/SDCCloop.c
12541         * src/SDCClrange.c
12542         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
12543         * clean.mk: fixed removal of files in bin/CVS/
12544         * device/lib/clean.mk: fixed removal of directories small and large
12545         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
12546         * src/SDCCicode.c,
12547         * src/SDCCval.c: removed superflous test for pedantic
12548
12549 2003-10-05  Borut Razem <borut.razem AT siol.net>
12550
12551         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
12552           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
12553           message "unmatched #pragma SAVE and #pragma RESTORE"
12554
12555 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12556
12557         * doc/sdccman.lyx: various additions and updates (interrupts, inline
12558           assembly, critical functions, atomic, nojtbound)
12559
12560 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
12561
12562         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
12563         * src/SDCCBBlock.h
12564         * src/SDCCloop.c
12565         * src/SDCCloop.h
12566         * src/SDCClrange.c
12567
12568 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12569
12570         * src/z80/gen.h,
12571         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
12572         * src/mcs51/gen.h
12573         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
12574         * src/ds390/gen.h
12575         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
12576         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
12577         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
12578
12579 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12580
12581         * src/z80/gen.c (genRet): fixed bug #524753
12582         * src/z80/gen.c (genCast): fixed internal error on cast from
12583         pointer to long
12584         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
12585         fix for bug #477835 to the z80
12586         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
12587         for tracking iCodes in the peephole optimizer for z80
12588
12589 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12590
12591         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
12592         the other part of bug #814548
12593         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
12594
12595 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
12596
12597         * src/SDCCcse.c: fixed part of bug #814548
12598
12599 2003-09-28  Borut Razem <borut.razem AT siol.net>
12600
12601         * src/asm.c: rewrite of printILine() to use temporary file instead
12602           a pipe
12603         * src/xa51/main.c: commented out declaration of int rewinds
12604
12605 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12606
12607         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
12608
12609 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12610
12611         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
12612         * src/asm.c (printILine): Fixed bug #811015
12613
12614 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12615
12616         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
12617         freeing.
12618
12619 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12620
12621         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
12622         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
12623         to correctly handle general case of AOP_PAIRPTR
12624         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
12625
12626 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12627
12628         * src/mcs51/ralloc.c (fillGaps),
12629         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
12630         register positioning bug)
12631
12632 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
12633
12634         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
12635
12636 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12637
12638         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
12639         genCodePointerGet, genGenPointerGet, genFarPointerSet,
12640         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
12641         (ralloc doesn't intentionally do this now, but perhaps later)
12642         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
12643         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
12644         register positioning bugs (Fixed bug #762602 and #795325)
12645         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
12646         (Fixed bug #808779)
12647         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
12648         lines that --i-code-in-asm generates
12649
12650 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12651
12652         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
12653         trying to fclose a FILE* that was already closed.
12654
12655 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12656
12657         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
12658         of const struct should be treated as if const themselves)
12659
12660 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
12661
12662         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
12663
12664 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12665
12666         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
12667         Unix (/n) and DOS (/r/n) line terminations.
12668
12669 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12670
12671         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
12672         bug #613775
12673
12674 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12675
12676         * src/mcs51/gen.c (genFunction, genEndFunction),
12677         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
12678         and restore of EA so that stack offsets to parameters are
12679         correct when using both critical and reentrant/stack-auto.
12680         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
12681         size (can be triggered in error if sloc is shared between
12682         different sized objects)
12683         * device/include/float.h: fixed macros to explicitly use
12684         unsigned long where needed
12685
12686 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
12687
12688         Feature req. 799831: added code to allow nesting of critical functions
12689         * src/mcs51/gen.c (genFunction, genEndFunction)
12690         * src/ds390/gen.c (genFunction, genEndFunction)
12691
12692 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12693
12694         * src/SDCCsymt.c (sclsFromPtr),
12695         * src/SDCCsymt.h,
12696         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
12697         support for standard C idiom of memory mapped variables; for
12698         example, *((xdata int*)0x1234) = 1 is now internally equivalent
12699         to xdata int at 0x1234 tempvar = 1.
12700         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
12701         provided by Akiya ISHIDA
12702
12703 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
12704
12705         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
12706         * src/SDCCval.c (constVal): added reduction from int to char
12707         * src/SDCCval.c (valMult, valDiv): fixed sign handling
12708         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
12709         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
12710         to ignore the sign
12711         * support/regression/tests/shifts.c: fixed
12712
12713 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12714
12715         * src/z80/gen.c (genXor): Fixed bug #805445
12716
12717 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12718
12719         Fixed bug #621531 (const & volatile confusion in the type chain).
12720         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
12721         refer to the const or volatile state of the pointer itself.
12722
12723         * src/SDCCast.c
12724         * src/SDCCglue.c
12725         * src/SDCCicode.c
12726         * src/SDCCsymt.c
12727         * src/SDCCval.c
12728         * src/SDCC.y
12729         * src/SDCCsymt.h
12730         * src/pic/gen.c
12731         * src/pic/ralloc.c
12732         * src/pic16/gen.c
12733         * src/pic16/ralloc.c
12734         * support/regression/tests/const.c
12735
12736 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12737
12738         When checking for duplicated modules, use absolute paths
12739         instead of relative paths.  Files changed:
12740
12741         * as/mcs51/lklib.c
12742         * link/z80/lklib.c
12743
12744 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12745
12746         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
12747
12748 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12749
12750         * device/include/string.h: added size_t typedef, changed
12751         prototypes to use size_t, eliminated separate reentrant and
12752         non-reentrant declarations, added _memmove declaration
12753         * device/lib/_memcpy.c: changed to use size_t instead of int,
12754         changed /4 to >>2 to avoid division library call
12755         * device/lib/_memcmp.c,
12756         * device/lib/_memset.c,
12757         * device/lib/_strncat.c,
12758         * device/lib/_strncpy.c,
12759         * device/lib/_strncmp.c: changed to use size_t instead of int
12760         * device/lib/_memmove.c: new file (fixed bug #772294)
12761         * device/lib/Makefile.in: added _memmove.c
12762         * device/lib/z80/asm_strings.s: fixed bug #772290
12763         * support/regression/tests/bitfields.c: attempt to fix host assertion
12764         failure on amd64-unknown-linux2.2
12765
12766 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12767
12768         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
12769         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
12770         * as/z80/asmain.c (main): fixed bug #801766
12771
12772 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
12773
12774         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
12775         compilers
12776
12777 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12778
12779         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
12780         reported in bug #800609
12781
12782 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
12783
12784         * Top header beautifications in src/pic16 directory:
12785           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
12786           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
12787           pcoderegs.h, ralloc.c, ralloc.h
12788         * main.c: added top header and GPL license notice
12789         * pcode.c: fixed the if-conditional warning
12790
12791 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
12792
12793         * device/lib/_mullong.c: replaced int by short for gcc
12794
12795 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12796
12797         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
12798         and JUMPTABLE iCodes properly now (worked by accident before)
12799         * src/mcs51/gen.c (leftRightUseAcc),
12800         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
12801         iCode properly now. Use getSize instead of nRegs since a & b
12802         aren't part of the nRegs tally.
12803
12804 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
12805
12806         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
12807         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
12808           before instructions that use the _STATUS register
12809
12810 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
12811
12812         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
12813         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
12814         fetching of the pointer
12815         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
12816         copied from genNearPointerSet()
12817         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
12818         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
12819         If they pop r0/r1 they must be called in the opposite order than aopOp().
12820         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
12821         (resp. --stack-auto), prepared for --xstack
12822
12823 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12824
12825         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
12826
12827 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
12828
12829         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
12830         these ports have their own __sdcc_external_start()
12831
12832 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
12833
12834         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
12835         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
12836         type for bits was changed. It resulted in bit variables becoming
12837         global, which is not permitted in PIC 14 assembly output.
12838
12839 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12840
12841         * doc/sdccman.lyx: various additions and updates. Rearranged sections
12842
12843 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12844
12845         Z80 and MCS51 linkers complaint if a public symbol is defined
12846         in more than one library module:
12847
12848         * as/mcs51/lklib.c
12849         * link/z80/lklib.c
12850         * as/mcs51/Makefile.in
12851
12852 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12853
12854         A few small changes that speed up the peephole optimizer.
12855
12856         * src/SDCCpeeph.c
12857
12858 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12859
12860         Try to make the peephole optimizer smarter by maintaining
12861         an association between the assembly source code and the
12862         iCodes that originated them. Put this information to use
12863         with a new peephole rule condition "notVolatile" so that
12864         the rules can be aggressive yet still safe.
12865
12866         * src/SDCCpeeph.c
12867         * src/SDCCpeeph.h
12868         * src/mcs51/gen.c
12869         * src/mcs51/peeph.def
12870
12871 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12872
12873         Fixed bug #741761
12874
12875         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
12876         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
12877         if the left or right operand symbols have the accuse flag set.
12878
12879 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12880
12881         Changed the type of the result of the ! (NOT) operator to char;
12882         previously it returned the same type as the source. This allows
12883         us to eliminate all the genFloatNot functions (all of its target
12884         implementations were very buggy) since !float can use the same
12885         code as !long now.
12886
12887         * src/SDCCicode.c (ast2iCode): ! returns char
12888         * src/mcs51/gen.c (genNot, genNotFloat),
12889         * src/ds390/gen.c (genNot, genNotFloat),
12890         * src/z80/gen.c (genNot, genNotFloat),
12891         * src/pic/gen.c (genNot, genNotFloat),
12892         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
12893
12894 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
12895
12896         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
12897         1. Interrupt would not compile properly. Ensure PCLATH register is saved
12898            during interrupts. Ensure WSAVE is located at a shared bank address.
12899         2. Fixed page selection in some places
12900         3. Fixed BTFSS/C to where necessary use registers directly and not simply
12901            the registers name strings.
12902         4. Fixed "signed / unsigned compare" compiler warnings.
12903         5. The PIC port manages its own allocation of the general purpose
12904            registers, but makes no attempt to reuse them. As a result when
12905            compiling it soon runs out of general purpose registers. Some
12906            additional code was added to the files pcode.c and device.c to walk
12907            through the function call tree and rename the registers so that they
12908            get reused.
12909
12910         * src/pic/device.c
12911         * src/pic/gen.c
12912         * src/pic/glue.c
12913         * src/pic/pcode.c
12914         * src/pic/pcode.h
12915         * src/pic/ralloc.c
12916         * src/pic/ralloc.h
12917         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
12918         genPlus() & genMinus() when the result is the same as left or right
12919
12920 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12921
12922         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
12923
12924 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12925
12926         Made bitfield a distinct type from bit so that bitfields
12927         convert as per ANSI C and bits retain their traditional
12928         boolean style behaviour. Implemented bitfield support in
12929         the z80 port.
12930
12931         * src/SDCCsymt.h,
12932         * src/SDCCsymt.c,
12933         * src/SDCCast.c,
12934         * src/cdbFile.c,
12935         * src/mcs51/gen.c,
12936         * src/ds390/gen.c: bit v bitfield split
12937         * src/z80/gen.c: New support for bitfields
12938         * support/regression/tests/bitfields.c: reenabled z80,
12939         added more tests
12940
12941 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12942
12943         Rules 246.x, 247.x relate to bitfields, the others speed up
12944         access to xdata mapped I/O devices.
12945
12946         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
12947
12948 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12949
12950         Cleaned up genPackBits and genUnpackBits and added two helper
12951         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
12952         for literal assignments in genPackBits (thanks to Frieder for
12953         reminding me).
12954
12955         * src/mcs51/gen.c
12956         * src/ds390/gen.c
12957
12958 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12959
12960         Fixed bug #748310 (pointer to function type mishandled when the
12961         function name is omitted). Also fixed a SIGSEGV when a function
12962         attribute (reentrant, etc) is used on a non-function or on a
12963         function but misplaced before the parameter list.
12964
12965         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
12966         bug #748310
12967         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
12968         * support/Util/SDCCerr.h,
12969         * support/Util/SDCCerr.c: Added func attr misuse error msg
12970
12971 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
12972
12973         Fixed bug #787649 by anonymous
12974         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
12975         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
12976
12977 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12978
12979         Fixed numerous bitfield problems.
12980
12981         * src/SDCC.y: More bitfield related error checking
12982         * src/SDCCsymt.h,
12983         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
12984         * support/Util/SDCCerr.h,
12985         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
12986         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
12987         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
12988         * support/regression/tests/bitfields.c: tests added
12989
12990 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12991
12992         Made the constant following the "interrupt" keyword optional. If
12993         omitted, the function will not automatically be given an entry
12994         in the interrupt vector table (similar to #pragma NOIV, but
12995         less syntacticly kludgy). The interrupt number is also now
12996         range checked. Also fixed a bug in the high order bit example
12997         in the manual.
12998
12999         * src/SDCC.y
13000         * src/SDCCmem.c
13001         * src/SDCCglue.c
13002         * src/SDCCsymt.h
13003         * support/Util/SDCCerr.c
13004         * support/Util/SDCCerr.h
13005         * doc/sdccman.lyx
13006
13007 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
13008
13009         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
13010         * src/SDCCicode.c (operandOperation): rewritten some ops
13011         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
13012         * src/SDCCsymt.c (computeType): literals are handled the same way as any
13013         other type
13014         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
13015         be re-activated by defining REDUCE_LITERALS)
13016         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
13017         unsigned, but are signed by default
13018         * src/SDCCval.c (constVal): rearranged
13019         * src/SDCCval.c (valMod): preliminary fix
13020         * src/SDCCval.c (valCastLiteral): use TYPE_* types
13021         * support/regression/literalop.c: added, work in progress
13022
13023 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13024
13025         Generate warnings for useless declarations like "char data;"
13026         that don't do what new users expect.
13027
13028         * src/SDCC.y
13029         * support/Util/SDCCerr.h
13030         * support/Util/SDCCerr.c
13031
13032 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
13033
13034         * src/SDCCval.c (valMult): fix overflow detection of negative int
13035
13036 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13037
13038         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
13039
13040         Changes to support big endian targets:
13041
13042         * src/ports.h
13043         * src/SDCCglue.c
13044         * src/avr/main.c
13045         * src/ds390/main.c
13046         * src/izt/i186.c
13047         * src/mcs51/main.c
13048         * src/pic/main.c
13049         * src/pic16/main.c
13050         * src/xa51/main.c
13051         * src/z80/main.c
13052
13053 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
13054
13055         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
13056         * device/lib/time.c: fixed warning "integer overflow in expression"
13057
13058 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
13059
13060         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
13061         * src/SDCCval.c (constVal): changed default to signed; hex and octal
13062         constants are unsigned; added recognition of "u" flag for unsigned
13063         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
13064         * src/SDCCval.c (valDiv, valMod): fixed signdness
13065         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
13066         signedness of modulo, left and right shift
13067         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
13068         * support/Util/SDCCerr.h: added warning W_INT_OVL
13069         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
13070         * src/SDCCast.c (ast_print): improved output of constants
13071
13072 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13073
13074         Fixed some warnings when building with MSVC:
13075
13076         * as/mcs51/asdata.c
13077         * as/z80/asdata.c
13078         * as/mcs51/asm.h
13079         * as/z80/asm.h
13080         * link/z80/aslink.h
13081         * link/z80/lkdata.c
13082         * link/z80/lkeval.c
13083         * link/z80/lkgb.c
13084         * link/z80/lkihx.c
13085         * link/z80/lks19.c
13086         * link/z80/lksym.c
13087         * support/cpp2/cpplib.c
13088         * src/ds390/gen.c
13089         * src/mcs51/gen.c
13090
13091 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
13092
13093         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
13094
13095 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13096
13097         * support/librarian/clean.mk: Do not remove Makefile.
13098         * support/librarian/Makefile: added.
13099
13100 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13101
13102         Added librarian to MSVC build:
13103         * all.dsp
13104         * sdcc.dsw
13105         * support/librarian/librarian.dsp
13106
13107         'configure' not needed for librarian, removed:
13108         * support/librarian/configure
13109         * support/librarian/configure.in
13110         * support/librarian/config_in.h
13111         * support/librarian/Makefile.in
13112
13113         Hopefully these ones built the librarian and the rest of sdcc properly:
13114         * Makefile
13115         * Makefile.common.in
13116
13117         Messed up 'configure', so revert to previous version:
13118         * configure
13119         * configure.in
13120
13121 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
13122
13123         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
13124         there, while the mantissa of a double is "only" 53 bits wide.
13125
13126 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13127
13128         Adding sdcclib to the build.  MSVC project coming soon.
13129         Files added/changed:
13130
13131         * support/librarian/clean.mk
13132         * support/librarian/configure
13133         * support/librarian/configure.in
13134         * support/librarian/config_in.h
13135         * support/librarian/Makefile.bcc
13136         * support/librarian/Makefile.in
13137         * support/librarian/sdcclib.c
13138         * Makefile.bcc
13139         * Makefile
13140         * Makefile.common.in
13141         * configure
13142         * configure.in
13143
13144 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13145
13146         Linker now complaints if linked modules have conflicting options, for
13147         example, one compiled using --model-large and another one compiled with
13148         --model-small.  The following files were modified:
13149
13150         * as/mcs51/asdata.c
13151         * as/mcs51/aslink.h
13152         * as/mcs51/asm.h
13153         * as/mcs51/asmain.c
13154         * as/mcs51/asout.c
13155         * as/mcs51/i51pst.c
13156         * as/mcs51/lkdata.c
13157         * as/mcs51/lklibr.c
13158         * as/mcs51/lkmain.c
13159         * as/z80/asdata.c
13160         * as/z80/asm.h
13161         * as/z80/asmain.c
13162         * as/z80/asout.c
13163         * as/z80/z80pst.c
13164         * link/z80/aslink.h
13165         * link/z80/lkdata.c
13166         * link/z80/lklibr.c
13167         * link/z80/lkmain.c
13168         * src/SDCCglue.c
13169
13170 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13171
13172         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
13173         as/mcs51/lklibr.c: Generate a warning when a library is not found.
13174
13175 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
13176
13177         * src/z80/mappings.i: fix _mul[us][int,long] entries
13178
13179 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13180
13181         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
13182
13183 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
13184
13185         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
13186         * support/regression/tests/bitopcse.c: added
13187         fixed warning:
13188         * src/avr/gen.c:
13189         * src/pic/gen.c:
13190         * src/pic16/gen.c:
13191         * src/z80/gen.c:
13192         * src/xa51/gen.c:
13193
13194 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13195
13196         added support for new library format to z80, gbz80 linkers:
13197         *link/z80/aslink.h
13198         *link/z80/lklex.c
13199         *link/z80/lklib.c
13200         *link/z80/lklist.c
13201
13202 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
13203
13204         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
13205         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
13206
13207 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
13208
13209         added DUMMY_READ_VOLATILE:
13210         * src/SDCC.y:
13211         * src/avr/gen.c:
13212         * src/xa51/gen.c:
13213         * src/z80/gen.c:
13214         * src/pic/gen.c:
13215         * src/pic16/gen.c:
13216         * src/mcs51/gen.c:
13217         * src/ds390/gen.c:
13218         * src/SDCCcse.c (algebraicOpts): many improvements
13219         * src/SDCCcse.h: removed algebraicOpts()
13220         * src/SDCCicode.c (picDummyRead): added
13221
13222 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13223
13224         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
13225         "Insufficient space in data memory".
13226
13227 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13228
13229         * src/mcs51/gen.c: fixed bug #771358
13230         * src/z80/gen.c: fixed bug #759087
13231
13232 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
13233
13234         * src/pic16/glue.c: minor cleanup by Vangelis
13235
13236 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13237
13238         * device/include/regc515c.h: fixed #758477
13239         * device/lib/_gptrget.c: saving some cycles in generic pointer get
13240         * device/lib/_gptrput.c: saved a few bytes
13241         * my tab spacing is 8, yours too?)
13242         * device/lib/_ser.c: process RX bytes earlier than TX bytes
13243         * device/lib/serial.c: process RX bytes earlier than TX bytes
13244         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
13245
13246 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13247
13248         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
13249
13250 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13251
13252     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
13253
13254 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
13255
13256         * device/lib/Makefile.in: bad fix, reverted to 1.43
13257
13258 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
13259
13260         * device/lib/Makefile.in: added missing z80 object files
13261
13262 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
13263
13264         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
13265         pic16 progress by Vangelis:
13266         * src/SDCCglobl.h:
13267         * src/SDCCmain.c:
13268         * src/pic/Makefile:
13269         * src/pic:
13270         * pic/Makefile:
13271         * pic16/device.c:
13272         * pic16/device.h:
13273         * pic16/gen.c:
13274         * pic16/gen.h:
13275         * pic16/genarith.c:
13276         * pic16/glue.c:
13277         * pic16/main.c:
13278         * pic16/pcode.c:
13279         * pic16/pcode.h:
13280         * pic16/pcodepeep.c:
13281         * pic16/peeph.def:
13282
13283 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13284
13285     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
13286
13287 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13288
13289     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
13290     added gbz80 build to MSVC project.
13291     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
13292     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
13293     from 8051 stuff and setup so it links using a .lnk file.
13294
13295 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13296
13297     * support/librarian/sdcclib.c: sdcc librarian.
13298     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
13299     with sdcclib.
13300
13301 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13302
13303     * as/mcs51/lkmain.c: properly handle extensions in function afile.
13304
13305 2003-07-02  Borut Razem <borut.razem AT siol.net>
13306
13307         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
13308         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
13309         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
13310         src/xa51/main.c, src/z80/main.c:
13311         virtualization of glue() function: each port has it's own glue function,
13312         which is accessed by do_glue function pointer in PORT.general structure
13313
13314 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
13315
13316         * DS800C400 fun, improved ROM interface and tinibios.
13317
13318 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
13319
13320         * More support for DS80C400. Now includes beginning of interface to ROM.
13321
13322 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
13323
13324         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
13325
13326 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13327
13328         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
13329
13330 2003-06-19  Borut Razem <borut.razem AT siol.net>
13331
13332         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
13333
13334 2003-06-19  Borut Razem <borut.razem AT siol.net>
13335
13336         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
13337         fixed Z80 port - crt0.o: cannot open.
13338
13339 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
13340
13341         * support/Util/MySystem.c (merge_command): revert bad fix
13342
13343 2003-06-18  Borut Razem <borut.razem AT siol.net>
13344
13345         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
13346
13347 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13348
13349         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
13350         option --use-stdout sends errors to stdout instead of stderr.
13351
13352 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
13353
13354         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
13355
13356 2003-06-15  Borut Razem <borut.razem AT siol.net>
13357
13358         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
13359         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
13360         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
13361         fixed width array of pointers replaced with sets;
13362         multiple include and lib paths ared transferred to preprocessor and linker
13363         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
13364         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
13365         fixed width array of pointers
13366         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
13367         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
13368         fixupPath(), getPathDifference()
13369         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
13370         fixed width array of pointers
13371
13372 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
13373
13374         * src/pic16/ralloc.c: fix warnings
13375         * src/pic16/pcode.c: fix warning
13376
13377 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
13378
13379          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
13380         know all the details, but essentially this set of changes enable
13381         the pic16 port to generate movff instructions and generate assembler
13382         directives,
13383         * src/SDCCmain.c:
13384         * src/pic16/gen.c:
13385         * src/pic16/glue.c:
13386         * src/pic16/pcode.c:
13387         * src/pic16/device.c:
13388         * src/pic16/main.c:
13389         * src/pic16/pcode.h:
13390         * src/pic16/pcoderegs.c:
13391         * src/pic16/ralloc.c:
13392         * src/pic16/ralloc.h:
13393
13394 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13395
13396         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
13397         added option --vc, so sdcc errors and warnings are compatible with
13398         Microsoft Visual Studio.
13399
13400 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13401
13402         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
13403           device/lib/libfloat.lib: added atof function.
13404
13405 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
13406
13407         * doc/sdccman.lyx: updated to Lyx 1.3
13408         * doc/cdbfileformat.lyx: updated to Lyx 1.3
13409         * doc/test_suite_spec.lyx: updated to Lyx 1.3
13410         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
13411
13412 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
13413
13414         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
13415
13416 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13417
13418         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
13419           additions to the "related tools/documentation" section
13420
13421 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
13422
13423         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
13424
13425 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
13426
13427         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
13428         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
13429
13430 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
13431
13432         * doc/sdccman.lyx: fix double dash and other minor things
13433         * doc/Makefile: fix double dash
13434
13435 2003-05-28  Karl Bongers(patches from Martin Helmling)
13436         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
13437           condition and ignore commands.
13438
13439 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13440
13441         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
13442           is in parts still quite out of date, I did changes as far as I felt makes sense
13443           for a non-native english speaker.
13444           Please feel free to add to the manual or to correct my changes.
13445         * doc/Makefile: undid touching the date of intermediate tex files.
13446
13447 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13448
13449         * doc/sdccman.lyx: Manual has an index now
13450
13451 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
13452
13453         Finalize muluint/mulsint and mululong/mulslong merging:
13454         * device/lib/_mulint.c
13455         * device/lib/_mullong.c
13456         * device/lib/gbz80/mul.s
13457         * device/lib/gbz80/stubs.s
13458         * device/lib/z80/mul.s
13459         * device/lib/z80/stubs.s
13460         * src/SDCCsymt.c (initCSupport)
13461
13462 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13463
13464         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
13465         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
13466           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
13467           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
13468           instead of /Zm500.
13469
13470 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13471
13472         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
13473           the regression tests I'm not brave enough to enable 245.b, 245.c
13474         * doc/sdccman.lyx: added latex preamble for hyperref package.
13475           Using pdflatex this will give you a hyperlinked pdf file with
13476           bookmarks. (prepend '%' before /usepackage if this breaks something)
13477
13478 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13479
13480          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
13481
13482 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
13483
13484         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
13485
13486 2003-05-21    <johan AT balder>
13487
13488         * src/SDCCglue.c (printIval): fixed bug #739934
13489
13490 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
13491
13492         Applied patch from bug 737905 (renamed yylineo to mylineno):
13493         * src/altlex.c
13494         * src/SDCCast.c
13495         * src/SDCglobl.h
13496         * src/SDCC.lex
13497         * src/SDCCsymt.c
13498         * src/SDCCval.c
13499         * src/pic16/pcode.c: Cleaned warnings
13500         * src/pic16/pcodeflow.c: Cleaned warnings
13501         * src/pic16/pcoderegs.c: Cleaned warnings
13502
13503 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
13504
13505         * src/pic16/pcode.c: Cleaned warnings
13506         * src/pic16/pcodepeep.c: Cleaned warnings
13507         * src/pic16/ralloc.c: Cleaned warnings
13508
13509 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
13510
13511         * doc/sdccman.lyx: fixed bug 739745
13512         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
13513
13514 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
13515
13516         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
13517         it can be defined with CFLAGS when running configure
13518         * src/SDCCmain.c: fixed compiling + linking with object files
13519
13520 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
13521
13522         * configure.in: configure for pic16 port,
13523             added --disable-pic16-port
13524         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
13525         * src/SDCCmain.c: linkOptions is changed to set *,
13526             added if/endif conditional macros to remove options help
13527             messages from optionsTable when a port is not configured, added
13528             support for the PIc16 port in the ports table, when executing
13529             the compiler with no port specified on command line, a default
13530             port is selected with the new macro DEFAULT_PORT which is
13531             defined in port.h, in setDefaultOptions() linkOptions is removed
13532             from initialization assignment, since now it is a set,
13533             parseCmdLine uses setParseWithComma for linkOptions, in
13534             linkEdit() linkOptions are accessed with new function indexSet()
13535             which returns the i'th item of a set variable. See SDCCset.c, in
13536             linkEdit() when calling buildCmdLine(), added linkOptions as
13537             last argument. Now users can pass arguments to gplink via the
13538             -Wl option, main() uses pic16glue() to glue up pic16 programs
13539         * src/SDCCpeeph.c: various changes to support pic16
13540         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
13541             return the i'th item of the set
13542         * src/SDCCset.h: added function prototype for indexSet()
13543         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
13544         * src/clean.mk: added pic16 in CLEANALLPORTS variable
13545         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
13546             added macro DEFAULT_PORT
13547         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
13548         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
13549             generated
13550         * src/pic16/glue.c: commented out some error producing lines
13551         * src/pic16/main.c: __config directives are commented out to stop
13552             gpasm complaining and test the linkage with gplink, _linkCmd and
13553             _asmCmd changed to be more gplink and gpasm friendly
13554         * src/pic16/peeph.def: peep rule 3 is commented out, since it
13555             produced an error when parsed, peep rule 12 is added to utilize
13556             movff, but it is commented out since the pCode does not support
13557             yet a command with 2 address arguments
13558
13559 2003-05-18    <johan AT balder>
13560
13561         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
13562         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
13563 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
13564
13565         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
13566   Added feature to script commands from file.
13567
13568 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
13569
13570         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
13571         * src/SDCCutil.c: include ctype.h for win32
13572
13573 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
13574
13575         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
13576
13577 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
13578
13579         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
13580   Fixed so you can set breakpoints prior to run, run does not stop
13581   on entry now.  Add tbreak.  Other enhancements and fixes for use
13582   with ddd.
13583
13584 2003-05-12  Borut Razem <borut.razem AT siol.net>
13585
13586         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
13587
13588 2003-05-11  Borut Razem <borut.razem AT siol.net>
13589
13590         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
13591         the path of bin directory, so that PATH is the only env. variable, which has to be set
13592         in case of standard installation.
13593         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
13594         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
13595         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
13596
13597 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
13598
13599         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
13600         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
13601         temp files are in the port dir; clean the gen/test directory when
13602         generating new test.c
13603         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
13604         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
13605         * support/regression/tests/zeropad.c: added
13606
13607 2003-05-09    <johan AT balder>
13608
13609         * src/SDCCglue.c: fixed bug #597940
13610
13611 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
13612
13613         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
13614   cache sfr, optimize next,step, fix off by one sourceline,
13615   support ddd list function.
13616         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
13617
13618 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
13619
13620         * support/regression/HTMLgen.py: added compare_s2f()
13621         * support/regression/Makefile: redo 1.27
13622         * support/regression/generate-cases.py: redo 1.5
13623
13624 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
13625
13626         * support/regression/tests/float.c: workaround 33 bit hex constant
13627         * support/regression/tests/simplefloat.c: fix division for host
13628
13629 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
13630
13631         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
13632         that tame's the PIC's over-aggressive optimizer.
13633
13634 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13635
13636          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
13637          support for MSVC.
13638
13639 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
13640
13641         Initial support for DS80C400. "Hello world" runs on TINIm400
13642         (with polled I/O).
13643
13644 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
13645
13646          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
13647          * Some notes on ddd usage added in debugger/README
13648          Martin Helmling adding more features and fixes for ddd GUI debugger.
13649          Code added for nexti, stepi, up, down, and other adjustments.
13650
13651 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
13652
13653         * src/pic/pCodepeep.c non-wildcard asmops are now handled
13654         * src/pic/peeph.def Added two rules to optimize carry manipulation
13655         * src/pic/* removed debug printfs
13656
13657 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
13658
13659         * debugger/mcs51/cmd.c: added header newalloc.h
13660
13661 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
13662
13663         * as/Makefile: new EXEEXT
13664         * as/z80/Makefile: remove trailing slash of BUILDIR
13665         * as/z80/clean.mk: new EXEEXT
13666         * Makefile.common.in: add to CFLAGS (and others), don't replace it
13667         * support/cpp2/Makefile.in: new EXEEXT
13668         * src/pic/glue.c (pic14emitRegularMap): fixed warning
13669
13670 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
13671
13672         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
13673         EXEEXT was introduced to fix all related problems with targets
13674         "clean", "install" and "uninstall"; a couple of further flaws
13675         especially with "clean" have been fixed too
13676         * as/mcs51/Makefile.in
13677         * as/mcs51/clean.mk
13678         * as/z80/Makefile
13679         * Makefile
13680         * clean.mk
13681         * debugger/mcs51/Makefile.in
13682         * debugger/mcs51/clean.mk
13683         * link/z80/Makefile
13684         * link/z80/Makefile.in
13685         * link/z80/clean.mk
13686         * link/Makefile
13687         * packihx/Makefile.in
13688         * packihx/clean.mk
13689         * sim/ucsim/Makefile
13690         * sim/ucsim/clean.mk
13691         * sim/ucsim/avr.src/Makefile.in
13692         * sim/ucsim/avr.src/clean.mk
13693         * sim/ucsim/s51.src/Makefile.in
13694         * sim/ucsim/s51.src/clean.mk
13695         * sim/ucsim/xa.src/Makefile.in
13696         * sim/ucsim/xa.src/clean.mk
13697         * sim/ucsim/z80.src/Makefile.in
13698         * sim/ucsim/z80.src/clean.mk
13699         * sim/ucsim/main_in.mk
13700         * sim/ucsim/packages_in.mk
13701         * sim/ucsim/gui.src/Makefile.in
13702         * sim/ucsim/gui.src/serio.src/Makefile.in
13703         * sim/ucsim/gui.src/serio.src/clean.mk
13704         * src/Makefile.in
13705         * src/clean.mk
13706         * support/cpp2/Makefile.in
13707         * support/cpp2/clean.mk
13708         * support/makebin/Makefile
13709         * support/makebin/clean.mk
13710         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
13711         * doc/sdccman.lyx: --program-suffix no longer needed
13712
13713 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
13714
13715          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
13716          Martin Helmling added support for ddd GUI debugger.
13717          Code added to display assembly, set variables, and other commands
13718          to interface to ddd.
13719
13720 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
13721
13722         * as/Makefile: fix target clean
13723         * as/clean.mk: fix target clean
13724         * as/z80/clean.mk: fix target clean
13725
13726 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
13727
13728         * Makefile.common.in: added  AT EXEEXT AT
13729         * configure.in: removed all mingw32 stuff
13730         * configure: rebuilt from configure.in
13731         * doc/sdccman.lyx: updated section "installation"
13732         * support/scripts/sdcc_mingw32: adapted to configure
13733         * support/scripts/sdcc_cygwin_mingw32: added
13734
13735 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
13736
13737         * src/pic Added object file support for the PIC port
13738         * src/pic Applied patch from Craig Franklin (this started the object file support)
13739         * src/regression Updated the PIC regression tests for object files
13740
13741 2003-04-20  Borut Razem <borut.razem AT siol.net>
13742
13743         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
13744           lklex.c: In function `getfid':
13745           lklex.c:203: warning: array subscript has type `char'
13746         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
13747           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
13748         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
13749           stack handling macros
13750
13751 2003-04-19  Borut Razem <borut.razem AT siol.net>
13752
13753         * "handling space characters in file path" task:
13754         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
13755         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
13756         * support/Util/MySystem.h: make it self-sufficient
13757         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
13758           src/z80/main.c, sdcc/as/mcs51/lklex.c:
13759           handling space characters in file path
13760         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
13761           (it will be used by assemblers, which have their own includes, e.g. gpasm)
13762         * support/Util/MySystem.c: handling space characters in executable's path
13763
13764 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
13765
13766         * as/z80/Makefile: fix permanent rebuild of z80
13767         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
13768         * support/regression/tests/bitfields.c: added Johan's bitfields.c
13769
13770 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
13771
13772         * src/SDCCopt.c: add special case optimization to replace modulo by
13773           a power of two with a bitwise AND.
13774
13775 2003-04-18    <johan AT balder>
13776
13777         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
13778
13779 2003-04-17    <johan AT balder>
13780
13781         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
13782         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
13783
13784 2003-04-13  Borut Razem <borut.razem AT siol.net>
13785
13786         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
13787         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
13788           fixed mingw problem in adl_NORMALIZE_PATH
13789
13790 2003-04-12  Borut Razem <borut.razem AT siol.net>
13791
13792         * fixed "#pragma SAVE/RESTORE can not be nested":
13793         * src/SDCC.lex: reworked pragma handling functions
13794         * sdcc/src/SDCCglobl.h: reworked stack handling macros
13795         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
13796
13797 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
13798
13799         * src/SDCCutil.c (pathEquivalent): defined but not used
13800         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
13801         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
13802         * configure: rebuilt from configure.in
13803         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
13804         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
13805         * device/include/Makefile.in: replace sdcc_datadir
13806         * device/lib/Makefile.in: replace sdcc_datadir
13807         * Makefile.common.in: add LDFLAGS from configure
13808         * packihx/Makefile.in: use LDFLAGS
13809         * src/Makefile.in: use LDFLAGS
13810         * support/cpp2/Makefile.in: add LDFLAGS from configure
13811         * support/makebin/Makefile: use LDFLAGS
13812         * .version: bumped version number to 2.3.5
13813
13814 2003-04-12  Borut Razem <borut.razem AT siol.net>
13815
13816         * completed "different paths" task:
13817         * src/SDCCmacro.c: fixed bug in handling quotes
13818         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
13819         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
13820
13821 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
13822
13823         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
13824
13825 2003-04-11 kevin Vigor <kevin AT vigor.nu>
13826
13827         * ds390/gen.c ds390/peeph.def: fix bug 706781
13828
13829 2003-04-11  Borut Razem <borut.razem AT siol.net>
13830
13831         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
13832
13833 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
13834
13835         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
13836         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
13837          set - this bit used to not be set...).
13838         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
13839           bad code in PIC Port
13840         * src/regression/and2.c added to test bug 609268
13841         * src/regression/Makefile added and2.c to regression test
13842
13843
13844 2003-04-08    <johan AT CP255758-A>
13845
13846         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
13847         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
13848         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
13849
13850 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
13851
13852         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
13853         fix bug #487815
13854         * support/cpp2/Makefile.in: fix bug #487815
13855         * configure: rebuilt from configure.in
13856         * Makefile.common.in: docdir changed, new path suffixes
13857         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
13858         * sdcc_vc_in.h: reflect changes from sdccconf.h
13859         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
13860         * src/SDCCutil.h: remove BINDIR hack
13861         * doc/sdccman.lyx: update new path hierarchy
13862
13863 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
13864
13865         * src/SDCCpeeph.c: added okToRemoveSLOC test
13866
13867 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
13868
13869         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
13870
13871 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
13872
13873         * src/SDCCpeeph.c: added labelIsReturnOnly test
13874         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
13875
13876 2003-04-05    <johan AT balder>
13877
13878         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
13879         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
13880         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
13881         * src/SDCCast.c: fixed a warning
13882         * src/SDCCast.h: fixed a warning
13883         * src/SDCCicode.c (operandFromAst): fixed a warning
13884
13885 2003-04-04    <johan AT balder>
13886
13887         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
13888         * src/SDCCast.c (decorateType): fixed bug #715076
13889         * src/SDCC.y: fixed bug #702907
13890
13891 2003-04-03    <johan AT balder>
13892
13893         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
13894         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
13895         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
13896         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
13897         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
13898
13899 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
13900
13901         * _decdptr.c: fix return values
13902         * _gptrget.c: fix return values
13903         * _gptrgetc.c: fix return values
13904         * _gptrput.c: fix return values
13905         * _mulint.c: fix return values
13906         * as/z80/Makefile: fix 'make -j' problem
13907
13908 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
13909
13910         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
13911         * configure.in: big cleanup, updated to autoconf 2.5x
13912         * configure: rebuilt from configure.in
13913         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
13914         * sdcc_vc_in.h: reflect changes from sdccconf.h
13915         * doc/Makefile: fixed a flaw in "make install"
13916
13917 2003-04-02    <johan AT balder>
13918
13919         * src/ds390/gen.c (genCmp): no comments
13920         * src/mcs51/gen.c (genCmp): no comments
13921         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
13922         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
13923
13924 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
13925
13926         * support/regression/generate-cases.py: place generated file in given sub directory
13927         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
13928         * support/regression/Makefile: improvements for 'make -j';
13929         side effect: it's simpler and faster now
13930
13931 2003-03-31  Borut Razem <borut.razem AT siol.net>
13932
13933         * src/z80/main.c: link-{port} and as-{port} defined without path
13934         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
13935
13936 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
13937
13938         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
13939
13940 2003-03-30  Borut Razem <borut.razem AT siol.net>
13941
13942         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
13943           changed type of list parameter to set
13944         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
13945         * src/port.h: changed type of do_assemble() parameter to set
13946         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
13947           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
13948           definition of "cppoutfilename" macro with NULL value in preProcess()
13949         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
13950         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
13951         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
13952           replaced with set *binPathSet
13953         * shash_add() deallocates the item, if allready exsists, before adding the new one
13954         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
13955
13956 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
13957
13958         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
13959           a nested for loop bug in the PIC port
13960         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
13961           for loops
13962
13963 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
13964
13965         * support/Util/dbuf.h: remove C++ stuff to make it portable
13966
13967 2003-03-28  Borut Razem <borut.razem AT siol.net>
13968
13969         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
13970           literal strings in stringLiteral()
13971         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
13972         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
13973           to the project
13974
13975 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
13976
13977         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
13978
13979 2003-03-26    <johan AT balder>
13980
13981         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
13982         * src/ds390/gen.c (saveRegisters): catched symbol abuse
13983         * src/SDCCast.c (decorateType): fixed " -v < 3"
13984
13985 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
13986
13987         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
13988         Added Lenny Story's debug infrastructure changes:
13989         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
13990         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
13991         * src/cdbFile.c: added
13992         * src/SDCCdebug.c: added
13993         * src/SDCCdebug.h: added
13994         * src/SDCCast.c (createFunction)
13995         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
13996         * src/SDCCmain.c (parseCmdLine, main)
13997         * src/SDCCmem.c (redoStackOffsets)
13998         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
13999         * src/SDCCsymt.h
14000         * src/common.h
14001         * src/avr/gen.c (genAVRCode)
14002         * src/ds390/gen.c (gen390Code)
14003         * src/mcs51/gen.c (gen51Code)
14004         * src/pic/gen.c (genpic14Code)
14005         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
14006         * src/xa51/gen.c (genXA51Code)
14007         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
14008
14009 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14010
14011         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
14012         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
14013
14014 2003-03-22    <johan AT balder>
14015
14016         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
14017
14018 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
14019
14020         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
14021         * doc/cdbfileformat.lyx: added, written by Lenny Story
14022         * doc/Makefile: added cdbfileformat.lyx
14023         * doc/clean.mk: added cdbfileformat.lyx
14024
14025 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
14026
14027         * src/mcs51/peeph.def: fix bug #705773
14028
14029 2003-03-20    <johan AT balder>
14030
14031         An sfr/sbit can have an "at #" AND an initializer
14032         * src/SDCCsymt.c (checkSClass):
14033         * src/SDCCmem.c (allocGlobal):
14034         * src/SDCCmem.c (allocLocal):
14035         * src/SDCCast.c (createBlock):
14036
14037 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
14038
14039         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
14040
14041 2003-03-16    <johan AT balder>
14042
14043         Undid the hackup of const and volatile, the problem is much bigger
14044         * src/SDCC.y:1.65
14045         * src/SDCCast.c:1.171
14046         * src/SDCCglue.c:1.138
14047         * src/SDCCicode.c:1.146
14048         * src/SDCCsymt.c:1.150
14049         * src/SDCCval.c:1.65
14050
14051 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
14052
14053         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
14054         * src/ds390/gen.c (genAddrOf): fixed bug #704087
14055
14056 2003-03-13    <johan AT balder>
14057
14058         Hackup const and volatile modifiers in type chains a bit:
14059         * src/SDCC.y:1.63
14060         * src/SDCCast.c:1.169
14061         * src/SDCCglue.c:1.136
14062         * src/SDCCicode.c:1.143
14063         * src/SDCCsymt.c1.146
14064         * src/SDCCsymt.h1.59
14065         * src/SDCCval.c:1.63
14066
14067 2003-03-12    <johan AT balder>
14068
14069         * src/SDCCBBlock.h: more LRH debugging junk
14070         * src/SDCCcflow.h: more LRH debugging junk
14071         * src/SDCCloop.c: more LRH debugging junk
14072         * src/SDCC.y (struct_declaration): fixed bug #697590
14073         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
14074         * src/ds390/gen.c (aopForRemat): fixed bug #700031
14075         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
14076
14077 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14078         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
14079         test function names must now match exactly).
14080         * src/SDCCcse.c: added special case in findCheaperOp to allow
14081         extending a short integer. Makes less awful code for bug 700121 test case.
14082
14083 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14084
14085         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
14086         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
14087
14088 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14089
14090         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
14091         actually called (operandsNotEqual() was called for all
14092         operandsNotEqualX tests).
14093
14094 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14095
14096         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
14097         with shorter literals. Fixes bug 700121.
14098
14099 2003-03-11    <johan AT balder>
14100
14101         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
14102
14103 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
14104
14105         * src/SDCCloop.c (mergeRegions): an evil beast is dead
14106         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
14107
14108 2003-03-10  Borut Razem <borut.razem AT siol.net>
14109
14110         * src/SDCCmain.c: pipe preprocessor's output
14111         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
14112         * sdcc_vc_in.h: define pclose as _pclose for WIN32
14113         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
14114         which closes all pipes in pipeSet set
14115         * src/SDCCset.c: free deleted item in function deleteSetItem()
14116         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
14117         moved from z80 to src subproject
14118         * .version: increased version number to 2.3.4
14119
14120 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
14121
14122         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
14123         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
14124         * support/regression/ports/xa51/spec.mk: fix typo
14125
14126 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
14127
14128         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
14129
14130 2003-03-09  Borut Razem <borut.razem AT siol.net>
14131
14132         * src/SDCCmain.c: pipe preprocessor's output
14133         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
14134         * sdcc_vc_in.h: define pclose as _pclose for WIN32
14135         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
14136         which closes all pipes in pipeSet set
14137         * src/SDCCset.c: free deleted item in function deleteSetItem()
14138         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
14139         moved from z80 to src subproject
14140
14141 2003-03-09  Borut Razem <borut.razem AT siol.net>
14142
14143         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
14144         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
14145         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
14146         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
14147         * src/SDCCglobl.h: unification of WIN32 native definitions
14148
14149 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14150
14151         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
14152
14153 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
14154
14155         * src/configure.in:   check for endianess (even while cross-compiling)
14156         * src/configure:      check for endianess (even while cross-compiling)
14157         * src/configure_in.h: check for endianess (even while cross-compiling)
14158         * src/avr/gen.c:        remove old endianess stuff
14159         * src/mcs51/gen.c:      remove old endianess stuff
14160         * src/ds390/gen.c:      remove old endianess stuff
14161         * src/pic/gen.c:        remove old endianess stuff
14162         * src/pic/genarith.c:   remove old endianess stuff
14163         * src/pic/glue.c:       fix endianess check
14164         * src/pic16/gen.c:      remove old endianess stuff
14165         * src/pic16/genarith.c: remove old endianess stuff
14166         * src/pic16/glue.c:     fix endianess check
14167         * src/xa51/gen.c:       remove old endianess stuff
14168         * src/z80/gen.c:        fix endianess check
14169         * src/SDCCglue.c:       fix endianess check
14170         * src/ds390/peeph.def: fix bug 700036
14171
14172 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
14173
14174         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
14175         * src/configure: find appropriate data-types on host for SDCC's int and long
14176         * src/configure.in: find appropriate data-types on host for SDCC's int and long
14177         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
14178         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
14179
14180 2003-03-07    <johan AT balder>
14181
14182         Just a big NOOP:
14183                 some minor cleanups before the big shot
14184                 OP_DEFS and OP_USES now use Kevin's protection
14185                 new option --nolabelopt
14186
14187         * src/SDCCBBlock.c:
14188         * src/SDCCast.c,:
14189         * src/SDCCcflow.c:
14190         * src/SDCCcse.c:
14191         * src/SDCCicode.c:
14192         * src/SDCCicode.h:
14193         * src/SDCClabel.c:
14194         * src/SDCCloop.c:
14195         * src/SDCCmain.c:
14196         * src/ds390/ralloc.c:
14197         * src/mcs51/ralloc.c:
14198         * src/pic/ralloc.c:
14199         * src/xa51/ralloc.c:
14200         * src/z80/ralloc.c:
14201
14202 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
14203
14204         * src/pic/pcode.c (get_op): fix 64 bit warnings
14205         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
14206         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
14207         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
14208         * support/regression/tests/malloc.c: fix 64 bit warnings
14209
14210 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
14211
14212         * src/mcs51/gen.c (genMinus): fixed bug 696436
14213
14214 2003-03-02  Borut Razem <borut.razem AT siol.net>
14215
14216         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
14217
14218 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
14219
14220         * configure.in: test for mkstemp
14221         * sdccconf_in.h: add HAVE_MKSTEMP
14222
14223 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
14224
14225         * device/include/ctype.h: removed warning while using --stack-auto
14226         * device/include/malloc.h: removed warning while using --stack-auto
14227         * device/include/string.h: removed warning while using --stack-auto
14228
14229 2003-02-23  Borut Razem <borut.razem AT siol.net>
14230
14231         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
14232         because NDEBUG is defined (see man assert)
14233         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
14234
14235 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14236
14237         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
14238         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
14239
14240 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14241
14242         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
14243         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
14244
14245 2003-02-18    <johan AT balder>
14246
14247         * as/mcs51/asmain.c (asmbl): module can start with a digit
14248         * as/z80/asmain.c (asmbl): module can start with a digit
14249
14250 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
14251
14252         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
14253         * src/asm.c: fix pipe() for Mingw32
14254
14255 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
14256
14257         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
14258         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
14259         make -V work again; --c1mode reads now from stdin
14260         * doc/sdccman.lyx: added --c1mode
14261         * support/Util/SDCCerr.c: new messages for c1 mode
14262         * support/Util/SDCCerr.h: new messages for c1 mode
14263         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
14264
14265 2003-02-15    <johan AT balder>
14266
14267         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
14268
14269 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
14270
14271         * doc/sdccman.lyx: Environment variables, -o and other minor things
14272
14273 2003-02-14    <johan AT balder>
14274
14275         * src/xa51/main.c: before anyone really tries to use it :)
14276
14277         * Install doc's in share/sdcc/doc
14278         * removed some obsolete files
14279         * Do a proper make distclean and uninstall
14280         M Makefile.common.in
14281         R sdccbuild.sh
14282         M as/Makefile
14283         M device/include/Makefile.in
14284         M device/lib/Makefile.in
14285         M doc/sdccman.lyx
14286         M link/Makefile
14287         M sim/ucsim/doc/Makefile.in
14288         M src/clean.mk
14289         R src/avr/peeph.rul
14290         R src/xa51/peeph.rul
14291         M support/cpp2/Makefile.in
14292         M support/makebin/Makefile
14293
14294
14295 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
14296
14297         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
14298
14299 2003-02-10  Borut Razem <borut.razem AT siol.net>
14300
14301         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
14302         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
14303         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
14304         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
14305         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
14306         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
14307         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
14308         src/z80/Makefile.bcc: Borland Makefile cleanup
14309         * as/z80/Makefile.bcc: Added Borland Makefile
14310         * support/cpp2/borland.h: Removed
14311
14312 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
14313
14314         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
14315         * src/SDCC.lex: new pragma NOIV
14316         * src/SDCCglobl.h: new pragma NOIV
14317         * src/SDCCmem.c: new pragma NOIV
14318
14319 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
14320
14321         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
14322
14323 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
14324
14325         * src/SDCCmain.c: signal handling is switched off by --debug
14326         * doc/Makefile: small fix for install; use clean.mk again
14327         * doc/clean.mk: clean *.pdf and *.html too
14328
14329 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
14330
14331         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
14332         * device/lib/printfl.c: fix a ds390 bug by making it portable
14333         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
14334         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
14335         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
14336         * debugger/mcs51/cmd.c: converted multi-line string literals
14337         * sim/ucsim/globals.cc: converted multi-line string literals
14338         * src/SDCCmain.c: introduced signal handler to remove temp files
14339         * doc/Makefile: small tweaks, implement clean
14340         * doc: removed generated files
14341
14342 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14343
14344         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
14345         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
14346         Address Record is not correctly generated for DS390."
14347
14348 2003-02-02  Borut Razem <borut.razem AT siol.net>
14349
14350         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
14351         * as/mcs51/asm.h: fixed compilation with Borland C
14352         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
14353         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
14354         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
14355         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
14356         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
14357         src/z80/Makefile.bcc: delete $(LIB) only if exist
14358         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
14359
14360 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
14361
14362         * device/include/malloc.h: introduced NULL
14363         * device/include/string.h: introduced NULL
14364         * device/include/stdlib.h: introduced NULL
14365         * device/lib/_memcpy.c: removed NULL
14366         * device/lib/_strcat.c: removed NULL
14367         * device/lib/_strchr.c: removed NULL
14368         * device/lib/_strcmp.c: removed NULL
14369         * device/lib/_strcpy.c: removed NULL
14370         * device/lib/_strcspn.c: removed NULL
14371         * device/lib/_strlen.c: removed NULL
14372         * device/lib/_strncat.c: removed NULL
14373         * device/lib/_strncmp.c: removed NULL
14374         * device/lib/_strncpy.c: removed NULL
14375         * device/lib/_strpbrk.c: removed NULL
14376         * device/lib/_strrchr.c: removed NULL
14377         * device/lib/_strspn.c: removed NULL
14378         * device/lib/_strstr.c: removed NULL
14379         * device/lib/_strtok.c: removed NULL
14380         * device/lib/malloc.c: removed NULL, include own header
14381
14382 2003-02-02    <johan AT balder>
14383
14384         * 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
14385         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
14386         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
14387         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
14388         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
14389         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
14390
14391 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14392
14393         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
14394         area 'DATA'"
14395
14396 2003-02-01    <johan AT balder>
14397
14398         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
14399
14400 2003-01-31    <johan AT CP255758-A>
14401
14402         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
14403
14404 2003-01-30    <johan AT balder>
14405
14406         * src/SDCCBBlock.c: automatic bug detection
14407         * src/SDCCicode.c: automatic bug detection
14408
14409 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14410
14411         * src/SDCCglobl.h:   now --xram-size 0 works
14412         * src/SDCCmain.c:    now --xram-size 0 works
14413
14414 2003-01-29    <johan AT balder>
14415
14416         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
14417
14418 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14419
14420         * as/mcs51/aslink.h: Added options --xram-size and --code-size
14421         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
14422         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
14423         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
14424         * src/SDCCglobl.h:   Added options --xram-size and --code-size
14425         * src/SDCCmain.c:    Added options --xram-size and --code-size
14426
14427 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
14428
14429         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
14430         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
14431
14432 2003-01-27    <johan AT balder>
14433
14434         * src/SDCC.y: fixed bug #613764
14435
14436 2003-01-26    <johan AT balder>
14437
14438         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
14439         * src/SDCCsymt.h: fixed bug #673374
14440         * src/SDCCglue.c: fixed bug #661910
14441         * src/SDCCast.c: fixed bug #458099 and 673374
14442
14443 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
14444
14445         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
14446         * as/mcs51/strcmpi.h: added
14447         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
14448         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
14449         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
14450         * as/mcs51/assym.c: strcmpi -> as_strcmpi
14451         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
14452         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
14453         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
14454         * as/mcs51/Makefile.aslink: new module strcmpi
14455         * as/mcs51/Makefile.asx8051: new module strcmpi
14456         * as/mcs51/Makefil.bcc: new module strcmpi
14457         * as/mcs51/Makefile.in: new module strcmpi
14458         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
14459
14460 2003-01-26    <johan AT balder>
14461
14462         * src/SDCCglue.c: reverted back to 1.124
14463         * src/SDCCast.c: reverted back to 1.156
14464         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
14465
14466 2003-01-25    <johan AT balder>
14467
14468         * src/SDCCglue.c: A better fix for bug #661910
14469         * src/SDCCast.c: A better fix for bug #661910
14470         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
14471
14472 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
14473
14474         * src/Makefile.in: remove spawn.o
14475         * src/SDCCmain.c: remove spawn.h
14476         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
14477         * src/spawn.c: removed
14478         * src/spawn.h: removed
14479         * support/regression/ports/ds390/spec.mk: link with -r
14480
14481 2003-01-24    <johan AT CP255758-A>
14482
14483         * src/ds390/gen.c (aopOp): fixed bug #667458
14484         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
14485         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
14486         (createIvalCharPtr): an ival doesn't always have a storage class anymore
14487
14488 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
14489
14490         * src/mcs51/peeph.def: better assembler identation by Frieder
14491         * src/mcs51/gen.c: better assembler identation by Frieder
14492
14493 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
14494
14495         * as/z80/string.h: removed for gcc 3.2
14496         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
14497         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
14498
14499 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
14500
14501         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
14502         * src/SDCCpeeph.c (replaceRule): fix bug #663503
14503         * support/regression/Makefile: separate temp files for ports
14504         * support/regression/generate-cases.py: separate temp files for ports
14505         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
14506         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
14507
14508 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
14509
14510         * moved tinitalk to device/examples/ds390
14511
14512 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
14513
14514         * as/mcs51/lkmem.c: rflag is for DS390
14515         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
14516         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
14517                          (linkEdit): move mem- and map-files the same way as ihx-files
14518         * src/z80/main.c (_setDefaultOptions): removed --generic
14519         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
14520         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
14521         * src/pic/glue.c (picglue): --c1mode works again
14522         * src/pic16/glue.c (pic16glue): --c1mode works again
14523         * src/asm.c (printCLine): fix #660034
14524
14525 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
14526
14527         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
14528         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
14529         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
14530         * as/mcs51/lkmem (summary): better fix for sp problem
14531         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
14532         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
14533         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
14534                                               remove --stack-after-data
14535
14536 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
14537
14538         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
14539         * src/SDCCutil.c (join): ugly bug: missing '\0'
14540         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
14541
14542 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
14543
14544         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
14545         * src/port.h: typo
14546         * src/pic/main.c (_asmCmd): gpasm supports -o
14547         * src/z80/main.c: more general macros
14548         * device/lib/Makefile.in: remove intermediate files
14549
14550 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
14551
14552         * .version: Bumped version number to 2.3.3
14553         * src/SDCCBBlock.c: new option -o
14554         * src/SDCCglobl.h: new option -o
14555         * src/SDCCglue.c: new option -o
14556         * src/SDCCmain.c: new option -o
14557         * src/asm.c: new option -o
14558         * src/ds390/main.c: new option -o
14559         * src/pic/glue.c: new option -o
14560         * src/pic/pcode.c: new option -o
14561         * src/pic/ralloc.c: new option -o
14562         * src/pic16/glue.c: new option -o
14563         * src/pic16/pcode.c: new option -o
14564         * src/pic16/ralloc.c: new option -o
14565         * src/z80/main.c: new option -o
14566         * device/lib/Makefile.in: use -o
14567         * support/regression/ports/ds390/spec.mk: use -o
14568         * support/regression/ports/gbz80/spec.mk: use -o
14569         * support/regression/ports/mcs51/spec.mk: use -o
14570         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
14571         * support/regression/ports/z80/spec.mk: use -o
14572         * support/regression/ports/ucz80/spec.mk: use -o
14573         * support/regression/ports/xa51/spec.mk: use -o
14574         * support/regression/fwk/lib/timeout.c: fix usage string
14575
14576 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
14577         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
14578
14579 2003-01-07    <johan AT balder>
14580
14581         * src/SDCCast.c (decorateType): fixed bug #600035
14582
14583 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
14584         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
14585         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
14586         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
14587         * src/pic/pcode.c: outcommented unused variable to remove warnings
14588         * src/pic/ralloc.c: outcommented unused variable to remove warnings
14589
14590 2003-01-06    <karl AT turbobit.com>
14591         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
14592    regression tests.
14593
14594 2003-01-06    <johan AT balder>
14595
14596         * src/SDCCicode.c: fixed array add
14597
14598 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
14599         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
14600         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
14601
14602 2003-01-04    <johan AT balder>
14603
14604         * src/SDCCval.c (getNelements): fixed the initialized array of structures
14605
14606 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14607         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
14608
14609 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
14610         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
14611         * support/regression/tests/bug-524697.c: fit mem usage into 8032
14612
14613 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
14614         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
14615
14616 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
14617         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
14618
14619 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
14620         * src/mcs51/main.c: removed {bindir}{sep} from aslink
14621
14622 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14623
14624     * in /sdcc/as/mcs51/ changed these files in order to create an
14625     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
14626     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
14627     following files to include the previous two files: aslink.dsp,
14628     Makefile.aslink, Makefile.bcc, and Makefile.in.
14629
14630     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
14631     .adb instead of .cdb
14632
14633 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14634
14635         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
14636         value from option --iram-size.
14637
14638 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14639
14640         * /sdcc/as/mcs51/lklist.c: added boundary check before using
14641         dram[] array.
14642
14643 2002-09-18    <wiml AT hhhh.org>
14644
14645         * SDCClrange.h: exposed setFromRange() and setToRange()
14646         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
14647           packRegsForAccUse() (bug 542397)
14648         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
14649           multiple times and emitting the fetch operations more than once
14650           added aopGetUsesAcc() function to allow binary operators to
14651           fetch their operands in the correct order; made genMinus() emit
14652           compact code for X = LITERAL - Y
14653
14654 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14655         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
14656         sprintf() in line 1267.
14657
14658 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14659         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
14660         like ports.
14661
14662 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14663         Changes to aslink (All the changes are marked with 'JCF'):
14664
14665         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
14666         summary().
14667
14668         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
14669         area BSEG.  Also moves, if possible, the DATA area down into the internal
14670         ram so more space is available.
14671
14672         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
14673         sflag.
14674
14675         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
14676         not bytes.  Function summary() which creates a memory usage summary
14677         file with extension .mem.  Reports of overlaping stack and small stack
14678         size.  If the space for the stack is less than 16 bytes aslink trows a
14679         warning.
14680
14681         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
14682         the 8051.  Option 'y' for memory summary output file.
14683
14684         Changes to sdcc (All the changes are marked with 'JCF'):
14685
14686         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
14687
14688         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
14689         overlaying area for it (uses RegBankUsed[4]).
14690
14691         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
14692         bank zero as used by default.  By default aslink locates the stack
14693         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
14694         the creation of the .mem file.  Delegates the allocation of data area
14695         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
14696         the begining of the stack area to aslink.
14697
14698         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
14699         glue() in SDCCglue.c creates an area for it.
14700
14701 2002-09-03  Borut Razem <borut.razem AT siol.net>
14702         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
14703         sdcc/src/pic/glue.c:
14704         introduced atexit() handler for teporay files removal in case of
14705         errors, assertions, ...
14706
14707 2002-08-29  Borut Razem <borut.razem AT siol.net>
14708         * sdcc/support/cpp2/auto-host_vc_in.h:
14709         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
14710         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
14711         Maybe there is a similar problem with BORLANDC? It should be checked!
14712
14713         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
14714         corrected improper use of assert: the assignment to clr variable was done inside the assert.
14715         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
14716         was not executed, and the compiler (cl) launched a warning:
14717         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
14718
14719 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
14720         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
14721
14722 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
14723         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
14724
14725         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
14726           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
14727           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
14728           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
14729           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
14730           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
14731           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
14732         - added Release configuration in VS projects
14733         - review of compiler an linker options
14734         - VC .exe files are generated in bin_vc directory, not to interfere
14735           with binaries generated from other projects (cygwin, mingw, bcc ...)
14736
14737         * sdcc/src/yacc.dsp: added
14738
14739         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
14740         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
14741         and insert the version number definitions from .version
14742
14743         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
14744
14745         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
14746         added - genarate auto-host.h using auto-host_vc_in.h as template
14747
14748         * sdcc/sdcc_vc.h,
14749         removed from CVS, generated automatically
14750
14751 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
14752         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
14753
14754 2002-08-11  Borut Razem <borut.razem AT siol.net>
14755         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
14756
14757 2002-08-10  Borut Razem <borut.razem AT siol.net>
14758         * src/SDCCmain.c (main):
14759         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
14760         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
14761         The consequence was that some temporary files were not removed.
14762
14763         * src/SDCCglue.c:
14764         unification of code in functions tempfilename() and tempfile():
14765         function tempnam() is defined in Visual Studio 6.0 and .NET
14766
14767         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
14768
14769         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
14770           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
14771         - removed compiler command line option /WX: Treats all warnings as errors
14772         - update a list of source files, included into the project
14773
14774         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
14775           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
14776         changed project type to Generic Project so that can be correcly converted to VS.NET project
14777
14778         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
14779
14780         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
14781
14782         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
14783
14784         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
14785         added return 0 statements after assert() to make compiler happy
14786
14787         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
14788         added newline in the def file to keep MSC compiler satisfied
14789
14790         * sdcc/src/z80/gen.c:
14791         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
14792           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
14793         - solved MSC error in function aopDump()
14794
14795         * sdcc_vc.h: define PREFIX as "\\sdcc"
14796
14797 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
14798         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
14799
14800 2002-06-22  Scott Dattalo <scott AT dattalo.com>
14801         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
14802         - Rewrote the register banking algorithm.
14803         - Added pCode live-range analysis to registers (for now, only non-used and
14804         singly-used registers optimized away)
14805
14806         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
14807
14808         * 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.
14809
14810 2002-05-10  Scott Dattalo <scott AT dattalo.com>
14811         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
14812
14813 2002-04-22  Michael Hope  <michaelh AT vroom>
14814
14815         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
14816
14817         * configure.in (DD_COPT): Added include support required for gbdk.
14818
14819         * .version: Bumped version number just to increase it.
14820
14821         * src/SDCCmain.c: Added -nostdinc to the default options.
14822
14823 2002-04-15  Michael Hope  <michaelh AT vroom>
14824
14825         * device/lib/z80/printf.c (sprintf): Added.
14826
14827         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
14828
14829         * src/z80/peeph.def: Added transpose redundent load rule.
14830
14831         * src/z80/main.c: Added force callee saves for jaune.
14832
14833         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
14834
14835         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
14836
14837 2002-03-28  Johan Knol  <johan AT balder>
14838
14839         * src/SDCCval.c: fixed bug #532436
14840
14841 2002-03-14  Scott Dattalo <scott AT dattalo.com>
14842         * /src/port.h:
14843         Added "char *Processor" field to the port structure.
14844
14845         * /src/SDCCmain.c:
14846         Added -p option. Allows port dependent processor to be specified.
14847
14848         * all ports:
14849         Initialized the new field char *Processor field to NULL in all ports
14850
14851         * /src/pic/*:
14852         Compiler generated registers for interrupt context saving
14853         were not getting allocated.
14854
14855 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
14856
14857         * /src/SDCCast.c:
14858         Fixed left shift. Will promote the left side of a left shift
14859         if a) left shifting more than size of operand or b) when assigned
14860         to something size > size of left side
14861
14862 2002-03-14  Scott Dattalo <scott AT dattalo.com>
14863         * src/pic/*
14864         tons of changes. Register allocation has been
14865         rewritten. Added customization for the various PICs. Flow
14866         analysis is restructured. ...
14867
14868         * src/pic/device.h:
14869         Added
14870
14871         * src/pic/device.c:
14872         Added. device.c is a PIC port hack to accomodate variations
14873         in PIC devices.
14874
14875 2002-03-13  Michael Hope  <michaelh AT vroom>
14876
14877         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
14878
14879 2002-03-04  johanknol  <johanknol AT manik>
14880
14881         * /src/SDCCval.c: fixed
14882
14883         const unsigned char arr[][2] = { { 0, 1 } };
14884         t18.c:1: error: Initializer element is not constant
14885
14886 2002-03-04  bela  <bela AT manik>
14887
14888         * /device/include/mcs51reg.h:
14889         ds89c420 register definition update
14890
14891 2002-03-03    <johan AT FRIJA>
14892
14893         * support/Util/SDCCerr.c: did something, but don't no why anymore
14894
14895         * support/regression/tests/bug-524691.c: made it a little less shy
14896
14897         * src/SDCCast.c (decorateType): fixed bug #524697
14898
14899         * src/SDCCast.c: made some lineno improvements
14900
14901         * src/SDCCval.c (getNelements): changed warning to error
14902
14903         * src/SDCCglue.c (printIvalArray): changed warning to error
14904
14905         * src/SDCCicode.c: fixed a warning for mingw
14906
14907         * src/SDCCast.c (decorateType): fixed the << promotion for ops
14908
14909         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
14910
14911 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
14912
14913         * src/ds390/peeph.def:
14914         Added some more peephole rules
14915
14916         * src/ds390/gen.c: Various fixes & enhancements
14917
14918         * src/SDCClrange.c, src/SDCClrange.h:
14919         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
14920
14921         * src/ds390/ralloc.c:
14922         various fixes & enhancements (ds390) specific
14923
14924         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
14925         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
14926         from rallocs.
14927
14928         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
14929
14930 2002-03-02    <johan AT FRIJA>
14931
14932         * src/SDCCast.c (decorateType): fixed bug #524708
14933
14934         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
14935
14936         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
14937
14938 2002-03-01  Michael Hope  <michaelh AT vroom>
14939
14940         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
14941
14942         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
14943
14944 2002-03-01    <johan AT FRIJA>
14945
14946         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
14947
14948         * src/SDCCast.c (decorateType): fixed bug #524209
14949
14950         * src/SDCCval.c (valNot): fixed bug #524195
14951
14952 2002-02-26    <johan AT balder>
14953
14954         * src/xa51/gen.c: fixed a warning
14955
14956         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
14957
14958         * src/SDCCast.c (decorateType): fixed bug #522534
14959
14960 2002-02-23    <johan AT balder>
14961
14962         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
14963
14964 2002-02-22    <johan AT balder>
14965
14966         * src/SDCCast.c: fixed bug #514865
14967
14968         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
14969
14970 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
14971
14972         * sdcc/src/SDCCloop.c:
14973         Previous fix was not good. basic blocks that have "break" or "return" are
14974         not really partof a loop , but live ranges used in these blocks should
14975         be live thru the entire loop, so set partOfLoop but don't add them to
14976         loop region
14977
14978 2002-02-21    <johan AT FRIJA>
14979
14980         * src/SDCCcse.c: fixed bug #514308
14981
14982 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
14983
14984         * src/SDCCloop.c:
14985         Fixed BUG #519583. If a conditional block ended in a return/break
14986         statement inside a loop, it was not being considered part of the loop.
14987
14988         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
14989
14990 2002-02-10  Karl Bongers <karl AT turbobit.com>
14991
14992         * debugger/*:
14993         Fixed up SDCDB debugger somewhat.  Updated debugger/README
14994         with lots of comments and notes.
14995
14996         * device/examples/test2.c:
14997         Fix bug, "red" variable not being initialized(compiler complained).
14998
14999         * device/examples/Makefile, examples/test3.c:
15000         Add Makefile in device/examples folder, compiles test3.c
15001         for use as a multiple module SDCDB test case.
15002
15003         * sim/ucsim/cmd.src/cmdset.cc:
15004         Took out debug printfs in ucsim "next" command.
15005
15006         * sim/ucsim/xa.src:
15007         Karl and Johan start ucsim XA support.  Most dissassembly working,
15008         about 75% emulation done(plenty of work remaining).
15009
15010         * sim/ucsim/z80.src:
15011         Add Z80 support to ucsim, add test-ucz80 regression test,
15012         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
15013         Notice z80 compiler fails on examples/test3.c/crc code.
15014
15015 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
15016
15017         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
15018         Added support for --parms-in-bank1
15019
15020         * src/ds390/peeph.def:
15021         added a few more peephole optimzations
15022
15023         * src/ds390/main.c:
15024         1) added __builtin_inp & __builtin_outp used to read in data of given length
15025            from a memory mapped port
15026         2) added __builtin_memcmp
15027         3) added __builtin_swapw swap bytes of a short
15028
15029         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
15030         1) handle multiple send & receives from register bank1
15031         2) ralloc can now allocate DPTR1 to some liveRanges
15032
15033         * src/SDCCsymt.c, src/SDCCsymt.h:
15034         changes to handle multiple sends & receives
15035
15036         * src/SDCCptropt.h:
15037         added some pointer arithmetic optimization
15038
15039         * src/SDCCptropt.c:
15040         added some pointer arithmetic optimizations but not stable yet so not
15041         called from anywhere (will get this working shortly)
15042
15043         * src/SDCCopt.c: fixed for multiple sends & receives
15044
15045         * src/SDCCmain.c:
15046         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
15047         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
15048            set preprocessor defines (depending on options)
15049
15050         * src/SDCCicode.c, src/SDCCicode.h:
15051         changes made to handle multiple sends & receives
15052
15053         * src/SDCCglobl.h:
15054         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
15055
15056         * src/SDCCcse.c, src/SDCCcse.h:
15057         added function findbackward def (to be used in upcoming optimization)
15058
15059         * src/SDCCcflow.c, src/SDCCcflow.h:
15060         added function returnAtEnd - to determine if a basic block terminates with
15061         a RETURN iCode
15062
15063         * src/SDCCast.c, src/SDCCast.h:
15064         added option parms-in-bank1
15065
15066         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
15067         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
15068         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
15069         adjusted for --parms-in-bank1 option
15070
15071         * device/include/string.h:
15072         donot redefine "reentrant" keyword
15073
15074         * device/include/ds80c390.h: Added some more SFRs
15075
15076 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
15077
15078         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
15079
15080 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
15081
15082         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
15083
15084 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
15085
15086         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
15087
15088 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
15089
15090         * Added --xram-movc option
15091
15092 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
15093
15094         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
15095
15096 2002-01-11  Johan Knol
15097
15098         * Added math lib of Jesus Calvino-Fraga
15099
15100 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
15101
15102         * src/SDCCmain.c (processFile): fix processing of ../../src.c
15103         * support/regression/Makefile: new target test-mcs51-stack-auto
15104         * support/regression/ports/mcs51-stack-auto/spec.mk: added
15105
15106 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
15107
15108         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
15109
15110 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
15111
15112         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
15113
15114 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
15115
15116         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
15117
15118         * src/SDCCglue.h: add definition for printIvalChar()
15119
15120 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
15121
15122         * src/SDCCast.c: fix #498138 by Johan
15123
15124         * src/SDCCglue.c: fix #498138 by Johan
15125
15126 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
15127
15128         * support/regression/Makefile: fix clean
15129
15130         * support/regression/ports/ds390/support.c: fix transmission of last character
15131
15132 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
15133
15134         * /sdcc/src/ds390/gen.c:
15135         a) improved computing address of stack variable
15136         b) took out some #if 0 code
15137         c) improved parmBytes adjustment
15138         d) improved genPlusIncr & genMinusIncr
15139         e) genCmp could generate bad code (when left assigned to DPTR)
15140         f) Fixed bug in hasInc
15141
15142         * /sdcc/src/ds390/ralloc.c:
15143         a) packRegsForSupport could mess up live information (Fixed)
15144         b) packRegsDPTRuse could be incorrect for left & right shift
15145
15146         * /sdcc/src/mcs51/ralloc.c:
15147         packRegsForSupport could mess up the live information (Fixed)
15148
15149         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
15150
15151         * /sdcc/src/SDCCast.c:
15152         can reverse a loop even if function call is present as long
15153         as the loop control variable is local & is not passed as parameter
15154
15155 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15156
15157         * /sdcc/ChangeLog: *** empty log message ***
15158
15159         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
15160         More builtin function additions for TININative
15161
15162         * /sdcc/src/ds390/ralloc.c:
15163         Had broken the regression testsuite
15164
15165         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
15166
15167         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
15168         Added funcattr hasStackParms will be set for reentrant functions when there
15169         are paramteres on the stack, this helps in minimizing frame pointer generation
15170         typeFromStr can handle function pointers now
15171
15172         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
15173         *** empty log message ***
15174
15175 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15176
15177         * /src/ds390/gen.c, /src/ds390/main.c:
15178         More builtin function additions for TININative
15179
15180         * /src/ds390/ralloc.c:
15181         Had broken the regression testsuite
15182
15183         * /src/SDCCast.c: Fixed a bug in dumptree
15184
15185         * /src/SDCCsymt.c, /src/SDCCsymt.h:
15186         Added funcattr hasStackParms will be set for reentrant functions when there
15187         are paramteres on the stack, this helps in minimizing frame pointer generation
15188         typeFromStr can handle function pointers now
15189
15190         * /doc/builtins.txt, /doc/TININative.txt:
15191         *** empty log message ***
15192
15193
15194 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15195
15196         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
15197         ALPHA version for -mTININative
15198
15199         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
15200         updated to reflect changes in the port structure
15201
15202         * /src/port.h:
15203         added function do_assemble (similar to do_link) if non-null this function
15204         will be called to do assembly (-mTININative) requires a multi command
15205         assembly
15206         added function genAssemblerEnd will be called to generate assembler Epilogue
15207
15208         * /src/SDCCsymt.c:
15209         added _JavaNative to debug info printing
15210
15211         * /src/SDCCmain.c: added option --tini-libid
15212         added port->do_assemble function (-mTININative) has a multi command assemble
15213
15214         * /src/SDCCglue.c: Disabled "constExpr" check
15215         added port->genAssemblerEnd function
15216
15217         * /src/SDCCglobl.h: Added option --tini-libid value
15218
15219         * /src/SDCCast.h:
15220         tookout optimizeCompare from the header (has no external references)
15221
15222         * /src/SDCCast.c: made one more function "static"
15223
15224 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
15225
15226         * src/z80/mappings.i: Added z80asm support.
15227
15228         * src/z80/main.c: Added z80asm support on --asm=z80asm
15229
15230         * src/z80/gen.c: Fixed asm portability issues.
15231
15232         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
15233
15234         * src/SDCCglue.c (printExterns): Added global/extern split.
15235
15236 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
15237
15238         * support/regression/Makefile: added test for mcs51 model large
15239
15240         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
15241
15242         * support/regression/ports/gbz80/spec.mk: added -mgbz80
15243
15244 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
15245
15246         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
15247
15248 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
15249
15250         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
15251
15252         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
15253
15254 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
15255
15256         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
15257
15258         * support/regression/tests/simplefloat.c: Port to mcs51.
15259
15260 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
15261         * support/regression/tests/bug-485362.c: Added.
15262
15263         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
15264
15265         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
15266
15267         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
15268
15269         * src/z80/gen.c (aopDump): Added a dump function.
15270
15271 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
15272         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
15273
15274         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
15275
15276         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
15277
15278         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
15279
15280         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
15281
15282         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
15283
15284         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
15285
15286         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
15287
15288         * support/regression/ports/ds390/support.c: Use tinibios.
15289
15290         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
15291
15292 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
15293
15294         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
15295         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
15296
15297         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
15298
15299         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
15300
15301 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
15302
15303         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
15304
15305         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
15306         (packRegsForIYUse): Created and optimised.
15307
15308 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
15309
15310         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
15311 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
15312
15313         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
15314
15315         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
15316
15317         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
15318
15319 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15320
15321         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
15322
15323         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
15324
15325 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15326
15327         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
15328
15329         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
15330
15331         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
15332
15333 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
15334
15335         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
15336         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
15337         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
15338
15339         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
15340
15341         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
15342         (genNotFloat): Added.
15343         (genUminusFloat): Added.
15344
15345         * device/lib/z80/Makefile: Added floating pt stubs.
15346
15347         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
15348
15349         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
15350
15351         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
15352
15353 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15354
15355         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
15356
15357         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
15358
15359         * sdcc/support/regression/Makefile: Add port ds390.
15360
15361         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
15362
15363         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
15364
15365         * sdcc/support/regression/ports/ds390/spec.mk: Added.
15366
15367         * sdcc/support/regression/ports/ds390/support.c: Added.
15368
15369         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
15370
15371         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
15372
15373         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
15374
15375 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
15376
15377         * device/include/malloc.h: Added z80 and gbz80 support.
15378
15379         * device/lib/gbz80/heap.s: Added.
15380
15381         * device/lib/z80/heap.s: Added.
15382
15383         * device/lib/malloc.c: Added z80 and gbz80 support.
15384
15385         * support/regression/tests/malloc.c (testMalloc): Added.
15386
15387         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
15388
15389         * support/regression/tests/bug-478094.c: Added.
15390
15391         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
15392
15393 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
15394
15395         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
15396
15397         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
15398
15399         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
15400
15401         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
15402
15403         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
15404
15405 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
15406
15407         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
15408
15409 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
15410
15411         * support/regression/tests/bug-477927.c: Added.
15412
15413         * src/z80/peeph.def: Added minor rules.
15414
15415         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
15416
15417         * src/z80/peeph.def: Added jump optimisation modification.
15418
15419 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
15420
15421         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
15422
15423 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
15424
15425         * support/regression/tests/funptrs.c: Added.
15426
15427 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
15428
15429         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
15430
15431 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
15432
15433         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
15434
15435         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
15436
15437         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
15438         (movLeft2ResultLong): Created.
15439
15440         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
15441         (joinPushes): Added.  Joins two char pushes into a word push.
15442
15443 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
15444
15445         * support/cpp2/Makefile.in (install): Added creation of dest dir.
15446
15447         * support/makebin/Makefile (install): Added creation of dest dir.
15448
15449 2001-10-24 Karl Bongers <karl AT turbobit.com>
15450
15451         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
15452
15453 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
15454
15455         * src/z80/ralloc.c: Turned off faulty pack for one use.
15456
15457         * src/z80/peeph-gbz80.def: Removed redundent restart options.
15458
15459         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
15460
15461 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
15462
15463         * support/regression/Makefile: Improved clean
15464
15465         * support/regression/ports/gbz80/spec.mk: Added clean
15466
15467         * support/regression/ports/host/spec.mk: Added clean
15468
15469         * support/regression/ports/z80/spec.mk: Added clean
15470
15471         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
15472
15473         * support/regression/ports/mcs51/timeout.c: little improvements
15474
15475 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
15476
15477         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
15478
15479         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
15480
15481         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
15482
15483 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
15484
15485         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
15486
15487         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
15488
15489 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
15490         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
15491
15492         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
15493
15494         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
15495
15496         * src/mcs51/main.c (_linkCmd): Added bin path to command.
15497
15498         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
15499
15500         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
15501
15502         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
15503
15504         * support/regression/tests/longor.c: Added.
15505
15506 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
15507
15508         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
15509
15510         * as/mcs51/aslink.h: define PATH_MAX
15511
15512         * as/mcs51/asm.h: define PATH_MAX
15513
15514         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
15515
15516         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
15517
15518         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
15519
15520         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
15521
15522         * src/SDCCglobl.h: define PATH_MAX
15523
15524         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
15525
15526         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
15527
15528 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
15529
15530         * src/z80/gen.c (gencjneshort): Fixed
15531
15532         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
15533
15534 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
15535
15536         * support/regression/tests/bug-469671.c: Added.
15537
15538         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
15539
15540 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
15541
15542         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
15543
15544         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
15545
15546 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
15547
15548         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
15549
15550         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
15551
15552         * src/device/lib/_mullong.c : removed hint: nooverlay bug
15553
15554         * src/device/lib/_divuint.c : removed hint: nooverlay bug
15555
15556         * src/device/lib/_divulong.c: removed hint: nooverlay bug
15557
15558         * src/device/lib/_moduint.c : removed hint: nooverlay bug
15559
15560         * src/device/lib/_modulong.c: removed hint: nooverlay bug
15561
15562 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
15563
15564         * 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.
15565
15566         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
15567
15568         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
15569
15570 2001-10-07    <johan AT FRIJA>
15571
15572         * device/lib/gets.c (gets): fixed the return value.
15573
15574 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
15575         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
15576
15577         * 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.
15578
15579         * 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.
15580
15581         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
15582
15583         * src/pic/gen.c: Removed Safe_strdup.
15584
15585         * configure.in: Added option to enable libgc support.
15586
15587         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
15588         (bitVectUnion): Optimised.
15589         (bitVectIntersect): Optimised.
15590         (bitVectBitsInCommon): Optimised.
15591         (bitVectCplAnd): Optimised.
15592
15593         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
15594
15595 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
15596
15597         * src/SDCCmain.c: distinguish between assembler debug and plain options
15598
15599         * src/avr/main.c:   remove standard assembler options
15600
15601         * src/ds390/main.c: remove standard assembler options
15602
15603         * src/mcs51/main.c: remove standard assembler options
15604
15605         * src/port.h: removed "PENDING" comment
15606
15607 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
15608
15609         * src/device/lib/_mulint.c  : new, with assember functions
15610
15611         * src/device/lib/_mullong.c : new, with assember functions
15612
15613         * src/device/lib/_divuint.c : with assember functions
15614
15615         * src/device/lib/_divsint.c : with assember functions
15616
15617         * src/device/lib/_divulong.c: with assember functions
15618
15619         * src/device/lib/_divslong.c: with assember functions
15620
15621         * src/device/lib/_moduint.c : with assember functions
15622
15623         * src/device/lib/_modsint.c : with assember functions
15624
15625         * src/device/lib/_modulong.c: with assember functions
15626
15627         * src/device/lib/_modslong.c: with assember functions
15628
15629         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
15630
15631         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
15632
15633         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
15634                                       replaced _mululong.c and _mulslong.c by _mullong.c
15635
15636 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
15637
15638         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
15639
15640 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
15641
15642         * src/SDCCglue.c: test, if win32api is available for MINGW
15643
15644 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
15645
15646         * src/SDCCsymt.c: no more _modifier in printTypeChain()
15647         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
15648         * support/regression/ports/gbz80/spec.mk: removed GENERIC
15649         * support/regression/ports/host/spec.mk: removed GENERIC
15650         * support/regression/ports/mcs51/spec.mk: removed GENERIC
15651         * support/regression/ports/z80/spec.mk: removed GENERIC
15652
15653 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
15654
15655         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
15656
15657         * support/regression/tests/bug-467035.c: Created.
15658
15659 2001-10-01    <johan AT FRIJA>
15660
15661         * src/SDCC.y: fixed bug #466586 part 1
15662
15663 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
15664
15665         * SDCCicode.c: z80 has no generic pointers
15666         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
15667
15668 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
15669
15670         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
15671
15672 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
15673
15674         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
15675
15676         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
15677
15678 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
15679
15680         * configure.in: Fixed up so that ucsim is only configured once.
15681
15682         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
15683
15684         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
15685         (getPathDifference): As above.
15686
15687         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
15688
15689         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
15690
15691 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
15692         * .version: Updated to 2.3.1
15693
15694         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
15695         Added copyright header.
15696
15697         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
15698         (assemble): Added support for macro based assembler commands.
15699         (linkEdit): Added support for macro based linker commands.
15700         (preProcess): Changed the pre-processor to use macros.
15701         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
15702         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
15703
15704         * device/lib/z80/crt0.s: Added module name for debugging.
15705
15706 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
15707
15708         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
15709
15710         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
15711
15712         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
15713
15714         * src/Makefile.in: Added SDCCmacro and SDCCutil
15715
15716 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
15717
15718         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
15719
15720 2001-09-16    <johan AT FRIJA>
15721
15722         * 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.
15723
15724 2001-09-15    <johan AT FRIJA>
15725
15726         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
15727         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
15728
15729 2001-09-11    <johan AT FRIJA>
15730
15731         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
15732
15733 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
15734
15735         * support/regression/tests/bug-460444.c: Added test case.
15736
15737         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
15738         (genCast): Added justification for all of the asserts.
15739
15740 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
15741
15742         * support/regression/support.c: _xdata replaced by xdata
15743
15744         * support/regression/spec.mk: removed _generic
15745
15746 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
15747
15748         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
15749
15750         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
15751         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
15752
15753         * src/z80/peeph.def: Added a rule to optimise shift then compare.
15754
15755         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
15756
15757         * support/regression/tests/bug-460010.c: Added test case.
15758
15759         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
15760
15761 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
15762
15763         * support/regression/Makefile: inter-port-clean adjusted for mcs51
15764
15765         * support/regression/testfwk.c: removed workaround for bug #436344
15766
15767         * support/regression/tests/bp.c: use less memory with mcs51
15768
15769         * support/regression/tests/bug-441448.c: use less memory
15770
15771         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
15772
15773         * support/regression/collate-results.py: typo
15774
15775 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
15776
15777         * support/regression/tests/fetchoverlap.c: Added new test case.
15778
15779         * support/regression/tests/bp.c: Added new test case.
15780
15781         * support/regression/tests/bug-448984.c: Added new test case.
15782
15783         * support/regression/tests/pow2shifts.c: Added new test case.
15784
15785         * src/z80/gen.c: Turned off the noise it normally generates for the release.
15786         (genlshTwo): Fixed right shift for count > 8.
15787
15788         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
15789
15790 2001-09-08    <johan AT FRIJA>
15791
15792         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
15793
15794 2001-09-07    <johan AT FRIJA>
15795
15796         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
15797
15798         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
15799
15800 2001-09-06    <johan AT FRIJA>
15801
15802         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
15803         * bernhard noted me at this: "() equals to (void)" (1.38)
15804
15805 2001-09-05    <johan AT FRIJA>
15806
15807         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
15808
15809 2001-09-04    <johan AT FRIJA>
15810
15811         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
15812
15813
15814 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
15815
15816         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
15817
15818 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
15819
15820         * link/z80/aslink.h: Fixed path for PATH_MAX
15821
15822 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
15823
15824         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
15825
15826         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
15827
15828         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
15829
15830         * 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.
15831
15832 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
15833
15834         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
15835         (genCmp): Fixed up genCmp for the GB with longs.
15836
15837         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
15838
15839         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
15840
15841         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
15842
15843         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
15844
15845 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
15846
15847         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
15848
15849 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
15850
15851         * 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.
15852
15853         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
15854
15855 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
15856
15857         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
15858
15859         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
15860
15861 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
15862
15863   * sim/ucsim/configure:    little improvement of Cygwin-detection
15864   * sim/ucsim/configure.in: little improvement of Cygwin-detection
15865   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
15866   * support/regression/tests/bug-221100.c: small changes for mcs51
15867   * support/regression/tests/bug-221168.c: small changes for mcs51
15868   * support/regression/tests/bug-227710.c: small changes for mcs51
15869   * support/regression/tests/staticinit.c: small changes for mcs51
15870   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
15871   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
15872   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
15873
15874 $Revision$