* src/mcs51/ralloc.c (fillGaps): fixed bug 1839671
[fw/sdcc] / ChangeLog
1 2008-02-28 Maarten Brock <sourceforge.brock AT dse.nl>
2
3         * src/mcs51/ralloc.c (fillGaps): fixed bug 1839671
4
5 2008-02-27 Borut Razem <borut.razem AT siol.net>
6
7         * support/scripts/sdcc.nsi: corrected installation directory for
8           current user installation mode
9         * doc/README.txt: added Philipp Klaus Krause to the developers list
10
11 2008-02-27 Maarten Brock <sourceforge.brock AT dse.nl>
12
13         * src/mcs51/gen.c (genUnpackBits): don't generate ifxJump, instead return
14           ifx condition
15           (genNearPointerGet, genPagedPointerGet, genFarPointerGet,
16           genCodePointerGet, genGenPointerGet): cleanup aop before generating
17             ifxJump to fix bug 1838000
18         * src/SDCCsymt.c (aggregateToPointer): fix problem for xstack
19         * support/regression/tests/bug1838000.c: new, added
20         * device/include/mcs51/cc1110.h: new, added, thanks to Pravin Angolkar
21
22 2008-02-26 Borut Razem <borut.razem AT siol.net>
23
24         * src/SDCCast.c, doc/adccman.lyx: fixed RFE #1901171: inerger promotion
25           of casted varargs
26         * support/scripts/sdcc.nsi: added MULTIUSER page,
27           NSIS upgraded to version 2.35
28
29 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
30
31         * src/mcs51/ralloc.c (isSpiltOnStack): fixed bug 1565152
32         * support/regression/tests/bug1565152.c: new, added
33
34 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
35
36         * src/mcs51/gen.c (genPagedPointerSet): fixed bug 1670148
37         * support/regression/ports/mcs51-xstack-auto/spec.mk: added expf.c
38         * support/regression/tests/bug1670148.c: new, added
39
40 2008-02-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
41
42         * device/include/mcs51/at89c51ed2.h: fixed bug 1901469.
43
44 2008-02-24 Borut Razem <borut.razem AT siol.net>
45
46         * src/SDCCast.c, src/SDCCast.h: fixed bug #1874922: explicit typecast
47           is ineffective for unsigned char parameter
48
49 2008-02-24 Maarten Brock <sourceforge.brock AT dse.nl>
50
51         * src/SDCCast.c (expandInlineFuncs): fixed bug 1875869
52         * src/SDCCglue.c (printIvalBitFields): fixed bug 1806631
53         * support/regression/tests/bitopcse.c: removed hc08 exception, see testfwk.h
54         * support/Util/MySystem.c (my_system): output errorcode when verbose
55
56 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
57
58         * src/z80/gen.c (genMult): Rewrote 8-bit multiplication by constant,
59           implements #1898231
60
61 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
62
63         * device/lib/z80/mul.s: Rewrote __muluchar_rrx_s, to improve 8-bit mult.,
64           implements #1896290
65
66 2008-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
67
68         * src/SDCCast.c (createIvalStruct): fixed bug 1466761
69
70 2008-02-21 Borut Razem <borut.razem AT siol.net>
71
72         * support/regression/Makefile.in,
73           support/regression/ports/ds390/spec.mk,
74           support/regression/ports/hc08/spec.mk,
75           support/regression/ports/mcs51-common/spec.mk,
76           support/regression/ports/pic14/spec.mk,
77           support/regression/ports/pic16/spec.mk,
78           support/regression/ports/ucz80/spec.mk,
79           support/regression/ports/xa51/spec.mk:
80           added CFLAGS when compiling timeout
81
82 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
83
84         * support/regression/tests/bugs-1596270-1736867.c: Regression test for
85           #1596270, #1736867
86
87 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
88
89         * src/SDCClrange.c (findPrevUse): fixed bug 1888147
90         * support/regression/tests/bug1888147.c: new, added
91
92 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
93
94         * src/z80/gen.c: fixed bugs #1596270, #1736867
95
96 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
97
98         * src/z80/gen.c: fixed bug in register pair loading when swapping register
99           contents, mostly fixes #1596270
100
101 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
102
103         * src/z80/peeph.def,
104         * src/z80/peeph-z80.def: moved peephole that breaks gbz80 to z80-specific
105           peepholes, fixes #1806565
106
107 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
108
109         * src/SDCCpeeph.c (operandBaseName): added check for @Ri
110         * src/mcs51/peeph.def (rule 177.c): added operandsNotRelated(%1 %3)
111           fixes bug 1739475, thanks Robert Larice
112           (rule 271): new, added
113
114 2008-02-18 Borut Razem <borut.razem AT siol.net>
115
116         * sim/ucsim/s51.src/Makefile.in: fixed error made in previous commit
117
118 2008-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
119
120         * src/SDCCmain.c (linkEdit): emit -z when using --debug for z80
121
122 2008-02-17 Raphael Neider <rneider AT web.de>
123
124         * src/pic16/genarith.c,
125         * src/pic16/gen.c,
126         * src/pic16/gen.h,
127         * src/pic16/genutils.c: removed unused legacy code,
128           removed unused fields from struct asmop and struct _G
129
130 2008-02-17 Raphael Neider <rneider AT web.de>
131
132         * src/pic16/gen.c (AccRsh): cosmetic changes,
133           (shiftR1Left2ResultSigned,shiftR1Left2Result,shiftL1Left2Result,
134           genRightShiftLiteral): fixed to work with SFRs as result by
135           assigning only once to result,
136           removed a lot of unused/excluded code fragments
137
138 2008-02-17 Raphael Neider <rneider AT web.de>
139
140         * device/include/pic/pic16f88.h,
141         * device/include/pic/pic16f886.h,
142         * device/include/pic/pic16f887.h: added TRISA6 and TRISA7
143
144 2008-02-17 Borut Razem <borut.razem AT siol.net>
145
146         * src/z80/peeph.def: applied patch
147           #1893626: Optimize tail calls on Z80, thanks to Philipp Krause
148         * src/z80/gen.c, src/z80/peeph.def: applied patch
149           #1893510: Improve logical left shift on Z80, thanks to Philipp Krause
150         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
151           sim/ucsim/s51.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
152           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
153           sim/ucsim/main_in.mk: renamed libutil.a to libucsimutil.a in order to
154           enable compilation on Mac OS X 10.5 (Leopard) and XCode v3.0
155
156 2008-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
157
158         * as/link/mcs51/aslink.dsp: removed SDK define
159         * as/link/z80/clean.mk: brought in sync with other ports
160         * as/link/z80/lklibr.c (SdccLib, fndsym): handle the dflag here too
161         * as/hc08/Makefile.bcc,
162         * as/mcs51/Makefile.bcc,
163         * as/z80/Makefile.bcc: noice.c was moved to as/asxxsrc/
164         * src/z80/main.c (_setValues): use the now capitalized -Z,
165           (z80_port, gbz80_port): generate debug information when asked
166
167 2008-02-16 Borut Razem <borut.razem AT siol.net>
168
169         * as/z80/asmain.c, as/z80/asm.h, as/z80/asdata.c,
170           as/link/z80/lkmain.c, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
171           as/z80/Makefile.in. as/z80/Makefile.bcc:
172           applied patch #1893393: patch for as-z80 and link-z80 to generate
173           cdb, thanks to Armin Diehl
174         * as/*/asnoice.c, as/hc08/as_hc08.dsp, as/hc08/Makefile.in,
175           as/mcs51/asx8051.dsp, as/mcs51/Makefile.in:
176           asnoice.c moved to as/asxxsrc/asnoice.c
177         * src/z80/peeph-gbz80.def: applied patch
178           #1880235: Z80 return peephole, thanks to Philipp Krause
179
180 2008-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
181
182         * .version,
183         * doc/sdccman.lyx: bumped version to 2.7.5
184         * src/SDCCsymt.c (compareType, comparePtrType): fixed bug 1281583
185
186 2008-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
187
188         * device/include/pic16/stdlib.h,
189         * device/lib/pic16/libc/stdlib/ltoa.c,
190         * device/lib/pic16/libc/stdio/vfprintf.c: ascii strings are char*
191
192 2008-02-13 Borut Razem <borut.razem AT siol.net>
193
194         * src/SDCCmain.c, src/SDCCglue.c: fixed --c1mode
195         * src/pic16/glue.c, src/SDCCast.c, src/SDCCast.h, src/SDCCBBlock.c,
196           src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c, src/SDCCloop.c,
197           src/SDCCopt.c,  src/SDCCval.c:
198           fixed bug #1890273: SDCC Warning 154 shows wrong filename
199
200 2008-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
201
202         * src/SDCCsymt.c (compareType): fixed bug 1309013
203
204 2008-02-09 Borut Razem <borut.razem AT siol.net>
205
206         * src/SDCCval.c, src/SDCCval.h:
207           code cleaning, added function constChrVal()
208         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c, src/SDCCast.c, src/SDCC.y:
209           call constChrVal() instead constVal()
210
211 2008-02-01 Maarten Brock <sourceforge.brock AT dse.nl>
212
213         * src/SDCCast.c (resolveSymbols): added reentrancy check for parameters
214           of function pointer
215         * src/SDCCerr.h,
216         * src/SDCCerr.c: changed warning W_NONRENT_ARGS to error E_NONRENT_ARGS
217         * support/regression/tests/absolute.c: added TestStruct TestVar (see also
218           bug 1859853)
219
220 2008-02-01 Raphael Neider <rneider AT web.de>
221
222         * device/include/pic/pic16f886.h,
223         * device/include/pic/pic16f887.h: added RA6 and RA7
224
225 2008-01-24 Raphael Neider <rneider AT web.de>
226
227         * device/include/pic/pic16f88.h: added RA6 and RA7
228         * device/lib/pic/libdev/disabled_pic16f886.c,
229         * device/lib/pic/libdev/disabled_pic16f887.c: renamed and enabled
230
231         * src/pic16/devices.inc,
232         * device/include/pic16/pic18f2423.h,
233         * device/include/pic16/pic18f2523.h,
234         * device/include/pic16/pic18fregs.h,
235         * device/lib/pic16/pics.all
236         * device/lib/pic16/libdev/pic18f2423.c,
237         * device/lib/pic16/libdev/pic18f2523.c: added 18f2423 and 18f2523
238         * device/lib/pic16/libio/i2c.ignore,
239         * device/lib/pic16/libio/usart.ignore,
240         * device/lib/pic16/libio/adc.ignore: ignore new devices
241
242 2008-01-23 Maarten Brock <sourceforge.brock AT dse.nl>
243
244         * src/SDCCast.c (createRMW): fixed bug 1582651
245
246 2008-01-20 Borut Razem <borut.razem AT siol.net>
247
248         * src/SDCCcse.c: partially fixed enhancement request
249           #1793872 - multiply by -1 not collapsed
250         * support/regression/tests/arithcsi.c: added regression test
251
252 2008-01-19 Maarten Brock <sourceforge.brock AT dse.nl>
253
254         * as/mcs51/asx8051.dsp: removed define SDK
255         * as/mcs51/i51mch.c (machine): fixed bug 1865114
256         * device/include/asm/ds390/features.h: fixed bug with ds390 & stack-auto
257         * as/link/lklex.c,
258         * as/link/mcs51/lkmain.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
259           cosmetic changes, brought more in sync, changed old K&R to ANSI
260
261 2008-01-13 Borut Razem <borut.razem AT siol.net>
262
263         * support/scripts/sdcc.nsi: added Uninstall/reinstall page, ...
264         * src/SDCCicode.c: fixed bug #1870216 - Error 122: dividing by zero
265
266 2007-12-30 Borut Razem <borut.razem AT siol.net>
267
268         * src/pic16/gen.c: fixed implementation of bitwise operations for
269           pic16 target
270         * support/regression/tests/bitwise.c: added test cases
271
272 2007-12-29 Borut Razem <borut.razem AT siol.net>
273
274         * src/SDCCasm.[ch]: renamed from asm[ch], use dbuf_getline(), ...
275         * src/src.dsp, src/Makefile.bcc, src/Makefile.in, src/common.h,
276           src/SDCCglue.c, src/xa51/main.c: asm.[ch] renamed to SDCCasm.[ch]
277         * support/Util/dbuf_string.[ch]: added function dbuf_getline()
278         * src/ds390/gen.c, src/hc08/gen.c, src/mcs51/gen.c, src/pic16/gen.c,
279           src/pic/gen.c, src/z80/gen.c, src/xa51/gen.c, src/pic16/ralloc.c,
280           src/pic16/pcode.[ch]: added const qualifier
281         * as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
282           as/mcs51/Makefile.bcc, as/mcs51/Makefile.in, as/mcs51/asx8051.dsp,
283           as/z80/Makefile.bcc, as/z80/Makefile.in, as/z80/as_gbz80.dsp,
284           as/z80/as_z80.dsp: added dbuf.[ch] and dbuf_string[ch] to project
285         * as/asxxsrc/aslex.c: use dbuf_getline()
286         * as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/asm.h, as/hc08/m08adr.c,
287           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/asm.h,
288           as/mcs51/i51adr.c, as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c,
289           as/z80/asm.h, as/z80/z80adr.c:
290           changed type of ib and ip to const char *
291
292 2007-12-28 Borut Razem <borut.razem AT siol.net>
293
294         * as/asxxsrc/aslex.c: moved from as/mcs51/aslex.c;
295           introduced (readlin) - long lines are turuncated
296         * as/hc08/as_hc08.dsp, as/mcs51/asx8051.dsp, as/z80/as_gbz80.dsp,
297           as/z80/as_z80.dsp, as/hc08/Makefile.in, as/mcs51/Makefile.in,
298           as/z80/Makefile.in: moved aslex.c to asxxsrc
299         * as/hc08/aslex.c, as/z80/aslex.c: deleted
300         * as/hc08/asmain.c, as/mcs51/asmain.c:
301           added missing initialization of a_addr field
302         * support/regression/tests/long_asm_line.c: added regtest for long
303           assembler line
304
305 2007-12-22 Borut Razem <borut.razem AT siol.net>
306
307         * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
308
309 2007-12-20 Maarten Brock <sourceforge.brock AT dse.nl>
310
311         * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang
312
313 2007-12-16 Borut Razem <borut.razem AT siol.net>
314
315         * device/include/pic16/stdbool.h: removed, since already exists in
316          device/include/; this also fixes bitopcse.c regression test for pic16
317          target
318         * support/regression/fwk/inclusw/testfwk.h: added macro ASSERT_FAILED
319         * src/pic16/glue.c: fixed bug #1851855: generic static pointer
320           dereference doesn't work; covered by regression test bug1399290
321
322 2007-12-05 Borut Razem <borut.razem AT siol.net>
323
324         * doc/sdccman.lyx: fixed bug #1844509 - Correction to Manual 4.6.9
325           Adding new PIC16
326
327 2007-12-01 Borut Razem <borut.razem AT siol.net>
328
329         * sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/mem.cc:
330           corrected handling of the highest_valid_address
331
332 2007-11-17 Raphael Neider <rneider AT web.de>
333
334         * src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
335         * src/pic/glue.c (picglue): emit .file if --debug is given
336
337 2007-11-17 Raphael Neider <rneider AT web.de>
338
339         * src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
340         care when left or right operand resides in result, fixes #1830220
341
342 2007-11-17 Borut Razem <borut.razem AT siol.net>
343
344         * src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
345           #983491 - "Merge duplicate strings function is ineffective"
346         * support/regression/tests/bug-983491.c: regtest disabled
347         * as/asxxsrc: created
348           as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
349           as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
350           as/z80/assym.c, as/hc08/asstore.c, as/mcs51/asstore.c: deleted
351           as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
352           as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
353           as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
354           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
355           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
356           as/link/z80/linkz80.dsp, as/mcs51/Makefile.bcc, as/mcs51/Makefile.in,
357           as/mcs51/asm.h, as/mcs51/asx8051.dsp, as/z80/Makefile.bcc,
358           as/z80/Makefile.in, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
359           as/z80/Makefile.as_hc08, as/mcs51/Makefile.asx8051: modified
360           created as/asxxsrc directory, assym.c and strcpi.c moved into it
361
362 2007-11-15 Maarten Brock <sourceforge.brock AT dse.nl>
363
364         * device/include/stdarg.h: added and removed some casts
365         * src/SDCCsymt.c (compareType): Fully check types between generic and
366           non-generic pointers, also accept ptr-ptr to void-ptr assignments
367
368 2007-11-13 Borut Razem <borut.razem AT siol.net>
369
370         * support/regression/tests/bug-1817005.c:
371           added regtest for bug #1817005 - as-z80 chokes on long labels
372
373 2007-11-12 Borut Razem <borut.razem AT siol.net>
374
375         * as\z80\asmain.c, as\z80\asm.h, as\z80\assym.c, as\z80\asdata.c,
376           as\z80\asout.c, as\z80\aslist.c:
377           fixed bug #1817005 - as-z80 chokes on long labels
378
379 2007-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
380
381         * as/hc08/asmain.c,
382         * as/z80/asmain.c: cosmetic changes
383         * as/hc08/alloc.h,
384         * as/mcs51/alloc.h,
385         * as/z80/alloc.h: removed
386         * as/hc08/assym.c,
387         * as/mcs51/assym.c: replaced alloc.h with stdlib.h
388         * as/link/aslink.h: added LKDIRSEP and, LKDIRSEPSTR
389         * as/link/hc08/Makefile.in,
390         * as/link/mcs51/Makefile.in,
391         * as/link/z80/Makefile.in: added -DUNIX to CFLAGS
392         * as/link/lklex.c,
393         * as/link/mcs51/lkarea.c,
394         * as/link/mcs51/lkmain.c: cosmetic changes
395         * as/link/hc08/lklibr.c,
396         * as/link/z80/lklibr.c,
397         * as/link/mcs51/lklibr.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
398           used cygwin_conv_to_full_posix_path,
399           added warnings, cosmetic changes, brought more in sync
400           changed old K&R into ANSI function declarations
401         * as/link/z80/lklibr.c (loadAdb): added
402         * as/link/z80/lkmain.c: removed -- option from usage text
403
404 2007-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
405
406         * src/mcs51/gen.c (outBitC): optimized for no result
407
408 2007-10-31 Borut Razem <borut.razem AT siol.net>
409
410         * src/SDCCsymt.c: fixed (hopeful properly) bug
411           #1805702 - order of extern matters
412         * support/regression/tests/bug-1805702.c: enabled regtest for bug
413           #1805702
414
415 2007-10-29 Borut Razem <borut.razem AT siol.net>
416
417         * src/SDCCsymt.c: reverted bad fixed of bug #1805702
418           - order of extern matters
419         * support/regression/tests/bug-1805702.c: disabled regtest for bug
420           #1805702
421
422 2007-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
423
424         * src/ds390/peeph.def: replaced 24bitModeAndPortDS390 by
425           24bitMode, portIsDS390
426         * src/mcs51/gen.c (genOr): optimized for RFE 1750727
427         * src/SDCCpeeph.c (flat24bitModeAndPortDS390): removed
428           (notVolatileVariable): also check sloc names,
429           (callFuncByName): moved ftab[] out of function and sorted it by use
430
431 2007-10-28 Maarten Brock <sourceforge.brock AT dse.nl>
432
433         * device/include/stdarg.h: fixed bug in va_start macro for --xstack
434         * src/hc08/gen.c (aopForRemat): aop->aopu.aop_immd.from_cast_remat not set,
435           aop->aopu.aop_immd.aop_immd2 not filled with (generic) pointer type
436         * src/SDCCicode.c (geniCodeCast): fixed bug 880197
437         * support/regression/tests/bug-880197.c: new, added
438
439 2007-10-28 Borut Razem <borut.razem AT siol.net>
440
441         * support/regression/Makefile.in,
442           support/regression/ports/mcs51-large/spec.mk,
443           support/regression/ports/mcs51-xstack-auto/spec.mk,
444           support/regression/ports/mcs51-stack-auto/spec.mk,
445           support/regression/ports/mcs51-medium/spec.mk,
446           support/regression/ports/mcs51-common/spec.mk,
447           support/regression/ports/mcs51-common/*,
448           support/regression/ports/mcs51-small/*:
449           mcs51 renamed to mcs51-common, created mcs51-small
450         * src/SDCCsymt.c: fixed bug #1805702 - order of extern matters
451         * support/regression/tests/bug-1805702.c: added regtest for bug
452           #1805702
453
454 2007-10-26 Maarten Brock <sourceforge.brock AT dse.nl>
455
456         * src/mcs51/peeph.def: moved rules 257.x to 253.x and re-enabled 253.b,
457           added new rules 265 - 270
458         * support/regression/tests/bug1721024.c:new, added
459         * support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
460           introduced new test-mcs51 to run all mcs51 tests
461
462 2007-10-25 Maarten Brock <sourceforge.brock AT dse.nl>
463
464         * support/regression/tests/bug1816470.c: new, added
465
466 2007-10-21 Maarten Brock <sourceforge.brock AT dse.nl>
467
468         * src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
469           propagate for *,+,- with float, fixed bug 1816470
470           (decorateType): cast to resultTypeProp instead of resultType
471
472 2007-10-19 Borut Razem <borut.razem AT siol.net>
473
474         * src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
475           function is ineffective" for pic16 tareget
476         * support/scripts/listerr.c: corrected include path
477         * device/lib/_itoa.c: fixed bug #1806402 - _itoa and _uitoa leak to
478           adjacent memory
479
480 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
481
482         * support/regression/tests/using.c: new, added
483         * support/regression/tests/vaargs.c: fixed and enabled test
484
485 2007-10-18 Borut Razem <borut.razem AT siol.net>
486
487         * src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
488           is ineffective
489         * support/regression/tests/bug-983491.c: added regtest for bug #983491
490
491 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
492
493         * doc/sdccman.lyx: documented option --Werror
494         * src/SDCCsymt.c (checkFunction): fixed bug 1815418 by setting
495           RegBankUsed[] earlier
496
497 2007-10-14 Maarten Brock <sourceforge.brock AT dse.nl>
498
499         * device/include/mcs51/p89lpc938.h: new, added, thanks Kyle Guinn
500         * src/pic/glue.c,
501         * src/SDCCval.c,
502         * src/SDCCast.c,
503         * src/SDCCast.h: replaced AST_LIT_VALUE with AST_FLOAT_VALUE and
504           AST_ULONG_VALUE
505         * src/SDCCast.c (decorateType): improved optimization of tri-op
506         * src/SDCCerr.c (vwerror, setWError),
507         * src/SDCCerr.h,
508         * src/SDCCmain.c (parseCmdLine): added option --Werror to treat all
509           warnings as errors, thanks Stas Sergeev for PATCH 1813211
510
511 2007-10-13 Maarten Brock <sourceforge.brock AT dse.nl>
512
513         * src/mcs51/gen.c (leftRightUseAcc): use macro IS_OP_ACCUSE
514         * src/SDCCast.c (decorateType): optimize bit=cond?1:0, RFE 1738430
515         * support/regression/tests/bug-223113.c,
516         * support/regression/tests/bug-426632.c,
517         * support/regression/tests/bug-468811.c,
518         * support/regression/tests/bug-477835.c,
519         * support/regression/tests/bug-478094.c,
520         * support/regression/tests/bug-499644.c,
521         * support/regression/tests/bug-524209.c,
522         * support/regression/tests/bug-524211.c,
523         * support/regression/tests/packcast.c,
524         * support/regression/tests/structidx.c: added empty tests
525         * support/regression/tests/bug-607243.c: enabled test
526
527 2007-10-06 Borut Razem <borut.razem AT siol.net>
528
529         * .version, doc/sdccman.lyx: bumped version to 2.7.4 to indicate the full
530            support of universal binaries on Mac OS X
531
532 2007-10-02 Borut Razem <borut.razem AT siol.net>
533
534         * src/SDCCval.h: unified double2ul macro for all platforms
535         * src/SDCCval.c: fixed bug #1777758 - applied Maarten's patch
536         * support/regression/tests/bitwise.c: added regtest for bug #1777758
537
538 2007-09-30 Borut Razem <borut.razem AT siol.net>
539
540         * src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
541           platforms
542         * sdcc_vc_in.h: enabled warnings
543         * src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
544           unsigned type, result still unsigned
545         * src/mcs51/peep.c: fixed gcc warning: suggest parentheses around && within ||
546
547 2007-09-28 Raphael Neider <rneider AT web.de>
548
549         * src/pic/device.c (find_device): prevent buffer underflow error
550         * src/pic/pcoderegs.c (OptimizeRegUsage): avoid dereferencing
551           the just destroyed list entry
552
553 2007-09-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
554
555         * doc/sdccman.lyx: there's a dedicated wiki page for cmake and sdcc, thanks
556           Alexander Neundorf
557
558 2007-09-18 Borut Razem <borut.razem AT siol.net>
559
560         * src/SDCCval.c: fixed MSVC warning C4146: unary minus operator
561          applied to unsigned type, result still unsigned
562
563 2007-09-17 Borut Razem <borut.razem AT siol.net>
564
565         * src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c,
566           src/SDCCicode.c, src/SDCCopt.c, src/SDCCsymt.c, src/SDCCval.c,
567           src/SDCCval.h, src/hc08/gen.c, src/avr/gen.c, src/ds390/gen.c,
568           src/mcs51/gen.c, src/pic/gen.c, src/pic/genarith.c, src/pic/glue.c,
569           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/genarith.c,
570           src/pic16/genutils.c, src/pic16/glue.c, src/pic16/main.c,
571           src/z80/gen.c, src/z80/ralloc.c:
572           fixed bug #1739860 - sdcc does not work correctly on some platforms
573           (not finished)
574           introduced and used ulFromVal(), double2ul(), used strtod() instead sscanf()
575
576 2007-09-17 Raphael Neider <rneider AT web.de>
577
578         * src/pic16/device.c: reverted to previous version
579         * device/lib/pic16/Makefile.common.in: quieten gpasm via -Wa,-q
580
581 2007-09-16 Raphael Neider <rneider AT web.de>
582
583         * src/pic16/device.c (pic16_dump_usection): do not reserve 0 bytes,
584           as this raises a ton of gpasm warnings, just emit a second label
585         * src/pic16/devices.inc,
586         * device/lib/pic16/pics.all,
587         * device/lib/pic16/libdev/pic18f2585.c,
588         * device/lib/pic16/libdev/pic18f2680.c,
589         * device/lib/pic16/libdev/pic18f2682.c,
590         * device/lib/pic16/libdev/pic18f2685.c,
591         * device/lib/pic16/libdev/pic18f4585.c,
592         * device/lib/pic16/libdev/pic18f4680.c,
593         * device/lib/pic16/libdev/pic18f4682.c,
594         * device/lib/pic16/libdev/pic18f4685.c,
595         * device/include/pic16/pic18f2585.h,
596         * device/include/pic16/pic18f2680.h,
597         * device/include/pic16/pic18f2682.h,
598         * device/include/pic16/pic18f2685.h,
599         * device/include/pic16/pic18f4585.h,
600         * device/include/pic16/pic18f4680.h,
601         * device/include/pic16/pic18f4682.h,
602         * device/include/pic16/pic18f4685.h,
603         * device/include/pic16/pic18fregs.h: added 18f2585, 18f2680,
604           18f2682, 18f2685, 18f4585, 18f4680, 18f4682, 18f4685,
605           patch contributed by Anton Strobl, applied with changes
606
607 2007-09-16 Raphael Neider <rneider AT web.de>
608
609         * device/include/pic16/pic18f2431.h,
610         * device/include/pic16/pic18f25j10.h,
611         * device/include/pic16/pic18f4431.h,
612         * device/include/pic16/pic18f45j10.h: adopted common include style
613         * device/include/pic16/pic18f1320.h,
614         * device/include/pic16/pic18f2320.h,
615         * device/include/pic16/pic18f2525.h,
616         * device/include/pic16/pic18f4320.h,
617         * device/include/pic16/pic18f4525.h: NEW, just include proper .h file
618         * device/include/pic16/pic18fregs.h: prepared for automatic include
619           file selection by having DEVICE.h for every DEVICE
620         * device/lib/pic16/libdev/pic18f2320.c,
621         * device/lib/pic16/libdev/pic18f4320.c: just include proper .c file
622
623         * device/lib/pic16/configure.in,
624         * device/lib/pic16/configure: use rm -rf instead of rmdir
625         * device/lib/pic16/Makefile.in: use RMDIR to remove build directories
626         * device/lib/pic16/libc/stdlib/free.c: avoid warning on pointer cast
627
628 2007-09-09 Borut Razem <borut.razem AT siol.net>
629
630         * src/SDCCmain.c, src/SDCCutil.c: print newline after printVersionInfo(),
631           distingush between i386 and ppc Mac OS X versions
632
633 2007-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
634
635         * src/mcs51/gen.c (genReceive): fixed bug 1788177
636         * support/regression/tests/bug1788177.c: new, added
637
638 2007-09-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
639
640         * doc/sdccman.lyx: mentioned d52 and cmake, customizing startup code
641         * device/include/mcs51/lint.h added keyword __naked
642
643 2007-09-04 Maarten Brock <sourceforge.brock AT dse.nl>
644
645         * src/pic16/glue.c,
646         * src/pic/glue.c,
647         * src/SDCCmem.h: removed maxRegBank
648         * src/SDCCmem.c (allocVariables): removed maxRegBank and moved setting
649           RegBankUsed[] to checkFunction() in SDCCsymt.c to fix bug 1759839
650         * src/SDCCsymt.c (checkFunction): set RegBankUsed[] here
651         * src/mcs51/peep.c (isCallerSaveFunc, termScanAtFunc): changed function
652           name and behaviour to handle banked functions
653           (scan4op): and use it to fix bug 1786213
654
655 2007-09-03 Raphael Neider <rneider AT web.de>
656
657         * device/include/pic16/pic18f248.h,
658         * device/include/pic16/pic18f258.h,
659         * device/include/pic16/pic18f448.h,
660         * device/lib/pic16/libdev/pic18f248.c,
661         * device/lib/pic16/libdev/pic18f258.c,
662         * device/lib/pic16/libdev/pic18f448.c: fixed TRISEbits,
663           added T0CONbits, fixes #1786891
664
665 2007-08-29 Maarten Brock <sourceforge.brock AT dse.nl>
666
667         * src/ds390/gen.c (genFarPointerSet),
668         * src/hc08/ralloc.c (packRegisters),
669         * src/mcs51/ralloc.c (packRegisters),
670         * src/SDCCcse.c (cseBBlock): check if result is a symbol first to fix
671           bug 1750318
672         * src/SDCCicode.h: POINTER_SET can be true for literals too
673         * support/regression/tests/bug1750318.c: new, added
674
675 2007-08-23 Borut Razem <borut.razem AT siol.net>
676
677         * debugger/mcs51/sdcdb.c: fixed compilation with older readline
678           library versions without the completition functionality
679
680 2007-08-22 Raphael Neider <rneider AT web.de>
681
682         * device/include/pic16/pic18f1220.h,
683         * device/lib/pic16/libdev/pic18f1220.c: applied patch #1776191
684
685 2007-08-12 Borut Razem <borut.razem AT siol.net>
686
687         * debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
688
689 2007-08-11 Borut Razem <borut.razem AT siol.net>
690
691         * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
692           src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
693           support/Util/SDCCerr.[ch] moved to src
694         * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
695           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
696           device/examples/ds390/tinitalk/tinitalk.dsp,
697           device/examples/serialcomm/windows/serialcomm.dsp,
698           support/librarian/librarian.dsp:
699           removed linking of unused odbc32.lib and odbccp32.lib
700         * support/scripts/winres.h:
701           added for compilation with Visual C++ 2005 Express Edition
702
703 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
704
705         * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
706           and CKCON1.
707
708 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
709
710         * sdccconf_in.h: update the endian test so that SPARC Solaris
711           does not throw syntax errors
712
713 2007-08-06 Borut Razem <borut.razem AT siol.net>
714
715         * doc/sdccman.lyx: removed two index entries which prevented the
716           generation of sdcc doc archive
717
718 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
719
720         * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
721           instead of lyx 1.5.0.
722
723 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
724
725         * device/include/hc08/mc68hc908apxx.h: new header contributed by
726           Lucas Loizaga, with minor modifications. Thanks!
727
728 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
729
730         * doc/sdccman.lyx: Documented --acall-ajmp and described new features
731           in sdcclib.
732
733 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
734
735         * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
736           src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
737           with acall/ajmp.
738
739 2007-07-22 Borut Razem <borut.razem AT siol.net>
740
741         * configure.in, configure: re-introduced .version
742         * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
743           the version reverted to 2.7.0
744
745 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
746
747         * configure.in,
748         * doc/sdccman.lyx: bumped version to 2.7.3
749         * device/include/mcs51/compiler.h: fixed elif->else
750         * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
751         * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
752           (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
753            enable accuse for bit operands
754         * src/SDCCmain.c (printVersionInfo),
755         * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
756           environment descriptor
757         * src/SDCCutil.h: added getBuildEnvironment
758         * src/SDCCglue.c (initialComments): use getBuildEnvironment
759         * support/regression/tests/bug1464657.c: enabled test test_Peephole251
760         * support/regression/tests/bug-408972.c: enabled test leftShiftLong
761         * support/regression/tests/bug1348008.c,
762         * support/regression/tests/bug1496419.c,
763         * support/regression/tests/bug1503067.c,
764         * support/regression/tests/preproc.c: added empty tests
765
766 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
767
768         * support/regression/tests/bug1678803.c: new, added
769
770 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
771
772         * as/link/aslink.h,
773         * as/link/hc08/lkihx.c,
774         * as/link/hc08/lkrloc.c,
775         * as/link/mcs51/lkihx.c,
776         * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
777           ihxExtendedLinearAddress
778         * as/link/mcs51/lkrloc.c (relr),
779         * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
780           acall/ajmp, see bug 830513
781
782 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
783
784         * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
785           (cseBBlock): remember aggr2ptr has been used
786         * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
787           (geniCodeAssign): fixed bug 868103
788         * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
789           added operandSize prototype
790         * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
791           (genDataPointerSet): use max of size of right and result,
792           (gencjne): added parameter useCarry for optimization,
793           (genCmpEq): use carry if appropriate,
794           (genXor): check if operand already in carry
795         * support/regression/tests/bug-868103.c: enabled test
796
797 2007-07-12 Raphael Neider <rneider AT web.de>
798
799         * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
800
801 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
802
803         * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
804           from Robert Larice, thanks
805         * support/regression/tests/bitopcse.c,
806         * support/regression/tests/bitvars.c,
807         * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
808         * support/regression/tests/bug-927659.c: enabled test for z80
809         * support/regression/tests/bug1738367.c: added extra tests by Frieder
810         * support/regression/tests/bug1745717.c: new, added
811         * support/regression/tests/literalop.c,
812         * support/regression/tests/nullstring.c: removed storage definitions that
813           are now in testfwk.h
814
815 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
816
817         * device/include/stdbool.h: do not define __bool_true_false_are_defined
818           and bool for targets that do not fully support it.
819         * support/regression/tests/bug1546986.c,
820         * support/regression/tests/bug1723128.c,
821         * support/regression/tests/bug1734654.c,
822         * support/regression/tests/bug1738367.c,
823         * support/regression/tests/constantRange.c: only use bool if allowed
824
825 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
826
827         * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
828           Larice, also handle function pointers
829         * support/regression/tests/bug1749275.c: new, added
830
831 2007-07-03 Borut Razem <borut.razem AT siol.net>
832
833         * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
834           src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
835           #1746528: SDCC should ignore ':' in inline assembler comments
836         * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
837
838 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
839
840         * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
841         * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
842
843 2007-06-29 Borut Razem <borut.razem AT siol.net>
844
845         * src/SDCCmain.c: fixed bug
846           #1744746: SDCC #4867: broken option --xram-size
847
848 2007-06-28 Borut Razem <borut.razem AT siol.net>
849
850         * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
851           find out the endianess of host machine for ucsim
852
853 2007-06-27 Borut Razem <borut.razem AT siol.net>
854
855         * support/regression/generate-cases.py: corrected the file name
856           in warning
857         * configure.in, configure, sdccconf_in.h: find out the endianess of
858           host machine
859         * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
860           negative size
861
862 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
863
864         * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
865
866 2007-06-26 Borut Razem <borut.razem AT siol.net>
867
868         * support/regression/generate-cases.py: display warning if function
869           list is empty; implemented more flexible rule for detection of
870           testing functions, allowing return type 'void' in the same line as
871           the function name in the function definition
872         * support/regression/tests/bug-1654060.c: corrected test
873         * support/librarian/sdcclib.c: fixed warning:
874           format '%s' expects type 'char *', but argument 2 has type 'int'
875
876 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
877
878         * support/librarian/sdcclib.c: Added feature Requests [1510635]
879           Multiple infiles for sdcclib.
880
881 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
882
883         * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
884           bug 1731741
885
886 2007-06-18 Borut Razem <borut.razem AT siol.net>
887
888         * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
889           how to handle comments, so they have to be removed by the
890           preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
891         * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
892           src/pic16/main.c, src/pic/main.c, src/z80/main.c,
893           support/Util/SDCCerr.c, support/Util/SDCCerr.h:
894           table driven option hadling
895
896 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
897
898         * src/SDCCast.c (decorateType),
899         * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
900           iCode to ast level to fix bug 1738367
901         * support/regression/tests/bug1738367.c: new, added
902
903 2007-06-15 Raphael Neider <rneider AT web.de>
904
905         * src/pic16/devices.inc,
906         * device/lib/pic16/pics.all,
907         * device/include/pic16/pic18fregs.h,
908         * device/include/pic16/pic18f[24][45]20.h,
909         * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
910           18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
911         * device/lib/pic16/Makefile.in: faster cleanup
912
913 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
914
915         * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
916
917 2007-06-13 Raphael Neider <rneider AT web.de>
918
919         * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
920
921 2007-06-12 Raphael Neider <rneider AT web.de>
922
923         * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
924           suppress bit defines if NO_BIT_DEFINES is #define'd
925         * device/include/pic/pic*.h: recreated all headers to include
926           conditional bit defines
927         * device/include/pic/pic16f886.h,
928         * device/include/pic/pic16f887.h: fixed based on newer .inc file
929         * device/include/pic/recreate.sh: script to recreate the complete
930           device library files based on the currently supported devices
931
932 2007-06-12 Borut Razem <borut.razem AT siol.net>
933
934         * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
935           support/regression/Makefile.in, support/scripts/build.mak,
936           support/scripts/Makefile.snapshot:
937           use new svn URL scheme
938         * doc/sdccman.lyx: SDCC Wiki moved to
939           http://sdcc.wiki.sourceforge.net/
940
941 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
942
943         * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
944         * support/regression/tests/bug1734654.c: added
945
946 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
947
948         * src/SDCCast.c (decorateType): optimized '?' for equal operands
949         * src/SDCCicode.c (geniCodeConditional): optimization for bit result
950           with literal operands
951
952 2007-06-10 Borut Razem <borut.razem AT siol.net>
953
954         * as/link/z80/lklibr.c: fixed mingw build warning
955           lklibr.c:575: warning: implicit declaration of function 'tolower'
956         * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
957           src/z80/main.c: move target specific options from src/SDCCmain.c
958           to src/<target>/main.c
959
960 2007-06-09 Borut Razem <borut.razem AT siol.net>
961
962         * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
963           removed unused swap_sense; removed outBitCLong, replaced with outBitC
964         * support/regression/tests/bug-1294691.c: added
965
966 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
967
968         * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
969           can also be static, fixes bug 1733438
970         * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
971           have absolute address too
972           (computeType): added optimization for 'cond ? true : false'
973         * support/regression/tests/absolute.c: added test for static absolute var
974
975 2007-06-08 Raphael Neider <rneider AT web.de>
976
977         * src/regression/Makefile: suppress parallel builds, allow easy
978           switching between pic14/pic16 ports
979         * src/regression/picregs.h: added pic14/16 header file switch
980         * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
981           inline.c,nestfor.c,string1.c}: include "picregs.h"
982
983 2007-06-07 Borut Razem <borut.razem AT siol.net>
984
985         * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
986           permanent solution to suppress GCC 4.2.0 c++ warning:
987           deprecated conversion from string constant to `char *'
988           use 'const char *' where ever required
989         * support/regression/generate-cases.py: implemented more flexible rule
990           for detection of testing functions, allowing white-spaces surrounding
991           the function name and the 'void' parameter.
992         * support/regression/tests/constantRange.c,
993           support/regression/tests/scott-compare3.c: fixed failing regression
994           tests, uncovered by implementation of more flexible rule for detection
995           of testing functions
996
997 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
998
999         * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
1000
1001 2007-06-04 Borut Razem <borut.razem AT siol.net>
1002
1003         * configure.in, configure, config_vc.awk: sdcc version number is now
1004           stored in configure.in; removed .version
1005         * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
1006           doc/INSTALL.txt: version bumped to 2.7.2
1007         * sim/ucsim/configure.in, sim/ucsim/configure:
1008           use "read" to read from .version
1009
1010 2007-06-03 Borut Razem <borut.razem AT siol.net>
1011
1012         * */Makefile.in: removed annoying warning:
1013           Makefile:xx: Makefile.dep: No such file or directory
1014
1015 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
1016
1017         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
1018           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
1019         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
1020         * src/SDCCast.c (resultTypePropagate): propagate for '!',
1021           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
1022           bugfix: only use newBoolLink for bit result type
1023         * src/SDCCicode.c (geniCodeLogic): added param tree,
1024           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
1025           (geniCodeLogicAndOr): use IS_BIT,
1026           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
1027           (ast2iCode): added tree param to geniCodeLogic for comparisons
1028         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
1029         * support/regression/tests/bug1723128.c: added test NotZero
1030
1031 2007-06-01 Borut Razem <borut.razem AT siol.net>
1032
1033         * SDCPP synchronized with GCC CPP release version 4.2.0,
1034           currently the latest release:
1035         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1036           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
1037           support/cpp2/cppdefault.h, support/cpp2/except.h,
1038           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
1039           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
1040           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
1041           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
1042           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
1043           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
1044           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
1045           support/cpp2/opts.h, support/cpp2/output.h,
1046           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
1047           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
1048           support/cpp2/system.h, support/cpp2/version.c,
1049           support/cpp2/Makefile.in: modified
1050         * support/cpp2/opts-common.c: added
1051         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
1052         * device/lib/pic16/libdev/pic18f[24]5j10.c:
1053           search for included source file in local directory
1054         * sim/ucsim/configure, sim/ucsim/configure.in:
1055           temporary solution to suppress GCC 4.2.0 c++ warning:
1056           deprecated conversion from string constant to `char *'
1057
1058 2007-06-01 Raphael Neider <rneider AT web.de>
1059
1060         * device/lib/pic/libdev/pic12f683.c,
1061         * device/include/pic/pic12f683.h: added GPIO bits
1062
1063 2007-06-01 Raphael Neider <rneider AT web.de>
1064
1065         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
1066           quotation marks, clarified role of PIC14 vs. PIC16 ports
1067         * src/pic16/devices.inc,
1068         * device/include/pic16/pic18fregs.h,
1069         * device/include/pic16/pic18f[24][45]j10.h,
1070         * device/lib/pic16/pics.all,
1071         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
1072           18f24j10, 18f25j10, 18f44j10, and 18f45j10
1073         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
1074           for new devices as they are not yet supported by gputils
1075
1076 2007-05-31 Borut Razem <borut.razem AT siol.net>
1077
1078         * Small Device C Compiler 2.7.0 released
1079         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
1080           changed sdcc version to 2.7.1
1081         * support/scripts/sdcc.nsi: added How to create WIN32 release
1082           setup.exe package
1083
1084 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
1085
1086         * doc/sdccman.lyx: documented initialization and allocation of absolute
1087           variables, bit parameter passing, the need for function pointers to be
1088           reentrant and alpha quality support of inline and retrict
1089
1090 2007-05-26 Borut Razem <borut.razem AT siol.net>
1091
1092         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
1093           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
1094         * docs/knownbugs.html: updated
1095
1096 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
1097
1098         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
1099           thanks Jan Waclawek
1100         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
1101           AOP_CRY and ruonly
1102           (gencjneshort): optimized when left is AOP_DIR
1103         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
1104           initializing unions in a struct/array
1105         * support/regression/fwk/include/testfwk.h: added defines for data, near
1106           and far for host and z80
1107         * support/regression/tests/bug1723128.c: new, added
1108
1109 2007-05-22 Borut Razem <borut.razem AT siol.net>
1110
1111         * doc/knownbugs.html: updated
1112
1113 2007-05-21 Raphael Neider <rneider AT web.de>
1114
1115         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
1116           error message instead
1117         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
1118
1119 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
1120
1121         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
1122
1123 2007-05-21 Raphael Neider <rneider AT web.de>
1124
1125         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
1126           closes #1722392
1127         * src/regression/gpsim_assert.h,
1128         * src/regression/Makefile,
1129         * src/regression/pcodeopt.c: regression test for the above fix
1130
1131 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
1132
1133         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
1134           jumps to self, fixed bug 1717281
1135
1136 2007-05-10 Borut Razem <borut.razem AT siol.net>
1137
1138         * support/scripts/gen_known_bugs.pl: cosmetic fix
1139         * doc/knownbugs.html: generated by gen_known_bugs.pl
1140
1141 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1142
1143         * src/SDCCast.c (createFunction): also generate non-inlined version of
1144           function for functions declared as "static inline"
1145         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
1146           function can be inlined after non-inlined version generated.
1147
1148 2007-05-10 Borut Razem <borut.razem AT siol.net>
1149
1150         * support/scripts/gen_known_bugs.pl: added script
1151           which generates knownbugs.html
1152
1153 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
1154
1155         * doc/knownbugs.html: updated for release 2.7.0
1156
1157 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1158
1159         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
1160
1161 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
1162
1163         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
1164           (throughout): updated generating comments
1165         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
1166           (throughout): updated generating comments
1167         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
1168           rule instead of at the second, or it might skip lines when removing the
1169           complete match
1170         * support/regression/tests/bug1714204.c: changed test to foo
1171
1172 2007-05-08 Borut Razem <borut.razem AT siol.net>
1173
1174         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
1175           thanks to SDCC Distributed Compile Farm members,
1176           added Z80 and GBZ80 command line options
1177         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
1178
1179 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
1180
1181         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
1182         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
1183         * support/regression/tests/longlit.c: modified to be tested at all and
1184           to pass the actual test
1185
1186 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1187
1188         * device/include/mcs51/uPSD33xx.h: Added.
1189
1190 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
1191
1192         * device/lib/_gptrput.c,
1193         * device/lib/_gptrget.c: removed old code,
1194          (_gptrgetWord),
1195         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
1196         * support/regression/tests/bug1714204.c: new, added
1197
1198 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1199
1200         * support/regression/tests/regtrack.c: test was never executed
1201           because of the regression test being picky about white spaces.
1202         * device/lib/mcs51/crtclear.asm: added comment
1203
1204 2007-05-06 Raphael Neider <rneider AT web.de>
1205
1206         * device/lib/pic/Makefile.rules,
1207         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
1208           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
1209
1210 2007-05-06 Raphael Neider <rneider AT web.de>
1211
1212         * src/pic16/device.h,
1213         * src/pic16/main.h,
1214         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
1215           _pic16_setDefaultOptions): removed/reordered command-line args
1216         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
1217           devices, regrouped command line args, environment variables),
1218           clarified sone points, added sections on how to add devices to the
1219           PIC14/PIC16 ports
1220
1221 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
1222
1223         * src/z80/peeph.def: fixed bug in rule 2
1224
1225 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
1226
1227         * src/port.h: added TARGET_MCS51_LIKE
1228         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
1229           take advantage of it too
1230         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
1231           (shiftR2Left2Result): Optimized: don't check shifting by 0
1232         * src/z80/peeph-z80.def,
1233         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
1234           modifications, see patch 1700823
1235         * src/mcs51/peep.c (): fixed bug 1712928
1236         * support/regression/tests/bug1712928.c: new, added
1237
1238 2007-05-05 Borut Razem <borut.razem AT siol.net>
1239
1240         * device/lib/pic16/Makefile.common.in,
1241           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
1242           removed bash dependencies
1243
1244 2007-05-01 Borut Razem <borut.razem AT siol.net>
1245
1246         * src/SDCCicode.c:
1247           fixed bug #1710507: --i-code-in-asm makes compile fail
1248           all iCode comments are now one liners
1249         * src/mcs51/gen.c: fixed memory leak
1250
1251 2007-05-01 Raphael Neider <rneider AT web.de>
1252
1253         * device/lib/pic/libdev/*.c
1254         * device/include/pic/*.h: regenerated all device libs from updated
1255           .inc files
1256         * support/scripts/inc2h.pl: documented usage, now uses strict to
1257           catch more bugs
1258
1259 2007-04-30 Borut Razem <borut.razem AT siol.net>
1260
1261         * doc/sdccman.lyx:
1262           fixed bug #1669175: Problem with space in output paths
1263           documented how to use paths with spaces for Windows users
1264
1265 2007-04-29 Borut Razem <borut.razem AT siol.net>
1266
1267         * Fixed svn:eol-style and svn:keywords properties
1268         * src/SDCCval.c: fixed bug
1269           #1592871: Segfault with "large" const arrays of characters
1270           replaced recursion with iteration
1271         * Removed svn:executable property from non-executable files
1272
1273 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
1274
1275         * src/mcs51/gen.c (genRet): fixed bug 1707003
1276
1277 2007-04-27 Raphael Neider <rneider AT web.de>
1278
1279         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
1280           createReachingDefinitions,assignValnums,pic16_destructDF,
1281           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
1282           prevent NULL pointer dereferences
1283         * device/lib/pic/libdev/pic16f886.c,
1284         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
1285           prevent building them, gputils do not really support them yet
1286
1287 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1288
1289         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
1290           helps printf_small. 32 bytes more __idata mem.
1291
1292 2007-04-27 Raphael Neider <rneider AT web.de>
1293
1294         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
1295           return early when pb or pb->pcHead is NULL (patch #1708427)
1296         * src/regression/empty.c,
1297         * src/regression/Makefile: added test with empty functions
1298         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
1299
1300 2007-04-27 Borut Razem <borut.razem AT siol.net>
1301
1302         * src/SDCCast.c: fixed feature request
1303           #1547512: Redundant strings linked when using sizeof("abc")
1304
1305 2007-04-23 Borut Razem <borut.razem AT siol.net>
1306
1307         * doc/sdccman.lyx, src/SDCCmain.c:
1308           peep-hole comments are generated only if --fverbose-asm option is
1309           specified and --no-peep-comments is not, as proposed by Frieder.
1310         * support/regression/Makefile.in: compile regression tests with
1311           --fverbose-asm option so one can "grep" whether a new (or an old)
1312           peephole is (still) applied; requested by Frieder.
1313
1314 2007-04-23 Kevin Buettner <kevin AT buettner.to>
1315
1316         * device/include/pic/pic16f886.h,
1317         * device/include/pic/pic16f887.h,
1318         * device/lib/pic/libdev/pic16f886.c,
1319         * device/lib/pic/libdev/pic16f887.c,
1320         * device/include/pic/pic14devices.txt,
1321         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
1322
1323 2007-04-23 Kevin Buettner <kevin AT buettner.to>
1324
1325         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
1326           fixes #1704666
1327
1328 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1329
1330         * device/lib/_memset.c: assembler version for mcs51
1331
1332 2007-04-22 Borut Razem <borut.razem AT siol.net>
1333
1334         * support/scripts/listerr.c: program to create the list of errors and
1335           warnings list from - added
1336         * doc/sdccman.lyx: removed the note
1337           "For list of warnings and corresponding codes, see err_warn.txt"
1338         * src/SDCCsymt.c: fixed bug #1699804:
1339           Bug with some uses of sizeof(static local array) (MCS51)
1340         * support/regression/tests/bug-1699804.c: added
1341
1342 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
1343
1344         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
1345           (main): added option -i,
1346           (asmbl, case S_INCL): use search_path_fopen,
1347           mostly from patch 1579668 by Peter Miller, thanks
1348         * src/z80/main.c: fixed typo --callee-saves-bc
1349         * device/include/mcs51/compiler.h: added sfrword for Tasking
1350
1351 2007-04-20 Borut Razem <borut.razem AT siol.net>
1352
1353         * src/z80/main.c: replaced reserved keyword asm with asmblr
1354
1355 2007-04-19 Borut Razem <borut.razem AT siol.net>
1356
1357         * src/port.h: use const pointers to strings
1358         * src/SDCCargs.h: declared getStringArg() and getIntArg()
1359         * src/pic16/main.c: include SDCCargs.h
1360         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
1361           const char, since the strings are dynamically allocated
1362         * src/SDCCmain.c: options.code_seg and options.const_seg are
1363           dynamically allocated; check port specific command line options
1364           before the general ones
1365         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
1366
1367 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
1368
1369         * device/include/ds400rom.h,
1370         * device/lib/ds390/lcd390.c,
1371         * device/lib/ds390/memcpyx.c,
1372         * device/lib/ds390/rtc390.c,
1373         * device/lib/ds400/ds400rom.c,
1374         * device/lib/ds400/memcpyx.c,
1375         * device/lib/hc08/_ret.c: more replacements of keywords with their
1376           double underscore equivalents
1377         * device/lib/ds390/Makefile.in,
1378         * device/lib/ds400/Makefile.in,
1379         * device/lib/gbz80/Makefile.in,
1380         * device/lib/hc08/Makefile.in,
1381         * device/lib/mcs51/Makefile.in,
1382         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
1383
1384 2007-04-17 Borut Razem <borut.razem AT siol.net>
1385
1386         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
1387           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
1388           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
1389           to --fverbose-asm, to be gcc'ish
1390
1391 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
1392
1393         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
1394
1395 2007-04-17 Borut Razem <borut.razem AT siol.net>
1396
1397         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
1398         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
1399           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
1400           with their double underscore equivalent
1401
1402 2007-04-14 Borut Razem <borut.razem AT siol.net>
1403
1404         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
1405           source"
1406
1407 2007-04-13 Borut Razem <borut.razem AT siol.net>
1408
1409         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
1410           C99 standard
1411         * device/examples/serialcomm/windows/serial.[ch],
1412           device/examples/serialcomm/windows/test_serialcomm.cpp:
1413           updated by Bela Torok
1414         * device/examples/serialcomm/windows/serialcomm.dsw,
1415           device/examples/serialcomm/windows/serialcomm.dsp: added
1416
1417 2007-04-13 Jan Waclawek <wek AT efton.sk>
1418
1419         * doc/sdccman.lyx: additions and changes at various places
1420           (submitted as #1697136).
1421           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
1422
1423 2007-04-10 Borut Razem <borut.razem AT siol.net>
1424
1425         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
1426           LyX file format changed to 245
1427         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
1428           "FreeWare" replaced with "free open source"
1429
1430 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
1431
1432         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
1433
1434 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
1435
1436         * device/include/pic16/pic18fregs.h,
1437         * device/lib/_bp.c,
1438         * device/lib/_decdptr.c,
1439         * device/lib/_divsint.c,
1440         * device/lib/_divslong.c,
1441         * device/lib/_divuint.c,
1442         * device/lib/_divulong.c,
1443         * device/lib/_fs2schar.c,
1444         * device/lib/_fs2sint.c,
1445         * device/lib/_fs2slong.c,
1446         * device/lib/_fs2uchar.c,
1447         * device/lib/_fs2uint.c,
1448         * device/lib/_fs2ulong.c,
1449         * device/lib/_fsadd.c,
1450         * device/lib/_fscmp.c,
1451         * device/lib/_fsdiv.c,
1452         * device/lib/_fseq.c,
1453         * device/lib/_fsget1arg.c,
1454         * device/lib/_fsget2args.c,
1455         * device/lib/_fsgt.c,
1456         * device/lib/_fslt.c,
1457         * device/lib/_fsmul.c,
1458         * device/lib/_fsneq.c,
1459         * device/lib/_fsnormalize.c,
1460         * device/lib/_fsreturnval.c,
1461         * device/lib/_fsrshift.c,
1462         * device/lib/_fssub.c,
1463         * device/lib/_fsswapargs.c,
1464         * device/lib/_gptrget.c,
1465         * device/lib/_gptrgetc.c,
1466         * device/lib/_gptrput.c,
1467         * device/lib/_logexpf.c,
1468         * device/lib/_modsint.c,
1469         * device/lib/_modslong.c,
1470         * device/lib/_moduint.c,
1471         * device/lib/_modulong.c,
1472         * device/lib/_mulint.c,
1473         * device/lib/_mullong.c,
1474         * device/lib/_schar2fs.c,
1475         * device/lib/_ser.c,
1476         * device/lib/_setjmp.c,
1477         * device/lib/_sint2fs.c,
1478         * device/lib/_slong2fs.c,
1479         * device/lib/_spx.c,
1480         * device/lib/_uchar2fs.c,
1481         * device/lib/_uint2fs.c,
1482         * device/lib/_ulong2fs.c,
1483         * device/lib/asincosf.c,
1484         * device/lib/atanf.c,
1485         * device/lib/calloc.c,
1486         * device/lib/ds390/tinibios.c,
1487         * device/lib/ds400/tinibios.c,
1488         * device/lib/expf.c,
1489         * device/lib/free.c,
1490         * device/lib/hc08/_mulint.c,
1491         * device/lib/logf.c,
1492         * device/lib/malloc.c,
1493         * device/lib/printf_fast.c,
1494         * device/lib/printf_tiny.c,
1495         * device/lib/printfl.c,
1496         * device/lib/realloc.c,
1497         * device/lib/ser_ir.c,
1498         * device/lib/serial.c,
1499         * support/regression/tests/libmullong.c: replaced all special keywords
1500           with their double underscore equivalent
1501         * support/regression/ports/mcs51-xstack-auto/spec.mk,
1502         * device/lib/Makefile.in: compile libs with --std-c99 instead of
1503           --std-sdcc99
1504         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
1505           (genRet): if the bit-symbol is ruonly it already is in the carry
1506         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
1507         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
1508         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
1509           type UCHAR if dest is not bit
1510
1511 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
1512
1513         * device/include/math.h,
1514         * device/lib/cotf.c,
1515         * device/lib/expf.c,
1516         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
1517
1518 2007-04-01 Borut Razem <borut.razem AT siol.net>
1519
1520         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
1521           fixed bug #1692042: input buffer overflow...scanner uses REJECT
1522         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
1523           gcc_unreachable() called internal_error()...
1524
1525 2007-03-30 Raphael Neider <rneider AT web.de>
1526
1527         * src/pic/ralloc.c (isData): suppress garbage debug output
1528
1529 2007-03-28 Borut Razem <borut.razem AT siol.net>
1530
1531         * doc/sdccman.lyx:
1532           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
1533           is developed, built and used worldwide, and the word "night" doesn't
1534           make any sense.
1535
1536 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
1537
1538         * device/include/mcs51/C8051F360.h: new, added
1539         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
1540
1541 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1542
1543         * src/SDCC.y (declaration_specifiers, function_specifier),
1544         * support/Util/SDCCerr.c,
1545         * support/Util/SDCCerr.h,
1546         * src/SDCCsymt.h,
1547         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
1548           inline keyword
1549         * src/SDCCmem.c (deallocParms),
1550         * src/SDCCast.c: support for function inlining, not quite complete
1551         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
1552           'restrict' qualifier
1553
1554 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
1555
1556         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
1557           (saveRBank, unsaveRBank): don't save bits,
1558           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
1559         * support/regression/tests/bug1535242.c: new, added
1560         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
1561           thanks Alexey Shamrin <shamrin AT gmail.com>,
1562           made assert.h header ANSI compliant (added a check for NDEBUG macro,
1563           removed header guard)
1564         * .version,
1565         * sdcc.spec: bumped version to 2.6.5
1566         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
1567
1568 2007-03-22 Borut Razem <borut.razem AT siol.net>
1569
1570         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
1571           fixed bug #1653671: sdcdb integration into ddd is broken
1572
1573 2007-03-22 Raphael Neider <rneider AT web.de>
1574
1575         * src/pic/gen.c (popGetExternal): augmented to also create references
1576           to external variables (not only labels),
1577           (genCall): comment on plan to reduce PAGESEL overhead,
1578           (genFunction, genEndFunction): also save/restore FSR around interrupt
1579           handling code, removed lots of unused code
1580           (genDivOneByte): release acquired temp register
1581         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
1582           of popGetExternal
1583         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
1584           for registers that need to be saved during interrupts (FSR, STATUS,
1585           PCLATH; W needs special handling), currently only FSR is used
1586
1587 2007-03-22 Raphael Neider <rneider AT web.de>
1588
1589         * device/include/pic/pic14devices.txt: 16f688 has only one config word
1590
1591 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1592
1593         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
1594
1595 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
1596
1597         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
1598
1599 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
1600
1601         * as/link/aslink.h: added LKOBJEXT
1602         * as/link/hc08/link_hc08.dsp,
1603         * as/link/hc08/Makefile.bcc,
1604         * as/link/hc08/Makefile.in,
1605         * as/link/mcs51/aslink.dsp,
1606         * as/link/mcs51/Makefile.bcc,
1607         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
1608         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
1609         * as/link/lkaomf51.c: merged and moved
1610         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
1611         * as/link/z80/lkdata.c,
1612         * as/link/lkdata.c: merged and moved
1613         * as/link/hc08/lkmain.c,
1614         * as/link/mcs51/lkmain.c: cosmetic changes
1615         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
1616         * as/link/lklex.c: use LKOBJEXT
1617         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
1618           ANSI-fied functions, removed bubble-sorts
1619         * as/link/z80/lksym.c           as/link/lksym.c: merged,
1620           ANSI-fied functions
1621         * as/link/z80/linkgbz80.dsp,
1622         * as/link/z80/linkz80.dsp,
1623         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
1624           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
1625         * as/link/z80/lkhead.c,
1626         * as/link/z80/lklex.c: deleted
1627         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
1628         * as/link/z80/lkmain.c: added copyfile()
1629
1630 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1631
1632         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
1633
1634 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1635
1636         * device/lib/_strlen.c: assembler version for mcs51
1637
1638 2007-03-13 Raphael Neider <rneider AT web.de>
1639
1640         * device/include/pic16/pic18f2221.h,
1641         * device/include/pic16/pic18f2321.h,
1642         * device/include/pic16/pic18f2331.h,
1643         * device/include/pic16/pic18f4221.h,
1644         * device/include/pic16/pic18f4321.h,
1645         * device/include/pic16/pic18f4331.h: fixed config byte location names
1646         * support/scripts/inc2h-pic16.pl: removed debug output, emit
1647           consistently named config byte locations
1648
1649 2007-03-13 Borut Razem <borut.razem AT siol.net>
1650
1651         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
1652           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
1653           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
1654           as/link/z80/Makefile.in, as/z80/Makefile.in:
1655           introduced LDFLAGS
1656
1657 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1658
1659         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
1660         * device/lib/printf_large.c: pointer was converted to generic
1661         pointer for mcs51 models other than model-small (Maarten noticed)
1662
1663 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1664
1665         * device/include/mcs51/ADuC84x.h: Added.
1666
1667 2007-03-10 Borut Razem <borut.razem AT siol.net>
1668
1669         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
1670           fixed RFE #1624219: double backslashes in filenames;
1671           functions hexEscape(), octalEscape() and copyStr() moved from
1672           SDCCval.c to SDCCutil.c and made them glovbally available
1673
1674 2007-03-09 Borut Razem <borut.razem AT siol.net>
1675
1676         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
1677           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
1678           1673361: Missaligned comments in output files
1679
1680 2007-03-09 Raphael Neider <rneider AT web.de>
1681
1682         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
1683
1684 2007-03-09 Raphael Neider <rneider AT web.de>
1685
1686         * src/pic/gen.c,
1687         * src/pic/glue.c,
1688         * src/pic/ralloc.c: suppress undesired debug output
1689         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
1690
1691 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1692
1693         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
1694
1695 2007-03-07 Borut Razem <borut.razem AT siol.net>
1696
1697         * device/lib/pic16/libdev/pic18f[24][34]31.c:
1698           search include files in the current directory
1699
1700 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
1701
1702         * src/SDCCglue.c (emitMaps, glue),
1703         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
1704           absolute xdata
1705         * support/regression/tests/absolute.c: added xdata test
1706
1707 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
1708
1709         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
1710           added condition to macro, fixes bug 1666080
1711
1712 2007-03-02 Raphael Neider <rneider AT web.de>
1713
1714         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
1715
1716 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1717
1718         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
1719         be cleared. Unconditionally set __XPAGE
1720         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
1721
1722 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1723
1724         * src/SDCCglobl.h,
1725         * src/SDCCmain.c,
1726         * src/mcs51/gen.c,
1727         * src/mcs51/rtrack.c,
1728         * src/ds390/gen.c,
1729         * doc/sdccman.lyx: added --no-gen-comments
1730         * src/mcs51/peeph.def: added 192.b, disabled 185
1731
1732 2007-02-25 Raphael Neider <rneider AT web.de>
1733
1734         * src/pic16/gen.c (genCast): fixed typo
1735         * device/lib/pic16/Makefile.subdir: only install existing files
1736         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
1737
1738 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1739
1740         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
1741         * device/lib/mcs51/crtclear.asm,
1742         * device/lib/mcs51/crtxclear.asm: renumbered labels
1743         * device/lib/mcs51/Makefile.in: added crtcall.asm
1744         * doc/sdccman.lyx: documented mcs51 crt* library startup code
1745         * src/mcs51/gen.c (movc): removed,
1746           (aopGet, genPlusBits): clear a after loading the carry (possibly from
1747             acc.x or psw.x),
1748           (toCarry, genSend, genRet): added function toCarry,
1749           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
1750           (assignBit, genAssign, genCast): added function assignBit
1751         * src/mcs51/Makefile.bcc: added rtrack.c
1752         * src/mcs51/ralloc.h: made valueKnown a bitfield
1753         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
1754           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
1755           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
1756         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
1757         * src/z80/gen.c: added AOP_IS_PAIRPTR,
1758           (_pop): only pop valid pairs, see gencjneshort,
1759           (gencjneshort): return pair that still needs to be popped, restructured,
1760           (gencjne, genCmpEq): call _pop
1761
1762 2007-02-23 Raphael Neider <rneider AT web.de>
1763
1764         * device/include/pic/pic14devices.txt: 16f684 has only one config word
1765
1766 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1767
1768         * device/include/mcs51/P89LPC925.h: Added.
1769
1770 2007-02-18 Raphael Neider <rneider AT web.de>
1771
1772         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
1773
1774 2007-02-17 Borut Razem <borut.razem AT siol.net>
1775
1776         * support/cpp2/directives.c, support/cpp2/version.c:
1777           synchronized with GCC CPP 4.1.2
1778
1779 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1780
1781         * src/mcs51/rtrack.h,
1782         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
1783           by checking the strings passed by emitcode() to the assembler.
1784           Feel free to change. This in part addresses RFE #482179.
1785           Set environment variable SDCC_RTRACK to enable.
1786         * src/mcs51/gen.c: inserted hooks
1787         * src/mcs51/ralloc.h: added two members to struct regs
1788         * support/regression/tests/regtrack.c: added
1789
1790 2007-02-14 Borut Razem <borut.razem AT siol.net>
1791
1792         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
1793         * Makefile.in: applied patch from Makefile related part of
1794           #1469393: Compiler does not initialize static data
1795
1796 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
1797
1798         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
1799           for better fix of bug 1273984, compiles pic16 rand.c
1800
1801 2007-02-12 Borut Razem <borut.razem AT siol.net>
1802
1803         * src/pic16/main.c: fixed pic16 standard library directory bug
1804
1805 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
1806
1807         * src/hc08/gen.c (genSwap): fix swap regression test
1808
1809 2007-02-10 Borut Razem <borut.razem AT siol.net>
1810
1811         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
1812           with same scope
1813         * support/regression/tests/bug-1654060.c: added regression test for
1814           #1654060
1815
1816 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
1817
1818         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
1819         bit moves in return statement
1820
1821 2007-02-09 Borut Razem <borut.razem AT siol.net>
1822
1823         * src/SDCC.y: fixed bug #1654060 typedef within function causes
1824           syntax error
1825
1826 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
1827
1828         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
1829         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
1830
1831 2007-02-07 Raphael Neider <rneider AT web.de>
1832
1833         * src/pic16/devices.inc,
1834         * device/include/pic16/pic18fregs.h,
1835         * device/include/pic16/pic18f[24][34]31.h,
1836         * device/lib/pic16/libdev/pic18f[24][34]31.c,
1837         * device/lib/pic16/pics.all: added 18f[24][34]31 family
1838         * device/lib/pic16/libio/i2c.ignore: do not build i2c
1839
1840 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
1841
1842         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
1843           can this have lived here for so many years?
1844         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
1845           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
1846         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
1847
1848 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
1849
1850         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
1851         appended by loop induction must be at the very end of the eBBlock
1852
1853 2007-02-05 Kevin Vigor
1854
1855         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
1856
1857 2007-02-05 Borut Razem <borut.razem AT siol.net>
1858
1859         * support/regression/fwk/lib/timeout.c: native WIN32 port,
1860           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
1861
1862 2007-02-03 Borut Razem <borut.razem AT siol.net>
1863
1864         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
1865           applied patch #1646602 option to set default signedness of char to
1866           unsigned, added -funsigned-char command line option,
1867           thanks to Gunther Jehle
1868         * device/lib/Makefile.in: added the -f option to rm so it doesn't
1869           prompt for file deletion a few hundred times (especially the
1870           subversion files, which have ro permissions so it asks for
1871           confirmation), thanks to Simon McAuliffe;
1872           added {} + option to find in order to remove multiple files from a
1873           single rm commad
1874
1875 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1876
1877         * device/include/mcs51/SST89x5xRDx.h: Added.
1878
1879 2007-02-02 Raphael Neider <rneider AT web.de>
1880
1881         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
1882         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
1883
1884 2007-02-01 Raphael Neider <rneider AT web.de>
1885
1886         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
1887           config words again
1888
1889 2007-01-31 Borut Razem <borut.razem AT siol.net>
1890
1891         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
1892           if compiled with GCC. Thanks to Raphael Neider
1893
1894 2007-01-31 Raphael Neider <rneider AT web.de>
1895
1896         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
1897             operand names, handles name and (name + n) for all n,
1898           (sameBank): restructured, also check bank allocation policy,
1899         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
1900           (pic14_operandsAllocatedInSameBank): check whether to operands
1901             will be allocated into the same bank (i.e., section) to reduce
1902             BANKSEL overhead, queried from pcode.c:sameBank,
1903           (pic14printLocals): reintroduced clustering registers into a single
1904             section: all compiler generated symbols will now reside in one
1905             bank (per file), reducing BANKSEL overhead and code size,
1906           (showAllMemmaps): use local dbuf where possible
1907
1908 2007-01-29 Raphael Neider <rneider AT web.de>
1909
1910         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
1911           (call_libraryfunc): retrieve/create symbol and mark as used,
1912           (genFunction): mark defined functions as non-extern and add again
1913            to code memmap for later output
1914         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
1915           (pic14printLocals): reworked for new symbol emission,
1916           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
1917           showAllMemmaps): reworked symbol output using dbufs, added handling
1918             of string literals (still incomplete),
1919           (picglue): removed symbol emission, moved into showAllMemmaps,
1920           (emitSymbolSet): new workhorse for symbol output,
1921           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
1922
1923 2007-01-29 Borut Razem <borut.razem AT siol.net>
1924
1925         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
1926           component contains the extension separator.
1927
1928 2007-01-28 Borut Razem <borut.razem AT siol.net>
1929
1930         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
1931           on WIN32
1932         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
1933           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
1934           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
1935           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
1936           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
1937           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
1938           src/z80/gen.c, support/Util/MySystem.c:
1939           accept slash and backslash as directory separator on WIN32 and
1940           Cygwin ports
1941
1942 2007-01-28 Raphael Neider <rneider AT web.de>
1943
1944         * src/pic16/devices.inc,
1945         * device/include/pic16/pic18f[24][23]21.h,
1946         * device/include/pic16/pic18fregs.h,
1947         * device/lib/pic16/libdev/pic18f[24][23]21.c,
1948         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
1949         * device/lib/pic16/libio/adc.ignore,
1950         * device/lib/pic16/libio/i2c.ignore,
1951         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
1952           family, as gputils do not yet support the devices
1953         * device/lib/pic16/Makefile.subdir: ignore errors on install
1954         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
1955           headers and libraries from gputils .inc files
1956
1957 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
1958
1959         * doc/sdccman.lyx: add printf_fast_f precision limitation note
1960
1961 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
1962
1963         * doc/sdccman.lyx: add printf benchmarks
1964
1965 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
1966
1967         * device/lib/printf_fast.c: fix %c, char promoted to int
1968         * device/lib/printf_tiny.c: fix %c, char promoted to int
1969
1970 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
1971
1972         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
1973
1974 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1975
1976         * support/regression/tests/swap.c: 64 bit hosts failed
1977         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
1978
1979 2007-01-25 Raphael Neider <rneider AT web.de>
1980
1981         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
1982           based on absolute register address, patch by Alex Blond
1983
1984 2007-01-22 Raphael Neider <rneider AT web.de>
1985
1986         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
1987           emitted, do not emit them again...
1988
1989 2007-01-22 Raphael Neider <rneider AT web.de>
1990
1991         * src/regression/bank1.c, src/regression/compare6.c,
1992           src/regression/add.c: cosmetic changes
1993         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
1994         * src/pic/gen.c: fixed global zero and one,
1995           (aopForSym): removed unued code,
1996           (aopGet): assert aop is defined, check and use `index' of
1997             pCodeImmd operands (fixes #1630908),
1998         * src/pic/pcode.c (get_op): added output of generic pointer tag,
1999           (register_reassign): prevent accidental register unification,
2000           (ReuseReg): cosmetic changes (also above)
2001         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
2002           pic14emitStaticSeg): do not emit initialized data,
2003           (printIval*): replaced with working versions,
2004           (pic14createInterruptVect,picglue): use idata for initialized data,
2005             now init data should work in all modules (not only main()),
2006         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
2007
2008 2007-01-21 Borut Razem <borut.razem AT siol.net>
2009
2010         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
2011           use -fPIC or -fpic if they are supported and not ignored
2012         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
2013         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
2014
2015 2007-01-20 Borut Razem <borut.razem AT siol.net>
2016
2017         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
2018           implemented RFE #1470316: allow "$" in variable names
2019
2020 2007-01-20 Raphael Neider <rneider AT web.de>
2021
2022         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
2023
2024 2007-01-20 Raphael Neider <rneider AT web.de>
2025
2026         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
2027         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
2028         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
2029         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
2030           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
2031         * device/lib/pic/libdev/pic*.c,
2032         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
2033         * device/lib/pic/libdev/Makefile.in: show progress
2034
2035 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
2036
2037         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
2038         * support/scripts/sdcc_cygwin_mingw32,
2039         * support/scripts/sdcc_mingw32,
2040         * support/scripts/build.mak: replaced --datadir by --datarootdir for
2041         conformance with autoconf 2.6
2042
2043 2007-01-19 Raphael Neider <rneider AT web.de>
2044
2045         * src/pic/device.c (register_map): fixed list construction
2046         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
2047           (genMod): removed case for genModbits,
2048           (genModbits): removed as now unused/unimplemented
2049         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
2050
2051 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2052
2053         * support/regression/tests/swap.c: added in response to #1638622
2054         * doc/sdccman.lyx: synced version, minor changes
2055
2056 2007-01-18 Borut Razem <borut.razem AT siol.net>
2057
2058         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
2059           thanks to Gunther Jehle
2060         * src/asm.c: don't die if the file drfined in #line couldn't be opened
2061         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
2062           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
2063           use filename in lineno instead.
2064         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
2065           print the file name in ast_print()
2066
2067 2007-01-18 Borut Razem <borut.razem AT siol.net>
2068
2069         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
2070           defined in MSVC
2071         * src/SDCC.lex: stringLiteral() returns const char pointer,
2072           EOF detection in stringLiteral(), fixed asmbuf memory leak,
2073           fixed column counting
2074         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
2075           accept const char pointer as parameter
2076         * src/SDCCdwarf2.c: corrected buffer size
2077
2078 2007-01-17 Borut Razem <borut.razem AT siol.net>
2079
2080         * support/Util/dbuf_string.c: fixed for amd64
2081
2082 2007-01-15 Borut Razem <borut.razem AT siol.net>
2083
2084         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
2085           removed terminal symbol ELIPSIS, since it was never generated by the
2086           lexer and it was wrongly used in parameter_identifier_list rule
2087
2088 2007-01-15 Raphael Neider <rneider AT web.de>
2089
2090         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
2091             code page and data banking description
2092         * src/pic/genarith.c,
2093         * src/pic/gen.h: removed bit arithmetic functions,
2094             updated exit(1) to exit(EXIT_FAILURE)
2095         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
2096         * device/include/pic16/pic18f2455.h,
2097         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
2098             TRISD and TRISE, fixed/added some bit names
2099         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
2100         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
2101             updated pic18f2455.{c,h} instead of duplicating them
2102
2103 2007-01-14 Borut Razem <borut.razem AT siol.net>
2104
2105         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
2106           Cannot debug files that contain spaces in the path name
2107           by converting spaces in asm file name to underscores
2108
2109 2007-01-13 Borut Razem <borut.razem AT siol.net>
2110
2111         * doc/sdccman.lyx: fixed format errors
2112
2113 2007-01-10 Borut Razem <borut.razem AT siol.net>
2114
2115         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
2116           codeseg/constseg #pragma fail
2117         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
2118         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
2119           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
2120           suppoprt/cpp2/sdcpp.[ch]: house cleaning
2121
2122 2007-01-09 Borut Razem <borut.razem AT siol.net>
2123
2124         * get rid of diagnistic.[ch], pretty-print.[ch],
2125           c-pretty-print.[ch], ... used just for error, warning, ...
2126           message formatting
2127         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
2128           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
2129           suppoprt/cpp2/pretty-print.[ch]:
2130           removed
2131         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
2132           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
2133           suppoprt/cpp2/sdcpp.dsp:
2134           changed
2135
2136 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
2137
2138         * device/lib/printf_large.c (output_float): removed recursion,
2139           use smaller buffer on stack for mcs51,
2140           fixed bug printing 1.96
2141         * support/regression/tests/snprintf.c: added test
2142
2143 2007-01-07 Borut Razem <borut.razem AT siol.net>
2144
2145         * use dynamic memory buffers instead temporary files
2146         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
2147           added
2148         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
2149           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
2150           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
2151           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
2152           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
2153           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
2154           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
2155           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
2156           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
2157           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
2158           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
2159           support/Util/dbuf.c, support/Util/dbuf.h:
2160           modified
2161         * .version, sdcc.spec: bumped version to 2.6.4
2162
2163 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
2164
2165         * src/port.h: added TARGET_Z80_LIKE macro
2166         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
2167           output PSEG location if --xram-loc or --xstack-loc was used
2168         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
2169
2170 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
2171
2172         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
2173         * as/as_z80.dsp,   as/z80/as_z80.dsp,
2174         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
2175         * sdcc.dsw: moved project files into subdir
2176         * as/hc08/as_hc08.dsp,
2177         * as/hc08/Makefile.bcc,
2178         * as/hc08/Makefile.in,
2179         * as/mcs51/Makefile.bcc,
2180         * as/mcs51/Makefile.in,
2181         * as/z80/Makefile.bcc,
2182         * as/z80/Makefile.in,
2183         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
2184         * as/hc08/asm.h,
2185         * as/mcs51/asm.h,
2186         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
2187         * as/hc08/asmain.c,
2188         * as/hc08/assym.c,
2189         * as/mcs51/asmain.c,
2190         * as/mcs51/assym.c,
2191         * as/z80/assym.c: removed include "strcmpi.h"
2192         * as/hc08/strcmpi.c,
2193         * as/hc08/strcmpi.h,
2194         * as/mcs51/strcmpi.c,
2195         * as/mcs51/strcmpi.h,
2196         * support/Util/strcmpi.c,
2197         * support/Util/strcmpi.h: removed files
2198         * as/strcmpi.c: added as_strncmpi()
2199
2200 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2201
2202         * sdcc.dsw: Added some dependencies on project config.dsp
2203
2204 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
2205
2206         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
2207           with [di]ram_start to fix a regresion
2208
2209 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
2210
2211         * configure.in: added missing mcs51 in status output
2212         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
2213         directory
2214         * debugger/mcs51/clean.mk (distclean): remove config.h
2215         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
2216         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
2217         options.h, s-options-h and options.c
2218         * support/cpp2/clean.mk: unused, removed
2219         * Makefile.common.in,
2220         * main_in.mk,
2221         * as/Makefile.in,
2222         * as/hc08/Makefile.in,
2223         * as/hc08/clean.mk,
2224         * as/mcs51/Makefile.in,
2225         * as/mcs51/clean.mk,
2226         * as/z80/clean.mk,
2227         * as/z80/conf.mk,
2228         * as/z80/Makefile.in,
2229         * as/z80/clean.mk,
2230         * as/link/Makefile.in,
2231         * as/link/hc08/Makefile.in,
2232         * as/link/hc08/clean.mk,
2233         * as/link/mcs51/Makefile.in,
2234         * as/link/mcs51/clean.mk,
2235         * as/link/z80/Makefile.in,
2236         * as/link/z80/clean.mk,
2237         * as/link/z80/conf.mk,
2238         * debugger/mcs51/Makefile.in,
2239         * debugger/mcs51/clean.mk,
2240         * device/include/Makefile.in,
2241         * device/lib/Makefile.in,
2242         * device/lib/mcs51/Makefile.in,
2243         * device/lib/pic/Makefile.in,
2244         * device/lib/pic/Makefile.common.in,
2245         * device/lib/pic/Makefile.subdir,
2246         * device/lib/pic/Makefile.rules,
2247         * device/lib/pic16/libio/Makefile.in,
2248         * device/lib/pic16/Makefile.subdir,
2249         * device/lib/pic16/libdev/Makefile.in,
2250         * device/lib/pic16/Makefile.rules,
2251         * device/lib/pic16/Makefile.common.in,
2252         * sim/ucsim/avr.src/Makefile.in,
2253         * sim/ucsim/main_in.mk,
2254         * sim/ucsim/cmd.src/Makefile.in,
2255         * sim/ucsim/doc/Makefile.in,
2256         * sim/ucsim/gui.src/Makefile.in,
2257         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
2258         * sim/ucsim/gui.src/serio.src/Makefile.in,
2259         * sim/ucsim/hc08.src/Makefile.in,
2260         * sim/ucsim/libltdl/Makefile.in,
2261         * sim/ucsim/s51.src/Makefile.in,
2262         * sim/ucsim/sim.src/Makefile.in,
2263         * sim/ucsim/sim.src/conf.mk,
2264         * sim/ucsim/xa.src/Makefile.in,
2265         * sim/ucsim/z80.src/Makefile.in,
2266         * src/Makefile.in,
2267         * src/clean.mk,
2268         * src/port.mk,
2269         * support/cpp2/Makefile.in,
2270         * support/librarian/Makefile.in,
2271         * support/librarian/clean.mk,
2272         * support/makebin/Makefile.in,
2273         * support/makebin/clean.mk,
2274         * support/packihx/Makefile.in,
2275         * support/regression/Makefile.in,
2276         * support/regression/ports/ds390/spec.mk,
2277         * support/regression/ports/gbz80/spec.mk,
2278         * support/regression/ports/hc08/spec.mk,
2279         * support/regression/ports/mcs51/spec.mk,
2280         * support/regression/ports/mcs51-large/spec.mk,
2281         * support/regression/ports/mcs51-medium/spec.mk,
2282         * support/regression/ports/mcs51-xstack-auto/spec.mk,
2283         * support/regression/ports/pic14/spec.mk,
2284         * support/regression/ports/pic16/spec.mk,
2285         * support/regression/ports/mcs51-stack-auto/spec.mk,
2286         * support/regression/ports/ucz80/spec.mk,
2287         * support/regression/ports/xa51/spec.mk,
2288         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
2289         adding a slash after $(top_builddir) and/or adding @datarootdir@
2290         * configure.in,
2291         * debugger/mcs51/configure.in,
2292         * device/lib/pic/configure.in,
2293         * device/lib/pic16/configure.in,
2294         * sim/ucsim/configure.in,
2295         * support/cpp2/configure.in,
2296         * support/packihx/configure.in: changed AC_PREREQ to 2.60
2297         * configure,
2298         * debugger/mcs51/configure,
2299         * device/lib/pic/configure,
2300         * device/lib/pic16/configure,
2301         * sim/ucsim/configure,
2302         * support/cpp2/configure,
2303         * support/packihx/configure: generated with autoconf 2.60
2304
2305 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
2306
2307         * as/link/hc08/lkihx.c (newArea),
2308         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
2309
2310 2007-01-02 Borut Razem <borut.razem AT siol.net>
2311
2312         * doc/sdccman.lyx: documented #pragma sdcc_hash
2313         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
2314           initialized to 0
2315         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
2316
2317 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
2318
2319         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
2320         empty 'while'-loop to work correctly, see regression test 'while.c'
2321         * support/regression/tests/while.c: added
2322
2323 2007-01-01 Borut Razem <borut.razem AT siol.net>
2324
2325         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
2326           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
2327           support/cpp2/libcpp/sdcpp.c:
2328           sdcpp specific pragma/directive/option handling moved to sdcpp.c
2329         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
2330         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
2331
2332 2006-12-31 Borut Razem <borut.razem AT siol.net>
2333
2334         * SDCPP synchronized with GCC CPP release version 4.1.1,
2335           currently the latest release:
2336         * support/cpp2/libcpp, support/cpp2/libcpp/include,
2337           support/cpp2/libcpp/include/cpp-id-data.h
2338           support/cpp2/libiberty/fopen_unlocked.c
2339           support/cpp2/libiberty/md5.c
2340           support/cpp2/md5.h
2341           support/cpp2/opt-functions.awk
2342           support/cpp2/opt-gather.awk
2343           support/cpp2/optc-gen.awk
2344           support/cpp2/opth-gen.awk:
2345           added
2346         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
2347           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2348           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
2349           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
2350           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
2351           support/cpp2/diagnostic.h, support/cpp2/except.h,
2352           support/cpp2/hwint.h, support/cpp2/input.h,
2353           support/cpp2/intl.h, support/cpp2/move-if-change,
2354           support/cpp2/opts.c, support/cpp2/opts.h,
2355           support/cpp2/output.h, support/cpp2/prefix.c,
2356           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
2357           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
2358           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
2359           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
2360           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
2361           support/cpp2/version.c:
2362           modified
2363         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
2364           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
2365           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
2366           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
2367           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
2368           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
2369           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
2370           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
2371           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
2372           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
2373           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
2374           moved
2375         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
2376           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
2377           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
2378           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
2379           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
2380           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
2381           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
2382           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
2383           support/cpp2/hashtable.h, support/cpp2/line-map.c,
2384           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
2385           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
2386           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
2387           support/cpp2/system.h:
2388           deleted / moved
2389
2390 2006-12-31 Borut Razem <borut.razem AT siol.net>
2391
2392         * configure.in, configure: fixed bug #1538756: configure dies if bison
2393           and flex are not installed, 2nd try
2394
2395 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
2396
2397         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
2398         400.x for better code in RFE 899102
2399
2400 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
2401
2402         * src/SDCCpeeph.c (deadMove),
2403         * src/port.h,
2404         * src/mcs51/peep.h: renamed 'op' by 'reg'
2405         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
2406         (scan4op): small change for removeDeadMove(), added support for
2407         'callee saves' and/or PACLL function calls,
2408         (removeDeadMove): added, removes superflous 'mov r%1,%2',
2409         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
2410         left in new dispatcher mcs51DeadMove()
2411         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
2412         removeDeadMove()
2413         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
2414
2415 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2416
2417         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
2418           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
2419
2420 2006-12-30 Borut Razem <borut.razem AT siol.net>
2421
2422         * support/cpp2/spacs.h: deleted from svn
2423         * configure.in, configure: fixed bug #1538756: configure dies if bison
2424           and flex are not installed
2425
2426 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
2427
2428         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
2429           with this z80 passes printf float test when enabled
2430         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
2431
2432 2006-12-28 Borut Razem <borut.razem AT siol.net>
2433
2434         * support/cpp2/config.in, support/cpp2/configure.in,
2435           support/cpp2/configure, support/cpp2/Makefile.in:
2436           fix for the solaris build
2437
2438 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2439
2440         * src/SDCC.y (type_specifier2, pointer),
2441         * src/SDCCsymt.h,
2442         * src/SDCCsymt.c (mergeSpec, checkSClass),
2443         * support/Util/SDCCerr.c,
2444         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
2445         * support/valdiag/valdiag.py: Allow test cases to specify
2446           required language standard
2447         * support/valdiag/tests/restrict.c: New file to test restrict keyword
2448         * support/valdiag/tests/tentdecl.c: Supress empty source file error
2449
2450 2006-12-27 Borut Razem <borut.razem AT siol.net>
2451
2452         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
2453         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
2454           mbchar removed
2455         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
2456           fixed for borland C
2457         * support/cpp2/libiberty/Makefile.bcc: updated
2458         * src/pic16/main.c: fixed #pragma udata handling
2459         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
2460
2461 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
2462
2463         * src/SDCCpeeph.c: made labelHashEntry global,
2464         made pcDistance, FBYNAME static,
2465         (pcDistance): made static, use isComment and isLabel,
2466         (deadMove): added,
2467         (getLabelRef): added, extracted from labelRefCount(),
2468         (labelRefCount): use new getLabelRef(),
2469         (callFuncByName): made static, added deadMove,
2470         use isComment and isLabel,
2471         (newPeepRule): made static, set isLabel,
2472         (isLabelDefinition): added parameter isPeepRule to allow '%' in
2473         labels from peephole rules,
2474         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
2475         when isComment or isLabel is set
2476         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
2477         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
2478         to make them global
2479         * src/mcs51/peep.h: added
2480         * src/mcs51/peep.c: added, implements mcs51DeadMove()
2481         * src/port.h: added peep->deadMove to port structure
2482         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
2483         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
2484         deadMove, finally removed no. 1 and 2
2485         * src/mcs51/gen.c,
2486         * src/pic/gen.c,
2487         * src/z80/gen.c,
2488         * src/z80/ralloc.c,
2489         * src/pic16/gen.c,
2490         * src/ds390/gen.c,
2491         * src/hc08/gen.c: mark lines with isComment or isLabel
2492         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
2493         * .version,
2494         * sdcc.spec: bumped version to 2.6.3
2495
2496 2006-12-26 Borut Razem <borut.razem AT siol.net>
2497
2498         * support/cpp2/Makefile.in: added dependency on options.h
2499         * configure: regenerated
2500         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
2501         * support/cpp2/Makefile.in: added vasprintf.c
2502
2503 2006-12-25 Borut Razem <borut.razem AT siol.net>
2504
2505         * SDCPP synchronized with GCC CPP release version 3.4.6,
2506           the latest release before 4.x:
2507         * support/cpp2/Makefile.in, support/cpp2/config.h,
2508           support/cpp2/configure, support/cpp2/configure.in,
2509           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
2510           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
2511           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
2512           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
2513           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
2514           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
2515           support/cpp2/cpptrad.c, support/cpp2/except.h,
2516           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
2517           support/cpp2/hwint.h, support/cpp2/intl.h,
2518           support/cpp2/line-map.c, support/cpp2/line-map.h,
2519           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
2520           support/cpp2/output.h, support/cpp2/prefix.c,
2521           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
2522           support/cpp2/system.h, support/cpp2/version.c:
2523           modified
2524         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2525           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
2526           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
2527           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
2528           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
2529           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
2530           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
2531           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
2532           support/cpp2/move-if-change, support/cpp2/opts.c,
2533           support/cpp2/opts.h, support/cpp2/opts.sh,
2534           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
2535           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
2536           support/cpp2/win32, support/cpp2/win32/dirent.c,
2537           support/cpp2/win32/dirent.h:
2538           added
2539         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
2540         * support/cpp2/sdcpp.h: renamed from sdcc.h
2541         * sdcppinit.c: deleted
2542
2543 2006-12-23 Borut Razem <borut.razem AT siol.net>
2544
2545         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
2546           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
2547           preproc.c: an other try to fix bug #982435: introduced
2548           -pedantic-parse-number command line option and pedantic_parse_number
2549           pragma
2550
2551 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
2552
2553         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
2554            BSEG handling,
2555           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
2556            corrected overlayed areax addresses, warn about memory overlaps
2557         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
2558         * src/avr/main.c,
2559         * src/ds390/main.c,
2560         * src/hc08/main.c,
2561         * src/mcs51/main.c,
2562         * src/pic16/main.c,
2563         * src/pic/main.c,
2564         * src/xa51/main.c,
2565         * src/z80/main.c,
2566         * src/port.h: added xabs_name and iabs_name
2567         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
2568           (glue, emitMaps): create and emit maps d_abs and i_abs
2569         * src/SDCCglue.h: cosmetic changes
2570         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
2571         * src/SDCCmem.h,
2572         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
2573           (allocDefault): put absolute, initialized globals in them
2574         * support/regression/tests/absolute.c: added absolute bdata test
2575         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
2576
2577 2006-12-20 Borut Razem <borut.razem AT siol.net>
2578
2579         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
2580         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
2581           added regression test for bug #982435
2582
2583 2006-12-18 Borut Razem <borut.razem AT siol.net>
2584
2585         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
2586         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
2587           small cosmetic changes
2588         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
2589         * support/regression/tests/bug-1351710.c: added regression test
2590
2591 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2592
2593         * doc/sdccman.lyx: added the long missed iCode table
2594           "<where is figure II?>", added links to wiki
2595
2596 2006-12-17 Borut Razem <borut.razem AT siol.net>
2597
2598         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
2599           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
2600           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
2601           unified table driven pragma handling, pragma argument type checking
2602         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
2603           current one - version 1.1.3
2604         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
2605
2606 2006-12-13 Raphael Neider <rneider AT web.de>
2607
2608         * src/pic/device.h: removed AssignedMemory structure and macros
2609         * src/pic/device.c: removed global finalMapping (linker assigns
2610             memory locations),
2611           (register_map): add SFRs to remembered memRanges
2612           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
2613           assignFixedRegisters,assignRelocatableRegisters): removed,
2614           (setMaxRAM,validAddress): adapted accordingly,
2615           (pic14_hasSharebank,pic14_getSharedStack): only report and use
2616             reasonably sized sharebanks,
2617         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
2618           (allDefsOutOfRange): removed unused code,
2619         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
2620             handling
2621         * src/pic/pcode.c (register_reassign): removed recursion warning,
2622             fired far too often,
2623         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
2624             to use existing pic14_stringInSet() to avoid duplicate symbols,
2625             tidied up the code a bit,
2626           (pic14printLocals): added in symmetry to printExterns, replaces
2627             writeUsedRegs more or less,
2628           (picglue): call new pic14_printLocals(),
2629         * device/include/pic/pic*.h: removed #pragma memmap directives,
2630             information gathered from include/pic/pic14devices.txt
2631         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
2632
2633 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
2634
2635         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
2636
2637 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2638
2639         * device/include/mcs51/cc2430.h: fixed missing ';'
2640
2641 2006-12-10 Raphael Neider <rneider AT web.de>
2642
2643         * device/lib/pic16/libc/stdio/vfprintf.c,
2644         * device/lib/pic16/libc/stdio/printf_small.c,
2645         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
2646           char arguments, as char varargs are cast to int by the caller,
2647           hopefully fixes #1604915 (other device libraries are still affected)
2648
2649 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2650
2651         * src/mcs51/ralloc.c (packRegsForAssign),
2652         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
2653
2654 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
2655
2656         * device/include/malloc.h: removed init_dynamic_memory
2657         * device/lib/malloc.c: made init_dynamic_memory static and automatically
2658           call it once from malloc. Also use _sdcc_heap[] from _heap.c
2659         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
2660         * device/lib/libsdcc.lib,
2661         * device/lib/Makefile.in,
2662         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
2663         * doc/sdccman.lyx: documented use of new _heap.c
2664         * support/regression/tests/malloc.c: removed init_dynamic_memory
2665         * src/cdbFile.c(spacesToUnderscores): new function,
2666           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
2667           1068030
2668         * device/include/tinibios.h: removed defines for putchar and getchar
2669         * device/lib/ds390/Makefile.in: added putchar.c
2670         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
2671
2672 2006-12-09 Borut Razem <borut.razem AT siol.net>
2673
2674         * support/cpp2/sdcc.h: prevent multiple inclusion
2675         * support/cpp2/options.h: deleted
2676
2677 2006-12-08 Borut Razem <borut.razem AT siol.net>
2678
2679         * support/cpp2/sdcc.h: removed x*alloc() macros
2680         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
2681         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
2682           support/cpp2/sdcpp.sdc: x*alloc files added to the project
2683         * support/cpp2/system.h: moved #include "sdcc.h"
2684         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
2685           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
2686           added
2687         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
2688           -funsigned-char options
2689         * support/cpp2/sdcppmain.c: fixed bug 1611411
2690
2691 2006-12-07 Borut Razem <borut.razem AT siol.net>
2692
2693         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
2694           directive
2695
2696 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
2697
2698         * src/SDCCsymt.c (addDecl): fixed bug 1609244
2699         * src/SDCCmain.c (linkEdit): fixed bug 1609279
2700         * doc/sdccman.lyx,
2701         * .version: bumped to 2.6.2 because a) it's been a while
2702           b) the linker sources have moved c) the preprocessor is upgraded
2703
2704 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2705
2706         * support/regression/tests/snprintf.c: some checks
2707         * lib/src/printf_large.c: %bc: read char instead of int from stack
2708
2709 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
2710
2711         * device/include/mcs51/cc2430.h: inserted _XPAGE
2712
2713 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2714
2715         * device/include/mcs51/cc2430.h: added
2716
2717 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
2718
2719         * device/include/asm/default/features.h,
2720         * device/include/asm/ds390/features.h,
2721         * device/include/mcs51/at89s53.h,
2722         * device/include/ser.h,
2723         * device/include/ser_ir.h,
2724         * device/include/serial.h: changed keywords to double underscore variants,
2725           fixes bug 1590261 some more, thanks Steven Borley
2726
2727 2006-12-01 Raphael Neider <rneider AT web.de>
2728
2729         * src/pic/pcode.c (register_reassign): do not crash on recursive code
2730           but emit warning (recursion is not supported for pic14)
2731
2732 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2733
2734         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
2735         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
2736
2737 2006-11-30 Raphael Neider <rneider AT web.de>
2738
2739         * src/pic/device.c (dump_sfr): always emit symbols
2740         * src/pic/glue.c (pic14printPublics): fixed typo
2741
2742 2006-11-30 Raphael Neider <rneider AT web.de>
2743
2744         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
2745           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
2746           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
2747            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
2748            a sharebank, use a non-shared bank for the stack if none available
2749         * src/pic/device.h (struct memRange): added linked list next field,
2750           added prototypes for above functions
2751         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
2752           (typeRegWithIdx): accept fixed and unfixed stack registers
2753         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
2754           the stack, handle shared and banked stack (except for WSAVE),
2755           (insertBankSel): removed useless optimization (will never fire),
2756           (FixRegisterBanking): added optimization for devices with only one
2757           possibly aliased bank of memory, like 16f84
2758         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
2759           devices have no SHAREBANK in the linker script
2760         * device/include/pic/pic14devices.txt: documented memmap
2761         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
2762
2763 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2764
2765         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
2766           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
2767           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
2768           genhc08Code): switched most of the D (debug) macros to DD (detailed
2769           debug) macros to better control clutter in the generated .asm file.
2770         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
2771           genRightShift): fixed bug with non-constant bit shift stored to
2772           a volatile result (SF Open Discussion forum thread #1616749).
2773           Single byte case is not yet optimized.
2774
2775 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
2776
2777         * device/include/asm/mcs51/features.h,
2778         * device/include/malloc.h,
2779         * device/include/stdio.h: changed keywords to double underscore variants,
2780           fixes bug 1590261
2781
2782 2006-11-27 Borut Razem <borut.razem AT siol.net>
2783
2784         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
2785           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
2786           support/cpp2/output.h, support/cpp2/cppinit.c,
2787           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
2788           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
2789           support/cpp2/cppdefault.c, support/cpp2/system.h,
2790           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
2791           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
2792           support/cpp2/prefix.c, support/cpp2/except.h,
2793           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
2794           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
2795           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
2796           support/cpp2/version.c, support/cpp2/cppmain.c,
2797           support/cpp2/version.h, support/cpp2/hashtable.c,
2798           support/cpp2/cpperror.c:
2799           synchronized with GCC CPP release version 3.3.6,
2800           the latest where cppmain.c still exists.
2801         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
2802           support/cpp2/sdcppinit.c: added
2803
2804 2006-11-27 Borut Razem <borut.razem AT siol.net>
2805
2806         * support/cpp2/cpplex.c:
2807           fixed _asm ... _endasm handling bug, introduce with GCC CPP
2808           synchronization
2809         * support/cpp2/cpplib.c: removed definitions of unused variables
2810
2811 2006-11-26 Borut Razem <borut.razem AT siol.net>
2812
2813         * support/cpp2/libiberty.h: commented out x*alloc() declarations
2814           since they are redefined by macros in support/cpp2/sdcc.h
2815         * support/cpp2/sdcc.h: x*alloc macro redefinition
2816
2817 2006-11-25 Borut Razem <borut.razem AT siol.net>
2818
2819         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
2820           support/cpp2/configure, support/cpp2/Makefile.in,
2821           support/cpp2/cppfiles.c, support/cpp2/output.h,
2822           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
2823           support/cpp2/config.h, support/cpp2/cpplib.h,
2824           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
2825           support/cpp2/cppdefault.c, support/cpp2/config.in,
2826           support/cpp2/system.h, support/cpp2/cpplex.c,
2827           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
2828           support/cpp2/cppdefault.h, support/cpp2/prefix.c
2829           support/cpp2/hwint.h, support/cpp2/mbchar.h,
2830           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
2831           support/cpp2/configure.in, support/cpp2/intl.h,
2832           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
2833           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
2834           support/cpp2/version.c, support/cpp2/cppmain.c,
2835           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
2836           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
2837           support/cpp2/cpperror.c,
2838           support/cpp2/libiberty/safe-ctype.c,
2839           support/cpp2/libiberty/safe-ctype.h,
2840           support/cpp2/libiberty/splay-tree.c,
2841           support/cpp2/libiberty/obstack.c,
2842           support/cpp2/libiberty/lbasename.c,
2843           support/cpp2/libiberty/splay-tree.h,
2844           support/cpp2/libiberty/obstack.h:
2845           synchronized with GCC CPP release version 3.2.3,
2846           the latest before integration of cpp into gcc
2847         * support/cpp2/except.h, support/cpp2/line-map.c,
2848           support/cpp2/line-map.h,
2849           support/cpp2/libiberty/hex.c,
2850           support/cpp2/libiberty/concat.c,
2851           support/cpp2/libiberty/filenames.h: added
2852         * support/cpp2/intl.c: deleted
2853
2854 2006-11-24 Borut Razem <borut.razem AT siol.net>
2855
2856         * src/SDCC.y: enabled compilation of empty source file
2857         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
2858           "ISO C forbids an empty source file"
2859         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
2860           if all the code is ifdefed out.
2861
2862 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2863
2864         * src/hc08/gen.c (genPcall): fix for bug #1601032
2865
2866 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
2867
2868         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
2869         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
2870         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
2871         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
2872         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
2873         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
2874         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
2875         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
2876         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
2877         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
2878         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
2879         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
2880         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
2881         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
2882         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
2883           Renamed to all upper case as per the standard set by SiLabs
2884
2885 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
2886
2887         * device/include/mcs51/C8051F520.h: new, added
2888         * device/include/mcs51/compiler.h: added link about predefined macros
2889
2890 2006-11-23 Raphael Neider <rneider AT web.de>
2891
2892         * src/regression/Makefile: add -L path to fresh library
2893         * src/regression/simulate: emphasize FAILED output
2894         * src/regression/create_stc: output _failures from gpsim
2895         * src/regression/compare4.c,
2896         * src/regression/rotate6.c: fixed char literals,
2897           all compile, all run =8-D
2898
2899         * src/pic/pcode.h: added isPCASMDIR macro
2900         * src/pic/gen.c (genAnd): fixed bit offset
2901         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
2902           packBits): unified register numbering schemes,
2903           (newReg): do not insert stack registers into hash table,
2904           (initStack): unpinned pseudo stack, simplified,
2905           (typeRegWithIdx): fixed retrieval of stack registers,
2906         * src/pic/pcode.c (addpCodeComment,sameBank): added,
2907           (pCodeReplace): removed invalid assertion,
2908           (insertPCodeInstruction): fixed newly added labels,
2909           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
2910           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
2911           DumpFlow): removed unsed (broken?) code,
2912           (insertBankSel): prevent STATUS from being BANKSELed,
2913           (FixRegisterBanking): rewritten from scratch, implemented generic
2914             optimizations (suppress BANKSELs to same register and to registers
2915             present in all banks),
2916           (AnalyzeBanking): update flow after BANKSELection
2917
2918         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
2919             sharebank, let linker place it, mark STKxx symbols as emitted
2920
2921 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2922
2923         * src/regression/arrays.c,
2924         * src/regression/bank1.c,
2925         * src/regression/bool2.c,
2926         * src/regression/compare7.c,
2927         * src/regression/compare8.c,
2928         * src/regression/compare9.c,
2929         * src/regression/compare10.c,
2930         * src/regression/configword.c,
2931         * src/regression/for.c,
2932         * src/regression/mult1.c,
2933         * src/regression/pointer1.c,
2934         * src/regression/rotate6.c,
2935         * src/regression/string1.c,
2936         * src/regression/struct1.c,
2937         * src/regression/Makefile: make PIC14 regression tests run again
2938           (3 fail, 6 won't compile)
2939
2940 2006-11-21 Raphael Neider <rneider AT web.de>
2941
2942         * device/include/pic16/pic18f4550.h,
2943         * device/include/pic16/pic18f4455.h,
2944         * device/lib/pic16/libdev/pic18f4550.c,
2945         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
2946         * configure.in: removed superfluous closing bracket
2947
2948 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2949
2950         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
2951           always positive.
2952
2953 2006-11-21 Raphael Neider <rneider AT web.de>
2954
2955         * src/pic/device.{c,h}: added pic14_getPIC()
2956         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
2957           (genAnd): added PIC code for one case, fixes #1597044
2958         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
2959           SFRs that are present in all banks (e.g., STATUS)
2960
2961 2006-11-20 Raphael Neider <rneider AT web.de>
2962
2963         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
2964           INCFSZ/INCFSZW and declared them as changing Z bit,
2965           (insertPCodeInstruction): correctly invert the above instructions,
2966           fixes #1599333,
2967           (DoBankSelect): don't panic on po_immediates
2968
2969 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
2970
2971         * as/link/aslink.h,
2972         * as/link/mcs51/lkihx.c (newArea),
2973         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
2974         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
2975
2976 2006-11-11 Raphael Neider <rneider AT web.de>
2977
2978         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
2979           bitfield symbols, fixes #1579535 (once more...).
2980
2981 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2982
2983         * support/regression/generate-cases.py,
2984         * support/regression/fwk/include/testfwk.h,
2985         * support/regression/fwk/lib/testfwk.c: used code pointers,
2986           (about 50kByte less code generated for mcs51)
2987
2988 2006-11-06 Borut Razem <borut.razem AT siol.net>
2989
2990         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
2991           debugger/mcs51/configure: fixed failed check because the function
2992           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
2993           who submitted the patch for gpsim.
2994         * debugger/mcs51/configure.in: removed the result message
2995         * debugger/mcs51/Makefile.in: fixed the config.status warning
2996           "... seems to ignore the --datarootdir setting"
2997
2998 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
2999
3000         * device/include/mcs51/c8051f020.h,
3001         * device/include/mcs51/c8051f040.h,
3002         * device/include/mcs51/c8051f060.h,
3003         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
3004         * src/z80/gen.c (gencjneshort),
3005         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
3006
3007 2006-10-31 Borut Razem <borut.razem AT siol.net>
3008
3009         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3010           debugger/mcs51/configure: get readline version
3011
3012 2006-10-30 Borut Razem <borut.razem AT siol.net>
3013
3014         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
3015         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3016           debugger/mcs51/configure: locate readline even when cross compiling
3017         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
3018
3019 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3020
3021         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
3022           serial port.
3023
3024 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
3025
3026         * device/include/malloc.h,
3027         * device/lib/calloc.c,
3028         * device/lib/free.c,
3029         * device/lib/malloc.c,
3030         * device/lib/realloc.c: moved definition of struct into sources
3031         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
3032
3033 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
3034
3035         * as/asx8051.dsp: corrected output directories
3036         * as/link/hc08: new directory for hc08 linker
3037         * as/hc08/aslink.h,             as/link/aslink.h,
3038         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
3039         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
3040         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
3041         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
3042         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
3043         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
3044         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
3045         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
3046         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
3047         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
3048         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
3049         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
3050         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
3051         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
3052         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
3053         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
3054         * as/link/hc08/conf.mk,
3055         * configure,
3056         * configure.in,
3057         * Makefile.in,
3058         * sdcc.dsw: moved hc08 linker to as/link/hc08
3059         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
3060         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
3061         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
3062         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
3063         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
3064         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
3065         * as/link/mcs51/aslink.dsp,
3066         * as/link/mcs51/Makefile.in: factored out the common files
3067         * as/hc08/lkstore.c: deleted, use the one already in as/link/
3068         * as/clean.mk: extra cleaning common files
3069         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
3070         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
3071         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
3072
3073 2006-10-29 Raphael Neider <rneider AT web.de>
3074
3075         * src/pic/ralloc.c (newReg): create aliases for registers with
3076           multiple names to fix #1579535 and #1584001,
3077           (regWithIdx,dirregWithName): resolve aliases on lookup
3078         * src/pic/pcode.c (DoBankSelect): die with error message on failing
3079           bankselect
3080         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
3081           to prevent build errors on small devices
3082
3083 2006-10-28 Raphael Neider <rneider AT web.de>
3084
3085         * src/pic/gen.c (genFunction,genCall): drop "same code page"
3086           assumption within interrupt handlers, fixes #1584940
3087         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
3088           "emitted" to avoid emitting them again in udata
3089
3090 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3091
3092         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
3093         Removed.
3094
3095 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3096
3097         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
3098         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
3099         on/off CR to CRLF conversion.
3100
3101 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3102
3103         * doc/sdccman.lyx: updated IRQ section
3104
3105 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3106
3107         * device/lib/serial_io.c: removed
3108         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
3109         replacements for serial_io.c
3110
3111 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
3112
3113         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
3114
3115 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3116
3117         * device/lib/serial_io.c: Default putchar() and getchar() for
3118           mcs51 uses serial port.
3119
3120 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
3121
3122         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
3123
3124 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3125
3126         * support/regression/ports/mcs51/support.c: smaller
3127         _sdcc_external_startup()
3128         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
3129
3130 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
3131
3132         * device/lib/gbz80/crt0.s,
3133         * device/lib/gbz80/crt0_rle.s,
3134         * device/lib/gbz80/div.s,
3135         * device/lib/gbz80/fstubs.s,
3136         * device/lib/gbz80/heap.s,
3137         * device/lib/gbz80/mul.s,
3138         * device/lib/gbz80/putchar.s,
3139         * device/lib/gbz80/stubs.s,
3140         * device/lib/z80/crt0.s,
3141         * device/lib/z80/crt0_rle.s,
3142         * device/lib/z80/div.s,
3143         * device/lib/z80/fstubs.s,
3144         * device/lib/z80/heap.s,
3145         * device/lib/z80/mul.s,
3146         * device/lib/z80/putchar.s,
3147         * device/lib/z80/stubs.s: reverted, I was mistaken
3148
3149 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3150
3151         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
3152         * support/regression/ports/mcs51/support.c: removed race
3153         condition on TI in _putchar allowing to use serial port mode 0
3154
3155 2006-10-20 Borut Razem <borut.razem AT siol.net>
3156
3157         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
3158
3159 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
3160
3161         * device/lib/gbz80/crt0.s,
3162         * device/lib/gbz80/crt0_rle.s,
3163         * device/lib/gbz80/div.s,
3164         * device/lib/gbz80/fstubs.s,
3165         * device/lib/gbz80/heap.s,
3166         * device/lib/gbz80/mul.s,
3167         * device/lib/gbz80/putchar.s,
3168         * device/lib/gbz80/stubs.s,
3169         * device/lib/z80/crt0.s,
3170         * device/lib/z80/crt0_rle.s,
3171         * device/lib/z80/div.s,
3172         * device/lib/z80/fstubs.s,
3173         * device/lib/z80/heap.s,
3174         * device/lib/z80/mul.s,
3175         * device/lib/z80/putchar.s,
3176         * device/lib/z80/stubs.s: removed all leading underscores from area names
3177
3178 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
3179
3180         * support/regression/ports/mcs51/support.c: use highest baudrate so the
3181           regression tests are not waiting in the simulator for simulated
3182           transmission of debug output
3183
3184 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3185
3186         * device/lib/printf_large.c: slightly smaller
3187         * doc/sdccman.lyx: do not use spaces within html links
3188
3189 2006-10-16 Borut Razem <borut.razem AT siol.net>
3190
3191         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
3192           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
3193           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
3194           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
3195           debugger/mcs51/configure:
3196           [ 1185668 ] add gnu readline support to sdcdb - enabled
3197
3198 2006-10-16 Raphael Neider <rneider AT web.de>
3199
3200         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
3201           fixes #1577882, removes close to all banking optimizations
3202
3203 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
3204
3205         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
3206           variables in code memory
3207         * support/regression/tests/absolute.c: added test for this
3208
3209 2006-10-15 Raphael Neider <rneider AT web.de>
3210
3211         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
3212           devices,
3213           (BankSelect): emit BANKSEL before touching linker-placed regs,
3214           fixes #1570934
3215
3216 2006-10-10 Raphael Neider <rneider AT web.de>
3217
3218         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
3219         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
3220         * src/pic/main.c (_pic14_parseOptions),
3221         * src/pic/main.h: mostly reverted to previous state, now use results
3222             from SDCCmain.c's argument parsing
3223
3224 2006-10-10 Borut Razem <borut.razem AT siol.net>
3225
3226         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
3227           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
3228           [ 1185668 ] add gnu readline support to sdcdb -
3229           prepared for READLINE, not enabled yet,
3230           thanks to <tal.bav AT gmail.com>
3231
3232 2006-10-10 Raphael Neider <rneider AT web.de>
3233
3234         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
3235         * src/pic16/devices.inc,
3236         * device/include/pic16 (pic18f[24]620.h),
3237         * device/include/pic18fregs.h,
3238         * device/lib/pic16/pics.all,
3239         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
3240             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
3241             Gary Plumbridge and Anton Strobl
3242
3243 2006-10-10 Raphael Neider <rneider AT web.de>
3244
3245         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
3246           --stack-siz=NUM options to configure the argument passing stack
3247         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
3248         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
3249           (pic14_getSharebankSize): obey --stack-siz=NUM,
3250           (pic14_getSharebankAddress): obey --stack-loc=NUM
3251
3252 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3253
3254         * doc/sdccman.lyx: added to the manual
3255         * doc/figures/ddd_example.png: added (neither pdflatex nor
3256         most browsers seem to like the .eps file)
3257
3258 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
3259
3260         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
3261         to /tmp and /var/tmp acc. LSB
3262         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
3263         RESULT_TYPE_IFX
3264         * support/regression/tests/onebyte.c: added test
3265
3266 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3267
3268         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
3269
3270 2006-10-05 Borut Razem <borut.razem AT siol.net>
3271
3272         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
3273           thanks to dfulab:
3274           - sdcc.dsw: changed property eol-style to CRLF
3275           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
3276
3277 2006-10-04 Raphael Neider <rneider AT web.de>
3278
3279         * device/include/pic/{pic16f84.h,pic16f84a.h},
3280         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
3281           from patch #1522504, thanks to Robas Teodor
3282
3283 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
3284
3285         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
3286           fixes bug 1566015
3287
3288 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
3289
3290         * src/pic16/glue.c (pic16emitMaps),
3291         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
3292         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
3293         * device/lib/pic16/libc/string/memcpypgm2ram.c,
3294         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
3295           Philipp Krause
3296         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
3297         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
3298
3299 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3300
3301         * support/librarian/sdcclib.c: Added option -l.
3302         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
3303           usage totals.
3304         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
3305           using Windows command prompt.
3306
3307 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
3308
3309         * device/lib/libsdcc.lib: added module rand
3310         * src/ds390/ralloc.c (rematStr),
3311         * src/hc08/ralloc.c (rematStr),
3312         * src/mcs51/ralloc.c (rematStr),
3313         * src/z80/ralloc.c (rematStr): made output more consistent
3314         * src/mcs51/gen.c: cosmetic changes
3315
3316 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
3317
3318         * src/port.h: added mem.cabs_name to PORT
3319         * src/ds390/main.c,
3320         * src/hc08/main.c,
3321         * src/mcs51/main.c,
3322         * src/pic16/main.c,
3323         * src/pic/main.c,
3324         * src/xa51/main.c,
3325         * src/z80/main.c: added cabs_name initializers
3326         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
3327           constants
3328           (emitMaps): emit absolutes in code memory into cabs_name
3329         * src/SDCCmem.c,
3330         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
3331         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
3332         * support/regression/fwk/include/testfwk.h: added define for at
3333         * support/regression/tests/absolute.c: added, new
3334
3335 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
3336
3337         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
3338           optimizations, see also patch 887161 by Stas Sergeev
3339         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
3340           to be necessary anymore,
3341           (102, 103, 104, 127): renamed all occurances of bp to _bp
3342
3343 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
3344
3345         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
3346           thanks Weston T. Schmidt for patch 1555221
3347         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
3348         * src/SDCCicode.c(geniCodeMultiply): small optimization
3349
3350 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
3351
3352         * device/include/stdlib.h: added rand prototypes
3353         * device/lib/rand.c: new, added
3354         * device/lib/Makefile.in: added rand.c
3355         * src/z80/peeph.def,
3356         * src/z80/peeph-gbz80.def,
3357         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
3358
3359 2006-09-20 Raphael Neider <rneider AT web.de>
3360
3361         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
3362
3363 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
3364
3365         * as/link/aslink.h: cosmetic changes
3366         * as/link/mcs51/Makefile.in,
3367         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
3368
3369 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
3370
3371         * as/link/aslink.h,
3372         * as/link/mcs51/aslink.h,
3373         * as/link/z80/aslink.h: merged and moved to as/link/
3374         * as/link/lkstore.c,
3375         * as/link/mcs51/lkstore.c: moved to as/link/
3376         * as/link/clean.mk: remove *.o
3377         * as/link/mcs51/alloc.h: deleted
3378         * as/link/mcs51/lkarea.c: added lnksect prototype
3379         * as/link/mcs51/lkdata.c,
3380         * as/link/mcs51/lklex.c,
3381         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
3382         * as/link/mcs51/lkmem.c,
3383         * as/link/mcs51/lknoice.c: removed include strcmpi.h
3384         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
3385         * as/link/mcs51/aslink.dsp,
3386         * as/link/mcs51/Makefile.aslink,
3387         * as/link/mcs51/Makefile.bcc,
3388         * as/link/mcs51/Makefile.in: updated for moved files
3389         * as/link/z80/lkarea.c,
3390         * as/link/z80/lkhead.c,
3391         * as/link/z80/lklex.c,
3392         * as/link/z80/lklibr.c,
3393         * as/link/z80/lklist.c,
3394         * as/link/z80/lkmain.c,
3395         * as/link/z80/lkrloc.c,
3396         * as/link/z80/lksym.c: synced with mcs51
3397         * as/link/z80/lkdata.c,
3398         * as/link/z80/lkeval.c,
3399         * as/link/z80/lkihx.c,
3400         * as/link/z80/lks19.c: cosmetic changes
3401         * as/link/z80/Makefile.in,
3402         * as/link/z80/linkgbz80.dsp,
3403         * as/link/z80/linkz80.dsp: updated for moved files
3404
3405 2006-09-16 Borut Razem <borut.razem AT siol.net>
3406
3407         * debugger/mcs51/sdcdb.c: partially fixed
3408           [ 1203664 ] sdcdb fails to open files w. two "." periods
3409         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
3410           debugger/mcs51/symtab.h: fixed indenting
3411         * configure.in, configure: up to date with latest Maarten's changes
3412
3413 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
3414
3415         as/link/mcs51
3416         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
3417         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
3418         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
3419         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
3420         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
3421         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
3422         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
3423         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
3424         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
3425         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
3426         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
3427         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
3428         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
3429         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
3430         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
3431         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
3432         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
3433         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
3434         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
3435         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
3436         as/link/mcs51/alloc.h,
3437         as/link/mcs51/clean.mk,
3438         as/link/mcs51/conf.mk,
3439         as/link/mcs51/Makefile.bcc,
3440         as/link/mcs51/Makefile.in,
3441         as/link/mcs51/readme.390,
3442         as/link/mcs51/strcmpi.c,
3443         as/link/mcs51/strcmpi.h,
3444         as/mcs51/clean.mk,
3445         as/mcs51/Makefile.bcc,
3446         as/mcs51/Makefile.in,
3447         configure,
3448         Makefile.in,
3449         sdcc.dsw: moved mcs51 linker to as/link/mcs51
3450
3451 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
3452
3453         * as/link,
3454         * as/link/Makefile.in,
3455         * as/link/z80/linkgbz80.dsp,
3456         * as/link/z80/linkz80.dsp,
3457         * configure,
3458         * link,
3459         * link/clean.mk,
3460         * link/Makefile.in,
3461         * link/README,
3462         * link/z80,
3463         * link/z80/aslink.h,
3464         * link/z80/clean.mk,
3465         * link/z80/conf.mk,
3466         * link/z80/linkgbz80.dsp,
3467         * link/z80/linkz80.dsp,
3468         * link/z80/lkarea.c,
3469         * link/z80/lkdata.c,
3470         * link/z80/lkeval.c,
3471         * link/z80/lkgb.c,
3472         * link/z80/lkgg.c,
3473         * link/z80/lkhead.c,
3474         * link/z80/lkihx.c,
3475         * link/z80/lklex.c,
3476         * link/z80/lklibr.c,
3477         * link/z80/lklist.c,
3478         * link/z80/lkmain.c,
3479         * link/z80/lkrloc.c,
3480         * link/z80/lks19.c,
3481         * link/z80/lksym.c,
3482         * link/z80/Makefile.in,
3483         * Makefile.in,
3484         * sdcc.dsw: moved link/ to as/link/
3485
3486 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
3487
3488         * as/mcs51/i51mch.c (machine): fixed warning
3489
3490 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
3491
3492         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
3493
3494 2006-09-09 Borut Razem <borut.razem AT siol.net>
3495
3496         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
3497           sdcdb WIN32 native port
3498         * src/clean.mk: fixed
3499
3500 2006-09-08 Borut Razem <borut.razem AT siol.net>
3501
3502         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
3503
3504 2006-09-08 Raphael Neider <rneider AT web.de>
3505
3506         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
3507         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
3508             to gplink to disable processor mismatch warning and to allow
3509             the use of devices with only aliased (shared) memory banks,
3510           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
3511
3512 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3513
3514         * doc/sdccman.lyx: Some re-formating plus example on using
3515           #pragma preproc_asm +/-
3516
3517 2006-09-07 Borut Razem <borut.razem AT siol.net>
3518
3519         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
3520           section
3521
3522 2006-09-06 Borut Razem <borut.razem AT siol.net>
3523
3524         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
3525           line at sdcc.nsi:153
3526         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
3527
3528 2006-09-05 Borut Razem <borut.razem AT siol.net>
3529
3530         * configure.in, configure: support for winsock2
3531         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
3532           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
3533           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
3534           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
3535           debugger/mcs51/symtab.h: sdcdb WIN32 native port
3536
3537 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
3538
3539         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
3540           and OP_DEFS
3541         * support/regression/tests/bug1551947.c: new, added
3542         * src/SDCCsymt.h: strings are char* not byte*
3543
3544 2006-09-05 Raphael Neider <rneider AT web.de>
3545
3546         * device/lib/pic16/libdev/pic18f4550.c,
3547           device/include/pic16/pic18f4550.h: added PORTD/TRISD
3548             declarations/definitions from patch #1520949
3549
3550 2006-09-05 Raphael Neider <rneider AT web.de>
3551
3552         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
3553           byte-aligned bitfields, fixes #1539278
3554
3555 2006-09-05 Raphael Neider <rneider AT web.de>
3556
3557         * src/pic/gen.c (genReceive): skip unreferenced arguments,
3558           fixes #1544120
3559
3560 2006-09-04 Borut Razem <borut.razem AT siol.net>
3561
3562         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
3563         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
3564           -mno-cygwin is a part of the compiler name
3565         * support/scripts/sdcc_mingw32: don't disable ucsim
3566
3567 2006-09-03 Borut Razem <borut.razem AT siol.net>
3568
3569         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
3570         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
3571
3572 2006-09-03 Raphael Neider <rneider AT web.de>
3573
3574         * src/pic/ralloc.c,
3575         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
3576           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
3577           fixes #1550049
3578
3579 2006-09-01 Borut Razem <borut.razem AT siol.net>
3580
3581         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
3582           to make ppc-osx happy
3583
3584 2006-08-31 Borut Razem <borut.razem AT siol.net>
3585
3586         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
3587         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
3588         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
3589         * support/regression/ports/ds390/spec.mk,
3590           support/regression/ports/mcs51/spec.mk,
3591           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
3592           To run regression tests in mingw environment:
3593           make DEV_NULL=NUL CC=gcc
3594
3595 2006-08-30 Borut Razem <borut.razem AT siol.net>
3596
3597         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
3598           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
3599           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
3600           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
3601           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
3602           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
3603           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
3604           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
3605           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
3606           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
3607           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
3608           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
3609           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
3610           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
3611           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
3612           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
3613           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
3614           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
3615           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
3616           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
3617           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
3618           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
3619           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
3620           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
3621           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
3622           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
3623           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
3624           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
3625           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
3626           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
3627           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
3628           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
3629           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
3630           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
3631           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
3632           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
3633           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
3634           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
3635           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
3636           ucsim WIN32 native port
3637
3638 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3639
3640         * doc/sdccman.lyx: added note on dynamic memory heap initialization
3641
3642 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
3643
3644         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
3645         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
3646
3647 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
3648
3649         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
3650         * support/regression/tests/bug1546986.c: new, added
3651         * as/mcs51/.cvsignore,
3652         * debugger/mcs51/.cvsignore,
3653         * src/.cvsignore: deleted
3654
3655 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3656
3657         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
3658           definitions)
3659
3660 2006-08-20 Borut Razem <borut.razem AT siol.net>
3661
3662         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
3663           removed cl_listen_console::match(), cl_console::match(),
3664           restructured cl_commander::proc_input()
3665
3666 2006-08-16 Borut Razem <borut.razem AT siol.net>
3667
3668         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
3669           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
3670           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
3671
3672 2006-08-14 Borut Razem <borut.razem AT siol.net>
3673
3674         * support/regression/Makefile.in,
3675           support/regression/ports/pic14/gpsim.cmd,
3676           support/regression/ports/pic14/spec.mk,
3677           support/regression/ports/pic14/support.c:
3678           added pic14 regression test
3679
3680 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
3681
3682         * as/doc/asxhtm.html: documented changed ABS behaviour
3683         * as/doc/README: fixed some typos
3684
3685 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
3686
3687         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
3688           not defined on host
3689
3690 2006-08-12 Borut Razem <borut.razem AT siol.net>
3691
3692         * support/regression/fwk/include/testfwk.h,
3693           support/regression/fwk/lib/testfwk.c,
3694           support/regression/generate-cases.py,
3695           support/regression/Makefile.in:
3696           regression test framework does not depend on function pointers and
3697           variable arguments
3698
3699 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
3700
3701         * device/include/stddef.h: c temporary hack to fix bug 1518273
3702
3703 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3704
3705         * device/include/mcs51/cc2510fx.h: added
3706         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
3707           to projects.
3708
3709 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
3710
3711         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
3712         * as/z80/Makefile.in: added strcmpi.c
3713         * as/z80/z80adr.c: added upper case registers and lower case conditionals
3714         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
3715
3716 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
3717
3718         * device/lib/gbz80/asm_strings.s,
3719         * device/lib/gbz80/crt0_rle.s,
3720         * device/lib/gbz80/div.s,
3721         * device/lib/gbz80/mul.s,
3722         * device/lib/gbz80/shift.s,
3723         * device/lib/z80/asm_strings.s,
3724         * device/lib/z80/crt0_rle.s,
3725         * device/lib/z80/div.s,
3726         * device/lib/z80/mul.s,
3727         * device/lib/z80/shift.s: changed to all lower case menmonics except the
3728           flags which are all upper case
3729
3730 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
3731
3732         * as/z80/asm.h: made CASE_SENSITIVE 1
3733         * link/z80/aslink.h: made CASE_SENSITIVE 1
3734         * src/z80/gen.c (throughout): made all conditionals upper case
3735         * support/regression/tests/bug1503067.c: new
3736
3737 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
3738
3739         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
3740           (shiftIntoPair): added case 2 for PAIR_IY,
3741           (setupToPreserveCarry): replaced parameters with iCode and check if
3742            PAIR_DE is in use to fix bug 1399290,
3743           (genPlus, genMinus): updated call to setupToPreserveCarry
3744         * support/regression/tests/bug1399290.c: new
3745
3746 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
3747
3748         * device/lib/Makefile.in (Z80SOURCES): enabled float support
3749         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
3750         * src/ds390/gen.c (shiftRLong),
3751         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
3752         * src/mcs51/gen.c (sameReg): changed to sameByte,
3753           (xch_a_aopGet): new,
3754           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
3755            shiftRLong): fixed bug 1533966
3756         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
3757           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
3758         * support/regression/Makefile.in: disabled z80, enabled ucz80
3759         * support/regression/tests/float_trans.c: enabled test for z80 and host
3760         * support/regression/tests/shifts2.c: new, for testing bug 1533966
3761
3762 2006-08-01 Borut Razem <borut.razem AT siol.net>
3763
3764         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
3765           comparison is always false due to limited range of data type
3766           on PPC64 machine (openpower-linux1) where "char = unsigned char"
3767
3768 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
3769
3770         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
3771         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
3772         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
3773         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
3774
3775 2006-07-31 Borut Razem <borut.razem AT siol.net>
3776
3777         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
3778           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
3779           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
3780           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
3781           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
3782           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
3783           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
3784           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
3785           enable ucsim mingw compilation. Serial port is disabled,
3786           since it uses termios.h API, which is not available on native
3787           WIN32
3788
3789 2006-07-31 Borut Razem <borut.razem AT siol.net>
3790
3791         * Small Device C Compiler 2.6.0 released
3792         * support/scripts/sdcc.nsi: added FULL_DOC option
3793         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
3794
3795 2006-07-28 Borut Razem <borut.razem AT siol.net>
3796
3797         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
3798         * doc/INSTALL.txt: updated
3799
3800 2006-07-27 Borut Razem <borut.razem AT siol.net>
3801
3802         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
3803           device/lib/pic/libdev/Makefile.in: fixed bug
3804           [ 1438354 ] pic libsdcc: distclean doesn't work
3805         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
3806           device/lib/pic16/libio/Makefile.in: fixed bug
3807           [ 1438344 ] pic16 lib: clean doesn't work properly
3808         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
3809
3810 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
3811
3812         * device/lib/pic/libsdcc/fsdiv.c,
3813         * device/lib/pic/libsdcc/fsmul.c,
3814         * device/lib/pic16/libsdcc/float/fsdiv.c,
3815         * device/lib/pic16/libsdcc/float/fsmul.c,
3816         * device/lib/_fsdiv.c,
3817         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
3818         * support/regression/tests/bug1520966.c: added
3819         * doc/knownbugs.html: removed [ 1520966 ] from the list
3820
3821 2006-07-25 Borut Razem <borut.razem AT siol.net>
3822
3823         * configure.in, configure, sdccconf_in.h: fixed bug
3824           [ 1519095 ] regression test onebyte.c fails on ppc64 host
3825         * doc/knownbugs.html: removed [ 1519095 ] from the list
3826
3827 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
3828
3829         * doc/knownbugs.html: added, contains list of known bugs at release
3830         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
3831
3832 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
3833
3834         * device/include/mcs51/compiler.h: added SFRX for xdata based special
3835           function registers and corrected defaults with additional warning
3836         * device/lib/malloc.c: cosmetic changes
3837         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
3838         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
3839           (fillGaps): and used it
3840
3841 2006-07-20 Raphael Neider <rneider AT web.de>
3842
3843         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
3844           output unless SDCCPICDEBUG is set
3845         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
3846           output if SILENT is set
3847
3848 2006-07-11 Borut Razem <borut.razem AT siol.net>
3849
3850         * doc/README.txt: updated
3851
3852 2006-07-10 Borut Razem <borut.razem AT siol.net>
3853
3854         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
3855           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
3856           in WIN32 installation
3857         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
3858           release candidate 1
3859
3860 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
3861
3862         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
3863         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
3864
3865 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
3866
3867         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
3868
3869 2006-07-06 Borut Razem <borut.razem AT siol.net>
3870
3871         * support/regression/tests/bitfields.c:
3872           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
3873         * support/regression/tests/constantRange.c:
3874           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
3875
3876 2006-07-04 Borut Razem <borut.razem AT siol.net>
3877
3878         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
3879           src/port.mk,
3880           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
3881           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
3882           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
3883           reverted changes from 2006-07-03
3884         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
3885         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
3886           added CPPFLAGS, used by the host port
3887
3888 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
3889
3890         * support/regression/valdiag/tests/switch.c,
3891         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
3892         * support/regression/tests/libmullong.c: fixed for host
3893         * support/regression/ports/host/spec.mk: disable all warnings for host,
3894         SDCC runs with --less-pedantic too
3895
3896 2006-07-03 Borut Razem <borut.razem AT siol.net>
3897
3898         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
3899           defined CPPFLAGS
3900         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
3901         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
3902           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
3903           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
3904           include ../port.mk
3905         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
3906           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
3907           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
3908           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
3909
3910 2006-07-02 Raphael Neider <rneider AT web.de>
3911
3912         * src/pic16/devices.inc,
3913         * device/include/pic16/pic18fregs.h,
3914         * device/include/pic16/pic18f4550.h,
3915         * device/lib/pic16/pics.all,
3916         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
3917
3918 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
3919
3920         * as/hc08/lkaomf51.c (OutputName),
3921         * as/mcs51/lkaomf51.c (OutputName),
3922         * as/z80/asmain.c (asmbl),
3923         * src/ds390/main.c (asmLineNodeFromLineNode),
3924         * src/hc08/ralloc.c (hc08_assignRegisters),
3925         * src/mcs51/main.c (asmLineNodeFromLineNode),
3926         * src/xa51/ralloc.c (checkRegMask),
3927         * src/xa51/gen.c (emitcode),
3928         * src/z80/gen.c (_emit2),
3929         * src/SDCCast.c (searchLitOp),
3930         * src/SDCCglobl.h,
3931         * support/packihx/packihx.c,
3932         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
3933         * src/ds390/gen.c (aopPutUsesAcc),
3934         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
3935         * support/regression/tests/libmullong.c (mullong_wrapper),
3936         * src/SDCCsymt.c (powof2),
3937         * src/SDCCast.c,
3938         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
3939         * src/SDCCsymt.h: added TYPE_TARGET_*
3940         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
3941         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
3942         SDCCast because 1) header problems 2) this is the right place
3943         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
3944         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
3945         prototype
3946
3947 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
3948
3949         * src/SDCCicode.h: removed buggy semicolon in unused macro
3950         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
3951         search for previous definiton of auto symbols too,
3952         (findPrevUse): fixed logic of emitWarnings
3953
3954 2006-06-26 Raphael Neider <rneider AT web.de>
3955
3956         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
3957           PCLATH and PCLATU on interrupts, potentially fixes #1505141
3958
3959 2006-06-25 Raphael Neider <rneider AT web.de>
3960
3961         * device/lib/pic/libm: NEW, added math library functions
3962         * device/lib/pic/libsdcc: NEW; added float support functions
3963         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
3964         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
3965           NEW, added math related headers
3966         * device/include/asm/pic/features.h: NEW
3967         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
3968           (popGet): allow larger offsets for AOP_PCODE,
3969           (genDataPointerSet): handle literals explicitly, more debug output,
3970           (genAssign): fixed for float using aopLiteral ;-)
3971         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
3972           GOTO initialisation routine
3973         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
3974           flag on registers, fixes #1469043 (local variables do not work)
3975         * src/pic/main.c (_pic14_do_link),
3976         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
3977           available
3978
3979 2006-06-25 Borut Razem <borut.razem AT siol.net>
3980
3981         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
3982           characters printed (not including the trailing '\0' used to end
3983           output to strings). Problem detected in regression test bug-927659.c.
3984           NOTE: printf() family functions should return int instead
3985           unsigned int!
3986         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
3987           specifier are printed as themselves
3988         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
3989           support flags, width and precision specifiers
3990
3991 2006-06-24 Borut Razem <borut.razem AT siol.net>
3992
3993         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
3994           to the list of sdcc tagrets not supporting bit type
3995         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
3996           testfor pic16 due to bug:
3997           [ 1511794 ] pic16: regression test bug-895992.c fails
3998
3999 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
4000
4001         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
4002         * src/SDCCglue.c (initPointer), fixed bug 1496419
4003         * support/regression/tests/bug1496419.c: new, added
4004
4005 2006-06-22 Borut Razem <borut.razem AT siol.net>
4006
4007         * support/regression/ports/pic16/support.c: use gpsim usart module from
4008           libgpsim_modules library
4009
4010 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4011
4012         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
4013         IP0H to IPH0.
4014
4015 2006-06-19 Raphael Neider <rneider AT web.de>
4016
4017         * src/pic/glue.h,src/pic16/glue.h: added prototypes
4018         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
4019           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
4020           (pic14printExterns,pic14printPublics,pic16printPublics,
4021           pic16_printExterns): use new functions to emit symbols
4022           (picglue,pic16glue): emit publics before emitting externs
4023         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
4024           locally defined functions to avoid bug #1443651
4025         * support/regression/tests/bug-716242.c: removed pic16 workaround
4026         * support/regression/ports/pic16/spec.mk: ignore errors during build
4027
4028 2006-06-19 Raphael Neider <rneider AT web.de>
4029
4030         * src/pic/glue.h: added pic14aopLiteral prototype
4031         * src/pic/glue.c (pic14aopLiteral): return unsigned int
4032         * src/pic/gen.c: removed stdint.h dependency
4033           (aopGet): use Safe_strdup()
4034           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
4035           (genDataPointerSet): use pic14aopLiteral()
4036         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
4037           for pic16; thanks to Bernhard and Maarten
4038
4039 2006-06-18 Borut Razem <borut.razem AT siol.net>
4040
4041         * support/regression/tests/structflexarray.c: flexible array members
4042           not supported by gcc < 3
4043         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
4044           GUI tool by default
4045         * src/pic/gen.c: don't include [p]strdin.h on solaris
4046         * support/Util/pstdint.h: addad svn attributes
4047         * support/regression/tests/constantRange.c,
4048           support/regression/tests/rotate.c: include inttypes.h instead
4049           stdint.h on solaris, addad svn attributes
4050
4051 2006-06-18 Raphael Neider <rneider AT web.de>
4052
4053         * src/SDCCsymt.c (initCSupport): change return type of divschar to
4054           int for PIC16
4055         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
4056           (pic16_genMinusBits): simplified sign-extension
4057           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
4058             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
4059             adjusted to correctly handle mixed-signed operands, disabled
4060             now unused multiplciation routines
4061         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
4062           (assignResultValue): added argument denoting the size of the result
4063             as returned by the function (fixes upcasts in assigning from
4064             function calls: char foo(); int i = foo();)
4065           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
4066             function result to assignResultValue
4067           (genMult): disabled inlined multiplication code
4068           (genDiv): augmented to also handle the modulus operator, fixed to
4069             handle mixed-signed operands correctly
4070           (genMod): simply call genDiv, disabled unused code
4071           (genAssign): fixed missing (sign-)extension on result
4072         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
4073             valid char operands, allow signed operands for native code, added
4074             division and modulo operator handling
4075         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
4076
4077         As a consequence, onebyte.c (if split into two files) and muldiv.c
4078         pass regression tests.
4079
4080 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4081
4082         * doc/Makefile.in: two runs of makeindex seem needed to get
4083         correct page references in the index of sdccman.pdf
4084         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
4085
4086 2006-06-17 Borut Razem <borut.razem AT siol.net>
4087
4088         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
4089
4090 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4091
4092         * doc/sdccman.lyx: updated, added (porting source code, debugging),
4093         mentioned ec2drv and paulmon
4094
4095 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
4096
4097         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
4098           consecutive abs areas
4099           (find_empty_space, allocate_space): added map to handle codemap or
4100            xdatamap,
4101           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
4102            absolute idata and xdata
4103         * as/mcs51/lkmem.c (summary2): updated legend
4104
4105 2006-06-16 Raphael Neider <rneider AT web.de>
4106
4107         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
4108
4109 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
4110
4111         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
4112           1208515
4113         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
4114
4115 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
4116
4117         * src/port.h (struct PORT): added field gp_tags, to hold the tag
4118         value of generic pointers,
4119         * src/avr/main.c,
4120           src/ds390/main.c,
4121           src/hc08/main.c,
4122           src/izt/i186.c,
4123           src/izt/tlcs900h.c,
4124           src/mcs51/main.c,
4125           src/pic/main.c,
4126           src/pic16/main.c,
4127           src/xa51/main.c,
4128           src/z80/main.c: PORT structure, added elements for gp_tags field,
4129         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
4130         fields in the PORT structure of each port,
4131         * src/SDCCast.c (decorateType): allow processing of generic pointers
4132         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
4133         S_FIXED symbols
4134
4135 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
4136
4137         * link/z80/lkgb.c,
4138         * link/z80/lkgg.c,
4139         * src/pic16/gen.c,
4140         * src/pic16/main.c,
4141         * src/pic16/pcode.c,
4142         * src/pic/main.c,
4143         * src/pic/pcoderegs.c,
4144         * src/SDCCicode.c,
4145         * src/SDCCmain.c,
4146         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
4147           bug 1504689 on minGW
4148
4149 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4150
4151         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
4152
4153 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
4154
4155         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
4156
4157 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
4158
4159         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
4160           for optimization
4161
4162 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
4163
4164         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
4165         to a char variable. Fixed bug #1504211
4166         * device/include/pic16/adc.h,
4167         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
4168         and fixed bug #1364390
4169
4170 2006-06-10 Borut Razem <borut.razem AT siol.net>
4171
4172         * CVSROOT: removed the CVS left-over
4173
4174 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
4175
4176         * as/hc08/asmain.c (asexit),
4177         * as/hc08/lkmain.c (lkexit),
4178         * as/mcs51/asmain.c (asexit),
4179         * as/mcs51/lkmain.c (lkexit),
4180         * src/SDCCglue.c (DEFSETFUNC),
4181         * src/SDCCmain.c (linkEdit, assemble),
4182         * support/librarian/sdcclib.c (AddRel),
4183           replaced unlink() by standard C remove()
4184         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
4185         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
4186           gatherImplicitVariables): new, added to fix bug 608752,
4187           (createFunction): added gatherImplicitVariables()
4188         * src/SDCCast.h: added createRMW prototype
4189         * src/SDCCsymt.h (struct symbol): added infertype
4190         * support/regression/tests/bug608752.c: new, added
4191
4192 2006-06-10 Raphael Neider <rneider AT web.de>
4193
4194         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
4195           multibyte dummy reads (fixes #1503234)
4196
4197 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
4198
4199         * device/include/mcs51/compiler.h: new, added header file to enable
4200           creating common sfr definition header files for different compilers
4201
4202 2006-06-05 Raphael Neider <rneider AT web.de>
4203
4204         * src/pic16/{pcode.h,genarith.c}:
4205           introduced pCodeOp combining any two pCodeOps (previously only
4206           two register operands could be combined), removed pcop2 from
4207           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
4208         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
4209         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
4210           rewritten to use new PO_TWO_OPS
4211         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
4212         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
4213           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
4214           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
4215           (pic16_get_op): embraced return arg to allow #define return(x),
4216             added new case for combined opcodes
4217           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
4218           (pic16_pCode2str,pic16_getRegFrompCodeOp,
4219            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
4220
4221 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
4222
4223         * src/SDCCval.c (checkConstantRange): added
4224         * src/SDCCval.h: added checkConstantRange
4225         * support/Util/SDCCerr.c,
4226         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
4227         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
4228         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
4229         * src/SDCCast.c (decorateType): added checkConstantRange,
4230         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
4231         can be emitted with the correct always true/false warning,
4232         added optimization for double '!';
4233         result of decorateType() must be assigned back to the tree, because
4234         decorateType() can change the tree
4235         * src/SDCCicode.c (geniCodeLogic),
4236         (geniCodeAssign): replaced new checkConstantRange, added warnings,
4237         (checkConstantRange): removed, it was only a fragment which never
4238         emitted a warning
4239         * src/SDCCsymt.c (computeType): fixed promotion for
4240         "-1 < (unsigned bit) b"
4241         * src/pic/ralloc.c (packRegsForAssign),
4242         * src/pic16/ralloc.c (packRegsForAssign),
4243         * src/hc08/ralloc.c (packRegsForAssign),
4244         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
4245         from mcs51
4246         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
4247         * support/regression/tests/constantRange.c: added
4248         * support/valdiag/tests/constantRange.c: added
4249         * support/valdiag/valdiag.py: added -DPORT_HOST=1
4250
4251 2006-06-02 Borut Razem <borut.razem AT siol.net>
4252
4253         * support/regression/ports/pic16/support.c: increase stack size
4254           to 255 bytes
4255         * support/regression/Makefile.in: sort tests by name so that the
4256           resutlts can be compared on different machines / platforms
4257
4258 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
4259
4260         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
4261         * src/ds390/gen.c (emitLabel): new, added,
4262           (genDjnz): fixed stack overflow bug,
4263           (throughout): cosmetic changes to sync with mcs51/gen.c,
4264           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
4265         * src/mcs51/gen.c (genEndFunction): small optimization,
4266           (throughout): cosmetic changes to sync with ds390/gen.c
4267
4268 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
4269
4270         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
4271           (_print_format): fixed printing pointers
4272         * src/mcs51/gen.c (emitLabel, movb): new, added,
4273           (genAssign): small optimization,
4274           (genDjnz): fixed stack overflow bug,
4275           (throughout): replaced sprintf with SNPRINTF,
4276           replaced mcs51_regWithIdx with REG_WITH_INDEX,
4277           replaced emitcode("mov", "b,...") with MOVB(...),
4278           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
4279           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
4280         * src/mcs51/peeph.def: added rules 140 and 264
4281         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
4282           so they may get optimized into registers
4283
4284 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
4285
4286         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
4287           immediately when encountered,
4288           (printUsage): always use stderr even on windows
4289
4290 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
4291
4292         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
4293         (processParms): fixed bug #1247551
4294         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
4295         parseCmdLine, main): print '--version' to stdout,
4296         print 'help' to stdout if --help is given,
4297         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
4298         arguments are given; fixed --help
4299
4300 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
4301
4302         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
4303         * support/regression/tests/bug-1493710.c: added
4304
4305 2006-05-27 Borut Razem <borut.razem AT siol.net>
4306
4307         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
4308           static instead auto
4309         * support/regression/ports/pic16/support.c: increase stack size
4310           from default 64 bytes to 128 bytes
4311         * support/regression/tests/staticinit.c,
4312           support/regression/tests/float.c: regression tests fully enabled
4313           for pic16 port by putting the initialized data arrays into the code
4314           section
4315         * support/regression/ports/pic16/spec.mk: don't link default libraries.
4316           This was changed by mistake in the previous version.
4317
4318 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
4319
4320         * src/pic16/gen.c (genFunction, genEndFunction): some
4321         beautifications, fixed bug with falsely restoring FSR2 in large
4322         stack model, thanks to Beau E. Cox for reporting the bug
4323
4324 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
4325
4326         * debugger/mcs51/break.c,
4327         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
4328           use %p to print pointers, made address variables unsigned
4329         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
4330         * debugger/mcs51/symtab.c (parseSymbol): must return something
4331         * src/mcs51/gen.c (aopForSym): small optimization,
4332            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
4333           (freeAsmop): added missing break,
4334           (aopPut): removed parameter bvolatile, determine it inside the function,
4335           (saveRegisters, unsaveRegisters): small optimization,
4336           (genIpush): removed pointless check,
4337           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
4338           replaced sprintf with SNPRINTF,
4339           replaced strcpy with strncpyz,
4340           updated aopPut calls,
4341           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
4342         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
4343
4344 2006-05-24 Borut Razem <borut.razem AT siol.net>
4345
4346         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
4347           modification of test for the pic16 port, put the array to the code
4348           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
4349
4350 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4351
4352         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
4353         * support/Util/pstdint.h: added
4354
4355 2006-05-22 Borut Razem <borut.razem AT siol.net>
4356
4357         * src/regression/Makefile: removed bool2.c test, added -q linker option
4358         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
4359           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
4360           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
4361           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
4362           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
4363           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
4364           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
4365           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
4366           define SUPPORT_BIT_TYPES 0, removed unused bit variables
4367
4368 2006-05-22 Raphael Neider <rneider AT web.de>
4369
4370         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
4371           bug #1492360 (problematic due to generic pointers, see code)
4372
4373 2006-05-22 Borut Razem <borut.razem AT siol.net>
4374
4375         * support/regression/ports/pic16/specs.mk: removed stack size linker
4376           directive
4377         * support/regression/tests/array.c,
4378           support/regression/tests/bitopcse.c,
4379           support/regression/tests/bug-908454.c,
4380           support/regression/tests/malloc.c: modified for pic16 regression test
4381         * support/regression/tests/bitfields.c:
4382           pic16 - excluded bitfileds of size > 8
4383         * support/regression/tests/bp.c: pic16 - reduced data size
4384         * support/regression/tests/bug-221100.c: pic16 - reduced data size
4385         * support/regression/tests/bug-460010.c:
4386           pic16 - used the absolute address the fits in memory
4387         * support/regression/tests/bug-716242.c:
4388           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
4389         * support/regression/tests/float.c:
4390           pic16 - excluded - data size too big
4391         * support/regression/tests/onebyte.c:
4392           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
4393         * support/regression/tests/shifts.c:
4394           pic16 - function names probably have to differ in first X characters
4395           (gpasm limitation?)
4396         * support/regression/tests/staticinit.c:
4397           pic16 - excluded some tests due error: no target memory available for
4398           section ".idata"
4399
4400 2006-05-22 Borut Razem <borut.razem AT siol.net>
4401
4402         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
4403           second try. Thanks Stas Sergeev once more.
4404
4405 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
4406
4407         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
4408           (genLeftShift, genRightShift): fixed bug 1491627
4409         * src/hc08/peeph.def (rules 7, 8.x): added
4410         * support/regression/tests/shifts.c (ShiftLeftByParam,
4411           ShiftRightByParam, testShiftByParam): added to test variable shifting
4412
4413 2006-05-20 Raphael Neider <rneider AT web.de>
4414
4415         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
4416         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
4417           (allocReg): add only new registers to dynAllocRegs,
4418           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
4419             #1489055, #1445850, and probably #1483693
4420
4421 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
4422
4423         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
4424         bug in for-loop that didn't emit the last of CONFIG and ID registers
4425
4426 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
4427
4428         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
4429           with offset
4430         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
4431           1489016, 1434401 and 1490124
4432         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
4433           1489016, 1434401 and 1490124
4434
4435 2006-05-17 Borut Razem <borut.razem AT siol.net>
4436
4437         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
4438           thanks Stas Sergeev
4439
4440 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
4441
4442         * device/include/mcs51/P89c51RD2.h,
4443         * device/include/mcs51/P89LPC901.h,
4444         * device/include/mcs51/P89LPC922.h,
4445         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
4446
4447 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
4448
4449         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
4450         to fix missing stack pragma in compiled binary object file,
4451
4452 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
4453
4454         * support/packihx/configure.in,
4455         * support/packihx/configure: removed warning, autoconf >= 2.5x can
4456         determine sizeof basic types even while cross compiling
4457
4458 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
4459
4460         * src/avr/gen.c (aopop),
4461         * src/ds390/gen.c (aopOp),
4462         * src/hc08/gen.c (aopOp),
4463         * src/mcs51/gen.c (aopop),
4464         * src/pic16/gen.c (pic16_aopOp),
4465         * src/pic/gen.c (aopOp),
4466         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
4467         if size of operand is smaller than spill location
4468
4469 2006-05-12 Borut Razem <borut.razem AT siol.net>
4470
4471         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
4472           have to have CR/LF line endings even if they are checked out on *nix
4473           or on WIN32 in cygwin binmode
4474
4475 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
4476
4477         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
4478         * device/include/ds80c390.h: added sfr16 definitions
4479         * src/ds390/gen.c,
4480         * src/ds390/gen.h,
4481         * src/ds390/main.c,
4482         * src/ds390/ralloc.c,
4483         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
4484           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
4485           bit returning functions
4486         * support/regression/tests/sfr16.c: enabled test on ds390
4487
4488 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4489
4490         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
4491         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
4492
4493 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
4494
4495         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
4496         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
4497           (cl_address_space constructor): removed expensive initialization,
4498           (cl_address_space::get_cell): extended for late initialization,
4499           (cl_address_space::*): use late initialization,
4500           (cl_address_decoder::activate): removed expensive initialization,
4501           This reduced regression test running time by 25%
4502
4503 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
4504
4505         * packihx/,
4506         * configure.in,
4507         * configure,
4508         * sdcc.dsw,
4509         * Makefile.bcc,
4510         * Makefile.in,
4511         * support/packihx/Makefile.in,
4512         * support/packihx/clean.mk,
4513         * support/packihx/Makefile.bcc,
4514         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
4515
4516 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4517
4518         * src/SDCCval.c (valNot): fix for regression test failure
4519           of not.c on big endian hosts
4520
4521 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
4522
4523         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
4524
4525 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4526
4527         * device/lib/mcs51/Makefile.in: changed string comparison operator
4528           to = for POSIX compliance; == is bash extension
4529
4530 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
4531
4532         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
4533           kosmonaut_pirx
4534
4535 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
4536
4537         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
4538         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
4539         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
4540         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
4541         bug report #1478657,
4542
4543 2006-05-05 Borut Razem <borut.razem AT siol.net>
4544
4545         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
4546           making the html
4547
4548 2006-05-02 Borut Razem <borut.razem AT siol.net>
4549
4550         * doc/Makefile.in: removed *.ind dependency since there is no rule to
4551           create *.ind, which made make to fail if invoked with -j 2
4552
4553 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
4554
4555         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
4556           Hubert Sack for patch 1479782
4557
4558 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
4559
4560         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
4561
4562 2006-05-01 Raphael Neider <rneider AT web.de>
4563
4564         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
4565           (create_pic): store only prefix-free device name,
4566           (init_pic): check for device names with "16" prefix,
4567           (list_valid_pics),
4568         * src/pic/device.h (struct PIC_device),
4569         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
4570             stored device name,
4571         * device/include/pic/pic12f{635,675,629,683}.h,
4572         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
4573         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
4574         * device/include/pic/pic16f505.h,
4575         * device/lib/pic/libdev/pic16f505.c: removed
4576         * device/include/pic/pic14devices.txt: added support for pic12f
4577             devices, removed unsupported non 16-bit devices
4578             [above changes provided by patch from Zik Saleeba]
4579         * src/pic/*, src/pic16/*, device/include/pic16/*,
4580           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
4581
4582 2006-05-01 Borut Razem <borut.razem AT siol.net>
4583
4584         * configure.in, configure, doc/Makefile.in:
4585           sync with nightly build makefile - latex, dvipdf and dvips
4586           not needed any more
4587
4588 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
4589
4590         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
4591         in the library source
4592
4593 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
4594
4595         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
4596
4597 2006-04-28 Raphael Neider <rneider AT web.de>
4598
4599         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
4600         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
4601           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
4602         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
4603
4604 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
4605
4606         * device/lib/pic/libdev/Makefile.in,
4607         * device/lib/hc08/Makefile.in,
4608         * device/lib/gbz80/Makefile.in,
4609         * device/lib/z80/Makefile.in,
4610         * device/lib/ds390/Makefile.in,
4611         * device/lib/ds400/Makefile.in: added srcdir to include search path,
4612         thanks to Borut for the bug report
4613         * configure.in,
4614         * configure: always create doc/Makefile independent from --enable-doc
4615         * Makefile.in: always install from directory doc independent from
4616         --enable-doc
4617         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
4618         removed
4619         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
4620         * doc/Makefile.in: install *.txt if present
4621         * device/include/Makefile.in (install): added installation of pic/*.inc
4622         and pic/*.txt files again, they were erroneously removed
4623
4624 2006-04-28 Raphael Neider <rneider AT web.de>
4625
4626         * src/pic/{gen.c,main.h,pcode.c},
4627         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
4628             concerning signedness with casts
4629
4630 2006-04-28 Raphael Neider <rneider AT web.de>
4631
4632         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
4633             definition of an interrupt handler,
4634         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
4635             interrupt handler stuff from picglue() to separate routine,
4636           (picglue): enabled definition of intr handlers in files w/o main()
4637
4638 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
4639
4640         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
4641           compilation with MSVC 2005 Express Edition (VC8)
4642
4643 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
4644
4645         * device/lib/Makefile: fixed build of gbz80 lib
4646
4647 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
4648
4649         * support/regression/tests/bug-460010.c,
4650         * support/regression/tests/bug-524691.c,
4651         * support/regression/tests/bug-716242.c: removed conditional defines
4652           that are already in testfwk.h
4653
4654 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
4655
4656         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
4657           (AccAXRsh1): added, shift right by 1,
4658           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
4659            AccAXLrl1
4660         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
4661
4662 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
4663
4664         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
4665         remove cast to same type
4666         * src/SDCCast.c (decorateType): fix for RFE 1475742,
4667         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
4668         * as/z80/Makefile,
4669         * link/z80/Makefile: removed, they have moved to
4670         Makefile.in files
4671         * configure,
4672         * configure.in: replaced duplicate message about ucsim by missing sdcpp
4673         * install-sh: fix bug #1204398 by setting umask 0022
4674         * device/lib/Makefile: separate build of z80 and gbz80 lib
4675
4676 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
4677
4678         Enabled VPATH feature: changed nearly all Makefiles (149 files).
4679         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
4680
4681         One basic decision: e.g. src/clean.mk includes further files. In order
4682         to make this work there are two solutions:
4683         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
4684           run configure on them. This way they can use
4685           'include $(srcdir)/port-clean.mk'
4686         - always include clean.mk by the Makefile at the same level. To avoid
4687           that `make clean` tries to include and build Makefile.dep the
4688           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
4689           implemented, because now even `make uninstall` doesn't create
4690           Makefile.in. clean.mk could be eliminated by pasting it in
4691           Makefile.in.
4692
4693         * debugger/mcs51/Makefile.in: build own objects from library sources
4694         (SLIB, SDCC) in current directory
4695
4696         * configure, configure.in: renamed --disable-device-lib-build in
4697         --disable-device-lib; added --enable-doc, the required tools are
4698         searched by configure; added result message; the toolchain for the
4699         belonging ports are now only built, if the port is enabled.
4700
4701         * support/regression/*: all output is written in directory gen, because
4702         the fwk and ports directories don't livet in the build tree using vpath
4703
4704         * doc/sdccman.lyx: renamed --disable-device-lib-build to
4705         --disable-device-lib, added --enable-doc, added section VPATH
4706
4707         * sim/ucsim/configure.in,
4708         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
4709         z80 are enabled by default
4710
4711 2006-04-24 Raphael Neider <rneider AT web.de>
4712
4713         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
4714             to config word, "pic14_"-prefixed some extern functions
4715           (pic14_emitConfigWord): emit __config directive(s) if assignment to
4716             config word has been found
4717         * src/pic/device.h: added prototypes
4718         * src/pic/pcode.c: added "pic14_"-prefix where needed
4719         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
4720             fixup
4721         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
4722             words,
4723           (pic14emitRegularMap): ignore config words,
4724           (pic14createInterruptVect): moved generating __config directives away
4725           (picglue): have __config directives emitted
4726
4727 2006-04-24 Borut Razem <borut.razem AT siol.net>
4728
4729         * doc/Makefile: sync with nightly build makefile
4730
4731 2006-04-24 Raphael Neider <rneider AT web.de>
4732
4733         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
4734             registers that have not been assigned proper liveranges,
4735             fixes #1469504 and #1474602,
4736           (pCodeRegOptimizeRegUsage): fixed typo in comment
4737
4738 2006-04-24 Borut Razem <borut.razem AT siol.net>
4739
4740         * device/examples/main8051.c: deleted - it was removed from CVS
4741           24.mar.2000 and after that modified 18.feb.2001, so it reappered
4742           after the transition to Subversion
4743         * src/SDCCalloc.h: deleted - it was removed  from CVS
4744           3.feb.2001 and after that modified 18.feb.2001, so it reappered
4745           after the transition to Subversion
4746         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
4747           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
4748           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
4749           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
4750
4751 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
4752
4753         * as/asx8051.dsp: added mcs51/strcmpi.h
4754         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
4755         * as/hc08/aslink.h: updated lnksect prototype
4756         * as/hc08/asm.h,
4757         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
4758         * as/hc08/asmain.c,
4759         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
4760           (newdot): handle A_ABS
4761         * as/hc08/asout.c,
4762         * as/mcs51/asout.c (outarea): output address
4763         * as/hc08/lkaomf51.c,
4764         * as/mcs51/lkaomf51.c: disabled unused array UsageType
4765         * as/hc08/m08pst.c,
4766         * as/mcs51/i51pst.c,
4767         * as/z80/z80pst.c: "ABS" is not A_OVR
4768         * as/hc08/lkarea.c (newarea): read a_addr,
4769           (lnkarea): added codemap array, sort absolute areas to the front,
4770            combine all GSINITx/GSFINAL,
4771           (find_empty_space, allocate_space): new functions,
4772           (lnksect): return next address, handle absolute sections
4773         * as/mcs51/lkarea.c (newarea): read a_addr,
4774           lnksect2 prototype changed,
4775           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
4776           (find_empty_space, allocate_space): new, factored out of lnksect2,
4777           (lnksect2): return next address, handle absolute sections
4778         * as/hc08/lkhead.c,
4779         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
4780         * as/hc08/lklibr.c (addfile, fndsym),
4781         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
4782           index out of range and detect both '\' and '/'
4783         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
4784         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
4785           regression tests (ds390 cannot return bool yet)
4786         * doc/sdccman.lyx: changed version number, document changed --no-peep,
4787           document critical interrupts on z80, document changed SDCC define
4788         * src/asm.c (_asxxxx_mapping): fixed .org directive,
4789           (_a390_mapping): added .org directive
4790         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
4791           (genMultOneByte): fixed warnings
4792         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
4793           ones
4794         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
4795         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
4796           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
4797         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
4798         * src/pic16/main.c: removed newReg prototype
4799         * src/pic16/pcode.c,
4800         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
4801           warnings
4802         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
4803           ones
4804         * src/pic16/ralloc.c
4805         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
4806           to fix warnings
4807         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
4808           from short to PIC_OPTYPE
4809         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
4810         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
4811           optype from short to PIC_OPTYPE
4812         * src/port.h: made int_size unsigned to fix warnings
4813         * src/SDCC.y: fixed warning on MSVC
4814         * src/SDCCicode.c (getArraySizePtr): return unsigned int
4815         * src/SDCCopt.c (convertToFcall): fixed warnings
4816         * src/SDCCsymt.h: removed double prototype for genSymName
4817         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
4818           offset int to fix warnings
4819
4820 2006-04-22 Borut Razem <borut.razem AT siol.net>
4821
4822         * doc/sdccman.lyx, */Makefile, */Makefile.in:
4823           references to CVS replaced with Subversion
4824
4825 2006-04-21 Borut Razem <borut.razem AT siol.net>
4826
4827         * doc/sdccman.lyx, */Makefile, */Makefile.in:
4828           references to CVS replaced with Subversion
4829
4830 2006-04-19 Borut Razem <borut.razem AT siol.net>
4831
4832         * src/version.awk: adapted for svn
4833         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
4834           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
4835           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
4836           /binutils-avr/etc/*.vi, *.jin: removed all properties
4837           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
4838
4839 2006-04-19 Borut Razem <borut.razem AT siol.net>
4840
4841         * CVS to Subversion migration completed
4842
4843 2006-04-18 Borut Razem <borut.razem AT siol.net>
4844
4845         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
4846           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
4847
4848 2006-04-17 Borut Razem <borut.razem AT siol.net>
4849
4850         * device/include/Makefile.in: added pic/*.inc to the installation
4851
4852 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
4853
4854         * support/regression/collate-results.py: fixed output in case of
4855         a valdiag error
4856         * support/regression/generate-cases.py: fixed splitting of pathnames
4857         with dots
4858         * as/hc08/lklibr.c (addfile),
4859         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
4860
4861 2006-04-11 Raphael Neider <rneider AT web.de>
4862
4863         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
4864         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
4865         * src/pic16/pcode.c (assignValnums): fixed #1460578
4866
4867 2006-04-11 Raphael Neider <rneider AT web.de>
4868
4869         * device/lib/pic/libdev/*.c,
4870         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
4871           fixes #1468739, enables compilation in --std-c99 mode
4872         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
4873
4874 2006-04-11 Raphael Neider <rneider AT web.de>
4875
4876         * src/pic/device.c (find_device): removed debug output
4877           (list_valid_pics): enabled verbose listing of supported devices
4878         * device/include/stdbool.h: define bool as char for pic14/16 as well
4879
4880 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4881
4882         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
4883
4884 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
4885
4886         * .version: bumped version to 2.5.6
4887         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
4888
4889 2006-04-06 Raphael Neider <rneider AT web.de>
4890
4891         * .version: bumped version to 2.5.6 (pic14 ABI changed)
4892         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
4893         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
4894           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
4895             pic14_constructAbsMap
4896           (pic14printPublics): declare absolute global symbols as global
4897           (pic14createInterruptVect),
4898         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
4899           (newReg): assume new registers unused, use correct name in
4900             hashtable (reg->name instead of name), more debugLog output
4901         * src/pic/device.h (PIC_device): added fields for verbose output
4902         * src/pic/device.c: moved device definition to pic14devices.txt,
4903             added routines for runtime parsing of pic14devices.txt,
4904             added support for second config word
4905         * src/pic/main.c (_process_pragma): removed #pragma maxram,
4906           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
4907           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
4908           (_pic14_parseOptions): moved pCodeInitRegisters here
4909           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
4910         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
4911           (pCodeInitRegisters): rewrapped comments, perpared new approach to
4912             handling the pseudo stack
4913         * device/lib/Makefile.in: ignore failures in objects-pic16,
4914         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
4915         * device/lib/pic/NEWS: document new dependency on picXXX.lib
4916         * device/lib/pic/Makefile.subdir,
4917         * device/lib/pic16/Makefile.subdir: improved clean rules
4918         * device/lib/pic/libdev/: NEW, pic14 device libraries
4919         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
4920         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
4921         * device/include/Makefile.in: create subdir and install pic14 headers
4922         * device/include/pic/p16f_common.inc: removed unused declarations
4923         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
4924             PICs from inc2h.pl v1.6,
4925             replaced BIT_AT macros with struct declarations
4926         * device/include/pic/pic14devices.txt: definition of supported devices,
4927             all above improvements contributed by Zik Saleeba, thanks
4928         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
4929         * support/scripts/sdcc.nsi: also install pic14 device libraries and
4930             headers
4931
4932 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
4933
4934         * device/include/mcs51/c8051f410.h: added interrupt numbers,
4935         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
4936           thanks to Charles Olds
4937
4938 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4939
4940         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
4941
4942 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
4943
4944         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
4945         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
4946         * support/regression/bug1464657.c: added, new test
4947
4948 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
4949
4950         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
4951           version number
4952
4953 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
4954
4955         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
4956           --no-peep and --peep-file <file> are used don't use default rules but
4957           do use the <file>
4958
4959 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
4960
4961         * src/mcs51/gen.c (genCall): fixed bug 1457608
4962
4963 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4964
4965         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
4966         changes seem to cause (trigger?) problems with the build system.
4967
4968 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
4969
4970         * src/SDCCpeeph.c (operandsLiteral): new, added,
4971           (callFuncByName): inserted operandsLiteral
4972         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
4973
4974 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4975
4976         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
4977         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
4978
4979 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
4980
4981         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
4982           implemented patch 1120823 Thanks to Willy De la Court (normal
4983           interrupts need an interrupt number now if they are made critical),
4984           and enabled nesting of critical functions though not for gbz80
4985           (genCritical, genEndCritical): added functions
4986           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
4987         * src/z80/mappings.i: added "ei" to all mappings
4988
4989 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4990
4991         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
4992         submitted by the Debian SDCC maintainer Aurelien Jarno:
4993         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
4994         archive with gcc 4.1 on mips and wrote the patch"
4995
4996 2006-03-16 Raphael Neider <rneider AT web.de>
4997
4998         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
4999           the left operand is shorter than the result (c* = lit-c* + int),
5000           fixes bug #1450796
5001         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
5002           OP_SYMBOL
5003
5004 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
5005
5006         * src/.version: increased version number to 2.5.5
5007         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
5008         linking is done manually in pic16 port's _linkEdit,
5009         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
5010         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
5011         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
5012         allocate asmop as AOP_ACC,
5013         (aopForRemat): added parameter 'bool result' in function declaration,
5014         (pic16_aopGet): return AOP_ACC when accessing WREG,
5015         (pic16_popGetTempReg): minor modification,
5016         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
5017         'pic16_allocWithIdx',
5018         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
5019         calling function in absolute addresses,
5020         (genAssign): take into account AOP_ACC asmop,
5021         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
5022         * src/pic16/pcoderegs.c: some debug functions and lines added,
5023         * src/pic16/ralloc.c (decodeRegType): added but commented out,
5024         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
5025         register too,
5026         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
5027         call to allocReg, not by manually allocating a new one,
5028         (pic16_assignRegisters): now before going through the register
5029         allocating functions mark all registers as free. This eliminates some
5030         side effects resulting from peephole parser done earlier in the backbone
5031
5032 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
5033
5034         * src/SDCCicode.c (geniCodeLogic),
5035         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
5036
5037 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
5038
5039         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
5040           (genSend): bugfix, do not allocate and free twice,
5041           (shiftRLong): handle partially overlapping aops
5042         * support/regression/tests/bitopcse.c: fixed warning redefined idata
5043
5044 2006-03-08 Borut Razem <borut.razem AT siol.net>
5045
5046         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
5047           for pic16
5048
5049 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
5050
5051         * support/regression/tests/bug1409955.c: new, added
5052         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
5053         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
5054           (aopForSym, aopOp): increment asmop.allocated if reused,
5055           (freeAsmop): decrement asmop.allocated and check for zero instead of
5056           using asmop.freed,
5057           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
5058           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
5059            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
5060            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
5061            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
5062            genSignedRightShift, genRightShift, genDataPointerGet,
5063            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
5064            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
5065             in reverse order from allocation,
5066           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
5067             added swappedLR to keep track
5068         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
5069           pdata & code for GCC, z80, gbz80 & hc08
5070         * support/regression/tests/zeropad.c: moved defines to testfwk.h
5071
5072 2006-03-08 Raphael Neider <rneider AT web.de>
5073
5074         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
5075
5076 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
5077
5078         * device/include/mcs51/c8051f410.h: new SiLabs mcu
5079         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
5080         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
5081
5082 2006-03-06 Borut Razem <borut.razem AT siol.net>
5083
5084         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
5085           made the linker quiet
5086
5087 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
5088
5089         * src/pic16/gen.c (genPcall): fixed bug #1443644
5090         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
5091         which dumps before the function entry point a data byte which represents
5092         the number of the local variables used by the specified function, added
5093         'xinst' for initial support for Extended Instruction Support,
5094         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
5095         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
5096         port->fun_prefix anymore (may change later),
5097         (genFunction, genEndFunction): do not store/restore local registers for
5098         _main (this should take care the --main-return command line option in
5099         the future),
5100         (genOr): removed some legacy pic-port instructions,
5101         * src/pic16/genarith.c (genAddLit): re-enabled old code because
5102         performing operations with SFR's causes data to be written more than
5103         once to each SFR. Perhaps SFRs should be handled in special cases...
5104         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
5105         pcode.h
5106         * src/pic16/main.c (_process_pragma): stack bound checking did not take
5107         into account for stack starting position,
5108         (struct OPTIONS pic16_optionsTable): added command line argument
5109         --extended or -y for Extended Instruction Support,
5110         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
5111         (deassignLRs): *** perhaps the most important change, old 'for' code
5112         (commented out for reference), didn't account for some registers which
5113         were left marked 'not free' after a pointer operation. The change
5114         reduces register usage a lot in some cases
5115
5116 2006-03-04 Borut Razem <borut.razem AT siol.net>
5117
5118         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
5119           _clean
5120         * support/regression/tests/bug-524697.c: decreased array size for
5121           mcs51 to fit into the internal RAM
5122         * support/regression/Makefile.in: a little bit more verbose
5123
5124 2006-03-03 Borut Razem <borut.razem AT siol.net>
5125
5126         * support/regression/fwk/lib/testfwk.c,
5127           support/regression/fwk/include/testfwk.h: introduced function
5128           _prints(), nonrecursive _printn(), call _initEmu() from main()
5129         * support/regression/ports/gbz80/support.asm,
5130           support/regression/ports/ucz80/support.asm,
5131           support/regression/ports/z80/support.asm,
5132           support/regression/ports/ds390/support.c,
5133           support/regression/ports/hc08/support.c,
5134           support/regression/ports/host/support.c,
5135           support/regression/ports/mcs51/support.c,
5136           support/regression/ports/xa51/support.c: added empty _initEmu()
5137           function
5138         * support/regression/ports/pic16/gpsim.cmd,
5139           support/regression/ports/pic16/spec.mk,
5140           support/regression/ports/pic16/support.c,
5141           support/regression/Makefile.in: added pic16 regression test
5142
5143 2006-03-01 Raphael Neider <rneider AT web.de>
5144
5145         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
5146           genConstPointerGet): use safe way of generating MOVFF to cover
5147             literals as well as registers, fixes bug #1440527
5148         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
5149             dereference
5150           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
5151             more correctly, fixes bug #1232186
5152           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
5153         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
5154             gplink guess the correct processor in more cases, applied patch
5155             from Till Riedel attached to and fixing bug #1436552
5156
5157 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5158
5159         * support/regression/tests/array.c: added, contains check for #1434401
5160         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
5161
5162 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
5163
5164         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
5165         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
5166         * device/include/mcs51/c8051f326.h,
5167         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
5168         * device/include/mcs51/c8051f000.h,
5169         * device/include/mcs51/c8051f018.h,
5170         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
5171           PCON_IDLE,PCON_STOP and added sfr16 definitions
5172
5173 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
5174
5175         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
5176           genGetWord): fixed bug 1409955
5177
5178 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
5179
5180         * device/include/hc08/mc68hc908gp32.h,
5181         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
5182
5183 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
5184
5185         * src/SDCCast.c (constExprValue): return NULL if not a value
5186         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
5187         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
5188         * support/regression/tests/bitfields.c: enabled signed bitfield for all
5189
5190 2006-02-13 Borut Razem <borut.razem AT siol.net>
5191
5192         * src/regression/ptrarg.c: added, fails due to bug #1430967
5193         * src/regression/Makefile: ptrarg.c added, ...
5194
5195 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
5196
5197         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
5198         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
5199
5200 2006-02-11 Borut Razem <borut.razem AT siol.net>
5201
5202         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
5203           print "Processor: xxx" message to stdout only if --verbose
5204
5205 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
5206
5207         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
5208         * support/regression/tests/bug1426356.c: added
5209         * support/regression/tests/bitfields.c: removed 2 tests
5210
5211 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
5212
5213         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
5214         * device/include/mcs51/c8051f330.h,
5215         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
5216           PCON_IDLE,PCON_STOP and added sfr16 definitions
5217         * device/lib/_divsint.c,
5218         * device/lib/_divuint.c,
5219         * device/lib/_divulong.c,
5220         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
5221           register bank bug for small stackauto
5222
5223 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
5224
5225         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
5226
5227 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
5228
5229         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
5230         * all.dsp: corrected several bin paths
5231         * device/include/mcs51/c8051f120.h,
5232         * device/include/mcs51/c8051f300.h,
5233         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
5234           to PCON_IDLE,PCON_STOP
5235         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
5236         * device/lib/printf_large.c (output_float): fixed bug 1388703
5237         * support/regression/tests/bug1057979.c: added test for bug 1388703
5238
5239 2006-02-08 Raphael Neider <rneider AT web.de>
5240
5241         * src/pic/pcode.c (pciTRIS): fixed typo,
5242           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
5243           (LinkFlow): fixed handling of flows that end in a call,
5244           (ReuseReg): perform safety check earlier
5245         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
5246             to work with flows at the beginning of a pBlock,
5247             fixes #1426557 (Symbol not previously defined),
5248           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
5249             usage information
5250           (RemoveUnusedRegisters): update register usage info
5251         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
5252             created, reuse existing ones instead
5253         * src/pic/gen.c (genPcall): fixed #1424719
5254
5255 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
5256
5257         * link/z80/lkmain.c,
5258         * link/z80/lklex.c,
5259         * link/z80/lkdata.c,
5260         * link/z80/aslink.h: fixed build on current cygwin:
5261         replaced getline() by lk_getline()
5262
5263 2006-02-01 Borut Razem <borut.razem AT siol.net>
5264
5265         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
5266           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
5267           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
5268           src/regression/bool1.c, src/regression/bool2.c,
5269           src/regression/bool3.c, src/regression/call1.c,
5270           src/regression/compare.c, src/regression/compare10.c,
5271           src/regression/compare2.c, src/regression/compare3.c,
5272           src/regression/compare4.c, src/regression/compare5.c,
5273           src/regression/compare6.c, src/regression/compare7.c,
5274           src/regression/compare8.c, src/regression/compare9.c,
5275           src/regression/configword.c, src/regression/for.c,
5276           src/regression/inline.c, src/regression/mult1.c,
5277           src/regression/nestfor.c, src/regression/or1.c,
5278           src/regression/pointer1.c, src/regression/ptrfunc.c,
5279           src/regression/rotate1.c, src/regression/rotate2.c,
5280           src/regression/rotate3.c, src/regression/rotate4.c,
5281           src/regression/rotate5.c, src/regression/rotate6.c,
5282           src/regression/rotate7.c, src/regression/string1.c,
5283           src/regression/struct1.c, src/regression/sub.c,
5284           src/regression/sub2.c, src/regression/switch1.c,
5285           src/regression/while.c, src/regression/xor.c,
5286           src/regression/create_stc, src/regression/simulate,
5287           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
5288           regression tests
5289         * src/regression/gpsim_assert.h: added
5290
5291 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
5292
5293         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
5294         ((void (code *) (void)) 0) ();
5295         * as/hc08/aslex.c,
5296         * as/hc08/aslink.h,
5297         * as/hc08/asm.h,
5298         * as/hc08/asmain.c,
5299         * as/hc08/lkdata.c,
5300         * as/hc08/lklex.c,
5301         * as/hc08/lkmain.c,
5302         * as/mcs51/aslex.c,
5303         * as/mcs51/aslink.h,
5304         * as/mcs51/asm.h,
5305         * as/mcs51/asmain.c,
5306         * as/mcs51/lkdata.c,
5307         * as/mcs51/lklex.c,
5308         * as/mcs51/lkmain.c,
5309         * as/z80/aslex.c,
5310         * as/z80/asm.h,
5311         * as/z80/asmain.c: fixed build on current cygwin:
5312         replaced getline() by as_getline()
5313
5314 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
5315
5316         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
5317         declarator in the symbol chain
5318         * src/SDCCsymt.h,
5319         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
5320         parameter list for function pointers
5321         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
5322         * support/regression/tests/bug-716242.c: added
5323
5324 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
5325
5326         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
5327         offset if possible
5328         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
5329
5330 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
5331
5332         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
5333         inifinitely recurseable, added static
5334         * support/regression/tests/bug-1408066.c: added
5335
5336 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
5337
5338         * src/SDCCicode.h,
5339         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
5340         renamed, added possibility to create "postLoopLbl"-labels
5341         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
5342         newiTempLoopHeaderLabel
5343         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
5344         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
5345         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
5346         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
5347         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
5348         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
5349         (basicInduction): fixed bug #136564, made static,
5350         (loopInduction): changed parameter of basicInduction, made static,
5351         (addPostLoopBlock): added
5352         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
5353         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
5354         findLoopEndSeq
5355         * support/regression/tests/bug-136564.c: added
5356         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
5357         --std-sdcc99 to LIBSDCCFLAGS
5358
5359 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
5360
5361         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
5362         while loop
5363         * support/regression/tests/bug-1406131.c: added
5364
5365 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
5366
5367         * src/SDCCast.c (decorateType): fix promotion of unary minus
5368         * src/SDCCsymt.c (computeType): beautified
5369         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
5370         (valUnaryPM, valComplement): fix sign and promotion,
5371         (valNot): ANSI: result type is int (SDCC: unsigned char)
5372         * support/regression/tests/uminus.c: speedup by removing superflous
5373         test case 'int'
5374         * support/regression/tests/onebyte.c: added promotion and signedness
5375         tests for unary minus
5376         * support/regressions/tests/bug-477927.c: disable warning about
5377         uninitialized variables
5378         * support/regression/tests/not.c: added
5379
5380 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
5381
5382         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
5383         * src/mcs51/gen.c (gen51Code): show final register usage after
5384         fillGaps in asm with --i-code-in-asm
5385         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
5386         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
5387         incUsed, rliveClear, adjustIChain): made static,
5388         (setFromRange): excluded because it's unused,
5389         (findPrevUseSym, markWholeLoop): added,
5390         (findPrevUse): rewritten; fixes bug 895992; now a complete search
5391         through all branches of predecessors enables sdcc to emit the warning
5392         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
5393         (rlivePoint): made static, added parameter emitWarnings which is only
5394         true during the first run out of two,
5395         (findRecursiveSucc, findRecursivePred): removed,
5396         (computeLiveRanges): made static, added parameter emitWarnings,
5397         (dumpIcRlive): added for debugging only
5398         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
5399         removed prototype of setFromRange()
5400         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
5401         in call of computeLiveRanges()
5402         * support/regression/tests/bug-895992.c: added
5403         * support/regression/tests/bug-971834.c: added
5404         * support/valdiag/tests/bug-895992.c: added
5405         * support/valdiag/tests/bug-971834.c: added
5406
5407 2005-12-18 Raphael Neider <rneider AT web.de>
5408
5409         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
5410           (genUnpackBits): improved code for direct operands,
5411           (genPackBits): improved code for literal assignment to bitfields
5412             and for direct destination operands (no FSR indirection),
5413             prevented redundant AND, fixes #1362800,
5414           (AccLsh): added parameter to disable masking of the result
5415         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
5416           skip instructions with side-effects (like incfsz),
5417           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
5418         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
5419         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
5420           fixes #1375263
5421
5422 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
5423
5424         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
5425         volatile variables as spill location
5426
5427 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
5428
5429         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
5430         replacing literals
5431         * support/regression/tests/bug-1376320.c: added
5432
5433 2005-12-08 Raphael Neider <rneider AT web.de>
5434
5435         * src/pic/device.c: renamed is_shared to pic14_is_shared
5436         * src/pic/gen.c (genIfx): re-enabled handling of sbits
5437         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
5438           (is_valid_identifier): added for above workaround
5439
5440 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
5441
5442         * device/lib/Makefile.in: fixed to enable port-specific-objects
5443         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
5444           char, thanks Hubert Sack
5445         * doc/sdccman.lyx: documented --xstack-loc,
5446           elaborated a bit more on interrupts and pitfalls,
5447           removed "setjmp/longjmp unsupported",
5448           documented some unsupported C99 features
5449         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
5450         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
5451           if, thanks Hubert Sack
5452         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
5453         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
5454           make make_library
5455         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
5456           regression tests can report resource usage (rfe 700441)
5457         * support/regression/collate-results.py: report resource usage
5458         * support/regression/ports/ds390/spec.mk,
5459         * support/regression/ports/hc08/spec.mk,
5460         * support/regression/ports/mcs51/spec.mk,
5461         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
5462         * support/regression/ports/ds390/uCsim.cmd,
5463         * support/regression/ports/hc08/uCsim.cmd,
5464         * support/regression/ports/mcs51/uCsim.cmd,
5465         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
5466         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
5467           library, use the default one
5468         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
5469           building the library
5470
5471 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
5472
5473         * config.dsp: added dependency on .version and configure_vc.awk
5474         * device/include/setjmp.h: updated for --stack-auto and --xstack
5475         * device/include/mcs51/at89c51snd1c.h: corrected line endings
5476         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
5477         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
5478         * device/lib/libsdcc.lib: added _setjmp
5479         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
5480           (decorateType): fixed bug 1372851,
5481           (optimizeGetHbit): fixed warning
5482         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
5483           array initialisation
5484         * support/regression/tests/bug1057979.c: added test for bug 1358192
5485         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
5486
5487 2005-12-03 Borut Razem <borut.razem AT siol.net>
5488
5489         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
5490           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
5491
5492 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
5493
5494         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
5495         createIval): implement symbol independant "flexible array member",
5496         (createIvalCharPtr): implemented flexible array initialisation with a
5497         string
5498         * src/SDCCsymt.c (copyStruct): removed,
5499         (getSize): fixed misleading comment,
5500         (getAllocSize): removed, the additional allocation size is now in
5501         sym->flexArrayLength,
5502         (checkStructFlexArray): new, syntax checks for flexible array members,
5503         (compStructSize): added syntax checks for "flexible array members"
5504         (copyStruct): removed,
5505         (copyLinkChain): removed inefficient fix for bug 770487
5506         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
5507         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
5508         symbol->flexArrayLength
5509         * src/SDCCerr.c,
5510         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
5511         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
5512         * support/regression/tests/structflexarray.c: added
5513         * support/valdiag/tests/structflexiblearray.c: added
5514
5515 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
5516
5517         * src/SDCCast.c (decorateType): fixed bug 1368489
5518         * support/Util/SDCCerr.c,
5519         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
5520
5521 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5522
5523         * device/include/mcs51/at89c51snd1c.h: added file submitted by
5524           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
5525
5526 2005-11-27 Borut Razem <borut.razem AT siol.net>
5527
5528         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
5529           support/cpp2/mkdeps.h: added command line option
5530           -obj-ext=<extension> to SDCPP to define object file externion, used
5531           for generation of make dependencies (-M)
5532         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
5533
5534 2005-11-26 Borut Razem <borut.razem AT siol.net>
5535
5536         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
5537           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
5538           added pic and pic16 libraries
5539
5540 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5541
5542         * device/include/float.h: Corrected typo in prototype of __fsgt
5543
5544 2005-11-25 Borut Razem <borut.razem AT siol.net>
5545
5546         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
5547           added creation of model-mcs51-stack-auto libraries
5548
5549 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
5550
5551         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
5552         and fields-list too
5553         * src/SDCCast.c (createIvalArray): removed obsolete comment
5554
5555 2005-11-24 Borut Razem <borut.razem AT siol.net>
5556
5557         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
5558           added missing device/lib/mcs51/crt*.asm sources
5559
5560 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
5561
5562         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
5563
5564 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
5565
5566         * device/lib/_fs2schar.c,
5567         * device/lib/_fs2sint.c,
5568         * device/lib/_fs2slong.c: optimized inline asm
5569
5570 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5571
5572         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
5573           Better handling of floats between -1.0 and 0.0.
5574
5575 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5576
5577         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
5578           (the missing "if"s prohibited removal of redundant labels)
5579
5580 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5581
5582         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
5583           Properly convert floats between -1.0 and 0.0 to long, int, and char
5584           types (max integer value of negative floats tends to zero).
5585         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
5586           Removed changes made so to work properly with floats between
5587           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
5588           and _fs2char.c
5589
5590 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
5591
5592         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
5593         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
5594         (genCast) cosmetic change
5595         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
5596         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
5597         from mcs51
5598         * support/regression/tests/bitfields (testSignedBitfields): added
5599
5600 2005-11-18 Borut Razem <borut.razem AT siol.net>
5601
5602         * sdcc/device/lib/Makefile.in: remove all unnecessary files
5603         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
5604           introduced SILENT option to make building of pic16 libraries less
5605
5606 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5607
5608         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
5609           Now they work properly with floats between -1.0 and 0.0
5610         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
5611
5612 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
5613
5614         * src/SDCCicode.c (printOperand): added missing else
5615
5616 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
5617
5618         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
5619         reformatted for better readability
5620         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
5621         signed bitfields
5622
5623 2005-11-17 Borut Razem <borut.razem AT siol.net>
5624
5625         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
5626           introduced SILENT option to make building of pic16 libraries less
5627           verbose - used for nightly snapshot build
5628         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
5629           available on Win32 platforms.
5630         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
5631           medium, large, pic and pic16
5632
5633 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5634
5635         * device/lib/printf_large.c: Temporary patch for bug 1358192:
5636           printf("%f"...) sets fraction to zero.
5637
5638 2005-11-16 Raphael Neider <rneider AT web.de>
5639
5640         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
5641           fixes #1357221
5642         * src/pic/gen.c (genIfx): implemented for CARRY bit
5643         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
5644           to generic pointers, fixes #1357332,
5645           (pic16_movLit2f): NEW,
5646           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
5647
5648 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
5649
5650         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
5651
5652 2005-11-11 Raphael Neider <rneider AT web.de>
5653
5654         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
5655         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
5656           compute pointer's type from operand,
5657           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
5658           improved single bit reads, fixes bug #1353379
5659
5660 2005-11-09 Borut Razem <borut.razem AT siol.net>
5661
5662         * support/scripts/sdcc.nsi: added lib/pic to the package
5663
5664 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
5665
5666         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
5667
5668 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
5669
5670         * support/regression/tests/bug1348008.c: added
5671         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
5672         * support/regression/tests/bug1337835.c: updated comment
5673
5674 2005-11-06 Borut Razem <borut.razem AT siol.net>
5675
5676         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
5677           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
5678           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
5679           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
5680           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
5681           dynamic construction of cl_error_class and derivates - 2.nd try
5682
5683 2005-11-05 Borut Razem <borut.razem AT siol.net>
5684
5685         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
5686           bug, which caused Bus Errors on sparc solaris
5687
5688 2005-11-04 Borut Razem <borut.razem AT siol.net>
5689
5690         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
5691           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
5692           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
5693           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
5694           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
5695           and derivates to resolve the initialization problem on OSX
5696
5697 2005-11-02 Borut Razem <borut.razem AT siol.net>
5698
5699         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
5700           corrected typo - #include <winsock2.h>
5701
5702 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
5703
5704         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
5705           (_asxxxx_mapping): added org directive for future enhancements
5706
5707 2005-11-01 Borut Razem <borut.razem AT siol.net>
5708
5709         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
5710           enabled sockets on WIN32
5711         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
5712
5713 2005-10-31 Borut Razem <borut.razem AT siol.net>
5714
5715         * support/regression/generate-cases.py: escape backslashes in {testcase}:
5716           WIN32 backslash path delimiters should be escaped when used in C strings
5717         * support/regression/tests/bitfields.c: exclude failing assertions for
5718           __CYGWIN32__ and __MINGW32__ hosts
5719
5720 2005-10-30 Borut Razem <borut.razem AT siol.net>
5721
5722         * src/SDCCutil.c: corrected double comparison typo
5723
5724 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
5725
5726         * device/lib/medium/Makefile: added for new memory model medium
5727         * device/include/asm/mcs51/features.h: updated for medium/pdata
5728         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
5729           added Multiply & Accumulate sbit's and MAC0_PAGE define
5730         * device/include/mcs51/c8051f300.h: added sfr16 definitions
5731         * device/include/mcs51/c8051f310.h: added sfr16 definitions
5732         * device/lib/_mullong.c: update for medium model
5733         * device/lib/incl.mk: added medium model
5734         * doc/sdccman.lyx: documented medium model
5735         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
5736         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
5737         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
5738         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
5739           (allocParms): set SCLS and OCLS to pdata for medium model
5740         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
5741           for pdata,
5742           (powof2): return <0 if not power of 2
5743         * src/avr/gen.c (genBitWise): use updated powof2
5744         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
5745           (shiftR2Left2Result): small optimization in setup, save acc when storing,
5746           (shiftLLeftOrResult): use B if necessary
5747         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
5748         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
5749         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
5750         * support/regression/Makefile.in: added test-mcs51-medium
5751         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
5752
5753 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
5754
5755         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
5756         specifier unsigned
5757         * device/lib/time.c (mktime): fixed bug 1334315
5758
5759 2005-10-28 Raphael Neider <rneider AT web.de>
5760
5761         * device/include/pic/p16f_common.inc: added common declarations
5762         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
5763
5764 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
5765
5766         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
5767           (aopPutUsesAcc): added to predict accumulator use,
5768           (assignResultValue): save acc if necessary,
5769           (genMinusDec): store result if indirectly addressed,
5770           (genDivOneByte):  save acc if necessary,
5771           (movLeft2Result): bugfix if left already in acc,
5772           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
5773             attention to accumulator use (esp. pdata),
5774           (genReceive): receive pdata correctly
5775         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
5776         * src/SDCCicode.h: added isOperandInPagedSpace prototype
5777
5778 2005-10-27 Raphael Neider <rneider AT web.de>
5779
5780         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
5781
5782 2005-10-27 Raphael Neider <rneider AT web.de>
5783
5784         * .version: changed version to 2.5.4
5785         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
5786         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
5787           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
5788             arithmetics support routines
5789         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
5790         * device/lib/Makefile.in: also create installdir for pic
5791
5792         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
5793           pic14 port as well
5794         * src/pic/device.c (dump_sfr): rewritten to delegate register
5795           placement to the linker (use `extern sym' rather than sym EQU addr),
5796           (validAddress): fixed to check last specified address
5797         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
5798           (popGetLit): truncate literal value to 8 bit,
5799           (popGet): moved assert to more appropriate place
5800           (popGetExternal): create pCode operand from and mark the according
5801             symbol as being `extern'
5802           (popGetAddr): added sanity check on immediate's offset, provide
5803             GPOINTER tag on demand
5804           (aopPut): fixed for immediates,
5805           (mov2w_op): move operand's address or contents to WREG (depending on
5806             operand type), safer variant of mov2w,
5807           (movwf,call_libraryfunc): NEW, handy abbreviations,
5808           (get_argument_pcop,get_return_val_pcop,pass_argument,
5809           get_returnvalue): interface for accessing function parameters and
5810             return values,
5811           (assignResultValuei,genRet): use new parameter/return value interface
5812           (pic14_getDataSize): back to old version handling generic pointers,
5813           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
5814             provided implementation and/or fixed old one,
5815           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
5816             calls, removed legacy 8051 reference code
5817           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
5818           (loadSignToC): NEW, move the operands sign bit to CARRY,
5819           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
5820             genRightShiftSigned, accepts negative shift counts,
5821           (setup_fsr): load FSR and adjust IRP (indirect memory access),
5822           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
5823             generic pointers, __data pointers and __code pointers,
5824           (genUnpackBits,genPackBits): rewritten to work with generic pointers
5825             and signed bitfields, limit bitfields to 8 bit,
5826           (genDataPointerGet): fixed number of bytes read,
5827           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
5828           (genPointerGet,genPointerSet): fixed handling of __code pointers,
5829             pointers to constant data are no longer assumed to point to __code
5830             space, removed invalid pointer types,
5831           (bitpatternFromVal): retrieve the PICs representation of an integer
5832             or float literal,
5833           (genDataPointerSet): fixed assigning to po_immediate operands,
5834           (genGenPointerSet): implemented as library call,
5835           (genIfx): fixed incorrect condition,
5836           (genAddrOf): limit generic pointers' addresses to 2 bytes,
5837             provide GPOINTER tag according to destination's storage class,
5838           (genCast): added code to handle casting to generic pointers, added
5839             sign-/zero extension of the result
5840           (aop_isLitLike,op_isLitLike): fixed handling of immediates
5841         * src/pic/gen.h: added macros to access IRP bit in STATUS register
5842         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
5843           extend the result
5844         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
5845           address/register resides in the shared banks
5846           (emitSymbolToFile): improved to handle global and `pinned' symbols,
5847             put all variables into separate sections (have the linker arrange
5848             them)
5849           (picglue): put init code and interrupt handlers in separate sections
5850         * src/pic/main.c: added port specific options table, modified to PORT
5851           structure to make GPOINTERs 3 byte, added pic14_options
5852           (_pic14_do_link): private linking routine (update paths to libraries,
5853             add libsdcc.lib by default)
5854         * src/pic/main.h: declare pic14_options
5855         * src/pic/pcode.c: fixed instructions i/o relations,
5856           (RegCond): reverted to correct version,
5857           (newpCodeOpLit): truncate literals to 8 bit,
5858           (genericPrint): added debug output,
5859           (getRegFromInstruction): fixed for various operand types, simplified
5860           (BuildFlow): fixed broken handling of isntructions with labels
5861           (LinkFlow): start at last instruction in flow (skip trailing comments),
5862             pass the flow on to the next instruction after CALL
5863           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
5864           (insertPCodeInstruction): fixed inserting after a skip instruction,
5865           (DoBankSelect): fixed for labeled instructions
5866           (OptimizepBlock): honor --nopeep switch
5867           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
5868         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
5869         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
5870           (pCodeOptime2pCodes): allow disabling this optimization via
5871             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
5872             but is still buggy), started implementation of a dataflow based
5873             pCode optimization (CSE + dead code elimination)
5874           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
5875         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
5876           names are independant of the stack location and therefore portable across
5877           devices
5878
5879 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
5880
5881         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
5882           (selectSpil): fixed bug 1337835 by not spilling bit variables
5883         * support/regression/tests/bug1337835.c: added test for this bug
5884         * src/mcs51/peeph.def: restart after rule 3.c,
5885           addded rules 263.x to optimize loading constants
5886
5887 2005-10-26 Raphael Neider <rneider AT web.de>
5888
5889         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
5890         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
5891           (genAssign): emit warning when casting literals to generic pointer
5892             type, also applies when taking the address of a fixed variable,
5893           (genCast): improved casting to generic pointers
5894         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
5895           extern variables, added verbose error message
5896         * device/include/pic16/{string.h,errno.h}: added #pragma library c
5897
5898 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
5899
5900         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
5901         carry must be complemented too
5902         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
5903         could be emitted by genMinus
5904         * src/SDCCval.c (constVal): fixed bug 1305065
5905
5906 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
5907
5908         * src/SDCCast.c (addCast): added promotion for bit variables
5909         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
5910         promotion casts + optimisation
5911         (optimizeGetWord): fix warning 'i' might be used uninitialized
5912         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
5913         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
5914
5915 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
5916
5917         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
5918         all chars are promoted to int; promotion should be handled in SDCCast.c
5919
5920 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5921
5922         * device/lib/_strcmp.c: Fixed bug 1326457
5923
5924 2005-10-11 Raphael Neider <rneider AT web.de>
5925
5926         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
5927         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
5928
5929 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
5930
5931         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
5932         * support/regression/tests/sfr16.c: added test for the sfr32 bug
5933
5934 2005-10-04 Raphael Neider <rneider AT web.de>
5935
5936         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
5937           device/lib/pic16/pics.all: added pic18f1320
5938         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
5939
5940 2005-09-30 Raphael Neider <rneider AT web.de>
5941
5942         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
5943         * src/pic16/devices.inc: NEW, provides device descriptions
5944         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
5945
5946 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
5947
5948         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
5949           GETHBIT
5950
5951 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
5952
5953         * doc/sdccman.lyx: updated Highest Order Bit documentation,
5954           documented Any Order Bit, Higher Order Byte and Higher Order Word
5955         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
5956         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
5957           (optimizeGetAbit): new, to get any bit, not only the high bit,
5958           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
5959           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
5960           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
5961           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
5962             RIGHT_OP: also try GETBYTE, GETWORD optimization,
5963             GETABIT, GETBYTE, GETWORD: decorate them,
5964           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
5965           (ast_print): added GETABIT, GETBYTE, GETWORD
5966         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
5967         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
5968           (geniCodeBinary): new generic binary icode,
5969           (ast2iCode): added GETABIT, GETBYTE, GETWORD
5970         * src/port.h: updated comment for PORT.hasExtBitOp
5971         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
5972           (genGetByte): new, to get a single byte,
5973           (genGetWord): new, to get a word from a long,
5974           (gen51Code): added GETABIT, GETBYTE, GETWORD
5975         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
5976
5977 2005-09-23 Raphael Neider <rneider AT web.de>
5978
5979         * configure.in, configure: have device/lib/pic configured
5980         * device/lib/Makefile.in: added model-pic14
5981         * device/lib/clean.mk: added pic/ to clean rule
5982         * device/lib/pic: added rudimentary pic14 library providing support
5983           functions for multiplication/division/generic pointer access
5984         * src/SDCCopt.c (convilong): mark support functions as extern
5985           for pic14 port as well
5986         * src/pic/gen.c (genMult): added assertions,
5987           (genpic14Code): emit warning on unhandled iCodes
5988         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
5989         * src/pic/pcode.c (pCodeOpCopy),
5990         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
5991           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
5992           SFR_REGISTER}), made safe for future extensions
5993         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
5994           instructions even if preceeded by SKIP instructions (also remove
5995           them); removed unused code
5996         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
5997           prevents leaving parts of the structure uninitialized after copying
5998
5999 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
6000
6001         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
6002           ago by me
6003         * support/regression/tests/addsub.c: added test for the bug
6004
6005 2005-09-21 Raphael Neider <rneider AT web.de>
6006
6007         * device/include/pic16/pic18f1220.h,
6008           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
6009         * device/lib/pic16/Makefile.rules: added missing opening paren
6010         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
6011           are provided in genutils.c,
6012           (genUminusFloat,genUminus,genCmpEq): added asserts on different
6013           operand/result sizes,
6014           (genCmp): assert on NULL pointers first, then check deref'ed values
6015         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
6016           result size
6017
6018 2005-09-18 Raphael Neider <rneider AT web.de>
6019
6020         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
6021           as these are now unused,
6022           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
6023         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
6024           local, avoids uninitialized pointer dereference on r->name
6025         * src/pic16/ralloc.c (newReg): fixed indentation
6026
6027 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
6028
6029         * src/SDCCval.c (constVal): fixed bug 730366
6030         * support/Util/SDCCerr.c,
6031         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
6032
6033 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
6034
6035         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
6036
6037 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
6038
6039         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
6040
6041 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
6042
6043         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
6044           (hex2dec): made hex_digit unsigned char, removed ascii dependance
6045         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
6046           (hex2dec): made hex_digit unsigned char, removed ascii dependance
6047         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
6048         * packihx/packihx.c (hexDigit): made c unsigned char
6049         * as/mcs51/lklibr.c (fndsym),
6050         * link/z80/lkgb.c (gb),
6051         * link/z80/lklibr.c (fndsym),
6052         * link/z80/lkrloc.c (relr),
6053         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
6054         * src/SDCC.lex (checkCurrFile, process_pragma),
6055         * src/SDCCglue.c (spacesToUnderscores),
6056         * src/SDCCmain.c (setParseWithComma, processFile),
6057         * src/asm.c (tvsprintf, printCLine),
6058         * src/avr/gen.c (emitcode, aopPut),
6059         * src/ds390/gen.c (emitcode),
6060         * src/hc08/gen.c (emitcode, emitinline),
6061         * src/mcs51/gen.c (emitcode, genInline),
6062         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
6063           tokenizeLineNode),
6064         * src/pic/ralloc.c (debugLog),
6065         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
6066           tokenizeLineNode),
6067         * src/pic16/ralloc.c (debugLog),
6068         * src/z80/main.c (_process_pragma):
6069            made all ctype.h function calls safe
6070         * src/SDCCopt.c: include math.h for fabs
6071         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
6072           and used them throughout the code to make ctype.h function calls safe
6073         * src/ds390/main.c (asmLineNodeFromLineNode),
6074         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
6075         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
6076            unsigned char*
6077         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
6078           (newpCodeAsmDir): made ctype.h function calls safe
6079         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
6080           pic16_emitcode):  made lbp unsigned char*
6081         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
6082           (pic16_newpCodeAsmDir): made ctype.h function calls safe
6083         * src/xa51/gen.c (emitcode),
6084         * src/z80/gen.c (_emit2): made lbp unsigned char*
6085         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
6086            char*
6087
6088 2005-09-05 Raphael Neider <rneider AT web.de>
6089
6090         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
6091           access bank splitpoint
6092
6093 2005-09-05 Raphael Neider <rneider AT web.de>
6094
6095         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
6096
6097 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
6098
6099         * .version: changed to version 2.5.3
6100         * doc/sdccman.lyx: changed version to 2.5.3,
6101           documented --codeseg and --constseg and pragma codeseg and constseg,
6102           documented bit parameters (reentrant) and bit returning
6103         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
6104            currFunc->recvSize, but is this ok for all ports?
6105           (ast2iCode): result of ~ on unsigned char must be cast to int for
6106            bool to work
6107         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
6108           function pointers in bit space
6109         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
6110           (processFuncArgs): call port.reg_parm() with reentrancy info
6111         * src/port.h,
6112         * src/avr/main.c,
6113         * src/ds390/main.c,
6114         * src/hc08/main.c,
6115         * src/pic/main.c,
6116         * src/pic16/main.c,
6117         * src/xa51/main.c,
6118         * src/z80/main.c: port.reg_parm prototype extended with
6119           "bool reentrant" parameter
6120         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
6121           options.stackAuto for allocating bit register parameters
6122         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
6123           (genSend): set BitBankUsed if it is,
6124           (selectRegBank): factored out of genCall for use in genPcall,
6125           (genCall): removed redundant dtype assignmen, use selectRegBank,
6126           (genPcall): handle returning in Carry properly, save in F0 if needed,
6127           (genReceive): handle bit register parameters
6128         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
6129           (mcs51_assignRegisters): enable bit registers for all reentrant
6130            functions and don't set BitBankUsed unconditionally
6131         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
6132         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
6133         * support/regression/tests/funptrs.c: added tests for BOOL and for return
6134
6135 2005-08-27 Borut Razem <borut.razem AT siol.net>
6136
6137         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
6138         ppc-osx (Darwin) does not support -u option. It seems that it is
6139         supported only on Linux - GNU cp
6140
6141 2005-08-25 Borut Razem <borut.razem AT siol.net>
6142
6143         * sim/ucsim/gui.src/serio.src/Makefile.in,
6144           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
6145           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
6146           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
6147           install and strip, since the strip at /usr/ccs/bin should be used
6148           on solaris
6149
6150 2005-08-24 Borut Razem <borut.razem AT siol.net>
6151
6152         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
6153
6154 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
6155
6156         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
6157         ffffffffu
6158
6159 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
6160
6161         * as/mcs51/aslink.h: completed lkrloc.c prototypes
6162         * as/mcs51/lkmain.c (link_main): fixed warning
6163         * device/include/stdbool.h: ds390 has no advanced bit support yet
6164         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
6165         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
6166         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
6167           and updated their macros
6168         * src/SDCCval.c (constVal): updated comment for renamed b_long
6169
6170 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
6171
6172         * as/mcs51/asdata.c: changed ctype['['] to BINOP
6173         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
6174           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
6175           (oprio): set priority for '['
6176         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
6177            and adb_24_bit
6178         * as/mcs51/asm.h: added defines R_BIT and S_BIT
6179         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
6180         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
6181         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
6182           added overlayable BIT_BANK area
6183         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
6184           (summary2): explain 'T' in legenda
6185         * as/mcs51/lkrloc.c: replaced old K&R style,
6186           (relr): added R_BIT processing,
6187           (errmsg): added "Bit-addressable relocation error",
6188           (adb_bit): added for converting from byte- to bit-addressable space,
6189           (adb_24_bit): added for converting from byte- to bit-addressable space
6190         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
6191            used in reentrant functions now even as return value
6192         * device/lib/_gptrput.c (_gptrput): removed obsolete code
6193         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
6194           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
6195         * src/SDCCglobl.h: added indicator BitBankUsed
6196         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
6197            the bit registers b0-b7
6198         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
6199           (geniCodeCast): fixed bug 1263853,
6200           (geniCodeLogicAndOr): put result in bool or char,
6201           (geniCodeReceive): added parameter func for accessing the return type,
6202           (geniCodeFunctionBody): pass func to geniCodeReceive
6203         * src/SDCCmain.c: added indicator BitBankUsed
6204         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
6205         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
6206           (checkSClass): don't put automatic bool/bit on stack,
6207           (checkFunction): removed check on function cannot return bit
6208         * src/SDCCsymt.h: added newBoolLink prototype
6209         * src/mcs51/gen.c (rb1regs): added bit registers,
6210           (movc): created for assigning to carry,
6211           (pushReg, popReg): created for pushing registers,
6212           (sameRegs): check both AOP_REG and AOP_CRY types,
6213           (aopOp): handle bit registers,
6214           (aopPut): optimization no self-assign,
6215           (saveRegisters): push reg->base (bits) only once for bit registers,
6216            and use pushReg,
6217           (unsaveRegisters): pop reg->base only once and use popReg,
6218           (assignResultValue): added parameter func and return in carry for bits,
6219           (genIpush): optimization no reload in A if not changed,
6220           (genSend): bit parameters in reentrant functions are passed in bit
6221            registers by first assigning to bits in B, then save registers and
6222            copy B to bits,
6223           (genCall): handle returning in Carry properly, save it in F0 if needed,
6224           (genPcall): updated assignResultValue call, this is not safe yet for bit
6225            returning function !!!
6226           (genFunction): don't generate equ's for bit registers and use pushReg,
6227           (genEndFunction): take care of bit returning functions and use popReg,
6228           (genRet): return bit in Carry,
6229           (genIfx): optimize bit registers and other directly addressable bits,
6230           (genReceive): updated assignResultValue call
6231         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
6232           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
6233            registers when using stack-auto
6234         * src/mcs51/ralloc.c (_G): added allBitregs,
6235           (regs8051): added the bit registers,
6236           (createStackSpil): use macro IS_BIT,
6237           (getRegBit): added to allocate a bit register, else spill,
6238           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
6239           (updateRegUsage): factored out to ease stepping while debugging,
6240           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
6241            also allocate bit registers,
6242           (fillGaps): handle bit registers,
6243           (findAllBitregs): added to create bit vector with all bit registers,
6244           (mcs51_allBitregs): returns this bit vector,
6245           (mcs51_assignRegisters): when using stack-auto use bit registers for
6246            passing parameters and creating local variables
6247         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
6248
6249 2005-08-22 Borut Razem <borut.razem AT siol.net>
6250
6251         * device/lib/Makefile.in: replaced find option -or with -o
6252           to make it run on solaris
6253
6254 2005-08-22 Raphael Neider <rneider AT web.de>
6255
6256         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
6257           fixes #1265442 (crash on Solaris)
6258
6259 2005-08-20 Borut Razem <borut.razem AT siol.net>
6260
6261         * configure, configure.in: added tests for libsocket and libnsl libraries,
6262           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
6263           from support/regression/Makefile.in
6264         * support/regression/Makefile.in: added
6265         * device/lib/pic16/Makefile.common.in: force make to use bash shell
6266         * sim/ucsim/libtool: regenerated on sparc-solaris
6267         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
6268           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
6269           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
6270           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
6271           sparc-solaris, which doesn't use GNU ld linker
6272         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
6273         * as/Makefile: find on sparc-solaris does not support -maxdepth option
6274
6275 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
6276
6277         * src/mcs51/peeph.def: updated comments
6278
6279 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6280
6281         * device/lib/_gptrget.c,
6282         * device/lib/_gptrput.c: slightly shorter
6283         * doc/sdccman.lyx: incremented version
6284         * src/mcs51/peeph.def: moved peephole comments to the line of first
6285           change to better keep line correlation, reanimated 186.e
6286         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
6287
6288 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
6289
6290         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
6291           David Saxton with quotes around file name.
6292
6293 2005-08-15 Borut Razem <borut.razem AT siol.net>
6294
6295         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
6296           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
6297           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
6298           make tests run on x86_64 platform
6299
6300 2005-08-13 Raphael Neider <rneider AT web.de>
6301
6302         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
6303           as it might be executed DURING a build (parallel make is wonderful)
6304
6305 2005-08-13 Raphael Neider <rneider AT web.de>
6306
6307         * device/lib/Makefile.in (port-specific-objects-pic16):
6308           revert to cp $(PORT)/bin/*.* $(PORTDIR)
6309         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
6310           dependency
6311         * device/lib/pic16/Makefile.rules: build subdirs before creating
6312           the library, removed builddir rule, create $(builddir) early in
6313           recurse rule, use empty recurse rule for leaf directories
6314         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
6315           mkdir errors (race condition), removed duplicate suffix "hex"
6316           from clean rules
6317         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
6318         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
6319           prevents mkdir -p from aborting on Alpha
6320
6321 2005-08-12 Raphael Neider <rneider AT web.de>
6322
6323         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
6324           db-statements in order to allow for arrays of pointers in code
6325           sections to be placed without interspersed 0-padding, fixes
6326           bug #1256215
6327         * (emitStatistics): fixed division by zero for pic18f1220
6328         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
6329           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
6330         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
6331         * (pic16_pCodeConstString): keep track of already emitted string
6332           literals to prevent "duplicate definitions of symbol _str_NR"
6333         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
6334           debug message
6335         * device/lib/Makefile.in: ignore failing PIC16 library builds
6336         * device/lib/pic16/Makefile: do not build if gputils are missing
6337         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
6338
6339 2005-08-10 Raphael Neider <rneider AT web.de>
6340
6341         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
6342           my last commit)
6343
6344 2005-08-10 Raphael Neider <rneider AT web.de>
6345
6346         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
6347           Rokas' patch to add the new fixed point type "__fixed16x16"
6348         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
6349           functions for __fixed16x16 arithmetics
6350         * device/lib/pic16: reimplemented the build system to support
6351           a separate build directory, better handling of libio (create
6352           the library in a separate subdir for each architecture) and
6353           easier configuration (centralized in Makefile.common)
6354
6355 2005-08-07 Raphael Neider <rneider AT web.de>
6356
6357         * src/pic16/gen.c (genrshTwo): fixed sign extension
6358         * src/pic16/device.c: added pic18f2320, 4220 and 4320
6359         * device/include/pic16/pic18f2220.h: changed some bit definitions,
6360           added T0CONbits
6361         * device/include/pic16/pic18f4220.h: NEW, header for
6362           pic18f4220 and pic18f4320
6363         * device/include/pic16/pic18fregs.h: added new devices,
6364           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
6365         * device/include/pic16/signal.h: resolved name clashes
6366           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
6367           to also allow testing for interrupt enable bits, added
6368           comments on how to use the macros
6369         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
6370         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
6371           register definitions for the devices
6372         * device/lib/pic16/pics.all: added new devices
6373         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
6374           allocated memory
6375         * device/lib/pic16/libc/stdlib/memfree: do not count
6376           the block header as free memory
6377         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
6378           simplified and added missing end-of-blocklist-marker
6379           (reported by Peter Onion, fixes #1252814)
6380         * (_mergeHeapBlock): fixed loop condition
6381         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
6382           len==0, restructured code
6383         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
6384           up a bit, reduced bitfield accesses, prevent endless loops
6385           in case of heap corruption
6386         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
6387           "unreferenced arguments/must return a value" warnings
6388         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
6389           replaced BAUDREG with SPBRG
6390         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
6391           device/lib/pic16/debug/gstack/gstack.c: replaced
6392           _naked, _asm, _endasm with __naked, __asm, __endasm
6393
6394 2005-08-05 Raphael Neider <rneider AT web.de>
6395
6396         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
6397           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
6398
6399 2005-08-05 Borut Razem <borut.razem AT siol.net>
6400
6401         * device/lib/Makefile.in: added missing ';'
6402         * configure: removed ^M characters
6403
6404 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6405
6406         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
6407           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
6408           License
6409
6410 2005-08-04 Borut Razem <borut.razem AT siol.net>
6411
6412         * configure.in: pic16 libraries build 2nd try - enable running
6413           configure in device/lib/pic16
6414         * configure: regenerated from configure.in
6415         * device/lib/Makefile.in: create $(PORT)/bin directory
6416
6417 2005-08-03 Raphael Neider <rneider AT web.de>
6418
6419         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
6420           to get/set values via pointers
6421         * (genUnpackBits,genPackBits): changed detection of
6422           ptr->bitfield vs. sym.bitfield, fixed access via generic
6423           pointers, removed dead (wrong) code for multibyte bitfields
6424         * (genNearPointerGet, genGenPointerGet): removed useless code,
6425           fixed bitfield detection, fixes #1250594
6426         * (genNearPointerSet): removed useless code
6427         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
6428           and introduced macro pic16_emitpcode that conditionally emits
6429           the origin of the following pCode (useful for debugging SDCC)
6430         * src/pic16/pcode.c: changed (and disabled) some debug outputs
6431         * (createDefmap): fixed handling of LFSR for --optimize-df
6432
6433 2005-08-02 Borut Razem <borut.razem AT siol.net>
6434
6435         * device/lib/Makefile.in: pic16 libraries build enabled since
6436           gputils-0.13.2 are now localy installed at sourceforge's compile farm
6437
6438 2005-08-02 Raphael Neider <rneider AT web.de>
6439
6440         * src/pic16/gen.c (genPackBits): removed deprecated warning
6441         * (genGenPointerSet): fixed bitfield detection
6442
6443 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6444
6445         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
6446
6447 2005-07-31 Raphael Neider <rneider AT web.de>
6448
6449         * device/lib/pic16/libdev/pic18f458.c,
6450           device/include/pic16/pic18f458.h: added missing T0CONbits
6451
6452 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
6453
6454         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
6455
6456 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
6457
6458         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
6459
6460 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6461
6462         * device/include/mcs51/at89c51ed2.h: added.
6463
6464 2005-07-23 Raphael Neider <rneider AT web.de>
6465
6466         * src/pic/gen.h: added emitpcode macro for debugging
6467         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
6468           and replace by macro adding debug information on demand
6469         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
6470         * (gencjne): tried to fix; replaced with correct (slower) code
6471         * (gen{Unp,P}ackBits): fixed single bit access
6472         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
6473         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
6474           previous instruction
6475         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
6476           register has to be handled with care (forbidding movement
6477           of assignments/uses, removing assignments completely, ...)
6478         * (pCodeOptime2pCodes): make use of regIsSpecial
6479         * added lots of debugging output (commented out)
6480         * src/pic/rallloc.c (deassignLRs): prevent operand registers
6481           from being reused as result UNLESS it is known to work
6482
6483 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
6484
6485         * support/Util/dbuf.h: include <stddef.h> for size_t
6486         * .version: changed to version 2.5.2
6487
6488 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6489
6490         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
6491
6492 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6493
6494         * src/hc08/gen.c (genMinus): fixed bug #1241835,
6495           (genModOneByte): removed needless psha/pula
6496
6497 2005-07-22 Raphael Neider <rneider AT web.de>
6498
6499         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
6500           have PIC14 handled like PIC16, fixes broken pic14 linker calls
6501         * src/pic/gen.c (resolveIfx): do not "invent" labels
6502         * (genSkipc): changed to positive logic
6503         * (genSkipCond): removed as no longer needed
6504         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
6505           backport from PIC16
6506         * (genLeftShift): check operands are in different registers
6507         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
6508           INCF does not update CARRY...
6509         * src/pic/main.c: fixed _linkCmd
6510         * src/pic/pcode.c (unlinkpCode): added inactive code
6511         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
6512           alive (do not assign result and operand overlapping registers)
6513
6514 2005-07-22 Raphael Neider <rneider AT web.de>
6515
6516         * src/pic/device.c (dump_sfr): replaced register declaration with
6517           call to emitSymbolToFile() to avoid duplicate symbols
6518         * (assignRelocatableRegisters): do not declare external symbols
6519         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
6520           right (take size of type, not etype)
6521         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
6522         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
6523         * (packRegsForAccUse): disabled assignment of WREG as
6524           the result reg to prevent occurence of just fixed #1235003,
6525           fixes #1242954
6526         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
6527           symbols (avoids duplicate symbols in .asm file)
6528         * (pic14emitRegularMap): use emitSymbolToFile()
6529         * src/pic/gen.c (aopOp): fixed spillLocation handling
6530         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
6531         * (genDataPointerSet): removed unneccessary variables/output
6532
6533 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
6534
6535         * as/mcs51/lkarea.c: enlarged codemap for banked memory
6536         * device/lib/mcs51/crtbank.asm: added # to 0x0F
6537
6538 2005-07-21 Raphael Neider <rneider AT web.de>
6539
6540         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
6541           architecture cannot handle them efficiently, fixes bug #1235003
6542         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
6543           check for empty sets before using them (fixes bug #1232190)
6544
6545 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
6546
6547         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
6548           (lnksect2): generate warnings for memory overlap
6549         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
6550           constseg to set the name of these segments so you can instruct the linker
6551           to place them in banks
6552         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
6553         * src/SDCCglobl.h: added MODEL_HUGE to enum,
6554           added code_seg and const_seg to options
6555         * src/SDCCglue.c (emitMaps): use options.const_seg,
6556           (createInterruptVect): put interrupt vectors in segment HOME,
6557           (glue): put HOME before static segment and put the main glue in HOME,
6558           (glue): use options.code_seg
6559         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
6560         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
6561           these segments so you can instruct the linker to place them in banks
6562           (linkEdit): use code_loc for HOME segment which should be the first
6563           segment in code memory now
6564         * src/SDCCmem.c: fixed more stuff like bug 1238386
6565         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
6566           (changePointer): don't change function pointers to code pointers for
6567           banked functions,
6568           (compareType): added exceptional check for banked function pointers
6569         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
6570         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
6571           after static in code memory
6572         * src/mcs51/gen.c: added aopLiteralLong prototype,
6573           (aopForSym): use getSize for functions,
6574           (genCall): generate banked calls over one trampoline __sdcc_banked_call
6575           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
6576           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
6577           the segment,
6578           (genPcall): use call for literal function pointers and generate banked
6579           calls over the one trampoline so there's only one place for the user to
6580           modify according to his/hers hardware,
6581           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
6582           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
6583         * src/mcs51/main.c: added keyword banked,
6584           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
6585         * support/Util/SDCCerr.c,
6586         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
6587           needed for passing the bank and address to the trampoline
6588         * device/lib/mcs51/crtbank.asm: added for bankswitching
6589         * device/lib/mcs51/Makefile: added crtbank
6590
6591 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6592
6593         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
6594           for fields at offset 0 of a struct or union as reported
6595           on 2005-07-07 in the developer mailing list.
6596
6597 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
6598
6599         * src/SDCCmem.c: fixed bug 1238386
6600
6601 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6602
6603         * src/mcs51/peeph.def: added labelrefcounting for peepholes
6604           (patch #1144962), added peephole 300, enabled 259.x
6605         * doc/sdccman.lyx: removed screenshot and provided link instead
6606
6607 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6608
6609         * doc/sdccman.lyx: added section about debugging with ddd
6610         * doc/figures/ddd_example.eps: screenshot of debugging session
6611
6612 2005-07-04 Raphael Neider <rneider AT web.de>
6613
6614         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
6615           like CODE pointers, fixes #1115683
6616         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
6617           call, fixes bugs #1232211, #1228110,
6618           fixed wrong casts to pCodeFlow from pCodeInstructions
6619
6620 2005-07-04 Raphael Neider <rneider AT web.de>
6621
6622         * src/pic/gen.c (popGet): changed assert to allow for
6623           bit operands
6624         * (popGetAddr): changed signature to provide
6625           an additional index, patched all call sites
6626         * (genCmpEq): handle literal-like operands correctly
6627         * (genAddrOf): added sanity checks on __code/__data pointers
6628         * (genAssign): added handling of symbols from __code section
6629         * (gencjne): do not generate code for comparisons whose result
6630           is neither stored nor used, fixes bug #1171114
6631         * (AccLsh, AccRsh): operate on operand instead of WREG
6632         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
6633           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
6634           by known count
6635         * rewrote complete shift-by-literal logic, commented unused
6636           functions out
6637         * (genConstPointerGet): get multiple bytes (if result size > 1),
6638           fixed handling of non-immediate addresses
6639         * (genPointerGet): handle CODE pointers like CONST pointers
6640         * (genpic14Code): insert C-SRC lines as Cource-pCodes
6641         * ({aop,op}_isLitLike): NEW, single place to decide whether an
6642           operand is to be treated as a literal or not
6643         * (mov2w,genPcall,genCmpEq),
6644           src/pic/genarith.c: use aop_isLitLike() to decide between
6645           literal/register contents
6646         * (addSign): added missing offset
6647         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
6648           only emit comment in debug-mode,
6649           use {aop,op}_isLitLike throughout the file
6650         * src/pic/glue.c: fix initializers for pointers (work in progress)
6651         * src/pic/pcode.c (get_op): honor index on _const symbols
6652         * ({reset,dump}pCodeStatistics): NEW, estimate code size
6653         * (dumppBlock): added pCode size estimation
6654         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
6655           check for IS_SYMOP before OP_SYMBOL'ing
6656         * fixed indentation, compacted switch-statements
6657         * (allocReg): find free register and allocate it instead of
6658           allocating new registers all the time
6659         * (deassignLRs): prevent POINTER_GET's from being assigned the same
6660           registers as its operands (necessary only for multibyte GETs)
6661
6662 2005-07-01 Raphael Neider <rneider AT web.de>
6663
6664         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
6665           debugging .asm-output macros FENTRY + FEXIT
6666         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
6667           way... I wonder...
6668         * (emitpComment): NEW, printf to pCode
6669         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
6670           offset handling
6671         * (popGetAddr): NEW, variant of popGet to access an immediates
6672           high(er) bytes instead of the n'th byte of memory they reference,
6673           replaced popGet with popGetAddr where neccessary
6674         * (genDataPointerGet): reactivated and fixed implementation
6675         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
6676           accesses
6677         * (genDataPointerSet): fixed multibyte assignments
6678         * (genpic14Code): fixed --i-code-in-asm handling
6679         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
6680         * (genPlus): fixed index-out-of-bounds error
6681         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
6682         * src/pic/ralloc.c: added debugging output macro FENTRY2
6683         * (spillThis): fixed indentation, enbraced for-body for clarity
6684         * (rematStr): commented out as now unused
6685         * (regTypeNum): commented out special spill case (overwrites
6686           arbitrary values)
6687         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
6688
6689 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
6690
6691         * doc/sdccman.lyx: documented sfr16/sfr32,
6692           added example for using storage class with function pointers
6693         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
6694
6695 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
6696
6697         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
6698         * device/lib/_itoa.c,
6699         * device/lib/_ltoa.c: optimized codesize
6700         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
6701           but don't know how to suppress the double warning.
6702         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
6703         * support/Util/SDCCerr.c,
6704         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
6705
6706 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
6707
6708         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
6709           fixed old K&R prototypes
6710         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
6711         * device/lib/_gptrget.c,
6712         * device/lib/_gptrgetc.c,
6713         * device/lib/_gptrput.c: changed versions for new memory indicator values,
6714           also new versions for small generic pointers and banked generic pointers
6715         * src/port.h: added const_name
6716         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
6717         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
6718         * src/SDCCcse.c (findPrevIc): check all associative operators
6719         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
6720         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
6721         * src/SDCCmem.c: updated comments,
6722           set far-space to 0 for pdata, results in optimized code
6723         * src/SDCCmem.h: added macro CONST_NAME
6724         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
6725           moving the info into the highest bits, see also gptrget/gptrput
6726         * src/src.dsp: added sdcc.ico to project files
6727         * src/avr/gen.c (genCast): fixed bug 0x%d
6728         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
6729         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
6730           relation between ptr_type and DCL_TYPE,
6731           (genCast): fixed bug 0x%d
6732         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
6733           (CODE)" for const_name
6734         * src/hc08/gen.c (genCast): fixed bug 0x%d
6735         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
6736           (hc08_port): added "CONST (CODE)" for const_name
6737         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
6738           (aopForRemat, adjustArithmeticResult): disconnected direct relation
6739           between ptr_type and DCL_TYPE,
6740           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
6741           operand* and took AOP() inside function so sfr-ness can be checked,
6742           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
6743           new prototype,
6744           (genFunction, genEndFunction): optimized stack setup,
6745           (genMinus): optimized for literals with ending zeroes (in bytes),
6746           (genCast): fixed bug 0x%d
6747         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
6748           (mcs51_port): added "CONST (CODE)" for const_name
6749         * src/mcs51/peeph.def: made rule 226 more generic
6750         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
6751         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
6752         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
6753         * src/z80/main.c (z80_port): added NULL for const_name,
6754           (gbz80_port): added NULL for const_name
6755         * support/regression/tests/bug663539.c,
6756         * support/regression/tests/sfr16.c: new tests
6757
6758 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6759
6760         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
6761
6762 2005-06-24 Raphael Neider <rneider AT web.de>
6763
6764         * device/lib/pic16/libdev/pic18f[68][567]20.c:
6765           corrected typos...
6766         * device/include/pic16/signal.h: added USBIF
6767           and SIG_USB
6768
6769 2005-06-24 Raphael Neider <rneider AT web.de>
6770
6771         * device/lib/pic16/libdev/pic18f2455.c,
6772           device/include/pic16/pic18f2455.h: NEW
6773         * device/include/pic16/pic18fregs.h,
6774           device/lib/pic16/pics.all,
6775           src/pic16/device.c: added 18f2455
6776         * device/lib/pic16/libdev/pic18f[68][567]20.c,
6777           device/include/pic16/{pic18f[68][567].h,usart.h}:
6778           replaced MULTIPLE_USARTS define with more relaible
6779           compatibility sfrs (for USART access)
6780
6781 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
6782
6783         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
6784           and the output asm file line is printed on two lines.
6785
6786 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6787
6788         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
6789           BGT, BLE, BHI, and BLS instructions
6790         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
6791           genCmpEq): removed
6792         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
6793           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
6794           fixes bug #1216342
6795         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
6796
6797 2005-06-15 Raphael Neider <rneider AT web.de>
6798
6799         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
6800         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
6801         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
6802           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
6803           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
6804
6805 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6806
6807         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
6808           Marcel Telka in bug #1215704
6809
6810 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
6811
6812         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
6813           located in shared memory bank.
6814
6815 2005-05-31 Raphael Neider <rneider AT web.de>
6816
6817         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
6818           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
6819           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
6820
6821 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
6822
6823         * device/lib/_strncpy.c: fixed the fix
6824
6825 2005-05-26 Raphael Neider <rneider AT web.de>
6826
6827         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
6828           initializers with \0, bug #1208187
6829         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
6830           intializers with \0, bug #1208187
6831
6832 2005-05-26 Raphael Neider <rneider AT web.de>
6833
6834         * src/pic16/glue.c (pic16_printIvalChar): fixed string
6835           initializers with \0, bug #1208187
6836         * src/pic16/main.c (_process_pragma): added sanity checks
6837           for stack position and size, emit warnings when appropriate
6838
6839 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
6840
6841         * device/lib/_strncpy.c: fixed not filling with \0
6842
6843 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6844
6845         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
6846           createFunction),
6847         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
6848           compound_statement),
6849         * src/SDCCsymt.h,
6850         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
6851
6852 2005-05-24 Raphael Neider <rneider AT web.de>
6853
6854         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
6855
6856 2005-05-24 Raphael Neider <rneider AT web.de>
6857
6858         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
6859           TRISE definitions, closes bug #1162453
6860
6861 2005-05-22 Raphael Neider <rneider AT web.de>
6862
6863         * src/pic16/main.c (_process_pragma): check for missing
6864           arguments to pragmas code and udata
6865         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
6866           consistency fixes to match other headers (thanks to Jim Paris)
6867         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
6868
6869 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
6870
6871         * src/SDCCicode.c (isOperandEqual): fixed missing ;
6872
6873 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
6874
6875         * support/regression/tests/bug1198642.c: new test
6876         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
6877         * src/SDCCcse.c (findPrevIc): added comment, please have a look
6878         * support/scripts/resource.h,
6879         * support/scripts/resource.rc,
6880         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
6881         * support/scripts/sdcc.ico: added 32x32 icon
6882
6883 2005-05-18 Raphael Neider <rneider AT web.de>
6884
6885         * device/lib/pic16/libdev/pic18f*.c,
6886         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
6887           keywords to "__sfr" and "__at (X)"
6888         * device/include/pic16/pic18fregs.h: added pic18f4520
6889         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
6890           #1203088 (MPLAB compatibility)
6891
6892 2005-05-17 Raphael Neider <rneider AT web.de>
6893
6894         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
6895         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
6896         * device/lib/pic16/pics.all: added new devices
6897         * src/pic16/device.c: added support for pic18f4520
6898
6899 2005-05-16 Raphael Neider <rneider AT web.de>
6900         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
6901         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
6902         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
6903           convenience function for bit access
6904
6905 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
6906
6907         * device/lib/printf_large.c: fixed bug 1193299
6908         * support/regression/tests/bug1057979.c: added test %3.3s
6909
6910 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6911
6912         * device/include/mcs51/8051.h,
6913         * device/include/mcs51/8052.h: made parseable with lint
6914         * device/include/mcs51/lint.h: added include file for (sp)lint
6915         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
6916         * doc/cdbfileformat.lyx,
6917         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
6918
6919 2005-05-14 Raphael Neider <rneider AT web.de>
6920
6921         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
6922         * device/lib/pic16/libc/stdlib/itoa.c (new)
6923         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
6924         * device/lib/pic16/libio/Makefile: exclude subdir according to
6925           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
6926         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
6927         * src/pic16/gen.c (genFunction): prevent annoying warning
6928         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
6929           nameclashes on BeOS
6930         * support/cpp2/cppmain.c (cpp_output_string): new
6931         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
6932           fixes bug 1116802
6933
6934 2005-05-13 Borut Razem <borut.razem AT siol.net>
6935
6936         * src/SDCCmain.c (linkEdit): fixed bug 1195202
6937
6938 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6939
6940         * .version: changed to version 2.5.1; back to bleeding edge development
6941
6942 2005-05-11 Borut Razem <borut.razem AT siol.net>
6943
6944         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
6945           generate PDF version 1.3 documents
6946
6947 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6948
6949         * .version: changed to version 2.5.0
6950
6951 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6952
6953         * doc/sdccman.lyx: updated weblinks, index and smaller updates
6954
6955 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6956
6957         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
6958         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
6959         well as many smaller updates.
6960         * .version: changed to version 2.5.0-pre1
6961
6962 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6963
6964         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
6965
6966 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
6967
6968         * support/regression/tests/bug1185672.c: added
6969         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
6970           bug 1185672
6971         * src/mcs51/gen.c (genCall): added comments, made it look safer
6972         * src/mcs51/gen.c (genEndFunction): simplified
6973
6974 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
6975
6976         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
6977
6978 2005-04-14 Borut Razem <borut.razem AT siol.net>
6979
6980         * fixed bug 1045046 - SIGSEGV with really simple code?:
6981           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
6982           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
6983
6984 2005-04-14 Borut Razem <borut.razem AT siol.net>
6985
6986         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
6987           src/pic16/device.h: temporarily disabled experimental #inline pragma
6988           for 2.5.0 release
6989
6990 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
6991
6992         * device/include/z80/stdio.h,
6993         * device/include/z80/string.h: removed these highly incomplete files so
6994           SDCC can use the default ones in device/include/
6995
6996 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6997
6998         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
6999         gcc warning.
7000         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
7001         fix sdcpp warnings.
7002
7003 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
7004
7005         * device/include/malloc.h: removed redundant __reentrant prototypes
7006         * device/lib/_mullong.c: added working xstack variant in asm (C version
7007           doesn't pass regression tests)
7008         * device/lib/bpx.c: used __data and made bpx char for mcs51
7009         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
7010           (createFunction): fixed bug with xstackPtr
7011         * src/SDCCcse.c: corrected comments
7012         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
7013           (killDeadCode, eBBlockFromiCode): removed unused code
7014         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
7015           corrected comments
7016         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
7017           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
7018           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
7019           (genModOneByte): fixed warning in MSVC
7020         * src/mcs51/main.c (): added comments
7021         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
7022
7023 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
7024
7025         * src/SDCCmain.c (linkEdit): oops, changed one line too many
7026
7027 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
7028
7029         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
7030
7031 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
7032
7033         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
7034         characters arrays of larger size than the declared one.
7035
7036 2005-04-10 Borut Razem <borut.razem AT siol.net>
7037
7038         * src/pic/gen.c (genInline),
7039           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
7040           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
7041           (findNextInstruction), (findPrevInstruction),
7042           (findInstructionUsingLabel),
7043           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
7044         * src/pic/pcode.c (findLabel): added missing '\n'
7045         * src/src.dsp: added SDCCdwarf2.c to the project
7046
7047 2005-04-09 Borut Razem <borut.razem AT siol.net>
7048
7049         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
7050
7051 2005-04-08 Raphael Neider <rneider AT web.de>
7052
7053         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
7054           into the chain after a given one) and mergeDefmapSymbols (combine
7055           defmap entries for each symbol per pcode)
7056         * (createDefmap): have defmap entries merged in the end
7057         * (defmapReplaceSymRef): split defmap entries covering two accesses to
7058           a symbol before replacing one access type's symbol, merge symbols in
7059           the end (replacement symbol might already have an entry)
7060         * (assignValnums): keep reference to written WREG intact
7061
7062 2005-04-08 Raphael Neider <rneider AT web.de>
7063
7064         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
7065           Alpha)
7066
7067 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
7068
7069         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
7070         bytes
7071
7072 2005-04-07 Raphael Neider <rneider AT web.de>
7073
7074         * device/include/pic16/usart.h: added compatibility defines for
7075           devices with more than one USART
7076         * device/include/pic16/pic18f[68][567]20.h: activated above defines
7077
7078 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7079
7080         * device/lib/Makefile.in: updated for port specific include
7081
7082 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7083
7084         * support/regression/ports/mcs51/spec.mk: added mcs51 include
7085
7086 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7087
7088         * device/include/8051.h,
7089         * device/include/8052.h,
7090         * device/include/at89S8252.h,
7091         * device/include/at89c55.h,
7092         * device/include/at89x051.h,
7093         * device/include/at89x51.h,
7094         * device/include/at89x52.h,
7095         * device/include/mcs51reg.h,
7096         * device/include/reg51.h,
7097         * device/include/reg764.h,
7098         * device/include/regc515c.h,
7099         * device/include/sab80515.h: (re)moved these 12 files
7100         * device/include/mcs51/8051.h,
7101         * device/include/mcs51/8052.h,
7102         * device/include/mcs51/at89S8252.h,
7103         * device/include/mcs51/at89c55.h,
7104         * device/include/mcs51/at89x051.h,
7105         * device/include/mcs51/at89x51.h,
7106         * device/include/mcs51/at89x52.h,
7107         * device/include/mcs51/mcs51reg.h,
7108         * device/include/mcs51/reg51.h,
7109         * device/include/mcs51/reg764.h,
7110         * device/include/mcs51/regc515c.h,
7111         * device/include/mcs51/sab80515.h: and added them here
7112
7113 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
7114
7115         * device/include/stdarg.h: changed SDCC specific keywords to double
7116           underlined form.
7117         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
7118           mcs51 and ds390.
7119         * device/include/hc08/mc68hc908gp32.h,
7120         * device/include/hc08/mc68hc908jb8.h,
7121         * device/include/hc08/mc68hc908jkjl.h,
7122         * device/include/hc08/mc68hc908qy.h: fixed comments
7123         * device/include/mcs51/README: updated
7124         * device/include/mcs51/c8051f120.h: added PINRSF
7125         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
7126         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
7127           amidst code. Also inline is not supported.
7128
7129 2005-04-06 Raphael Neider <rneider AT web.de>
7130
7131         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
7132         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
7133           callers stack/frame pointers
7134
7135 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
7136
7137         * device/include/pic16/usart.h: added, missing in previous commit,
7138         * device/include/pic16/adc.h: fixed typo,
7139         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
7140         commit,
7141         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
7142         <p18fxxx.inc>
7143         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
7144         uninitialized because a bug appears with gplink
7145         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
7146         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
7147         complains for unrecognised option
7148
7149 2005-04-05 Raphael Neider <rneider AT web.de>
7150
7151         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
7152           structs as well (using memcpy)
7153         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
7154           on ISRs (GOTO has no label)
7155         * src/pic16/device.h: added OF_OPTIMIZE_DF
7156         * src/pic16/main.c: added compiler switch --optimize-df to enable the
7157           new data flow analysis/optimization
7158         * src/pic16/pcode.c: added (prototypes for and implementation of)
7159           dataflow analysis functions, fixed pCodeInstructions' inCond and
7160           outCond values, made RCALL a branch instruction
7161         * (pic16_unlinkpCode): keep C line if possible
7162         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
7163           C line moved if possible
7164         * (pic16_getRegFrompCodeOp): NEW, improved version of...
7165         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
7166           to use new pic16_getRegFrompCodeOp (works for more SFRs)
7167         * (pic16_BuildFlow): fixed skip instructions with label (did not start
7168           new flow)
7169         * (pic16_getJumptabpCode): NEW, needed in...
7170         * (LinkFlow): fixed handling of jumptables, calls and conditional
7171           branches
7172         * (pic16_InsertCommentAfter): NEW
7173         * (pic16_pCodeReplace): made verbose and flow preserving
7174         * (AnalyzeFlow): added call to data flow analysis
7175         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
7176         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
7177         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
7178
7179 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7180
7181         * src/SDCCast.c (decorateType): fixed bug #1105626
7182
7183 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
7184
7185         * device/include/asm/pic16/features.h,
7186         * pic18f*.h headers,
7187         * device/include/pic16/adc.h,
7188         * device/include/pic16/delay.h,
7189         * device/include/pic16/i2c.h,
7190         * device/include/pic16/malloc.h,
7191         * device/include/pic16/stdio.h,
7192         * device/include/pic16/stdlib.h,
7193         * device/include/pic16/string.h,
7194         * device/lib/pic16/libc/stdio/printf_tiny.c,
7195         * device/lib/pic16/libc/stdio/printf_small.c,
7196         * device/lib/pic16/libc/stdio/strmgpsim.c,
7197         * device/lib/pic16/libc/stdio/strmmssp.c,
7198         * device/lib/pic16/libc/stdio/strmusart.c,
7199         * device/lib/pic16/libc/stdio/vfprintf.c,
7200         * device/lib/pic16/libc/stdlib/ltoa.c,
7201         * device/lib/pic16/libc/stdlib/putchar.c,
7202         * device/lib/pic16/libc/stdlib/x_ftoa.c,
7203         * device/lib/pic16/libc/stdlib/memchrpgm.c,
7204         * device/lib/pic16/libc/stdlib/memchrram.c,
7205         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
7206         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
7207         * device/lib/pic16/libio/adc/adcbusy.c,
7208         * device/lib/pic16/libio/adc/adcread.c,
7209         * device/lib/pic16/libio/adc/adcsetch.c,
7210         * device/lib/pic16/libio/usart/ubaud.c,
7211         * device/lib/pic16/libio/usart/ubusy.c,
7212         * device/lib/pic16/libio/usart/udrdy.c,
7213         * device/lib/pic16/libio/usart/uopen.c,
7214         * device/lib/pic16/libio/usart/uputc.c,
7215         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
7216         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
7217         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
7218         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
7219         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
7220         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
7221         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
7222         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
7223         specific keywords to double underlined form,
7224         * device/lib/pic16/libc/Makefile.rules,
7225         * device/lib/pic16/libsdcc/Makefile.rules,
7226         * device/lib/pic16/libm/Makefile,
7227         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
7228         to compile with C standard set in Makefile.common
7229         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
7230         rand.c and crc.c in compilation process,
7231         * device/lib/pic16/libsdcc/int/divuint.c,
7232         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
7233         `c' from signed to unsigned,
7234         * device/lib/pic16/startup/crt0.c,
7235         * device/lib/pic16/startup/crt0i.c,
7236         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
7237         keywords to double underlined form, bug fixes in _do_cinit function
7238         which prevented the correct initialization of the .idata segment,
7239         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
7240         core to enter a infinite loop
7241         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
7242
7243 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7244
7245         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
7246
7247 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7248
7249         * device/include/Makefile.in: add support for hc08 subdirectory
7250         * device/include/hc08/: new subdirectory
7251         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
7252         Lucas Loizaga, thanks!
7253         * device/include/hc08/mc68hc908qy.h,
7254         * device/include/hc08/mc68hc908gp32.h,
7255         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
7256         their own directory. Changed internal macro names to use the compiler
7257         reserved namespace. Changed SDCC specific keywords to double
7258         underlined form.
7259         * device/include/math.h,
7260         * device/include/malloc.h,
7261         * device/include/stdarg.h,
7262         * device/include/stdbool.h
7263         * device/include/string.h,
7264         * device/include/tinibios.h,
7265         * device/include/ds400rom.h,
7266         * device/include/8051.h,
7267         * device/include/8052.h,
7268         * device/include/80c51xa.h,
7269         * device/include/at89c55.h,
7270         * device/include/at89S8252.h,
7271         * device/include/at89x51.h,
7272         * device/include/at89x52.h,
7273         * device/include/ds80c390.h,
7274         * device/include/reg764.h,
7275         * device/include/regc515c.h,
7276         * device/include/sab80515.h,
7277         * device/include/mcs51/c8051f000.h,
7278         * device/include/mcs51/c8051f018.h,
7279         * device/include/mcs51/c8051f020.h,
7280         * device/include/mcs51/c8051f040.h,
7281         * device/include/mcs51/c8051f060.h,
7282         * device/include/mcs51/c8051f120.h,
7283         * device/include/mcs51/c8051f300.h,
7284         * device/include/mcs51/c8051f310.h,
7285         * device/include/mcs51/c8051f320.h,
7286         * device/include/mcs51/c8051f330.h,
7287         * device/include/mcs51/c8051f350.h,
7288         * device/include/z180.h: Changed SDCC specific keywords to double
7289         underlined form.
7290
7291 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
7292
7293         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
7294         18F4455,
7295         * (pic16_assignConfigWordValue): disable testing of configuration
7296         register value with config mask,
7297         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
7298         function with port->fun_prefix,
7299         * (genFunction): when generating a naked interrupt function never
7300         create an absolute segment placed in interrupt vector address, place
7301         the actual interrupt function at IVA instead, when an interrupt
7302         function is generated with unspecified interrupt then do not create
7303         the absolute section,
7304         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
7305         code for generating a call to generic pointer get/put function with
7306         a call to function pic16_callGenericPointer(),
7307         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
7308         the call to the generic pointer get/put functions with prefixing the
7309         function name with port->fun_prefix,
7310         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
7311         * src/pic16/main.c (_process_pragma): prefix function with
7312         port->fun_prefix,
7313         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
7314         calling assembler, old 18Fxxxx macro is deprecated,
7315         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
7316         PC_ASMDIR in while condition,
7317         * (findInstruction): add PC_ASMDIR in while condition,
7318         * (buildCallTree): prefix main with port->fun_prefix,
7319         * (pic16_pCode2str): fixed bug that didn't emit the memory access
7320         identifier for variable with banked access in instructions BTFSS,
7321         BTFSC, BCF, BSF, BTG
7322         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
7323         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
7324         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
7325         perform optimization when enviroment variable NO_REG_OPT is set,
7326         * (insideLRBlock): NEW, return 1 if register is inside an
7327         INF_LOCALREGS block,
7328         * (RemoveRegFromLRBlock): remove a register that is completely
7329         eliminated by register optimization, but it is still left in local
7330         register store/restore in/from stack block,
7331         * (Remove2pcodes): after removing register, check to see if it
7332         should be removed from local register store/restore in/from stack
7333         block,
7334         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
7335         DUMMY_READ_VOLATILE,
7336
7337         * device/include/pic16/adc.h: minor prototype modifications and
7338         update,
7339         * device/include/pic16/malloc.h: added GPL notice various
7340         modifications,
7341         * device/include/pic16/stdint.h: NEW, standard header for ints
7342         * device/include/pic16/delay.h: NEW, header for delay functions,
7343         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
7344         delay1mtcy,
7345         * device/include/pic16/signal.h: NEW, header providing helper macros
7346         for implementing signal handlers,
7347         * device/include/pic16/stdio.h: added prototypes for functions,
7348         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
7349         prototypes for stdin and stdout, added macro PUTCHAR to
7350         automatically implement putchar function prototype,
7351         * device/include/pic16/usart.h: modified and updated USART library,
7352         * device/lib/pic16/libio/adc/,
7353         * device/lib/pic16/libio/i2c: some modifications to improve library
7354         performance,
7355         * device/lib/pic16/libc/stdio/: modifications for the new printf*
7356         family of functions,
7357         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
7358         family of functions and other sources,
7359         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
7360         of the PIC18Fxx[28] devices,
7361         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
7362         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
7363         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
7364         _do_cinit function, because the previous failed when local variables
7365         where not placed in the same memory bank,
7366         * device/lib/pic16/libsdcc/char/: various modifications to improve
7367         library performance,
7368         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
7369         information on the new functions of the c library and more...
7370
7371 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7372
7373         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
7374
7375 2005-03-26 Raphael Neider <rneider AT web.de>
7376
7377         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
7378           if condition == CARRY)
7379         * (genCmp): adapted to new genSkipc semantics
7380         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
7381           on rIfx (genCmp was broken)
7382
7383 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7384
7385         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
7386         * src/z80/main.c (_keywords[]),
7387         * src/SDCCglobal.h (struct options),
7388         * src/SDCC.y,
7389         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
7390         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
7391         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
7392         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
7393         always available in leading double underscore form. The C99 support is
7394         mostly missing, but it's a start.
7395         * support/regression/tests/bug-227710.c: fixed nonconforming use of
7396         reserved identifier "__data".
7397
7398 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
7399
7400         * src/mcs51/peeph.def: fixed bug 1170013
7401
7402 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
7403
7404         * device/include/mcs51reg.h: fixed bug 842007
7405
7406 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7407
7408         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
7409         last time.
7410
7411 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7412
7413         * src/port.h (struct PORT),
7414         * src/avr/ralloc.c (avr_assignRegisters),
7415         * src/avr/main.c,
7416         * src/ds390/ralloc.c (ds390_assignRegisters),
7417         * src/ds390/main.c,
7418         * src/hc08/ralloc.c (hc08_assignRegisters),
7419         * src/hc08/main.c,
7420         * src/mcs51/ralloc.c (mcs51_assignRegisters),
7421         * src/mcs51/main.c,
7422         * src/pic/ralloc.c (pic14_assignRegisters),
7423         * src/pic/main.c,
7424         * src/pic16/ralloc.c (pic16_assignRegisters),
7425         * src/pic16/main.c,
7426         * src/xa51/ralloc.c (xa51_assignRegisters),
7427         * src/xa51/main.c,
7428         * src/z80/ralloc.c (z80_assignRegisters),
7429         * src/z80/ralloc.h,
7430         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
7431         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
7432         * src/SDCCcse.h,
7433         * src/SDCCdflow.c (computeDataFlow),
7434         * src/SDCCdflow.h,
7435         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
7436         * src/SDCCloop.h,
7437         * src/SDCCcflow.c (*),
7438         * src/SDCCcflow.h,
7439         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
7440         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
7441         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
7442         immedDom() returning wrong block; probably fixes bug #1160833)
7443
7444 2005-03-20 Borut Razem <borut.razem AT siol.net>
7445
7446         * support/scripts/inc2h.pl: WIN32 port
7447
7448 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
7449
7450         * device/lib/makefile.in: added abs.c and labs.c
7451
7452 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
7453
7454         * device/include/stdint.h: added
7455         * device/lib/abs.c: added
7456         * device/lib/labs.c: added
7457         * device/include/stdlib.h: added abs() and labs() prototypes
7458         * device/lib/libsdcc.lib: added abs and labs
7459         * device/include/float.h,
7460         * device/lib/_fsmul.c,
7461         * device/lib/printf_fast.c,
7462         * device/lib/printf_tiny.c: updated comments
7463
7464 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7465
7466         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
7467         bug #1164313
7468
7469 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7470
7471         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
7472         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
7473
7474 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
7475
7476         * device/lib/printf_large.c: removed inline assembly for portability and
7477           readability. Use printf_fast if speed or size are more important.
7478         * src/pic16/gen.c: removed conditions around use of DEBUGpc
7479         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
7480
7481 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
7482
7483         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
7484         prevent compiler warning
7485
7486 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
7487
7488         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
7489         moved to level 0 and declared as static. Also they are explicit
7490         placed in access bank. This was necessery because some times they
7491         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
7492         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
7493         optimizations. Currently only compare to unsigned char is implemented,
7494         * src/pic16/gen.c: added fReturnIdx array,
7495         * (struct resolvedIfx) is moved to gen.h and made public,
7496         * (struct _G): added sregsAlloc and sregsAllocSet fields,
7497         * (aopForSym): added an optimization to directly store in stack of
7498         the operand of a SEND iCode,
7499         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
7500         but as registers instead (AOP_REG) using the fReturnIdx array,
7501         * (pic16_freeAsmop): remove the freed register from the
7502         _G.sregsAlloc field,
7503         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
7504         a compare of 'WREG',
7505         * (pic16_popGetTempRegCond): changed function prototype, now
7506         function takes also a bitVector argument v which holds the current
7507         set of registers that are allocated for stack access by aopForSym,
7508         registers allocated in aopForSym for accessing stack symbols are not
7509         any more part of the functions usedRegs field,
7510         * (genCall): some times aopOp is called for a stack variable to be
7511         send, aopForSym might perform the push, if this is true make sure
7512         that genCall doesn't push the variable twice by testing _G.resDirect,
7513         * (genFunction): changed testing for unspecified interrupt number
7514         from 256 to INTNO_UNSPEC,
7515         * modified selection scheme of frame pointer generation. Previously
7516         if function did use local registers a frame pointer was generated,
7517         now a frame pointer is generated only if function has arguments
7518         (that need PLUSW2 register access), or has stack arguments, or the
7519         compiler is not instructed to omit the frame pointer,
7520         * (genEndFunction): before restoring local registers that were saved
7521         in the function preamble, also restore the registers that *might*
7522         have been allocated for stack access,
7523         * (genRet): removed some old comments,
7524         * (genCmp, the active (RN's) version): added a call to the
7525         pic16_genCmp_special function to perform the compare with a more
7526         robust and optimized way,
7527         * (genInline): a feature has been added in inline code generation,
7528         which allows a wildcard variable substitution when writing inline
7529         assembly. Code is incomplete and experimental therefore undocumented,
7530         * (genCast): changed order of aopOp for result and right to allow
7531         aopForSym to directly load the result if possible,
7532         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
7533         perform an optimized compare on some selected special occasions,
7534         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
7535         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
7536         generate an IVT any more,
7537         * src/pic16/main.c (pic16_optionsTable): added command line option
7538         --optimize-cmp,
7539         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
7540         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
7541         macros,
7542         * src/pic16/NOTES: Raphael Neider added in list of active developers
7543         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
7544         jumptable_end to prevent bug #,
7545         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
7546         inCond and outCond fields,
7547         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
7548         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
7549         turn off register spilling,
7550         * (packRegsForOneUse): synced with other ports' versions although it
7551         is not used currently,
7552         * (pic16_packRegisters): added an optimization while reading
7553         structure bitfields, some registers may be saved (malloc code is
7554         decreased by 80 bytes)
7555
7556 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
7557
7558         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
7559         left is a bitfield, if yes, then don't optimize assignment. Perhaps
7560         this can be optimized more?
7561
7562 2005-03-10 Raphael Neider <rneider AT web.de>
7563
7564         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
7565           genNearPointerGet): (hopefully) fixed access to bitfields via
7566           pointers (p->bitN = x; and x = p->bitN; failed)
7567
7568 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
7569
7570         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
7571
7572 2005-03-09 Raphael Neider <rneider AT web.de>
7573
7574         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
7575
7576 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
7577
7578         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
7579         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
7580           (regTypeNum): set REG_BIT type if necessary
7581         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
7582         * support/regression/tests/critical.c: check bug 1144613
7583
7584 2005-03-02 Raphael Neider <rneider AT web.de>
7585
7586         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
7587
7588 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7589
7590         * src/avr/ralloc.c (serialRegAssign),
7591         * src/ds390/ralloc.c (serialRegAssign),
7592         * src/hc08/ralloc.c (serialRegAssign),
7593         * src/mcs51/ralloc.c (serialRegAssign),
7594         * src/pic/ralloc.c (serialRegAssign),
7595         * src/pic16/ralloc.c (serialRegAssign),
7596         * src/xa51/ralloc.c (serialRegAssign),
7597         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
7598
7599 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
7600
7601         * src/SDCCast.c (decorateType): fixed bug 1124787
7602
7603 2005-02-20 Hubert Sack <sack AT digiplan.de>
7604         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7605
7606         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
7607         patch #1121755
7608
7609 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7610
7611         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
7612         to keep the correct label reference count when adding/removing references
7613         to labels. A peephole file using this is appended to patch #1144962.
7614
7615 2005-02-14 Raphael Neider <rneider AT web.de>
7616
7617         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
7618         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
7619         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
7620           retrievals of result operand's value on assignment
7621
7622 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
7623
7624         * device/include/pic16/string.h: modified prototype for memccpy()
7625         to memccpy(void *, void *, char, size_t)
7626         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
7627         check whether to omit frame pointer or not,
7628         * (genInline): convert all occurences of "\n" to LF in inline
7629         assembler blocks, this helps formatting the inline text,
7630         * (pic16_loadFSR0): modified prototype,
7631         * (genNearPointerGet, genNearPointerSet): reorganization of code,
7632         removed some 8051 legacy code,
7633         * (genPackBits): enabled handling bitfields exceeding one byte in size,
7634         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
7635         before allocating temporary registers in functions,
7636
7637 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
7638
7639         * support/regression/tests/bitvars.c: corrected the "fix"
7640
7641 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
7642
7643         * support/regression/tests/bitvars.c,
7644         * support/regression/tests/bitwise.c,
7645         * support/regression/tests/rotate.c: "fixed" problems on Alpha
7646
7647 2005-02-10 Raphael Neider <rneider AT web.de>
7648
7649         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
7650           different size for Alpha
7651         * src/pic16/gen.c (genCmpEq) : improved compare with 0
7652
7653 2005-02-09 Raphael Neider <rneider AT web.de>
7654
7655         * src/SDCC.lex(doPragma) : save and restore warning options as well
7656           (also added new stack plus clone- and copyAndFreeSDCCERRG())
7657         * have #pragma less_pedantic set the errorlevel to WARNING
7658           (fixes #1117001)
7659         * (cloneOptimize) : fixed wrong malloc's size
7660         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
7661           facilitate correct handling of #pragma (save|restore)
7662
7663 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
7664
7665         * src/mcs51/gen.c: removed non-standard C nameless struct/union
7666
7667 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
7668
7669         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
7670
7671 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
7672
7673         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
7674
7675 2005-02-02 Raphael Neider <rneider AT web.de>
7676
7677         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
7678         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
7679         * (pic16_storeForReturn): fixed to allow returning function pointers
7680         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
7681         * device/include/pic16/{stddef.h,stdbool.h}: added
7682
7683 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
7684
7685         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
7686
7687 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
7688
7689         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
7690         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
7691          appeared to be required
7692
7693 2005-01-31 Borut Razem <borut.razem AT siol.net>
7694
7695         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
7696           include/mcs51 and include/z80 directories to the package
7697
7698 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7699
7700         * src/hc08/gen.c (genFunction): fixed bug #1112752
7701
7702 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7703
7704         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
7705
7706 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7707
7708         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
7709
7710 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
7711
7712         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
7713
7714 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
7715
7716         * device/include/c8051fxxx.h: removed these 6 files
7717         * device/include/mcs51/c8051fxxx.h: added these 11 new files
7718
7719 2005-01-26 Raphael Neider <rneider AT web.de>
7720
7721         * src/pic16/gen.c (genAssign): fixed assignment from longs
7722           in codespace (were cut to three bytes)
7723         * (genDummyRead): implemented (except for CODESPACE...),
7724           fixed bug #1108575
7725         * src/pic16/glue.c (emitStatistics): beautified
7726         * device/lib/pic16/libm/Makefile: added include path
7727
7728 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7729
7730         * src/z80/gen.c (aopPut): fixed bug #1103902
7731
7732 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7733
7734         * device/lib/expf.c: fixed bug #1095792
7735
7736 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
7737
7738         * device/lib/pic16/libm: added Math library sources
7739
7740 2005-01-24 Raphael Neider <rneider AT web.de>
7741
7742         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
7743           to enable upcast to pCodeOpReg2 (there is no type tag to
7744           differenciate the two and pic16_popGet2p cast into PCOR2)
7745         * src/pic16/main.c (_process_pragma): fixed another malloc bug
7746           (sizeof(sectNames) changed to sizeof(sectName))
7747           Both patches fix segfaults under MinGW.
7748
7749 2005-01-23 Raphael Neider <rneider AT web.de>
7750
7751         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
7752           Safe_[mc]?alloc()'ed variables
7753         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
7754           of (byte sized) temporaries (assign them to WREG for now)
7755         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
7756           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
7757           this might fix SIGSEGVs on MinGW...
7758         * src/SDCCopt.c (killDeadCode): restored original behaviour
7759           (volatile operands might get thrown away though)
7760
7761 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
7762
7763         * src/pic16/gen.c: fixed bug #1106975,
7764         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
7765         pointer update, INTCON is saved, global interrupts are disabled and
7766         restored after updateing TOS.
7767         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
7768         * added function attribute 'shadowregs' to take advantage of shadow
7769         registers,
7770         * added function attribute 'wparam' as an alternative to the wparam
7771         pragma,
7772         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
7773         user declares a non-ISR function as 'shadowregs',
7774         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
7775
7776 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
7777
7778         * .version: bumped version number to 2.4.8
7779         * device/lib/pic16/pics.all: list of PIC18F devices supported by
7780         pic16 port,
7781         * device/lib/pic16/libio/i2c/: I2C module support library,
7782         * device/include/pic16/i2c.h: I2C support library header,
7783         * device/lib/pic16/libc/stdio/: standard IO support sources,
7784         * (printf_small.c): printf_small() source, supports float print,
7785         * (printf_tiny.c): printf_tiny() source, does not support floats,
7786         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
7787         enable global optimizations for entire library source, other
7788         Makefiles in the source tree are also modified to reflect this,
7789         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
7790         function,
7791         * doc/sdccman.lyx: updated to reflect new changes,
7792         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
7793         sym->onStack if-case,
7794         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
7795         sbit, idata, _idata, xdata, _xdata,
7796         * added pragma library, to link an external library, (see doc),
7797         * removed command line options, --pomit-config-words, --pomit-ivt,
7798         --pleave-reset-vector,
7799         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
7800         when calling assembler to reflect memory model used, also define
7801         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
7802         reflect stack model used,
7803         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
7804         on stack return NULL,
7805
7806 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
7807
7808         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
7809           of the operands is volatile. Fixes #1020220
7810
7811 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
7812
7813         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
7814         * (OptimizeRegUsage): make sure that there is really no other flow where
7815           the first pCode is used
7816
7817 2005-01-22 Raphael Neider <rneider AT web.de>
7818
7819         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
7820           to fix #1106967 (pCode->seq are not set up correctly)
7821
7822 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7823
7824         * src/SDCCglue.c (glue): make sure code area is declared before the
7825         static initialization area.
7826
7827 2005-01-21 Raphael Neider <rneider AT web.de>
7828
7829         * device/lib/Makefile.in: fixed test for pic16 install dir
7830         * device/lib/pic16/*/Makefile*: modified compile flags to enable
7831           optimizations
7832         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
7833           added --optimize-goto compiler switch and pragma wparam documentation
7834         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
7835         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
7836           and PRODH closing bug #1071770 (peephole optimizer)
7837
7838 2005-01-19 Raphael Neider <rneider AT web.de>
7839
7840         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
7841           cmdLine buffers (used when calling sdcpp...) are large enough
7842           (MAX_PATH=256 truncates arguments leading to system halts when
7843           used in MinGW...)
7844         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
7845         * (genUminus): rewritten to for efficiency
7846         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
7847           used uninitialized in some cases)
7848         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
7849           copy the third byte from the int -- now assumes 0x80 (data memory)
7850         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
7851           operands (genAddLit expects the iCode's operands to swapped as
7852           well), fixed leftover bytes (crashed for short left operands)
7853         * (pic16_genMinusDec): performance improvements, removed false
7854           PIC14 emitSKPNCs
7855         * (pic16_genMinus): fixed to cope with differently sized operands
7856         * src/pic16/glue.c (pic16_glue): added new banksel optimization
7857           for --obanksel > 1
7858         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
7859         * src/pic16/graph.[ch]: implementation of directed graphs, used by
7860           new banksel optimization
7861         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
7862           analysis for temporary registers (segfaults...)
7863         * src/pic16/peeph.def: added rule
7864
7865 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
7866
7867         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
7868         which converts a float number to its ASCII representation
7869         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
7870         functions to convert the fractional and integer part of a float to ASCII,
7871         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
7872         realloc.c): added _MALLOC_SPEC to explicit place variables in data
7873         ram
7874         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
7875         _STATMEM macros,
7876         * device/include/pic16/adc.h: added GPL info,
7877         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
7878         a pCodeOp as tested operand,
7879         * (genNearPointerGet): optimized bit testing, does not use
7880         intermediate register for bit value, test directly instead with
7881         BTFSS, BTFSC, works only for single bits,
7882         * (genpic16Code): dump the name of the iCode in the asm,
7883         * src/pic16/ralloc.c (decodeOp): removed static declaration and
7884         renamed to pic16_decodeOp,
7885         * (serialRegAssign): do not allocate a temporary register for iCode
7886         sequences that test a single bit for 1/0
7887
7888 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
7889
7890         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
7891         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
7892         access stack and frame pointers. They are initially assigned to
7893         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
7894         accessing SFRs. Updated all occurences of modification of stack or
7895         frame pointer in gen.c and pcode.c,
7896         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
7897         assigning of a literal value to pointers,
7898         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
7899         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
7900         selected
7901
7902 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
7903
7904         * doc/sdccman.lyx: update documentation about stack pragma, added
7905         some info for stack memory models
7906
7907 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7908
7909         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
7910
7911 2005-01-08 Raphael Neider <rneider AT web.de>
7912
7913         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
7914           udata sections to fix bug #1097823
7915
7916 2005-01-05 Raphael Neider <rneider AT web.de>
7917
7918         * src/pic16/gen.c (genGenericShift): added handling of differently
7919           sized left operand and result
7920
7921 2005-01-04 Raphael Neider <rneider AT web.de>
7922
7923         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
7924         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
7925           to hold the condition bit)
7926         * added new version of genCmp (old code available via #define)
7927         * added new version of genShiftLeft/genShiftRight in a generic
7928           way, now supports shifting by negative values
7929         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
7930           shiftCount (expected by genGenericShift)
7931         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
7932         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
7933           dump
7934         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
7935           is an invalid literal too...)
7936
7937 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
7938
7939         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
7940         from Raphael Neider,
7941         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
7942         for 8-bit literals. This fixes some literal operands which are sign
7943         extended to 16-bits ints when instruction needs only 8-bits.
7944
7945 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
7946
7947         * device/lib/logf.c: added mcs51 assembly version
7948         * device/lib/expf.c: added mcs51 assembly version
7949         * device/lib/_logexpf.c: new shared asm code for expf and logf
7950         * device/include/math.h: add defines for assembly math library
7951         * device/lib/Makefile.in: build new _logexpf.c
7952         * device/lib/libfloat.lib: use new _logexpf.c
7953
7954 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
7955
7956         * src/pic/device.c
7957         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
7958           device types which have less than 0x7f registers.
7959
7960 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
7961
7962         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
7963
7964 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
7965
7966         * device/lib/printf_fast.c: only build on supported arch.
7967         * device/lib/printf_tiny.c: only build on supported arch.
7968         * device/lib/printf_fast_f.c: only build if asm float lib
7969         * device/lib/_fsget1arg.c: only build if asm float lib
7970         * device/lib/_fsget2args.c: only build if asm float lib
7971         * device/lib/_fsnormalize.c: only build if asm float lib
7972         * device/lib/_fsreturnval.c: only build if asm float lib
7973         * device/lib/_fsrshift.c: only build if asm float lib
7974         * device/lib/_fsswapargs.c: only build if asm float lib
7975         * device/include/stdio.h: don't provide print_fast,
7976           print_fast_f, print_tiny prototypes if --xstack used
7977
7978 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
7979
7980         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
7981         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
7982           to the SOURCES
7983
7984 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
7985
7986         * device/lib/printf_fast_f.c: same as printf_fast, but
7987           with floating point enabled
7988         * device/lib/printf_fast.c: minor tweaks
7989         * device/include/stdio.h: add printf_fast_f
7990
7991 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
7992
7993         * src/SDCCmain.c: make --float-reent default for mcs51
7994         * device/lib/_fsadd.c: added mcs51 assembly version
7995         * device/lib/_fssub.c: added mcs51 assembly version
7996         * device/lib/_fsmul.c: added mcs51 assembly version
7997         * device/lib/_fsdiv.c: added mcs51 assembly version
7998         * device/lib/_fseq.c: added mcs51 assembly version
7999         * device/lib/_fsneq.c: added mcs51 assembly version
8000         * device/lib/_fsgt.c: added mcs51 assembly version
8001         * device/lib/_fslt.c: added mcs51 assembly version
8002         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
8003         * device/lib/Makefile.in: add _fscmp to build
8004         * device/lib/libfloat.lib: add _fscmp to build
8005
8006 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
8007
8008         * device/lib/_fs2slong.c: added mcs51 assembly version
8009         * device/lib/_fs2sint.c: added mcs51 assembly version
8010         * device/lib/_fs2schar.c: added mcs51 assembly version
8011         * device/lib/_fs2ulong.c: added mcs51 assembly version
8012         * device/lib/_fs2uint.c: added mcs51 assembly version
8013         * device/lib/_fs2uchar.c: added mcs51 assembly version
8014         * device/lib/_slong2fs.c: added mcs51 assembly version
8015         * device/lib/_sint2fs.c: added mcs51 assembly version
8016         * device/lib/_schar2fs.c: added mcs51 assembly version
8017         * device/lib/_ulong2fs.c: added mcs51 assembly version
8018         * device/lib/_uint2fs.c: added mcs51 assembly version
8019         * device/lib/_uchar2fs.c: added mcs51 assembly version
8020         * device/include/float.h: added #define to select asm vs c
8021
8022 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
8023
8024         * device/lib/printf_fast.c: improvements to float output
8025         * device/include/float.h: add defines for assembly float library
8026         * device/lib/_fsget1arg.c: receive 1 float arg
8027         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
8028         * device/lib/_fsnormalize.c: normalize a float
8029         * device/lib/_fsreturnval.c: return float, various helper routines
8030         * device/lib/_fsrshift.c: right shift a float's mantissa
8031         * device/lib/_fsswapargs.c: swap 2 floats
8032         * device/lib/Makefile.in: build these 6 new files for mcs51
8033         * device/lib/libfloat.lib: add these 6 files to the library
8034
8035 2004-12-26 Borut Razem <borut.razem AT siol.net>
8036
8037         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
8038           built by gcc 3.4.2
8039
8040 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
8041
8042         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
8043           and fully reentrant and register bank neutral.
8044         * device/lib/printf_fast.c: added float (not enabled by default),
8045           added compact/slower integer (also not enabled by default),
8046           improved size/speed of fast integer code, other minor changes
8047         * device/include/stdio.h, device/lib/Makefile.in,
8048           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
8049
8050 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
8051
8052         * src/pic16/pcode.c: declaring variables other than at the start of a
8053           block is not supported in C by VC6.
8054
8055 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
8056
8057         * applied a previous patch from Raphael Neider that wasn't included
8058         in the previous commits, which fixes infinite loops within jumptable
8059         improvements,
8060         * made some fixes that previous patches introduced
8061
8062 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
8063
8064         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
8065         that fixes an issue with AOP_PCODE asmop's offset,
8066         * (pic16_popCopyReg): update instance field too,
8067         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
8068         function of pic port,
8069         * (genCmp, genAnd, genAssign),
8070         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
8071
8072 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
8073
8074         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
8075         variables initial values to idata section,
8076         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
8077         variables in some functions. This utilizes parmBytes field of iCode
8078         structure to hold the offset of the variable in stack. (might be
8079         able to use the stack field too?)
8080         * applied patch from Raphael Neider # ### , # ###
8081         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
8082         variable initial values in idata section,
8083         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
8084         for static variables with initial value
8085         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
8086         applied fix in while loop from Raphael Neider.
8087
8088 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
8089
8090         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
8091         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
8092         * src/ds390/ralloc.c (serialRegAssign): spill bits
8093         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
8094         * support/Util/SDCCerr.c,
8095         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
8096         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
8097         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
8098
8099 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
8100
8101         * device/include/sdcc-lib.h: inserted LGPL, added includes
8102           asm/ds390/features.h and asm/mcs51/features.h
8103         * device/include/asm/default/features.h,
8104         * device/include/asm/gbz80/features.h,
8105         * device/include/asm/z80/features.h: added empty _AUTOMEM
8106           and _STATMEM
8107         * device/include/asm/ds390/features.h,
8108         * device/include/asm/mcs51/features.h: added files with defines for
8109           _AUTOMEM and _STATMEM indicating automatic and static storage class
8110         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
8111         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
8112         * src/SDCCicode.c (geniCodeCast),
8113         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
8114         * src/SDCCloop.c (loopInduction): removed unused variable lr
8115         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
8116           to convertToFcall to include char modulo (RFE 1065037), added check
8117           if left operand is unsigned and use abs of literal value
8118         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
8119           as it doesn't work after conversion from peephole.def to peephole.rul
8120         * src/mcs51/gen.c (toBoolean): added check for size,
8121           (genModOneByte): optimized code for signed char modulo a literal
8122           power of 2 (thanks to Hubert Sack),
8123           (genRRC): removed unnecessary "clr c",
8124           (genRLC): replaced "add a,acc" with cheaper "rlc a"
8125         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
8126           jump optimization,
8127           swapped rules 256.c and 256.d,
8128           extended 256.d by using new multiple checks (thanks Erik),
8129           added rules 256.e and 256.f,
8130           updated rule 261.a and 261.b to new generated code
8131         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
8132
8133 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8134
8135         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
8136           induction related bugs, including first part of bug #1074377
8137
8138 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
8139
8140         * applied patch from bug-report #1076292,
8141         * applied patches for genAnd and Goto-optimizations for Raphael
8142         Neider,
8143         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
8144         dump a less iCode information,
8145         * src/pic16/device.h (pic16_options_t): added field debgen,
8146         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
8147         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
8148         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
8149         puclic,
8150         * (various functions): added macros FENTRY and FENTRY2 to functions,
8151         to emit function prologue,
8152         * (various functions): fixed indentation,
8153         * (genNearPointerGet): fixed loading of FSR0,
8154         * (genPackBits): applied patch from Raphael Neider to fix updating
8155         of FSR0 and touching only the modified bits,
8156         * src/pic16/genarith.c (various functions): added macros FENTRY to
8157         emit function prologue in comments,
8158         * src/pic16/pcode.h: added functions debugf2, debugf3,
8159         * src/pic16/ralloc.c: partial fix for packForPush caused
8160         segmentation fault,
8161
8162 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8163
8164         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
8165           <stsp AT users.sourceforge.net> with reversed byte order
8166         * support/regression/tests/rotate.c: added (ds390 skips some tests)
8167
8168 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8169
8170         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
8171           bug #1074377
8172         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
8173         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
8174
8175 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
8176
8177         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
8178
8179 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8180
8181         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
8182           conditions,
8183           (setFromConditionArgs): friendly operand parser for peephole rules,
8184           (operandBaseName, operandsNotRelated): new peephole condition
8185           "operandsNotRelated" -- similar to "operandsNotSame", but takes
8186           architecture specific register naming into account, handles n-way
8187           comparisons, and supports quoted literals
8188         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
8189
8190 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8191
8192         * src/mcs51/peeph.def: fixed bug #1076940
8193
8194 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
8195
8196         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
8197
8198 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8199
8200         Adding support for replacing ljmps with sjmps in jumptables
8201         generated for switch statements. For now you need to set the
8202         environment variable SDCC_SJMP_JUMPTABLE to enable this.
8203         Now 4 algorithms for mcs51 jumptable generation are used:
8204         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
8205         addresses loaded pc-relative for up to 112 cases and stack-pushing
8206         target addresses loaded with offset from dptr for up to 256 cases.
8207
8208         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
8209         * src/mcs51/main.c: adapted constants for switch table generation
8210         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
8211
8212 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
8213
8214         * device/lib/printf_large.c (_print_format): fixed bug 1073386
8215         * support/regression/tests/bug1057979.c: added test for bug 1073386
8216
8217 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
8218
8219         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
8220         compilers
8221
8222 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
8223
8224         * src/pic16/device.h,
8225         * src/pic16/genarith.c,
8226         * src/pic16/glue.c,
8227         * src/pic16/main.c,
8228         * src/pic16/pcode.c: applied patches #1068154 and #1070213
8229
8230 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
8231
8232         Large cummulative patch for pic16 port.
8233         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
8234         to call when a stack overflow occurs,
8235         * (malloc.h): added CVS Id tag,
8236         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
8237         variable,
8238         * added libc directory. The current version of LibC contains string
8239         functions, ctype functions and macros and some functions of the
8240         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
8241         be extensively tested in the future. Standard disclaimer here.
8242         Library is not automatically build yet. But one can build it by
8243         invoking 'make' inside the libc directory.
8244         * added ADC library under libio. Preliminary version yet.
8245
8246         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
8247         * src/pic16/gen.c (aopForRemat): asmop size is filled by
8248         aopForRemat() now and not by pic16_aopOp(),
8249         * (pic16_popGetTempReg): removed warning messgae when allocating
8250         temporary registers, its a buggy feature and will be removed,
8251         * (pic16_popGet): set register instance field in AOP_CRY,
8252         * (pic16_outBitC): fixed for results in size greater than 1,
8253         * (genUminusFloat): fixed for pic16, ported code from mcs51,
8254         * (pic16_storeForReturn): optimized return of 0,
8255         * (genCmp): experimental code for new genCmp which uses PIC18's
8256         special compare&skip instructions. Initial tests fail some times
8257         with variables grater than 1 byte in size, so new code is disabled,
8258         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
8259         a single bit,
8260         * (genCast): began a fix to optimize the casting of a bit to another
8261         bit, now assigning a bitfield to another bitfield will fail, sorry,
8262         * src/pic16/main.c: disabled the use of lr-support feature,
8263         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
8264         * added some function prototypes, added function _debugf prototype,
8265         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
8266         bits with offset (case PO_GPR_BIT),
8267         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
8268         command line,
8269         * (isBankInstruction): modified to return 0 for no banking instruction,
8270         and 1 for banking instruction,
8271         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
8272         caused stop processing pCodes after a inline assembly block,
8273         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
8274         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
8275         registers when it shouldn't,
8276         * src/pic16/ralloc.c (allocReg): add preliminary support for
8277         supporting a limited set of temporary registers,
8278
8279 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8280
8281         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
8282           genDataPointerSet): ensure assignments always copy in MSB to LSB
8283           order,
8284           (loadRegFromAop): recognize CLRH optimization,
8285           (genFunction): optimize RECEIVE iCodes in reentrant functions
8286
8287 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8288
8289         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
8290           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
8291           selected.
8292         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
8293         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
8294           contiguous with data
8295
8296 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8297
8298         * device/lib/_gptrget.c (_gptrget),
8299         * device/lib/_gptrgetc.c (_gptrgetc),
8300         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
8301           instead of sjmp to ret
8302         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
8303           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
8304
8305 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
8306
8307         * .version: bumped version to 2.4.7
8308         * device/lib/_gptrget.c (_gptrget): is now _naked
8309         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
8310         * device/lib/_gptrput.c (_gptrput): is now _naked
8311         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
8312           (createFunction): fixed xstack
8313         * src/SDCCglue.c (emitMaps): set allocation required for bit area
8314         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
8315           or bit either,
8316           (geniCodeCritical): store original interrupt state in an iTemp bit
8317           var unless stack-auto
8318         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
8319         * src/SDCCmain.c (setIncludePath): added include/target to search path
8320         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
8321         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
8322           prototype,
8323           (processFuncArgs): put bit vars in bit area
8324         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
8325           unsaveRBank): fixed xstack,
8326           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
8327           (genFunction, genEndFunction): fixed xstack,
8328           (genAssign): optimization don't walk backwards through mem
8329         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
8330         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
8331         * support/regression/Makefile: also make library (for stack-auto) when
8332           making "all" and added "test-mcs51-xstack-auto"
8333         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
8334         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
8335         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
8336         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
8337         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
8338           make-library by MAKE_LIBRARY
8339         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
8340           regression tests for xstack
8341         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
8342         * support/regression/tests/critical.c: test for critical on mcs51
8343
8344 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8345
8346         * support/regression/ports/ucz80/spec.mk: use include and lib files from
8347           built version of sdcc instead of installed version
8348
8349 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
8350
8351         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
8352         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
8353           vprintf.c now
8354         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
8355         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
8356           WARNING: remove device/lib/build/z80/printf.o by hand when
8357           updating from previous build!
8358         * device/lib/z80/printf.c: updated comment
8359         * support/regression/tests/bug1057979.c: test all ports now
8360         * support/regression/tests/bug1065458.c: file added
8361
8362 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8363
8364         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
8365           *_start and *_end symbols for static functions
8366
8367 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
8368
8369         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
8370           and search crt0.o in all library paths,
8371           (setIncludePath): proper handling of --nostdinc,
8372           (setLibPath): proper handling of --nostdlib
8373         * support/regression/Makefile,
8374         * support/regression/ports/ds390/spec.mk,
8375         * support/regression/ports/gbz80/spec.mk,
8376         * support/regression/ports/hc08/spec.mk,
8377         * support/regression/ports/mcs51/spec.mk,
8378         * support/regression/ports/mcs51-large/spec.mk,
8379         * support/regression/ports/mcs51-stack-auto/spec.mk,
8380         * support/regression/ports/z80/spec.mk: use include and lib files from
8381           built version of sdcc instead of installed version
8382         * doc/sdccman.lyx: fixed typo in --nostdinc
8383
8384 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
8385
8386         * src/pic/pcode.c,
8387         * src/pic/device.c,
8388         * src/pic/ralloc.c,
8389         * src/pic/gen.c : added support to generate code for struct bit fields.
8390
8391 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
8392
8393         * as/xa51/xa_version.h,
8394         * device/include/errno.h,
8395         * device/include/regc515c.h,
8396         * device/lib/_itoa.c,
8397         * device/lib/_ltoa.c,
8398         * device/lib/ser_ir_cts_rts.c,
8399         * sim/ucsim/xa.src/glob.cc,
8400         * sim/ucsim/xa.src/inst_gen.cc,
8401         * sim/ucsim/xa.src/xa_bit.cc,
8402         * sim/ucsim/xa.src/xa_sfr.cc,
8403         * sim/ucsim/z80.src/inst_dd.cc,
8404         * sim/ucsim/z80.src/inst_fdcb.cc,
8405         * support/scripts/keil2sdcc.pl,
8406         * src/pic16/pic16.dsp,
8407         * src/pic16/pic16a.dsp: corrected cvs line endings
8408         * device/lib/printf_large.c: fixed bug 1057979
8409         * src/pic16/gen.c: fixed non-C standard code
8410         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
8411         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
8412         * support/regression/ports/mcs51/support.c: reload T1 asap
8413         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
8414           pdata use and clear idata startup behaviour
8415         * support/regression/tests/bug1057979.c: added
8416
8417 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
8418
8419         * device/examples/ds390/ow390/ad26.h,
8420         * device/examples/ds390/ow390/cnt1d.h,
8421         * device/examples/ds390/ow390/crcutil.c,
8422         * device/examples/ds390/ow390/ownet.h,
8423         * device/examples/ds390/ow390/owsesu.c,
8424         * device/examples/ds390/ow390/swt12.h,
8425         * device/examples/ds390/ow390/swtoper.c,
8426         * device/examples/ds390/ow390/temp10.h,
8427         * device/examples/ds390/ow390/thermodl.c,
8428         * device/examples/ds390/tinitalk/tinitalk.dsp,
8429         * device/examples/ds390/tinitalk/tinitalk.dsw,
8430         * device/examples/mcs51/clock/hw.h,
8431         * device/examples/mcs51/simple2/go.bat,
8432         * device/examples/serialcomm/windows/serial.h,
8433         * device/examples/xa51/dummy.c,
8434         * device/examples/xa51/hello.c,
8435         * device/include/80c51xa.h,
8436         * device/include/at89x051.h: corrected cvs line endings
8437
8438 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
8439
8440         * src/pic16/main.c (options): added command line --gstack, to trace
8441         stack over/under flows,
8442         * added pragma 'wparam' to allow passing first byte of function
8443         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
8444         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
8445         call to __gstack_test function and sets up the symbol as extern,
8446         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
8447         * popaop): added call to pic16_testStackOverflow,
8448         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
8449         wparamList list,
8450         * (genCall, genPcall): now all parameters are passed via stack
8451         except in functions that are pass to wparam pragma in which WREG is
8452         used too,
8453         * (genPcall): REENTRANT flag is checked to see if variable prototype
8454         contains reentrant keyword, don't call a non-reentrant function, via
8455         a reentrant function pointer or vice versa, functions are never
8456         passed via WREG,
8457         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
8458         D.Winkler,
8459         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
8460         SIGSEGV when accessing a NULL register stucture,
8461         * (pic16_printGPointerType): modified to handle UPPER modifier for
8462         function initializers, changed prototype of function to simpler one,
8463         * (pic16_printIvalFuncPtr): check to see if function is already
8464         added in externs list,
8465         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
8466         optimized a move from W to SFR with a move to the same register
8467         later after a CALL,
8468         * device/lib/pic16/debug: NEW directory, contains debug features
8469         which are enabled when linking with libdebug.lib, currently command
8470         line option --gstack enables stack pointer tracing for over/under
8471         flow, corresponding sources are in debug/gstack
8472
8473 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
8474
8475         * doc/sdccman.lyx: updated SDCC version,
8476         * (PIC16 port): update list of command line options,
8477         * src/pic16/device.h (structure pic16_options_t): added field gstack
8478         to enable stack overflow tracing on push/pops,
8479         * src/pic16/device.c (statistics structure): added statistics
8480         structure,
8481         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
8482         pic16_dump_int_registers): increase statistics counters for each
8483         * variable which is encountered
8484         * (pic16_dump_usection): emit each .udata variable to its own udata
8485         section,
8486         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
8487         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
8488         parameters via stack, otherwise use old scheme,
8489         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
8490         assembler output file,
8491         * src/pic16/main.c: added command line options --gstack to enable
8492         push/pop tracing for stack overflow,
8493         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
8494         instructions): added size of each instruction,
8495         * (pic16_countInstruction): estimate size of instructions in
8496         the_pFile list, inline assembly blocks are not counted,
8497         * (pic16_FixRegisterBanking): trace previous register usage, when
8498         banksel optimizations is greater than 0, don't emit a redudant
8499         banksel directive,
8500
8501 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
8502
8503         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
8504         * src/pic16/ralloc.c : applied same fix for pic16.
8505         * src/pic/gen.c : tidied it up a little.
8506
8507 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8508
8509         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
8510         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
8511
8512 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8513
8514         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
8515
8516 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8517
8518         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
8519         non-reentrant function __modsint in the interrupt function (thus
8520         corrupting math operations during serial I/O)
8521         * device/lib/ser_ir.c: as above, changed buffersize
8522         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
8523         256.c,d for zeroing
8524         * doc/Makefile: added option -t for rsync
8525
8526 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8527
8528         * src/SDCCast.h (struct ast),
8529         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
8530
8531 2004-10-20 Borut Razem <borut.razem AT siol.net>
8532
8533         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
8534         package
8535
8536 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
8537
8538         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
8539         makefile targets,
8540         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
8541         support functions to replace long sequences of MOVFF's from access
8542         bank registers to stack and vice versa,
8543         * src/pic16/device.h: added new field opt_flags, where optimization
8544         flags can be set to enable certain features,
8545         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
8546         * pBlock, (genFunction, genEndFunction): surroung loop for
8547         saving/loading used registers in stack with PC_INFO pCodes,
8548         INF_LREGS. Code in between can then be optimized by pCode optimizer
8549         to support function calls,
8550         * (genDataPointerSet): fixed bug which loaded float fields in
8551         structures with corrupt data,
8552         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
8553         in a standard way debug info on stderr. Feature used for developing
8554         and debugging only,
8555         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
8556         obsolete chunks of code,
8557         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
8558         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
8559         * pic16/src/pcode.c (pic16_newpCodeInfo,
8560         * (pic16_newpCodeOpLocalRegs),
8561         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
8562         feature,
8563         * (pic16_pCodeConstString): printing of the initial value of a
8564         symbol as a comment is inhibited since parsing was already done by
8565         copyStr and output is corrupt,
8566         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
8567
8568 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8569
8570         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
8571
8572 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
8573
8574         * as/mcs51/lkarea.c: removed old K&R style,
8575           (lnksect): changed check on boundary error,
8576           (lnksect2): changed check on boundary error,
8577           (lnksect2): extend XSTK to end of page if size = 1
8578         * as/mcs51/lkmain.c: removed old K&R style,
8579           (Areas51): create l_IRAM symbol
8580         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
8581         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
8582           model-mcs51-stack-auto, added model-mcs51-xstack-auto
8583         * device/lib/_mullong.c: added version to be compiled with xstack
8584         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
8585         * device/lib/mcs51/crtxclear.asm: clear pdata as well
8586         * device/lib/mcs51/crtxstack.asm: fixed comment
8587         * src/SDCCglue.c: maxInterrupts defaults to 0,
8588           (emitMaps): added pdata,
8589           (createInterruptVect): (re)moved default,
8590           (glue): added pdata,
8591           (glue): moved __start__xstack to XSTK with default size 1
8592         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
8593           and options.float_rent when options.stackAuto is set,
8594           (linkEdit): only write XDATA_NAME if provided on command line
8595         * src/SDCCmem.h,
8596         * src/SDCCmem.c: added pdata
8597         * src/port.h: added pdata_name to PORT
8598         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
8599           (saveRegisters, unsaveRegisters): removed usage of B,
8600           (genMinus): fixed accumulator clash,
8601           (genJumpTab): added comment, this needs another look
8602         * src/mcs51/gen.c: added check for "B in use" paranoia,
8603           added pushB() and popB()
8604         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
8605           chance
8606         * src/avr/main.c,
8607         * src/ds390/main.c,
8608         * src/hc08/main.c,
8609         * src/mcs51/main.c,
8610         * src/pic/main.c,
8611         * src/pic16/main.c,
8612         * src/xa51/main.c,
8613         * src/z80/main.c: (reset_regparms) made void parameter explicit and
8614           added PSEG (PAG,XDATA) or NULL to port specifier
8615         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
8616         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
8617           (_mcs51_genInitStartup): removed __start__xstack equ,
8618           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
8619         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
8620         * src/z80/gen.c (_rleAppend): fixed warnings
8621         * support/regression/tests/zeropad.c: added pdata test
8622         * .version: bumped to 2.4.6
8623
8624 2004-10-17 Borut Razem <borut.razem AT siol.net>
8625
8626         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
8627         as a part of nightly build
8628
8629 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
8630
8631         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
8632         WREG holds the first byte function parameters,
8633         * (aopForSym): take special case for symbols which are in FARSPACE
8634         but in CODESPACE too,
8635         * (assignResultValue): modified to take into account _G.useWreg,
8636         * (genCall): don't use wreg for parameter passing when function is
8637         declared as reentrant, too, added optimization INCF to stack
8638         pointer when stack parameter count is 1,
8639         * (genFunction, genEndFunction): refurnished and fixed to not using
8640         wreg for passing parameters when function has varargs or is
8641         reentrant, fixed bug with symbol name compare for generating
8642         functions in absolute address,
8643         * (pic16_storeForReturn): refurnished,
8644         * (genCmp): began writing a new version of the function, not ready
8645         yet, therefore it is disabled,
8646         * (genAssign): do not read code memory when assigning a function to
8647         a pointer function,
8648         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
8649         array of characters, not pointer,
8650         * (pic16initialComments): in debug mode emit an .ident directive for
8651         the assembler,
8652         * (_process_pragma): emit a new warning type (internal to pic16)
8653         when setting stack to default length, emit a similar warning when
8654         placing a function at absolute address and address is not word aligned
8655         * (_pic16_parseOptions): added 'return TRUE' statement,
8656         * (_pic16_linkEdit): if compiling a source, then add the source's
8657         file object, first in the list of objects to link,
8658
8659 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
8660
8661         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
8662         * src/pic/main.c : removed VC warning.
8663         * src/pic/gen.c : changed comment.
8664
8665 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
8666
8667         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
8668         reference to a deprecated symbol _GPTRREG was causing failure to
8669         link. Thanks G. M. Gallant for the info.
8670
8671 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
8672
8673         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
8674         comments for Bugs item #954788.
8675
8676 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
8677
8678         * src/pic16/device.c (pic16_dump_gsection,
8679         * pic16_groupRegistersInSection): handle symbols declared to be in
8680         access bank differently,
8681         * src/pic16/gen.c (struct _G): added field resDirect,
8682         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
8683         send values read from stack directly to result and don't allocate
8684         temporary values,
8685         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
8686         same registers,
8687         * (pic16_sameRegsOfs): NEW,
8688         * (freeAsmop): if _G.resDirect is set then do not mark registers as
8689         free because they were not allocated from temporary pool,
8690         * pic16_popRegFromString): workaround to fix a problem with
8691         allocating variables twice or never,
8692         * (genGenPointerGet): using PRODL instead of FSR0H,
8693         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
8694         instead of FSR0H,
8695         * (genAssign): take advantage of the _G.resDirect flag,
8696         * (genCast): around line 11844, use mov2f instead of directly
8697         MOVFF'ing between operands to account for literal values,
8698         * src/pic16/genutils.c: some new debug functions for gpsim have been
8699         added,
8700         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
8701         float with integer part only,
8702         * src/pic16/main.c (_process_pragma): handle pragma udata access to
8703         place variables in access bank
8704         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
8705         updated sources to reflect recent changes in gen.c
8706
8707 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
8708
8709         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
8710         sources that searched for headers in installation path, now the
8711         device/include/pic16 is used,
8712         * src/pic16/glue.c (pic16glue),
8713         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
8714         .line directives if not in debug mode, this suppresses assembler's
8715         warnings for ignored directives
8716
8717 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
8718
8719         * src/port.h: made reset_regparms prototype void parameter explicit.
8720         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
8721         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
8722         * doc/sdccman.lyx: documented warning disabling and how to use
8723           printf_large to make it print floats.
8724         * device/include/stdbool.h: NEW
8725         * device/lib/_atof.c,
8726         * device/lib/_divuint.c,
8727         * device/lib/_divulong.c,
8728         * device/lib/expf.c,
8729         * device/lib/printf_large.c,
8730         * device/lib/sincosf.c,
8731         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
8732         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
8733           a completely reentrant lib.
8734
8735 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
8736
8737         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
8738         * device/include/pic16/stdio.h: fixed bug with colon
8739
8740 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
8741
8742         * device/include/pic16/stdio.h,
8743         * device/include/pic16/stdlib.h,
8744         * device/include/pic16/math.h: NEW
8745         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
8746         declared as _naked to reduce overhead
8747         * device/lib/Makefile.in (target port-specific-objects-pic16):
8748         changed * to *.* so to ignore the CVS directory,
8749         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
8750         stacked variables back in stack,
8751         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
8752         corruption
8753
8754 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
8755
8756         * .version: bumped version number to 2.4.5
8757         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
8758         * support/Util/SDCCerr.c (messages structure): added entry for
8759         W_POSSBUG2
8760
8761         Large cumulative patch for pic16 port and libraries.
8762         * device/include/pic16/sdcc-lib.h,
8763         * device/include/pic16/stdarg.h,
8764         * device/include/asm/pic16/features.h,
8765         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
8766         * device/include/pic16/float.h: changes reentrant keyword with
8767         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
8768         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
8769         updated target build-libraries to include objects from gptr,
8770         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
8771         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
8772         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
8773         all function headings,
8774         * src/SDCCmain.c: added global parameter userIncDirsSet,
8775         * (parseCmdLine): when option -I is encountered add directory to
8776         userIncDirsSet too,
8777         * src/version.awk: added space between control and long,
8778         * src/pic16/NOTES: added some notes for the port,
8779         * src/pic16/gen.c: added prototype for mov2fp function,
8780         * (fReturnpic16[]): properly named return value registers,
8781         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
8782         * (aopForSym): added code to handle symbols with onStack flag set,
8783         symbols onStack are allocated PTRSIZE bytes,
8784         * (aopFreeAsmop): handles special case where asmops are stack objects,
8785         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
8786         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
8787         added argument lock to trace flaws in allocating temporary registers
8788         when developing port,
8789         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
8790         * (pic16_popRegFromString): reenabled allocating a direct register
8791         from string,
8792         * (assignResultValue): various beautifications,
8793         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
8794         referenced function argument,
8795         * (genIpush): reenabled to allow stacked arguments, handles only
8796         ic->parmPush iCodes,
8797         * (genCall, genPcall): major changes to allow for variable argument
8798         functions, fixed a bug with falsely restoring stack pointer after
8799         returning from call,
8800         * (genFunction): pending code for critical function,
8801         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
8802         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
8803         * (genNearPointerGet): fixed bug with indirect reading, was always
8804         reading from INDF0
8805         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
8806         pointers,
8807         * (genAddrOf): rewrote code to take address of a stacked function parameter
8808         * (genCast): fixed casting to generic pointer type,
8809         * src/pic16/gen.h: added AOP_STA,
8810         * (struct asmop): added field stk,
8811         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
8812         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
8813         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
8814         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
8815         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
8816         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
8817         generic pointers,
8818         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
8819         and library paths,
8820         * (pic16_port structure): generic pointer size is set to 3,
8821         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
8822         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
8823         compiler warning,
8824         * src/pic16/ralloc.c (allocReg): prevent allocating register when
8825         operand is an iTemp,
8826
8827 2004-09-24 Martin Helmling <mh AT octo-soft.de>
8828
8829         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
8830         * debugger/mcs51/simi.c: addapt new syntax of s51
8831
8832 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
8833
8834         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
8835         * src/pic16/pcode.c: commented out some calls to free() in order to
8836         fix bug #989576,
8837
8838 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8839
8840         * src/SDCCicode.h,
8841         * src/SDCCicode.c (isiCodeInFunctionCall),
8842         * src/avr/ralloc.c (selectSpil),
8843         * src/pic/ralloc.c (selectSpil),
8844         * src/pic16/ralloc.c (selectSpil),
8845         * src/ds390/ralloc.c (selectSpil),
8846         * src/hc08/ralloc.c (selectSpil),
8847         * src/xa51/ralloc.c (selectSpil),
8848         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
8849         stack in the middle of a function call sequence (fixes bug #1020268)
8850         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
8851         costs associated with the minimum switch case.
8852
8853 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8854
8855         * src/SDCC.lex: fixed bug #1030549
8856
8857 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8858
8859         * src/SDCCcse.h (struct cseDef),
8860         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
8861         over a function call if the CSE is derived from a symbol whose
8862         address has been taken (fixes bug #1029883)
8863         * support/regression/tests/bug-1029883: a new regression test for
8864         this bug
8865
8866 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8867
8868         * src/hc08/gen.c (emitinline): fixed bug #1029778
8869         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
8870         to a cast object is no longer a syntax error ("fixes" bug #1030006,
8871         and starts toward RFE #905167)
8872
8873 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
8874
8875         * src/pic16/gen.c (mov2f): New function to move an operand to
8876         another without considering if it is a literal or a register,
8877         * (pic16_sameRegs): don't check if they are both AOP_REG,
8878         * (AccRsh): removed andmask=0 lines,
8879         * (genLeftShift): duplicated to be improved in future versions,
8880         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
8881         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
8882         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
8883         * (pic16initMnemonics): added initialization for POC_INFSNZW,
8884         * (insertBankSwitch): fixed inserting banksel directives algorithm
8885         for instructions that follow a skip instruction, this fixes a report
8886         for broken subtraction code generation,
8887         * src/pic16/ralloc.c (deassignLRs): do not free register if current
8888         iCode is a left op, just in case result and right share the same
8889         registers
8890
8891 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8892
8893         * src/hc08/main.c,
8894         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
8895         preservation of HX
8896         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
8897         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
8898         on 2004-09-12; it was buggy
8899
8900 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
8901
8902         * src/SDCCsymt.h: removed RESULT_CHECK
8903         * src/SDCCast.c,
8904         * src/SDCCglue.c,
8905         * src/SDCCval.c,
8906         * src/pic/glue.c,
8907         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
8908
8909 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
8910
8911         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
8912         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
8913         configuration values no more rejected by compiler, they are assigned
8914         to configuration registers with a warning message instead,
8915         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
8916         the for-loop so last conf register is emitted too,
8917         * (_pic16_initPaths): link library libsdcc.lib by default,
8918         * (_hasNativeMulFor): modified test for multiplication according to
8919         Raphael Neider's remarks. Integer multiplication is also done with
8920         support functions,
8921         * device/include/pic16/pic18fregs.h: corrected type error in while
8922         testing and including 18f6720 header file
8923
8924 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
8925
8926         * src/pic16/device.h (pic16_options): removed field use_crt,
8927         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
8928         until an optimization to handle single bits is added,
8929         * (pic16_loadFSR0): moved before genUnpackBits,
8930         * (genAnd): some white lines removed,
8931         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
8932         leave_reset flags in pic16_options when using crt modules,
8933
8934 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
8935
8936         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
8937           for bugs 898889 & 979599. Also used some safer print instructions.
8938
8939 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
8940
8941         * src/pic16/device.h (pic16_options_t): added field use_crt,
8942         crt_name, no_crt,
8943         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
8944         catch a probable future bug,
8945         * src/pic16/gen.c: aopIdx function commented out,
8946         * (genAssign): commented out old code which used aopIdx,
8947         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
8948         code, added if conditionals to take into account the --use-crt
8949         command line options,
8950         * src/pic16/main.c (pic16_optionsTable): added new command line
8951         options, --use-crt= and --no-crt,
8952         * (_pic16_linkEdit): now the proper crt object is added in the
8953         linker command line except than when --no-crt is specified,
8954         * src/pic16/pcode.c,
8955         * src/pic16/pcode.h: added some structures and functions for a new
8956         optimization scheme to compansate for instruction overhead between
8957         same iCodes, this scheme is currently under development and is not
8958         working in any way,
8959         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
8960         to && operator,
8961         * device/lib/pic16/startup/crt0i.c,
8962         * device/lib/pic16/startup/crt0iz.c: added global char variable
8963         __uflags to force the generation of an idata section
8964
8965 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
8966
8967         * doc/Makefile,
8968         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
8969         * doc/sdccman.lyx: updated sdcc version to 2.4.4
8970
8971 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8972
8973         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
8974         Frieder) and clarified the default code optimization mode
8975
8976 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8977
8978         * src/SDCC.lex (doPragma, process_pragma),
8979         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
8980         "opt_code_size", and "opt_code_balanced"
8981         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
8982         regrouped options by category, added support for category headers
8983         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
8984         and "--opt-code-size"
8985         * doc/sdccman.lyx: documented these new options and pragmas
8986         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
8987         preference into account
8988
8989 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
8990
8991         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
8992           geniCodePreDec): Fixed bug 904237 by generating a warning
8993         * src/SDCCerr.h,
8994         * src/SDCCerr.c: added warning W_SIZEOF_VOID
8995
8996 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
8997
8998         * src/pic/device.c : When no max ram set validate full memory range.
8999         * src/pic/pcode.c,
9000         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
9001
9002 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
9003
9004         * device/lib/_gptrget.c,
9005         * device/lib/_gptrput.c: updated comment
9006         * device/lib/calloc.c,
9007         * device/lib/free.c,
9008         * device/lib/malloc.c,
9009         * device/lib/realloc.c: added LGPL, made them reentrant-safe
9010         * src/SDCCcse.c (cseBBlock),
9011         * src/SDCCicode.c (printOperand, geniCodeArray),
9012         * src/SDCCicode.h (struct operand): fixed bug 868103
9013         * support/regression/tests/bug-868103.c: added
9014         * src/SDCCast.c (searchLitOp),
9015         * src/SDCCcse.h (struct cseDef),
9016         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
9017         * src/SDCCicode.h (struct operand),
9018         * src/SDCCsymt.h (struct sym_link),
9019         * src/avr/gen.c (hasInc),
9020         * src/ds390/gen.c (hasInc),
9021         * src/hc08/gen.c (genPlusIncr, hasInc),
9022         * src/mcs51/gen.c (hasInc),
9023         * src/pic16/glue.c (pic16_printIvalChar),
9024         * src/pic16/ralloc.c (regWithIdx),
9025         * src/xa51/gen.c (hasInc) : removed warnings
9026         * src/SDCCast.c (createBlock): added comment ???
9027         * src/hc08/ralloc.c: updated comments
9028
9029 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9030
9031         * doc/sdccman.lyx: updated section on switch statements, added
9032         section about semaphore locking
9033         * doc/Makefile: added option -info for latex2html
9034         * device/lib/_gptrget.c,
9035         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
9036
9037 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
9038
9039         * src/pic/device.h,
9040         * src/pic/device.c,
9041         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
9042          maxram is less than 0x100.
9043
9044 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
9045
9046         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
9047
9048 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9049
9050         * src/port.h,
9051         * src/mcs51/main.c,
9052         * src/ds390/main.c,
9053         * src/z80/main.c,
9054         * src/hc08/main.c,
9055         * src/pic/main.c,
9056         * src/pic16/main.c,
9057         * src/avr/main.c,
9058         * src/xa51/main.c
9059         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
9060         a jump table is the best form for a switch statement, including
9061         automatic insertion of missing cases to make the case range
9062         continuous. Developed in collaboration with Frieder Ferlemann.
9063
9064 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9065
9066         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
9067         accumulator result if it needs sign extension
9068
9069 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9070
9071         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
9072
9073 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9074
9075         * device/lib/gbz80/printf.c,
9076         * device/lib/z80/printf.c: removed define for NULL
9077
9078 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9079
9080         * as/xa51/xa_link.c,
9081         * device/examples/ds390/ow390/ad26.c,
9082         * device/examples/ds390/ow390/cnt1d.c,
9083         * device/examples/ds390/ow390/counter.c,
9084         * device/examples/ds390/ow390/ds2480.h,
9085         * device/examples/ds390/ow390/ds2480ut.c,
9086         * device/examples/ds390/ow390/findtype.c,
9087         * device/examples/ds390/ow390/gethumd.c,
9088         * device/examples/ds390/ow390/owllu.c,
9089         * device/examples/ds390/ow390/ownetu.c,
9090         * device/examples/ds390/ow390/swt12.c,
9091         * device/examples/ds390/ow390/swtloop.c,
9092         * device/examples/ds390/ow390/temp.c,
9093         * device/examples/ds390/ow390/temp10.c,
9094         * device/examples/ds390/ow390/thermo21.c,
9095         * device/examples/ds390/ow390/tinilnk.c,
9096         * device/examples/ds390/ow390/tstfind.c,
9097         * device/examples/serialcomm/windows/serial.cpp,
9098         * device/examples/serialcomm/windows/test_serialcomm.cpp,
9099         * device/include/reg51.h: fixed line endings for cvs
9100
9101 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9102
9103         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
9104         packRegsForAccUse, packRegisters): new accumulator register
9105         packing algorithm
9106         * support/regression/ports/hc08/support.c (_putchar): suppress
9107         warning of unused variable
9108         * src/SDCCicode.c: added SWAP entry to codeTable
9109
9110 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
9111
9112         * device/lib/sprintf.c: forgot to add this file before previous commit
9113
9114 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
9115
9116         * src/pic16/gen.c (genPackBits): added operand right in function
9117         parameters, load result directly if p_type is POINTER (that is
9118         called by genNearPointerSet)
9119         * (genUnPackBits): added operand left in function parameters,
9120         * (genNearPointerGet, genNearPointerSet): prevent the loading of
9121         FSR0 if accessing bitfields,
9122
9123 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
9124
9125         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
9126           _print_format; updated printf, sprintf, vsprintf
9127         * device/include/asm/default/features.h: corrected comment/define
9128         * device/lib/Makefile.in: added sprintf.c
9129         * device/lib/libsdcc.lib: added sprintf module
9130         * device/lib/printf_large.c,
9131         * device/lib/vprintf.c,
9132         * device/lib/sprintf.c: totally refactored printf_large and vprintf
9133           into these 3 files
9134         * support/regression/Makefile: changed ALL_PORTS into a usefull default
9135         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
9136         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
9137           hc08 test
9138         * support/regression/tests/zeropad.c: define idata as data for hc08
9139
9140 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9141
9142         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
9143         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
9144         labels are referenced at least once (even if a reference is not found)
9145         * src/hc08/gen.c (emitcode): set isComment flag for comments
9146         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
9147         loads), rules 6a..6b (optimize jumps to return)
9148
9149 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9150
9151         * device/lib/acosf.c (acosf),
9152         * device/lib/asinf.c (asinf),
9153         * device/lib/atanf.c (atanf),
9154         * device/lib/ceilf.c (ceilf),
9155         * device/lib/cosf.c (cosf),
9156         * device/lib/coshf.c (coshf),
9157         * device/lib/cotf.c (cotf),
9158         * device/lib/fabsf.c (fabsf),
9159         * device/lib/floorf.c (floorf),
9160         * device/lib/log10f.c (log10f),
9161         * device/lib/logf.c (logf),
9162         * device/lib/sinf.c (sinf),
9163         * device/lib/sinhf.c (sinhf),
9164         * device/lib/sqrtf.c (sqrtf),
9165         * device/lib/tanf.c (tanf),
9166         * device/lib/tanhf.c (tanhf),
9167         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
9168         replaced all instances of "reentrant" in the library functions
9169         defined in math.h with this macro.
9170         * support/regression/tests/float_trans.c: reenabled test for hc08
9171
9172 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
9173
9174         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
9175         erroneously deleted
9176
9177 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9178
9179         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
9180         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
9181         multi-byte volatile operands are used
9182         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
9183         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
9184         initialization to area GSINIT0 so that it would always precede
9185         any static initializers in GSINIT
9186         * support/regression/tests/zeropad.c: fixed idata define for hc08
9187         * support/regression/tests/bug-927659.c,
9188         * support/regression/tests/float_trans.c: disabled tests for hc08
9189         pending missing library routines
9190         * .version: increased version number to 2.4.4 - hc08 port now passes
9191         regression tests
9192
9193
9194 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
9195
9196         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
9197         * Makefile.common.in,
9198         * as/Makefile,
9199         * as/hc08/Makefile.in,
9200         * as/mcs51/Makefile.in,
9201         * as/z80/Makefile.in,
9202         * debugger/mcs51/Makefile.in,
9203         * device/include/Makefile.in,
9204         * device/lib/Makefile.in,
9205         * doc/Makefile,
9206         * link/Makefile,
9207         * link/z80/Makefile.in,
9208         * packihx/Makefile.in,
9209         * sim/ucsim/main_in.mk,
9210         * sim/ucsim/avr.src/Makefile.in,
9211         * sim/ucsim/doc/Makefile.in,
9212         * sim/ucsim/gui.src/serio.src/Makefile.in,
9213         * sim/ucsim/hc08.src/Makefile.in,
9214         * sim/ucsim/s51.src/Makefile.in,
9215         * sim/ucsim/xa.src/Makefile.in,
9216         * sim/ucsim/z80.src/Makefile.in,
9217         * src/Makefile.in,
9218         * support/cpp2/Makefile.in,
9219         * support/librarian/Makefile,
9220         * support/makebin/Makefile: added DESTDIR to the install path proposed
9221         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
9222         * doc/sdccman.lyx: added DESTDIR documentation
9223
9224 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
9225
9226         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
9227         instruction for interrupt handlers, use fast returns when returning
9228         from high priority interrupts
9229
9230 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9231
9232         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
9233         code generation
9234         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
9235         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
9236         bugs, ported much of Bernhard's code from mcs51
9237         * src/mcs51/gen.c (genSend),
9238         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
9239         than one when calling a reentrant function
9240         * device/lib/_mullong.c: defined an alternate struct layout for big
9241         endian ports (hc08)
9242
9243 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9244
9245         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
9246         test
9247
9248 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9249
9250         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
9251         are sane and complete before asking the port its prefered parameter
9252         passing method (fixes bug #1017633)
9253         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
9254         and _ret3
9255
9256 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9257
9258         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
9259         problem in bitfields >= 8 bits.
9260
9261 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9262
9263         * src/SDCCsymt.c: undid changes that were not meant to be committed
9264
9265 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9266
9267         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
9268
9269 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9270
9271         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
9272           copied and wrong bit got inverted
9273
9274 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9275
9276         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
9277         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
9278         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
9279         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
9280         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
9281         assignments to bitfields at known addresses
9282         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
9283         reads from bitfields at known addresses
9284         * src/hc08/ralloc.c (packRegisters),
9285         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
9286         genhc08Code): optimize pointer get values used as conditionals
9287         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
9288         and branch
9289
9290 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9291
9292         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
9293         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
9294         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
9295         as conditionals
9296
9297 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9298
9299         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
9300
9301 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9302
9303         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
9304         related problems
9305
9306 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
9307
9308         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
9309
9310 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9311
9312         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
9313         mcs51 port
9314
9315 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
9316
9317         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
9318
9319 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9320
9321         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
9322         cases use more compact code.
9323
9324 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
9325
9326         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
9327
9328 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9329
9330         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
9331
9332 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9333
9334         * src/SDCCsymt.h,
9335         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
9336         parameter of changePointer() from symbol* to sym_link*
9337         * src/SDCCast.c (decorateType): call changePointer() for CAST op
9338         * src/SDCCsymt.c (compareType): void* type is castable to other
9339         pointers, but not necesarily an exact match.
9340         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
9341         is no longer blindly treated as an exact match.
9342         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
9343
9344 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
9345
9346         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
9347
9348 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
9349
9350         * src/pic/gen.c,
9351         * src/pic/pcode.c,
9352         * src/pic/ralloc.h,
9353         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
9354
9355 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
9356
9357         * src/pic/device.c,
9358         * src/pic/device.h,
9359         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
9360
9361 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9362
9363         * src/mcs51/gen.c (emitcode): fixed bug #992819
9364
9365 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
9366
9367         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
9368           there's no need to make it worse
9369
9370 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9371
9372         * src/mcs51/ralloc.c (deassignLR),
9373         * src/ds390/ralloc.c (deassignLR),
9374         * src/hc08/ralloc.c (deassignLR),
9375         * src/z80/ralloc.c (deassignLR),
9376         * src/pic/ralloc.c (deassignLR),
9377         * src/pic16/ralloc.c (deassignLR),
9378         * src/avr/ralloc.c (deassignLR),
9379         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
9380         rlivePoint): fixed another part of bug #971834
9381
9382 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9383
9384         * src/z80/main.c: enabled "critical" keyword
9385         * src/z80/mappings.i,
9386         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
9387         functions (fixes bug #979646)
9388         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
9389
9390 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9391
9392         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
9393           such as c:\mydir.
9394
9395 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
9396
9397         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
9398           doesn't disable too much optimizations
9399
9400 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
9401
9402         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
9403
9404 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
9405
9406         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
9407
9408 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
9409
9410         * src/pic/gen.c tidied up tabs
9411         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
9412         * src/pic/main.c tidied up tabs
9413         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
9414         * src/pic/pcoderegs.c tidied up tabs
9415         * src/pic/ralloc.c tidied up tabs
9416
9417 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
9418
9419         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
9420         to S_FIXED for pic16 port and when symbol is not in level 0,
9421         allocate for S_REGISTER storage class and pic16 port, too,
9422         * src/pic16/device.h: prototype for checkSym,
9423         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
9424         * (pic16_assignConfigWordValue): test the value and the mask to
9425         validate that the value is suitable for the configuration word,
9426         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
9427         collect extern declared symbols, don't emit symbol twice, check
9428         first if symbol is in publics set first,
9429         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
9430         * added command line '--fstack' which enables an experimental
9431         feature for stack access, too buggy to be used yet...
9432         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
9433         * (pic16_allocDirReg): when register has storage class S_REGISTER
9434         allocate in pic16_dynAccessRegs,
9435         * device/include/pic16/pic18f????.h: modified configuration word
9436         naming convention, words started as CONFIG0H but should be CONFIG1H
9437
9438 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
9439
9440         * device/include/mcs51reg.h: fixed bug 970993
9441
9442 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
9443
9444         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
9445         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
9446         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
9447         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
9448         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
9449         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
9450           error/warning numbers,
9451           added function setWarningDisabled()
9452         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
9453         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
9454           _memcmp.c _memmove.c calloc.c realloc.c free.c
9455         * support/regression/tests/malloc.c: added tests for new functionality
9456         * support/regression/tests/zeropad.c: added tests for truncated initializers
9457           and initialized char arrays starting with '\x0'
9458         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
9459
9460 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
9461
9462         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
9463
9464 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9465
9466         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
9467         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
9468         peephole 177.e. Thanks to anonymous
9469
9470 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
9471
9472         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
9473         function isn't used in the source but referenced as a
9474         variable initializer then declare it as extern in .asm file
9475
9476 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
9477
9478         * .version: increased version number to 2.4.3
9479
9480         Adding version extension according to ChangeLog CVS revision
9481         * src/Makefile.in (target all): added dependency 'version.h'
9482         * (rule version.h): added rule to create version.h from ChangeLog,
9483         * (rule dep): added dependency version.h,
9484         * src/version.awk: AWK script to create version.h
9485         * src/SDCCdwarf2.c (dwWriteModule),
9486         * src/SDCCglue.c (initialComments),
9487         * src/SDCCmain.c (printVersionInfo): modified to write after
9488         version string the version extension number,
9489         * src/SDCCutil.c: included "version.h"
9490         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
9491         number,
9492         * src/SDCCutil.h: added prototype for getBuildNumber
9493
9494         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
9495         includeDirsSet, too,
9496         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
9497         const char [] is found in function prototype...
9498
9499         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
9500         moving to WREG with source is already in WREG,
9501         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
9502         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
9503         * (aopForSym): stack'ed symbols are partially supported, added
9504         if-clause to support symbols in FARSPACE,
9505         * (sameRegs): added test for AOP_ACC to see if registers are same,
9506         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
9507         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
9508         * (pic16_popRegFromString): will not allocate a new register if it
9509         doesn't find one by name, bug may have introduced...
9510         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
9511         * (genIpush): revived to use pic16 port's stack,
9512         * (genAddrOf): added incomplete case for stack'ed operand,
9513         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
9514         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
9515         can handle multibyte operands,
9516         * src/pic16/glue.c (pic16_printIval*): some debug info added,
9517         * (pic16initialComments): added message for MPLAB compatibility
9518         mode enabled,
9519         * src/pic16/main.h: prototype for pic16_mplab_comp,
9520         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
9521         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
9522         * (_pic16_linkEdit): NEW, handles link stage, transferred here
9523         because of increased complexity of procedure,
9524         * (_process_pragma): stack pragma changed to format 'stack pos len',
9525         emit symbol '_stack_end' to conform with gplink,
9526         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
9527         to search for register,
9528         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
9529         PO_GPR_REGISTER,
9530         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
9531         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
9532         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
9533         case for PO_GPR_REGISTER,
9534         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
9535         dies, the new era is ahead !...
9536         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
9537         pic16_dynInternalRegs,
9538         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
9539         * (pic16_allocDirReg): minor optimizations and bug fixes,
9540         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
9541
9542         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
9543         load stack and frame pointer with address of 'stack_end' symbol
9544
9545 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
9546
9547         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
9548         without source code but only variable initializers
9549
9550 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
9551
9552         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
9553         external are not declared as extern to reduce overhead while linking
9554
9555 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
9556
9557         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
9558
9559 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
9560
9561         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
9562           Yee Keat for the patch
9563         * src/SDCCast.c (decorateType): fixed bug #979599
9564         * src/ds390/gen.h: removed local fReturnSizeDS390
9565         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
9566         * src/ds390/gen.c (genAnd, genOr, genXor),
9567         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
9568
9569 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
9570
9571         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
9572         add relFilesSet to $3, manipulate $2 to handle linking of object
9573         files without source files in command line,
9574         * device/include/pic16 (all headers): added ID location macros,
9575         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
9576         entries for ID location bytes,
9577         * (pic16_assignIdByteValue): NEW,
9578         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
9579         added field dumpcalltree to pic16_options_t,
9580         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
9581         is used instead of pic16_Gstack_base_addr, check if (ifx) before
9582         emitting rFalseIfx label after check_carry label,
9583         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
9584         pic16_emitDIRegs), NEW
9585         * (pic16glue): dump .calltree file when option --calltree found,
9586         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
9587         * (_pic16_genAssemblerPreamble): emit ID locations after
9588         configuration registers,
9589         * (pic16_linkCmd): modifications of the link command,
9590         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
9591         * (pic16_pCodeInitRegisters): don't init stack registers,
9592         * (pic16_findPrevInstruction): fixed bug,
9593         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
9594         bug with immediate registers,
9595         * (buildCallTree): traces stack push and pop,
9596         * (pct2): dump also stack usage for each function,
9597         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
9598         * (pic16_allocDirReg): various modifications,
9599         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
9600         fixed to 1,
9601
9602 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
9603
9604         * src/pic16/pcode.c: removed buggy double colon
9605
9606 2004-07-01 Borut Razem <borut.razem AT siol.net>
9607
9608         * support/scripts/sdcc.nsi: added include/pic16 to setup
9609
9610 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
9611
9612         * device/lib/Makefile.in: fixed bug in target objects-pic16,
9613         * device/lib/pic16/Makefile: prefixed with dash (-) command under
9614         target 'clean',
9615         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
9616         specific command line arguments. Also added sample lkr script
9617         for placing a variable at a specific memory bank.
9618         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
9619         at a specific memory bank,
9620         * (pic16_dump_isection): fixed bug which caused string literals to
9621         be omitted when dumping idata section,
9622         * (pic16_groupRegistersInSection): added code to handle registers
9623         in specific memory banks,
9624         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
9625         public, all references are renamed too,
9626         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
9627         AOP_DPTR2,
9628         * (pic16_storeForReturn): added case to handle when dest is WREG,
9629         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
9630         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
9631         pic16_rel_udata, check to see if that register is marked as being
9632         a member of a specific memory bank,
9633         * (pic16_printIvalCharPtr): added code to add string literals either
9634         to code or the idata sections,
9635         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
9636         also accept the 'udata' pragma,
9637         * src/pic16/main.h: new structure types sectName and sectSym
9638         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
9639         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
9640         * (pic16_findPrevInstruction): fixed, it returned nothing,
9641         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
9642         instruction combinations,
9643         * (pic16_FixRegisterBanking): heavily reorganised,
9644         * (pic16_AnalyzeBanking): if generating banksel directives is
9645         disabled, then don't call FixRegisterBanking at all,
9646         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
9647         completely removed,
9648         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
9649
9650 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
9651
9652         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
9653         Phuah Yee Keat <yk.phuah AT nestac.com>
9654
9655 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
9656
9657         * src/pic16/glue.c (pic16createInterruptVect): function now emits
9658         correctly the IVT even if it is relocated to some other location
9659
9660 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
9661
9662         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
9663         * device/include/pic16/pic18f2220.h: NEW,
9664         * device/lib/pic16/libdev/pic18f2220.c: NEW,
9665         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
9666         * src/pic16/device.c (struct Pics16): added info for 18f2220,
9667         * src/pic16/device.h (struct pic16_options): added ivt_loc and
9668         nodefaultlibs, ivt_loc is the location of the interrupt vector
9669         table, and nodefaultlibs signs that default libraries should not be
9670         linked in link stage,
9671         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
9672         according to --ivt-loc argument,
9673         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
9674         when pragma stack is found,
9675
9676 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9677
9678         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
9679         256 (range check), 257 (do while), 258.a-f (bit banging
9680         f.e. on 3-wire SPI bus)
9681
9682 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9683
9684         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
9685         variables used exclusively within a loop
9686
9687 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
9688
9689         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
9690
9691 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9692
9693         * src/SDCClrange.c (computeClash): fixed bug #971834
9694
9695 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9696
9697         * src/mcs51/gen.c (genCmp): fixed bug #975903
9698         * src/hc08/gen.c (operandsEqu),
9699         * src/ds390/gen.c (operandsEqu),
9700         * src/z80/gen.c (operandsEqu),
9701         * src/pic/gen.c (operandsEqu),
9702         * src/pic16/gen.c (operandsEqu),
9703         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
9704         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
9705
9706 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9707
9708         * src/SDCCcse.c (cseBBlock): fixed bug #966963
9709
9710 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
9711
9712         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
9713         default case in switch statement,
9714         * glue.c (pic16_initPointer): expr is initialised via decoarteType
9715         to eliminate problem with initialisation of pointers, but problem
9716         still exists,
9717         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
9718         * (emitStaticSegment): removed various lines emitting debug info,
9719         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
9720         added processor registers for utilizing EEPROM,
9721         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
9722         configurable and set 8
9723
9724 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
9725
9726         * .version: increased version number to 2.4.2,
9727
9728         Cumulative patch for pic16 port
9729         * src/pic16/device.c: changed scheme to dump initial values for
9730         variables in idata segment, all print_idata* functions were removed,
9731         now the pic16_printIval* will be called,
9732         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
9733         * _pic16_printPointerType, pic16_printPointerType,
9734         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
9735         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
9736         NEW, similar to the respective functions in SDCCglue.c,
9737         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
9738         way, emitting hex bytes,
9739         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
9740
9741 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9742
9743         * src/avr/ralloc.c (serialRegAssign),
9744         * src/xa51/ralloc.c (serialRegAssign),
9745         * src/pic/ralloc.c (serialRegAssign),
9746         * src/pic16/ralloc.c (serialRegAssign),
9747         * src/hc08/ralloc.c (serialRegAssign),
9748         * src/z80/ralloc.c (serialRegAssign),
9749         * src/ds390/ralloc.c (serialRegAssign),
9750         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
9751
9752 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9753
9754         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
9755         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
9756
9757 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
9758
9759         Cumulative patch for pic16 port:
9760         * src/pic16/device.h (typedef PIC16_device) modified fields for
9761         defining microcontrollers,
9762         * src/pic16/device.c: added new info for all devices in Pics16 array,
9763         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
9764         to be optimised out by the pCode optimiser,
9765         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
9766         specially, bug reported by G.M. Gallant,
9767         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
9768         as force'd so that cannot be optimised out by pCode optimiser,
9769         * src/pic16/pcode.c,
9770         * src/pic16/pcodepeeph.c,
9771         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
9772         they are disabled by default, but can be enabled explicit with
9773         command argument --denable-peeps, for testing,
9774         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
9775         --pomit-ivt in COMPILE_FLAGS
9776
9777 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
9778
9779         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
9780           compilation on MSVC
9781
9782 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
9783
9784         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
9785
9786 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9787
9788         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
9789         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
9790
9791 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
9792
9793         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
9794         would only assign 0x300001 register.
9795
9796 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
9797
9798         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
9799         in COMPILE_FLAGS. Thanks to G. Gallant for report.
9800
9801 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9802
9803         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
9804         for ds80c400
9805         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
9806         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
9807         added peephole 254 (left shift), 255 (jump table)
9808
9809 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
9810
9811         * device/lib/Makefile.in: removed comment line with model-pic16,
9812         * (target port-specific-objects-pic16): the libraries and objects
9813         are copied to the build directory form the device/lib/pic16/bin
9814         directory
9815
9816         Cumulative patch concerning pic16 port:
9817         * library directory has been re-organized,
9818         * added support for PIC18F1220,
9819         * added headers and library sources for chips 18f1220,18f6520,
9820         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
9821
9822         * configuration registers setting has changed, now each supported
9823         device has a complete description of the registers it uses,
9824         * all initialisations are moved to idata sections, these section
9825         can be absolute or relocatable,
9826         * fixed initialisation of codespace variables,
9827         * fixed warning about PCLATU and gpsim,
9828         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
9829         * (genAssign): use table reads when assigning from variables in codespace,
9830         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
9831         char/int variables placed in codespace,
9832         * (pic16_emitConfigRegs): NEW, emits a list with configuration
9833         registers set in .asm file, no need for --pomit-config-words anymore,
9834         * (pic16glue): some 8051 legacy segments are commented out
9835         (to be removed completely),
9836         * added support for alternative assembler and linker with --asm=
9837         and --link= command line arguments,
9838         * peepholes are disabled automatically in the port, no need to
9839         specify on command line,
9840         * port supports natively char/int/long multiplication, but converts
9841         all divisions to support functions,
9842         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
9843         to the file set in variable $2,
9844         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
9845         strings in ASCII format and not in hex,
9846         * ralloc.c (serialRegAssign): added a triplet of conditional calls
9847         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
9848         allocate proper register if iCodes aren't temporary,
9849
9850 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
9851
9852         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
9853
9854 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
9855
9856         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
9857         is commented out
9858
9859 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9860
9861         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
9862         computed address is reused
9863         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
9864         multi-byte bitfields
9865
9866 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
9867
9868         * src/z80/gen.c: (genArrayInit): must check for pointers too
9869
9870 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
9871
9872         * support/regression/tests/zeropad.c: never meant to commit the
9873           nestedstruct test: removed, added check for GCC version
9874
9875 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
9876
9877         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
9878         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
9879         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
9880           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
9881           bugs 928906 and 954082 half-empty initializers
9882         * src/SDCCsymt.h,
9883         * src/SDCCsymt.c (getAllocSize): added for above fix
9884         * src/z80/gen.c (genArrayInit): fixed bug 741044
9885         * support/regression/tests/zeropad.c: added tests
9886
9887 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
9888
9889         * src/pic16/device.c (pic16_dump_section): corrected bug which
9890         caused some symbols of the libraries to be misplaced
9891
9892 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
9893
9894         * src/pic16/glue.c,
9895         * src/pic16/ralloc.h,
9896         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
9897         to fix conflict with pic port
9898
9899 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
9900
9901         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
9902         externs configuration variables,
9903         * src/pic16/ralloc.h,
9904         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
9905         prototype in header, commented out some debug messages
9906
9907 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
9908
9909         * src/pic16/glue.c,
9910         * src/pic16/main.c,
9911         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
9912         for gpasm COFF object generation. Thanks to D. Hawkins for
9913         his patch info
9914
9915 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9916
9917         * src/ds390/main.c,
9918         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
9919         Brock for spotting this)
9920         * src/ds390/gen.c (genEndFunction),
9921         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
9922         interrupt handler and critical. Disable push/pop optimizations when
9923         peephole optimizations disabled.
9924
9925 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
9926
9927         Updated pic16 library sources and headers.
9928         * device/lib/pic16/pic18f*/ ,
9929         * device/include/pic16/*.h: modified to handle structured SFR
9930         definitions
9931
9932 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
9933
9934         * src/port.h (PORT structure): added hook initPaths, now each
9935         port can declare its own default search paths,
9936         which can been seen with the --print-search-dirs option,
9937         see pic16 port for example,
9938         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
9939         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
9940         * (doPrintSearchDirs): NEW, replaces in a central manner the
9941         printing of search dirs which was split in set*Paths functions,
9942         * (main): added call to port->initPaths and doPrintSearchDirs,
9943         * src/avr/main.c,
9944         * src/ds390/main.c,
9945         * src/hc08/main.c,
9946         * src/izt/i186.c,
9947         * src/izt/tlcs900h.c,
9948         * src/mcs51/main.c,
9949         * src/pic/main.c,
9950         * src/pic16/main.c: modified port structures to reflect addition of
9951         initPaths hook,
9952
9953         * src/pic16/device.c (regCompare): registers are finally sorted by name,
9954         * (pic16_dump_section): for registers in same address reserve memory once,
9955         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
9956         to no_banksel,
9957         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
9958         result is greater in size than right or left,
9959         * (pic16_genUMult8X8_8): there are some cases where the result can
9960         be 16 bits size, so handle these,
9961         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
9962         * (pic16_outBitC): modified to emit pcodes,
9963         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
9964         or not,
9965         * (genDivOneByte): implemented algorithm to divide 8-bits,
9966         * (genCmp): uncommented goto, but issues still exist,
9967         * (genAnd): fixed a bug with variables >8bits,
9968         * (genPackBits): optimization added that uses BCF/BSF to change a
9969         single bit,
9970         * (genAssign): fixed bug when assigning floating point literals,
9971         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
9972         __sdcc_gsinit_startup label,
9973         * src/pic16/main.c (_pic16_init): removed search directory
9974         initialisations,
9975         * (_pic16_initPaths): NEW, used to initialise search directories,
9976         * (_hasNativeMulFor): support functions for all except char/int
9977         multiplication, and char division,
9978         * (PIC16_port struct): modified entry for native mul support,
9979         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
9980         no_banksel option,
9981         * (buildCallTree): call to register_usage is ifdef'ed out,
9982
9983 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9984
9985         * device/include/string.h: applied Stas Sergeev's patch to make this
9986         header file compatible with the preprocessor -Wundef option
9987         * src/SDCCmain.c (main): abort compilation if preprocessor reports
9988         failure (fixes bug #941458)
9989
9990 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9991
9992         * src/SDCCopt.c (killDeadCode): fixed bug #907733
9993         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
9994         that the variable, not the function, should be static
9995         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
9996         to be consistent with non-literal case
9997
9998 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9999
10000         * src/SDCCast.c (isConformingBody): fixed bug #949967
10001         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
10002         convilong): fixed bug #952086
10003
10004 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10005
10006         * src/SDCCmem.c (allocVariables): fixed bug #955321
10007
10008 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10009
10010         * src/hc08/main.c (_hc08_genAssemblerEnd),
10011         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
10012         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
10013         completely eliminated the use of a temporary file
10014         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
10015         when more than one file linked
10016         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
10017
10018 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10019
10020         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
10021         which fixes bug #543481
10022         * support/regression/tests/bug-751703.c: fixed comments left from a
10023         cut and paste error
10024         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
10025         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
10026         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
10027         scopes
10028         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
10029         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
10030         are now changed to underscores in moduleName
10031
10032 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10033
10034         * as/mcs51/lkmem.c: better fix for bug #954173
10035
10036 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
10037         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10038
10039         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
10040         * device/include/c8051f000.h,
10041         * device/include/c8051f120.h,
10042         * device/include/c8051f300.h,
10043         * device/include/c8051f310.h,
10044         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
10045         PWM16) and detab'ed
10046
10047 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10048
10049         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
10050         and mailing lists, doc'ed --no-peep-comments, removed reference
10051         to knoppix (newest version has no LyX/LaTeX), other minor changes
10052         * src/SDCCglue.c (glue): save 2 bytes stack space with
10053         option --main-return. The ljmp could probably be avoided too
10054
10055 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10056
10057         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
10058
10059 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10060
10061         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
10062         * src/SDCCopt.c (isLocalWithoutDef),
10063         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
10064         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
10065         (credit to Maarten Brock for patch #949363, on which this is based)
10066         * support/regression/tests/bug-751703.c: some test cases of extern used
10067         within inner scopes.
10068
10069 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10070
10071         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
10072         SPEC_STRUCT
10073         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
10074         struct definitions
10075         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
10076         dwWriteLabel): fix to create valid debugger symbols even when
10077         the module name has non-alphanumeric symbols in it
10078         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
10079         when a variable's allocation has been optimized away
10080
10081
10082 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10083
10084         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
10085         * src/hc08/main.c,
10086         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
10087         * src/mcs51/main.c,
10088         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
10089         * src/ds390/main.c,
10090         * src/z80/gen.c (z80_emitDebuggerSymbol),
10091         * src/z80/main.c,
10092         * src/pic/gen.c (pic14_emitDebuggerSymbol),
10093         * src/pic/main.c,
10094         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
10095         * src/pic16/main.c,
10096         * src/avr/gen.c (avr_emitDebuggerSymbol),
10097         * src/avr/main.c,
10098         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
10099         * src/xa51/main.c,
10100         * src/SDCCdebug.c (emitDebuggerSymbol),
10101         * src/SDCCdebug.h,
10102         * src/port.h: added a debugger struct to the port struct. Added a
10103         callback for defining debugger symbols
10104
10105         * src/SDCCast.c (createLabel),
10106         * src/SDCC.y (labeled_statement): mark all compiler generated labels
10107         with isitmp = 1
10108         * src/SDCCicode.h,
10109         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
10110         iCode back to the ast for the function
10111
10112         * src/hc08/ralloc.c (hc08_assignRegisters),
10113         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
10114         unneeded fields from the regs struct.
10115         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
10116         pushReg() & pullReg() functions instead of emitcode()
10117
10118         * src/hc08/gen.c (genLabel, genhc08Code),
10119         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
10120
10121         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
10122         debugger hooks
10123
10124         * src/hc08/gen.c (genEndFunction, genhc08Code),
10125         * src/hc08/gen.h,
10126         * src/mcs51/gen.c (genEndFunction, gen51Code),
10127         * src/mcs51/gen.h,
10128         * src/ds390/gen.c (genEndFunction, gen390Code),
10129         * src/ds390/gen.h,
10130         * src/z80/gen.c (genEndFunction, genZ80Code),
10131         * src/z80/gen.h,
10132         * src/z80/z80.h,
10133         * src/pic/gen.c (genEndFunction, genpic14Code),
10134         * src/pic/gen.h,
10135         * src/pic16/gen.c (genEndFunction, genpic16Code),
10136         * src/pic16/gen.h,
10137         * src/avr/gen.c (genEndFunction, genAVRCode),
10138         * src/avr/gen.h,
10139         * src/xa51/gen.c (genEndFunction, genXA51Code),
10140         * src/xa51/gen.h,
10141         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
10142         specific code to cdbFile.c and out of the backend code generators
10143
10144         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
10145         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
10146         starting address is now 0
10147
10148         * as/hc08/asm.h,
10149         * as/hc08/m08pst.c,
10150         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
10151         assembler directive for DWARF support
10152         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
10153
10154         * src/src.dsp,
10155         * src/Makefile.in,
10156         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
10157
10158 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10159
10160         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
10161         and inappropriate peephole optimization in jump tables
10162
10163 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10164
10165         * as/hc08/m08pst.c,
10166         * src/SDCCglue.c: sdccopt works for the hc08 port now
10167
10168 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
10169
10170         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
10171
10172 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10173
10174         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
10175
10176 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10177
10178         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
10179         rules
10180         * src/SDCCmain.c,
10181         * src/SDCCglobl.h,
10182         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
10183         comments from the peephole optimizer replacement rules
10184         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
10185         symbols
10186         * src/SDCCcse.c (updateSpillLocation),
10187         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
10188         equivalents
10189         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
10190         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
10191         objects far pointers
10192
10193 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10194
10195         * src/SDCCsymt.h: a missing part of my last change
10196         * src/pic/ralloc.c (regTypeNum),
10197         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
10198
10199 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10200
10201         * src/SDCCicode.h,
10202         * src/SDCCicode.c (aggrToPtrDclType),
10203         * src/SDCCptropt.h,
10204         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
10205         ptrPseudoSymConvert),
10206         * src/pic/ralloc.c (regTypeNum),
10207         * src/pic16/ralloc.c (regTypeNum),
10208         * src/hc08/ralloc.c (regTypeNum),
10209         * src/ds390/ralloc.c (regTypeNum),
10210         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
10211         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
10212
10213 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10214
10215         * link/z80/lkmain.c (afile),
10216         * as/hc08/lkmain.c (afile),
10217         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
10218         prevent a pointer problem when a filename has no directory and
10219         no extension specified.
10220
10221 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10222
10223         * link/z80/lkmain.c (afile): allow periods in directory names
10224         * link/z80/lkmain.c (afile),
10225         * as/mcs51/lkmain.c (afile),
10226         * as/hc08/lkmain.c (afile): allow linker script file to have an
10227         extension other than ".lnk"
10228         * link/z80/lklex.c (getfid),
10229         * link/z80/lkmain.c (parse),
10230         * as/mcs51/lklex.c (getfid),
10231         * as/mcs51/lkmain.c (parse),
10232         * as/hc08/lklex.c (getfid),
10233         * as/hc08/lkmain.c (parse): Support comments in the linker script
10234         file on lines by themselves and after filenames
10235
10236 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10237
10238         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
10239
10240 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10241
10242         * src/z80/peeph-z80.def: removed some peephole rules that don't
10243         work with multibyte arithmetic (fixed bug #937126)
10244         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
10245         to registers and not global variables
10246         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
10247         geniCodePreInc, geniCodePostDec, geniCodePreDec,
10248         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
10249         checking for assignments not internally generated (fixed bug #931895)
10250         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
10251         structure member (fixed bug #930072)
10252
10253 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10254
10255         * src/SDCCmain.c (linkEdit),
10256         * src/hc08/main.c (_hc08_parseOptions),
10257         * as/hc08/Makefile.in,
10258         * as/hc08/aslink.h,
10259         * as/hc08/asm.h,
10260         * as/hc08/m08pst.c,
10261         * as/hc08/lkrloc.c (relr, rele),
10262         * as/hc08/lkarea.c (lnkarea)
10263         * as/hc08/lkmain.c (afile, parse),
10264         * as/hc08/lkelf.c: support for ELF output
10265         * as/hc08/lks19.c (s19),
10266         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
10267
10268 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10269
10270         * as/mcs51/lkihx.c: Fixed bug #899105.
10271
10272 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10273
10274         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
10275         .dsp files from Unix to DOS.
10276
10277 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10278
10279         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
10280         function pointers; we have been compliant for several months now.
10281         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
10282         change that was accidently commented out
10283         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
10284         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
10285         bug #922319
10286
10287 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10288
10289         * src/hc08/gen.c: output of all of the internal debugging information
10290         is now controlled by the D() macro; it is disabled by default
10291
10292 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10293
10294         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
10295         harder to keep the same registers during a CAST iCode
10296         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
10297         long via int can be done in a single cast, if the signedness is
10298         correct.
10299         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
10300         putchar() in tinibios.c in ds390's library
10301
10302 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
10303
10304         * src/SDCCast.c (decorateType): fixed bug #898889,
10305         cast result of a literal complement too
10306         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
10307         fixed check for bitfields
10308
10309 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
10310
10311         * src/SDCCicode.c (geniCodeLogic): made it static,
10312         (geniCodeLogicAndOr): added in order to fix bug #905492,
10313         (ast2iCode): fixed bug #905492
10314         * support/regression/tests/bug-905492.c: added
10315         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
10316         (processParms): fixed bug #927659: don't copy parms, this will clear
10317         decorated flag
10318         * support/regression/tests/bug-927659.c: added
10319
10320 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
10321
10322         * src/SDCCast.c (addCast): don't cast float to char
10323         * device/lib/libsdcc.lib: added _memmove
10324
10325 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
10326
10327         * device/lib/large/Makefile: fixed parallel execution by
10328         replacing `make` by `$(MAKE)`
10329
10330 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10331
10332         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
10333         offsets (fixes bug #923936)
10334
10335 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
10336
10337         * device/lib/small/Makefile: fixed parallel execution by
10338         replacing `make` by `$(MAKE)`
10339
10340 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
10341
10342         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
10343
10344 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
10345
10346         * src/pic/gen.c (genCpl): multi-byte complements were not working.
10347         * src/regression/Makefile: Regression test was not running.
10348
10349 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
10350
10351         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
10352         complement if possible
10353         * src/SDCCval.c (valComplement),
10354         * src/SDCCicode.c (operandOperation): fixed complement of literal
10355         * support/regression/tests/onebyte.c (testComplement): added
10356
10357 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
10358
10359         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
10360         return an optimized tree; actually replace actParm with the new tree
10361         * src/SDCCast.h: added some parantheses to remove side effects
10362         * support/regression/tests/bug-920866.c
10363
10364 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
10365         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
10366         Bit operands were not being handled properly in the pic14 port.
10367         (now src/regression/add.c passes again).
10368
10369 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10370
10371         * src/SDCC.y (labeled_statement): case and default no longer require
10372         a following statement (RFE #893037)
10373
10374 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10375
10376         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
10377         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
10378         disabled (fixes bug #916294)
10379         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
10380         "mov a,acc"; patch provided by Lenny Story
10381         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
10382
10383 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10384
10385         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
10386         functions
10387         * src/ds390/gen.c (genFunction, genEndFunction),
10388         * src/ds390/ralloc.c (ds390_assignRegisters),
10389         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
10390         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
10391         pushed if there are parameters passed on the stack. Also, a cleaner
10392         way to decide if r0/r1 should be pushed/popped. (Together they fix
10393         bug #918693)
10394
10395 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10396
10397         * doc/sdccman.lyx,
10398         * device/lib/mcs51/crtpagesfr.asm,
10399         * device/lib/mcs51/crtxinit.asm,
10400         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
10401         to avoid confusion with Si Lab's SFRPAGE register.
10402
10403 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10404
10405         * src/SDCCglue.c (emitMaps): allow public sfr variables
10406         * src/SDCCglue.c (initialComments): include compiler build date
10407         with compiler version and put the timestamp of the generated
10408         assembly file on a serperate line to be less confusing.
10409         * src/port.h: added genInitStartup hook
10410         * src/avr/main.c,
10411         * src/ds390/main.c,
10412         * src/hc08/main.c,
10413         * src/pic/main.c,
10414         * src/pic16/main.c,
10415         * src/xa51/main.c,
10416         * src/z80/main.c: genInitStartup initialize as NULL (default to
10417         historical behaviour)
10418         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
10419         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
10420         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
10421         library instead of hard coding it into the compiler.
10422         * support/regression/ports/mcs51-stack-auto/spec.mk,
10423         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
10424         * device/lib/mcs51/Makefile,
10425         * device/lib/small/Makefile,
10426         * device/lib/large/Makefile,
10427         * device/lib/mcs51/crtpagesfr.asm,
10428         * device/lib/mcs51/crtstart.asm,
10429         * device/lib/mcs51/crtxclear.asm,
10430         * device/lib/mcs51/crtxinit.asm,
10431         * device/lib/mcs51/crtclear.asm,
10432         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
10433         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
10434         and into user configurable files.
10435         * device/lib/clean.mk: clean mcs51 directory too
10436         * support/regression/tests/longlit.c: added static to T1 declaration
10437         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
10438         accesses in the initialization code
10439
10440 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10441
10442         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
10443         OSCTRIMVAL as noted in bug #916008
10444
10445 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10446
10447         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
10448         in loops with multiple exits (reported as incorrect registers
10449         used by Martin Helmling in Sdcc-user list)
10450
10451 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10452
10453         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
10454         made ds390 register extensions look less like error messages
10455
10456 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10457
10458         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
10459         reported by Adam Wozniak in Sdcc-user list
10460
10461 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
10462
10463         * src/SDCCast.c (decorateType): fixed with bug and promotion in
10464         arithmetic optimizations, added debug output
10465
10466 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
10467
10468         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
10469         * sdcc.spec: updated and split sdcc into 3 rpms
10470         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
10471         needed for literals of LEFT_OP and '+'
10472         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
10473         introduced RESULT_TYPE_NOPROM
10474         (geniCodeMultiply): fixed logic for decision if mul is optimized to
10475         left shift
10476         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
10477         limited promotion to int only for '*'
10478         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
10479
10480 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
10481
10482         * src/pic16/gen.c (genSkip),
10483         (genc16bit2lit), (gencjneshort): commented out
10484         (is_LitOp): new helper function, checks operand type
10485         (genCmpEq): rewritten
10486
10487 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
10488
10489         * support/regression/tests/bug-908454.c: added
10490
10491 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
10492
10493         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
10494         * src/SDCCicode.c (usualBinaryConversions): op needs int type
10495         (geniCodeCast): cosmetic, don't preserve bit storage class
10496         (geniCodeLeftShift): added promotion
10497         (geniCodeLogic): fixed regression
10498         * src/SDCCsymt.c (computeTypeOr): accept bits too
10499         (compareType): 2nd part of fix for bug #908454, needed for bitfields
10500
10501 2004-03-07  Borut Razem <borut.razem AT siol.net>
10502
10503         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
10504
10505 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
10506
10507         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
10508         version of pic16_genPackRegisters which does not check if ic is a
10509         CAST operator,
10510         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
10511         function cause string1.c regression test fails
10512
10513 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
10514
10515         * sim/ucsim/configure.in,
10516         * sim/ucsim/configure,
10517         * sim/ucsim/doc/Makefile.in: use docdir
10518         * src/SDCC.y: fixed sbit atrributes
10519         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
10520         * src/SDCCast.c (decorateType): |^& need special promotion handling
10521         * src/SDCCast.h,
10522         * src/SDCCsymt.h: moved definition of RESULT_TYPE
10523         * src/SDCCsymt.h (computeType),
10524         * src/SDCCicode.c: computeType() needs op
10525         * src/SDCCsymt.c (checkTypeSanity),
10526         * doc/sddman.lyx: "plain" bitfields are unsigned
10527         * src/SDCCsymt.c (computeTypeOr): added
10528         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
10529         |^& ops
10530         * src/SDCCval.c (val*): computeType() needs op
10531         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
10532         * support/regression/tests/onebyte.c: added tests for |^&
10533
10534 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
10535
10536         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
10537         for writing icode into asm output.
10538
10539 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
10540
10541         * src/pic16/device.c: added some debug lines enabled
10542         with macro DEBUG_CHECK,
10543         * src/pic16/genarith.c: more debug in genPlus,
10544         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
10545         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
10546         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
10547         * (aopForSym): onStack symbols are re-placed in data memspace,
10548         and onStack flag is cleared,
10549         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
10550         copy temporary pcodeop,
10551         * (genPcall): added warning for not updating PCLATU,
10552         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
10553         always true for pic16 port,
10554         * (genMultOneWord): NEW, supports integer multiplication,
10555         * (genMult): modified to call genMultOneWord,
10556         * (ifxForOp): added warning when return NULL,
10557         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
10558         flag is set before call to operandFromSymbol for implicit
10559         added structures,
10560         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
10561         options.intlong_rent are set by default,
10562         * (_hasNativeMulFor): modified to allow port generation of integer
10563         multiplication,
10564         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
10565         set regtype to REG_SFR for all registers, restricting seting the
10566         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
10567
10568 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10569
10570         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
10571         more than 500 times in the regression tests
10572
10573 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10574
10575         * support/Util/SDCCerr.h,
10576         * support/Util/SDCCerr.c,
10577         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
10578         enumerator_list),
10579         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
10580         for symbol conflicts.
10581         * support/valdiags/tests/enum.c,
10582         * support/valdiags/tests/tentdecl.c,
10583         * support/valdiags/tests/struct.c: expect possible error messages
10584         referring to original symbol definitions.
10585         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
10586         * src/SDCCsymt.h,
10587         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
10588
10589 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
10590
10591         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
10592
10593 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
10594
10595         * src/pic16/ralloc.c (newReg): fixed bug #908929
10596
10597 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10598
10599         * src/ds390/gen.c: added missing #include "main.h"
10600
10601 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
10602
10603         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
10604         checking if symbol is already in set,
10605         * src/pic16/device.h: prototype for checkAddSym,
10606         * src/pic16/gen.c: (_G): added entry interruptvector,
10607         * (assignResultValue): removed some commented out lines,
10608         * (genFunction): check for ISR via sym->type, absolute section for
10609         interrupt code is created via a new pBlock, the goto instruction is
10610         placed now correctly at the interrupt vector position, changed all
10611         references from ivec to _G.interruptvector,
10612         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
10613         is the interrupt is a high priority one, same for return from ISR,
10614         * src/pic16/glue.c: changed all calls of addSetHead for publics and
10615         externs to calls of checkAddSym,
10616         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
10617         pic16_pcode_verbose flag is set,
10618         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
10619         * src/pic16/pcoderegs.c: message about how many registers are saved
10620         will only be emitted if pic16_pcode_verbose flag is set,
10621
10622 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10623
10624         * src/ds390/ralloc.h,
10625         * src/ds390/ralloc.c (ds390_regWithIdx),
10626         * src/ds390/gen.c (emitcode),
10627         * src/ds390/main.h,
10628         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
10629         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
10630         ds390operandCompare, getRegsRead, getRegsWritten,
10631         initializeAsmLineNode): customized instruction size calculation for
10632         ds390, started basis for some register optimizations
10633         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
10634         corresponding assembly output
10635         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
10636         missing push/pop of r0/r1. Optimized push/pops
10637
10638 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10639
10640         * src/mcs51/main.c (instructionSize): fixed ACALL size
10641         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
10642
10643 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
10644
10645         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
10646         the sorting of rlist with NULL elements
10647         * (print_idataType, print_idata): NEW to create idata sections
10648         * src/pic16/device.h: idataSymSet new variable
10649         * src/pic16/gen.c (genFunction): fixed some bugs in string
10650         comparing, improved the absolute section creation for ISRs,
10651         added FSR0L/FSR0H in registers that are saved in an ISR,
10652         * (genInline): fixed the processing of inline snippets,
10653         now they undergo no process by the peephole optimizer
10654         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
10655         are placed in idataSymSet,
10656         * (pic16emitStaticSeg): extern symbols are added in externs,
10657         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
10658         switching when aboslute variables are placed in access bank memory
10659         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
10660         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
10661         commented out with #if,
10662         * (pic16_packRegisters): reintroduce the check for CAST because some
10663         symbols are not correctly handled,
10664         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
10665         pCodeInstruction instead of pCode,
10666         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
10667         pCodeAsmDir definition,
10668         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
10669         directive, then the argument directive is emitted without the leading
10670         tab, hack for inline labels which must be in the first column,
10671         * (compareLabel,pic16_findNextInstruction),
10672         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
10673         * (insertBankSwitch): modified for the new pCodeAsmDir,
10674
10675 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
10676         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
10677
10678         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
10679         instance,
10680         * (pushSide): commented out with #if,
10681         * (assignResultValue): fixed some typos in saving
10682         registers,
10683         * (genPcall): FIXED and sync'ed with genCall,
10684         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
10685         * (genNearPointerGet): fixed to handle some more cases,
10686         implementation scheme via table reads,
10687         * (genConstPointerGet): modified to access code memory correct,
10688         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
10689         and improved to handle some cases
10690         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
10691         instead of "RETLW" for init data
10692         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
10693         not IN_DIRSPACE, work around to reduce bank switching when aboslute
10694         variables are placed in access bank memory (<0x80 and >=0xf80),
10695         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
10696         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
10697         TBLWT_POSTDEC,TBLWT_PREINC
10698         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
10699         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
10700         directives
10701         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
10702         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
10703         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
10704         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
10705
10706 2004-02-29  Borut Razem <borut.razem AT siol.net>
10707
10708         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
10709         support/Util/findme.h, support/Util/system.h: enhance binary relative
10710         search for lib and include by using findProgramPath()
10711
10712 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10713
10714         * src/SDCCpeeph.h,
10715         * src/SDCCpeeph.c (pcDistance),
10716         * src/port.h,
10717         * src/mcs51/ralloc.h,
10718         * src/mcs51/ralloc.c (mcs51_regWithIdx),
10719         * src/mcs51/main.h,
10720         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
10721         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
10722         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
10723         size calculation port specific, started basis for some register
10724         optimizations
10725         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
10726         missing push/pop of r0/r1. Optimized push/pops
10727         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
10728         * device/lib/_modsint.c (_modsint),
10729         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
10730         and stack version so regression tests pass
10731
10732 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
10733
10734         * src/Makefile.in (dep): include SLIBOBJS in dependency check
10735         * src/SDCCast.c (decorateType): catch another small optimization
10736         with '?' operator
10737         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
10738         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
10739         modified to finally use computeType() all over SDCC,
10740         see Feature Request #877103
10741         * src/SDCCval.h: cosmetic
10742         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
10743         valCompare(); regression tested in muldiv.c
10744         * support/regression/tests/muldiv.c (testMod): mod sign follows
10745         dividend only
10746
10747 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
10748
10749         * src/SDCCast.c (decorateType): fixed bug #902362
10750         * doc/INSTALL.txt: fixed install instructions for win32
10751
10752 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
10753
10754         * device/include/Makefile.in (install): fixed by replacing spaces
10755         by tabs
10756         * doc/README.txt,
10757         * doc/INSTALL.txt: updated for release
10758         * doc/sdccman.lyx: added warning for --xstack being buggy
10759
10760 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
10761
10762         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
10763         to eliminate build warnings.
10764         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
10765
10766 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
10767            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
10768
10769         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
10770         removed -penable-stack, added comment for stack pragma, added
10771         warning for not initializing the stack/frame registers, removed
10772         comment at interrupts section
10773
10774         Stack is made permanent, there is no ability to disable stack usage.
10775         * src/pic16/device.h,
10776         * src/pic16/device.c: removed all references to USE_STACK macro,
10777         * src/pic16/device.c (pic16_dump_section): when no elements in
10778         rlist, free rlist before return,
10779         * (pic16_dump_int_registers): NEW, internal registers are a new set
10780         of general purpose registers reused by each function,
10781         * (checkAddReg): returns 1 if registers is added to set,
10782         * (pic16_groupRegistersInSection): when a registers is of type
10783         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
10784         * src/pic16/device.h: memRange and Assigned Memory are deleted,
10785         SRCASECMP macro is moved here from device.c
10786         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
10787         PO_PCLATU, PO_PRODL, PO_PRODH,
10788         * (pic16_pCodeOpType, genMinus,
10789         changed compares to "a" register, with AOP_ACC,
10790         * (pic16_genPlus): fixed some bugs and indented properly,
10791         * (pic16_addSign): changed size to size+offset in the MOVWF
10792         instruction,
10793         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
10794         multiply 8-bit operand by literal, result is 8-bit,
10795         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
10796         multiply 2 8-bit operand, result is 8-bit,
10797         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
10798         genUMult8X*_16,
10799         * src/pic16/gen.c: changed accUse to contain WREG only,
10800         * (pic16_emitcomment): renamed to pic16_emitpcomment,
10801         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
10802         true, do not use immediate addressing any more unless sym is a
10803         pointer in codespace,
10804         * (aopForRemat): do not use immediate addressing when symbol not in
10805         codespace and when symbol's address is requested,
10806         * (aopOp): for-loop in if(sym->accUse) is modified for the new
10807         accUse size (= 1),
10808         * (aopGet): added case for AOP_ACC and don't return "accumulator
10809         bug" but WREG instead,
10810         * (popGetTempReg): pushes contents of temporary register in stack,
10811         * (popReleaseTempReg): pops contents of temporary register from
10812         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
10813         * (pic16_popGet): separated case AOP_ACC to return register WREG
10814         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
10815         or PO_IMMEDIATE and initializes their instance/offset appropriately,
10816         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
10817         the use of immediate pointers to certain cases only.
10818
10819         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
10820         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
10821         * (assignResultValue, genCall, genRet): modified to use the new
10822         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
10823         genPcall is still broken,
10824         * (genFunction): added code to create 'A' type pBlocks when
10825         interrupt functions are generated, code not extensively tested yet,
10826         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
10827         * (genEndFunction): modified so ISRs pop stored registers from stack,
10828         * (genMultOneByte): cleanup,
10829         * (AccRsh): added flag andmask, to and result with appropriate mask,
10830         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
10831         * (genDataPointerGet): fixed and reenabled its use,
10832         * (genNearDataPointerGet): bugs fixed,
10833         * (genDataPointerSet): bugs fixed,
10834         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
10835         pic16_DumpSymbol, pic16_DumpOp,
10836         * src/pic16/genutils.h: function prototypes for the above functions,
10837         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
10838         pointers,
10839         * (pic16emitRegularMap): many many many improvements, but needs a
10840         major cleanup,
10841         * src/pic16/main.c: enable_stack in pic16_options is removed,
10842         * (_pic16_parseOptions): removed command line options -penable-stack,
10843         * (_process_pragma): emit stack symbol only when stack pragma is
10844         processed,
10845         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
10846         redirected to FSR0L/FSR0H pair,
10847         * (pic16_get_op, pic16_get_op2): modifications and improvements,
10848         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
10849         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
10850         for immediates,
10851         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
10852         * (dumpPicOptype): NEW,
10853         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
10854         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
10855         with movff instruction,
10856         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
10857         added pic16_int_regs, some packRegsFor* functions are commented out,
10858         because produce errors,
10859         * src/pic16/NOTES: minor modifications
10860
10861 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10862
10863         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
10864         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
10865         --pack-iram.
10866         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
10867         * as/mcs51/lkaomf51.c: fixed bug #895763
10868
10869 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
10870
10871         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
10872
10873 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10874
10875         * doc/sdccman.lyx: added details about the HC08 storage classes and
10876         interrupts, fixed the register usage info for z80 & gbz80
10877
10878 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
10879
10880         * doc/sdccman.lyx: added more pic16 port documentation
10881         * device/include/pic16/: added header pic18fregs.h
10882
10883 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
10884
10885         * doc/sdccman.lyx: added Vangelis' contribution
10886
10887 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10888
10889         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
10890         extend to the next CALL or PCALL, not just to the next CALL.
10891
10892 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
10893
10894         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
10895
10896 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10897
10898         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
10899         bug #895752 and a better fix for bug #716790
10900
10901 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10902
10903         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
10904
10905 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10906
10907         * doc/sdccman.lyx: minor changes, minor changed
10908
10909 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
10910
10911         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
10912         which can't handle SDCC_NEWONEBYTEOPS,
10913         (geniCodeMultiply): removed conversion from mult to shift for pic14
10914         and pic16
10915
10916 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10917
10918         * src/hc08/gen.h,
10919         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
10920         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
10921         thus fixing bug #895406
10922
10923 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
10924
10925         * device/lib/_modsint.c,
10926         * device/lib/_modslong.c: sign follows divisor only
10927         * src/hc08/gen.c (genMultOneByte): if result size is 1,
10928         signs or signedness can be ignored
10929         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
10930         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
10931         added optimization for IFX,
10932         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
10933         arguments;
10934         reenabled optimization for IFX, which was removed on 2004-01-11
10935         * src/SDCCast.h: added return type IFX
10936         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
10937         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
10938         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
10939         SDCC_OLDONEBYTEOPS selects the old behaviour
10940         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
10941         changed again and commented promotion rule
10942         * src/SDCCval.c (valDiv): promotion no longer necessary
10943         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
10944         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
10945         rewritten
10946         * support/regression/tests/onebyte.c: added
10947
10948 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
10949
10950         * gen.c (genInline): reverted to old code for assemnling inline
10951         code because of bug reported James Chadd
10952
10953 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
10954
10955         * ralloc.h: missing declarations from previous patch,
10956         seems that patch for ralloc.h was never applied, fixed
10957
10958 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
10959            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
10960
10961         * pcode.c,
10962         * pcode.h,
10963         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
10964         indirect addressing. Marked FSR0 as deprecated
10965         * gen.c (pointerCode): commented out, not needed now
10966         (pic16_popGet2p): new MOVFF helper function
10967         (genGenPointerGet),
10968         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
10969         (shiftRLong): removed duplicate debugging info
10970
10971 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10972
10973         * src/ds390/gen.c (genNearPointerGet),
10974         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
10975         optimization with bits, but not bitfields.
10976         * src/ds390/ralloc.c (packRegisters),
10977         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
10978
10979 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
10980
10981         * src/SDCCcse.c (algebraicOpts): copy operands before modification
10982
10983 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10984
10985         * src/SDCCsymt.h,
10986         * src/SDCCicode.c (operandFromSymbol),
10987         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
10988         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
10989         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
10990         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
10991         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
10992         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
10993         bug #892038
10994         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
10995         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
10996         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
10997         * src/SDCCsymt.c (newSymbol),
10998         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
10999         enumerator_list),
11000         * src/SDCCval.h,
11001         * src/SDCCval.c (newiList): fixed bug #885705
11002
11003 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11004
11005         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
11006         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
11007
11008 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11009
11010         * device/include/c8051f120.h,
11011         * device/include/c8051f300.h,
11012         * device/include/c8051f310.h: added/updated header files for Silicon
11013         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
11014         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
11015         in new section Submitting patches
11016
11017 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11018
11019         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
11020         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11021         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11022         genGenPointerSet),
11023         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
11024         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11025         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11026         genGenPointerSet),
11027         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
11028         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11029         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11030         genGenPointerSet),
11031         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
11032         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11033         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11034         genGenPointerSet): fixed bug #892400
11035         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
11036         to eliminate build warnings.
11037         * src/SDCCast.c (processParms),
11038         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
11039         fixed bug 751859
11040         * support/valdiag/valdiag.py: added GCC to the list of defines active
11041         when compiling with gcc
11042
11043 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11044
11045         * support/Util/SDCCerr.h,
11046         * support/Util/SDCCerr.c,
11047         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
11048         with an incomplete type (fixed bug #883734)
11049         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
11050
11051 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11052
11053         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
11054
11055 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11056
11057         * src/SDCCast.c (decorateType),
11058         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
11059         function pointer implementation
11060         * support/regression/tests/funptrs.c: added tests to verify both forms
11061         of function pointers work correctly. Added tests to verify parameters
11062         are passed in the correct order.
11063
11064 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
11065
11066         * device.c (regCompare): registers are sorted by ascending
11067         address and increasing size,
11068         * main.c (_pic16_finaliseOptions): removed the declaration
11069         of compiler macro MCU. Now a macro of the format pic18fxxxx
11070         will be defined from the command line
11071
11072 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11073             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
11074
11075         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
11076         PCOP_RLCF was overwritten!
11077         * gen.c (genSkip): commented out calls to pic16_emitcode,
11078         * (genCmpEQ): fixed "long" compares, only high word did get compared,
11079         * (genlshTwo),
11080         * (genRRC): added debugging info,
11081         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
11082         overwritten while shifting,
11083         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
11084         overwritten while shifting,
11085         * (AccLsh),
11086         * (AccRsh),
11087         * (shiftLLeftOrResult),
11088         * (shiftRLeftOrResult),
11089         * (shiftRLong),
11090         * (shiftLLong): Implemented with pic16_emitpcode
11091         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
11092         * (genLeftShift): Fixed bug, operand for shift by variable always
11093         was "and"ed with 0x0f,
11094         * (genLeftShiftLiteral),
11095         * (genrshTwo),
11096         * (genRightShiftLiteral): added debugging info,
11097         * (genrshFour): added comment,
11098         * (genRightShift): determined signedness from operand "left"
11099         instead of "result"
11100
11101 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11102
11103         * src/SDCCicode.c (geniCodeParms),
11104         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
11105         function pointers, fixed function pointer bugs #861242 and #861896
11106
11107 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11108
11109         * device/include/c8051f000.h,
11110         * device/include/c8051f120.h,
11111         * device/include/c8051f300.h: added header files for Silicon
11112         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
11113
11114 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
11115
11116         * src/SDCCast.c (processParams): added new type flow and restructured
11117         (gatherAutoInit): added new type flow
11118         (addCast): cosmetic changes
11119         (getLeftResultType): added new type flow for array indices, patch
11120         provided by Stas, see FR #877103
11121         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
11122         array index patch by Stas
11123         * src/SDCCast.h: added prototype getResultTypeFromType()
11124         * src/SDCCval.h,
11125         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
11126         * src/pic/glue.c (pic14emitStaticSeg),
11127         * src/pic16/glue.c (pic16emitStaticSeg),
11128         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
11129         for initialization of symbols
11130         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
11131         * support/Util/SDCCerr.h:
11132         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
11133         * .version: bumped version number to 2.3.8
11134         * device/include/Makefile.in (install),
11135         * doc/Makefile (install): changed to 'rm `find ...`' construct to
11136         avoid warnings
11137
11138 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
11139
11140         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
11141         Slade Rich fixed an optimization bug
11142         * src/pic/pcodepeep.c,
11143         * src/pic/pcoderegs.c
11144         * doc/Makefile (install): added test for directory
11145
11146 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11147
11148         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
11149         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
11150         * src/pic/ralloc.c (getRegPtr, getRegGpr),
11151         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
11152         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
11153         * as/mcs51/asexpr.c (term),
11154         * as/hc08/asexpr.c (term): fixed bug #887146
11155
11156 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11157
11158         * src/z80/gen.c (genMult): handle single byte result product
11159         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
11160         DUMMY_READ_VOLATILE (fixed bug #886367)
11161
11162 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
11163
11164         * support/regression/tests/libmullong.c: fixed logic, on little endian
11165         hosts we ended without a mullong_wrapper()
11166
11167 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11168
11169         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
11170         virus/worm forged address usage.
11171
11172 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
11173
11174         Fixed promotion, it should be done on AST level:
11175         * src/SDCCast.c (addCast): added promotion to int
11176         (decorateType): updated call to upCast()
11177         * src/SDCCicode.c (geniCodeLeftShift): removed call to
11178         usualUnaryConversions()
11179
11180 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
11181
11182         * support/regression/tests/literalop.c (mulWrapper): Added a
11183         wrapper to remove integer overflow warnings.
11184
11185         * support/regression/tests/float_trans.c: Made work on host.
11186
11187         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
11188         location of sz80.
11189
11190         * support/regression/generate-cases.py (main): Changed from inline
11191         to a main method.
11192
11193         * doc/Makefile (install): Changed to depth first to get rid of
11194         missing directory install warning.
11195
11196         * as/Makefile (install-doc): Made work on Mac.
11197
11198 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
11199
11200         * src/SDCCast.c: added an additional type flow in decorateType() of
11201         opposite direction, see feature request #860006; it's enabled at runtime
11202         by setting the environment variable SDCC_NEWTYPEFLOW
11203         * src/SDCCast.h: changed prototype of decorateType()
11204         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
11205         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
11206         'char' to 'int' can be omitted, if both operands are 'unsigned char';
11207         see feature request #877103
11208         * src/SDCCval.c: updated call of decorateType()
11209         (valBitwise): fixed bug #882876
11210         (valMinus): added promotion
11211         (valLogicAndOr): result is unsigned
11212         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
11213         * src/SDCCsymt.c (computeType),
11214         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
11215         must not cause an unsigned operation
11216         * src/pic/glue (pic14emitRegularMap),
11217         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
11218
11219 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
11220
11221         * src/pic/pcode.c (PCodeID): commented out left over debug code
11222
11223 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
11224
11225         * support/valdiag/tests/overflow.c: added shift tests
11226         * src/pic/device.c,
11227         * src/pic/gen.c,
11228         * src/pic/gen.h,
11229         * src/pic/glue.c,
11230         * src/pic/main.c,
11231         * src/pic/pcode.c,
11232         * src/pic/pcode.h,
11233         * src/pic/pcodepeep.c,
11234         * src/pic/pcoderegs.c,
11235         * src/pic/ralloc.c,
11236         * src/pic/ralloc.h: applied patch from Slade Rich;
11237         added support for multiple code pages and multiple RAM banks on the
11238         PIC 14 port. The ASM files now no longer simply assume all the
11239         code / RAM are in the same page / bank. This means the linker can
11240         safely allocate code/RAM of separate ASM files to different pages/banks.
11241         * doc/sdccman.lyx: added Slade's tips
11242         * src/mcs51/peeph.def: fixed bug #880768
11243
11244 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11245
11246         * src/hc08/ralloc.c (rematStr): fixed bug #879282
11247         * src/SDCCast.c (decorateType): fixed bug #880197
11248
11249 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
11250
11251         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
11252         getopt.h.
11253
11254         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
11255         strtof is not part of C89 and isn't included with Mac OS X.
11256
11257 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11258
11259         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
11260         shiftL2Left2Result): fixed bug #879326
11261         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
11262         (genMultOneByte): fixed bug in signed vs unsigned multiplication
11263         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
11264         address fetch for clr instruction
11265         * device/lib/hc08/_mulint.c: created optimized assembly version
11266         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
11267
11268 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
11269
11270         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
11271         proposed in FR #877103
11272
11273 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
11274
11275         * src/SDCCval.c (cheapestVal): added missing checks
11276         * src/SDCCicode.c (usualBinaryConversions): fixed condition
11277         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
11278
11279 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
11280
11281         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
11282         equal operands
11283
11284 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
11285
11286         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
11287         loaded with the linker search paths (-L arguments) and the libraries
11288         to be linked with the current source (-l arguments). Changes
11289         currently will affect only the pic16 port.
11290         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
11291         include path the port specific paths and port specific libraries,
11292         * gplink command now contains the $3 argument,
11293         * src/pic16/device.h,
11294         * src/pic16/device.c,: structure PIC_device is made public and
11295         renamed to PIC16_device, the same for variable Pics which is renamed
11296         to Pics16. Updated all references to them.
11297         * src/pic16/glue.c (pic16glue): corrected bug with code
11298         initialization which bypassed the variable initializations block.
11299
11300         * device/lib/pic16/Makefile.rules: removed --penable-stack from
11301         COMPILE_FLAGS and added the --nostdinc option
11302
11303 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11304
11305         * device/include/mc68hc908jb8.h: Register defs for another member
11306         of the hc08 family. Contributed by Bjorn Bringert - thanks!
11307
11308 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
11309
11310         Documenting changes from previous commits.
11311         * configure.in (version 1.56),
11312         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
11313         when generating output files to configure the pic16 library,
11314         but now I've commented it out, since gputils aren't installed in the
11315         SF compile farm, so library won't compile
11316
11317         * device/lib/Makefile.in (version 1.56): initially I've added in
11318         target 'all' the prerequestive 'model-pic16' so it compiled the
11319         pic16 library, but now I've commented it out for the same reasons
11320         above,
11321         * added targets 'model-pic16' and 'objects-pic16' to compile the
11322         library
11323         * added target 'port-specific-objects-pic16' to handle the
11324         generated libraries and copy them into the build/ directory
11325         * added target 'clean-intermediate-pic16' to clean intermediate
11326         files into pic16 directory
11327         * in target 'installdirs' added line to create directory pic16 in
11328         the installation path
11329
11330         * device/include/Makefile.in (version 1.11): in target 'install'
11331         added lines to copy all header files to installation path,
11332         * in target 'installdirs' added line create directory for pic16
11333         headers in the installation path
11334
11335 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
11336
11337         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
11338          a function call
11339
11340 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
11341
11342         * configure,
11343         * device/lib/configure.in,
11344         * device/lib/configure: fixed for autoconf 2.57
11345
11346 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11347
11348         * src/z80/main.c (_parseOptions): fixed the portmode= command line
11349         option so that it actually works. Made it specific to the z80, since
11350         the gbz80 doesn't have these kinds of I/O ports.
11351
11352 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11353
11354         * device/include/z180.h,
11355         * device/lib/_memcpy.c,
11356         * device/lib/_memmove.c,
11357         * device/lib/_mulint.c,
11358         * device/lib/ser_ir.c,
11359         * device/lib/ser_ir_cts_rts.c,
11360         * device/lib/_strcmp.c,
11361         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
11362         * src/z80/main.c (_process_pragma): add support for pragmas bank and
11363         portmode; added deprecation warning for bank= and protmode= forms.
11364         Also, guard against buffer overflow.
11365         * src/z80/gen.c (aopGet): generate better code for sfr banked read
11366
11367 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11368
11369         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
11370         changed interrupt vector table generation to only emit declared vectors.
11371         * device/include/Makefile.in: added missing backslash
11372         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
11373
11374 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
11375
11376         Mainly changes to support compilation of the device libraries
11377         * src/pic16/device.c: stack is allocated via symbol and not
11378         via literal number. The symbol is placed in the corresponding
11379         position of the data ram
11380         * (pic16_dump_section): relocatable and absolute uninitialized
11381         data are now emitted in sorted order to reduce section naming,
11382         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
11383         weren't marked as being in the access bank,
11384
11385 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
11386
11387         Added portion of GNU PIC Library under the directory
11388         device/include/pic16 and device/lib/pic16. These files
11389         contain the declarations of SFRs for the PIC18Fxx2 devices.
11390         The directory is initialized via configure from toplevel.
11391
11392 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
11393
11394         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
11395         the spilllocations to be compared correctly
11396
11397 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
11398
11399         * src/SDCCast.c (decorateType): fixed bug introduced today
11400
11401 2004-01-12  Borut Razem <borut.razem AT siol.net>
11402
11403         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
11404         doc/sdccman.lyx: upper case pragmas are deprecated
11405
11406 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
11407
11408         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
11409         in simpler and even better code
11410
11411 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
11412
11413         * src/SDCCicode.c (operandOperation): fixed bug #874819
11414         * src/SDCCast.c (decorateType): fixed
11415         char foo (unsigned long ul) { return ul > 0; }
11416
11417 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11418
11419         * doc/sdccman.lyx: Moved and added some sections, small changes
11420         all over. Telling LaTeX to be less strict with word spacing
11421         to better keep the right margin. Changed some notes about
11422         maintainance of the ports in section 3.2.1 - is it OK like this?
11423
11424 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
11425
11426         SDCC source changes:
11427         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
11428         convilong): modified to inform the pic16 port that builtin functions
11429         are external
11430
11431         PIC16 PORT specific changes:
11432         * src/pic16/device.c pic16_dump_equates() added,
11433         processor registers declared internally by the port are emitted in
11434         the translation as equates,
11435         * src/pic16/gen.c: inline code is passed unprocessed to the
11436         translation,
11437         * (pic16_popGetLit2): fnuction modified to take second operand as
11438         pCodeOp pointer and not as literal,
11439         * (popRegFromIdx): prefixed with pic16_,
11440         * (pic16_popCombine2): modified to receive already allocated pCode
11441         operands,
11442         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
11443         * (genFunction): initializes local stack frame and pushes on stack
11444         all the registers used by this function,
11445         * (genEndFunction): restores all registers from stack and restores
11446         stack frame,
11447         * src/pic16/glue.c (pic16emitRegularMap): various changes and
11448         improvements,
11449         * (pic16glue): changed the program startup sequence,
11450         * added new dbName code 'A' for functions placed in absolute section
11451         * src/pic16/main.c: added function attribute _naked,
11452         * added pragma 'code' to place a fnuction at an absolute address,
11453         * added command line arguments --debug-ralloc and --pcode-verbose,
11454         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
11455         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
11456         * (pic16_newpCodeOpLit2): modified to take the second operand as
11457         pCodeOp pointer,
11458         * (pic16_printpBlock): modified to emit each function in a separate
11459         section,
11460         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
11461         UPPER for immediate operands,
11462         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
11463         instruction,
11464         * src/pic16/peeph.def: all peepholes with movff are commented out,
11465         because there is a problem in the pcode peep optimizer,
11466         * src/pic16/ralloc.c: the register allocator can now reuse local
11467         function symbols for another function. This saves register usage.
11468         * src/pic16/ralloc.h: added flag isLocal in structure regs,
11469
11470         Added file src/pic16/NOTES with information about program writing on
11471         the current port version.
11472
11473 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11474
11475         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
11476         and peephole 252 (array access)
11477
11478 2004-01-09  Borut Razem <borut.razem AT siol.net>
11479
11480         * src/SDCCmain.c : fixed #872250: -l command line defined library
11481           files are scanned before standard library files
11482
11483 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11484
11485         * src/SDCCast.c (decorateType): fixed bug #874046
11486
11487 2004-01-09  Borut Razem <borut.razem AT siol.net>
11488
11489         * support/scripts/sdcc.nsi: remove previous installation
11490
11491 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11492
11493         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
11494         bytes for last interrupt vector (mcs51)
11495         * sdcc.spec: fixed typo
11496
11497 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11498
11499         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
11500         gen51Code): more efficient parameter receive for --model-large
11501         ("bug" #845294)
11502
11503 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11504
11505         * src/ds390/main.c,
11506         * src/z80/main.c: added missed needLinkerScript flags (more than
11507         one port structure defined in these file)
11508         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
11509         bug #795325
11510
11511 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
11512
11513         * src/SDCCmain.c: removed various references to DEFAULT_PORT
11514         * src/port.h: added flag needLinkerScript in port->linker
11515         structure to inform whether to create a .lnk file or not,
11516         * src/avr/main.c,
11517         * src/ds390/main.c,
11518         * src/hc08/main.c,
11519         * src/mcs51/main.c,
11520         * src/pic/main.c,
11521         * src/pic16/main.c,
11522         * src/xa51/main.c,
11523         * src/z80/main.c: changed appropriately to configure
11524         needLinkerScript flag
11525         * src/pic/gen.c,
11526         * src/pic16/gen.c (genAddrOf): fixed bug #863624
11527         * src/pic/glue.c: added variable udata_section_name to
11528         override default uninitialized data segment definition for
11529         devices only with SHAREBANK memory (reported from Erik Epetrich)
11530         * (pic14emitOverlay): modified to emit a commented overlay segment
11531         directive when no overlay data exist
11532         * (picglue): modified to emit uninitialized data segment
11533         according to udata_section_name
11534         * src/pic/main.c (_pic14_parseOptions): added command line
11535         options --udata-section-name=[name] to override default
11536         udata definition name
11537         * modified _linkCmd and _asmCmd to include compiler passed
11538         arguments via -W option
11539         * src/pic16/main.c: added $l in _asmCmd, changed extension for
11540         object file from '.rel' to '.o' in port->linker structure,
11541         changed size of fptr from 2 to 3 in port structure
11542
11543 2004-01-07  Borut Razem <borut.razem AT siol.net>
11544
11545         * support/scripts/sdcc.nsi: update PATH
11546         * support/scripts/sdcc.ico: craeted
11547
11548 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
11549
11550         * device/include/Makefile.in: fix install
11551         * doc/Makefile: fix install
11552
11553 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11554
11555         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
11556         in bug #860505
11557         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
11558         how the function variable allocation summary is displayed; also
11559         include information about variables allocated to the overlay
11560         segment
11561
11562 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11563
11564         * as/mcs51/lkmain.c: Help about -Y option
11565         * as/mcs51/lkarea.c: Fixed gcc warnings
11566
11567 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
11568
11569         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
11570         fixed warning
11571         * support/valdiag/tests/overflow.c: added
11572         * src/SDCCast.c (decorateType),
11573         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
11574         LEFT_OP (left shift)
11575
11576 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11577
11578         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
11579         (default behaviour).
11580
11581 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11582
11583         A python script to validate compiler diagnostic messages. It can be
11584         used to verify that sdcc complains about bad c source code and
11585         gives a good location of the error.
11586         * support/valdiag/Makefile,
11587         * support/valdiag/valdiag.py,
11588         * support/valdiag/tests/*
11589
11590 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11591
11592         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
11593         * src/SDCCsymt.c (newEnumType),
11594         * src/SDCCsymt.h
11595         * support/Util/SDCCerr.c,
11596         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
11597         enum related bugs.
11598         * support/regression/tests/enum.c: added test for enum values that
11599         require at least 2 bytes of storage.
11600
11601 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
11602
11603         * src/common.h: added ifndef/define/endif macros
11604         around the header file.
11605         Bug reported from Jesus Calvino-Fraga
11606
11607 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
11608
11609         * sdcc.spec: updated
11610         * device/include/Makefile.in: don't install CVS directories
11611         * device/lib/Makefile.in: added removal of CVS directories after install
11612         * doc/Makefile: fixed install, added local_icons
11613         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
11614         * src/mcs51/gen.c (genRightShift): fixed bug #870788
11615         * src/ds390/gen.c (genRightShift): fixed bug #870788
11616         * src/SDCCast.c (decorateType): fixed bug #870781
11617
11618 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
11619
11620         PIC16 port related changes:
11621         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
11622         added variable stackPos,
11623
11624         * gen.c: genCall, assignResultValue: added support for
11625         pushing/retrieving function parameters to/from stack,
11626         genFunction,genEndFunction: setup stack frame for the
11627         generated function,
11628         genAddrOf: will be changed according to bug 863624
11629
11630         * added files genutils.c and genutils.h which contain gen*
11631         debugged and optimised functions extracted from gen.c
11632
11633         * glue.c: added variable 'externs' which holds extern symbols,
11634         pic16emitRegularMap: is modified to properly handle relocatable
11635          symbols under the new scheme,
11636         pic16createInterruptVect: is modified
11637         pic16printPublics: is modified to emit 'global' assembler directives,
11638         added pic16_printExterns to print extern symbols,
11639         pic16glue: initializes stack/frame pointer in the beginning of
11640         the assembly output. Temporary hack, will be corrected later,
11641         because gplink yet does not support stack and SDCC does not
11642         yet support a type of crt0.o object to create the final binary.
11643
11644         * Removed many lines that contain 8051 legacy code.
11645         * The code is finally placed under a 'code' directive.
11646         * Added port specific options.
11647
11648         * _process_pragma: simplified since now we do not need *special*
11649         include file to define SFR registers. But a separate header
11650         will be needed. This will be developed later.
11651         * _pic16_parseOptions: added, parses port specific options:
11652         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
11653         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
11654         --preplace-udata-with=
11655
11656         * _pic16_setDefaultOptions: modified to initialize section names,
11657         but hack is temporarly out of order since it needs improvement.
11658         * _pic16_genAssemblerPreamble: configuration words are emitted by
11659         their address instead of their name. This part is incomplete and
11660         supports only the 18Fxx2 devices. Other devices will emit an error
11661         during assembly since they do not contain the same set of config
11662         registers
11663         * _pic16_genIVT: is modified,
11664
11665         * pcode.c: added definitions for some hardware registers that are needed
11666         for stack support
11667         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
11668         All PCI entries are updated. Now LFSR is supported.
11669         * Removed pic16_pciTRIS is mentioned by mdubuc in source
11670         * added pic16_newpCodeOpLit2 to support instructions with
11671         two literal arguments
11672         * pic16_pCode2str: corrected code that emits assembler instructions
11673         with two literal operands and those that have an access bit modifier
11674         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
11675         this fixes a bug which caused some labels to be lost, when an
11676         assembler directive was added, i.e. banksel,
11677         * pic16_FixRegisterBanking: improved logic that causes the insertion
11678         of bank switching,
11679         * InlineFunction: functions that are called once, are not any more
11680         inlined. This can be a port option in the future,
11681
11682         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
11683
11684         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
11685         hold the corresponding uninitialized symbols,
11686         * pic16_allocProcessorRegister: registers have explicit marked the
11687         accessBank field,
11688         * pic16_allocInternalRegister: registers are explicit marked as
11689         not used,
11690         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
11691         processing list, so bit registers were lost,
11692         *
11693
11694         * ralloc.h: added field 'accessBank' and original symbol operand
11695         in register definition,
11696         * removed the field isMapped from register definition,
11697
11698         ** Several functions have been removed from various sources:
11699         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
11700         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
11701         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
11702         pic16_assignRelocatableRegisters
11703
11704         ** others have been introduced:
11705         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
11706         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
11707
11708 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
11709
11710         * support/scripts/inc2h.pl: changed definition of BIT_AT
11711         to emit 'sbit at' instead of 'bit at'. This was a request.
11712
11713         PIC16 port related preliminary changes:
11714         * gen.c: prefixed function popRegFromString with
11715         pic16_ and all references to it corrected
11716         * pcode.c: all pic16_pc_* hardware registers prefixed
11717         with underscore (_),
11718         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
11719         * ralloc.c: newReg(): when register is REG_SFR then
11720         set address to rIdx,
11721         pic16_allocProcessorRegister(): marks register wasUsed=0
11722         pic16_writeUsedRegs(): added a call to assign processor
11723         registers via pic16_assignFixedRegisters
11724
11725 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11726
11727         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
11728         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
11729         variables in unused register banks.  Also the SSEG is placed
11730         wherever there is enough space for it, and IDATA can be anywhere
11731         in internal RAM.  For now compile using -Wl-Y[stack_size].
11732         The mem file is different for this option as well, since it
11733         makes no sense of talking about DSEG lenght.
11734
11735 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
11736
11737         * src/SDCClrange.c: fixed bug 869095 that caused segfault
11738         in certain cases, e.g. when ROM assignment, patch provided
11739         from Albert den Haan.
11740
11741 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
11742
11743         Many signedness and type propagation fixes:
11744         * src/SDCCicode.c: made geniCodeCast() static
11745         replaced SPEC_ by IS_ (cosmetic)
11746         (operandOperation): fixed div and mod operation
11747         (usualBinaryConversions): added support for promotion of char
11748         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
11749         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
11750         (geniCodeAdd): an array index will stay unsigned, even if promoted
11751         from char to int
11752         (geniCodeArray): ditto
11753         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
11754         * src/SDCCsymt.c (computeType): added more support for char;
11755         promotion of char is selectable by promoteCharToInt, fixed signedness
11756         for all cases
11757         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
11758         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
11759         * src/SDCCval (val*): replaced signedness calculation by
11760         computeType()
11761         rearranged if-branches (cosmetic)
11762         (valShift): added warning W_SHIFT_CHANGED
11763         (valCompare): fixed problem with different types
11764         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
11765         * support/regression/tests/literalop.c: added many cases
11766         * support/regression/tests/ast_constant_folding.c: changed finally to
11767         'unsigned int'
11768         * .version: new year, new version: 2.3.7
11769         * src/SDCCmain.c (main): applied patch #866468
11770         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
11771         provided by Scott Bronson
11772         * doc/sdccman.lyx: updated documentation for sdcdb
11773         updated and added chapter tips
11774
11775 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11776
11777         * src/SDCCsymt.h: missing from yesterday's commits
11778
11779 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11780
11781         * src/SDCC.y (struct_or_union_specifier),
11782         * support/Util/SDCCerr.c,
11783         * support/Util/SDCCerr.h: verify that struct & union tags are used
11784         as declared.
11785
11786 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11787
11788         * src/SDCCglobl.h: missing from yesterday's commits
11789
11790 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11791
11792         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
11793         sft_attributes, struct_declaration, parameter_declaration,
11794         type_name, start_block, declaration_list),
11795         * src/SDCC.lex (check_type): support redefinition of typedef names
11796
11797 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11798
11799         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
11800         aligned xdata arrays. Erik helped me with the if clause.
11801
11802 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11803
11804         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
11805         warning
11806
11807 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11808
11809         * src/SDCCast.h,
11810         * src/SDCCast.c (newAst_),
11811         * src/SDCCicode.h,
11812         * src/SDCCicode.c (ast2iCode, newiCode),
11813         * src/SDCCglobl.h,
11814         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
11815         expr, statement, expression_statement, selection_statement,
11816         iteration_statement, expr_opt, jump_statement): foundation for tracking
11817         sequence points
11818         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
11819         point code too)
11820
11821 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11822
11823         * support/Util/SDCCerr.c,
11824         * src/SDCCast.h,
11825         * src/SDCCast.c (createCase, createDefault, decorateType),
11826         * src/SDCClabel.c (labelUnreach),
11827         * src/SDCC.y (labeled_statement, jump_statement): More improvements
11828         to error messages.
11829         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
11830         (with thanks to Stas Sergeev)
11831         * device/include/time.h,
11832         * device/lib/time.c (CheckTime): suppress unreachable code warning
11833
11834 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11835
11836         * src/SDCCast.c (createIvalCharPtr),
11837         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
11838         bug #753752)
11839         * support/regression/tests/nullstring.c: tests for these two bugs
11840
11841 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11842
11843         * support/Util/SDCCerr.h,
11844         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
11845         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
11846         about storage class and 'at' used inside struct or union
11847         * src/SDCCBBlock.c (iCodeFromeBBlock),
11848         * src/SDCCcse.c (ifxOptimize),
11849         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
11850         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
11851         printIval, emitStaticSeg, emitOverlay),
11852         * src/SDCClabel.c (deleteIfx),
11853         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
11854         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
11855         gatherAutoInit, processParms),
11856         * support/Util/SDCCerr.h,
11857         * support/Util/SDCCerr.c (werrorfl): Support for better error location
11858         reporting for post-parse errors.
11859
11860 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11861
11862         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
11863         implicit casts via union; they don't work on big endian systems
11864         (possible fix for bug #861138)
11865
11866 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11867
11868         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
11869         * src/mcs51/main.c: fixed the fix for bug #737001
11870
11871 2003-12-15  Borut Razem <borut.razem AT siol.net>
11872
11873         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
11874
11875 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11876
11877         * support/makebin/makebin.c: put output in binary mode
11878
11879 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11880
11881         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
11882         xdata and data memory on startup. Set the environment variable
11883         SDCC_NOGENRAMCLEAR to disable this.
11884         * src/mcs51/peephole.def,
11885         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
11886         (allows non-interrupt and interrupt code to safely compete for a resource
11887         without the non-interrupt code having to disable interrupts)
11888
11889 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11890
11891         * src/SDCCicode.c (geniCodeAdd),
11892         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
11893         with valFromType if type might be a pointer and host is big endian).
11894         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
11895         types, not just integer types.
11896         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
11897         multiply defined with mismatching "at" address.
11898
11899 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11900
11901         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
11902         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
11903         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
11904         with embedded nulls (fixed bug #753752)
11905
11906 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11907
11908         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
11909         Apparently this did not see much testing (endless loop)
11910
11911 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11912
11913         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
11914
11915 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11916
11917         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
11918         gracefully handle NULL memmap pointers
11919
11920 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11921
11922         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
11923         instead of deleting the iCode when an operand is volatile
11924         * src/z80/gen.c (genDummyRead),
11925         * src/mcs51/gen.c (genDummyRead),
11926         * src/ds390/gen.c (genDummyRead),
11927         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
11928         not just IC_RIGHT
11929         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
11930         * src/SDCC.y: fixed bug #850420
11931
11932 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11933
11934         Applied z80 i/o port patch from Peter Townson and fixed some operators
11935         to better handle operands in A register.
11936         * device/include/z180.h
11937         * src/SDCC.y
11938         * src/SDCCglue.c
11939         * src/z80/gen.c
11940         * src/z80/gen.h
11941         * src/z80/main.c
11942         * src/z80/peeph-z80.def
11943         * src/z80/peeph.def
11944         * src/z80/z80.h
11945
11946 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11947
11948         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
11949
11950 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11951
11952         * device/lib/hc08/_mullong.c: Removed extra #endif
11953
11954 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11955
11956         * sim/ucsim/hc08.src/inst.cc,
11957         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
11958         carries from x to h
11959         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
11960         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
11961         * device/include/stdarg.h: fixed varargs for hc08
11962         * device/lib/Makefile.in,
11963         * device/lib/hc08/Makefile,
11964         * device/lib/hc08/_mulint.c,
11965         * device/lib/hc08/_mullong.c: fixed some endian problems
11966
11967 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11968
11969         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
11970         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
11971         * device/lib/_gptrget.c,
11972         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
11973
11974 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11975
11976         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
11977         * src/SDCCast.c (astErrors): fixed bug #846007
11978         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
11979
11980 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11981
11982         * src/SDCCast.c (decorateType): disabled a transformation I added in
11983         revision 1.188 (access to fields of a structure at an absolute address);
11984         it breaks with bitfields, extern declarations, and gcse analysis.
11985         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
11986         could be assigned through a pointer, so don't complain.
11987         * src/SDCCast.c (astErrors),
11988         * src/SDCCast.h,
11989         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
11990
11991 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
11992
11993         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
11994         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
11995         output of __config directives, since gpasm now supports them
11996         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
11997         pre-processor macro, i.e. -DMCU=p18f452
11998         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
11999         and modified to handle 'cast' icode similarly to '=' icode
12000         * src/pic16/device.h (typedef struct PIC_device): added field
12001         'extMIface' to indicate that chip has external memory interface
12002         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
12003         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
12004         18F8720
12005
12006 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12007
12008         * src/SDCC.y (pointer): fixed bug #846006
12009         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
12010         * src/SDCCast.c (decorateType): fixed bug #846009
12011         * src/ds390/peeph.def,
12012         * src/ds390/gen.c (genAnd, genOr),
12013         * src/mcs51/peeph.def,
12014         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
12015
12016 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12017
12018         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
12019         * src/SDCCdflow.c
12020         * src/SDCCcse.c
12021         * src/SDCCcse.h
12022         * src/SDCCBBlock.h
12023         * src/SDCCBBlock.c
12024
12025 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
12026
12027         fixed bug #845089
12028         * src/SDCCbitv.h,
12029         * src/SDCCbitv.c: added function to free a bitvector
12030         * src/SDCClrange.h,
12031         * src/SDCClrange.c: added function to recompute the liveranges
12032         * src/avr/ralloc.c,
12033         * src/ds390/ralloc.c,
12034         * src/hc08/ralloc.c,
12035         * src/mcs51/ralloc.c,
12036         * src/pic/ralloc.c,
12037         * src/pic16/ralloc.c,
12038         * src/xa51/ralloc.c,
12039         * src/z80/ralloc.c: recompute the liveranges after register packing
12040
12041 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
12042
12043         * src/SDCCloop.c (newInduction): fixed bug #845630
12044
12045 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12046
12047         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
12048         inadvertantly left behind from my 2003-11-12 change
12049
12050 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12051
12052         Updated headers I neglected to commit yesterday.
12053         * src/SDCClrange.h,
12054         * src/SDCCicode.h
12055
12056 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12057
12058         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
12059         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
12060         * src/SDCCopt.c (eBBlockFromiCode),
12061         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
12062         the creation of the key hash table from the sequencing so it can be used
12063         earlier (for some GCSE bug fixes still pending)
12064
12065 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12066
12067         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
12068         * support/regression/tests/addsub.c: testing genPlus shortcut
12069
12070 2003-11-15  Borut Razem <borut.razem AT siol.net>
12071
12072         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
12073
12074 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12075
12076         * src/SDCCcse.c (cseBBlock): fixed bug #527779
12077         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
12078         ordering is immaterial.
12079         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
12080
12081 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12082
12083         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
12084         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
12085         (SIGSEV) of bug #840381
12086         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
12087         unlink new file before rename if new and old filenames are the same)
12088
12089 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12090
12091         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
12092         uninitialized variables) for the mcs51. Set environment variable
12093         SDCC_GENRAMCLEAR to test.
12094         xdata initialization slightly shorter
12095
12096 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12097
12098         * src/SDCCsymt.h,
12099         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
12100         #838241 & 780691 (basicly the same bug)
12101         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
12102         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
12103
12104 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
12105
12106         * src/SDCCmain.c (linkEdit): "fix" #834252
12107
12108 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12109
12110         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
12111         * src/SDCCast.h,
12112         * src/SDCC.y: fixed bug #819403
12113
12114 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12115
12116         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
12117         the reentrant attribute.
12118         * src/hc08/gen.c (genPackBits): added missing stack readjustment
12119         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
12120         simulation
12121         * src/SDCCast.c (decorateType): fixed bug with storage class not being
12122         updated during pointer dereference; f.e. ~(((char *)1)*) was being
12123         erroneously reduced to a literal.
12124         * src/hc08/ralloc.c (packRegisters, rematStr),
12125         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
12126         some cases
12127
12128 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12129
12130         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
12131         * doc/sdccman.lyx: changed from 'article' to 'book'
12132         * doc/Makefile: readded test_suite_spec and cdbfileformat
12133
12134 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
12135
12136         * device/include/stdlib.h: include malloc.h to comply with ANSI
12137         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
12138
12139 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12140
12141         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
12142         * doc/clean.mk: also remove *.out files
12143         * doc/sdccman.lyx: some additions, larger top/bottom margins
12144
12145 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12146
12147         * src/SDCC.y: fixed bug #837365
12148         * support/regression/tests/bitopcse.c
12149         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
12150         a symbol (might be valop instead)
12151         * device/lib/Makefile.in: added errno.c to HC08SOURCES
12152         * device/lib/clean.mk: added hc08 to the cleaning list
12153
12154 2003-11-04  Borut Razem <borut.razem AT siol.net>
12155
12156         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
12157           made 2003-11-04
12158         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
12159           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
12160           malloc is declared in standard stdlib.h
12161
12162 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12163
12164         * device/lib/hc08/Makefile: need to clean .rel not .o files
12165         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
12166
12167 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12168
12169         * src/port.h,
12170         * src/hc08/main.c,
12171         * src/mcs51/main.c,
12172         * src/ds390/main.c,
12173         * src/z80/main.c,
12174         * src/avr/main.c,
12175         * src/pic/main.c,
12176         * src/pic16/main.c,
12177         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
12178         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
12179         tests (which uses the port's oclsExpense function)
12180         * src/SDCC.y,
12181         * src/SDCCast.c,
12182         * src/SDCCicode.c,
12183         * src/hc08/gen.c,
12184         * src/ds390/gen.c,
12185         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
12186
12187 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12188
12189         * src/SDCCcse.c (ifxOptimize),
12190         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
12191         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
12192         deleting the IFX iCode.
12193         * src/hc08/ralloc.c: reduced unneeded slocs
12194         * src/hc08/gen.c: fixed bug in asmopToBoolean
12195
12196 2003-11-04  Borut Razem <borut.razem AT siol.net>
12197
12198         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
12199           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
12200           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
12201           transferred to configure
12202
12203 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
12204
12205         Use headers defined in the C[++] standards:
12206         * sim/ucsim/gui.src/serio.src/fileio.cc
12207         * sim/ucsim/gui.src/serio.src/frontend.cc
12208         * sim/ucsim/gui.src/serio.src/main.cc
12209         * sim/ucsim/gui.src/serio.src/posix_signal.cc
12210         * support/Util/NewAlloc.c
12211         * as/hc08/lklibr.c
12212         * as/mcs51/lklibr.c
12213         * as/z80/aslist.c
12214         * as/z80/assym.c
12215
12216 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12217
12218         * Added MSVC projects for hc08 assembler and linker:
12219         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
12220         /as/hc08/link_hc08.dsp
12221
12222 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
12223
12224         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
12225
12226 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
12227
12228         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
12229
12230 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12231
12232         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
12233
12234 2003-10-31  Borut Razem <borut.razem AT siol.net>
12235
12236         * support/cpp2/cpplib.h,
12237           support/cpp2/cpplib.c,
12238           support/cpp2/cpplex.c,
12239           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
12240           to switch _asm block preprocessing on / off. Default is
12241           #pragma preproc_asm +
12242
12243 2003-10-31  Borut Razem <borut.razem AT siol.net>
12244
12245         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
12246           when outputting comment blocks (when executed with -C option) and
12247           _asm (SDCPP specific) blocks
12248
12249 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12250
12251         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
12252
12253 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
12254
12255         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
12256
12257 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
12258
12259         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
12260         * src/SDCCast.c (decorateType): fixed bug #832664
12261
12262 2003-10-31  Borut Razem <borut.razem AT siol.net>
12263
12264         * support/cpp2/cpplex.c: fixed for SDCPP:
12265           comments(when executed with -C option) and _asm blocks
12266           were included even if they where in skipped #if block.
12267           Applied solution from GCC cpp 3.3.2
12268
12269 2003-10-31  Borut Razem <borut.razem AT siol.net>
12270
12271         * src/SDCC.lex: sdcc now understands both formats:
12272           '# <line_number> <file_name>' and
12273           '#line <line_number> <file_name>'
12274         * support/cpp2/cppmain.c: sdcpp now generates the standard
12275           '# <line_number> <file_name>' instead of former
12276           '#line <line_number> <file_name>'
12277
12278 2003-10-30  Borut Razem <borut.razem AT siol.net>
12279
12280         * support/cpp2/cpphash.h,
12281         * support/cpp2/cpplib.h
12282         * support/cpp2/cpplex.c,
12283         * support/cpp2/cppmain.c,
12284         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
12285
12286 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12287
12288         Fixed a number of problems revealed by bug #827883.
12289         * src/SDCCloop.c (loopInvariants): Spill location of the
12290         result operand should be recomputed if extracted from
12291         a loop. Also, don't extract assignments of an iTemp
12292         from a literal.
12293         * src/SDCCast.c (isConformingBody): loop reversal should
12294         not occur if the control variable is involved with a
12295         relational operator.
12296
12297 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
12298
12299         * .version: bumped to 2.3.6 to reflect the big improvements
12300         made by Erik and Klaus. Thanks!
12301
12302 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
12303
12304         Replaced the livrange code.
12305         * src/SDCClrange.c: added new LR code
12306         * src/SDCCloop.c,
12307         * src/SDCCBBlock.h: removed remainig parts from old LR code
12308         * src/ds390/ralloc.c,
12309         * src/ds390/gen.c: minor fixes to make it work with new code
12310
12311 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12312
12313         * as/hc08/asm.h,
12314         * as/hc08/lkrloc.c,
12315         * src/hc08/gen.c,
12316         * src/hc08/ralloc.c: Fix various warnings related to the hc08
12317         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
12318         (tweaked fix for bug #818696)
12319
12320 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12321
12322         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
12323
12324 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12325
12326         * src/SDCCmain.c,
12327         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
12328         * src/mcs51/gen.c (gencjneshort),
12329         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
12330         more efficient (per Scott Bronson's suggestion)
12331
12332 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12333
12334         Extended the semantics of the critical keyword to include
12335         individual statements. See RFE #827755 and #799831
12336         * src/SDCC.y
12337         * src/SDCCicode.c
12338         * src/SDCCopt.c
12339         * src/SDCCast.c
12340         * support/Util/SDCCerr.c
12341         * support/Util/SDCCerr.h
12342         * src/mcs51/gen.c
12343         * src/ds390/gen.c
12344         * src/hc08/gen.c
12345
12346 2003-10-19  Borut Razem <borut.razem AT siol.net>
12347
12348         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
12349
12350 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12351
12352         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
12353         Fixed bug #818696
12354         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
12355         and predecrement operand is displayed
12356
12357 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
12358
12359         * src/SDCCval.c (valMinus): fixed bug #826041
12360
12361 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12362
12363         Some hc08 related updates that I missed earlier
12364         * sim/ucsim/stypes.h
12365         * support/regression/ports/hc08/spec.mk
12366
12367 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12368
12369         New target "hc08" for the Motorola 68hc08 family of micros
12370
12371         * configure
12372         * configure.in
12373         * Makefile
12374         * src/hc08/*
12375         * src/SDCCmain.c
12376         * src/port.h
12377         * sim/ucsim/hc08.src/*
12378         * sim/ucsim/configure.in
12379         * src/ucsim/configure
12380         * sim/ucsim/packages_in.mk
12381         * as/hc08/*
12382         * as/Makefile
12383         * device/include/mc68hc908qy.h
12384         * device/lib/hc08/*
12385         * device/lib/Makefile.in
12386         * support/regression/ports/hc08/*
12387         * support/regression/Makefile
12388
12389 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12390
12391         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
12392         regression test
12393         * src/ds390/gen.c (genCast): fixed bug #821957
12394
12395 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
12396
12397         * device/lib/logf.c: "fixed" overlay bug
12398         * support/regression/ports/host/spec.mk: added m library
12399         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
12400         * support/regression/tests/float_trans: added (for Eric)
12401
12402 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
12403
12404         * src/mcs51/gen.c (genCpl): fixed bug
12405         http://sf.net/mailarchive/message.php?msg_id=6263915
12406
12407 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
12408
12409         * src/SDCCast.c (decorateType): added extended constant folding
12410         * src/SDCCsymt.c (computeType): cleanup
12411         * src/SDCCval.c (valShift): minor optimization
12412         * support/regression/tests/ast_constant_folding.c: added
12413
12414 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12415
12416         * src/SDCCmain.c: removed some unintended changes
12417
12418 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12419
12420         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
12421         * src/z80/gen.c: fixed part of bug #817589
12422         * src/SDCCsymt.c (checkFunction): fixed bug #817895
12423
12424 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
12425
12426         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
12427         * src/SDCCcflow.c
12428         * src/SDCCcse.c
12429         * src/SDCCdflow.c
12430         * src/SDCClabel.c
12431         * src/SDCClrange.c
12432         * src/SDCCmem.c
12433         * src/SDCCopt.c
12434         * src/SDCCpeeph.c
12435         * src/SDCCset.c
12436         * src/avr/ralloc.c
12437         * src/ds390/ralloc.c
12438         * src/izt/ralloc.c
12439         * src/mcs51/ralloc.c
12440         * src/pic/ralloc.c
12441         * src/pic16/ralloc.c
12442         * src/xa51/ralloc.c
12443         * src/z80/ralloc.c
12444         * src/z80/gen.c: removed unused label "release:"
12445
12446 2003-10-06  Borut Razem <borut.razem AT siol.net>
12447
12448         * src/SDCC.lex: removed definition of unused variables
12449           save_optimize and save_options
12450
12451 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
12452
12453         * clean.mk: removed '=' in "-maxdepth=1"
12454         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
12455         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
12456
12457 2003-10-06  Borut Razem <borut.razem AT siol.net>
12458
12459         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
12460           my_unput() replaced by unput()
12461
12462 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
12463
12464         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
12465         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
12466         type-punned pointer will break strict-aliasing rules"
12467         Old LR behaviour is again default; Klaus' LR can be choosen by
12468         defining the environment variable LRKLAUS
12469         * src/SDCCBBlock.h
12470         * src/SDCCloop.c
12471         * src/SDCClrange.c
12472         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
12473         * clean.mk: fixed removal of files in bin/CVS/
12474         * device/lib/clean.mk: fixed removal of directories small and large
12475         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
12476         * src/SDCCicode.c,
12477         * src/SDCCval.c: removed superflous test for pedantic
12478
12479 2003-10-05  Borut Razem <borut.razem AT siol.net>
12480
12481         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
12482           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
12483           message "unmatched #pragma SAVE and #pragma RESTORE"
12484
12485 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12486
12487         * doc/sdccman.lyx: various additions and updates (interrupts, inline
12488           assembly, critical functions, atomic, nojtbound)
12489
12490 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
12491
12492         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
12493         * src/SDCCBBlock.h
12494         * src/SDCCloop.c
12495         * src/SDCCloop.h
12496         * src/SDCClrange.c
12497
12498 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12499
12500         * src/z80/gen.h,
12501         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
12502         * src/mcs51/gen.h
12503         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
12504         * src/ds390/gen.h
12505         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
12506         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
12507         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
12508
12509 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12510
12511         * src/z80/gen.c (genRet): fixed bug #524753
12512         * src/z80/gen.c (genCast): fixed internal error on cast from
12513         pointer to long
12514         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
12515         fix for bug #477835 to the z80
12516         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
12517         for tracking iCodes in the peephole optimizer for z80
12518
12519 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12520
12521         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
12522         the other part of bug #814548
12523         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
12524
12525 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
12526
12527         * src/SDCCcse.c: fixed part of bug #814548
12528
12529 2003-09-28  Borut Razem <borut.razem AT siol.net>
12530
12531         * src/asm.c: rewrite of printILine() to use temporary file instead
12532           a pipe
12533         * src/xa51/main.c: commented out declaration of int rewinds
12534
12535 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12536
12537         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
12538
12539 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12540
12541         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
12542         * src/asm.c (printILine): Fixed bug #811015
12543
12544 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12545
12546         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
12547         freeing.
12548
12549 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12550
12551         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
12552         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
12553         to correctly handle general case of AOP_PAIRPTR
12554         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
12555
12556 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12557
12558         * src/mcs51/ralloc.c (fillGaps),
12559         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
12560         register positioning bug)
12561
12562 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
12563
12564         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
12565
12566 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12567
12568         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
12569         genCodePointerGet, genGenPointerGet, genFarPointerSet,
12570         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
12571         (ralloc doesn't intentionally do this now, but perhaps later)
12572         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
12573         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
12574         register positioning bugs (Fixed bug #762602 and #795325)
12575         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
12576         (Fixed bug #808779)
12577         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
12578         lines that --i-code-in-asm generates
12579
12580 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12581
12582         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
12583         trying to fclose a FILE* that was already closed.
12584
12585 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12586
12587         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
12588         of const struct should be treated as if const themselves)
12589
12590 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
12591
12592         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
12593
12594 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12595
12596         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
12597         Unix (/n) and DOS (/r/n) line terminations.
12598
12599 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12600
12601         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
12602         bug #613775
12603
12604 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12605
12606         * src/mcs51/gen.c (genFunction, genEndFunction),
12607         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
12608         and restore of EA so that stack offsets to parameters are
12609         correct when using both critical and reentrant/stack-auto.
12610         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
12611         size (can be triggered in error if sloc is shared between
12612         different sized objects)
12613         * device/include/float.h: fixed macros to explicitly use
12614         unsigned long where needed
12615
12616 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
12617
12618         Feature req. 799831: added code to allow nesting of critical functions
12619         * src/mcs51/gen.c (genFunction, genEndFunction)
12620         * src/ds390/gen.c (genFunction, genEndFunction)
12621
12622 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12623
12624         * src/SDCCsymt.c (sclsFromPtr),
12625         * src/SDCCsymt.h,
12626         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
12627         support for standard C idiom of memory mapped variables; for
12628         example, *((xdata int*)0x1234) = 1 is now internally equivalent
12629         to xdata int at 0x1234 tempvar = 1.
12630         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
12631         provided by Akiya ISHIDA
12632
12633 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
12634
12635         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
12636         * src/SDCCval.c (constVal): added reduction from int to char
12637         * src/SDCCval.c (valMult, valDiv): fixed sign handling
12638         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
12639         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
12640         to ignore the sign
12641         * support/regression/tests/shifts.c: fixed
12642
12643 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12644
12645         * src/z80/gen.c (genXor): Fixed bug #805445
12646
12647 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12648
12649         Fixed bug #621531 (const & volatile confusion in the type chain).
12650         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
12651         refer to the const or volatile state of the pointer itself.
12652
12653         * src/SDCCast.c
12654         * src/SDCCglue.c
12655         * src/SDCCicode.c
12656         * src/SDCCsymt.c
12657         * src/SDCCval.c
12658         * src/SDCC.y
12659         * src/SDCCsymt.h
12660         * src/pic/gen.c
12661         * src/pic/ralloc.c
12662         * src/pic16/gen.c
12663         * src/pic16/ralloc.c
12664         * support/regression/tests/const.c
12665
12666 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12667
12668         When checking for duplicated modules, use absolute paths
12669         instead of relative paths.  Files changed:
12670
12671         * as/mcs51/lklib.c
12672         * link/z80/lklib.c
12673
12674 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12675
12676         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
12677
12678 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12679
12680         * device/include/string.h: added size_t typedef, changed
12681         prototypes to use size_t, eliminated separate reentrant and
12682         non-reentrant declarations, added _memmove declaration
12683         * device/lib/_memcpy.c: changed to use size_t instead of int,
12684         changed /4 to >>2 to avoid division library call
12685         * device/lib/_memcmp.c,
12686         * device/lib/_memset.c,
12687         * device/lib/_strncat.c,
12688         * device/lib/_strncpy.c,
12689         * device/lib/_strncmp.c: changed to use size_t instead of int
12690         * device/lib/_memmove.c: new file (fixed bug #772294)
12691         * device/lib/Makefile.in: added _memmove.c
12692         * device/lib/z80/asm_strings.s: fixed bug #772290
12693         * support/regression/tests/bitfields.c: attempt to fix host assertion
12694         failure on amd64-unknown-linux2.2
12695
12696 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12697
12698         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
12699         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
12700         * as/z80/asmain.c (main): fixed bug #801766
12701
12702 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
12703
12704         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
12705         compilers
12706
12707 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12708
12709         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
12710         reported in bug #800609
12711
12712 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
12713
12714         * Top header beautifications in src/pic16 directory:
12715           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
12716           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
12717           pcoderegs.h, ralloc.c, ralloc.h
12718         * main.c: added top header and GPL license notice
12719         * pcode.c: fixed the if-conditional warning
12720
12721 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
12722
12723         * device/lib/_mullong.c: replaced int by short for gcc
12724
12725 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12726
12727         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
12728         and JUMPTABLE iCodes properly now (worked by accident before)
12729         * src/mcs51/gen.c (leftRightUseAcc),
12730         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
12731         iCode properly now. Use getSize instead of nRegs since a & b
12732         aren't part of the nRegs tally.
12733
12734 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
12735
12736         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
12737         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
12738           before instructions that use the _STATUS register
12739
12740 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
12741
12742         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
12743         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
12744         fetching of the pointer
12745         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
12746         copied from genNearPointerSet()
12747         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
12748         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
12749         If they pop r0/r1 they must be called in the opposite order than aopOp().
12750         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
12751         (resp. --stack-auto), prepared for --xstack
12752
12753 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12754
12755         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
12756
12757 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
12758
12759         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
12760         these ports have their own __sdcc_external_start()
12761
12762 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
12763
12764         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
12765         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
12766         type for bits was changed. It resulted in bit variables becoming
12767         global, which is not permitted in PIC 14 assembly output.
12768
12769 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12770
12771         * doc/sdccman.lyx: various additions and updates. Rearranged sections
12772
12773 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12774
12775         Z80 and MCS51 linkers complaint if a public symbol is defined
12776         in more than one library module:
12777
12778         * as/mcs51/lklib.c
12779         * link/z80/lklib.c
12780         * as/mcs51/Makefile.in
12781
12782 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12783
12784         A few small changes that speed up the peephole optimizer.
12785
12786         * src/SDCCpeeph.c
12787
12788 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12789
12790         Try to make the peephole optimizer smarter by maintaining
12791         an association between the assembly source code and the
12792         iCodes that originated them. Put this information to use
12793         with a new peephole rule condition "notVolatile" so that
12794         the rules can be aggressive yet still safe.
12795
12796         * src/SDCCpeeph.c
12797         * src/SDCCpeeph.h
12798         * src/mcs51/gen.c
12799         * src/mcs51/peeph.def
12800
12801 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12802
12803         Fixed bug #741761
12804
12805         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
12806         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
12807         if the left or right operand symbols have the accuse flag set.
12808
12809 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12810
12811         Changed the type of the result of the ! (NOT) operator to char;
12812         previously it returned the same type as the source. This allows
12813         us to eliminate all the genFloatNot functions (all of its target
12814         implementations were very buggy) since !float can use the same
12815         code as !long now.
12816
12817         * src/SDCCicode.c (ast2iCode): ! returns char
12818         * src/mcs51/gen.c (genNot, genNotFloat),
12819         * src/ds390/gen.c (genNot, genNotFloat),
12820         * src/z80/gen.c (genNot, genNotFloat),
12821         * src/pic/gen.c (genNot, genNotFloat),
12822         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
12823
12824 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
12825
12826         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
12827         1. Interrupt would not compile properly. Ensure PCLATH register is saved
12828            during interrupts. Ensure WSAVE is located at a shared bank address.
12829         2. Fixed page selection in some places
12830         3. Fixed BTFSS/C to where necessary use registers directly and not simply
12831            the registers name strings.
12832         4. Fixed "signed / unsigned compare" compiler warnings.
12833         5. The PIC port manages its own allocation of the general purpose
12834            registers, but makes no attempt to reuse them. As a result when
12835            compiling it soon runs out of general purpose registers. Some
12836            additional code was added to the files pcode.c and device.c to walk
12837            through the function call tree and rename the registers so that they
12838            get reused.
12839
12840         * src/pic/device.c
12841         * src/pic/gen.c
12842         * src/pic/glue.c
12843         * src/pic/pcode.c
12844         * src/pic/pcode.h
12845         * src/pic/ralloc.c
12846         * src/pic/ralloc.h
12847         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
12848         genPlus() & genMinus() when the result is the same as left or right
12849
12850 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12851
12852         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
12853
12854 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12855
12856         Made bitfield a distinct type from bit so that bitfields
12857         convert as per ANSI C and bits retain their traditional
12858         boolean style behaviour. Implemented bitfield support in
12859         the z80 port.
12860
12861         * src/SDCCsymt.h,
12862         * src/SDCCsymt.c,
12863         * src/SDCCast.c,
12864         * src/cdbFile.c,
12865         * src/mcs51/gen.c,
12866         * src/ds390/gen.c: bit v bitfield split
12867         * src/z80/gen.c: New support for bitfields
12868         * support/regression/tests/bitfields.c: reenabled z80,
12869         added more tests
12870
12871 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12872
12873         Rules 246.x, 247.x relate to bitfields, the others speed up
12874         access to xdata mapped I/O devices.
12875
12876         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
12877
12878 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12879
12880         Cleaned up genPackBits and genUnpackBits and added two helper
12881         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
12882         for literal assignments in genPackBits (thanks to Frieder for
12883         reminding me).
12884
12885         * src/mcs51/gen.c
12886         * src/ds390/gen.c
12887
12888 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12889
12890         Fixed bug #748310 (pointer to function type mishandled when the
12891         function name is omitted). Also fixed a SIGSEGV when a function
12892         attribute (reentrant, etc) is used on a non-function or on a
12893         function but misplaced before the parameter list.
12894
12895         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
12896         bug #748310
12897         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
12898         * support/Util/SDCCerr.h,
12899         * support/Util/SDCCerr.c: Added func attr misuse error msg
12900
12901 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
12902
12903         Fixed bug #787649 by anonymous
12904         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
12905         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
12906
12907 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12908
12909         Fixed numerous bitfield problems.
12910
12911         * src/SDCC.y: More bitfield related error checking
12912         * src/SDCCsymt.h,
12913         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
12914         * support/Util/SDCCerr.h,
12915         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
12916         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
12917         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
12918         * support/regression/tests/bitfields.c: tests added
12919
12920 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12921
12922         Made the constant following the "interrupt" keyword optional. If
12923         omitted, the function will not automatically be given an entry
12924         in the interrupt vector table (similar to #pragma NOIV, but
12925         less syntacticly kludgy). The interrupt number is also now
12926         range checked. Also fixed a bug in the high order bit example
12927         in the manual.
12928
12929         * src/SDCC.y
12930         * src/SDCCmem.c
12931         * src/SDCCglue.c
12932         * src/SDCCsymt.h
12933         * support/Util/SDCCerr.c
12934         * support/Util/SDCCerr.h
12935         * doc/sdccman.lyx
12936
12937 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
12938
12939         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
12940         * src/SDCCicode.c (operandOperation): rewritten some ops
12941         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
12942         * src/SDCCsymt.c (computeType): literals are handled the same way as any
12943         other type
12944         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
12945         be re-activated by defining REDUCE_LITERALS)
12946         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
12947         unsigned, but are signed by default
12948         * src/SDCCval.c (constVal): rearranged
12949         * src/SDCCval.c (valMod): preliminary fix
12950         * src/SDCCval.c (valCastLiteral): use TYPE_* types
12951         * support/regression/literalop.c: added, work in progress
12952
12953 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12954
12955         Generate warnings for useless declarations like "char data;"
12956         that don't do what new users expect.
12957
12958         * src/SDCC.y
12959         * support/Util/SDCCerr.h
12960         * support/Util/SDCCerr.c
12961
12962 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
12963
12964         * src/SDCCval.c (valMult): fix overflow detection of negative int
12965
12966 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12967
12968         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
12969
12970         Changes to support big endian targets:
12971
12972         * src/ports.h
12973         * src/SDCCglue.c
12974         * src/avr/main.c
12975         * src/ds390/main.c
12976         * src/izt/i186.c
12977         * src/mcs51/main.c
12978         * src/pic/main.c
12979         * src/pic16/main.c
12980         * src/xa51/main.c
12981         * src/z80/main.c
12982
12983 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
12984
12985         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
12986         * device/lib/time.c: fixed warning "integer overflow in expression"
12987
12988 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
12989
12990         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
12991         * src/SDCCval.c (constVal): changed default to signed; hex and octal
12992         constants are unsigned; added recognition of "u" flag for unsigned
12993         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
12994         * src/SDCCval.c (valDiv, valMod): fixed signdness
12995         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
12996         signedness of modulo, left and right shift
12997         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
12998         * support/Util/SDCCerr.h: added warning W_INT_OVL
12999         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
13000         * src/SDCCast.c (ast_print): improved output of constants
13001
13002 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13003
13004         Fixed some warnings when building with MSVC:
13005
13006         * as/mcs51/asdata.c
13007         * as/z80/asdata.c
13008         * as/mcs51/asm.h
13009         * as/z80/asm.h
13010         * link/z80/aslink.h
13011         * link/z80/lkdata.c
13012         * link/z80/lkeval.c
13013         * link/z80/lkgb.c
13014         * link/z80/lkihx.c
13015         * link/z80/lks19.c
13016         * link/z80/lksym.c
13017         * support/cpp2/cpplib.c
13018         * src/ds390/gen.c
13019         * src/mcs51/gen.c
13020
13021 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
13022
13023         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
13024
13025 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13026
13027         * support/librarian/clean.mk: Do not remove Makefile.
13028         * support/librarian/Makefile: added.
13029
13030 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13031
13032         Added librarian to MSVC build:
13033         * all.dsp
13034         * sdcc.dsw
13035         * support/librarian/librarian.dsp
13036
13037         'configure' not needed for librarian, removed:
13038         * support/librarian/configure
13039         * support/librarian/configure.in
13040         * support/librarian/config_in.h
13041         * support/librarian/Makefile.in
13042
13043         Hopefully these ones built the librarian and the rest of sdcc properly:
13044         * Makefile
13045         * Makefile.common.in
13046
13047         Messed up 'configure', so revert to previous version:
13048         * configure
13049         * configure.in
13050
13051 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
13052
13053         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
13054         there, while the mantissa of a double is "only" 53 bits wide.
13055
13056 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13057
13058         Adding sdcclib to the build.  MSVC project coming soon.
13059         Files added/changed:
13060
13061         * support/librarian/clean.mk
13062         * support/librarian/configure
13063         * support/librarian/configure.in
13064         * support/librarian/config_in.h
13065         * support/librarian/Makefile.bcc
13066         * support/librarian/Makefile.in
13067         * support/librarian/sdcclib.c
13068         * Makefile.bcc
13069         * Makefile
13070         * Makefile.common.in
13071         * configure
13072         * configure.in
13073
13074 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13075
13076         Linker now complaints if linked modules have conflicting options, for
13077         example, one compiled using --model-large and another one compiled with
13078         --model-small.  The following files were modified:
13079
13080         * as/mcs51/asdata.c
13081         * as/mcs51/aslink.h
13082         * as/mcs51/asm.h
13083         * as/mcs51/asmain.c
13084         * as/mcs51/asout.c
13085         * as/mcs51/i51pst.c
13086         * as/mcs51/lkdata.c
13087         * as/mcs51/lklibr.c
13088         * as/mcs51/lkmain.c
13089         * as/z80/asdata.c
13090         * as/z80/asm.h
13091         * as/z80/asmain.c
13092         * as/z80/asout.c
13093         * as/z80/z80pst.c
13094         * link/z80/aslink.h
13095         * link/z80/lkdata.c
13096         * link/z80/lklibr.c
13097         * link/z80/lkmain.c
13098         * src/SDCCglue.c
13099
13100 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13101
13102         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
13103         as/mcs51/lklibr.c: Generate a warning when a library is not found.
13104
13105 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
13106
13107         * src/z80/mappings.i: fix _mul[us][int,long] entries
13108
13109 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13110
13111         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
13112
13113 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
13114
13115         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
13116         * support/regression/tests/bitopcse.c: added
13117         fixed warning:
13118         * src/avr/gen.c:
13119         * src/pic/gen.c:
13120         * src/pic16/gen.c:
13121         * src/z80/gen.c:
13122         * src/xa51/gen.c:
13123
13124 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13125
13126         added support for new library format to z80, gbz80 linkers:
13127         *link/z80/aslink.h
13128         *link/z80/lklex.c
13129         *link/z80/lklib.c
13130         *link/z80/lklist.c
13131
13132 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
13133
13134         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
13135         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
13136
13137 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
13138
13139         added DUMMY_READ_VOLATILE:
13140         * src/SDCC.y:
13141         * src/avr/gen.c:
13142         * src/xa51/gen.c:
13143         * src/z80/gen.c:
13144         * src/pic/gen.c:
13145         * src/pic16/gen.c:
13146         * src/mcs51/gen.c:
13147         * src/ds390/gen.c:
13148         * src/SDCCcse.c (algebraicOpts): many improvements
13149         * src/SDCCcse.h: removed algebraicOpts()
13150         * src/SDCCicode.c (picDummyRead): added
13151
13152 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13153
13154         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
13155         "Insufficient space in data memory".
13156
13157 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13158
13159         * src/mcs51/gen.c: fixed bug #771358
13160         * src/z80/gen.c: fixed bug #759087
13161
13162 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
13163
13164         * src/pic16/glue.c: minor cleanup by Vangelis
13165
13166 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13167
13168         * device/include/regc515c.h: fixed #758477
13169         * device/lib/_gptrget.c: saving some cycles in generic pointer get
13170         * device/lib/_gptrput.c: saved a few bytes
13171         * my tab spacing is 8, yours too?)
13172         * device/lib/_ser.c: process RX bytes earlier than TX bytes
13173         * device/lib/serial.c: process RX bytes earlier than TX bytes
13174         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
13175
13176 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13177
13178         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
13179
13180 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13181
13182     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
13183
13184 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
13185
13186         * device/lib/Makefile.in: bad fix, reverted to 1.43
13187
13188 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
13189
13190         * device/lib/Makefile.in: added missing z80 object files
13191
13192 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
13193
13194         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
13195         pic16 progress by Vangelis:
13196         * src/SDCCglobl.h:
13197         * src/SDCCmain.c:
13198         * src/pic/Makefile:
13199         * src/pic:
13200         * pic/Makefile:
13201         * pic16/device.c:
13202         * pic16/device.h:
13203         * pic16/gen.c:
13204         * pic16/gen.h:
13205         * pic16/genarith.c:
13206         * pic16/glue.c:
13207         * pic16/main.c:
13208         * pic16/pcode.c:
13209         * pic16/pcode.h:
13210         * pic16/pcodepeep.c:
13211         * pic16/peeph.def:
13212
13213 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13214
13215     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
13216
13217 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13218
13219     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
13220     added gbz80 build to MSVC project.
13221     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
13222     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
13223     from 8051 stuff and setup so it links using a .lnk file.
13224
13225 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13226
13227     * support/librarian/sdcclib.c: sdcc librarian.
13228     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
13229     with sdcclib.
13230
13231 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13232
13233     * as/mcs51/lkmain.c: properly handle extensions in function afile.
13234
13235 2003-07-02  Borut Razem <borut.razem AT siol.net>
13236
13237         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
13238         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
13239         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
13240         src/xa51/main.c, src/z80/main.c:
13241         virtualization of glue() function: each port has it's own glue function,
13242         which is accessed by do_glue function pointer in PORT.general structure
13243
13244 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
13245
13246         * DS800C400 fun, improved ROM interface and tinibios.
13247
13248 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
13249
13250         * More support for DS80C400. Now includes beginning of interface to ROM.
13251
13252 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
13253
13254         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
13255
13256 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13257
13258         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
13259
13260 2003-06-19  Borut Razem <borut.razem AT siol.net>
13261
13262         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
13263
13264 2003-06-19  Borut Razem <borut.razem AT siol.net>
13265
13266         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
13267         fixed Z80 port - crt0.o: cannot open.
13268
13269 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
13270
13271         * support/Util/MySystem.c (merge_command): revert bad fix
13272
13273 2003-06-18  Borut Razem <borut.razem AT siol.net>
13274
13275         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
13276
13277 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13278
13279         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
13280         option --use-stdout sends errors to stdout instead of stderr.
13281
13282 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
13283
13284         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
13285
13286 2003-06-15  Borut Razem <borut.razem AT siol.net>
13287
13288         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
13289         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
13290         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
13291         fixed width array of pointers replaced with sets;
13292         multiple include and lib paths ared transferred to preprocessor and linker
13293         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
13294         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
13295         fixed width array of pointers
13296         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
13297         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
13298         fixupPath(), getPathDifference()
13299         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
13300         fixed width array of pointers
13301
13302 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
13303
13304         * src/pic16/ralloc.c: fix warnings
13305         * src/pic16/pcode.c: fix warning
13306
13307 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
13308
13309          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
13310         know all the details, but essentially this set of changes enable
13311         the pic16 port to generate movff instructions and generate assembler
13312         directives,
13313         * src/SDCCmain.c:
13314         * src/pic16/gen.c:
13315         * src/pic16/glue.c:
13316         * src/pic16/pcode.c:
13317         * src/pic16/device.c:
13318         * src/pic16/main.c:
13319         * src/pic16/pcode.h:
13320         * src/pic16/pcoderegs.c:
13321         * src/pic16/ralloc.c:
13322         * src/pic16/ralloc.h:
13323
13324 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13325
13326         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
13327         added option --vc, so sdcc errors and warnings are compatible with
13328         Microsoft Visual Studio.
13329
13330 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13331
13332         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
13333           device/lib/libfloat.lib: added atof function.
13334
13335 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
13336
13337         * doc/sdccman.lyx: updated to Lyx 1.3
13338         * doc/cdbfileformat.lyx: updated to Lyx 1.3
13339         * doc/test_suite_spec.lyx: updated to Lyx 1.3
13340         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
13341
13342 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
13343
13344         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
13345
13346 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13347
13348         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
13349           additions to the "related tools/documentation" section
13350
13351 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
13352
13353         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
13354
13355 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
13356
13357         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
13358         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
13359
13360 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
13361
13362         * doc/sdccman.lyx: fix double dash and other minor things
13363         * doc/Makefile: fix double dash
13364
13365 2003-05-28  Karl Bongers(patches from Martin Helmling)
13366         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
13367           condition and ignore commands.
13368
13369 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13370
13371         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
13372           is in parts still quite out of date, I did changes as far as I felt makes sense
13373           for a non-native english speaker.
13374           Please feel free to add to the manual or to correct my changes.
13375         * doc/Makefile: undid touching the date of intermediate tex files.
13376
13377 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13378
13379         * doc/sdccman.lyx: Manual has an index now
13380
13381 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
13382
13383         Finalize muluint/mulsint and mululong/mulslong merging:
13384         * device/lib/_mulint.c
13385         * device/lib/_mullong.c
13386         * device/lib/gbz80/mul.s
13387         * device/lib/gbz80/stubs.s
13388         * device/lib/z80/mul.s
13389         * device/lib/z80/stubs.s
13390         * src/SDCCsymt.c (initCSupport)
13391
13392 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13393
13394         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
13395         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
13396           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
13397           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
13398           instead of /Zm500.
13399
13400 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13401
13402         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
13403           the regression tests I'm not brave enough to enable 245.b, 245.c
13404         * doc/sdccman.lyx: added latex preamble for hyperref package.
13405           Using pdflatex this will give you a hyperlinked pdf file with
13406           bookmarks. (prepend '%' before /usepackage if this breaks something)
13407
13408 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13409
13410          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
13411
13412 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
13413
13414         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
13415
13416 2003-05-21    <johan AT balder>
13417
13418         * src/SDCCglue.c (printIval): fixed bug #739934
13419
13420 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
13421
13422         Applied patch from bug 737905 (renamed yylineo to mylineno):
13423         * src/altlex.c
13424         * src/SDCCast.c
13425         * src/SDCglobl.h
13426         * src/SDCC.lex
13427         * src/SDCCsymt.c
13428         * src/SDCCval.c
13429         * src/pic16/pcode.c: Cleaned warnings
13430         * src/pic16/pcodeflow.c: Cleaned warnings
13431         * src/pic16/pcoderegs.c: Cleaned warnings
13432
13433 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
13434
13435         * src/pic16/pcode.c: Cleaned warnings
13436         * src/pic16/pcodepeep.c: Cleaned warnings
13437         * src/pic16/ralloc.c: Cleaned warnings
13438
13439 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
13440
13441         * doc/sdccman.lyx: fixed bug 739745
13442         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
13443
13444 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
13445
13446         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
13447         it can be defined with CFLAGS when running configure
13448         * src/SDCCmain.c: fixed compiling + linking with object files
13449
13450 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
13451
13452         * configure.in: configure for pic16 port,
13453             added --disable-pic16-port
13454         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
13455         * src/SDCCmain.c: linkOptions is changed to set *,
13456             added if/endif conditional macros to remove options help
13457             messages from optionsTable when a port is not configured, added
13458             support for the PIc16 port in the ports table, when executing
13459             the compiler with no port specified on command line, a default
13460             port is selected with the new macro DEFAULT_PORT which is
13461             defined in port.h, in setDefaultOptions() linkOptions is removed
13462             from initialization assignment, since now it is a set,
13463             parseCmdLine uses setParseWithComma for linkOptions, in
13464             linkEdit() linkOptions are accessed with new function indexSet()
13465             which returns the i'th item of a set variable. See SDCCset.c, in
13466             linkEdit() when calling buildCmdLine(), added linkOptions as
13467             last argument. Now users can pass arguments to gplink via the
13468             -Wl option, main() uses pic16glue() to glue up pic16 programs
13469         * src/SDCCpeeph.c: various changes to support pic16
13470         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
13471             return the i'th item of the set
13472         * src/SDCCset.h: added function prototype for indexSet()
13473         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
13474         * src/clean.mk: added pic16 in CLEANALLPORTS variable
13475         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
13476             added macro DEFAULT_PORT
13477         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
13478         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
13479             generated
13480         * src/pic16/glue.c: commented out some error producing lines
13481         * src/pic16/main.c: __config directives are commented out to stop
13482             gpasm complaining and test the linkage with gplink, _linkCmd and
13483             _asmCmd changed to be more gplink and gpasm friendly
13484         * src/pic16/peeph.def: peep rule 3 is commented out, since it
13485             produced an error when parsed, peep rule 12 is added to utilize
13486             movff, but it is commented out since the pCode does not support
13487             yet a command with 2 address arguments
13488
13489 2003-05-18    <johan AT balder>
13490
13491         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
13492         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
13493 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
13494
13495         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
13496   Added feature to script commands from file.
13497
13498 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
13499
13500         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
13501         * src/SDCCutil.c: include ctype.h for win32
13502
13503 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
13504
13505         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
13506
13507 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
13508
13509         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
13510   Fixed so you can set breakpoints prior to run, run does not stop
13511   on entry now.  Add tbreak.  Other enhancements and fixes for use
13512   with ddd.
13513
13514 2003-05-12  Borut Razem <borut.razem AT siol.net>
13515
13516         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
13517
13518 2003-05-11  Borut Razem <borut.razem AT siol.net>
13519
13520         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
13521         the path of bin directory, so that PATH is the only env. variable, which has to be set
13522         in case of standard installation.
13523         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
13524         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
13525         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
13526
13527 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
13528
13529         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
13530         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
13531         temp files are in the port dir; clean the gen/test directory when
13532         generating new test.c
13533         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
13534         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
13535         * support/regression/tests/zeropad.c: added
13536
13537 2003-05-09    <johan AT balder>
13538
13539         * src/SDCCglue.c: fixed bug #597940
13540
13541 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
13542
13543         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
13544   cache sfr, optimize next,step, fix off by one sourceline,
13545   support ddd list function.
13546         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
13547
13548 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
13549
13550         * support/regression/HTMLgen.py: added compare_s2f()
13551         * support/regression/Makefile: redo 1.27
13552         * support/regression/generate-cases.py: redo 1.5
13553
13554 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
13555
13556         * support/regression/tests/float.c: workaround 33 bit hex constant
13557         * support/regression/tests/simplefloat.c: fix division for host
13558
13559 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
13560
13561         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
13562         that tame's the PIC's over-aggressive optimizer.
13563
13564 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13565
13566          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
13567          support for MSVC.
13568
13569 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
13570
13571         Initial support for DS80C400. "Hello world" runs on TINIm400
13572         (with polled I/O).
13573
13574 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
13575
13576          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
13577          * Some notes on ddd usage added in debugger/README
13578          Martin Helmling adding more features and fixes for ddd GUI debugger.
13579          Code added for nexti, stepi, up, down, and other adjustments.
13580
13581 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
13582
13583         * src/pic/pCodepeep.c non-wildcard asmops are now handled
13584         * src/pic/peeph.def Added two rules to optimize carry manipulation
13585         * src/pic/* removed debug printfs
13586
13587 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
13588
13589         * debugger/mcs51/cmd.c: added header newalloc.h
13590
13591 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
13592
13593         * as/Makefile: new EXEEXT
13594         * as/z80/Makefile: remove trailing slash of BUILDIR
13595         * as/z80/clean.mk: new EXEEXT
13596         * Makefile.common.in: add to CFLAGS (and others), don't replace it
13597         * support/cpp2/Makefile.in: new EXEEXT
13598         * src/pic/glue.c (pic14emitRegularMap): fixed warning
13599
13600 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
13601
13602         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
13603         EXEEXT was introduced to fix all related problems with targets
13604         "clean", "install" and "uninstall"; a couple of further flaws
13605         especially with "clean" have been fixed too
13606         * as/mcs51/Makefile.in
13607         * as/mcs51/clean.mk
13608         * as/z80/Makefile
13609         * Makefile
13610         * clean.mk
13611         * debugger/mcs51/Makefile.in
13612         * debugger/mcs51/clean.mk
13613         * link/z80/Makefile
13614         * link/z80/Makefile.in
13615         * link/z80/clean.mk
13616         * link/Makefile
13617         * packihx/Makefile.in
13618         * packihx/clean.mk
13619         * sim/ucsim/Makefile
13620         * sim/ucsim/clean.mk
13621         * sim/ucsim/avr.src/Makefile.in
13622         * sim/ucsim/avr.src/clean.mk
13623         * sim/ucsim/s51.src/Makefile.in
13624         * sim/ucsim/s51.src/clean.mk
13625         * sim/ucsim/xa.src/Makefile.in
13626         * sim/ucsim/xa.src/clean.mk
13627         * sim/ucsim/z80.src/Makefile.in
13628         * sim/ucsim/z80.src/clean.mk
13629         * sim/ucsim/main_in.mk
13630         * sim/ucsim/packages_in.mk
13631         * sim/ucsim/gui.src/Makefile.in
13632         * sim/ucsim/gui.src/serio.src/Makefile.in
13633         * sim/ucsim/gui.src/serio.src/clean.mk
13634         * src/Makefile.in
13635         * src/clean.mk
13636         * support/cpp2/Makefile.in
13637         * support/cpp2/clean.mk
13638         * support/makebin/Makefile
13639         * support/makebin/clean.mk
13640         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
13641         * doc/sdccman.lyx: --program-suffix no longer needed
13642
13643 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
13644
13645          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
13646          Martin Helmling added support for ddd GUI debugger.
13647          Code added to display assembly, set variables, and other commands
13648          to interface to ddd.
13649
13650 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
13651
13652         * as/Makefile: fix target clean
13653         * as/clean.mk: fix target clean
13654         * as/z80/clean.mk: fix target clean
13655
13656 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
13657
13658         * Makefile.common.in: added  AT EXEEXT AT
13659         * configure.in: removed all mingw32 stuff
13660         * configure: rebuilt from configure.in
13661         * doc/sdccman.lyx: updated section "installation"
13662         * support/scripts/sdcc_mingw32: adapted to configure
13663         * support/scripts/sdcc_cygwin_mingw32: added
13664
13665 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
13666
13667         * src/pic Added object file support for the PIC port
13668         * src/pic Applied patch from Craig Franklin (this started the object file support)
13669         * src/regression Updated the PIC regression tests for object files
13670
13671 2003-04-20  Borut Razem <borut.razem AT siol.net>
13672
13673         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
13674           lklex.c: In function `getfid':
13675           lklex.c:203: warning: array subscript has type `char'
13676         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
13677           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
13678         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
13679           stack handling macros
13680
13681 2003-04-19  Borut Razem <borut.razem AT siol.net>
13682
13683         * "handling space characters in file path" task:
13684         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
13685         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
13686         * support/Util/MySystem.h: make it self-sufficient
13687         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
13688           src/z80/main.c, sdcc/as/mcs51/lklex.c:
13689           handling space characters in file path
13690         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
13691           (it will be used by assemblers, which have their own includes, e.g. gpasm)
13692         * support/Util/MySystem.c: handling space characters in executable's path
13693
13694 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
13695
13696         * as/z80/Makefile: fix permanent rebuild of z80
13697         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
13698         * support/regression/tests/bitfields.c: added Johan's bitfields.c
13699
13700 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
13701
13702         * src/SDCCopt.c: add special case optimization to replace modulo by
13703           a power of two with a bitwise AND.
13704
13705 2003-04-18    <johan AT balder>
13706
13707         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
13708
13709 2003-04-17    <johan AT balder>
13710
13711         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
13712         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
13713
13714 2003-04-13  Borut Razem <borut.razem AT siol.net>
13715
13716         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
13717         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
13718           fixed mingw problem in adl_NORMALIZE_PATH
13719
13720 2003-04-12  Borut Razem <borut.razem AT siol.net>
13721
13722         * fixed "#pragma SAVE/RESTORE can not be nested":
13723         * src/SDCC.lex: reworked pragma handling functions
13724         * sdcc/src/SDCCglobl.h: reworked stack handling macros
13725         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
13726
13727 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
13728
13729         * src/SDCCutil.c (pathEquivalent): defined but not used
13730         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
13731         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
13732         * configure: rebuilt from configure.in
13733         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
13734         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
13735         * device/include/Makefile.in: replace sdcc_datadir
13736         * device/lib/Makefile.in: replace sdcc_datadir
13737         * Makefile.common.in: add LDFLAGS from configure
13738         * packihx/Makefile.in: use LDFLAGS
13739         * src/Makefile.in: use LDFLAGS
13740         * support/cpp2/Makefile.in: add LDFLAGS from configure
13741         * support/makebin/Makefile: use LDFLAGS
13742         * .version: bumped version number to 2.3.5
13743
13744 2003-04-12  Borut Razem <borut.razem AT siol.net>
13745
13746         * completed "different paths" task:
13747         * src/SDCCmacro.c: fixed bug in handling quotes
13748         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
13749         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
13750
13751 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
13752
13753         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
13754
13755 2003-04-11 kevin Vigor <kevin AT vigor.nu>
13756
13757         * ds390/gen.c ds390/peeph.def: fix bug 706781
13758
13759 2003-04-11  Borut Razem <borut.razem AT siol.net>
13760
13761         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
13762
13763 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
13764
13765         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
13766         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
13767          set - this bit used to not be set...).
13768         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
13769           bad code in PIC Port
13770         * src/regression/and2.c added to test bug 609268
13771         * src/regression/Makefile added and2.c to regression test
13772
13773
13774 2003-04-08    <johan AT CP255758-A>
13775
13776         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
13777         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
13778         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
13779
13780 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
13781
13782         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
13783         fix bug #487815
13784         * support/cpp2/Makefile.in: fix bug #487815
13785         * configure: rebuilt from configure.in
13786         * Makefile.common.in: docdir changed, new path suffixes
13787         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
13788         * sdcc_vc_in.h: reflect changes from sdccconf.h
13789         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
13790         * src/SDCCutil.h: remove BINDIR hack
13791         * doc/sdccman.lyx: update new path hierarchy
13792
13793 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
13794
13795         * src/SDCCpeeph.c: added okToRemoveSLOC test
13796
13797 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
13798
13799         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
13800
13801 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
13802
13803         * src/SDCCpeeph.c: added labelIsReturnOnly test
13804         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
13805
13806 2003-04-05    <johan AT balder>
13807
13808         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
13809         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
13810         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
13811         * src/SDCCast.c: fixed a warning
13812         * src/SDCCast.h: fixed a warning
13813         * src/SDCCicode.c (operandFromAst): fixed a warning
13814
13815 2003-04-04    <johan AT balder>
13816
13817         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
13818         * src/SDCCast.c (decorateType): fixed bug #715076
13819         * src/SDCC.y: fixed bug #702907
13820
13821 2003-04-03    <johan AT balder>
13822
13823         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
13824         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
13825         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
13826         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
13827         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
13828
13829 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
13830
13831         * _decdptr.c: fix return values
13832         * _gptrget.c: fix return values
13833         * _gptrgetc.c: fix return values
13834         * _gptrput.c: fix return values
13835         * _mulint.c: fix return values
13836         * as/z80/Makefile: fix 'make -j' problem
13837
13838 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
13839
13840         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
13841         * configure.in: big cleanup, updated to autoconf 2.5x
13842         * configure: rebuilt from configure.in
13843         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
13844         * sdcc_vc_in.h: reflect changes from sdccconf.h
13845         * doc/Makefile: fixed a flaw in "make install"
13846
13847 2003-04-02    <johan AT balder>
13848
13849         * src/ds390/gen.c (genCmp): no comments
13850         * src/mcs51/gen.c (genCmp): no comments
13851         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
13852         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
13853
13854 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
13855
13856         * support/regression/generate-cases.py: place generated file in given sub directory
13857         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
13858         * support/regression/Makefile: improvements for 'make -j';
13859         side effect: it's simpler and faster now
13860
13861 2003-03-31  Borut Razem <borut.razem AT siol.net>
13862
13863         * src/z80/main.c: link-{port} and as-{port} defined without path
13864         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
13865
13866 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
13867
13868         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
13869
13870 2003-03-30  Borut Razem <borut.razem AT siol.net>
13871
13872         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
13873           changed type of list parameter to set
13874         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
13875         * src/port.h: changed type of do_assemble() parameter to set
13876         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
13877           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
13878           definition of "cppoutfilename" macro with NULL value in preProcess()
13879         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
13880         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
13881         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
13882           replaced with set *binPathSet
13883         * shash_add() deallocates the item, if allready exsists, before adding the new one
13884         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
13885
13886 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
13887
13888         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
13889           a nested for loop bug in the PIC port
13890         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
13891           for loops
13892
13893 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
13894
13895         * support/Util/dbuf.h: remove C++ stuff to make it portable
13896
13897 2003-03-28  Borut Razem <borut.razem AT siol.net>
13898
13899         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
13900           literal strings in stringLiteral()
13901         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
13902         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
13903           to the project
13904
13905 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
13906
13907         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
13908
13909 2003-03-26    <johan AT balder>
13910
13911         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
13912         * src/ds390/gen.c (saveRegisters): catched symbol abuse
13913         * src/SDCCast.c (decorateType): fixed " -v < 3"
13914
13915 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
13916
13917         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
13918         Added Lenny Story's debug infrastructure changes:
13919         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
13920         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
13921         * src/cdbFile.c: added
13922         * src/SDCCdebug.c: added
13923         * src/SDCCdebug.h: added
13924         * src/SDCCast.c (createFunction)
13925         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
13926         * src/SDCCmain.c (parseCmdLine, main)
13927         * src/SDCCmem.c (redoStackOffsets)
13928         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
13929         * src/SDCCsymt.h
13930         * src/common.h
13931         * src/avr/gen.c (genAVRCode)
13932         * src/ds390/gen.c (gen390Code)
13933         * src/mcs51/gen.c (gen51Code)
13934         * src/pic/gen.c (genpic14Code)
13935         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
13936         * src/xa51/gen.c (genXA51Code)
13937         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
13938
13939 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13940
13941         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
13942         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
13943
13944 2003-03-22    <johan AT balder>
13945
13946         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
13947
13948 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
13949
13950         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
13951         * doc/cdbfileformat.lyx: added, written by Lenny Story
13952         * doc/Makefile: added cdbfileformat.lyx
13953         * doc/clean.mk: added cdbfileformat.lyx
13954
13955 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
13956
13957         * src/mcs51/peeph.def: fix bug #705773
13958
13959 2003-03-20    <johan AT balder>
13960
13961         An sfr/sbit can have an "at #" AND an initializer
13962         * src/SDCCsymt.c (checkSClass):
13963         * src/SDCCmem.c (allocGlobal):
13964         * src/SDCCmem.c (allocLocal):
13965         * src/SDCCast.c (createBlock):
13966
13967 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
13968
13969         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
13970
13971 2003-03-16    <johan AT balder>
13972
13973         Undid the hackup of const and volatile, the problem is much bigger
13974         * src/SDCC.y:1.65
13975         * src/SDCCast.c:1.171
13976         * src/SDCCglue.c:1.138
13977         * src/SDCCicode.c:1.146
13978         * src/SDCCsymt.c:1.150
13979         * src/SDCCval.c:1.65
13980
13981 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
13982
13983         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
13984         * src/ds390/gen.c (genAddrOf): fixed bug #704087
13985
13986 2003-03-13    <johan AT balder>
13987
13988         Hackup const and volatile modifiers in type chains a bit:
13989         * src/SDCC.y:1.63
13990         * src/SDCCast.c:1.169
13991         * src/SDCCglue.c:1.136
13992         * src/SDCCicode.c:1.143
13993         * src/SDCCsymt.c1.146
13994         * src/SDCCsymt.h1.59
13995         * src/SDCCval.c:1.63
13996
13997 2003-03-12    <johan AT balder>
13998
13999         * src/SDCCBBlock.h: more LRH debugging junk
14000         * src/SDCCcflow.h: more LRH debugging junk
14001         * src/SDCCloop.c: more LRH debugging junk
14002         * src/SDCC.y (struct_declaration): fixed bug #697590
14003         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
14004         * src/ds390/gen.c (aopForRemat): fixed bug #700031
14005         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
14006
14007 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14008         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
14009         test function names must now match exactly).
14010         * src/SDCCcse.c: added special case in findCheaperOp to allow
14011         extending a short integer. Makes less awful code for bug 700121 test case.
14012
14013 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14014
14015         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
14016         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
14017
14018 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14019
14020         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
14021         actually called (operandsNotEqual() was called for all
14022         operandsNotEqualX tests).
14023
14024 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14025
14026         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
14027         with shorter literals. Fixes bug 700121.
14028
14029 2003-03-11    <johan AT balder>
14030
14031         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
14032
14033 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
14034
14035         * src/SDCCloop.c (mergeRegions): an evil beast is dead
14036         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
14037
14038 2003-03-10  Borut Razem <borut.razem AT siol.net>
14039
14040         * src/SDCCmain.c: pipe preprocessor's output
14041         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
14042         * sdcc_vc_in.h: define pclose as _pclose for WIN32
14043         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
14044         which closes all pipes in pipeSet set
14045         * src/SDCCset.c: free deleted item in function deleteSetItem()
14046         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
14047         moved from z80 to src subproject
14048         * .version: increased version number to 2.3.4
14049
14050 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
14051
14052         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
14053         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
14054         * support/regression/ports/xa51/spec.mk: fix typo
14055
14056 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
14057
14058         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
14059
14060 2003-03-09  Borut Razem <borut.razem AT siol.net>
14061
14062         * src/SDCCmain.c: pipe preprocessor's output
14063         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
14064         * sdcc_vc_in.h: define pclose as _pclose for WIN32
14065         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
14066         which closes all pipes in pipeSet set
14067         * src/SDCCset.c: free deleted item in function deleteSetItem()
14068         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
14069         moved from z80 to src subproject
14070
14071 2003-03-09  Borut Razem <borut.razem AT siol.net>
14072
14073         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
14074         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
14075         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
14076         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
14077         * src/SDCCglobl.h: unification of WIN32 native definitions
14078
14079 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14080
14081         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
14082
14083 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
14084
14085         * src/configure.in:   check for endianess (even while cross-compiling)
14086         * src/configure:      check for endianess (even while cross-compiling)
14087         * src/configure_in.h: check for endianess (even while cross-compiling)
14088         * src/avr/gen.c:        remove old endianess stuff
14089         * src/mcs51/gen.c:      remove old endianess stuff
14090         * src/ds390/gen.c:      remove old endianess stuff
14091         * src/pic/gen.c:        remove old endianess stuff
14092         * src/pic/genarith.c:   remove old endianess stuff
14093         * src/pic/glue.c:       fix endianess check
14094         * src/pic16/gen.c:      remove old endianess stuff
14095         * src/pic16/genarith.c: remove old endianess stuff
14096         * src/pic16/glue.c:     fix endianess check
14097         * src/xa51/gen.c:       remove old endianess stuff
14098         * src/z80/gen.c:        fix endianess check
14099         * src/SDCCglue.c:       fix endianess check
14100         * src/ds390/peeph.def: fix bug 700036
14101
14102 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
14103
14104         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
14105         * src/configure: find appropriate data-types on host for SDCC's int and long
14106         * src/configure.in: find appropriate data-types on host for SDCC's int and long
14107         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
14108         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
14109
14110 2003-03-07    <johan AT balder>
14111
14112         Just a big NOOP:
14113                 some minor cleanups before the big shot
14114                 OP_DEFS and OP_USES now use Kevin's protection
14115                 new option --nolabelopt
14116
14117         * src/SDCCBBlock.c:
14118         * src/SDCCast.c,:
14119         * src/SDCCcflow.c:
14120         * src/SDCCcse.c:
14121         * src/SDCCicode.c:
14122         * src/SDCCicode.h:
14123         * src/SDCClabel.c:
14124         * src/SDCCloop.c:
14125         * src/SDCCmain.c:
14126         * src/ds390/ralloc.c:
14127         * src/mcs51/ralloc.c:
14128         * src/pic/ralloc.c:
14129         * src/xa51/ralloc.c:
14130         * src/z80/ralloc.c:
14131
14132 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
14133
14134         * src/pic/pcode.c (get_op): fix 64 bit warnings
14135         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
14136         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
14137         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
14138         * support/regression/tests/malloc.c: fix 64 bit warnings
14139
14140 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
14141
14142         * src/mcs51/gen.c (genMinus): fixed bug 696436
14143
14144 2003-03-02  Borut Razem <borut.razem AT siol.net>
14145
14146         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
14147
14148 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
14149
14150         * configure.in: test for mkstemp
14151         * sdccconf_in.h: add HAVE_MKSTEMP
14152
14153 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
14154
14155         * device/include/ctype.h: removed warning while using --stack-auto
14156         * device/include/malloc.h: removed warning while using --stack-auto
14157         * device/include/string.h: removed warning while using --stack-auto
14158
14159 2003-02-23  Borut Razem <borut.razem AT siol.net>
14160
14161         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
14162         because NDEBUG is defined (see man assert)
14163         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
14164
14165 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14166
14167         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
14168         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
14169
14170 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14171
14172         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
14173         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
14174
14175 2003-02-18    <johan AT balder>
14176
14177         * as/mcs51/asmain.c (asmbl): module can start with a digit
14178         * as/z80/asmain.c (asmbl): module can start with a digit
14179
14180 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
14181
14182         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
14183         * src/asm.c: fix pipe() for Mingw32
14184
14185 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
14186
14187         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
14188         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
14189         make -V work again; --c1mode reads now from stdin
14190         * doc/sdccman.lyx: added --c1mode
14191         * support/Util/SDCCerr.c: new messages for c1 mode
14192         * support/Util/SDCCerr.h: new messages for c1 mode
14193         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
14194
14195 2003-02-15    <johan AT balder>
14196
14197         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
14198
14199 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
14200
14201         * doc/sdccman.lyx: Environment variables, -o and other minor things
14202
14203 2003-02-14    <johan AT balder>
14204
14205         * src/xa51/main.c: before anyone really tries to use it :)
14206
14207         * Install doc's in share/sdcc/doc
14208         * removed some obsolete files
14209         * Do a proper make distclean and uninstall
14210         M Makefile.common.in
14211         R sdccbuild.sh
14212         M as/Makefile
14213         M device/include/Makefile.in
14214         M device/lib/Makefile.in
14215         M doc/sdccman.lyx
14216         M link/Makefile
14217         M sim/ucsim/doc/Makefile.in
14218         M src/clean.mk
14219         R src/avr/peeph.rul
14220         R src/xa51/peeph.rul
14221         M support/cpp2/Makefile.in
14222         M support/makebin/Makefile
14223
14224
14225 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
14226
14227         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
14228
14229 2003-02-10  Borut Razem <borut.razem AT siol.net>
14230
14231         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
14232         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
14233         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
14234         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
14235         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
14236         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
14237         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
14238         src/z80/Makefile.bcc: Borland Makefile cleanup
14239         * as/z80/Makefile.bcc: Added Borland Makefile
14240         * support/cpp2/borland.h: Removed
14241
14242 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
14243
14244         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
14245         * src/SDCC.lex: new pragma NOIV
14246         * src/SDCCglobl.h: new pragma NOIV
14247         * src/SDCCmem.c: new pragma NOIV
14248
14249 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
14250
14251         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
14252
14253 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
14254
14255         * src/SDCCmain.c: signal handling is switched off by --debug
14256         * doc/Makefile: small fix for install; use clean.mk again
14257         * doc/clean.mk: clean *.pdf and *.html too
14258
14259 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
14260
14261         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
14262         * device/lib/printfl.c: fix a ds390 bug by making it portable
14263         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
14264         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
14265         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
14266         * debugger/mcs51/cmd.c: converted multi-line string literals
14267         * sim/ucsim/globals.cc: converted multi-line string literals
14268         * src/SDCCmain.c: introduced signal handler to remove temp files
14269         * doc/Makefile: small tweaks, implement clean
14270         * doc: removed generated files
14271
14272 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14273
14274         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
14275         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
14276         Address Record is not correctly generated for DS390."
14277
14278 2003-02-02  Borut Razem <borut.razem AT siol.net>
14279
14280         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
14281         * as/mcs51/asm.h: fixed compilation with Borland C
14282         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
14283         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
14284         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
14285         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
14286         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
14287         src/z80/Makefile.bcc: delete $(LIB) only if exist
14288         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
14289
14290 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
14291
14292         * device/include/malloc.h: introduced NULL
14293         * device/include/string.h: introduced NULL
14294         * device/include/stdlib.h: introduced NULL
14295         * device/lib/_memcpy.c: removed NULL
14296         * device/lib/_strcat.c: removed NULL
14297         * device/lib/_strchr.c: removed NULL
14298         * device/lib/_strcmp.c: removed NULL
14299         * device/lib/_strcpy.c: removed NULL
14300         * device/lib/_strcspn.c: removed NULL
14301         * device/lib/_strlen.c: removed NULL
14302         * device/lib/_strncat.c: removed NULL
14303         * device/lib/_strncmp.c: removed NULL
14304         * device/lib/_strncpy.c: removed NULL
14305         * device/lib/_strpbrk.c: removed NULL
14306         * device/lib/_strrchr.c: removed NULL
14307         * device/lib/_strspn.c: removed NULL
14308         * device/lib/_strstr.c: removed NULL
14309         * device/lib/_strtok.c: removed NULL
14310         * device/lib/malloc.c: removed NULL, include own header
14311
14312 2003-02-02    <johan AT balder>
14313
14314         * 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
14315         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
14316         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
14317         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
14318         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
14319         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
14320
14321 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14322
14323         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
14324         area 'DATA'"
14325
14326 2003-02-01    <johan AT balder>
14327
14328         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
14329
14330 2003-01-31    <johan AT CP255758-A>
14331
14332         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
14333
14334 2003-01-30    <johan AT balder>
14335
14336         * src/SDCCBBlock.c: automatic bug detection
14337         * src/SDCCicode.c: automatic bug detection
14338
14339 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14340
14341         * src/SDCCglobl.h:   now --xram-size 0 works
14342         * src/SDCCmain.c:    now --xram-size 0 works
14343
14344 2003-01-29    <johan AT balder>
14345
14346         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
14347
14348 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14349
14350         * as/mcs51/aslink.h: Added options --xram-size and --code-size
14351         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
14352         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
14353         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
14354         * src/SDCCglobl.h:   Added options --xram-size and --code-size
14355         * src/SDCCmain.c:    Added options --xram-size and --code-size
14356
14357 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
14358
14359         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
14360         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
14361
14362 2003-01-27    <johan AT balder>
14363
14364         * src/SDCC.y: fixed bug #613764
14365
14366 2003-01-26    <johan AT balder>
14367
14368         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
14369         * src/SDCCsymt.h: fixed bug #673374
14370         * src/SDCCglue.c: fixed bug #661910
14371         * src/SDCCast.c: fixed bug #458099 and 673374
14372
14373 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
14374
14375         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
14376         * as/mcs51/strcmpi.h: added
14377         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
14378         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
14379         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
14380         * as/mcs51/assym.c: strcmpi -> as_strcmpi
14381         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
14382         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
14383         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
14384         * as/mcs51/Makefile.aslink: new module strcmpi
14385         * as/mcs51/Makefile.asx8051: new module strcmpi
14386         * as/mcs51/Makefil.bcc: new module strcmpi
14387         * as/mcs51/Makefile.in: new module strcmpi
14388         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
14389
14390 2003-01-26    <johan AT balder>
14391
14392         * src/SDCCglue.c: reverted back to 1.124
14393         * src/SDCCast.c: reverted back to 1.156
14394         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
14395
14396 2003-01-25    <johan AT balder>
14397
14398         * src/SDCCglue.c: A better fix for bug #661910
14399         * src/SDCCast.c: A better fix for bug #661910
14400         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
14401
14402 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
14403
14404         * src/Makefile.in: remove spawn.o
14405         * src/SDCCmain.c: remove spawn.h
14406         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
14407         * src/spawn.c: removed
14408         * src/spawn.h: removed
14409         * support/regression/ports/ds390/spec.mk: link with -r
14410
14411 2003-01-24    <johan AT CP255758-A>
14412
14413         * src/ds390/gen.c (aopOp): fixed bug #667458
14414         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
14415         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
14416         (createIvalCharPtr): an ival doesn't always have a storage class anymore
14417
14418 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
14419
14420         * src/mcs51/peeph.def: better assembler identation by Frieder
14421         * src/mcs51/gen.c: better assembler identation by Frieder
14422
14423 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
14424
14425         * as/z80/string.h: removed for gcc 3.2
14426         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
14427         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
14428
14429 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
14430
14431         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
14432         * src/SDCCpeeph.c (replaceRule): fix bug #663503
14433         * support/regression/Makefile: separate temp files for ports
14434         * support/regression/generate-cases.py: separate temp files for ports
14435         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
14436         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
14437
14438 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
14439
14440         * moved tinitalk to device/examples/ds390
14441
14442 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
14443
14444         * as/mcs51/lkmem.c: rflag is for DS390
14445         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
14446         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
14447                          (linkEdit): move mem- and map-files the same way as ihx-files
14448         * src/z80/main.c (_setDefaultOptions): removed --generic
14449         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
14450         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
14451         * src/pic/glue.c (picglue): --c1mode works again
14452         * src/pic16/glue.c (pic16glue): --c1mode works again
14453         * src/asm.c (printCLine): fix #660034
14454
14455 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
14456
14457         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
14458         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
14459         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
14460         * as/mcs51/lkmem (summary): better fix for sp problem
14461         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
14462         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
14463         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
14464                                               remove --stack-after-data
14465
14466 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
14467
14468         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
14469         * src/SDCCutil.c (join): ugly bug: missing '\0'
14470         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
14471
14472 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
14473
14474         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
14475         * src/port.h: typo
14476         * src/pic/main.c (_asmCmd): gpasm supports -o
14477         * src/z80/main.c: more general macros
14478         * device/lib/Makefile.in: remove intermediate files
14479
14480 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
14481
14482         * .version: Bumped version number to 2.3.3
14483         * src/SDCCBBlock.c: new option -o
14484         * src/SDCCglobl.h: new option -o
14485         * src/SDCCglue.c: new option -o
14486         * src/SDCCmain.c: new option -o
14487         * src/asm.c: new option -o
14488         * src/ds390/main.c: new option -o
14489         * src/pic/glue.c: new option -o
14490         * src/pic/pcode.c: new option -o
14491         * src/pic/ralloc.c: new option -o
14492         * src/pic16/glue.c: new option -o
14493         * src/pic16/pcode.c: new option -o
14494         * src/pic16/ralloc.c: new option -o
14495         * src/z80/main.c: new option -o
14496         * device/lib/Makefile.in: use -o
14497         * support/regression/ports/ds390/spec.mk: use -o
14498         * support/regression/ports/gbz80/spec.mk: use -o
14499         * support/regression/ports/mcs51/spec.mk: use -o
14500         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
14501         * support/regression/ports/z80/spec.mk: use -o
14502         * support/regression/ports/ucz80/spec.mk: use -o
14503         * support/regression/ports/xa51/spec.mk: use -o
14504         * support/regression/fwk/lib/timeout.c: fix usage string
14505
14506 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
14507         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
14508
14509 2003-01-07    <johan AT balder>
14510
14511         * src/SDCCast.c (decorateType): fixed bug #600035
14512
14513 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
14514         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
14515         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
14516         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
14517         * src/pic/pcode.c: outcommented unused variable to remove warnings
14518         * src/pic/ralloc.c: outcommented unused variable to remove warnings
14519
14520 2003-01-06    <karl AT turbobit.com>
14521         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
14522    regression tests.
14523
14524 2003-01-06    <johan AT balder>
14525
14526         * src/SDCCicode.c: fixed array add
14527
14528 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
14529         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
14530         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
14531
14532 2003-01-04    <johan AT balder>
14533
14534         * src/SDCCval.c (getNelements): fixed the initialized array of structures
14535
14536 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14537         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
14538
14539 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
14540         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
14541         * support/regression/tests/bug-524697.c: fit mem usage into 8032
14542
14543 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
14544         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
14545
14546 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
14547         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
14548
14549 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
14550         * src/mcs51/main.c: removed {bindir}{sep} from aslink
14551
14552 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14553
14554     * in /sdcc/as/mcs51/ changed these files in order to create an
14555     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
14556     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
14557     following files to include the previous two files: aslink.dsp,
14558     Makefile.aslink, Makefile.bcc, and Makefile.in.
14559
14560     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
14561     .adb instead of .cdb
14562
14563 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14564
14565         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
14566         value from option --iram-size.
14567
14568 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14569
14570         * /sdcc/as/mcs51/lklist.c: added boundary check before using
14571         dram[] array.
14572
14573 2002-09-18    <wiml AT hhhh.org>
14574
14575         * SDCClrange.h: exposed setFromRange() and setToRange()
14576         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
14577           packRegsForAccUse() (bug 542397)
14578         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
14579           multiple times and emitting the fetch operations more than once
14580           added aopGetUsesAcc() function to allow binary operators to
14581           fetch their operands in the correct order; made genMinus() emit
14582           compact code for X = LITERAL - Y
14583
14584 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14585         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
14586         sprintf() in line 1267.
14587
14588 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14589         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
14590         like ports.
14591
14592 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14593         Changes to aslink (All the changes are marked with 'JCF'):
14594
14595         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
14596         summary().
14597
14598         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
14599         area BSEG.  Also moves, if possible, the DATA area down into the internal
14600         ram so more space is available.
14601
14602         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
14603         sflag.
14604
14605         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
14606         not bytes.  Function summary() which creates a memory usage summary
14607         file with extension .mem.  Reports of overlaping stack and small stack
14608         size.  If the space for the stack is less than 16 bytes aslink trows a
14609         warning.
14610
14611         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
14612         the 8051.  Option 'y' for memory summary output file.
14613
14614         Changes to sdcc (All the changes are marked with 'JCF'):
14615
14616         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
14617
14618         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
14619         overlaying area for it (uses RegBankUsed[4]).
14620
14621         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
14622         bank zero as used by default.  By default aslink locates the stack
14623         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
14624         the creation of the .mem file.  Delegates the allocation of data area
14625         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
14626         the begining of the stack area to aslink.
14627
14628         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
14629         glue() in SDCCglue.c creates an area for it.
14630
14631 2002-09-03  Borut Razem <borut.razem AT siol.net>
14632         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
14633         sdcc/src/pic/glue.c:
14634         introduced atexit() handler for teporay files removal in case of
14635         errors, assertions, ...
14636
14637 2002-08-29  Borut Razem <borut.razem AT siol.net>
14638         * sdcc/support/cpp2/auto-host_vc_in.h:
14639         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
14640         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
14641         Maybe there is a similar problem with BORLANDC? It should be checked!
14642
14643         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
14644         corrected improper use of assert: the assignment to clr variable was done inside the assert.
14645         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
14646         was not executed, and the compiler (cl) launched a warning:
14647         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
14648
14649 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
14650         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
14651
14652 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
14653         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
14654
14655         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
14656           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
14657           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
14658           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
14659           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
14660           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
14661           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
14662         - added Release configuration in VS projects
14663         - review of compiler an linker options
14664         - VC .exe files are generated in bin_vc directory, not to interfere
14665           with binaries generated from other projects (cygwin, mingw, bcc ...)
14666
14667         * sdcc/src/yacc.dsp: added
14668
14669         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
14670         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
14671         and insert the version number definitions from .version
14672
14673         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
14674
14675         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
14676         added - genarate auto-host.h using auto-host_vc_in.h as template
14677
14678         * sdcc/sdcc_vc.h,
14679         removed from CVS, generated automatically
14680
14681 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
14682         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
14683
14684 2002-08-11  Borut Razem <borut.razem AT siol.net>
14685         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
14686
14687 2002-08-10  Borut Razem <borut.razem AT siol.net>
14688         * src/SDCCmain.c (main):
14689         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
14690         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
14691         The consequence was that some temporary files were not removed.
14692
14693         * src/SDCCglue.c:
14694         unification of code in functions tempfilename() and tempfile():
14695         function tempnam() is defined in Visual Studio 6.0 and .NET
14696
14697         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
14698
14699         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
14700           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
14701         - removed compiler command line option /WX: Treats all warnings as errors
14702         - update a list of source files, included into the project
14703
14704         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
14705           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
14706         changed project type to Generic Project so that can be correcly converted to VS.NET project
14707
14708         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
14709
14710         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
14711
14712         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
14713
14714         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
14715         added return 0 statements after assert() to make compiler happy
14716
14717         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
14718         added newline in the def file to keep MSC compiler satisfied
14719
14720         * sdcc/src/z80/gen.c:
14721         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
14722           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
14723         - solved MSC error in function aopDump()
14724
14725         * sdcc_vc.h: define PREFIX as "\\sdcc"
14726
14727 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
14728         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
14729
14730 2002-06-22  Scott Dattalo <scott AT dattalo.com>
14731         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
14732         - Rewrote the register banking algorithm.
14733         - Added pCode live-range analysis to registers (for now, only non-used and
14734         singly-used registers optimized away)
14735
14736         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
14737
14738         * 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.
14739
14740 2002-05-10  Scott Dattalo <scott AT dattalo.com>
14741         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
14742
14743 2002-04-22  Michael Hope  <michaelh AT vroom>
14744
14745         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
14746
14747         * configure.in (DD_COPT): Added include support required for gbdk.
14748
14749         * .version: Bumped version number just to increase it.
14750
14751         * src/SDCCmain.c: Added -nostdinc to the default options.
14752
14753 2002-04-15  Michael Hope  <michaelh AT vroom>
14754
14755         * device/lib/z80/printf.c (sprintf): Added.
14756
14757         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
14758
14759         * src/z80/peeph.def: Added transpose redundent load rule.
14760
14761         * src/z80/main.c: Added force callee saves for jaune.
14762
14763         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
14764
14765         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
14766
14767 2002-03-28  Johan Knol  <johan AT balder>
14768
14769         * src/SDCCval.c: fixed bug #532436
14770
14771 2002-03-14  Scott Dattalo <scott AT dattalo.com>
14772         * /src/port.h:
14773         Added "char *Processor" field to the port structure.
14774
14775         * /src/SDCCmain.c:
14776         Added -p option. Allows port dependent processor to be specified.
14777
14778         * all ports:
14779         Initialized the new field char *Processor field to NULL in all ports
14780
14781         * /src/pic/*:
14782         Compiler generated registers for interrupt context saving
14783         were not getting allocated.
14784
14785 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
14786
14787         * /src/SDCCast.c:
14788         Fixed left shift. Will promote the left side of a left shift
14789         if a) left shifting more than size of operand or b) when assigned
14790         to something size > size of left side
14791
14792 2002-03-14  Scott Dattalo <scott AT dattalo.com>
14793         * src/pic/*
14794         tons of changes. Register allocation has been
14795         rewritten. Added customization for the various PICs. Flow
14796         analysis is restructured. ...
14797
14798         * src/pic/device.h:
14799         Added
14800
14801         * src/pic/device.c:
14802         Added. device.c is a PIC port hack to accomodate variations
14803         in PIC devices.
14804
14805 2002-03-13  Michael Hope  <michaelh AT vroom>
14806
14807         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
14808
14809 2002-03-04  johanknol  <johanknol AT manik>
14810
14811         * /src/SDCCval.c: fixed
14812
14813         const unsigned char arr[][2] = { { 0, 1 } };
14814         t18.c:1: error: Initializer element is not constant
14815
14816 2002-03-04  bela  <bela AT manik>
14817
14818         * /device/include/mcs51reg.h:
14819         ds89c420 register definition update
14820
14821 2002-03-03    <johan AT FRIJA>
14822
14823         * support/Util/SDCCerr.c: did something, but don't no why anymore
14824
14825         * support/regression/tests/bug-524691.c: made it a little less shy
14826
14827         * src/SDCCast.c (decorateType): fixed bug #524697
14828
14829         * src/SDCCast.c: made some lineno improvements
14830
14831         * src/SDCCval.c (getNelements): changed warning to error
14832
14833         * src/SDCCglue.c (printIvalArray): changed warning to error
14834
14835         * src/SDCCicode.c: fixed a warning for mingw
14836
14837         * src/SDCCast.c (decorateType): fixed the << promotion for ops
14838
14839         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
14840
14841 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
14842
14843         * src/ds390/peeph.def:
14844         Added some more peephole rules
14845
14846         * src/ds390/gen.c: Various fixes & enhancements
14847
14848         * src/SDCClrange.c, src/SDCClrange.h:
14849         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
14850
14851         * src/ds390/ralloc.c:
14852         various fixes & enhancements (ds390) specific
14853
14854         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
14855         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
14856         from rallocs.
14857
14858         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
14859
14860 2002-03-02    <johan AT FRIJA>
14861
14862         * src/SDCCast.c (decorateType): fixed bug #524708
14863
14864         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
14865
14866         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
14867
14868 2002-03-01  Michael Hope  <michaelh AT vroom>
14869
14870         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
14871
14872         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
14873
14874 2002-03-01    <johan AT FRIJA>
14875
14876         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
14877
14878         * src/SDCCast.c (decorateType): fixed bug #524209
14879
14880         * src/SDCCval.c (valNot): fixed bug #524195
14881
14882 2002-02-26    <johan AT balder>
14883
14884         * src/xa51/gen.c: fixed a warning
14885
14886         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
14887
14888         * src/SDCCast.c (decorateType): fixed bug #522534
14889
14890 2002-02-23    <johan AT balder>
14891
14892         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
14893
14894 2002-02-22    <johan AT balder>
14895
14896         * src/SDCCast.c: fixed bug #514865
14897
14898         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
14899
14900 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
14901
14902         * sdcc/src/SDCCloop.c:
14903         Previous fix was not good. basic blocks that have "break" or "return" are
14904         not really partof a loop , but live ranges used in these blocks should
14905         be live thru the entire loop, so set partOfLoop but don't add them to
14906         loop region
14907
14908 2002-02-21    <johan AT FRIJA>
14909
14910         * src/SDCCcse.c: fixed bug #514308
14911
14912 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
14913
14914         * src/SDCCloop.c:
14915         Fixed BUG #519583. If a conditional block ended in a return/break
14916         statement inside a loop, it was not being considered part of the loop.
14917
14918         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
14919
14920 2002-02-10  Karl Bongers <karl AT turbobit.com>
14921
14922         * debugger/*:
14923         Fixed up SDCDB debugger somewhat.  Updated debugger/README
14924         with lots of comments and notes.
14925
14926         * device/examples/test2.c:
14927         Fix bug, "red" variable not being initialized(compiler complained).
14928
14929         * device/examples/Makefile, examples/test3.c:
14930         Add Makefile in device/examples folder, compiles test3.c
14931         for use as a multiple module SDCDB test case.
14932
14933         * sim/ucsim/cmd.src/cmdset.cc:
14934         Took out debug printfs in ucsim "next" command.
14935
14936         * sim/ucsim/xa.src:
14937         Karl and Johan start ucsim XA support.  Most dissassembly working,
14938         about 75% emulation done(plenty of work remaining).
14939
14940         * sim/ucsim/z80.src:
14941         Add Z80 support to ucsim, add test-ucz80 regression test,
14942         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
14943         Notice z80 compiler fails on examples/test3.c/crc code.
14944
14945 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
14946
14947         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
14948         Added support for --parms-in-bank1
14949
14950         * src/ds390/peeph.def:
14951         added a few more peephole optimzations
14952
14953         * src/ds390/main.c:
14954         1) added __builtin_inp & __builtin_outp used to read in data of given length
14955            from a memory mapped port
14956         2) added __builtin_memcmp
14957         3) added __builtin_swapw swap bytes of a short
14958
14959         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
14960         1) handle multiple send & receives from register bank1
14961         2) ralloc can now allocate DPTR1 to some liveRanges
14962
14963         * src/SDCCsymt.c, src/SDCCsymt.h:
14964         changes to handle multiple sends & receives
14965
14966         * src/SDCCptropt.h:
14967         added some pointer arithmetic optimization
14968
14969         * src/SDCCptropt.c:
14970         added some pointer arithmetic optimizations but not stable yet so not
14971         called from anywhere (will get this working shortly)
14972
14973         * src/SDCCopt.c: fixed for multiple sends & receives
14974
14975         * src/SDCCmain.c:
14976         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
14977         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
14978            set preprocessor defines (depending on options)
14979
14980         * src/SDCCicode.c, src/SDCCicode.h:
14981         changes made to handle multiple sends & receives
14982
14983         * src/SDCCglobl.h:
14984         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
14985
14986         * src/SDCCcse.c, src/SDCCcse.h:
14987         added function findbackward def (to be used in upcoming optimization)
14988
14989         * src/SDCCcflow.c, src/SDCCcflow.h:
14990         added function returnAtEnd - to determine if a basic block terminates with
14991         a RETURN iCode
14992
14993         * src/SDCCast.c, src/SDCCast.h:
14994         added option parms-in-bank1
14995
14996         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
14997         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
14998         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
14999         adjusted for --parms-in-bank1 option
15000
15001         * device/include/string.h:
15002         donot redefine "reentrant" keyword
15003
15004         * device/include/ds80c390.h: Added some more SFRs
15005
15006 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
15007
15008         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
15009
15010 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
15011
15012         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
15013
15014 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
15015
15016         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
15017
15018 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
15019
15020         * Added --xram-movc option
15021
15022 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
15023
15024         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
15025
15026 2002-01-11  Johan Knol
15027
15028         * Added math lib of Jesus Calvino-Fraga
15029
15030 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
15031
15032         * src/SDCCmain.c (processFile): fix processing of ../../src.c
15033         * support/regression/Makefile: new target test-mcs51-stack-auto
15034         * support/regression/ports/mcs51-stack-auto/spec.mk: added
15035
15036 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
15037
15038         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
15039
15040 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
15041
15042         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
15043
15044 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
15045
15046         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
15047
15048         * src/SDCCglue.h: add definition for printIvalChar()
15049
15050 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
15051
15052         * src/SDCCast.c: fix #498138 by Johan
15053
15054         * src/SDCCglue.c: fix #498138 by Johan
15055
15056 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
15057
15058         * support/regression/Makefile: fix clean
15059
15060         * support/regression/ports/ds390/support.c: fix transmission of last character
15061
15062 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
15063
15064         * /sdcc/src/ds390/gen.c:
15065         a) improved computing address of stack variable
15066         b) took out some #if 0 code
15067         c) improved parmBytes adjustment
15068         d) improved genPlusIncr & genMinusIncr
15069         e) genCmp could generate bad code (when left assigned to DPTR)
15070         f) Fixed bug in hasInc
15071
15072         * /sdcc/src/ds390/ralloc.c:
15073         a) packRegsForSupport could mess up live information (Fixed)
15074         b) packRegsDPTRuse could be incorrect for left & right shift
15075
15076         * /sdcc/src/mcs51/ralloc.c:
15077         packRegsForSupport could mess up the live information (Fixed)
15078
15079         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
15080
15081         * /sdcc/src/SDCCast.c:
15082         can reverse a loop even if function call is present as long
15083         as the loop control variable is local & is not passed as parameter
15084
15085 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15086
15087         * /sdcc/ChangeLog: *** empty log message ***
15088
15089         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
15090         More builtin function additions for TININative
15091
15092         * /sdcc/src/ds390/ralloc.c:
15093         Had broken the regression testsuite
15094
15095         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
15096
15097         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
15098         Added funcattr hasStackParms will be set for reentrant functions when there
15099         are paramteres on the stack, this helps in minimizing frame pointer generation
15100         typeFromStr can handle function pointers now
15101
15102         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
15103         *** empty log message ***
15104
15105 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15106
15107         * /src/ds390/gen.c, /src/ds390/main.c:
15108         More builtin function additions for TININative
15109
15110         * /src/ds390/ralloc.c:
15111         Had broken the regression testsuite
15112
15113         * /src/SDCCast.c: Fixed a bug in dumptree
15114
15115         * /src/SDCCsymt.c, /src/SDCCsymt.h:
15116         Added funcattr hasStackParms will be set for reentrant functions when there
15117         are paramteres on the stack, this helps in minimizing frame pointer generation
15118         typeFromStr can handle function pointers now
15119
15120         * /doc/builtins.txt, /doc/TININative.txt:
15121         *** empty log message ***
15122
15123
15124 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15125
15126         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
15127         ALPHA version for -mTININative
15128
15129         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
15130         updated to reflect changes in the port structure
15131
15132         * /src/port.h:
15133         added function do_assemble (similar to do_link) if non-null this function
15134         will be called to do assembly (-mTININative) requires a multi command
15135         assembly
15136         added function genAssemblerEnd will be called to generate assembler Epilogue
15137
15138         * /src/SDCCsymt.c:
15139         added _JavaNative to debug info printing
15140
15141         * /src/SDCCmain.c: added option --tini-libid
15142         added port->do_assemble function (-mTININative) has a multi command assemble
15143
15144         * /src/SDCCglue.c: Disabled "constExpr" check
15145         added port->genAssemblerEnd function
15146
15147         * /src/SDCCglobl.h: Added option --tini-libid value
15148
15149         * /src/SDCCast.h:
15150         tookout optimizeCompare from the header (has no external references)
15151
15152         * /src/SDCCast.c: made one more function "static"
15153
15154 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
15155
15156         * src/z80/mappings.i: Added z80asm support.
15157
15158         * src/z80/main.c: Added z80asm support on --asm=z80asm
15159
15160         * src/z80/gen.c: Fixed asm portability issues.
15161
15162         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
15163
15164         * src/SDCCglue.c (printExterns): Added global/extern split.
15165
15166 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
15167
15168         * support/regression/Makefile: added test for mcs51 model large
15169
15170         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
15171
15172         * support/regression/ports/gbz80/spec.mk: added -mgbz80
15173
15174 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
15175
15176         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
15177
15178 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
15179
15180         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
15181
15182         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
15183
15184 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
15185
15186         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
15187
15188         * support/regression/tests/simplefloat.c: Port to mcs51.
15189
15190 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
15191         * support/regression/tests/bug-485362.c: Added.
15192
15193         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
15194
15195         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
15196
15197         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
15198
15199         * src/z80/gen.c (aopDump): Added a dump function.
15200
15201 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
15202         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
15203
15204         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
15205
15206         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
15207
15208         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
15209
15210         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
15211
15212         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
15213
15214         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
15215
15216         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
15217
15218         * support/regression/ports/ds390/support.c: Use tinibios.
15219
15220         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
15221
15222 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
15223
15224         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
15225         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
15226
15227         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
15228
15229         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
15230
15231 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
15232
15233         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
15234
15235         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
15236         (packRegsForIYUse): Created and optimised.
15237
15238 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
15239
15240         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
15241 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
15242
15243         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
15244
15245         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
15246
15247         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
15248
15249 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15250
15251         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
15252
15253         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
15254
15255 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15256
15257         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
15258
15259         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
15260
15261         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
15262
15263 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
15264
15265         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
15266         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
15267         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
15268
15269         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
15270
15271         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
15272         (genNotFloat): Added.
15273         (genUminusFloat): Added.
15274
15275         * device/lib/z80/Makefile: Added floating pt stubs.
15276
15277         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
15278
15279         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
15280
15281         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
15282
15283 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15284
15285         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
15286
15287         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
15288
15289         * sdcc/support/regression/Makefile: Add port ds390.
15290
15291         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
15292
15293         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
15294
15295         * sdcc/support/regression/ports/ds390/spec.mk: Added.
15296
15297         * sdcc/support/regression/ports/ds390/support.c: Added.
15298
15299         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
15300
15301         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
15302
15303         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
15304
15305 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
15306
15307         * device/include/malloc.h: Added z80 and gbz80 support.
15308
15309         * device/lib/gbz80/heap.s: Added.
15310
15311         * device/lib/z80/heap.s: Added.
15312
15313         * device/lib/malloc.c: Added z80 and gbz80 support.
15314
15315         * support/regression/tests/malloc.c (testMalloc): Added.
15316
15317         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
15318
15319         * support/regression/tests/bug-478094.c: Added.
15320
15321         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
15322
15323 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
15324
15325         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
15326
15327         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
15328
15329         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
15330
15331         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
15332
15333         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
15334
15335 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
15336
15337         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
15338
15339 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
15340
15341         * support/regression/tests/bug-477927.c: Added.
15342
15343         * src/z80/peeph.def: Added minor rules.
15344
15345         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
15346
15347         * src/z80/peeph.def: Added jump optimisation modification.
15348
15349 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
15350
15351         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
15352
15353 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
15354
15355         * support/regression/tests/funptrs.c: Added.
15356
15357 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
15358
15359         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
15360
15361 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
15362
15363         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
15364
15365         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
15366
15367         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
15368         (movLeft2ResultLong): Created.
15369
15370         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
15371         (joinPushes): Added.  Joins two char pushes into a word push.
15372
15373 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
15374
15375         * support/cpp2/Makefile.in (install): Added creation of dest dir.
15376
15377         * support/makebin/Makefile (install): Added creation of dest dir.
15378
15379 2001-10-24 Karl Bongers <karl AT turbobit.com>
15380
15381         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
15382
15383 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
15384
15385         * src/z80/ralloc.c: Turned off faulty pack for one use.
15386
15387         * src/z80/peeph-gbz80.def: Removed redundent restart options.
15388
15389         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
15390
15391 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
15392
15393         * support/regression/Makefile: Improved clean
15394
15395         * support/regression/ports/gbz80/spec.mk: Added clean
15396
15397         * support/regression/ports/host/spec.mk: Added clean
15398
15399         * support/regression/ports/z80/spec.mk: Added clean
15400
15401         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
15402
15403         * support/regression/ports/mcs51/timeout.c: little improvements
15404
15405 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
15406
15407         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
15408
15409         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
15410
15411         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
15412
15413 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
15414
15415         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
15416
15417         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
15418
15419 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
15420         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
15421
15422         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
15423
15424         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
15425
15426         * src/mcs51/main.c (_linkCmd): Added bin path to command.
15427
15428         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
15429
15430         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
15431
15432         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
15433
15434         * support/regression/tests/longor.c: Added.
15435
15436 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
15437
15438         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
15439
15440         * as/mcs51/aslink.h: define PATH_MAX
15441
15442         * as/mcs51/asm.h: define PATH_MAX
15443
15444         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
15445
15446         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
15447
15448         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
15449
15450         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
15451
15452         * src/SDCCglobl.h: define PATH_MAX
15453
15454         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
15455
15456         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
15457
15458 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
15459
15460         * src/z80/gen.c (gencjneshort): Fixed
15461
15462         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
15463
15464 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
15465
15466         * support/regression/tests/bug-469671.c: Added.
15467
15468         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
15469
15470 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
15471
15472         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
15473
15474         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
15475
15476 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
15477
15478         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
15479
15480         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
15481
15482         * src/device/lib/_mullong.c : removed hint: nooverlay bug
15483
15484         * src/device/lib/_divuint.c : removed hint: nooverlay bug
15485
15486         * src/device/lib/_divulong.c: removed hint: nooverlay bug
15487
15488         * src/device/lib/_moduint.c : removed hint: nooverlay bug
15489
15490         * src/device/lib/_modulong.c: removed hint: nooverlay bug
15491
15492 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
15493
15494         * 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.
15495
15496         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
15497
15498         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
15499
15500 2001-10-07    <johan AT FRIJA>
15501
15502         * device/lib/gets.c (gets): fixed the return value.
15503
15504 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
15505         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
15506
15507         * 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.
15508
15509         * 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.
15510
15511         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
15512
15513         * src/pic/gen.c: Removed Safe_strdup.
15514
15515         * configure.in: Added option to enable libgc support.
15516
15517         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
15518         (bitVectUnion): Optimised.
15519         (bitVectIntersect): Optimised.
15520         (bitVectBitsInCommon): Optimised.
15521         (bitVectCplAnd): Optimised.
15522
15523         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
15524
15525 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
15526
15527         * src/SDCCmain.c: distinguish between assembler debug and plain options
15528
15529         * src/avr/main.c:   remove standard assembler options
15530
15531         * src/ds390/main.c: remove standard assembler options
15532
15533         * src/mcs51/main.c: remove standard assembler options
15534
15535         * src/port.h: removed "PENDING" comment
15536
15537 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
15538
15539         * src/device/lib/_mulint.c  : new, with assember functions
15540
15541         * src/device/lib/_mullong.c : new, with assember functions
15542
15543         * src/device/lib/_divuint.c : with assember functions
15544
15545         * src/device/lib/_divsint.c : with assember functions
15546
15547         * src/device/lib/_divulong.c: with assember functions
15548
15549         * src/device/lib/_divslong.c: with assember functions
15550
15551         * src/device/lib/_moduint.c : with assember functions
15552
15553         * src/device/lib/_modsint.c : with assember functions
15554
15555         * src/device/lib/_modulong.c: with assember functions
15556
15557         * src/device/lib/_modslong.c: with assember functions
15558
15559         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
15560
15561         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
15562
15563         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
15564                                       replaced _mululong.c and _mulslong.c by _mullong.c
15565
15566 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
15567
15568         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
15569
15570 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
15571
15572         * src/SDCCglue.c: test, if win32api is available for MINGW
15573
15574 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
15575
15576         * src/SDCCsymt.c: no more _modifier in printTypeChain()
15577         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
15578         * support/regression/ports/gbz80/spec.mk: removed GENERIC
15579         * support/regression/ports/host/spec.mk: removed GENERIC
15580         * support/regression/ports/mcs51/spec.mk: removed GENERIC
15581         * support/regression/ports/z80/spec.mk: removed GENERIC
15582
15583 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
15584
15585         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
15586
15587         * support/regression/tests/bug-467035.c: Created.
15588
15589 2001-10-01    <johan AT FRIJA>
15590
15591         * src/SDCC.y: fixed bug #466586 part 1
15592
15593 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
15594
15595         * SDCCicode.c: z80 has no generic pointers
15596         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
15597
15598 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
15599
15600         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
15601
15602 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
15603
15604         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
15605
15606         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
15607
15608 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
15609
15610         * configure.in: Fixed up so that ucsim is only configured once.
15611
15612         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
15613
15614         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
15615         (getPathDifference): As above.
15616
15617         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
15618
15619         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
15620
15621 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
15622         * .version: Updated to 2.3.1
15623
15624         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
15625         Added copyright header.
15626
15627         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
15628         (assemble): Added support for macro based assembler commands.
15629         (linkEdit): Added support for macro based linker commands.
15630         (preProcess): Changed the pre-processor to use macros.
15631         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
15632         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
15633
15634         * device/lib/z80/crt0.s: Added module name for debugging.
15635
15636 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
15637
15638         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
15639
15640         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
15641
15642         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
15643
15644         * src/Makefile.in: Added SDCCmacro and SDCCutil
15645
15646 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
15647
15648         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
15649
15650 2001-09-16    <johan AT FRIJA>
15651
15652         * 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.
15653
15654 2001-09-15    <johan AT FRIJA>
15655
15656         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
15657         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
15658
15659 2001-09-11    <johan AT FRIJA>
15660
15661         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
15662
15663 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
15664
15665         * support/regression/tests/bug-460444.c: Added test case.
15666
15667         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
15668         (genCast): Added justification for all of the asserts.
15669
15670 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
15671
15672         * support/regression/support.c: _xdata replaced by xdata
15673
15674         * support/regression/spec.mk: removed _generic
15675
15676 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
15677
15678         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
15679
15680         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
15681         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
15682
15683         * src/z80/peeph.def: Added a rule to optimise shift then compare.
15684
15685         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
15686
15687         * support/regression/tests/bug-460010.c: Added test case.
15688
15689         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
15690
15691 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
15692
15693         * support/regression/Makefile: inter-port-clean adjusted for mcs51
15694
15695         * support/regression/testfwk.c: removed workaround for bug #436344
15696
15697         * support/regression/tests/bp.c: use less memory with mcs51
15698
15699         * support/regression/tests/bug-441448.c: use less memory
15700
15701         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
15702
15703         * support/regression/collate-results.py: typo
15704
15705 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
15706
15707         * support/regression/tests/fetchoverlap.c: Added new test case.
15708
15709         * support/regression/tests/bp.c: Added new test case.
15710
15711         * support/regression/tests/bug-448984.c: Added new test case.
15712
15713         * support/regression/tests/pow2shifts.c: Added new test case.
15714
15715         * src/z80/gen.c: Turned off the noise it normally generates for the release.
15716         (genlshTwo): Fixed right shift for count > 8.
15717
15718         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
15719
15720 2001-09-08    <johan AT FRIJA>
15721
15722         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
15723
15724 2001-09-07    <johan AT FRIJA>
15725
15726         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
15727
15728         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
15729
15730 2001-09-06    <johan AT FRIJA>
15731
15732         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
15733         * bernhard noted me at this: "() equals to (void)" (1.38)
15734
15735 2001-09-05    <johan AT FRIJA>
15736
15737         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
15738
15739 2001-09-04    <johan AT FRIJA>
15740
15741         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
15742
15743
15744 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
15745
15746         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
15747
15748 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
15749
15750         * link/z80/aslink.h: Fixed path for PATH_MAX
15751
15752 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
15753
15754         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
15755
15756         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
15757
15758         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
15759
15760         * 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.
15761
15762 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
15763
15764         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
15765         (genCmp): Fixed up genCmp for the GB with longs.
15766
15767         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
15768
15769         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
15770
15771         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
15772
15773         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
15774
15775 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
15776
15777         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
15778
15779 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
15780
15781         * 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.
15782
15783         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
15784
15785 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
15786
15787         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
15788
15789         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
15790
15791 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
15792
15793   * sim/ucsim/configure:    little improvement of Cygwin-detection
15794   * sim/ucsim/configure.in: little improvement of Cygwin-detection
15795   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
15796   * support/regression/tests/bug-221100.c: small changes for mcs51
15797   * support/regression/tests/bug-221168.c: small changes for mcs51
15798   * support/regression/tests/bug-227710.c: small changes for mcs51
15799   * support/regression/tests/staticinit.c: small changes for mcs51
15800   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
15801   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
15802   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
15803
15804 $Revision$