* support/regression/Makefile.in,
[fw/sdcc] / ChangeLog
1 2008-02-21 Borut Razem <borut.razem AT siol.net>
2
3         * support/regression/Makefile.in,
4           support/regression/ports/ds390/spec.mk,
5           support/regression/ports/hc08/spec.mk,
6           support/regression/ports/mcs51-common/spec.mk,
7           support/regression/ports/pic14/spec.mk,
8           support/regression/ports/pic16/spec.mk,
9           support/regression/ports/ucz80/spec.mk,
10           support/regression/ports/xa51/spec.mk:
11           added CFLAGS when compiling timeout
12
13 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
14
15         * support/regression/tests/bugs-1596270-1736867.c: Regression test for #1596270, #1736867
16
17 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
18
19         * src/SDCClrange.c (findPrevUse): fixed bug 1888147
20         * support/regression/tests/bug1888147.c: new, added
21
22 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
23
24         * src/z80/gen.c: fixed bugs #1596270, #1736867
25
26 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
27
28         * src/z80/gen.c: fixed bug in register pair loading when swapping register contents,
29           mostly fixes #1596270
30
31 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
32
33         * src/z80/peeph.def,
34         * src/z80/peeph-z80.def: moved peephole that breaks gbz80 to z80-specific peepholes,
35           fixes #1806565
36
37 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
38
39         * src/SDCCpeeph.c (operandBaseName): added check for @Ri
40         * src/mcs51/peeph.def (rule 177.c): added operandsNotRelated(%1 %3)
41           fixes bug 1739475, thanks Robert Larice
42           (rule 271): new, added
43
44 2008-02-18 Borut Razem <borut.razem AT siol.net>
45
46         * sim/ucsim/s51.src/Makefile.in: fixed error made in previous commit
47
48 2008-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
49
50         * src/SDCCmain.c (linkEdit): emit -z when using --debug for z80
51
52 2008-02-17 Raphael Neider <rneider AT web.de>
53
54         * src/pic16/genarith.c,
55         * src/pic16/gen.c,
56         * src/pic16/gen.h,
57         * src/pic16/genutils.c: removed unused legacy code,
58           removed unused fields from struct asmop and struct _G
59
60 2008-02-17 Raphael Neider <rneider AT web.de>
61
62         * src/pic16/gen.c (AccRsh): cosmetic changes,
63           (shiftR1Left2ResultSigned,shiftR1Left2Result,shiftL1Left2Result,
64           genRightShiftLiteral): fixed to work with SFRs as result by
65           assigning only once to result,
66           removed a lot of unused/excluded code fragments
67
68 2008-02-17 Raphael Neider <rneider AT web.de>
69
70         * device/include/pic/pic16f88.h,
71         * device/include/pic/pic16f886.h,
72         * device/include/pic/pic16f887.h: added TRISA6 and TRISA7
73
74 2008-02-17 Borut Razem <borut.razem AT siol.net>
75
76         * src/z80/peeph.def: applied patch
77           #1893626: Optimize tail calls on Z80, thanks to Philipp Krause
78         * src/z80/gen.c, src/z80/peeph.def: applied patch
79           #1893510: Improve logical left shift on Z80, thanks to Philipp Krause
80         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
81           sim/ucsim/s51.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
82           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
83           sim/ucsim/main_in.mk: renamed libutil.a to libucsimutil.a in order to
84           enable compilation on Mac OS X 10.5 (Leopard) and XCode v3.0
85
86 2008-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
87
88         * as/link/mcs51/aslink.dsp: removed SDK define
89         * as/link/z80/clean.mk: brought in sync with other ports
90         * as/link/z80/lklibr.c (SdccLib, fndsym): handle the dflag here too
91         * as/hc08/Makefile.bcc,
92         * as/mcs51/Makefile.bcc,
93         * as/z80/Makefile.bcc: noice.c was moved to as/asxxsrc/
94         * src/z80/main.c (_setValues): use the now capitalized -Z,
95           (z80_port, gbz80_port): generate debug information when asked
96
97 2008-02-16 Borut Razem <borut.razem AT siol.net>
98
99         * as/z80/asmain.c, as/z80/asm.h, as/z80/asdata.c,
100           as/link/z80/lkmain.c, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
101           as/z80/Makefile.in. as/z80/Makefile.bcc:
102           applied patch #1893393: patch for as-z80 and link-z80 to generate
103           cdb, thanks to Armin Diehl
104         * as/*/asnoice.c, as/hc08/as_hc08.dsp, as/hc08/Makefile.in,
105           as/mcs51/asx8051.dsp, as/mcs51/Makefile.in:
106           asnoice.c moved to as/asxxsrc/asnoice.c
107         * src/z80/peeph-gbz80.def: applied patch
108           #1880235: Z80 return peephole, thanks to Philipp Krause
109
110 2008-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
111
112         * .version,
113         * doc/sdccman.lyx: bumped version to 2.7.5
114         * src/SDCCsymt.c (compareType, comparePtrType): fixed bug 1281583
115
116 2008-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
117
118         * device/include/pic16/stdlib.h,
119         * device/lib/pic16/libc/stdlib/ltoa.c,
120         * device/lib/pic16/libc/stdio/vfprintf.c: ascii strings are char*
121
122 2008-02-13 Borut Razem <borut.razem AT siol.net>
123
124         * src/SDCCmain.c, src/SDCCglue.c: fixed --c1mode
125         * src/pic16/glue.c, src/SDCCast.c, src/SDCCast.h, src/SDCCBBlock.c,
126           src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c, src/SDCCloop.c,
127           src/SDCCopt.c,  src/SDCCval.c:
128           fixed bug #1890273: SDCC Warning 154 shows wrong filename
129
130 2008-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
131
132         * src/SDCCsymt.c (compareType): fixed bug 1309013
133
134 2008-02-09 Borut Razem <borut.razem AT siol.net>
135
136         * src/SDCCval.c, src/SDCCval.h:
137           code cleaning, added function constChrVal()
138         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c, src/SDCCast.c, src/SDCC.y:
139           call constChrVal() instead constVal()
140
141 2008-02-01 Maarten Brock <sourceforge.brock AT dse.nl>
142
143         * src/SDCCast.c (resolveSymbols): added reentrancy check for parameters
144           of function pointer
145         * src/SDCCerr.h,
146         * src/SDCCerr.c: changed warning W_NONRENT_ARGS to error E_NONRENT_ARGS
147         * support/regression/tests/absolute.c: added TestStruct TestVar (see also
148           bug 1859853)
149
150 2008-02-01 Raphael Neider <rneider AT web.de>
151
152         * device/include/pic/pic16f886.h,
153         * device/include/pic/pic16f887.h: added RA6 and RA7
154
155 2008-01-24 Raphael Neider <rneider AT web.de>
156
157         * device/include/pic/pic16f88.h: added RA6 and RA7
158         * device/lib/pic/libdev/disabled_pic16f886.c,
159         * device/lib/pic/libdev/disabled_pic16f887.c: renamed and enabled
160
161         * src/pic16/devices.inc,
162         * device/include/pic16/pic18f2423.h,
163         * device/include/pic16/pic18f2523.h,
164         * device/include/pic16/pic18fregs.h,
165         * device/lib/pic16/pics.all
166         * device/lib/pic16/libdev/pic18f2423.c,
167         * device/lib/pic16/libdev/pic18f2523.c: added 18f2423 and 18f2523
168         * device/lib/pic16/libio/i2c.ignore,
169         * device/lib/pic16/libio/usart.ignore,
170         * device/lib/pic16/libio/adc.ignore: ignore new devices
171
172 2008-01-23 Maarten Brock <sourceforge.brock AT dse.nl>
173
174         * src/SDCCast.c (createRMW): fixed bug 1582651
175
176 2008-01-20 Borut Razem <borut.razem AT siol.net>
177
178         * src/SDCCcse.c: partially fixed enhancement request
179           #1793872 - multiply by -1 not collapsed
180         * support/regression/tests/arithcsi.c: added regression test
181
182 2008-01-19 Maarten Brock <sourceforge.brock AT dse.nl>
183
184         * as/mcs51/asx8051.dsp: removed define SDK
185         * as/mcs51/i51mch.c (machine): fixed bug 1865114
186         * device/include/asm/ds390/features.h: fixed bug with ds390 & stack-auto
187         * as/link/lklex.c,
188         * as/link/mcs51/lkmain.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
189           cosmetic changes, brought more in sync, changed old K&R to ANSI
190
191 2008-01-13 Borut Razem <borut.razem AT siol.net>
192
193         * support/scripts/sdcc.nsi: added Uninstall/reinstall page, ...
194         * src/SDCCicode.c: fixed bug #1870216 - Error 122: dividing by zero
195
196 2007-12-30 Borut Razem <borut.razem AT siol.net>
197
198         * src/pic16/gen.c: fixed implementation of bitwise operations for
199           pic16 target
200         * support/regression/tests/bitwise.c: added test cases
201
202 2007-12-29 Borut Razem <borut.razem AT siol.net>
203
204         * src/SDCCasm.[ch]: renamed from asm[ch], use dbuf_getline(), ...
205         * src/src.dsp, src/Makefile.bcc, src/Makefile.in, src/common.h,
206           src/SDCCglue.c, src/xa51/main.c: asm.[ch] renamed to SDCCasm.[ch]
207         * support/Util/dbuf_string.[ch]: added function dbuf_getline()
208         * src/ds390/gen.c, src/hc08/gen.c, src/mcs51/gen.c, src/pic16/gen.c,
209           src/pic/gen.c, src/z80/gen.c, src/xa51/gen.c, src/pic16/ralloc.c,
210           src/pic16/pcode.[ch]: added const qualifier
211         * as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
212           as/mcs51/Makefile.bcc, as/mcs51/Makefile.in, as/mcs51/asx8051.dsp,
213           as/z80/Makefile.bcc, as/z80/Makefile.in, as/z80/as_gbz80.dsp,
214           as/z80/as_z80.dsp: added dbuf.[ch] and dbuf_string[ch] to project
215         * as/asxxsrc/aslex.c: use dbuf_getline()
216         * as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/asm.h, as/hc08/m08adr.c,
217           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/asm.h,
218           as/mcs51/i51adr.c, as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c,
219           as/z80/asm.h, as/z80/z80adr.c:
220           changed type of ib and ip to const char *
221
222 2007-12-28 Borut Razem <borut.razem AT siol.net>
223
224         * as/asxxsrc/aslex.c: moved from as/mcs51/aslex.c;
225           introduced (readlin) - long lines are turuncated
226         * as/hc08/as_hc08.dsp, as/mcs51/asx8051.dsp, as/z80/as_gbz80.dsp,
227           as/z80/as_z80.dsp, as/hc08/Makefile.in, as/mcs51/Makefile.in,
228           as/z80/Makefile.in: moved aslex.c to asxxsrc
229         * as/hc08/aslex.c, as/z80/aslex.c: deleted
230         * as/hc08/asmain.c, as/mcs51/asmain.c:
231           added missing initialization of a_addr field
232         * support/regression/tests/long_asm_line.c: added regtest for long
233           assembler line
234
235 2007-12-22 Borut Razem <borut.razem AT siol.net>
236
237         * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
238
239 2007-12-20 Maarten Brock <sourceforge.brock AT dse.nl>
240
241         * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang
242
243 2007-12-16 Borut Razem <borut.razem AT siol.net>
244
245         * device/include/pic16/stdbool.h: removed, since already exists in
246          device/include/; this also fixes bitopcse.c regression test for pic16
247          target
248         * support/regression/fwk/inclusw/testfwk.h: added macro ASSERT_FAILED
249         * src/pic16/glue.c: fixed bug #1851855: generic static pointer
250           dereference doesn't work; covered by regression test bug1399290
251
252 2007-12-05 Borut Razem <borut.razem AT siol.net>
253
254         * doc/sdccman.lyx: fixed bug #1844509 - Correction to Manual 4.6.9
255           Adding new PIC16
256
257 2007-12-01 Borut Razem <borut.razem AT siol.net>
258
259         * sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/mem.cc:
260           corrected handling of the highest_valid_address
261
262 2007-11-17 Raphael Neider <rneider AT web.de>
263
264         * src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
265         * src/pic/glue.c (picglue): emit .file if --debug is given
266
267 2007-11-17 Raphael Neider <rneider AT web.de>
268
269         * src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
270         care when left or right operand resides in result, fixes #1830220
271
272 2007-11-17 Borut Razem <borut.razem AT siol.net>
273
274         * src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
275           #983491 - "Merge duplicate strings function is ineffective"
276         * support/regression/tests/bug-983491.c: regtest disabled
277         * as/asxxsrc: created
278           as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
279           as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
280           as/z80/assym.c, as/hc08/asstore.c, as/mcs51/asstore.c: deleted
281           as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
282           as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
283           as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
284           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
285           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
286           as/link/z80/linkz80.dsp, as/mcs51/Makefile.bcc, as/mcs51/Makefile.in,
287           as/mcs51/asm.h, as/mcs51/asx8051.dsp, as/z80/Makefile.bcc,
288           as/z80/Makefile.in, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
289           as/z80/Makefile.as_hc08, as/mcs51/Makefile.asx8051: modified
290           created as/asxxsrc directory, assym.c and strcpi.c moved into it
291
292 2007-11-15 Maarten Brock <sourceforge.brock AT dse.nl>
293
294         * device/include/stdarg.h: added and removed some casts
295         * src/SDCCsymt.c (compareType): Fully check types between generic and
296           non-generic pointers, also accept ptr-ptr to void-ptr assignments
297
298 2007-11-13 Borut Razem <borut.razem AT siol.net>
299
300         * support/regression/tests/bug-1817005.c:
301           added regtest for bug #1817005 - as-z80 chokes on long labels
302
303 2007-11-12 Borut Razem <borut.razem AT siol.net>
304
305         * as\z80\asmain.c, as\z80\asm.h, as\z80\assym.c, as\z80\asdata.c,
306           as\z80\asout.c, as\z80\aslist.c:
307           fixed bug #1817005 - as-z80 chokes on long labels
308
309 2007-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
310
311         * as/hc08/asmain.c,
312         * as/z80/asmain.c: cosmetic changes
313         * as/hc08/alloc.h,
314         * as/mcs51/alloc.h,
315         * as/z80/alloc.h: removed
316         * as/hc08/assym.c,
317         * as/mcs51/assym.c: replaced alloc.h with stdlib.h
318         * as/link/aslink.h: added LKDIRSEP and, LKDIRSEPSTR
319         * as/link/hc08/Makefile.in,
320         * as/link/mcs51/Makefile.in,
321         * as/link/z80/Makefile.in: added -DUNIX to CFLAGS
322         * as/link/lklex.c,
323         * as/link/mcs51/lkarea.c,
324         * as/link/mcs51/lkmain.c: cosmetic changes
325         * as/link/hc08/lklibr.c,
326         * as/link/z80/lklibr.c,
327         * as/link/mcs51/lklibr.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
328           used cygwin_conv_to_full_posix_path,
329           added warnings, cosmetic changes, brought more in sync
330           changed old K&R into ANSI function declarations
331         * as/link/z80/lklibr.c (loadAdb): added
332         * as/link/z80/lkmain.c: removed -- option from usage text
333
334 2007-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
335
336         * src/mcs51/gen.c (outBitC): optimized for no result
337
338 2007-10-31 Borut Razem <borut.razem AT siol.net>
339
340         * src/SDCCsymt.c: fixed (hopeful properly) bug
341           #1805702 - order of extern matters
342         * support/regression/tests/bug-1805702.c: enabled regtest for bug
343           #1805702
344
345 2007-10-29 Borut Razem <borut.razem AT siol.net>
346
347         * src/SDCCsymt.c: reverted bad fixed of bug #1805702
348           - order of extern matters
349         * support/regression/tests/bug-1805702.c: disabled regtest for bug
350           #1805702
351
352 2007-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
353
354         * src/ds390/peeph.def: replaced 24bitModeAndPortDS390 by
355           24bitMode, portIsDS390
356         * src/mcs51/gen.c (genOr): optimized for RFE 1750727
357         * src/SDCCpeeph.c (flat24bitModeAndPortDS390): removed
358           (notVolatileVariable): also check sloc names,
359           (callFuncByName): moved ftab[] out of function and sorted it by use
360
361 2007-10-28 Maarten Brock <sourceforge.brock AT dse.nl>
362
363         * device/include/stdarg.h: fixed bug in va_start macro for --xstack
364         * src/hc08/gen.c (aopForRemat): aop->aopu.aop_immd.from_cast_remat not set,
365           aop->aopu.aop_immd.aop_immd2 not filled with (generic) pointer type
366         * src/SDCCicode.c (geniCodeCast): fixed bug 880197
367         * support/regression/tests/bug-880197.c: new, added
368
369 2007-10-28 Borut Razem <borut.razem AT siol.net>
370
371         * support/regression/Makefile.in,
372           support/regression/ports/mcs51-large/spec.mk,
373           support/regression/ports/mcs51-xstack-auto/spec.mk,
374           support/regression/ports/mcs51-stack-auto/spec.mk,
375           support/regression/ports/mcs51-medium/spec.mk,
376           support/regression/ports/mcs51-common/spec.mk,
377           support/regression/ports/mcs51-common/*,
378           support/regression/ports/mcs51-small/*:
379           mcs51 renamed to mcs51-common, created mcs51-small
380         * src/SDCCsymt.c: fixed bug #1805702 - order of extern matters
381         * support/regression/tests/bug-1805702.c: added regtest for bug
382           #1805702
383
384 2007-10-26 Maarten Brock <sourceforge.brock AT dse.nl>
385
386         * src/mcs51/peeph.def: moved rules 257.x to 253.x and re-enabled 253.b,
387           added new rules 265 - 270
388         * support/regression/tests/bug1721024.c:new, added
389         * support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
390           introduced new test-mcs51 to run all mcs51 tests
391
392 2007-10-25 Maarten Brock <sourceforge.brock AT dse.nl>
393
394         * support/regression/tests/bug1816470.c: new, added
395
396 2007-10-21 Maarten Brock <sourceforge.brock AT dse.nl>
397
398         * src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
399           propagate for *,+,- with float, fixed bug 1816470
400           (decorateType): cast to resultTypeProp instead of resultType
401
402 2007-10-19 Borut Razem <borut.razem AT siol.net>
403
404         * src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
405           function is ineffective" for pic16 tareget
406         * support/scripts/listerr.c: corrected include path
407         * device/lib/_itoa.c: fixed bug #1806402 - _itoa and _uitoa leak to
408           adjacent memory
409
410 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
411
412         * support/regression/tests/using.c: new, added
413         * support/regression/tests/vaargs.c: fixed and enabled test
414
415 2007-10-18 Borut Razem <borut.razem AT siol.net>
416
417         * src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
418           is ineffective
419         * support/regression/tests/bug-983491.c: added regtest for bug #983491
420
421 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
422
423         * doc/sdccman.lyx: documented option --Werror
424         * src/SDCCsymt.c (checkFunction): fixed bug 1815418 by setting
425           RegBankUsed[] earlier
426
427 2007-10-14 Maarten Brock <sourceforge.brock AT dse.nl>
428
429         * device/include/mcs51/p89lpc938.h: new, added, thanks Kyle Guinn
430         * src/pic/glue.c,
431         * src/SDCCval.c,
432         * src/SDCCast.c,
433         * src/SDCCast.h: replaced AST_LIT_VALUE with AST_FLOAT_VALUE and
434           AST_ULONG_VALUE
435         * src/SDCCast.c (decorateType): improved optimization of tri-op
436         * src/SDCCerr.c (vwerror, setWError),
437         * src/SDCCerr.h,
438         * src/SDCCmain.c (parseCmdLine): added option --Werror to treat all
439           warnings as errors, thanks Stas Sergeev for PATCH 1813211
440
441 2007-10-13 Maarten Brock <sourceforge.brock AT dse.nl>
442
443         * src/mcs51/gen.c (leftRightUseAcc): use macro IS_OP_ACCUSE
444         * src/SDCCast.c (decorateType): optimize bit=cond?1:0, RFE 1738430
445         * support/regression/tests/bug-223113.c,
446         * support/regression/tests/bug-426632.c,
447         * support/regression/tests/bug-468811.c,
448         * support/regression/tests/bug-477835.c,
449         * support/regression/tests/bug-478094.c,
450         * support/regression/tests/bug-499644.c,
451         * support/regression/tests/bug-524209.c,
452         * support/regression/tests/bug-524211.c,
453         * support/regression/tests/packcast.c,
454         * support/regression/tests/structidx.c: added empty tests
455         * support/regression/tests/bug-607243.c: enabled test
456
457 2007-10-06 Borut Razem <borut.razem AT siol.net>
458
459         * .version, doc/sdccman.lyx: bumped version to 2.7.4 to indicate the full
460            support of universal binaries on Mac OS X
461
462 2007-10-02 Borut Razem <borut.razem AT siol.net>
463
464         * src/SDCCval.h: unified double2ul macro for all platforms
465         * src/SDCCval.c: fixed bug #1777758 - applied Maarten's patch
466         * support/regression/tests/bitwise.c: added regtest for bug #1777758
467
468 2007-09-30 Borut Razem <borut.razem AT siol.net>
469
470         * src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
471           platforms
472         * sdcc_vc_in.h: enabled warnings
473         * src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
474           unsigned type, result still unsigned
475         * src/mcs51/peep.c: fixed gcc warning: suggest parentheses around && within ||
476
477 2007-09-28 Raphael Neider <rneider AT web.de>
478
479         * src/pic/device.c (find_device): prevent buffer underflow error
480         * src/pic/pcoderegs.c (OptimizeRegUsage): avoid dereferencing
481           the just destroyed list entry
482
483 2007-09-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
484
485         * doc/sdccman.lyx: there's a dedicated wiki page for cmake and sdcc, thanks
486           Alexander Neundorf
487
488 2007-09-18 Borut Razem <borut.razem AT siol.net>
489
490         * src/SDCCval.c: fixed MSVC warning C4146: unary minus operator
491          applied to unsigned type, result still unsigned
492
493 2007-09-17 Borut Razem <borut.razem AT siol.net>
494
495         * src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c,
496           src/SDCCicode.c, src/SDCCopt.c, src/SDCCsymt.c, src/SDCCval.c,
497           src/SDCCval.h, src/hc08/gen.c, src/avr/gen.c, src/ds390/gen.c,
498           src/mcs51/gen.c, src/pic/gen.c, src/pic/genarith.c, src/pic/glue.c,
499           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/genarith.c,
500           src/pic16/genutils.c, src/pic16/glue.c, src/pic16/main.c,
501           src/z80/gen.c, src/z80/ralloc.c:
502           fixed bug #1739860 - sdcc does not work correctly on some platforms
503           (not finished)
504           introduced and used ulFromVal(), double2ul(), used strtod() instead sscanf()
505
506 2007-09-17 Raphael Neider <rneider AT web.de>
507
508         * src/pic16/device.c: reverted to previous version
509         * device/lib/pic16/Makefile.common.in: quieten gpasm via -Wa,-q
510
511 2007-09-16 Raphael Neider <rneider AT web.de>
512
513         * src/pic16/device.c (pic16_dump_usection): do not reserve 0 bytes,
514           as this raises a ton of gpasm warnings, just emit a second label
515         * src/pic16/devices.inc,
516         * device/lib/pic16/pics.all,
517         * device/lib/pic16/libdev/pic18f2585.c,
518         * device/lib/pic16/libdev/pic18f2680.c,
519         * device/lib/pic16/libdev/pic18f2682.c,
520         * device/lib/pic16/libdev/pic18f2685.c,
521         * device/lib/pic16/libdev/pic18f4585.c,
522         * device/lib/pic16/libdev/pic18f4680.c,
523         * device/lib/pic16/libdev/pic18f4682.c,
524         * device/lib/pic16/libdev/pic18f4685.c,
525         * device/include/pic16/pic18f2585.h,
526         * device/include/pic16/pic18f2680.h,
527         * device/include/pic16/pic18f2682.h,
528         * device/include/pic16/pic18f2685.h,
529         * device/include/pic16/pic18f4585.h,
530         * device/include/pic16/pic18f4680.h,
531         * device/include/pic16/pic18f4682.h,
532         * device/include/pic16/pic18f4685.h,
533         * device/include/pic16/pic18fregs.h: added 18f2585, 18f2680,
534           18f2682, 18f2685, 18f4585, 18f4680, 18f4682, 18f4685,
535           patch contributed by Anton Strobl, applied with changes
536
537 2007-09-16 Raphael Neider <rneider AT web.de>
538
539         * device/include/pic16/pic18f2431.h,
540         * device/include/pic16/pic18f25j10.h,
541         * device/include/pic16/pic18f4431.h,
542         * device/include/pic16/pic18f45j10.h: adopted common include style
543         * device/include/pic16/pic18f1320.h,
544         * device/include/pic16/pic18f2320.h,
545         * device/include/pic16/pic18f2525.h,
546         * device/include/pic16/pic18f4320.h,
547         * device/include/pic16/pic18f4525.h: NEW, just include proper .h file
548         * device/include/pic16/pic18fregs.h: prepared for automatic include
549           file selection by having DEVICE.h for every DEVICE
550         * device/lib/pic16/libdev/pic18f2320.c,
551         * device/lib/pic16/libdev/pic18f4320.c: just include proper .c file
552
553         * device/lib/pic16/configure.in,
554         * device/lib/pic16/configure: use rm -rf instead of rmdir
555         * device/lib/pic16/Makefile.in: use RMDIR to remove build directories
556         * device/lib/pic16/libc/stdlib/free.c: avoid warning on pointer cast
557
558 2007-09-09 Borut Razem <borut.razem AT siol.net>
559
560         * src/SDCCmain.c, src/SDCCutil.c: print newline after printVersionInfo(),
561           distingush between i386 and ppc Mac OS X versions
562
563 2007-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
564
565         * src/mcs51/gen.c (genReceive): fixed bug 1788177
566         * support/regression/tests/bug1788177.c: new, added
567
568 2007-09-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
569
570         * doc/sdccman.lyx: mentioned d52 and cmake, customizing startup code
571         * device/include/mcs51/lint.h added keyword __naked
572
573 2007-09-04 Maarten Brock <sourceforge.brock AT dse.nl>
574
575         * src/pic16/glue.c,
576         * src/pic/glue.c,
577         * src/SDCCmem.h: removed maxRegBank
578         * src/SDCCmem.c (allocVariables): removed maxRegBank and moved setting
579           RegBankUsed[] to checkFunction() in SDCCsymt.c to fix bug 1759839
580         * src/SDCCsymt.c (checkFunction): set RegBankUsed[] here
581         * src/mcs51/peep.c (isCallerSaveFunc, termScanAtFunc): changed function
582           name and behaviour to handle banked functions
583           (scan4op): and use it to fix bug 1786213
584
585 2007-09-03 Raphael Neider <rneider AT web.de>
586
587         * device/include/pic16/pic18f248.h,
588         * device/include/pic16/pic18f258.h,
589         * device/include/pic16/pic18f448.h,
590         * device/lib/pic16/libdev/pic18f248.c,
591         * device/lib/pic16/libdev/pic18f258.c,
592         * device/lib/pic16/libdev/pic18f448.c: fixed TRISEbits,
593           added T0CONbits, fixes #1786891
594
595 2007-08-29 Maarten Brock <sourceforge.brock AT dse.nl>
596
597         * src/ds390/gen.c (genFarPointerSet),
598         * src/hc08/ralloc.c (packRegisters),
599         * src/mcs51/ralloc.c (packRegisters),
600         * src/SDCCcse.c (cseBBlock): check if result is a symbol first to fix
601           bug 1750318
602         * src/SDCCicode.h: POINTER_SET can be true for literals too
603         * support/regression/tests/bug1750318.c: new, added
604
605 2007-08-23 Borut Razem <borut.razem AT siol.net>
606
607         * debugger/mcs51/sdcdb.c: fixed compilation with older readline
608           library versions without the completition functionality
609
610 2007-08-22 Raphael Neider <rneider AT web.de>
611
612         * device/include/pic16/pic18f1220.h,
613         * device/lib/pic16/libdev/pic18f1220.c: applied patch #1776191
614
615 2007-08-12 Borut Razem <borut.razem AT siol.net>
616
617         * debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
618
619 2007-08-11 Borut Razem <borut.razem AT siol.net>
620
621         * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
622           src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
623           support/Util/SDCCerr.[ch] moved to src
624         * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
625           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
626           device/examples/ds390/tinitalk/tinitalk.dsp,
627           device/examples/serialcomm/windows/serialcomm.dsp,
628           support/librarian/librarian.dsp:
629           removed linking of unused odbc32.lib and odbccp32.lib
630         * support/scripts/winres.h:
631           added for compilation with Visual C++ 2005 Express Edition
632
633 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
634
635         * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
636           and CKCON1.
637
638 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
639
640         * sdccconf_in.h: update the endian test so that SPARC Solaris
641           does not throw syntax errors
642
643 2007-08-06 Borut Razem <borut.razem AT siol.net>
644
645         * doc/sdccman.lyx: removed two index entries which prevented the
646           generation of sdcc doc archive
647
648 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
649
650         * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
651           instead of lyx 1.5.0.
652
653 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
654
655         * device/include/hc08/mc68hc908apxx.h: new header contributed by
656           Lucas Loizaga, with minor modifications. Thanks!
657
658 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
659
660         * doc/sdccman.lyx: Documented --acall-ajmp and described new features
661           in sdcclib.
662
663 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
664
665         * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
666           src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
667           with acall/ajmp.
668
669 2007-07-22 Borut Razem <borut.razem AT siol.net>
670
671         * configure.in, configure: re-introduced .version
672         * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
673           the version reverted to 2.7.0
674
675 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
676
677         * configure.in,
678         * doc/sdccman.lyx: bumped version to 2.7.3
679         * device/include/mcs51/compiler.h: fixed elif->else
680         * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
681         * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
682           (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
683            enable accuse for bit operands
684         * src/SDCCmain.c (printVersionInfo),
685         * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
686           environment descriptor
687         * src/SDCCutil.h: added getBuildEnvironment
688         * src/SDCCglue.c (initialComments): use getBuildEnvironment
689         * support/regression/tests/bug1464657.c: enabled test test_Peephole251
690         * support/regression/tests/bug-408972.c: enabled test leftShiftLong
691         * support/regression/tests/bug1348008.c,
692         * support/regression/tests/bug1496419.c,
693         * support/regression/tests/bug1503067.c,
694         * support/regression/tests/preproc.c: added empty tests
695
696 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
697
698         * support/regression/tests/bug1678803.c: new, added
699
700 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
701
702         * as/link/aslink.h,
703         * as/link/hc08/lkihx.c,
704         * as/link/hc08/lkrloc.c,
705         * as/link/mcs51/lkihx.c,
706         * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
707           ihxExtendedLinearAddress
708         * as/link/mcs51/lkrloc.c (relr),
709         * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
710           acall/ajmp, see bug 830513
711
712 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
713
714         * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
715           (cseBBlock): remember aggr2ptr has been used
716         * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
717           (geniCodeAssign): fixed bug 868103
718         * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
719           added operandSize prototype
720         * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
721           (genDataPointerSet): use max of size of right and result,
722           (gencjne): added parameter useCarry for optimization,
723           (genCmpEq): use carry if appropriate,
724           (genXor): check if operand already in carry
725         * support/regression/tests/bug-868103.c: enabled test
726
727 2007-07-12 Raphael Neider <rneider AT web.de>
728
729         * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
730
731 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
732
733         * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
734           from Robert Larice, thanks
735         * support/regression/tests/bitopcse.c,
736         * support/regression/tests/bitvars.c,
737         * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
738         * support/regression/tests/bug-927659.c: enabled test for z80
739         * support/regression/tests/bug1738367.c: added extra tests by Frieder
740         * support/regression/tests/bug1745717.c: new, added
741         * support/regression/tests/literalop.c,
742         * support/regression/tests/nullstring.c: removed storage definitions that
743           are now in testfwk.h
744
745 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
746
747         * device/include/stdbool.h: do not define __bool_true_false_are_defined
748           and bool for targets that do not fully support it.
749         * support/regression/tests/bug1546986.c,
750         * support/regression/tests/bug1723128.c,
751         * support/regression/tests/bug1734654.c,
752         * support/regression/tests/bug1738367.c,
753         * support/regression/tests/constantRange.c: only use bool if allowed
754
755 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
756
757         * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
758           Larice, also handle function pointers
759         * support/regression/tests/bug1749275.c: new, added
760
761 2007-07-03 Borut Razem <borut.razem AT siol.net>
762
763         * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
764           src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
765           #1746528: SDCC should ignore ':' in inline assembler comments
766         * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
767
768 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
769
770         * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
771         * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
772
773 2007-06-29 Borut Razem <borut.razem AT siol.net>
774
775         * src/SDCCmain.c: fixed bug
776           #1744746: SDCC #4867: broken option --xram-size
777
778 2007-06-28 Borut Razem <borut.razem AT siol.net>
779
780         * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
781           find out the endianess of host machine for ucsim
782
783 2007-06-27 Borut Razem <borut.razem AT siol.net>
784
785         * support/regression/generate-cases.py: corrected the file name
786           in warning
787         * configure.in, configure, sdccconf_in.h: find out the endianess of
788           host machine
789         * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
790           negative size
791
792 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
793
794         * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
795
796 2007-06-26 Borut Razem <borut.razem AT siol.net>
797
798         * support/regression/generate-cases.py: display warning if function
799           list is empty; implemented more flexible rule for detection of
800           testing functions, allowing return type 'void' in the same line as
801           the function name in the function definition
802         * support/regression/tests/bug-1654060.c: corrected test
803         * support/librarian/sdcclib.c: fixed warning:
804           format '%s' expects type 'char *', but argument 2 has type 'int'
805
806 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
807
808         * support/librarian/sdcclib.c: Added feature Requests [1510635]
809           Multiple infiles for sdcclib.
810
811 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
812
813         * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
814           bug 1731741
815
816 2007-06-18 Borut Razem <borut.razem AT siol.net>
817
818         * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
819           how to handle comments, so they have to be removed by the
820           preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
821         * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
822           src/pic16/main.c, src/pic/main.c, src/z80/main.c,
823           support/Util/SDCCerr.c, support/Util/SDCCerr.h:
824           table driven option hadling
825
826 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
827
828         * src/SDCCast.c (decorateType),
829         * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
830           iCode to ast level to fix bug 1738367
831         * support/regression/tests/bug1738367.c: new, added
832
833 2007-06-15 Raphael Neider <rneider AT web.de>
834
835         * src/pic16/devices.inc,
836         * device/lib/pic16/pics.all,
837         * device/include/pic16/pic18fregs.h,
838         * device/include/pic16/pic18f[24][45]20.h,
839         * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
840           18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
841         * device/lib/pic16/Makefile.in: faster cleanup
842
843 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
844
845         * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
846
847 2007-06-13 Raphael Neider <rneider AT web.de>
848
849         * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
850
851 2007-06-12 Raphael Neider <rneider AT web.de>
852
853         * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
854           suppress bit defines if NO_BIT_DEFINES is #define'd
855         * device/include/pic/pic*.h: recreated all headers to include
856           conditional bit defines
857         * device/include/pic/pic16f886.h,
858         * device/include/pic/pic16f887.h: fixed based on newer .inc file
859         * device/include/pic/recreate.sh: script to recreate the complete
860           device library files based on the currently supported devices
861
862 2007-06-12 Borut Razem <borut.razem AT siol.net>
863
864         * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
865           support/regression/Makefile.in, support/scripts/build.mak,
866           support/scripts/Makefile.snapshot:
867           use new svn URL scheme
868         * doc/sdccman.lyx: SDCC Wiki moved to
869           http://sdcc.wiki.sourceforge.net/
870
871 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
872
873         * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
874         * support/regression/tests/bug1734654.c: added
875
876 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
877
878         * src/SDCCast.c (decorateType): optimized '?' for equal operands
879         * src/SDCCicode.c (geniCodeConditional): optimization for bit result
880           with literal operands
881
882 2007-06-10 Borut Razem <borut.razem AT siol.net>
883
884         * as/link/z80/lklibr.c: fixed mingw build warning
885           lklibr.c:575: warning: implicit declaration of function 'tolower'
886         * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
887           src/z80/main.c: move target specific options from src/SDCCmain.c
888           to src/<target>/main.c
889
890 2007-06-09 Borut Razem <borut.razem AT siol.net>
891
892         * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
893           removed unused swap_sense; removed outBitCLong, replaced with outBitC
894         * support/regression/tests/bug-1294691.c: added
895
896 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
897
898         * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
899           can also be static, fixes bug 1733438
900         * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
901           have absolute address too
902           (computeType): added optimization for 'cond ? true : false'
903         * support/regression/tests/absolute.c: added test for static absolute var
904
905 2007-06-08 Raphael Neider <rneider AT web.de>
906
907         * src/regression/Makefile: suppress parallel builds, allow easy
908           switching between pic14/pic16 ports
909         * src/regression/picregs.h: added pic14/16 header file switch
910         * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
911           inline.c,nestfor.c,string1.c}: include "picregs.h"
912
913 2007-06-07 Borut Razem <borut.razem AT siol.net>
914
915         * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
916           permanent solution to suppress GCC 4.2.0 c++ warning:
917           deprecated conversion from string constant to `char *'
918           use 'const char *' where ever required
919         * support/regression/generate-cases.py: implemented more flexible rule
920           for detection of testing functions, allowing white-spaces surrounding
921           the function name and the 'void' parameter.
922         * support/regression/tests/constantRange.c,
923           support/regression/tests/scott-compare3.c: fixed failing regression
924           tests, uncovered by implementation of more flexible rule for detection
925           of testing functions
926
927 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
928
929         * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
930
931 2007-06-04 Borut Razem <borut.razem AT siol.net>
932
933         * configure.in, configure, config_vc.awk: sdcc version number is now
934           stored in configure.in; removed .version
935         * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
936           doc/INSTALL.txt: version bumped to 2.7.2
937         * sim/ucsim/configure.in, sim/ucsim/configure:
938           use "read" to read from .version
939
940 2007-06-03 Borut Razem <borut.razem AT siol.net>
941
942         * */Makefile.in: removed annoying warning:
943           Makefile:xx: Makefile.dep: No such file or directory
944
945 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
946
947         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
948           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
949         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
950         * src/SDCCast.c (resultTypePropagate): propagate for '!',
951           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
952           bugfix: only use newBoolLink for bit result type
953         * src/SDCCicode.c (geniCodeLogic): added param tree,
954           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
955           (geniCodeLogicAndOr): use IS_BIT,
956           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
957           (ast2iCode): added tree param to geniCodeLogic for comparisons
958         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
959         * support/regression/tests/bug1723128.c: added test NotZero
960
961 2007-06-01 Borut Razem <borut.razem AT siol.net>
962
963         * SDCPP synchronized with GCC CPP release version 4.2.0,
964           currently the latest release:
965         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
966           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
967           support/cpp2/cppdefault.h, support/cpp2/except.h,
968           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
969           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
970           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
971           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
972           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
973           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
974           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
975           support/cpp2/opts.h, support/cpp2/output.h,
976           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
977           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
978           support/cpp2/system.h, support/cpp2/version.c,
979           support/cpp2/Makefile.in: modified
980         * support/cpp2/opts-common.c: added
981         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
982         * device/lib/pic16/libdev/pic18f[24]5j10.c:
983           search for included source file in local directory
984         * sim/ucsim/configure, sim/ucsim/configure.in:
985           temporary solution to suppress GCC 4.2.0 c++ warning:
986           deprecated conversion from string constant to `char *'
987
988 2007-06-01 Raphael Neider <rneider AT web.de>
989
990         * device/lib/pic/libdev/pic12f683.c,
991         * device/include/pic/pic12f683.h: added GPIO bits
992
993 2007-06-01 Raphael Neider <rneider AT web.de>
994
995         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
996           quotation marks, clarified role of PIC14 vs. PIC16 ports
997         * src/pic16/devices.inc,
998         * device/include/pic16/pic18fregs.h,
999         * device/include/pic16/pic18f[24][45]j10.h,
1000         * device/lib/pic16/pics.all,
1001         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
1002           18f24j10, 18f25j10, 18f44j10, and 18f45j10
1003         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
1004           for new devices as they are not yet supported by gputils
1005
1006 2007-05-31 Borut Razem <borut.razem AT siol.net>
1007
1008         * Small Device C Compiler 2.7.0 released
1009         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
1010           changed sdcc version to 2.7.1
1011         * support/scripts/sdcc.nsi: added How to create WIN32 release
1012           setup.exe package
1013
1014 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
1015
1016         * doc/sdccman.lyx: documented initialization and allocation of absolute
1017           variables, bit parameter passing, the need for function pointers to be
1018           reentrant and alpha quality support of inline and retrict
1019
1020 2007-05-26 Borut Razem <borut.razem AT siol.net>
1021
1022         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
1023           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
1024         * docs/knownbugs.html: updated
1025
1026 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
1027
1028         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
1029           thanks Jan Waclawek
1030         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
1031           AOP_CRY and ruonly
1032           (gencjneshort): optimized when left is AOP_DIR
1033         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
1034           initializing unions in a struct/array
1035         * support/regression/fwk/include/testfwk.h: added defines for data, near
1036           and far for host and z80
1037         * support/regression/tests/bug1723128.c: new, added
1038
1039 2007-05-22 Borut Razem <borut.razem AT siol.net>
1040
1041         * doc/knownbugs.html: updated
1042
1043 2007-05-21 Raphael Neider <rneider AT web.de>
1044
1045         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
1046           error message instead
1047         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
1048
1049 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
1050
1051         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
1052
1053 2007-05-21 Raphael Neider <rneider AT web.de>
1054
1055         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
1056           closes #1722392
1057         * src/regression/gpsim_assert.h,
1058         * src/regression/Makefile,
1059         * src/regression/pcodeopt.c: regression test for the above fix
1060
1061 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
1062
1063         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
1064           jumps to self, fixed bug 1717281
1065
1066 2007-05-10 Borut Razem <borut.razem AT siol.net>
1067
1068         * support/scripts/gen_known_bugs.pl: cosmetic fix
1069         * doc/knownbugs.html: generated by gen_known_bugs.pl
1070
1071 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1072
1073         * src/SDCCast.c (createFunction): also generate non-inlined version of
1074           function for functions declared as "static inline"
1075         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
1076           function can be inlined after non-inlined version generated.
1077
1078 2007-05-10 Borut Razem <borut.razem AT siol.net>
1079
1080         * support/scripts/gen_known_bugs.pl: added script
1081           which generates knownbugs.html
1082
1083 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
1084
1085         * doc/knownbugs.html: updated for release 2.7.0
1086
1087 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1088
1089         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
1090
1091 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
1092
1093         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
1094           (throughout): updated generating comments
1095         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
1096           (throughout): updated generating comments
1097         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
1098           rule instead of at the second, or it might skip lines when removing the
1099           complete match
1100         * support/regression/tests/bug1714204.c: changed test to foo
1101
1102 2007-05-08 Borut Razem <borut.razem AT siol.net>
1103
1104         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
1105           thanks to SDCC Distributed Compile Farm members,
1106           added Z80 and GBZ80 command line options
1107         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
1108
1109 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
1110
1111         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
1112         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
1113         * support/regression/tests/longlit.c: modified to be tested at all and
1114           to pass the actual test
1115
1116 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1117
1118         * device/include/mcs51/uPSD33xx.h: Added.
1119
1120 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
1121
1122         * device/lib/_gptrput.c,
1123         * device/lib/_gptrget.c: removed old code,
1124          (_gptrgetWord),
1125         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
1126         * support/regression/tests/bug1714204.c: new, added
1127
1128 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1129
1130         * support/regression/tests/regtrack.c: test was never executed
1131           because of the regression test being picky about white spaces.
1132         * device/lib/mcs51/crtclear.asm: added comment
1133
1134 2007-05-06 Raphael Neider <rneider AT web.de>
1135
1136         * device/lib/pic/Makefile.rules,
1137         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
1138           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
1139
1140 2007-05-06 Raphael Neider <rneider AT web.de>
1141
1142         * src/pic16/device.h,
1143         * src/pic16/main.h,
1144         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
1145           _pic16_setDefaultOptions): removed/reordered command-line args
1146         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
1147           devices, regrouped command line args, environment variables),
1148           clarified sone points, added sections on how to add devices to the
1149           PIC14/PIC16 ports
1150
1151 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
1152
1153         * src/z80/peeph.def: fixed bug in rule 2
1154
1155 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
1156
1157         * src/port.h: added TARGET_MCS51_LIKE
1158         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
1159           take advantage of it too
1160         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
1161           (shiftR2Left2Result): Optimized: don't check shifting by 0
1162         * src/z80/peeph-z80.def,
1163         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
1164           modifications, see patch 1700823
1165         * src/mcs51/peep.c (): fixed bug 1712928
1166         * support/regression/tests/bug1712928.c: new, added
1167
1168 2007-05-05 Borut Razem <borut.razem AT siol.net>
1169
1170         * device/lib/pic16/Makefile.common.in,
1171           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
1172           removed bash dependencies
1173
1174 2007-05-01 Borut Razem <borut.razem AT siol.net>
1175
1176         * src/SDCCicode.c:
1177           fixed bug #1710507: --i-code-in-asm makes compile fail
1178           all iCode comments are now one liners
1179         * src/mcs51/gen.c: fixed memory leak
1180
1181 2007-05-01 Raphael Neider <rneider AT web.de>
1182
1183         * device/lib/pic/libdev/*.c
1184         * device/include/pic/*.h: regenerated all device libs from updated
1185           .inc files
1186         * support/scripts/inc2h.pl: documented usage, now uses strict to
1187           catch more bugs
1188
1189 2007-04-30 Borut Razem <borut.razem AT siol.net>
1190
1191         * doc/sdccman.lyx:
1192           fixed bug #1669175: Problem with space in output paths
1193           documented how to use paths with spaces for Windows users
1194
1195 2007-04-29 Borut Razem <borut.razem AT siol.net>
1196
1197         * Fixed svn:eol-style and svn:keywords properties
1198         * src/SDCCval.c: fixed bug
1199           #1592871: Segfault with "large" const arrays of characters
1200           replaced recursion with iteration
1201         * Removed svn:executable property from non-executable files
1202
1203 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
1204
1205         * src/mcs51/gen.c (genRet): fixed bug 1707003
1206
1207 2007-04-27 Raphael Neider <rneider AT web.de>
1208
1209         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
1210           createReachingDefinitions,assignValnums,pic16_destructDF,
1211           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
1212           prevent NULL pointer dereferences
1213         * device/lib/pic/libdev/pic16f886.c,
1214         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
1215           prevent building them, gputils do not really support them yet
1216
1217 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1218
1219         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
1220           helps printf_small. 32 bytes more __idata mem.
1221
1222 2007-04-27 Raphael Neider <rneider AT web.de>
1223
1224         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
1225           return early when pb or pb->pcHead is NULL (patch #1708427)
1226         * src/regression/empty.c,
1227         * src/regression/Makefile: added test with empty functions
1228         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
1229
1230 2007-04-27 Borut Razem <borut.razem AT siol.net>
1231
1232         * src/SDCCast.c: fixed feature request
1233           #1547512: Redundant strings linked when using sizeof("abc")
1234
1235 2007-04-23 Borut Razem <borut.razem AT siol.net>
1236
1237         * doc/sdccman.lyx, src/SDCCmain.c:
1238           peep-hole comments are generated only if --fverbose-asm option is
1239           specified and --no-peep-comments is not, as proposed by Frieder.
1240         * support/regression/Makefile.in: compile regression tests with
1241           --fverbose-asm option so one can "grep" whether a new (or an old)
1242           peephole is (still) applied; requested by Frieder.
1243
1244 2007-04-23 Kevin Buettner <kevin AT buettner.to>
1245
1246         * device/include/pic/pic16f886.h,
1247         * device/include/pic/pic16f887.h,
1248         * device/lib/pic/libdev/pic16f886.c,
1249         * device/lib/pic/libdev/pic16f887.c,
1250         * device/include/pic/pic14devices.txt,
1251         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
1252
1253 2007-04-23 Kevin Buettner <kevin AT buettner.to>
1254
1255         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
1256           fixes #1704666
1257
1258 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1259
1260         * device/lib/_memset.c: assembler version for mcs51
1261
1262 2007-04-22 Borut Razem <borut.razem AT siol.net>
1263
1264         * support/scripts/listerr.c: program to create the list of errors and
1265           warnings list from - added
1266         * doc/sdccman.lyx: removed the note
1267           "For list of warnings and corresponding codes, see err_warn.txt"
1268         * src/SDCCsymt.c: fixed bug #1699804:
1269           Bug with some uses of sizeof(static local array) (MCS51)
1270         * support/regression/tests/bug-1699804.c: added
1271
1272 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
1273
1274         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
1275           (main): added option -i,
1276           (asmbl, case S_INCL): use search_path_fopen,
1277           mostly from patch 1579668 by Peter Miller, thanks
1278         * src/z80/main.c: fixed typo --callee-saves-bc
1279         * device/include/mcs51/compiler.h: added sfrword for Tasking
1280
1281 2007-04-20 Borut Razem <borut.razem AT siol.net>
1282
1283         * src/z80/main.c: replaced reserved keyword asm with asmblr
1284
1285 2007-04-19 Borut Razem <borut.razem AT siol.net>
1286
1287         * src/port.h: use const pointers to strings
1288         * src/SDCCargs.h: declared getStringArg() and getIntArg()
1289         * src/pic16/main.c: include SDCCargs.h
1290         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
1291           const char, since the strings are dynamically allocated
1292         * src/SDCCmain.c: options.code_seg and options.const_seg are
1293           dynamically allocated; check port specific command line options
1294           before the general ones
1295         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
1296
1297 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
1298
1299         * device/include/ds400rom.h,
1300         * device/lib/ds390/lcd390.c,
1301         * device/lib/ds390/memcpyx.c,
1302         * device/lib/ds390/rtc390.c,
1303         * device/lib/ds400/ds400rom.c,
1304         * device/lib/ds400/memcpyx.c,
1305         * device/lib/hc08/_ret.c: more replacements of keywords with their
1306           double underscore equivalents
1307         * device/lib/ds390/Makefile.in,
1308         * device/lib/ds400/Makefile.in,
1309         * device/lib/gbz80/Makefile.in,
1310         * device/lib/hc08/Makefile.in,
1311         * device/lib/mcs51/Makefile.in,
1312         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
1313
1314 2007-04-17 Borut Razem <borut.razem AT siol.net>
1315
1316         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
1317           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
1318           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
1319           to --fverbose-asm, to be gcc'ish
1320
1321 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
1322
1323         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
1324
1325 2007-04-17 Borut Razem <borut.razem AT siol.net>
1326
1327         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
1328         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
1329           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
1330           with their double underscore equivalent
1331
1332 2007-04-14 Borut Razem <borut.razem AT siol.net>
1333
1334         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
1335           source"
1336
1337 2007-04-13 Borut Razem <borut.razem AT siol.net>
1338
1339         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
1340           C99 standard
1341         * device/examples/serialcomm/windows/serial.[ch],
1342           device/examples/serialcomm/windows/test_serialcomm.cpp:
1343           updated by Bela Torok
1344         * device/examples/serialcomm/windows/serialcomm.dsw,
1345           device/examples/serialcomm/windows/serialcomm.dsp: added
1346
1347 2007-04-13 Jan Waclawek <wek AT efton.sk>
1348
1349         * doc/sdccman.lyx: additions and changes at various places
1350           (submitted as #1697136).
1351           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
1352
1353 2007-04-10 Borut Razem <borut.razem AT siol.net>
1354
1355         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
1356           LyX file format changed to 245
1357         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
1358           "FreeWare" replaced with "free open source"
1359
1360 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
1361
1362         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
1363
1364 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
1365
1366         * device/include/pic16/pic18fregs.h,
1367         * device/lib/_bp.c,
1368         * device/lib/_decdptr.c,
1369         * device/lib/_divsint.c,
1370         * device/lib/_divslong.c,
1371         * device/lib/_divuint.c,
1372         * device/lib/_divulong.c,
1373         * device/lib/_fs2schar.c,
1374         * device/lib/_fs2sint.c,
1375         * device/lib/_fs2slong.c,
1376         * device/lib/_fs2uchar.c,
1377         * device/lib/_fs2uint.c,
1378         * device/lib/_fs2ulong.c,
1379         * device/lib/_fsadd.c,
1380         * device/lib/_fscmp.c,
1381         * device/lib/_fsdiv.c,
1382         * device/lib/_fseq.c,
1383         * device/lib/_fsget1arg.c,
1384         * device/lib/_fsget2args.c,
1385         * device/lib/_fsgt.c,
1386         * device/lib/_fslt.c,
1387         * device/lib/_fsmul.c,
1388         * device/lib/_fsneq.c,
1389         * device/lib/_fsnormalize.c,
1390         * device/lib/_fsreturnval.c,
1391         * device/lib/_fsrshift.c,
1392         * device/lib/_fssub.c,
1393         * device/lib/_fsswapargs.c,
1394         * device/lib/_gptrget.c,
1395         * device/lib/_gptrgetc.c,
1396         * device/lib/_gptrput.c,
1397         * device/lib/_logexpf.c,
1398         * device/lib/_modsint.c,
1399         * device/lib/_modslong.c,
1400         * device/lib/_moduint.c,
1401         * device/lib/_modulong.c,
1402         * device/lib/_mulint.c,
1403         * device/lib/_mullong.c,
1404         * device/lib/_schar2fs.c,
1405         * device/lib/_ser.c,
1406         * device/lib/_setjmp.c,
1407         * device/lib/_sint2fs.c,
1408         * device/lib/_slong2fs.c,
1409         * device/lib/_spx.c,
1410         * device/lib/_uchar2fs.c,
1411         * device/lib/_uint2fs.c,
1412         * device/lib/_ulong2fs.c,
1413         * device/lib/asincosf.c,
1414         * device/lib/atanf.c,
1415         * device/lib/calloc.c,
1416         * device/lib/ds390/tinibios.c,
1417         * device/lib/ds400/tinibios.c,
1418         * device/lib/expf.c,
1419         * device/lib/free.c,
1420         * device/lib/hc08/_mulint.c,
1421         * device/lib/logf.c,
1422         * device/lib/malloc.c,
1423         * device/lib/printf_fast.c,
1424         * device/lib/printf_tiny.c,
1425         * device/lib/printfl.c,
1426         * device/lib/realloc.c,
1427         * device/lib/ser_ir.c,
1428         * device/lib/serial.c,
1429         * support/regression/tests/libmullong.c: replaced all special keywords
1430           with their double underscore equivalent
1431         * support/regression/ports/mcs51-xstack-auto/spec.mk,
1432         * device/lib/Makefile.in: compile libs with --std-c99 instead of
1433           --std-sdcc99
1434         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
1435           (genRet): if the bit-symbol is ruonly it already is in the carry
1436         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
1437         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
1438         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
1439           type UCHAR if dest is not bit
1440
1441 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
1442
1443         * device/include/math.h,
1444         * device/lib/cotf.c,
1445         * device/lib/expf.c,
1446         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
1447
1448 2007-04-01 Borut Razem <borut.razem AT siol.net>
1449
1450         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
1451           fixed bug #1692042: input buffer overflow...scanner uses REJECT
1452         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
1453           gcc_unreachable() called internal_error()...
1454
1455 2007-03-30 Raphael Neider <rneider AT web.de>
1456
1457         * src/pic/ralloc.c (isData): suppress garbage debug output
1458
1459 2007-03-28 Borut Razem <borut.razem AT siol.net>
1460
1461         * doc/sdccman.lyx:
1462           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
1463           is developed, built and used worldwide, and the word "night" doesn't
1464           make any sense.
1465
1466 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
1467
1468         * device/include/mcs51/C8051F360.h: new, added
1469         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
1470
1471 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1472
1473         * src/SDCC.y (declaration_specifiers, function_specifier),
1474         * support/Util/SDCCerr.c,
1475         * support/Util/SDCCerr.h,
1476         * src/SDCCsymt.h,
1477         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
1478           inline keyword
1479         * src/SDCCmem.c (deallocParms),
1480         * src/SDCCast.c: support for function inlining, not quite complete
1481         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
1482           'restrict' qualifier
1483
1484 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
1485
1486         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
1487           (saveRBank, unsaveRBank): don't save bits,
1488           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
1489         * support/regression/tests/bug1535242.c: new, added
1490         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
1491           thanks Alexey Shamrin <shamrin AT gmail.com>,
1492           made assert.h header ANSI compliant (added a check for NDEBUG macro,
1493           removed header guard)
1494         * .version,
1495         * sdcc.spec: bumped version to 2.6.5
1496         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
1497
1498 2007-03-22 Borut Razem <borut.razem AT siol.net>
1499
1500         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
1501           fixed bug #1653671: sdcdb integration into ddd is broken
1502
1503 2007-03-22 Raphael Neider <rneider AT web.de>
1504
1505         * src/pic/gen.c (popGetExternal): augmented to also create references
1506           to external variables (not only labels),
1507           (genCall): comment on plan to reduce PAGESEL overhead,
1508           (genFunction, genEndFunction): also save/restore FSR around interrupt
1509           handling code, removed lots of unused code
1510           (genDivOneByte): release acquired temp register
1511         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
1512           of popGetExternal
1513         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
1514           for registers that need to be saved during interrupts (FSR, STATUS,
1515           PCLATH; W needs special handling), currently only FSR is used
1516
1517 2007-03-22 Raphael Neider <rneider AT web.de>
1518
1519         * device/include/pic/pic14devices.txt: 16f688 has only one config word
1520
1521 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1522
1523         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
1524
1525 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
1526
1527         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
1528
1529 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
1530
1531         * as/link/aslink.h: added LKOBJEXT
1532         * as/link/hc08/link_hc08.dsp,
1533         * as/link/hc08/Makefile.bcc,
1534         * as/link/hc08/Makefile.in,
1535         * as/link/mcs51/aslink.dsp,
1536         * as/link/mcs51/Makefile.bcc,
1537         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
1538         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
1539         * as/link/lkaomf51.c: merged and moved
1540         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
1541         * as/link/z80/lkdata.c,
1542         * as/link/lkdata.c: merged and moved
1543         * as/link/hc08/lkmain.c,
1544         * as/link/mcs51/lkmain.c: cosmetic changes
1545         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
1546         * as/link/lklex.c: use LKOBJEXT
1547         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
1548           ANSI-fied functions, removed bubble-sorts
1549         * as/link/z80/lksym.c           as/link/lksym.c: merged,
1550           ANSI-fied functions
1551         * as/link/z80/linkgbz80.dsp,
1552         * as/link/z80/linkz80.dsp,
1553         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
1554           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
1555         * as/link/z80/lkhead.c,
1556         * as/link/z80/lklex.c: deleted
1557         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
1558         * as/link/z80/lkmain.c: added copyfile()
1559
1560 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1561
1562         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
1563
1564 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1565
1566         * device/lib/_strlen.c: assembler version for mcs51
1567
1568 2007-03-13 Raphael Neider <rneider AT web.de>
1569
1570         * device/include/pic16/pic18f2221.h,
1571         * device/include/pic16/pic18f2321.h,
1572         * device/include/pic16/pic18f2331.h,
1573         * device/include/pic16/pic18f4221.h,
1574         * device/include/pic16/pic18f4321.h,
1575         * device/include/pic16/pic18f4331.h: fixed config byte location names
1576         * support/scripts/inc2h-pic16.pl: removed debug output, emit
1577           consistently named config byte locations
1578
1579 2007-03-13 Borut Razem <borut.razem AT siol.net>
1580
1581         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
1582           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
1583           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
1584           as/link/z80/Makefile.in, as/z80/Makefile.in:
1585           introduced LDFLAGS
1586
1587 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1588
1589         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
1590         * device/lib/printf_large.c: pointer was converted to generic
1591         pointer for mcs51 models other than model-small (Maarten noticed)
1592
1593 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1594
1595         * device/include/mcs51/ADuC84x.h: Added.
1596
1597 2007-03-10 Borut Razem <borut.razem AT siol.net>
1598
1599         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
1600           fixed RFE #1624219: double backslashes in filenames;
1601           functions hexEscape(), octalEscape() and copyStr() moved from
1602           SDCCval.c to SDCCutil.c and made them glovbally available
1603
1604 2007-03-09 Borut Razem <borut.razem AT siol.net>
1605
1606         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
1607           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
1608           1673361: Missaligned comments in output files
1609
1610 2007-03-09 Raphael Neider <rneider AT web.de>
1611
1612         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
1613
1614 2007-03-09 Raphael Neider <rneider AT web.de>
1615
1616         * src/pic/gen.c,
1617         * src/pic/glue.c,
1618         * src/pic/ralloc.c: suppress undesired debug output
1619         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
1620
1621 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1622
1623         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
1624
1625 2007-03-07 Borut Razem <borut.razem AT siol.net>
1626
1627         * device/lib/pic16/libdev/pic18f[24][34]31.c:
1628           search include files in the current directory
1629
1630 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
1631
1632         * src/SDCCglue.c (emitMaps, glue),
1633         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
1634           absolute xdata
1635         * support/regression/tests/absolute.c: added xdata test
1636
1637 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
1638
1639         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
1640           added condition to macro, fixes bug 1666080
1641
1642 2007-03-02 Raphael Neider <rneider AT web.de>
1643
1644         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
1645
1646 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1647
1648         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
1649         be cleared. Unconditionally set __XPAGE
1650         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
1651
1652 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1653
1654         * src/SDCCglobl.h,
1655         * src/SDCCmain.c,
1656         * src/mcs51/gen.c,
1657         * src/mcs51/rtrack.c,
1658         * src/ds390/gen.c,
1659         * doc/sdccman.lyx: added --no-gen-comments
1660         * src/mcs51/peeph.def: added 192.b, disabled 185
1661
1662 2007-02-25 Raphael Neider <rneider AT web.de>
1663
1664         * src/pic16/gen.c (genCast): fixed typo
1665         * device/lib/pic16/Makefile.subdir: only install existing files
1666         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
1667
1668 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1669
1670         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
1671         * device/lib/mcs51/crtclear.asm,
1672         * device/lib/mcs51/crtxclear.asm: renumbered labels
1673         * device/lib/mcs51/Makefile.in: added crtcall.asm
1674         * doc/sdccman.lyx: documented mcs51 crt* library startup code
1675         * src/mcs51/gen.c (movc): removed,
1676           (aopGet, genPlusBits): clear a after loading the carry (possibly from
1677             acc.x or psw.x),
1678           (toCarry, genSend, genRet): added function toCarry,
1679           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
1680           (assignBit, genAssign, genCast): added function assignBit
1681         * src/mcs51/Makefile.bcc: added rtrack.c
1682         * src/mcs51/ralloc.h: made valueKnown a bitfield
1683         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
1684           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
1685           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
1686         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
1687         * src/z80/gen.c: added AOP_IS_PAIRPTR,
1688           (_pop): only pop valid pairs, see gencjneshort,
1689           (gencjneshort): return pair that still needs to be popped, restructured,
1690           (gencjne, genCmpEq): call _pop
1691
1692 2007-02-23 Raphael Neider <rneider AT web.de>
1693
1694         * device/include/pic/pic14devices.txt: 16f684 has only one config word
1695
1696 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1697
1698         * device/include/mcs51/P89LPC925.h: Added.
1699
1700 2007-02-18 Raphael Neider <rneider AT web.de>
1701
1702         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
1703
1704 2007-02-17 Borut Razem <borut.razem AT siol.net>
1705
1706         * support/cpp2/directives.c, support/cpp2/version.c:
1707           synchronized with GCC CPP 4.1.2
1708
1709 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1710
1711         * src/mcs51/rtrack.h,
1712         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
1713           by checking the strings passed by emitcode() to the assembler.
1714           Feel free to change. This in part addresses RFE #482179.
1715           Set environment variable SDCC_RTRACK to enable.
1716         * src/mcs51/gen.c: inserted hooks
1717         * src/mcs51/ralloc.h: added two members to struct regs
1718         * support/regression/tests/regtrack.c: added
1719
1720 2007-02-14 Borut Razem <borut.razem AT siol.net>
1721
1722         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
1723         * Makefile.in: applied patch from Makefile related part of
1724           #1469393: Compiler does not initialize static data
1725
1726 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
1727
1728         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
1729           for better fix of bug 1273984, compiles pic16 rand.c
1730
1731 2007-02-12 Borut Razem <borut.razem AT siol.net>
1732
1733         * src/pic16/main.c: fixed pic16 standard library directory bug
1734
1735 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
1736
1737         * src/hc08/gen.c (genSwap): fix swap regression test
1738
1739 2007-02-10 Borut Razem <borut.razem AT siol.net>
1740
1741         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
1742           with same scope
1743         * support/regression/tests/bug-1654060.c: added regression test for
1744           #1654060
1745
1746 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
1747
1748         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
1749         bit moves in return statement
1750
1751 2007-02-09 Borut Razem <borut.razem AT siol.net>
1752
1753         * src/SDCC.y: fixed bug #1654060 typedef within function causes
1754           syntax error
1755
1756 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
1757
1758         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
1759         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
1760
1761 2007-02-07 Raphael Neider <rneider AT web.de>
1762
1763         * src/pic16/devices.inc,
1764         * device/include/pic16/pic18fregs.h,
1765         * device/include/pic16/pic18f[24][34]31.h,
1766         * device/lib/pic16/libdev/pic18f[24][34]31.c,
1767         * device/lib/pic16/pics.all: added 18f[24][34]31 family
1768         * device/lib/pic16/libio/i2c.ignore: do not build i2c
1769
1770 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
1771
1772         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
1773           can this have lived here for so many years?
1774         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
1775           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
1776         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
1777
1778 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
1779
1780         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
1781         appended by loop induction must be at the very end of the eBBlock
1782
1783 2007-02-05 Kevin Vigor
1784
1785         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
1786
1787 2007-02-05 Borut Razem <borut.razem AT siol.net>
1788
1789         * support/regression/fwk/lib/timeout.c: native WIN32 port,
1790           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
1791
1792 2007-02-03 Borut Razem <borut.razem AT siol.net>
1793
1794         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
1795           applied patch #1646602 option to set default signedness of char to
1796           unsigned, added -funsigned-char command line option,
1797           thanks to Gunther Jehle
1798         * device/lib/Makefile.in: added the -f option to rm so it doesn't
1799           prompt for file deletion a few hundred times (especially the
1800           subversion files, which have ro permissions so it asks for
1801           confirmation), thanks to Simon McAuliffe;
1802           added {} + option to find in order to remove multiple files from a
1803           single rm commad
1804
1805 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1806
1807         * device/include/mcs51/SST89x5xRDx.h: Added.
1808
1809 2007-02-02 Raphael Neider <rneider AT web.de>
1810
1811         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
1812         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
1813
1814 2007-02-01 Raphael Neider <rneider AT web.de>
1815
1816         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
1817           config words again
1818
1819 2007-01-31 Borut Razem <borut.razem AT siol.net>
1820
1821         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
1822           if compiled with GCC. Thanks to Raphael Neider
1823
1824 2007-01-31 Raphael Neider <rneider AT web.de>
1825
1826         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
1827             operand names, handles name and (name + n) for all n,
1828           (sameBank): restructured, also check bank allocation policy,
1829         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
1830           (pic14_operandsAllocatedInSameBank): check whether to operands
1831             will be allocated into the same bank (i.e., section) to reduce
1832             BANKSEL overhead, queried from pcode.c:sameBank,
1833           (pic14printLocals): reintroduced clustering registers into a single
1834             section: all compiler generated symbols will now reside in one
1835             bank (per file), reducing BANKSEL overhead and code size,
1836           (showAllMemmaps): use local dbuf where possible
1837
1838 2007-01-29 Raphael Neider <rneider AT web.de>
1839
1840         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
1841           (call_libraryfunc): retrieve/create symbol and mark as used,
1842           (genFunction): mark defined functions as non-extern and add again
1843            to code memmap for later output
1844         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
1845           (pic14printLocals): reworked for new symbol emission,
1846           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
1847           showAllMemmaps): reworked symbol output using dbufs, added handling
1848             of string literals (still incomplete),
1849           (picglue): removed symbol emission, moved into showAllMemmaps,
1850           (emitSymbolSet): new workhorse for symbol output,
1851           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
1852
1853 2007-01-29 Borut Razem <borut.razem AT siol.net>
1854
1855         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
1856           component contains the extension separator.
1857
1858 2007-01-28 Borut Razem <borut.razem AT siol.net>
1859
1860         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
1861           on WIN32
1862         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
1863           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
1864           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
1865           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
1866           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
1867           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
1868           src/z80/gen.c, support/Util/MySystem.c:
1869           accept slash and backslash as directory separator on WIN32 and
1870           Cygwin ports
1871
1872 2007-01-28 Raphael Neider <rneider AT web.de>
1873
1874         * src/pic16/devices.inc,
1875         * device/include/pic16/pic18f[24][23]21.h,
1876         * device/include/pic16/pic18fregs.h,
1877         * device/lib/pic16/libdev/pic18f[24][23]21.c,
1878         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
1879         * device/lib/pic16/libio/adc.ignore,
1880         * device/lib/pic16/libio/i2c.ignore,
1881         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
1882           family, as gputils do not yet support the devices
1883         * device/lib/pic16/Makefile.subdir: ignore errors on install
1884         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
1885           headers and libraries from gputils .inc files
1886
1887 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
1888
1889         * doc/sdccman.lyx: add printf_fast_f precision limitation note
1890
1891 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
1892
1893         * doc/sdccman.lyx: add printf benchmarks
1894
1895 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
1896
1897         * device/lib/printf_fast.c: fix %c, char promoted to int
1898         * device/lib/printf_tiny.c: fix %c, char promoted to int
1899
1900 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
1901
1902         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
1903
1904 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1905
1906         * support/regression/tests/swap.c: 64 bit hosts failed
1907         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
1908
1909 2007-01-25 Raphael Neider <rneider AT web.de>
1910
1911         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
1912           based on absolute register address, patch by Alex Blond
1913
1914 2007-01-22 Raphael Neider <rneider AT web.de>
1915
1916         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
1917           emitted, do not emit them again...
1918
1919 2007-01-22 Raphael Neider <rneider AT web.de>
1920
1921         * src/regression/bank1.c, src/regression/compare6.c,
1922           src/regression/add.c: cosmetic changes
1923         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
1924         * src/pic/gen.c: fixed global zero and one,
1925           (aopForSym): removed unued code,
1926           (aopGet): assert aop is defined, check and use `index' of
1927             pCodeImmd operands (fixes #1630908),
1928         * src/pic/pcode.c (get_op): added output of generic pointer tag,
1929           (register_reassign): prevent accidental register unification,
1930           (ReuseReg): cosmetic changes (also above)
1931         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
1932           pic14emitStaticSeg): do not emit initialized data,
1933           (printIval*): replaced with working versions,
1934           (pic14createInterruptVect,picglue): use idata for initialized data,
1935             now init data should work in all modules (not only main()),
1936         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
1937
1938 2007-01-21 Borut Razem <borut.razem AT siol.net>
1939
1940         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
1941           use -fPIC or -fpic if they are supported and not ignored
1942         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
1943         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
1944
1945 2007-01-20 Borut Razem <borut.razem AT siol.net>
1946
1947         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
1948           implemented RFE #1470316: allow "$" in variable names
1949
1950 2007-01-20 Raphael Neider <rneider AT web.de>
1951
1952         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
1953
1954 2007-01-20 Raphael Neider <rneider AT web.de>
1955
1956         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
1957         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
1958         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
1959         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
1960           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
1961         * device/lib/pic/libdev/pic*.c,
1962         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
1963         * device/lib/pic/libdev/Makefile.in: show progress
1964
1965 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
1966
1967         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
1968         * support/scripts/sdcc_cygwin_mingw32,
1969         * support/scripts/sdcc_mingw32,
1970         * support/scripts/build.mak: replaced --datadir by --datarootdir for
1971         conformance with autoconf 2.6
1972
1973 2007-01-19 Raphael Neider <rneider AT web.de>
1974
1975         * src/pic/device.c (register_map): fixed list construction
1976         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
1977           (genMod): removed case for genModbits,
1978           (genModbits): removed as now unused/unimplemented
1979         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
1980
1981 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1982
1983         * support/regression/tests/swap.c: added in response to #1638622
1984         * doc/sdccman.lyx: synced version, minor changes
1985
1986 2007-01-18 Borut Razem <borut.razem AT siol.net>
1987
1988         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
1989           thanks to Gunther Jehle
1990         * src/asm.c: don't die if the file drfined in #line couldn't be opened
1991         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
1992           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
1993           use filename in lineno instead.
1994         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
1995           print the file name in ast_print()
1996
1997 2007-01-18 Borut Razem <borut.razem AT siol.net>
1998
1999         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
2000           defined in MSVC
2001         * src/SDCC.lex: stringLiteral() returns const char pointer,
2002           EOF detection in stringLiteral(), fixed asmbuf memory leak,
2003           fixed column counting
2004         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
2005           accept const char pointer as parameter
2006         * src/SDCCdwarf2.c: corrected buffer size
2007
2008 2007-01-17 Borut Razem <borut.razem AT siol.net>
2009
2010         * support/Util/dbuf_string.c: fixed for amd64
2011
2012 2007-01-15 Borut Razem <borut.razem AT siol.net>
2013
2014         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
2015           removed terminal symbol ELIPSIS, since it was never generated by the
2016           lexer and it was wrongly used in parameter_identifier_list rule
2017
2018 2007-01-15 Raphael Neider <rneider AT web.de>
2019
2020         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
2021             code page and data banking description
2022         * src/pic/genarith.c,
2023         * src/pic/gen.h: removed bit arithmetic functions,
2024             updated exit(1) to exit(EXIT_FAILURE)
2025         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
2026         * device/include/pic16/pic18f2455.h,
2027         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
2028             TRISD and TRISE, fixed/added some bit names
2029         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
2030         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
2031             updated pic18f2455.{c,h} instead of duplicating them
2032
2033 2007-01-14 Borut Razem <borut.razem AT siol.net>
2034
2035         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
2036           Cannot debug files that contain spaces in the path name
2037           by converting spaces in asm file name to underscores
2038
2039 2007-01-13 Borut Razem <borut.razem AT siol.net>
2040
2041         * doc/sdccman.lyx: fixed format errors
2042
2043 2007-01-10 Borut Razem <borut.razem AT siol.net>
2044
2045         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
2046           codeseg/constseg #pragma fail
2047         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
2048         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
2049           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
2050           suppoprt/cpp2/sdcpp.[ch]: house cleaning
2051
2052 2007-01-09 Borut Razem <borut.razem AT siol.net>
2053
2054         * get rid of diagnistic.[ch], pretty-print.[ch],
2055           c-pretty-print.[ch], ... used just for error, warning, ...
2056           message formatting
2057         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
2058           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
2059           suppoprt/cpp2/pretty-print.[ch]:
2060           removed
2061         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
2062           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
2063           suppoprt/cpp2/sdcpp.dsp:
2064           changed
2065
2066 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
2067
2068         * device/lib/printf_large.c (output_float): removed recursion,
2069           use smaller buffer on stack for mcs51,
2070           fixed bug printing 1.96
2071         * support/regression/tests/snprintf.c: added test
2072
2073 2007-01-07 Borut Razem <borut.razem AT siol.net>
2074
2075         * use dynamic memory buffers instead temporary files
2076         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
2077           added
2078         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
2079           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
2080           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
2081           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
2082           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
2083           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
2084           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
2085           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
2086           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
2087           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
2088           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
2089           support/Util/dbuf.c, support/Util/dbuf.h:
2090           modified
2091         * .version, sdcc.spec: bumped version to 2.6.4
2092
2093 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
2094
2095         * src/port.h: added TARGET_Z80_LIKE macro
2096         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
2097           output PSEG location if --xram-loc or --xstack-loc was used
2098         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
2099
2100 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
2101
2102         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
2103         * as/as_z80.dsp,   as/z80/as_z80.dsp,
2104         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
2105         * sdcc.dsw: moved project files into subdir
2106         * as/hc08/as_hc08.dsp,
2107         * as/hc08/Makefile.bcc,
2108         * as/hc08/Makefile.in,
2109         * as/mcs51/Makefile.bcc,
2110         * as/mcs51/Makefile.in,
2111         * as/z80/Makefile.bcc,
2112         * as/z80/Makefile.in,
2113         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
2114         * as/hc08/asm.h,
2115         * as/mcs51/asm.h,
2116         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
2117         * as/hc08/asmain.c,
2118         * as/hc08/assym.c,
2119         * as/mcs51/asmain.c,
2120         * as/mcs51/assym.c,
2121         * as/z80/assym.c: removed include "strcmpi.h"
2122         * as/hc08/strcmpi.c,
2123         * as/hc08/strcmpi.h,
2124         * as/mcs51/strcmpi.c,
2125         * as/mcs51/strcmpi.h,
2126         * support/Util/strcmpi.c,
2127         * support/Util/strcmpi.h: removed files
2128         * as/strcmpi.c: added as_strncmpi()
2129
2130 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2131
2132         * sdcc.dsw: Added some dependencies on project config.dsp
2133
2134 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
2135
2136         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
2137           with [di]ram_start to fix a regresion
2138
2139 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
2140
2141         * configure.in: added missing mcs51 in status output
2142         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
2143         directory
2144         * debugger/mcs51/clean.mk (distclean): remove config.h
2145         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
2146         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
2147         options.h, s-options-h and options.c
2148         * support/cpp2/clean.mk: unused, removed
2149         * Makefile.common.in,
2150         * main_in.mk,
2151         * as/Makefile.in,
2152         * as/hc08/Makefile.in,
2153         * as/hc08/clean.mk,
2154         * as/mcs51/Makefile.in,
2155         * as/mcs51/clean.mk,
2156         * as/z80/clean.mk,
2157         * as/z80/conf.mk,
2158         * as/z80/Makefile.in,
2159         * as/z80/clean.mk,
2160         * as/link/Makefile.in,
2161         * as/link/hc08/Makefile.in,
2162         * as/link/hc08/clean.mk,
2163         * as/link/mcs51/Makefile.in,
2164         * as/link/mcs51/clean.mk,
2165         * as/link/z80/Makefile.in,
2166         * as/link/z80/clean.mk,
2167         * as/link/z80/conf.mk,
2168         * debugger/mcs51/Makefile.in,
2169         * debugger/mcs51/clean.mk,
2170         * device/include/Makefile.in,
2171         * device/lib/Makefile.in,
2172         * device/lib/mcs51/Makefile.in,
2173         * device/lib/pic/Makefile.in,
2174         * device/lib/pic/Makefile.common.in,
2175         * device/lib/pic/Makefile.subdir,
2176         * device/lib/pic/Makefile.rules,
2177         * device/lib/pic16/libio/Makefile.in,
2178         * device/lib/pic16/Makefile.subdir,
2179         * device/lib/pic16/libdev/Makefile.in,
2180         * device/lib/pic16/Makefile.rules,
2181         * device/lib/pic16/Makefile.common.in,
2182         * sim/ucsim/avr.src/Makefile.in,
2183         * sim/ucsim/main_in.mk,
2184         * sim/ucsim/cmd.src/Makefile.in,
2185         * sim/ucsim/doc/Makefile.in,
2186         * sim/ucsim/gui.src/Makefile.in,
2187         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
2188         * sim/ucsim/gui.src/serio.src/Makefile.in,
2189         * sim/ucsim/hc08.src/Makefile.in,
2190         * sim/ucsim/libltdl/Makefile.in,
2191         * sim/ucsim/s51.src/Makefile.in,
2192         * sim/ucsim/sim.src/Makefile.in,
2193         * sim/ucsim/sim.src/conf.mk,
2194         * sim/ucsim/xa.src/Makefile.in,
2195         * sim/ucsim/z80.src/Makefile.in,
2196         * src/Makefile.in,
2197         * src/clean.mk,
2198         * src/port.mk,
2199         * support/cpp2/Makefile.in,
2200         * support/librarian/Makefile.in,
2201         * support/librarian/clean.mk,
2202         * support/makebin/Makefile.in,
2203         * support/makebin/clean.mk,
2204         * support/packihx/Makefile.in,
2205         * support/regression/Makefile.in,
2206         * support/regression/ports/ds390/spec.mk,
2207         * support/regression/ports/gbz80/spec.mk,
2208         * support/regression/ports/hc08/spec.mk,
2209         * support/regression/ports/mcs51/spec.mk,
2210         * support/regression/ports/mcs51-large/spec.mk,
2211         * support/regression/ports/mcs51-medium/spec.mk,
2212         * support/regression/ports/mcs51-xstack-auto/spec.mk,
2213         * support/regression/ports/pic14/spec.mk,
2214         * support/regression/ports/pic16/spec.mk,
2215         * support/regression/ports/mcs51-stack-auto/spec.mk,
2216         * support/regression/ports/ucz80/spec.mk,
2217         * support/regression/ports/xa51/spec.mk,
2218         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
2219         adding a slash after $(top_builddir) and/or adding @datarootdir@
2220         * configure.in,
2221         * debugger/mcs51/configure.in,
2222         * device/lib/pic/configure.in,
2223         * device/lib/pic16/configure.in,
2224         * sim/ucsim/configure.in,
2225         * support/cpp2/configure.in,
2226         * support/packihx/configure.in: changed AC_PREREQ to 2.60
2227         * configure,
2228         * debugger/mcs51/configure,
2229         * device/lib/pic/configure,
2230         * device/lib/pic16/configure,
2231         * sim/ucsim/configure,
2232         * support/cpp2/configure,
2233         * support/packihx/configure: generated with autoconf 2.60
2234
2235 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
2236
2237         * as/link/hc08/lkihx.c (newArea),
2238         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
2239
2240 2007-01-02 Borut Razem <borut.razem AT siol.net>
2241
2242         * doc/sdccman.lyx: documented #pragma sdcc_hash
2243         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
2244           initialized to 0
2245         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
2246
2247 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
2248
2249         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
2250         empty 'while'-loop to work correctly, see regression test 'while.c'
2251         * support/regression/tests/while.c: added
2252
2253 2007-01-01 Borut Razem <borut.razem AT siol.net>
2254
2255         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
2256           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
2257           support/cpp2/libcpp/sdcpp.c:
2258           sdcpp specific pragma/directive/option handling moved to sdcpp.c
2259         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
2260         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
2261
2262 2006-12-31 Borut Razem <borut.razem AT siol.net>
2263
2264         * SDCPP synchronized with GCC CPP release version 4.1.1,
2265           currently the latest release:
2266         * support/cpp2/libcpp, support/cpp2/libcpp/include,
2267           support/cpp2/libcpp/include/cpp-id-data.h
2268           support/cpp2/libiberty/fopen_unlocked.c
2269           support/cpp2/libiberty/md5.c
2270           support/cpp2/md5.h
2271           support/cpp2/opt-functions.awk
2272           support/cpp2/opt-gather.awk
2273           support/cpp2/optc-gen.awk
2274           support/cpp2/opth-gen.awk:
2275           added
2276         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
2277           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2278           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
2279           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
2280           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
2281           support/cpp2/diagnostic.h, support/cpp2/except.h,
2282           support/cpp2/hwint.h, support/cpp2/input.h,
2283           support/cpp2/intl.h, support/cpp2/move-if-change,
2284           support/cpp2/opts.c, support/cpp2/opts.h,
2285           support/cpp2/output.h, support/cpp2/prefix.c,
2286           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
2287           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
2288           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
2289           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
2290           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
2291           support/cpp2/version.c:
2292           modified
2293         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
2294           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
2295           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
2296           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
2297           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
2298           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
2299           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
2300           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
2301           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
2302           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
2303           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
2304           moved
2305         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
2306           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
2307           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
2308           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
2309           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
2310           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
2311           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
2312           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
2313           support/cpp2/hashtable.h, support/cpp2/line-map.c,
2314           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
2315           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
2316           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
2317           support/cpp2/system.h:
2318           deleted / moved
2319
2320 2006-12-31 Borut Razem <borut.razem AT siol.net>
2321
2322         * configure.in, configure: fixed bug #1538756: configure dies if bison
2323           and flex are not installed, 2nd try
2324
2325 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
2326
2327         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
2328         400.x for better code in RFE 899102
2329
2330 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
2331
2332         * src/SDCCpeeph.c (deadMove),
2333         * src/port.h,
2334         * src/mcs51/peep.h: renamed 'op' by 'reg'
2335         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
2336         (scan4op): small change for removeDeadMove(), added support for
2337         'callee saves' and/or PACLL function calls,
2338         (removeDeadMove): added, removes superflous 'mov r%1,%2',
2339         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
2340         left in new dispatcher mcs51DeadMove()
2341         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
2342         removeDeadMove()
2343         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
2344
2345 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2346
2347         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
2348           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
2349
2350 2006-12-30 Borut Razem <borut.razem AT siol.net>
2351
2352         * support/cpp2/spacs.h: deleted from svn
2353         * configure.in, configure: fixed bug #1538756: configure dies if bison
2354           and flex are not installed
2355
2356 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
2357
2358         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
2359           with this z80 passes printf float test when enabled
2360         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
2361
2362 2006-12-28 Borut Razem <borut.razem AT siol.net>
2363
2364         * support/cpp2/config.in, support/cpp2/configure.in,
2365           support/cpp2/configure, support/cpp2/Makefile.in:
2366           fix for the solaris build
2367
2368 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2369
2370         * src/SDCC.y (type_specifier2, pointer),
2371         * src/SDCCsymt.h,
2372         * src/SDCCsymt.c (mergeSpec, checkSClass),
2373         * support/Util/SDCCerr.c,
2374         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
2375         * support/valdiag/valdiag.py: Allow test cases to specify
2376           required language standard
2377         * support/valdiag/tests/restrict.c: New file to test restrict keyword
2378         * support/valdiag/tests/tentdecl.c: Supress empty source file error
2379
2380 2006-12-27 Borut Razem <borut.razem AT siol.net>
2381
2382         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
2383         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
2384           mbchar removed
2385         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
2386           fixed for borland C
2387         * support/cpp2/libiberty/Makefile.bcc: updated
2388         * src/pic16/main.c: fixed #pragma udata handling
2389         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
2390
2391 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
2392
2393         * src/SDCCpeeph.c: made labelHashEntry global,
2394         made pcDistance, FBYNAME static,
2395         (pcDistance): made static, use isComment and isLabel,
2396         (deadMove): added,
2397         (getLabelRef): added, extracted from labelRefCount(),
2398         (labelRefCount): use new getLabelRef(),
2399         (callFuncByName): made static, added deadMove,
2400         use isComment and isLabel,
2401         (newPeepRule): made static, set isLabel,
2402         (isLabelDefinition): added parameter isPeepRule to allow '%' in
2403         labels from peephole rules,
2404         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
2405         when isComment or isLabel is set
2406         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
2407         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
2408         to make them global
2409         * src/mcs51/peep.h: added
2410         * src/mcs51/peep.c: added, implements mcs51DeadMove()
2411         * src/port.h: added peep->deadMove to port structure
2412         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
2413         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
2414         deadMove, finally removed no. 1 and 2
2415         * src/mcs51/gen.c,
2416         * src/pic/gen.c,
2417         * src/z80/gen.c,
2418         * src/z80/ralloc.c,
2419         * src/pic16/gen.c,
2420         * src/ds390/gen.c,
2421         * src/hc08/gen.c: mark lines with isComment or isLabel
2422         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
2423         * .version,
2424         * sdcc.spec: bumped version to 2.6.3
2425
2426 2006-12-26 Borut Razem <borut.razem AT siol.net>
2427
2428         * support/cpp2/Makefile.in: added dependency on options.h
2429         * configure: regenerated
2430         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
2431         * support/cpp2/Makefile.in: added vasprintf.c
2432
2433 2006-12-25 Borut Razem <borut.razem AT siol.net>
2434
2435         * SDCPP synchronized with GCC CPP release version 3.4.6,
2436           the latest release before 4.x:
2437         * support/cpp2/Makefile.in, support/cpp2/config.h,
2438           support/cpp2/configure, support/cpp2/configure.in,
2439           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
2440           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
2441           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
2442           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
2443           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
2444           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
2445           support/cpp2/cpptrad.c, support/cpp2/except.h,
2446           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
2447           support/cpp2/hwint.h, support/cpp2/intl.h,
2448           support/cpp2/line-map.c, support/cpp2/line-map.h,
2449           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
2450           support/cpp2/output.h, support/cpp2/prefix.c,
2451           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
2452           support/cpp2/system.h, support/cpp2/version.c:
2453           modified
2454         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2455           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
2456           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
2457           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
2458           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
2459           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
2460           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
2461           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
2462           support/cpp2/move-if-change, support/cpp2/opts.c,
2463           support/cpp2/opts.h, support/cpp2/opts.sh,
2464           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
2465           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
2466           support/cpp2/win32, support/cpp2/win32/dirent.c,
2467           support/cpp2/win32/dirent.h:
2468           added
2469         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
2470         * support/cpp2/sdcpp.h: renamed from sdcc.h
2471         * sdcppinit.c: deleted
2472
2473 2006-12-23 Borut Razem <borut.razem AT siol.net>
2474
2475         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
2476           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
2477           preproc.c: an other try to fix bug #982435: introduced
2478           -pedantic-parse-number command line option and pedantic_parse_number
2479           pragma
2480
2481 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
2482
2483         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
2484            BSEG handling,
2485           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
2486            corrected overlayed areax addresses, warn about memory overlaps
2487         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
2488         * src/avr/main.c,
2489         * src/ds390/main.c,
2490         * src/hc08/main.c,
2491         * src/mcs51/main.c,
2492         * src/pic16/main.c,
2493         * src/pic/main.c,
2494         * src/xa51/main.c,
2495         * src/z80/main.c,
2496         * src/port.h: added xabs_name and iabs_name
2497         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
2498           (glue, emitMaps): create and emit maps d_abs and i_abs
2499         * src/SDCCglue.h: cosmetic changes
2500         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
2501         * src/SDCCmem.h,
2502         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
2503           (allocDefault): put absolute, initialized globals in them
2504         * support/regression/tests/absolute.c: added absolute bdata test
2505         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
2506
2507 2006-12-20 Borut Razem <borut.razem AT siol.net>
2508
2509         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
2510         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
2511           added regression test for bug #982435
2512
2513 2006-12-18 Borut Razem <borut.razem AT siol.net>
2514
2515         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
2516         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
2517           small cosmetic changes
2518         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
2519         * support/regression/tests/bug-1351710.c: added regression test
2520
2521 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2522
2523         * doc/sdccman.lyx: added the long missed iCode table
2524           "<where is figure II?>", added links to wiki
2525
2526 2006-12-17 Borut Razem <borut.razem AT siol.net>
2527
2528         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
2529           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
2530           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
2531           unified table driven pragma handling, pragma argument type checking
2532         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
2533           current one - version 1.1.3
2534         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
2535
2536 2006-12-13 Raphael Neider <rneider AT web.de>
2537
2538         * src/pic/device.h: removed AssignedMemory structure and macros
2539         * src/pic/device.c: removed global finalMapping (linker assigns
2540             memory locations),
2541           (register_map): add SFRs to remembered memRanges
2542           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
2543           assignFixedRegisters,assignRelocatableRegisters): removed,
2544           (setMaxRAM,validAddress): adapted accordingly,
2545           (pic14_hasSharebank,pic14_getSharedStack): only report and use
2546             reasonably sized sharebanks,
2547         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
2548           (allDefsOutOfRange): removed unused code,
2549         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
2550             handling
2551         * src/pic/pcode.c (register_reassign): removed recursion warning,
2552             fired far too often,
2553         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
2554             to use existing pic14_stringInSet() to avoid duplicate symbols,
2555             tidied up the code a bit,
2556           (pic14printLocals): added in symmetry to printExterns, replaces
2557             writeUsedRegs more or less,
2558           (picglue): call new pic14_printLocals(),
2559         * device/include/pic/pic*.h: removed #pragma memmap directives,
2560             information gathered from include/pic/pic14devices.txt
2561         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
2562
2563 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
2564
2565         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
2566
2567 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2568
2569         * device/include/mcs51/cc2430.h: fixed missing ';'
2570
2571 2006-12-10 Raphael Neider <rneider AT web.de>
2572
2573         * device/lib/pic16/libc/stdio/vfprintf.c,
2574         * device/lib/pic16/libc/stdio/printf_small.c,
2575         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
2576           char arguments, as char varargs are cast to int by the caller,
2577           hopefully fixes #1604915 (other device libraries are still affected)
2578
2579 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2580
2581         * src/mcs51/ralloc.c (packRegsForAssign),
2582         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
2583
2584 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
2585
2586         * device/include/malloc.h: removed init_dynamic_memory
2587         * device/lib/malloc.c: made init_dynamic_memory static and automatically
2588           call it once from malloc. Also use _sdcc_heap[] from _heap.c
2589         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
2590         * device/lib/libsdcc.lib,
2591         * device/lib/Makefile.in,
2592         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
2593         * doc/sdccman.lyx: documented use of new _heap.c
2594         * support/regression/tests/malloc.c: removed init_dynamic_memory
2595         * src/cdbFile.c(spacesToUnderscores): new function,
2596           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
2597           1068030
2598         * device/include/tinibios.h: removed defines for putchar and getchar
2599         * device/lib/ds390/Makefile.in: added putchar.c
2600         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
2601
2602 2006-12-09 Borut Razem <borut.razem AT siol.net>
2603
2604         * support/cpp2/sdcc.h: prevent multiple inclusion
2605         * support/cpp2/options.h: deleted
2606
2607 2006-12-08 Borut Razem <borut.razem AT siol.net>
2608
2609         * support/cpp2/sdcc.h: removed x*alloc() macros
2610         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
2611         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
2612           support/cpp2/sdcpp.sdc: x*alloc files added to the project
2613         * support/cpp2/system.h: moved #include "sdcc.h"
2614         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
2615           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
2616           added
2617         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
2618           -funsigned-char options
2619         * support/cpp2/sdcppmain.c: fixed bug 1611411
2620
2621 2006-12-07 Borut Razem <borut.razem AT siol.net>
2622
2623         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
2624           directive
2625
2626 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
2627
2628         * src/SDCCsymt.c (addDecl): fixed bug 1609244
2629         * src/SDCCmain.c (linkEdit): fixed bug 1609279
2630         * doc/sdccman.lyx,
2631         * .version: bumped to 2.6.2 because a) it's been a while
2632           b) the linker sources have moved c) the preprocessor is upgraded
2633
2634 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2635
2636         * support/regression/tests/snprintf.c: some checks
2637         * lib/src/printf_large.c: %bc: read char instead of int from stack
2638
2639 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
2640
2641         * device/include/mcs51/cc2430.h: inserted _XPAGE
2642
2643 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2644
2645         * device/include/mcs51/cc2430.h: added
2646
2647 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
2648
2649         * device/include/asm/default/features.h,
2650         * device/include/asm/ds390/features.h,
2651         * device/include/mcs51/at89s53.h,
2652         * device/include/ser.h,
2653         * device/include/ser_ir.h,
2654         * device/include/serial.h: changed keywords to double underscore variants,
2655           fixes bug 1590261 some more, thanks Steven Borley
2656
2657 2006-12-01 Raphael Neider <rneider AT web.de>
2658
2659         * src/pic/pcode.c (register_reassign): do not crash on recursive code
2660           but emit warning (recursion is not supported for pic14)
2661
2662 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2663
2664         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
2665         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
2666
2667 2006-11-30 Raphael Neider <rneider AT web.de>
2668
2669         * src/pic/device.c (dump_sfr): always emit symbols
2670         * src/pic/glue.c (pic14printPublics): fixed typo
2671
2672 2006-11-30 Raphael Neider <rneider AT web.de>
2673
2674         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
2675           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
2676           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
2677            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
2678            a sharebank, use a non-shared bank for the stack if none available
2679         * src/pic/device.h (struct memRange): added linked list next field,
2680           added prototypes for above functions
2681         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
2682           (typeRegWithIdx): accept fixed and unfixed stack registers
2683         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
2684           the stack, handle shared and banked stack (except for WSAVE),
2685           (insertBankSel): removed useless optimization (will never fire),
2686           (FixRegisterBanking): added optimization for devices with only one
2687           possibly aliased bank of memory, like 16f84
2688         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
2689           devices have no SHAREBANK in the linker script
2690         * device/include/pic/pic14devices.txt: documented memmap
2691         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
2692
2693 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2694
2695         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
2696           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
2697           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
2698           genhc08Code): switched most of the D (debug) macros to DD (detailed
2699           debug) macros to better control clutter in the generated .asm file.
2700         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
2701           genRightShift): fixed bug with non-constant bit shift stored to
2702           a volatile result (SF Open Discussion forum thread #1616749).
2703           Single byte case is not yet optimized.
2704
2705 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
2706
2707         * device/include/asm/mcs51/features.h,
2708         * device/include/malloc.h,
2709         * device/include/stdio.h: changed keywords to double underscore variants,
2710           fixes bug 1590261
2711
2712 2006-11-27 Borut Razem <borut.razem AT siol.net>
2713
2714         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
2715           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
2716           support/cpp2/output.h, support/cpp2/cppinit.c,
2717           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
2718           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
2719           support/cpp2/cppdefault.c, support/cpp2/system.h,
2720           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
2721           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
2722           support/cpp2/prefix.c, support/cpp2/except.h,
2723           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
2724           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
2725           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
2726           support/cpp2/version.c, support/cpp2/cppmain.c,
2727           support/cpp2/version.h, support/cpp2/hashtable.c,
2728           support/cpp2/cpperror.c:
2729           synchronized with GCC CPP release version 3.3.6,
2730           the latest where cppmain.c still exists.
2731         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
2732           support/cpp2/sdcppinit.c: added
2733
2734 2006-11-27 Borut Razem <borut.razem AT siol.net>
2735
2736         * support/cpp2/cpplex.c:
2737           fixed _asm ... _endasm handling bug, introduce with GCC CPP
2738           synchronization
2739         * support/cpp2/cpplib.c: removed definitions of unused variables
2740
2741 2006-11-26 Borut Razem <borut.razem AT siol.net>
2742
2743         * support/cpp2/libiberty.h: commented out x*alloc() declarations
2744           since they are redefined by macros in support/cpp2/sdcc.h
2745         * support/cpp2/sdcc.h: x*alloc macro redefinition
2746
2747 2006-11-25 Borut Razem <borut.razem AT siol.net>
2748
2749         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
2750           support/cpp2/configure, support/cpp2/Makefile.in,
2751           support/cpp2/cppfiles.c, support/cpp2/output.h,
2752           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
2753           support/cpp2/config.h, support/cpp2/cpplib.h,
2754           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
2755           support/cpp2/cppdefault.c, support/cpp2/config.in,
2756           support/cpp2/system.h, support/cpp2/cpplex.c,
2757           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
2758           support/cpp2/cppdefault.h, support/cpp2/prefix.c
2759           support/cpp2/hwint.h, support/cpp2/mbchar.h,
2760           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
2761           support/cpp2/configure.in, support/cpp2/intl.h,
2762           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
2763           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
2764           support/cpp2/version.c, support/cpp2/cppmain.c,
2765           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
2766           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
2767           support/cpp2/cpperror.c,
2768           support/cpp2/libiberty/safe-ctype.c,
2769           support/cpp2/libiberty/safe-ctype.h,
2770           support/cpp2/libiberty/splay-tree.c,
2771           support/cpp2/libiberty/obstack.c,
2772           support/cpp2/libiberty/lbasename.c,
2773           support/cpp2/libiberty/splay-tree.h,
2774           support/cpp2/libiberty/obstack.h:
2775           synchronized with GCC CPP release version 3.2.3,
2776           the latest before integration of cpp into gcc
2777         * support/cpp2/except.h, support/cpp2/line-map.c,
2778           support/cpp2/line-map.h,
2779           support/cpp2/libiberty/hex.c,
2780           support/cpp2/libiberty/concat.c,
2781           support/cpp2/libiberty/filenames.h: added
2782         * support/cpp2/intl.c: deleted
2783
2784 2006-11-24 Borut Razem <borut.razem AT siol.net>
2785
2786         * src/SDCC.y: enabled compilation of empty source file
2787         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
2788           "ISO C forbids an empty source file"
2789         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
2790           if all the code is ifdefed out.
2791
2792 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2793
2794         * src/hc08/gen.c (genPcall): fix for bug #1601032
2795
2796 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
2797
2798         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
2799         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
2800         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
2801         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
2802         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
2803         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
2804         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
2805         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
2806         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
2807         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
2808         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
2809         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
2810         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
2811         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
2812         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
2813           Renamed to all upper case as per the standard set by SiLabs
2814
2815 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
2816
2817         * device/include/mcs51/C8051F520.h: new, added
2818         * device/include/mcs51/compiler.h: added link about predefined macros
2819
2820 2006-11-23 Raphael Neider <rneider AT web.de>
2821
2822         * src/regression/Makefile: add -L path to fresh library
2823         * src/regression/simulate: emphasize FAILED output
2824         * src/regression/create_stc: output _failures from gpsim
2825         * src/regression/compare4.c,
2826         * src/regression/rotate6.c: fixed char literals,
2827           all compile, all run =8-D
2828
2829         * src/pic/pcode.h: added isPCASMDIR macro
2830         * src/pic/gen.c (genAnd): fixed bit offset
2831         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
2832           packBits): unified register numbering schemes,
2833           (newReg): do not insert stack registers into hash table,
2834           (initStack): unpinned pseudo stack, simplified,
2835           (typeRegWithIdx): fixed retrieval of stack registers,
2836         * src/pic/pcode.c (addpCodeComment,sameBank): added,
2837           (pCodeReplace): removed invalid assertion,
2838           (insertPCodeInstruction): fixed newly added labels,
2839           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
2840           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
2841           DumpFlow): removed unsed (broken?) code,
2842           (insertBankSel): prevent STATUS from being BANKSELed,
2843           (FixRegisterBanking): rewritten from scratch, implemented generic
2844             optimizations (suppress BANKSELs to same register and to registers
2845             present in all banks),
2846           (AnalyzeBanking): update flow after BANKSELection
2847
2848         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
2849             sharebank, let linker place it, mark STKxx symbols as emitted
2850
2851 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2852
2853         * src/regression/arrays.c,
2854         * src/regression/bank1.c,
2855         * src/regression/bool2.c,
2856         * src/regression/compare7.c,
2857         * src/regression/compare8.c,
2858         * src/regression/compare9.c,
2859         * src/regression/compare10.c,
2860         * src/regression/configword.c,
2861         * src/regression/for.c,
2862         * src/regression/mult1.c,
2863         * src/regression/pointer1.c,
2864         * src/regression/rotate6.c,
2865         * src/regression/string1.c,
2866         * src/regression/struct1.c,
2867         * src/regression/Makefile: make PIC14 regression tests run again
2868           (3 fail, 6 won't compile)
2869
2870 2006-11-21 Raphael Neider <rneider AT web.de>
2871
2872         * device/include/pic16/pic18f4550.h,
2873         * device/include/pic16/pic18f4455.h,
2874         * device/lib/pic16/libdev/pic18f4550.c,
2875         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
2876         * configure.in: removed superfluous closing bracket
2877
2878 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2879
2880         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
2881           always positive.
2882
2883 2006-11-21 Raphael Neider <rneider AT web.de>
2884
2885         * src/pic/device.{c,h}: added pic14_getPIC()
2886         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
2887           (genAnd): added PIC code for one case, fixes #1597044
2888         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
2889           SFRs that are present in all banks (e.g., STATUS)
2890
2891 2006-11-20 Raphael Neider <rneider AT web.de>
2892
2893         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
2894           INCFSZ/INCFSZW and declared them as changing Z bit,
2895           (insertPCodeInstruction): correctly invert the above instructions,
2896           fixes #1599333,
2897           (DoBankSelect): don't panic on po_immediates
2898
2899 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
2900
2901         * as/link/aslink.h,
2902         * as/link/mcs51/lkihx.c (newArea),
2903         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
2904         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
2905
2906 2006-11-11 Raphael Neider <rneider AT web.de>
2907
2908         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
2909           bitfield symbols, fixes #1579535 (once more...).
2910
2911 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2912
2913         * support/regression/generate-cases.py,
2914         * support/regression/fwk/include/testfwk.h,
2915         * support/regression/fwk/lib/testfwk.c: used code pointers,
2916           (about 50kByte less code generated for mcs51)
2917
2918 2006-11-06 Borut Razem <borut.razem AT siol.net>
2919
2920         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
2921           debugger/mcs51/configure: fixed failed check because the function
2922           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
2923           who submitted the patch for gpsim.
2924         * debugger/mcs51/configure.in: removed the result message
2925         * debugger/mcs51/Makefile.in: fixed the config.status warning
2926           "... seems to ignore the --datarootdir setting"
2927
2928 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
2929
2930         * device/include/mcs51/c8051f020.h,
2931         * device/include/mcs51/c8051f040.h,
2932         * device/include/mcs51/c8051f060.h,
2933         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
2934         * src/z80/gen.c (gencjneshort),
2935         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
2936
2937 2006-10-31 Borut Razem <borut.razem AT siol.net>
2938
2939         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
2940           debugger/mcs51/configure: get readline version
2941
2942 2006-10-30 Borut Razem <borut.razem AT siol.net>
2943
2944         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
2945         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
2946           debugger/mcs51/configure: locate readline even when cross compiling
2947         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
2948
2949 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2950
2951         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
2952           serial port.
2953
2954 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
2955
2956         * device/include/malloc.h,
2957         * device/lib/calloc.c,
2958         * device/lib/free.c,
2959         * device/lib/malloc.c,
2960         * device/lib/realloc.c: moved definition of struct into sources
2961         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
2962
2963 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
2964
2965         * as/asx8051.dsp: corrected output directories
2966         * as/link/hc08: new directory for hc08 linker
2967         * as/hc08/aslink.h,             as/link/aslink.h,
2968         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
2969         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
2970         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
2971         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
2972         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
2973         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
2974         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
2975         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
2976         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
2977         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
2978         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
2979         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
2980         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
2981         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
2982         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
2983         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
2984         * as/link/hc08/conf.mk,
2985         * configure,
2986         * configure.in,
2987         * Makefile.in,
2988         * sdcc.dsw: moved hc08 linker to as/link/hc08
2989         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
2990         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
2991         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
2992         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
2993         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
2994         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
2995         * as/link/mcs51/aslink.dsp,
2996         * as/link/mcs51/Makefile.in: factored out the common files
2997         * as/hc08/lkstore.c: deleted, use the one already in as/link/
2998         * as/clean.mk: extra cleaning common files
2999         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
3000         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
3001         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
3002
3003 2006-10-29 Raphael Neider <rneider AT web.de>
3004
3005         * src/pic/ralloc.c (newReg): create aliases for registers with
3006           multiple names to fix #1579535 and #1584001,
3007           (regWithIdx,dirregWithName): resolve aliases on lookup
3008         * src/pic/pcode.c (DoBankSelect): die with error message on failing
3009           bankselect
3010         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
3011           to prevent build errors on small devices
3012
3013 2006-10-28 Raphael Neider <rneider AT web.de>
3014
3015         * src/pic/gen.c (genFunction,genCall): drop "same code page"
3016           assumption within interrupt handlers, fixes #1584940
3017         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
3018           "emitted" to avoid emitting them again in udata
3019
3020 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3021
3022         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
3023         Removed.
3024
3025 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3026
3027         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
3028         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
3029         on/off CR to CRLF conversion.
3030
3031 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3032
3033         * doc/sdccman.lyx: updated IRQ section
3034
3035 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3036
3037         * device/lib/serial_io.c: removed
3038         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
3039         replacements for serial_io.c
3040
3041 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
3042
3043         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
3044
3045 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3046
3047         * device/lib/serial_io.c: Default putchar() and getchar() for
3048           mcs51 uses serial port.
3049
3050 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
3051
3052         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
3053
3054 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3055
3056         * support/regression/ports/mcs51/support.c: smaller
3057         _sdcc_external_startup()
3058         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
3059
3060 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
3061
3062         * device/lib/gbz80/crt0.s,
3063         * device/lib/gbz80/crt0_rle.s,
3064         * device/lib/gbz80/div.s,
3065         * device/lib/gbz80/fstubs.s,
3066         * device/lib/gbz80/heap.s,
3067         * device/lib/gbz80/mul.s,
3068         * device/lib/gbz80/putchar.s,
3069         * device/lib/gbz80/stubs.s,
3070         * device/lib/z80/crt0.s,
3071         * device/lib/z80/crt0_rle.s,
3072         * device/lib/z80/div.s,
3073         * device/lib/z80/fstubs.s,
3074         * device/lib/z80/heap.s,
3075         * device/lib/z80/mul.s,
3076         * device/lib/z80/putchar.s,
3077         * device/lib/z80/stubs.s: reverted, I was mistaken
3078
3079 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3080
3081         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
3082         * support/regression/ports/mcs51/support.c: removed race
3083         condition on TI in _putchar allowing to use serial port mode 0
3084
3085 2006-10-20 Borut Razem <borut.razem AT siol.net>
3086
3087         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
3088
3089 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
3090
3091         * device/lib/gbz80/crt0.s,
3092         * device/lib/gbz80/crt0_rle.s,
3093         * device/lib/gbz80/div.s,
3094         * device/lib/gbz80/fstubs.s,
3095         * device/lib/gbz80/heap.s,
3096         * device/lib/gbz80/mul.s,
3097         * device/lib/gbz80/putchar.s,
3098         * device/lib/gbz80/stubs.s,
3099         * device/lib/z80/crt0.s,
3100         * device/lib/z80/crt0_rle.s,
3101         * device/lib/z80/div.s,
3102         * device/lib/z80/fstubs.s,
3103         * device/lib/z80/heap.s,
3104         * device/lib/z80/mul.s,
3105         * device/lib/z80/putchar.s,
3106         * device/lib/z80/stubs.s: removed all leading underscores from area names
3107
3108 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
3109
3110         * support/regression/ports/mcs51/support.c: use highest baudrate so the
3111           regression tests are not waiting in the simulator for simulated
3112           transmission of debug output
3113
3114 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3115
3116         * device/lib/printf_large.c: slightly smaller
3117         * doc/sdccman.lyx: do not use spaces within html links
3118
3119 2006-10-16 Borut Razem <borut.razem AT siol.net>
3120
3121         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
3122           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
3123           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
3124           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
3125           debugger/mcs51/configure:
3126           [ 1185668 ] add gnu readline support to sdcdb - enabled
3127
3128 2006-10-16 Raphael Neider <rneider AT web.de>
3129
3130         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
3131           fixes #1577882, removes close to all banking optimizations
3132
3133 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
3134
3135         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
3136           variables in code memory
3137         * support/regression/tests/absolute.c: added test for this
3138
3139 2006-10-15 Raphael Neider <rneider AT web.de>
3140
3141         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
3142           devices,
3143           (BankSelect): emit BANKSEL before touching linker-placed regs,
3144           fixes #1570934
3145
3146 2006-10-10 Raphael Neider <rneider AT web.de>
3147
3148         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
3149         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
3150         * src/pic/main.c (_pic14_parseOptions),
3151         * src/pic/main.h: mostly reverted to previous state, now use results
3152             from SDCCmain.c's argument parsing
3153
3154 2006-10-10 Borut Razem <borut.razem AT siol.net>
3155
3156         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
3157           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
3158           [ 1185668 ] add gnu readline support to sdcdb -
3159           prepared for READLINE, not enabled yet,
3160           thanks to <tal.bav AT gmail.com>
3161
3162 2006-10-10 Raphael Neider <rneider AT web.de>
3163
3164         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
3165         * src/pic16/devices.inc,
3166         * device/include/pic16 (pic18f[24]620.h),
3167         * device/include/pic18fregs.h,
3168         * device/lib/pic16/pics.all,
3169         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
3170             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
3171             Gary Plumbridge and Anton Strobl
3172
3173 2006-10-10 Raphael Neider <rneider AT web.de>
3174
3175         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
3176           --stack-siz=NUM options to configure the argument passing stack
3177         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
3178         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
3179           (pic14_getSharebankSize): obey --stack-siz=NUM,
3180           (pic14_getSharebankAddress): obey --stack-loc=NUM
3181
3182 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3183
3184         * doc/sdccman.lyx: added to the manual
3185         * doc/figures/ddd_example.png: added (neither pdflatex nor
3186         most browsers seem to like the .eps file)
3187
3188 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
3189
3190         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
3191         to /tmp and /var/tmp acc. LSB
3192         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
3193         RESULT_TYPE_IFX
3194         * support/regression/tests/onebyte.c: added test
3195
3196 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3197
3198         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
3199
3200 2006-10-05 Borut Razem <borut.razem AT siol.net>
3201
3202         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
3203           thanks to dfulab:
3204           - sdcc.dsw: changed property eol-style to CRLF
3205           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
3206
3207 2006-10-04 Raphael Neider <rneider AT web.de>
3208
3209         * device/include/pic/{pic16f84.h,pic16f84a.h},
3210         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
3211           from patch #1522504, thanks to Robas Teodor
3212
3213 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
3214
3215         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
3216           fixes bug 1566015
3217
3218 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
3219
3220         * src/pic16/glue.c (pic16emitMaps),
3221         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
3222         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
3223         * device/lib/pic16/libc/string/memcpypgm2ram.c,
3224         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
3225           Philipp Krause
3226         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
3227         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
3228
3229 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3230
3231         * support/librarian/sdcclib.c: Added option -l.
3232         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
3233           usage totals.
3234         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
3235           using Windows command prompt.
3236
3237 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
3238
3239         * device/lib/libsdcc.lib: added module rand
3240         * src/ds390/ralloc.c (rematStr),
3241         * src/hc08/ralloc.c (rematStr),
3242         * src/mcs51/ralloc.c (rematStr),
3243         * src/z80/ralloc.c (rematStr): made output more consistent
3244         * src/mcs51/gen.c: cosmetic changes
3245
3246 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
3247
3248         * src/port.h: added mem.cabs_name to PORT
3249         * src/ds390/main.c,
3250         * src/hc08/main.c,
3251         * src/mcs51/main.c,
3252         * src/pic16/main.c,
3253         * src/pic/main.c,
3254         * src/xa51/main.c,
3255         * src/z80/main.c: added cabs_name initializers
3256         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
3257           constants
3258           (emitMaps): emit absolutes in code memory into cabs_name
3259         * src/SDCCmem.c,
3260         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
3261         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
3262         * support/regression/fwk/include/testfwk.h: added define for at
3263         * support/regression/tests/absolute.c: added, new
3264
3265 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
3266
3267         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
3268           optimizations, see also patch 887161 by Stas Sergeev
3269         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
3270           to be necessary anymore,
3271           (102, 103, 104, 127): renamed all occurances of bp to _bp
3272
3273 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
3274
3275         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
3276           thanks Weston T. Schmidt for patch 1555221
3277         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
3278         * src/SDCCicode.c(geniCodeMultiply): small optimization
3279
3280 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
3281
3282         * device/include/stdlib.h: added rand prototypes
3283         * device/lib/rand.c: new, added
3284         * device/lib/Makefile.in: added rand.c
3285         * src/z80/peeph.def,
3286         * src/z80/peeph-gbz80.def,
3287         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
3288
3289 2006-09-20 Raphael Neider <rneider AT web.de>
3290
3291         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
3292
3293 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
3294
3295         * as/link/aslink.h: cosmetic changes
3296         * as/link/mcs51/Makefile.in,
3297         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
3298
3299 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
3300
3301         * as/link/aslink.h,
3302         * as/link/mcs51/aslink.h,
3303         * as/link/z80/aslink.h: merged and moved to as/link/
3304         * as/link/lkstore.c,
3305         * as/link/mcs51/lkstore.c: moved to as/link/
3306         * as/link/clean.mk: remove *.o
3307         * as/link/mcs51/alloc.h: deleted
3308         * as/link/mcs51/lkarea.c: added lnksect prototype
3309         * as/link/mcs51/lkdata.c,
3310         * as/link/mcs51/lklex.c,
3311         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
3312         * as/link/mcs51/lkmem.c,
3313         * as/link/mcs51/lknoice.c: removed include strcmpi.h
3314         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
3315         * as/link/mcs51/aslink.dsp,
3316         * as/link/mcs51/Makefile.aslink,
3317         * as/link/mcs51/Makefile.bcc,
3318         * as/link/mcs51/Makefile.in: updated for moved files
3319         * as/link/z80/lkarea.c,
3320         * as/link/z80/lkhead.c,
3321         * as/link/z80/lklex.c,
3322         * as/link/z80/lklibr.c,
3323         * as/link/z80/lklist.c,
3324         * as/link/z80/lkmain.c,
3325         * as/link/z80/lkrloc.c,
3326         * as/link/z80/lksym.c: synced with mcs51
3327         * as/link/z80/lkdata.c,
3328         * as/link/z80/lkeval.c,
3329         * as/link/z80/lkihx.c,
3330         * as/link/z80/lks19.c: cosmetic changes
3331         * as/link/z80/Makefile.in,
3332         * as/link/z80/linkgbz80.dsp,
3333         * as/link/z80/linkz80.dsp: updated for moved files
3334
3335 2006-09-16 Borut Razem <borut.razem AT siol.net>
3336
3337         * debugger/mcs51/sdcdb.c: partially fixed
3338           [ 1203664 ] sdcdb fails to open files w. two "." periods
3339         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
3340           debugger/mcs51/symtab.h: fixed indenting
3341         * configure.in, configure: up to date with latest Maarten's changes
3342
3343 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
3344
3345         as/link/mcs51
3346         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
3347         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
3348         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
3349         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
3350         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
3351         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
3352         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
3353         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
3354         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
3355         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
3356         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
3357         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
3358         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
3359         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
3360         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
3361         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
3362         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
3363         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
3364         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
3365         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
3366         as/link/mcs51/alloc.h,
3367         as/link/mcs51/clean.mk,
3368         as/link/mcs51/conf.mk,
3369         as/link/mcs51/Makefile.bcc,
3370         as/link/mcs51/Makefile.in,
3371         as/link/mcs51/readme.390,
3372         as/link/mcs51/strcmpi.c,
3373         as/link/mcs51/strcmpi.h,
3374         as/mcs51/clean.mk,
3375         as/mcs51/Makefile.bcc,
3376         as/mcs51/Makefile.in,
3377         configure,
3378         Makefile.in,
3379         sdcc.dsw: moved mcs51 linker to as/link/mcs51
3380
3381 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
3382
3383         * as/link,
3384         * as/link/Makefile.in,
3385         * as/link/z80/linkgbz80.dsp,
3386         * as/link/z80/linkz80.dsp,
3387         * configure,
3388         * link,
3389         * link/clean.mk,
3390         * link/Makefile.in,
3391         * link/README,
3392         * link/z80,
3393         * link/z80/aslink.h,
3394         * link/z80/clean.mk,
3395         * link/z80/conf.mk,
3396         * link/z80/linkgbz80.dsp,
3397         * link/z80/linkz80.dsp,
3398         * link/z80/lkarea.c,
3399         * link/z80/lkdata.c,
3400         * link/z80/lkeval.c,
3401         * link/z80/lkgb.c,
3402         * link/z80/lkgg.c,
3403         * link/z80/lkhead.c,
3404         * link/z80/lkihx.c,
3405         * link/z80/lklex.c,
3406         * link/z80/lklibr.c,
3407         * link/z80/lklist.c,
3408         * link/z80/lkmain.c,
3409         * link/z80/lkrloc.c,
3410         * link/z80/lks19.c,
3411         * link/z80/lksym.c,
3412         * link/z80/Makefile.in,
3413         * Makefile.in,
3414         * sdcc.dsw: moved link/ to as/link/
3415
3416 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
3417
3418         * as/mcs51/i51mch.c (machine): fixed warning
3419
3420 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
3421
3422         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
3423
3424 2006-09-09 Borut Razem <borut.razem AT siol.net>
3425
3426         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
3427           sdcdb WIN32 native port
3428         * src/clean.mk: fixed
3429
3430 2006-09-08 Borut Razem <borut.razem AT siol.net>
3431
3432         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
3433
3434 2006-09-08 Raphael Neider <rneider AT web.de>
3435
3436         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
3437         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
3438             to gplink to disable processor mismatch warning and to allow
3439             the use of devices with only aliased (shared) memory banks,
3440           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
3441
3442 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3443
3444         * doc/sdccman.lyx: Some re-formating plus example on using
3445           #pragma preproc_asm +/-
3446
3447 2006-09-07 Borut Razem <borut.razem AT siol.net>
3448
3449         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
3450           section
3451
3452 2006-09-06 Borut Razem <borut.razem AT siol.net>
3453
3454         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
3455           line at sdcc.nsi:153
3456         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
3457
3458 2006-09-05 Borut Razem <borut.razem AT siol.net>
3459
3460         * configure.in, configure: support for winsock2
3461         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
3462           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
3463           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
3464           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
3465           debugger/mcs51/symtab.h: sdcdb WIN32 native port
3466
3467 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
3468
3469         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
3470           and OP_DEFS
3471         * support/regression/tests/bug1551947.c: new, added
3472         * src/SDCCsymt.h: strings are char* not byte*
3473
3474 2006-09-05 Raphael Neider <rneider AT web.de>
3475
3476         * device/lib/pic16/libdev/pic18f4550.c,
3477           device/include/pic16/pic18f4550.h: added PORTD/TRISD
3478             declarations/definitions from patch #1520949
3479
3480 2006-09-05 Raphael Neider <rneider AT web.de>
3481
3482         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
3483           byte-aligned bitfields, fixes #1539278
3484
3485 2006-09-05 Raphael Neider <rneider AT web.de>
3486
3487         * src/pic/gen.c (genReceive): skip unreferenced arguments,
3488           fixes #1544120
3489
3490 2006-09-04 Borut Razem <borut.razem AT siol.net>
3491
3492         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
3493         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
3494           -mno-cygwin is a part of the compiler name
3495         * support/scripts/sdcc_mingw32: don't disable ucsim
3496
3497 2006-09-03 Borut Razem <borut.razem AT siol.net>
3498
3499         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
3500         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
3501
3502 2006-09-03 Raphael Neider <rneider AT web.de>
3503
3504         * src/pic/ralloc.c,
3505         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
3506           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
3507           fixes #1550049
3508
3509 2006-09-01 Borut Razem <borut.razem AT siol.net>
3510
3511         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
3512           to make ppc-osx happy
3513
3514 2006-08-31 Borut Razem <borut.razem AT siol.net>
3515
3516         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
3517         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
3518         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
3519         * support/regression/ports/ds390/spec.mk,
3520           support/regression/ports/mcs51/spec.mk,
3521           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
3522           To run regression tests in mingw environment:
3523           make DEV_NULL=NUL CC=gcc
3524
3525 2006-08-30 Borut Razem <borut.razem AT siol.net>
3526
3527         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
3528           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
3529           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
3530           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
3531           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
3532           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
3533           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
3534           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
3535           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
3536           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
3537           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
3538           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
3539           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
3540           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
3541           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
3542           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
3543           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
3544           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
3545           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
3546           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
3547           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
3548           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
3549           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
3550           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
3551           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
3552           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
3553           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
3554           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
3555           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
3556           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
3557           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
3558           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
3559           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
3560           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
3561           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
3562           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
3563           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
3564           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
3565           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
3566           ucsim WIN32 native port
3567
3568 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3569
3570         * doc/sdccman.lyx: added note on dynamic memory heap initialization
3571
3572 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
3573
3574         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
3575         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
3576
3577 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
3578
3579         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
3580         * support/regression/tests/bug1546986.c: new, added
3581         * as/mcs51/.cvsignore,
3582         * debugger/mcs51/.cvsignore,
3583         * src/.cvsignore: deleted
3584
3585 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3586
3587         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
3588           definitions)
3589
3590 2006-08-20 Borut Razem <borut.razem AT siol.net>
3591
3592         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
3593           removed cl_listen_console::match(), cl_console::match(),
3594           restructured cl_commander::proc_input()
3595
3596 2006-08-16 Borut Razem <borut.razem AT siol.net>
3597
3598         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
3599           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
3600           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
3601
3602 2006-08-14 Borut Razem <borut.razem AT siol.net>
3603
3604         * support/regression/Makefile.in,
3605           support/regression/ports/pic14/gpsim.cmd,
3606           support/regression/ports/pic14/spec.mk,
3607           support/regression/ports/pic14/support.c:
3608           added pic14 regression test
3609
3610 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
3611
3612         * as/doc/asxhtm.html: documented changed ABS behaviour
3613         * as/doc/README: fixed some typos
3614
3615 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
3616
3617         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
3618           not defined on host
3619
3620 2006-08-12 Borut Razem <borut.razem AT siol.net>
3621
3622         * support/regression/fwk/include/testfwk.h,
3623           support/regression/fwk/lib/testfwk.c,
3624           support/regression/generate-cases.py,
3625           support/regression/Makefile.in:
3626           regression test framework does not depend on function pointers and
3627           variable arguments
3628
3629 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
3630
3631         * device/include/stddef.h: c temporary hack to fix bug 1518273
3632
3633 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3634
3635         * device/include/mcs51/cc2510fx.h: added
3636         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
3637           to projects.
3638
3639 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
3640
3641         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
3642         * as/z80/Makefile.in: added strcmpi.c
3643         * as/z80/z80adr.c: added upper case registers and lower case conditionals
3644         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
3645
3646 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
3647
3648         * device/lib/gbz80/asm_strings.s,
3649         * device/lib/gbz80/crt0_rle.s,
3650         * device/lib/gbz80/div.s,
3651         * device/lib/gbz80/mul.s,
3652         * device/lib/gbz80/shift.s,
3653         * device/lib/z80/asm_strings.s,
3654         * device/lib/z80/crt0_rle.s,
3655         * device/lib/z80/div.s,
3656         * device/lib/z80/mul.s,
3657         * device/lib/z80/shift.s: changed to all lower case menmonics except the
3658           flags which are all upper case
3659
3660 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
3661
3662         * as/z80/asm.h: made CASE_SENSITIVE 1
3663         * link/z80/aslink.h: made CASE_SENSITIVE 1
3664         * src/z80/gen.c (throughout): made all conditionals upper case
3665         * support/regression/tests/bug1503067.c: new
3666
3667 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
3668
3669         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
3670           (shiftIntoPair): added case 2 for PAIR_IY,
3671           (setupToPreserveCarry): replaced parameters with iCode and check if
3672            PAIR_DE is in use to fix bug 1399290,
3673           (genPlus, genMinus): updated call to setupToPreserveCarry
3674         * support/regression/tests/bug1399290.c: new
3675
3676 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
3677
3678         * device/lib/Makefile.in (Z80SOURCES): enabled float support
3679         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
3680         * src/ds390/gen.c (shiftRLong),
3681         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
3682         * src/mcs51/gen.c (sameReg): changed to sameByte,
3683           (xch_a_aopGet): new,
3684           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
3685            shiftRLong): fixed bug 1533966
3686         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
3687           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
3688         * support/regression/Makefile.in: disabled z80, enabled ucz80
3689         * support/regression/tests/float_trans.c: enabled test for z80 and host
3690         * support/regression/tests/shifts2.c: new, for testing bug 1533966
3691
3692 2006-08-01 Borut Razem <borut.razem AT siol.net>
3693
3694         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
3695           comparison is always false due to limited range of data type
3696           on PPC64 machine (openpower-linux1) where "char = unsigned char"
3697
3698 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
3699
3700         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
3701         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
3702         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
3703         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
3704
3705 2006-07-31 Borut Razem <borut.razem AT siol.net>
3706
3707         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
3708           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
3709           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
3710           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
3711           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
3712           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
3713           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
3714           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
3715           enable ucsim mingw compilation. Serial port is disabled,
3716           since it uses termios.h API, which is not available on native
3717           WIN32
3718
3719 2006-07-31 Borut Razem <borut.razem AT siol.net>
3720
3721         * Small Device C Compiler 2.6.0 released
3722         * support/scripts/sdcc.nsi: added FULL_DOC option
3723         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
3724
3725 2006-07-28 Borut Razem <borut.razem AT siol.net>
3726
3727         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
3728         * doc/INSTALL.txt: updated
3729
3730 2006-07-27 Borut Razem <borut.razem AT siol.net>
3731
3732         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
3733           device/lib/pic/libdev/Makefile.in: fixed bug
3734           [ 1438354 ] pic libsdcc: distclean doesn't work
3735         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
3736           device/lib/pic16/libio/Makefile.in: fixed bug
3737           [ 1438344 ] pic16 lib: clean doesn't work properly
3738         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
3739
3740 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
3741
3742         * device/lib/pic/libsdcc/fsdiv.c,
3743         * device/lib/pic/libsdcc/fsmul.c,
3744         * device/lib/pic16/libsdcc/float/fsdiv.c,
3745         * device/lib/pic16/libsdcc/float/fsmul.c,
3746         * device/lib/_fsdiv.c,
3747         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
3748         * support/regression/tests/bug1520966.c: added
3749         * doc/knownbugs.html: removed [ 1520966 ] from the list
3750
3751 2006-07-25 Borut Razem <borut.razem AT siol.net>
3752
3753         * configure.in, configure, sdccconf_in.h: fixed bug
3754           [ 1519095 ] regression test onebyte.c fails on ppc64 host
3755         * doc/knownbugs.html: removed [ 1519095 ] from the list
3756
3757 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
3758
3759         * doc/knownbugs.html: added, contains list of known bugs at release
3760         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
3761
3762 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
3763
3764         * device/include/mcs51/compiler.h: added SFRX for xdata based special
3765           function registers and corrected defaults with additional warning
3766         * device/lib/malloc.c: cosmetic changes
3767         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
3768         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
3769           (fillGaps): and used it
3770
3771 2006-07-20 Raphael Neider <rneider AT web.de>
3772
3773         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
3774           output unless SDCCPICDEBUG is set
3775         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
3776           output if SILENT is set
3777
3778 2006-07-11 Borut Razem <borut.razem AT siol.net>
3779
3780         * doc/README.txt: updated
3781
3782 2006-07-10 Borut Razem <borut.razem AT siol.net>
3783
3784         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
3785           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
3786           in WIN32 installation
3787         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
3788           release candidate 1
3789
3790 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
3791
3792         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
3793         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
3794
3795 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
3796
3797         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
3798
3799 2006-07-06 Borut Razem <borut.razem AT siol.net>
3800
3801         * support/regression/tests/bitfields.c:
3802           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
3803         * support/regression/tests/constantRange.c:
3804           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
3805
3806 2006-07-04 Borut Razem <borut.razem AT siol.net>
3807
3808         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
3809           src/port.mk,
3810           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
3811           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
3812           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
3813           reverted changes from 2006-07-03
3814         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
3815         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
3816           added CPPFLAGS, used by the host port
3817
3818 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
3819
3820         * support/regression/valdiag/tests/switch.c,
3821         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
3822         * support/regression/tests/libmullong.c: fixed for host
3823         * support/regression/ports/host/spec.mk: disable all warnings for host,
3824         SDCC runs with --less-pedantic too
3825
3826 2006-07-03 Borut Razem <borut.razem AT siol.net>
3827
3828         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
3829           defined CPPFLAGS
3830         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
3831         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
3832           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
3833           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
3834           include ../port.mk
3835         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
3836           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
3837           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
3838           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
3839
3840 2006-07-02 Raphael Neider <rneider AT web.de>
3841
3842         * src/pic16/devices.inc,
3843         * device/include/pic16/pic18fregs.h,
3844         * device/include/pic16/pic18f4550.h,
3845         * device/lib/pic16/pics.all,
3846         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
3847
3848 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
3849
3850         * as/hc08/lkaomf51.c (OutputName),
3851         * as/mcs51/lkaomf51.c (OutputName),
3852         * as/z80/asmain.c (asmbl),
3853         * src/ds390/main.c (asmLineNodeFromLineNode),
3854         * src/hc08/ralloc.c (hc08_assignRegisters),
3855         * src/mcs51/main.c (asmLineNodeFromLineNode),
3856         * src/xa51/ralloc.c (checkRegMask),
3857         * src/xa51/gen.c (emitcode),
3858         * src/z80/gen.c (_emit2),
3859         * src/SDCCast.c (searchLitOp),
3860         * src/SDCCglobl.h,
3861         * support/packihx/packihx.c,
3862         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
3863         * src/ds390/gen.c (aopPutUsesAcc),
3864         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
3865         * support/regression/tests/libmullong.c (mullong_wrapper),
3866         * src/SDCCsymt.c (powof2),
3867         * src/SDCCast.c,
3868         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
3869         * src/SDCCsymt.h: added TYPE_TARGET_*
3870         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
3871         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
3872         SDCCast because 1) header problems 2) this is the right place
3873         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
3874         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
3875         prototype
3876
3877 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
3878
3879         * src/SDCCicode.h: removed buggy semicolon in unused macro
3880         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
3881         search for previous definiton of auto symbols too,
3882         (findPrevUse): fixed logic of emitWarnings
3883
3884 2006-06-26 Raphael Neider <rneider AT web.de>
3885
3886         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
3887           PCLATH and PCLATU on interrupts, potentially fixes #1505141
3888
3889 2006-06-25 Raphael Neider <rneider AT web.de>
3890
3891         * device/lib/pic/libm: NEW, added math library functions
3892         * device/lib/pic/libsdcc: NEW; added float support functions
3893         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
3894         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
3895           NEW, added math related headers
3896         * device/include/asm/pic/features.h: NEW
3897         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
3898           (popGet): allow larger offsets for AOP_PCODE,
3899           (genDataPointerSet): handle literals explicitly, more debug output,
3900           (genAssign): fixed for float using aopLiteral ;-)
3901         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
3902           GOTO initialisation routine
3903         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
3904           flag on registers, fixes #1469043 (local variables do not work)
3905         * src/pic/main.c (_pic14_do_link),
3906         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
3907           available
3908
3909 2006-06-25 Borut Razem <borut.razem AT siol.net>
3910
3911         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
3912           characters printed (not including the trailing '\0' used to end
3913           output to strings). Problem detected in regression test bug-927659.c.
3914           NOTE: printf() family functions should return int instead
3915           unsigned int!
3916         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
3917           specifier are printed as themselves
3918         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
3919           support flags, width and precision specifiers
3920
3921 2006-06-24 Borut Razem <borut.razem AT siol.net>
3922
3923         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
3924           to the list of sdcc tagrets not supporting bit type
3925         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
3926           testfor pic16 due to bug:
3927           [ 1511794 ] pic16: regression test bug-895992.c fails
3928
3929 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
3930
3931         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
3932         * src/SDCCglue.c (initPointer), fixed bug 1496419
3933         * support/regression/tests/bug1496419.c: new, added
3934
3935 2006-06-22 Borut Razem <borut.razem AT siol.net>
3936
3937         * support/regression/ports/pic16/support.c: use gpsim usart module from
3938           libgpsim_modules library
3939
3940 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3941
3942         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
3943         IP0H to IPH0.
3944
3945 2006-06-19 Raphael Neider <rneider AT web.de>
3946
3947         * src/pic/glue.h,src/pic16/glue.h: added prototypes
3948         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
3949           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
3950           (pic14printExterns,pic14printPublics,pic16printPublics,
3951           pic16_printExterns): use new functions to emit symbols
3952           (picglue,pic16glue): emit publics before emitting externs
3953         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
3954           locally defined functions to avoid bug #1443651
3955         * support/regression/tests/bug-716242.c: removed pic16 workaround
3956         * support/regression/ports/pic16/spec.mk: ignore errors during build
3957
3958 2006-06-19 Raphael Neider <rneider AT web.de>
3959
3960         * src/pic/glue.h: added pic14aopLiteral prototype
3961         * src/pic/glue.c (pic14aopLiteral): return unsigned int
3962         * src/pic/gen.c: removed stdint.h dependency
3963           (aopGet): use Safe_strdup()
3964           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
3965           (genDataPointerSet): use pic14aopLiteral()
3966         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
3967           for pic16; thanks to Bernhard and Maarten
3968
3969 2006-06-18 Borut Razem <borut.razem AT siol.net>
3970
3971         * support/regression/tests/structflexarray.c: flexible array members
3972           not supported by gcc < 3
3973         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
3974           GUI tool by default
3975         * src/pic/gen.c: don't include [p]strdin.h on solaris
3976         * support/Util/pstdint.h: addad svn attributes
3977         * support/regression/tests/constantRange.c,
3978           support/regression/tests/rotate.c: include inttypes.h instead
3979           stdint.h on solaris, addad svn attributes
3980
3981 2006-06-18 Raphael Neider <rneider AT web.de>
3982
3983         * src/SDCCsymt.c (initCSupport): change return type of divschar to
3984           int for PIC16
3985         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
3986           (pic16_genMinusBits): simplified sign-extension
3987           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
3988             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
3989             adjusted to correctly handle mixed-signed operands, disabled
3990             now unused multiplciation routines
3991         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
3992           (assignResultValue): added argument denoting the size of the result
3993             as returned by the function (fixes upcasts in assigning from
3994             function calls: char foo(); int i = foo();)
3995           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
3996             function result to assignResultValue
3997           (genMult): disabled inlined multiplication code
3998           (genDiv): augmented to also handle the modulus operator, fixed to
3999             handle mixed-signed operands correctly
4000           (genMod): simply call genDiv, disabled unused code
4001           (genAssign): fixed missing (sign-)extension on result
4002         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
4003             valid char operands, allow signed operands for native code, added
4004             division and modulo operator handling
4005         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
4006
4007         As a consequence, onebyte.c (if split into two files) and muldiv.c
4008         pass regression tests.
4009
4010 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4011
4012         * doc/Makefile.in: two runs of makeindex seem needed to get
4013         correct page references in the index of sdccman.pdf
4014         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
4015
4016 2006-06-17 Borut Razem <borut.razem AT siol.net>
4017
4018         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
4019
4020 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4021
4022         * doc/sdccman.lyx: updated, added (porting source code, debugging),
4023         mentioned ec2drv and paulmon
4024
4025 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
4026
4027         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
4028           consecutive abs areas
4029           (find_empty_space, allocate_space): added map to handle codemap or
4030            xdatamap,
4031           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
4032            absolute idata and xdata
4033         * as/mcs51/lkmem.c (summary2): updated legend
4034
4035 2006-06-16 Raphael Neider <rneider AT web.de>
4036
4037         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
4038
4039 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
4040
4041         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
4042           1208515
4043         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
4044
4045 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
4046
4047         * src/port.h (struct PORT): added field gp_tags, to hold the tag
4048         value of generic pointers,
4049         * src/avr/main.c,
4050           src/ds390/main.c,
4051           src/hc08/main.c,
4052           src/izt/i186.c,
4053           src/izt/tlcs900h.c,
4054           src/mcs51/main.c,
4055           src/pic/main.c,
4056           src/pic16/main.c,
4057           src/xa51/main.c,
4058           src/z80/main.c: PORT structure, added elements for gp_tags field,
4059         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
4060         fields in the PORT structure of each port,
4061         * src/SDCCast.c (decorateType): allow processing of generic pointers
4062         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
4063         S_FIXED symbols
4064
4065 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
4066
4067         * link/z80/lkgb.c,
4068         * link/z80/lkgg.c,
4069         * src/pic16/gen.c,
4070         * src/pic16/main.c,
4071         * src/pic16/pcode.c,
4072         * src/pic/main.c,
4073         * src/pic/pcoderegs.c,
4074         * src/SDCCicode.c,
4075         * src/SDCCmain.c,
4076         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
4077           bug 1504689 on minGW
4078
4079 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4080
4081         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
4082
4083 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
4084
4085         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
4086
4087 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
4088
4089         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
4090           for optimization
4091
4092 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
4093
4094         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
4095         to a char variable. Fixed bug #1504211
4096         * device/include/pic16/adc.h,
4097         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
4098         and fixed bug #1364390
4099
4100 2006-06-10 Borut Razem <borut.razem AT siol.net>
4101
4102         * CVSROOT: removed the CVS left-over
4103
4104 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
4105
4106         * as/hc08/asmain.c (asexit),
4107         * as/hc08/lkmain.c (lkexit),
4108         * as/mcs51/asmain.c (asexit),
4109         * as/mcs51/lkmain.c (lkexit),
4110         * src/SDCCglue.c (DEFSETFUNC),
4111         * src/SDCCmain.c (linkEdit, assemble),
4112         * support/librarian/sdcclib.c (AddRel),
4113           replaced unlink() by standard C remove()
4114         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
4115         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
4116           gatherImplicitVariables): new, added to fix bug 608752,
4117           (createFunction): added gatherImplicitVariables()
4118         * src/SDCCast.h: added createRMW prototype
4119         * src/SDCCsymt.h (struct symbol): added infertype
4120         * support/regression/tests/bug608752.c: new, added
4121
4122 2006-06-10 Raphael Neider <rneider AT web.de>
4123
4124         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
4125           multibyte dummy reads (fixes #1503234)
4126
4127 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
4128
4129         * device/include/mcs51/compiler.h: new, added header file to enable
4130           creating common sfr definition header files for different compilers
4131
4132 2006-06-05 Raphael Neider <rneider AT web.de>
4133
4134         * src/pic16/{pcode.h,genarith.c}:
4135           introduced pCodeOp combining any two pCodeOps (previously only
4136           two register operands could be combined), removed pcop2 from
4137           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
4138         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
4139         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
4140           rewritten to use new PO_TWO_OPS
4141         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
4142         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
4143           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
4144           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
4145           (pic16_get_op): embraced return arg to allow #define return(x),
4146             added new case for combined opcodes
4147           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
4148           (pic16_pCode2str,pic16_getRegFrompCodeOp,
4149            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
4150
4151 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
4152
4153         * src/SDCCval.c (checkConstantRange): added
4154         * src/SDCCval.h: added checkConstantRange
4155         * support/Util/SDCCerr.c,
4156         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
4157         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
4158         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
4159         * src/SDCCast.c (decorateType): added checkConstantRange,
4160         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
4161         can be emitted with the correct always true/false warning,
4162         added optimization for double '!';
4163         result of decorateType() must be assigned back to the tree, because
4164         decorateType() can change the tree
4165         * src/SDCCicode.c (geniCodeLogic),
4166         (geniCodeAssign): replaced new checkConstantRange, added warnings,
4167         (checkConstantRange): removed, it was only a fragment which never
4168         emitted a warning
4169         * src/SDCCsymt.c (computeType): fixed promotion for
4170         "-1 < (unsigned bit) b"
4171         * src/pic/ralloc.c (packRegsForAssign),
4172         * src/pic16/ralloc.c (packRegsForAssign),
4173         * src/hc08/ralloc.c (packRegsForAssign),
4174         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
4175         from mcs51
4176         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
4177         * support/regression/tests/constantRange.c: added
4178         * support/valdiag/tests/constantRange.c: added
4179         * support/valdiag/valdiag.py: added -DPORT_HOST=1
4180
4181 2006-06-02 Borut Razem <borut.razem AT siol.net>
4182
4183         * support/regression/ports/pic16/support.c: increase stack size
4184           to 255 bytes
4185         * support/regression/Makefile.in: sort tests by name so that the
4186           resutlts can be compared on different machines / platforms
4187
4188 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
4189
4190         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
4191         * src/ds390/gen.c (emitLabel): new, added,
4192           (genDjnz): fixed stack overflow bug,
4193           (throughout): cosmetic changes to sync with mcs51/gen.c,
4194           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
4195         * src/mcs51/gen.c (genEndFunction): small optimization,
4196           (throughout): cosmetic changes to sync with ds390/gen.c
4197
4198 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
4199
4200         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
4201           (_print_format): fixed printing pointers
4202         * src/mcs51/gen.c (emitLabel, movb): new, added,
4203           (genAssign): small optimization,
4204           (genDjnz): fixed stack overflow bug,
4205           (throughout): replaced sprintf with SNPRINTF,
4206           replaced mcs51_regWithIdx with REG_WITH_INDEX,
4207           replaced emitcode("mov", "b,...") with MOVB(...),
4208           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
4209           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
4210         * src/mcs51/peeph.def: added rules 140 and 264
4211         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
4212           so they may get optimized into registers
4213
4214 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
4215
4216         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
4217           immediately when encountered,
4218           (printUsage): always use stderr even on windows
4219
4220 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
4221
4222         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
4223         (processParms): fixed bug #1247551
4224         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
4225         parseCmdLine, main): print '--version' to stdout,
4226         print 'help' to stdout if --help is given,
4227         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
4228         arguments are given; fixed --help
4229
4230 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
4231
4232         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
4233         * support/regression/tests/bug-1493710.c: added
4234
4235 2006-05-27 Borut Razem <borut.razem AT siol.net>
4236
4237         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
4238           static instead auto
4239         * support/regression/ports/pic16/support.c: increase stack size
4240           from default 64 bytes to 128 bytes
4241         * support/regression/tests/staticinit.c,
4242           support/regression/tests/float.c: regression tests fully enabled
4243           for pic16 port by putting the initialized data arrays into the code
4244           section
4245         * support/regression/ports/pic16/spec.mk: don't link default libraries.
4246           This was changed by mistake in the previous version.
4247
4248 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
4249
4250         * src/pic16/gen.c (genFunction, genEndFunction): some
4251         beautifications, fixed bug with falsely restoring FSR2 in large
4252         stack model, thanks to Beau E. Cox for reporting the bug
4253
4254 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
4255
4256         * debugger/mcs51/break.c,
4257         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
4258           use %p to print pointers, made address variables unsigned
4259         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
4260         * debugger/mcs51/symtab.c (parseSymbol): must return something
4261         * src/mcs51/gen.c (aopForSym): small optimization,
4262            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
4263           (freeAsmop): added missing break,
4264           (aopPut): removed parameter bvolatile, determine it inside the function,
4265           (saveRegisters, unsaveRegisters): small optimization,
4266           (genIpush): removed pointless check,
4267           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
4268           replaced sprintf with SNPRINTF,
4269           replaced strcpy with strncpyz,
4270           updated aopPut calls,
4271           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
4272         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
4273
4274 2006-05-24 Borut Razem <borut.razem AT siol.net>
4275
4276         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
4277           modification of test for the pic16 port, put the array to the code
4278           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
4279
4280 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4281
4282         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
4283         * support/Util/pstdint.h: added
4284
4285 2006-05-22 Borut Razem <borut.razem AT siol.net>
4286
4287         * src/regression/Makefile: removed bool2.c test, added -q linker option
4288         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
4289           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
4290           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
4291           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
4292           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
4293           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
4294           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
4295           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
4296           define SUPPORT_BIT_TYPES 0, removed unused bit variables
4297
4298 2006-05-22 Raphael Neider <rneider AT web.de>
4299
4300         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
4301           bug #1492360 (problematic due to generic pointers, see code)
4302
4303 2006-05-22 Borut Razem <borut.razem AT siol.net>
4304
4305         * support/regression/ports/pic16/specs.mk: removed stack size linker
4306           directive
4307         * support/regression/tests/array.c,
4308           support/regression/tests/bitopcse.c,
4309           support/regression/tests/bug-908454.c,
4310           support/regression/tests/malloc.c: modified for pic16 regression test
4311         * support/regression/tests/bitfields.c:
4312           pic16 - excluded bitfileds of size > 8
4313         * support/regression/tests/bp.c: pic16 - reduced data size
4314         * support/regression/tests/bug-221100.c: pic16 - reduced data size
4315         * support/regression/tests/bug-460010.c:
4316           pic16 - used the absolute address the fits in memory
4317         * support/regression/tests/bug-716242.c:
4318           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
4319         * support/regression/tests/float.c:
4320           pic16 - excluded - data size too big
4321         * support/regression/tests/onebyte.c:
4322           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
4323         * support/regression/tests/shifts.c:
4324           pic16 - function names probably have to differ in first X characters
4325           (gpasm limitation?)
4326         * support/regression/tests/staticinit.c:
4327           pic16 - excluded some tests due error: no target memory available for
4328           section ".idata"
4329
4330 2006-05-22 Borut Razem <borut.razem AT siol.net>
4331
4332         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
4333           second try. Thanks Stas Sergeev once more.
4334
4335 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
4336
4337         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
4338           (genLeftShift, genRightShift): fixed bug 1491627
4339         * src/hc08/peeph.def (rules 7, 8.x): added
4340         * support/regression/tests/shifts.c (ShiftLeftByParam,
4341           ShiftRightByParam, testShiftByParam): added to test variable shifting
4342
4343 2006-05-20 Raphael Neider <rneider AT web.de>
4344
4345         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
4346         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
4347           (allocReg): add only new registers to dynAllocRegs,
4348           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
4349             #1489055, #1445850, and probably #1483693
4350
4351 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
4352
4353         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
4354         bug in for-loop that didn't emit the last of CONFIG and ID registers
4355
4356 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
4357
4358         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
4359           with offset
4360         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
4361           1489016, 1434401 and 1490124
4362         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
4363           1489016, 1434401 and 1490124
4364
4365 2006-05-17 Borut Razem <borut.razem AT siol.net>
4366
4367         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
4368           thanks Stas Sergeev
4369
4370 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
4371
4372         * device/include/mcs51/P89c51RD2.h,
4373         * device/include/mcs51/P89LPC901.h,
4374         * device/include/mcs51/P89LPC922.h,
4375         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
4376
4377 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
4378
4379         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
4380         to fix missing stack pragma in compiled binary object file,
4381
4382 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
4383
4384         * support/packihx/configure.in,
4385         * support/packihx/configure: removed warning, autoconf >= 2.5x can
4386         determine sizeof basic types even while cross compiling
4387
4388 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
4389
4390         * src/avr/gen.c (aopop),
4391         * src/ds390/gen.c (aopOp),
4392         * src/hc08/gen.c (aopOp),
4393         * src/mcs51/gen.c (aopop),
4394         * src/pic16/gen.c (pic16_aopOp),
4395         * src/pic/gen.c (aopOp),
4396         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
4397         if size of operand is smaller than spill location
4398
4399 2006-05-12 Borut Razem <borut.razem AT siol.net>
4400
4401         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
4402           have to have CR/LF line endings even if they are checked out on *nix
4403           or on WIN32 in cygwin binmode
4404
4405 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
4406
4407         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
4408         * device/include/ds80c390.h: added sfr16 definitions
4409         * src/ds390/gen.c,
4410         * src/ds390/gen.h,
4411         * src/ds390/main.c,
4412         * src/ds390/ralloc.c,
4413         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
4414           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
4415           bit returning functions
4416         * support/regression/tests/sfr16.c: enabled test on ds390
4417
4418 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4419
4420         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
4421         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
4422
4423 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
4424
4425         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
4426         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
4427           (cl_address_space constructor): removed expensive initialization,
4428           (cl_address_space::get_cell): extended for late initialization,
4429           (cl_address_space::*): use late initialization,
4430           (cl_address_decoder::activate): removed expensive initialization,
4431           This reduced regression test running time by 25%
4432
4433 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
4434
4435         * packihx/,
4436         * configure.in,
4437         * configure,
4438         * sdcc.dsw,
4439         * Makefile.bcc,
4440         * Makefile.in,
4441         * support/packihx/Makefile.in,
4442         * support/packihx/clean.mk,
4443         * support/packihx/Makefile.bcc,
4444         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
4445
4446 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4447
4448         * src/SDCCval.c (valNot): fix for regression test failure
4449           of not.c on big endian hosts
4450
4451 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
4452
4453         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
4454
4455 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4456
4457         * device/lib/mcs51/Makefile.in: changed string comparison operator
4458           to = for POSIX compliance; == is bash extension
4459
4460 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
4461
4462         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
4463           kosmonaut_pirx
4464
4465 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
4466
4467         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
4468         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
4469         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
4470         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
4471         bug report #1478657,
4472
4473 2006-05-05 Borut Razem <borut.razem AT siol.net>
4474
4475         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
4476           making the html
4477
4478 2006-05-02 Borut Razem <borut.razem AT siol.net>
4479
4480         * doc/Makefile.in: removed *.ind dependency since there is no rule to
4481           create *.ind, which made make to fail if invoked with -j 2
4482
4483 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
4484
4485         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
4486           Hubert Sack for patch 1479782
4487
4488 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
4489
4490         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
4491
4492 2006-05-01 Raphael Neider <rneider AT web.de>
4493
4494         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
4495           (create_pic): store only prefix-free device name,
4496           (init_pic): check for device names with "16" prefix,
4497           (list_valid_pics),
4498         * src/pic/device.h (struct PIC_device),
4499         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
4500             stored device name,
4501         * device/include/pic/pic12f{635,675,629,683}.h,
4502         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
4503         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
4504         * device/include/pic/pic16f505.h,
4505         * device/lib/pic/libdev/pic16f505.c: removed
4506         * device/include/pic/pic14devices.txt: added support for pic12f
4507             devices, removed unsupported non 16-bit devices
4508             [above changes provided by patch from Zik Saleeba]
4509         * src/pic/*, src/pic16/*, device/include/pic16/*,
4510           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
4511
4512 2006-05-01 Borut Razem <borut.razem AT siol.net>
4513
4514         * configure.in, configure, doc/Makefile.in:
4515           sync with nightly build makefile - latex, dvipdf and dvips
4516           not needed any more
4517
4518 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
4519
4520         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
4521         in the library source
4522
4523 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
4524
4525         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
4526
4527 2006-04-28 Raphael Neider <rneider AT web.de>
4528
4529         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
4530         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
4531           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
4532         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
4533
4534 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
4535
4536         * device/lib/pic/libdev/Makefile.in,
4537         * device/lib/hc08/Makefile.in,
4538         * device/lib/gbz80/Makefile.in,
4539         * device/lib/z80/Makefile.in,
4540         * device/lib/ds390/Makefile.in,
4541         * device/lib/ds400/Makefile.in: added srcdir to include search path,
4542         thanks to Borut for the bug report
4543         * configure.in,
4544         * configure: always create doc/Makefile independent from --enable-doc
4545         * Makefile.in: always install from directory doc independent from
4546         --enable-doc
4547         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
4548         removed
4549         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
4550         * doc/Makefile.in: install *.txt if present
4551         * device/include/Makefile.in (install): added installation of pic/*.inc
4552         and pic/*.txt files again, they were erroneously removed
4553
4554 2006-04-28 Raphael Neider <rneider AT web.de>
4555
4556         * src/pic/{gen.c,main.h,pcode.c},
4557         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
4558             concerning signedness with casts
4559
4560 2006-04-28 Raphael Neider <rneider AT web.de>
4561
4562         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
4563             definition of an interrupt handler,
4564         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
4565             interrupt handler stuff from picglue() to separate routine,
4566           (picglue): enabled definition of intr handlers in files w/o main()
4567
4568 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
4569
4570         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
4571           compilation with MSVC 2005 Express Edition (VC8)
4572
4573 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
4574
4575         * device/lib/Makefile: fixed build of gbz80 lib
4576
4577 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
4578
4579         * support/regression/tests/bug-460010.c,
4580         * support/regression/tests/bug-524691.c,
4581         * support/regression/tests/bug-716242.c: removed conditional defines
4582           that are already in testfwk.h
4583
4584 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
4585
4586         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
4587           (AccAXRsh1): added, shift right by 1,
4588           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
4589            AccAXLrl1
4590         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
4591
4592 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
4593
4594         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
4595         remove cast to same type
4596         * src/SDCCast.c (decorateType): fix for RFE 1475742,
4597         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
4598         * as/z80/Makefile,
4599         * link/z80/Makefile: removed, they have moved to
4600         Makefile.in files
4601         * configure,
4602         * configure.in: replaced duplicate message about ucsim by missing sdcpp
4603         * install-sh: fix bug #1204398 by setting umask 0022
4604         * device/lib/Makefile: separate build of z80 and gbz80 lib
4605
4606 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
4607
4608         Enabled VPATH feature: changed nearly all Makefiles (149 files).
4609         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
4610
4611         One basic decision: e.g. src/clean.mk includes further files. In order
4612         to make this work there are two solutions:
4613         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
4614           run configure on them. This way they can use
4615           'include $(srcdir)/port-clean.mk'
4616         - always include clean.mk by the Makefile at the same level. To avoid
4617           that `make clean` tries to include and build Makefile.dep the
4618           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
4619           implemented, because now even `make uninstall` doesn't create
4620           Makefile.in. clean.mk could be eliminated by pasting it in
4621           Makefile.in.
4622
4623         * debugger/mcs51/Makefile.in: build own objects from library sources
4624         (SLIB, SDCC) in current directory
4625
4626         * configure, configure.in: renamed --disable-device-lib-build in
4627         --disable-device-lib; added --enable-doc, the required tools are
4628         searched by configure; added result message; the toolchain for the
4629         belonging ports are now only built, if the port is enabled.
4630
4631         * support/regression/*: all output is written in directory gen, because
4632         the fwk and ports directories don't livet in the build tree using vpath
4633
4634         * doc/sdccman.lyx: renamed --disable-device-lib-build to
4635         --disable-device-lib, added --enable-doc, added section VPATH
4636
4637         * sim/ucsim/configure.in,
4638         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
4639         z80 are enabled by default
4640
4641 2006-04-24 Raphael Neider <rneider AT web.de>
4642
4643         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
4644             to config word, "pic14_"-prefixed some extern functions
4645           (pic14_emitConfigWord): emit __config directive(s) if assignment to
4646             config word has been found
4647         * src/pic/device.h: added prototypes
4648         * src/pic/pcode.c: added "pic14_"-prefix where needed
4649         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
4650             fixup
4651         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
4652             words,
4653           (pic14emitRegularMap): ignore config words,
4654           (pic14createInterruptVect): moved generating __config directives away
4655           (picglue): have __config directives emitted
4656
4657 2006-04-24 Borut Razem <borut.razem AT siol.net>
4658
4659         * doc/Makefile: sync with nightly build makefile
4660
4661 2006-04-24 Raphael Neider <rneider AT web.de>
4662
4663         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
4664             registers that have not been assigned proper liveranges,
4665             fixes #1469504 and #1474602,
4666           (pCodeRegOptimizeRegUsage): fixed typo in comment
4667
4668 2006-04-24 Borut Razem <borut.razem AT siol.net>
4669
4670         * device/examples/main8051.c: deleted - it was removed from CVS
4671           24.mar.2000 and after that modified 18.feb.2001, so it reappered
4672           after the transition to Subversion
4673         * src/SDCCalloc.h: deleted - it was removed  from CVS
4674           3.feb.2001 and after that modified 18.feb.2001, so it reappered
4675           after the transition to Subversion
4676         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
4677           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
4678           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
4679           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
4680
4681 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
4682
4683         * as/asx8051.dsp: added mcs51/strcmpi.h
4684         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
4685         * as/hc08/aslink.h: updated lnksect prototype
4686         * as/hc08/asm.h,
4687         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
4688         * as/hc08/asmain.c,
4689         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
4690           (newdot): handle A_ABS
4691         * as/hc08/asout.c,
4692         * as/mcs51/asout.c (outarea): output address
4693         * as/hc08/lkaomf51.c,
4694         * as/mcs51/lkaomf51.c: disabled unused array UsageType
4695         * as/hc08/m08pst.c,
4696         * as/mcs51/i51pst.c,
4697         * as/z80/z80pst.c: "ABS" is not A_OVR
4698         * as/hc08/lkarea.c (newarea): read a_addr,
4699           (lnkarea): added codemap array, sort absolute areas to the front,
4700            combine all GSINITx/GSFINAL,
4701           (find_empty_space, allocate_space): new functions,
4702           (lnksect): return next address, handle absolute sections
4703         * as/mcs51/lkarea.c (newarea): read a_addr,
4704           lnksect2 prototype changed,
4705           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
4706           (find_empty_space, allocate_space): new, factored out of lnksect2,
4707           (lnksect2): return next address, handle absolute sections
4708         * as/hc08/lkhead.c,
4709         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
4710         * as/hc08/lklibr.c (addfile, fndsym),
4711         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
4712           index out of range and detect both '\' and '/'
4713         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
4714         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
4715           regression tests (ds390 cannot return bool yet)
4716         * doc/sdccman.lyx: changed version number, document changed --no-peep,
4717           document critical interrupts on z80, document changed SDCC define
4718         * src/asm.c (_asxxxx_mapping): fixed .org directive,
4719           (_a390_mapping): added .org directive
4720         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
4721           (genMultOneByte): fixed warnings
4722         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
4723           ones
4724         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
4725         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
4726           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
4727         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
4728         * src/pic16/main.c: removed newReg prototype
4729         * src/pic16/pcode.c,
4730         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
4731           warnings
4732         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
4733           ones
4734         * src/pic16/ralloc.c
4735         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
4736           to fix warnings
4737         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
4738           from short to PIC_OPTYPE
4739         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
4740         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
4741           optype from short to PIC_OPTYPE
4742         * src/port.h: made int_size unsigned to fix warnings
4743         * src/SDCC.y: fixed warning on MSVC
4744         * src/SDCCicode.c (getArraySizePtr): return unsigned int
4745         * src/SDCCopt.c (convertToFcall): fixed warnings
4746         * src/SDCCsymt.h: removed double prototype for genSymName
4747         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
4748           offset int to fix warnings
4749
4750 2006-04-22 Borut Razem <borut.razem AT siol.net>
4751
4752         * doc/sdccman.lyx, */Makefile, */Makefile.in:
4753           references to CVS replaced with Subversion
4754
4755 2006-04-21 Borut Razem <borut.razem AT siol.net>
4756
4757         * doc/sdccman.lyx, */Makefile, */Makefile.in:
4758           references to CVS replaced with Subversion
4759
4760 2006-04-19 Borut Razem <borut.razem AT siol.net>
4761
4762         * src/version.awk: adapted for svn
4763         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
4764           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
4765           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
4766           /binutils-avr/etc/*.vi, *.jin: removed all properties
4767           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
4768
4769 2006-04-19 Borut Razem <borut.razem AT siol.net>
4770
4771         * CVS to Subversion migration completed
4772
4773 2006-04-18 Borut Razem <borut.razem AT siol.net>
4774
4775         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
4776           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
4777
4778 2006-04-17 Borut Razem <borut.razem AT siol.net>
4779
4780         * device/include/Makefile.in: added pic/*.inc to the installation
4781
4782 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
4783
4784         * support/regression/collate-results.py: fixed output in case of
4785         a valdiag error
4786         * support/regression/generate-cases.py: fixed splitting of pathnames
4787         with dots
4788         * as/hc08/lklibr.c (addfile),
4789         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
4790
4791 2006-04-11 Raphael Neider <rneider AT web.de>
4792
4793         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
4794         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
4795         * src/pic16/pcode.c (assignValnums): fixed #1460578
4796
4797 2006-04-11 Raphael Neider <rneider AT web.de>
4798
4799         * device/lib/pic/libdev/*.c,
4800         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
4801           fixes #1468739, enables compilation in --std-c99 mode
4802         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
4803
4804 2006-04-11 Raphael Neider <rneider AT web.de>
4805
4806         * src/pic/device.c (find_device): removed debug output
4807           (list_valid_pics): enabled verbose listing of supported devices
4808         * device/include/stdbool.h: define bool as char for pic14/16 as well
4809
4810 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4811
4812         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
4813
4814 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
4815
4816         * .version: bumped version to 2.5.6
4817         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
4818
4819 2006-04-06 Raphael Neider <rneider AT web.de>
4820
4821         * .version: bumped version to 2.5.6 (pic14 ABI changed)
4822         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
4823         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
4824           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
4825             pic14_constructAbsMap
4826           (pic14printPublics): declare absolute global symbols as global
4827           (pic14createInterruptVect),
4828         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
4829           (newReg): assume new registers unused, use correct name in
4830             hashtable (reg->name instead of name), more debugLog output
4831         * src/pic/device.h (PIC_device): added fields for verbose output
4832         * src/pic/device.c: moved device definition to pic14devices.txt,
4833             added routines for runtime parsing of pic14devices.txt,
4834             added support for second config word
4835         * src/pic/main.c (_process_pragma): removed #pragma maxram,
4836           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
4837           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
4838           (_pic14_parseOptions): moved pCodeInitRegisters here
4839           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
4840         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
4841           (pCodeInitRegisters): rewrapped comments, perpared new approach to
4842             handling the pseudo stack
4843         * device/lib/Makefile.in: ignore failures in objects-pic16,
4844         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
4845         * device/lib/pic/NEWS: document new dependency on picXXX.lib
4846         * device/lib/pic/Makefile.subdir,
4847         * device/lib/pic16/Makefile.subdir: improved clean rules
4848         * device/lib/pic/libdev/: NEW, pic14 device libraries
4849         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
4850         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
4851         * device/include/Makefile.in: create subdir and install pic14 headers
4852         * device/include/pic/p16f_common.inc: removed unused declarations
4853         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
4854             PICs from inc2h.pl v1.6,
4855             replaced BIT_AT macros with struct declarations
4856         * device/include/pic/pic14devices.txt: definition of supported devices,
4857             all above improvements contributed by Zik Saleeba, thanks
4858         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
4859         * support/scripts/sdcc.nsi: also install pic14 device libraries and
4860             headers
4861
4862 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
4863
4864         * device/include/mcs51/c8051f410.h: added interrupt numbers,
4865         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
4866           thanks to Charles Olds
4867
4868 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4869
4870         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
4871
4872 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
4873
4874         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
4875         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
4876         * support/regression/bug1464657.c: added, new test
4877
4878 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
4879
4880         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
4881           version number
4882
4883 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
4884
4885         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
4886           --no-peep and --peep-file <file> are used don't use default rules but
4887           do use the <file>
4888
4889 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
4890
4891         * src/mcs51/gen.c (genCall): fixed bug 1457608
4892
4893 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4894
4895         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
4896         changes seem to cause (trigger?) problems with the build system.
4897
4898 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
4899
4900         * src/SDCCpeeph.c (operandsLiteral): new, added,
4901           (callFuncByName): inserted operandsLiteral
4902         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
4903
4904 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4905
4906         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
4907         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
4908
4909 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
4910
4911         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
4912           implemented patch 1120823 Thanks to Willy De la Court (normal
4913           interrupts need an interrupt number now if they are made critical),
4914           and enabled nesting of critical functions though not for gbz80
4915           (genCritical, genEndCritical): added functions
4916           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
4917         * src/z80/mappings.i: added "ei" to all mappings
4918
4919 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4920
4921         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
4922         submitted by the Debian SDCC maintainer Aurelien Jarno:
4923         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
4924         archive with gcc 4.1 on mips and wrote the patch"
4925
4926 2006-03-16 Raphael Neider <rneider AT web.de>
4927
4928         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
4929           the left operand is shorter than the result (c* = lit-c* + int),
4930           fixes bug #1450796
4931         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
4932           OP_SYMBOL
4933
4934 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
4935
4936         * src/.version: increased version number to 2.5.5
4937         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
4938         linking is done manually in pic16 port's _linkEdit,
4939         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
4940         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
4941         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
4942         allocate asmop as AOP_ACC,
4943         (aopForRemat): added parameter 'bool result' in function declaration,
4944         (pic16_aopGet): return AOP_ACC when accessing WREG,
4945         (pic16_popGetTempReg): minor modification,
4946         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
4947         'pic16_allocWithIdx',
4948         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
4949         calling function in absolute addresses,
4950         (genAssign): take into account AOP_ACC asmop,
4951         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
4952         * src/pic16/pcoderegs.c: some debug functions and lines added,
4953         * src/pic16/ralloc.c (decodeRegType): added but commented out,
4954         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
4955         register too,
4956         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
4957         call to allocReg, not by manually allocating a new one,
4958         (pic16_assignRegisters): now before going through the register
4959         allocating functions mark all registers as free. This eliminates some
4960         side effects resulting from peephole parser done earlier in the backbone
4961
4962 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
4963
4964         * src/SDCCicode.c (geniCodeLogic),
4965         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
4966
4967 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
4968
4969         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
4970           (genSend): bugfix, do not allocate and free twice,
4971           (shiftRLong): handle partially overlapping aops
4972         * support/regression/tests/bitopcse.c: fixed warning redefined idata
4973
4974 2006-03-08 Borut Razem <borut.razem AT siol.net>
4975
4976         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
4977           for pic16
4978
4979 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
4980
4981         * support/regression/tests/bug1409955.c: new, added
4982         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
4983         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
4984           (aopForSym, aopOp): increment asmop.allocated if reused,
4985           (freeAsmop): decrement asmop.allocated and check for zero instead of
4986           using asmop.freed,
4987           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
4988           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
4989            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
4990            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
4991            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
4992            genSignedRightShift, genRightShift, genDataPointerGet,
4993            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
4994            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
4995             in reverse order from allocation,
4996           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
4997             added swappedLR to keep track
4998         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
4999           pdata & code for GCC, z80, gbz80 & hc08
5000         * support/regression/tests/zeropad.c: moved defines to testfwk.h
5001
5002 2006-03-08 Raphael Neider <rneider AT web.de>
5003
5004         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
5005
5006 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
5007
5008         * device/include/mcs51/c8051f410.h: new SiLabs mcu
5009         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
5010         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
5011
5012 2006-03-06 Borut Razem <borut.razem AT siol.net>
5013
5014         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
5015           made the linker quiet
5016
5017 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
5018
5019         * src/pic16/gen.c (genPcall): fixed bug #1443644
5020         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
5021         which dumps before the function entry point a data byte which represents
5022         the number of the local variables used by the specified function, added
5023         'xinst' for initial support for Extended Instruction Support,
5024         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
5025         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
5026         port->fun_prefix anymore (may change later),
5027         (genFunction, genEndFunction): do not store/restore local registers for
5028         _main (this should take care the --main-return command line option in
5029         the future),
5030         (genOr): removed some legacy pic-port instructions,
5031         * src/pic16/genarith.c (genAddLit): re-enabled old code because
5032         performing operations with SFR's causes data to be written more than
5033         once to each SFR. Perhaps SFRs should be handled in special cases...
5034         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
5035         pcode.h
5036         * src/pic16/main.c (_process_pragma): stack bound checking did not take
5037         into account for stack starting position,
5038         (struct OPTIONS pic16_optionsTable): added command line argument
5039         --extended or -y for Extended Instruction Support,
5040         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
5041         (deassignLRs): *** perhaps the most important change, old 'for' code
5042         (commented out for reference), didn't account for some registers which
5043         were left marked 'not free' after a pointer operation. The change
5044         reduces register usage a lot in some cases
5045
5046 2006-03-04 Borut Razem <borut.razem AT siol.net>
5047
5048         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
5049           _clean
5050         * support/regression/tests/bug-524697.c: decreased array size for
5051           mcs51 to fit into the internal RAM
5052         * support/regression/Makefile.in: a little bit more verbose
5053
5054 2006-03-03 Borut Razem <borut.razem AT siol.net>
5055
5056         * support/regression/fwk/lib/testfwk.c,
5057           support/regression/fwk/include/testfwk.h: introduced function
5058           _prints(), nonrecursive _printn(), call _initEmu() from main()
5059         * support/regression/ports/gbz80/support.asm,
5060           support/regression/ports/ucz80/support.asm,
5061           support/regression/ports/z80/support.asm,
5062           support/regression/ports/ds390/support.c,
5063           support/regression/ports/hc08/support.c,
5064           support/regression/ports/host/support.c,
5065           support/regression/ports/mcs51/support.c,
5066           support/regression/ports/xa51/support.c: added empty _initEmu()
5067           function
5068         * support/regression/ports/pic16/gpsim.cmd,
5069           support/regression/ports/pic16/spec.mk,
5070           support/regression/ports/pic16/support.c,
5071           support/regression/Makefile.in: added pic16 regression test
5072
5073 2006-03-01 Raphael Neider <rneider AT web.de>
5074
5075         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
5076           genConstPointerGet): use safe way of generating MOVFF to cover
5077             literals as well as registers, fixes bug #1440527
5078         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
5079             dereference
5080           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
5081             more correctly, fixes bug #1232186
5082           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
5083         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
5084             gplink guess the correct processor in more cases, applied patch
5085             from Till Riedel attached to and fixing bug #1436552
5086
5087 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5088
5089         * support/regression/tests/array.c: added, contains check for #1434401
5090         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
5091
5092 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
5093
5094         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
5095         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
5096         * device/include/mcs51/c8051f326.h,
5097         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
5098         * device/include/mcs51/c8051f000.h,
5099         * device/include/mcs51/c8051f018.h,
5100         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
5101           PCON_IDLE,PCON_STOP and added sfr16 definitions
5102
5103 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
5104
5105         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
5106           genGetWord): fixed bug 1409955
5107
5108 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
5109
5110         * device/include/hc08/mc68hc908gp32.h,
5111         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
5112
5113 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
5114
5115         * src/SDCCast.c (constExprValue): return NULL if not a value
5116         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
5117         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
5118         * support/regression/tests/bitfields.c: enabled signed bitfield for all
5119
5120 2006-02-13 Borut Razem <borut.razem AT siol.net>
5121
5122         * src/regression/ptrarg.c: added, fails due to bug #1430967
5123         * src/regression/Makefile: ptrarg.c added, ...
5124
5125 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
5126
5127         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
5128         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
5129
5130 2006-02-11 Borut Razem <borut.razem AT siol.net>
5131
5132         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
5133           print "Processor: xxx" message to stdout only if --verbose
5134
5135 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
5136
5137         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
5138         * support/regression/tests/bug1426356.c: added
5139         * support/regression/tests/bitfields.c: removed 2 tests
5140
5141 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
5142
5143         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
5144         * device/include/mcs51/c8051f330.h,
5145         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
5146           PCON_IDLE,PCON_STOP and added sfr16 definitions
5147         * device/lib/_divsint.c,
5148         * device/lib/_divuint.c,
5149         * device/lib/_divulong.c,
5150         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
5151           register bank bug for small stackauto
5152
5153 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
5154
5155         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
5156
5157 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
5158
5159         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
5160         * all.dsp: corrected several bin paths
5161         * device/include/mcs51/c8051f120.h,
5162         * device/include/mcs51/c8051f300.h,
5163         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
5164           to PCON_IDLE,PCON_STOP
5165         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
5166         * device/lib/printf_large.c (output_float): fixed bug 1388703
5167         * support/regression/tests/bug1057979.c: added test for bug 1388703
5168
5169 2006-02-08 Raphael Neider <rneider AT web.de>
5170
5171         * src/pic/pcode.c (pciTRIS): fixed typo,
5172           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
5173           (LinkFlow): fixed handling of flows that end in a call,
5174           (ReuseReg): perform safety check earlier
5175         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
5176             to work with flows at the beginning of a pBlock,
5177             fixes #1426557 (Symbol not previously defined),
5178           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
5179             usage information
5180           (RemoveUnusedRegisters): update register usage info
5181         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
5182             created, reuse existing ones instead
5183         * src/pic/gen.c (genPcall): fixed #1424719
5184
5185 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
5186
5187         * link/z80/lkmain.c,
5188         * link/z80/lklex.c,
5189         * link/z80/lkdata.c,
5190         * link/z80/aslink.h: fixed build on current cygwin:
5191         replaced getline() by lk_getline()
5192
5193 2006-02-01 Borut Razem <borut.razem AT siol.net>
5194
5195         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
5196           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
5197           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
5198           src/regression/bool1.c, src/regression/bool2.c,
5199           src/regression/bool3.c, src/regression/call1.c,
5200           src/regression/compare.c, src/regression/compare10.c,
5201           src/regression/compare2.c, src/regression/compare3.c,
5202           src/regression/compare4.c, src/regression/compare5.c,
5203           src/regression/compare6.c, src/regression/compare7.c,
5204           src/regression/compare8.c, src/regression/compare9.c,
5205           src/regression/configword.c, src/regression/for.c,
5206           src/regression/inline.c, src/regression/mult1.c,
5207           src/regression/nestfor.c, src/regression/or1.c,
5208           src/regression/pointer1.c, src/regression/ptrfunc.c,
5209           src/regression/rotate1.c, src/regression/rotate2.c,
5210           src/regression/rotate3.c, src/regression/rotate4.c,
5211           src/regression/rotate5.c, src/regression/rotate6.c,
5212           src/regression/rotate7.c, src/regression/string1.c,
5213           src/regression/struct1.c, src/regression/sub.c,
5214           src/regression/sub2.c, src/regression/switch1.c,
5215           src/regression/while.c, src/regression/xor.c,
5216           src/regression/create_stc, src/regression/simulate,
5217           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
5218           regression tests
5219         * src/regression/gpsim_assert.h: added
5220
5221 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
5222
5223         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
5224         ((void (code *) (void)) 0) ();
5225         * as/hc08/aslex.c,
5226         * as/hc08/aslink.h,
5227         * as/hc08/asm.h,
5228         * as/hc08/asmain.c,
5229         * as/hc08/lkdata.c,
5230         * as/hc08/lklex.c,
5231         * as/hc08/lkmain.c,
5232         * as/mcs51/aslex.c,
5233         * as/mcs51/aslink.h,
5234         * as/mcs51/asm.h,
5235         * as/mcs51/asmain.c,
5236         * as/mcs51/lkdata.c,
5237         * as/mcs51/lklex.c,
5238         * as/mcs51/lkmain.c,
5239         * as/z80/aslex.c,
5240         * as/z80/asm.h,
5241         * as/z80/asmain.c: fixed build on current cygwin:
5242         replaced getline() by as_getline()
5243
5244 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
5245
5246         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
5247         declarator in the symbol chain
5248         * src/SDCCsymt.h,
5249         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
5250         parameter list for function pointers
5251         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
5252         * support/regression/tests/bug-716242.c: added
5253
5254 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
5255
5256         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
5257         offset if possible
5258         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
5259
5260 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
5261
5262         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
5263         inifinitely recurseable, added static
5264         * support/regression/tests/bug-1408066.c: added
5265
5266 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
5267
5268         * src/SDCCicode.h,
5269         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
5270         renamed, added possibility to create "postLoopLbl"-labels
5271         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
5272         newiTempLoopHeaderLabel
5273         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
5274         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
5275         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
5276         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
5277         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
5278         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
5279         (basicInduction): fixed bug #136564, made static,
5280         (loopInduction): changed parameter of basicInduction, made static,
5281         (addPostLoopBlock): added
5282         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
5283         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
5284         findLoopEndSeq
5285         * support/regression/tests/bug-136564.c: added
5286         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
5287         --std-sdcc99 to LIBSDCCFLAGS
5288
5289 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
5290
5291         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
5292         while loop
5293         * support/regression/tests/bug-1406131.c: added
5294
5295 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
5296
5297         * src/SDCCast.c (decorateType): fix promotion of unary minus
5298         * src/SDCCsymt.c (computeType): beautified
5299         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
5300         (valUnaryPM, valComplement): fix sign and promotion,
5301         (valNot): ANSI: result type is int (SDCC: unsigned char)
5302         * support/regression/tests/uminus.c: speedup by removing superflous
5303         test case 'int'
5304         * support/regression/tests/onebyte.c: added promotion and signedness
5305         tests for unary minus
5306         * support/regressions/tests/bug-477927.c: disable warning about
5307         uninitialized variables
5308         * support/regression/tests/not.c: added
5309
5310 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
5311
5312         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
5313         * src/mcs51/gen.c (gen51Code): show final register usage after
5314         fillGaps in asm with --i-code-in-asm
5315         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
5316         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
5317         incUsed, rliveClear, adjustIChain): made static,
5318         (setFromRange): excluded because it's unused,
5319         (findPrevUseSym, markWholeLoop): added,
5320         (findPrevUse): rewritten; fixes bug 895992; now a complete search
5321         through all branches of predecessors enables sdcc to emit the warning
5322         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
5323         (rlivePoint): made static, added parameter emitWarnings which is only
5324         true during the first run out of two,
5325         (findRecursiveSucc, findRecursivePred): removed,
5326         (computeLiveRanges): made static, added parameter emitWarnings,
5327         (dumpIcRlive): added for debugging only
5328         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
5329         removed prototype of setFromRange()
5330         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
5331         in call of computeLiveRanges()
5332         * support/regression/tests/bug-895992.c: added
5333         * support/regression/tests/bug-971834.c: added
5334         * support/valdiag/tests/bug-895992.c: added
5335         * support/valdiag/tests/bug-971834.c: added
5336
5337 2005-12-18 Raphael Neider <rneider AT web.de>
5338
5339         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
5340           (genUnpackBits): improved code for direct operands,
5341           (genPackBits): improved code for literal assignment to bitfields
5342             and for direct destination operands (no FSR indirection),
5343             prevented redundant AND, fixes #1362800,
5344           (AccLsh): added parameter to disable masking of the result
5345         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
5346           skip instructions with side-effects (like incfsz),
5347           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
5348         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
5349         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
5350           fixes #1375263
5351
5352 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
5353
5354         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
5355         volatile variables as spill location
5356
5357 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
5358
5359         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
5360         replacing literals
5361         * support/regression/tests/bug-1376320.c: added
5362
5363 2005-12-08 Raphael Neider <rneider AT web.de>
5364
5365         * src/pic/device.c: renamed is_shared to pic14_is_shared
5366         * src/pic/gen.c (genIfx): re-enabled handling of sbits
5367         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
5368           (is_valid_identifier): added for above workaround
5369
5370 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
5371
5372         * device/lib/Makefile.in: fixed to enable port-specific-objects
5373         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
5374           char, thanks Hubert Sack
5375         * doc/sdccman.lyx: documented --xstack-loc,
5376           elaborated a bit more on interrupts and pitfalls,
5377           removed "setjmp/longjmp unsupported",
5378           documented some unsupported C99 features
5379         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
5380         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
5381           if, thanks Hubert Sack
5382         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
5383         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
5384           make make_library
5385         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
5386           regression tests can report resource usage (rfe 700441)
5387         * support/regression/collate-results.py: report resource usage
5388         * support/regression/ports/ds390/spec.mk,
5389         * support/regression/ports/hc08/spec.mk,
5390         * support/regression/ports/mcs51/spec.mk,
5391         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
5392         * support/regression/ports/ds390/uCsim.cmd,
5393         * support/regression/ports/hc08/uCsim.cmd,
5394         * support/regression/ports/mcs51/uCsim.cmd,
5395         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
5396         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
5397           library, use the default one
5398         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
5399           building the library
5400
5401 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
5402
5403         * config.dsp: added dependency on .version and configure_vc.awk
5404         * device/include/setjmp.h: updated for --stack-auto and --xstack
5405         * device/include/mcs51/at89c51snd1c.h: corrected line endings
5406         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
5407         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
5408         * device/lib/libsdcc.lib: added _setjmp
5409         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
5410           (decorateType): fixed bug 1372851,
5411           (optimizeGetHbit): fixed warning
5412         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
5413           array initialisation
5414         * support/regression/tests/bug1057979.c: added test for bug 1358192
5415         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
5416
5417 2005-12-03 Borut Razem <borut.razem AT siol.net>
5418
5419         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
5420           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
5421
5422 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
5423
5424         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
5425         createIval): implement symbol independant "flexible array member",
5426         (createIvalCharPtr): implemented flexible array initialisation with a
5427         string
5428         * src/SDCCsymt.c (copyStruct): removed,
5429         (getSize): fixed misleading comment,
5430         (getAllocSize): removed, the additional allocation size is now in
5431         sym->flexArrayLength,
5432         (checkStructFlexArray): new, syntax checks for flexible array members,
5433         (compStructSize): added syntax checks for "flexible array members"
5434         (copyStruct): removed,
5435         (copyLinkChain): removed inefficient fix for bug 770487
5436         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
5437         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
5438         symbol->flexArrayLength
5439         * src/SDCCerr.c,
5440         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
5441         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
5442         * support/regression/tests/structflexarray.c: added
5443         * support/valdiag/tests/structflexiblearray.c: added
5444
5445 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
5446
5447         * src/SDCCast.c (decorateType): fixed bug 1368489
5448         * support/Util/SDCCerr.c,
5449         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
5450
5451 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5452
5453         * device/include/mcs51/at89c51snd1c.h: added file submitted by
5454           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
5455
5456 2005-11-27 Borut Razem <borut.razem AT siol.net>
5457
5458         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
5459           support/cpp2/mkdeps.h: added command line option
5460           -obj-ext=<extension> to SDCPP to define object file externion, used
5461           for generation of make dependencies (-M)
5462         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
5463
5464 2005-11-26 Borut Razem <borut.razem AT siol.net>
5465
5466         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
5467           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
5468           added pic and pic16 libraries
5469
5470 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5471
5472         * device/include/float.h: Corrected typo in prototype of __fsgt
5473
5474 2005-11-25 Borut Razem <borut.razem AT siol.net>
5475
5476         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
5477           added creation of model-mcs51-stack-auto libraries
5478
5479 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
5480
5481         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
5482         and fields-list too
5483         * src/SDCCast.c (createIvalArray): removed obsolete comment
5484
5485 2005-11-24 Borut Razem <borut.razem AT siol.net>
5486
5487         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
5488           added missing device/lib/mcs51/crt*.asm sources
5489
5490 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
5491
5492         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
5493
5494 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
5495
5496         * device/lib/_fs2schar.c,
5497         * device/lib/_fs2sint.c,
5498         * device/lib/_fs2slong.c: optimized inline asm
5499
5500 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5501
5502         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
5503           Better handling of floats between -1.0 and 0.0.
5504
5505 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5506
5507         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
5508           (the missing "if"s prohibited removal of redundant labels)
5509
5510 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5511
5512         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
5513           Properly convert floats between -1.0 and 0.0 to long, int, and char
5514           types (max integer value of negative floats tends to zero).
5515         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
5516           Removed changes made so to work properly with floats between
5517           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
5518           and _fs2char.c
5519
5520 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
5521
5522         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
5523         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
5524         (genCast) cosmetic change
5525         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
5526         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
5527         from mcs51
5528         * support/regression/tests/bitfields (testSignedBitfields): added
5529
5530 2005-11-18 Borut Razem <borut.razem AT siol.net>
5531
5532         * sdcc/device/lib/Makefile.in: remove all unnecessary files
5533         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
5534           introduced SILENT option to make building of pic16 libraries less
5535
5536 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5537
5538         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
5539           Now they work properly with floats between -1.0 and 0.0
5540         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
5541
5542 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
5543
5544         * src/SDCCicode.c (printOperand): added missing else
5545
5546 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
5547
5548         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
5549         reformatted for better readability
5550         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
5551         signed bitfields
5552
5553 2005-11-17 Borut Razem <borut.razem AT siol.net>
5554
5555         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
5556           introduced SILENT option to make building of pic16 libraries less
5557           verbose - used for nightly snapshot build
5558         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
5559           available on Win32 platforms.
5560         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
5561           medium, large, pic and pic16
5562
5563 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5564
5565         * device/lib/printf_large.c: Temporary patch for bug 1358192:
5566           printf("%f"...) sets fraction to zero.
5567
5568 2005-11-16 Raphael Neider <rneider AT web.de>
5569
5570         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
5571           fixes #1357221
5572         * src/pic/gen.c (genIfx): implemented for CARRY bit
5573         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
5574           to generic pointers, fixes #1357332,
5575           (pic16_movLit2f): NEW,
5576           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
5577
5578 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
5579
5580         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
5581
5582 2005-11-11 Raphael Neider <rneider AT web.de>
5583
5584         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
5585         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
5586           compute pointer's type from operand,
5587           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
5588           improved single bit reads, fixes bug #1353379
5589
5590 2005-11-09 Borut Razem <borut.razem AT siol.net>
5591
5592         * support/scripts/sdcc.nsi: added lib/pic to the package
5593
5594 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
5595
5596         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
5597
5598 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
5599
5600         * support/regression/tests/bug1348008.c: added
5601         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
5602         * support/regression/tests/bug1337835.c: updated comment
5603
5604 2005-11-06 Borut Razem <borut.razem AT siol.net>
5605
5606         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
5607           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
5608           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
5609           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
5610           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
5611           dynamic construction of cl_error_class and derivates - 2.nd try
5612
5613 2005-11-05 Borut Razem <borut.razem AT siol.net>
5614
5615         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
5616           bug, which caused Bus Errors on sparc solaris
5617
5618 2005-11-04 Borut Razem <borut.razem AT siol.net>
5619
5620         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
5621           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
5622           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
5623           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
5624           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
5625           and derivates to resolve the initialization problem on OSX
5626
5627 2005-11-02 Borut Razem <borut.razem AT siol.net>
5628
5629         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
5630           corrected typo - #include <winsock2.h>
5631
5632 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
5633
5634         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
5635           (_asxxxx_mapping): added org directive for future enhancements
5636
5637 2005-11-01 Borut Razem <borut.razem AT siol.net>
5638
5639         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
5640           enabled sockets on WIN32
5641         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
5642
5643 2005-10-31 Borut Razem <borut.razem AT siol.net>
5644
5645         * support/regression/generate-cases.py: escape backslashes in {testcase}:
5646           WIN32 backslash path delimiters should be escaped when used in C strings
5647         * support/regression/tests/bitfields.c: exclude failing assertions for
5648           __CYGWIN32__ and __MINGW32__ hosts
5649
5650 2005-10-30 Borut Razem <borut.razem AT siol.net>
5651
5652         * src/SDCCutil.c: corrected double comparison typo
5653
5654 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
5655
5656         * device/lib/medium/Makefile: added for new memory model medium
5657         * device/include/asm/mcs51/features.h: updated for medium/pdata
5658         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
5659           added Multiply & Accumulate sbit's and MAC0_PAGE define
5660         * device/include/mcs51/c8051f300.h: added sfr16 definitions
5661         * device/include/mcs51/c8051f310.h: added sfr16 definitions
5662         * device/lib/_mullong.c: update for medium model
5663         * device/lib/incl.mk: added medium model
5664         * doc/sdccman.lyx: documented medium model
5665         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
5666         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
5667         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
5668         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
5669           (allocParms): set SCLS and OCLS to pdata for medium model
5670         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
5671           for pdata,
5672           (powof2): return <0 if not power of 2
5673         * src/avr/gen.c (genBitWise): use updated powof2
5674         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
5675           (shiftR2Left2Result): small optimization in setup, save acc when storing,
5676           (shiftLLeftOrResult): use B if necessary
5677         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
5678         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
5679         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
5680         * support/regression/Makefile.in: added test-mcs51-medium
5681         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
5682
5683 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
5684
5685         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
5686         specifier unsigned
5687         * device/lib/time.c (mktime): fixed bug 1334315
5688
5689 2005-10-28 Raphael Neider <rneider AT web.de>
5690
5691         * device/include/pic/p16f_common.inc: added common declarations
5692         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
5693
5694 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
5695
5696         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
5697           (aopPutUsesAcc): added to predict accumulator use,
5698           (assignResultValue): save acc if necessary,
5699           (genMinusDec): store result if indirectly addressed,
5700           (genDivOneByte):  save acc if necessary,
5701           (movLeft2Result): bugfix if left already in acc,
5702           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
5703             attention to accumulator use (esp. pdata),
5704           (genReceive): receive pdata correctly
5705         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
5706         * src/SDCCicode.h: added isOperandInPagedSpace prototype
5707
5708 2005-10-27 Raphael Neider <rneider AT web.de>
5709
5710         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
5711
5712 2005-10-27 Raphael Neider <rneider AT web.de>
5713
5714         * .version: changed version to 2.5.4
5715         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
5716         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
5717           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
5718             arithmetics support routines
5719         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
5720         * device/lib/Makefile.in: also create installdir for pic
5721
5722         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
5723           pic14 port as well
5724         * src/pic/device.c (dump_sfr): rewritten to delegate register
5725           placement to the linker (use `extern sym' rather than sym EQU addr),
5726           (validAddress): fixed to check last specified address
5727         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
5728           (popGetLit): truncate literal value to 8 bit,
5729           (popGet): moved assert to more appropriate place
5730           (popGetExternal): create pCode operand from and mark the according
5731             symbol as being `extern'
5732           (popGetAddr): added sanity check on immediate's offset, provide
5733             GPOINTER tag on demand
5734           (aopPut): fixed for immediates,
5735           (mov2w_op): move operand's address or contents to WREG (depending on
5736             operand type), safer variant of mov2w,
5737           (movwf,call_libraryfunc): NEW, handy abbreviations,
5738           (get_argument_pcop,get_return_val_pcop,pass_argument,
5739           get_returnvalue): interface for accessing function parameters and
5740             return values,
5741           (assignResultValuei,genRet): use new parameter/return value interface
5742           (pic14_getDataSize): back to old version handling generic pointers,
5743           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
5744             provided implementation and/or fixed old one,
5745           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
5746             calls, removed legacy 8051 reference code
5747           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
5748           (loadSignToC): NEW, move the operands sign bit to CARRY,
5749           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
5750             genRightShiftSigned, accepts negative shift counts,
5751           (setup_fsr): load FSR and adjust IRP (indirect memory access),
5752           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
5753             generic pointers, __data pointers and __code pointers,
5754           (genUnpackBits,genPackBits): rewritten to work with generic pointers
5755             and signed bitfields, limit bitfields to 8 bit,
5756           (genDataPointerGet): fixed number of bytes read,
5757           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
5758           (genPointerGet,genPointerSet): fixed handling of __code pointers,
5759             pointers to constant data are no longer assumed to point to __code
5760             space, removed invalid pointer types,
5761           (bitpatternFromVal): retrieve the PICs representation of an integer
5762             or float literal,
5763           (genDataPointerSet): fixed assigning to po_immediate operands,
5764           (genGenPointerSet): implemented as library call,
5765           (genIfx): fixed incorrect condition,
5766           (genAddrOf): limit generic pointers' addresses to 2 bytes,
5767             provide GPOINTER tag according to destination's storage class,
5768           (genCast): added code to handle casting to generic pointers, added
5769             sign-/zero extension of the result
5770           (aop_isLitLike,op_isLitLike): fixed handling of immediates
5771         * src/pic/gen.h: added macros to access IRP bit in STATUS register
5772         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
5773           extend the result
5774         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
5775           address/register resides in the shared banks
5776           (emitSymbolToFile): improved to handle global and `pinned' symbols,
5777             put all variables into separate sections (have the linker arrange
5778             them)
5779           (picglue): put init code and interrupt handlers in separate sections
5780         * src/pic/main.c: added port specific options table, modified to PORT
5781           structure to make GPOINTERs 3 byte, added pic14_options
5782           (_pic14_do_link): private linking routine (update paths to libraries,
5783             add libsdcc.lib by default)
5784         * src/pic/main.h: declare pic14_options
5785         * src/pic/pcode.c: fixed instructions i/o relations,
5786           (RegCond): reverted to correct version,
5787           (newpCodeOpLit): truncate literals to 8 bit,
5788           (genericPrint): added debug output,
5789           (getRegFromInstruction): fixed for various operand types, simplified
5790           (BuildFlow): fixed broken handling of isntructions with labels
5791           (LinkFlow): start at last instruction in flow (skip trailing comments),
5792             pass the flow on to the next instruction after CALL
5793           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
5794           (insertPCodeInstruction): fixed inserting after a skip instruction,
5795           (DoBankSelect): fixed for labeled instructions
5796           (OptimizepBlock): honor --nopeep switch
5797           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
5798         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
5799         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
5800           (pCodeOptime2pCodes): allow disabling this optimization via
5801             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
5802             but is still buggy), started implementation of a dataflow based
5803             pCode optimization (CSE + dead code elimination)
5804           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
5805         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
5806           names are independant of the stack location and therefore portable across
5807           devices
5808
5809 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
5810
5811         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
5812           (selectSpil): fixed bug 1337835 by not spilling bit variables
5813         * support/regression/tests/bug1337835.c: added test for this bug
5814         * src/mcs51/peeph.def: restart after rule 3.c,
5815           addded rules 263.x to optimize loading constants
5816
5817 2005-10-26 Raphael Neider <rneider AT web.de>
5818
5819         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
5820         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
5821           (genAssign): emit warning when casting literals to generic pointer
5822             type, also applies when taking the address of a fixed variable,
5823           (genCast): improved casting to generic pointers
5824         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
5825           extern variables, added verbose error message
5826         * device/include/pic16/{string.h,errno.h}: added #pragma library c
5827
5828 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
5829
5830         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
5831         carry must be complemented too
5832         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
5833         could be emitted by genMinus
5834         * src/SDCCval.c (constVal): fixed bug 1305065
5835
5836 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
5837
5838         * src/SDCCast.c (addCast): added promotion for bit variables
5839         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
5840         promotion casts + optimisation
5841         (optimizeGetWord): fix warning 'i' might be used uninitialized
5842         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
5843         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
5844
5845 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
5846
5847         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
5848         all chars are promoted to int; promotion should be handled in SDCCast.c
5849
5850 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5851
5852         * device/lib/_strcmp.c: Fixed bug 1326457
5853
5854 2005-10-11 Raphael Neider <rneider AT web.de>
5855
5856         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
5857         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
5858
5859 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
5860
5861         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
5862         * support/regression/tests/sfr16.c: added test for the sfr32 bug
5863
5864 2005-10-04 Raphael Neider <rneider AT web.de>
5865
5866         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
5867           device/lib/pic16/pics.all: added pic18f1320
5868         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
5869
5870 2005-09-30 Raphael Neider <rneider AT web.de>
5871
5872         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
5873         * src/pic16/devices.inc: NEW, provides device descriptions
5874         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
5875
5876 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
5877
5878         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
5879           GETHBIT
5880
5881 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
5882
5883         * doc/sdccman.lyx: updated Highest Order Bit documentation,
5884           documented Any Order Bit, Higher Order Byte and Higher Order Word
5885         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
5886         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
5887           (optimizeGetAbit): new, to get any bit, not only the high bit,
5888           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
5889           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
5890           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
5891           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
5892             RIGHT_OP: also try GETBYTE, GETWORD optimization,
5893             GETABIT, GETBYTE, GETWORD: decorate them,
5894           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
5895           (ast_print): added GETABIT, GETBYTE, GETWORD
5896         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
5897         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
5898           (geniCodeBinary): new generic binary icode,
5899           (ast2iCode): added GETABIT, GETBYTE, GETWORD
5900         * src/port.h: updated comment for PORT.hasExtBitOp
5901         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
5902           (genGetByte): new, to get a single byte,
5903           (genGetWord): new, to get a word from a long,
5904           (gen51Code): added GETABIT, GETBYTE, GETWORD
5905         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
5906
5907 2005-09-23 Raphael Neider <rneider AT web.de>
5908
5909         * configure.in, configure: have device/lib/pic configured
5910         * device/lib/Makefile.in: added model-pic14
5911         * device/lib/clean.mk: added pic/ to clean rule
5912         * device/lib/pic: added rudimentary pic14 library providing support
5913           functions for multiplication/division/generic pointer access
5914         * src/SDCCopt.c (convilong): mark support functions as extern
5915           for pic14 port as well
5916         * src/pic/gen.c (genMult): added assertions,
5917           (genpic14Code): emit warning on unhandled iCodes
5918         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
5919         * src/pic/pcode.c (pCodeOpCopy),
5920         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
5921           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
5922           SFR_REGISTER}), made safe for future extensions
5923         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
5924           instructions even if preceeded by SKIP instructions (also remove
5925           them); removed unused code
5926         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
5927           prevents leaving parts of the structure uninitialized after copying
5928
5929 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
5930
5931         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
5932           ago by me
5933         * support/regression/tests/addsub.c: added test for the bug
5934
5935 2005-09-21 Raphael Neider <rneider AT web.de>
5936
5937         * device/include/pic16/pic18f1220.h,
5938           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
5939         * device/lib/pic16/Makefile.rules: added missing opening paren
5940         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
5941           are provided in genutils.c,
5942           (genUminusFloat,genUminus,genCmpEq): added asserts on different
5943           operand/result sizes,
5944           (genCmp): assert on NULL pointers first, then check deref'ed values
5945         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
5946           result size
5947
5948 2005-09-18 Raphael Neider <rneider AT web.de>
5949
5950         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
5951           as these are now unused,
5952           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
5953         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
5954           local, avoids uninitialized pointer dereference on r->name
5955         * src/pic16/ralloc.c (newReg): fixed indentation
5956
5957 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
5958
5959         * src/SDCCval.c (constVal): fixed bug 730366
5960         * support/Util/SDCCerr.c,
5961         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
5962
5963 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
5964
5965         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
5966
5967 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
5968
5969         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
5970
5971 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
5972
5973         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
5974           (hex2dec): made hex_digit unsigned char, removed ascii dependance
5975         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
5976           (hex2dec): made hex_digit unsigned char, removed ascii dependance
5977         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
5978         * packihx/packihx.c (hexDigit): made c unsigned char
5979         * as/mcs51/lklibr.c (fndsym),
5980         * link/z80/lkgb.c (gb),
5981         * link/z80/lklibr.c (fndsym),
5982         * link/z80/lkrloc.c (relr),
5983         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
5984         * src/SDCC.lex (checkCurrFile, process_pragma),
5985         * src/SDCCglue.c (spacesToUnderscores),
5986         * src/SDCCmain.c (setParseWithComma, processFile),
5987         * src/asm.c (tvsprintf, printCLine),
5988         * src/avr/gen.c (emitcode, aopPut),
5989         * src/ds390/gen.c (emitcode),
5990         * src/hc08/gen.c (emitcode, emitinline),
5991         * src/mcs51/gen.c (emitcode, genInline),
5992         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
5993           tokenizeLineNode),
5994         * src/pic/ralloc.c (debugLog),
5995         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
5996           tokenizeLineNode),
5997         * src/pic16/ralloc.c (debugLog),
5998         * src/z80/main.c (_process_pragma):
5999            made all ctype.h function calls safe
6000         * src/SDCCopt.c: include math.h for fabs
6001         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
6002           and used them throughout the code to make ctype.h function calls safe
6003         * src/ds390/main.c (asmLineNodeFromLineNode),
6004         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
6005         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
6006            unsigned char*
6007         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
6008           (newpCodeAsmDir): made ctype.h function calls safe
6009         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
6010           pic16_emitcode):  made lbp unsigned char*
6011         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
6012           (pic16_newpCodeAsmDir): made ctype.h function calls safe
6013         * src/xa51/gen.c (emitcode),
6014         * src/z80/gen.c (_emit2): made lbp unsigned char*
6015         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
6016            char*
6017
6018 2005-09-05 Raphael Neider <rneider AT web.de>
6019
6020         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
6021           access bank splitpoint
6022
6023 2005-09-05 Raphael Neider <rneider AT web.de>
6024
6025         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
6026
6027 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
6028
6029         * .version: changed to version 2.5.3
6030         * doc/sdccman.lyx: changed version to 2.5.3,
6031           documented --codeseg and --constseg and pragma codeseg and constseg,
6032           documented bit parameters (reentrant) and bit returning
6033         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
6034            currFunc->recvSize, but is this ok for all ports?
6035           (ast2iCode): result of ~ on unsigned char must be cast to int for
6036            bool to work
6037         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
6038           function pointers in bit space
6039         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
6040           (processFuncArgs): call port.reg_parm() with reentrancy info
6041         * src/port.h,
6042         * src/avr/main.c,
6043         * src/ds390/main.c,
6044         * src/hc08/main.c,
6045         * src/pic/main.c,
6046         * src/pic16/main.c,
6047         * src/xa51/main.c,
6048         * src/z80/main.c: port.reg_parm prototype extended with
6049           "bool reentrant" parameter
6050         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
6051           options.stackAuto for allocating bit register parameters
6052         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
6053           (genSend): set BitBankUsed if it is,
6054           (selectRegBank): factored out of genCall for use in genPcall,
6055           (genCall): removed redundant dtype assignmen, use selectRegBank,
6056           (genPcall): handle returning in Carry properly, save in F0 if needed,
6057           (genReceive): handle bit register parameters
6058         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
6059           (mcs51_assignRegisters): enable bit registers for all reentrant
6060            functions and don't set BitBankUsed unconditionally
6061         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
6062         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
6063         * support/regression/tests/funptrs.c: added tests for BOOL and for return
6064
6065 2005-08-27 Borut Razem <borut.razem AT siol.net>
6066
6067         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
6068         ppc-osx (Darwin) does not support -u option. It seems that it is
6069         supported only on Linux - GNU cp
6070
6071 2005-08-25 Borut Razem <borut.razem AT siol.net>
6072
6073         * sim/ucsim/gui.src/serio.src/Makefile.in,
6074           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
6075           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
6076           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
6077           install and strip, since the strip at /usr/ccs/bin should be used
6078           on solaris
6079
6080 2005-08-24 Borut Razem <borut.razem AT siol.net>
6081
6082         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
6083
6084 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
6085
6086         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
6087         ffffffffu
6088
6089 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
6090
6091         * as/mcs51/aslink.h: completed lkrloc.c prototypes
6092         * as/mcs51/lkmain.c (link_main): fixed warning
6093         * device/include/stdbool.h: ds390 has no advanced bit support yet
6094         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
6095         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
6096         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
6097           and updated their macros
6098         * src/SDCCval.c (constVal): updated comment for renamed b_long
6099
6100 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
6101
6102         * as/mcs51/asdata.c: changed ctype['['] to BINOP
6103         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
6104           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
6105           (oprio): set priority for '['
6106         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
6107            and adb_24_bit
6108         * as/mcs51/asm.h: added defines R_BIT and S_BIT
6109         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
6110         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
6111         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
6112           added overlayable BIT_BANK area
6113         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
6114           (summary2): explain 'T' in legenda
6115         * as/mcs51/lkrloc.c: replaced old K&R style,
6116           (relr): added R_BIT processing,
6117           (errmsg): added "Bit-addressable relocation error",
6118           (adb_bit): added for converting from byte- to bit-addressable space,
6119           (adb_24_bit): added for converting from byte- to bit-addressable space
6120         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
6121            used in reentrant functions now even as return value
6122         * device/lib/_gptrput.c (_gptrput): removed obsolete code
6123         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
6124           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
6125         * src/SDCCglobl.h: added indicator BitBankUsed
6126         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
6127            the bit registers b0-b7
6128         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
6129           (geniCodeCast): fixed bug 1263853,
6130           (geniCodeLogicAndOr): put result in bool or char,
6131           (geniCodeReceive): added parameter func for accessing the return type,
6132           (geniCodeFunctionBody): pass func to geniCodeReceive
6133         * src/SDCCmain.c: added indicator BitBankUsed
6134         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
6135         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
6136           (checkSClass): don't put automatic bool/bit on stack,
6137           (checkFunction): removed check on function cannot return bit
6138         * src/SDCCsymt.h: added newBoolLink prototype
6139         * src/mcs51/gen.c (rb1regs): added bit registers,
6140           (movc): created for assigning to carry,
6141           (pushReg, popReg): created for pushing registers,
6142           (sameRegs): check both AOP_REG and AOP_CRY types,
6143           (aopOp): handle bit registers,
6144           (aopPut): optimization no self-assign,
6145           (saveRegisters): push reg->base (bits) only once for bit registers,
6146            and use pushReg,
6147           (unsaveRegisters): pop reg->base only once and use popReg,
6148           (assignResultValue): added parameter func and return in carry for bits,
6149           (genIpush): optimization no reload in A if not changed,
6150           (genSend): bit parameters in reentrant functions are passed in bit
6151            registers by first assigning to bits in B, then save registers and
6152            copy B to bits,
6153           (genCall): handle returning in Carry properly, save it in F0 if needed,
6154           (genPcall): updated assignResultValue call, this is not safe yet for bit
6155            returning function !!!
6156           (genFunction): don't generate equ's for bit registers and use pushReg,
6157           (genEndFunction): take care of bit returning functions and use popReg,
6158           (genRet): return bit in Carry,
6159           (genIfx): optimize bit registers and other directly addressable bits,
6160           (genReceive): updated assignResultValue call
6161         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
6162           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
6163            registers when using stack-auto
6164         * src/mcs51/ralloc.c (_G): added allBitregs,
6165           (regs8051): added the bit registers,
6166           (createStackSpil): use macro IS_BIT,
6167           (getRegBit): added to allocate a bit register, else spill,
6168           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
6169           (updateRegUsage): factored out to ease stepping while debugging,
6170           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
6171            also allocate bit registers,
6172           (fillGaps): handle bit registers,
6173           (findAllBitregs): added to create bit vector with all bit registers,
6174           (mcs51_allBitregs): returns this bit vector,
6175           (mcs51_assignRegisters): when using stack-auto use bit registers for
6176            passing parameters and creating local variables
6177         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
6178
6179 2005-08-22 Borut Razem <borut.razem AT siol.net>
6180
6181         * device/lib/Makefile.in: replaced find option -or with -o
6182           to make it run on solaris
6183
6184 2005-08-22 Raphael Neider <rneider AT web.de>
6185
6186         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
6187           fixes #1265442 (crash on Solaris)
6188
6189 2005-08-20 Borut Razem <borut.razem AT siol.net>
6190
6191         * configure, configure.in: added tests for libsocket and libnsl libraries,
6192           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
6193           from support/regression/Makefile.in
6194         * support/regression/Makefile.in: added
6195         * device/lib/pic16/Makefile.common.in: force make to use bash shell
6196         * sim/ucsim/libtool: regenerated on sparc-solaris
6197         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
6198           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
6199           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
6200           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
6201           sparc-solaris, which doesn't use GNU ld linker
6202         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
6203         * as/Makefile: find on sparc-solaris does not support -maxdepth option
6204
6205 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
6206
6207         * src/mcs51/peeph.def: updated comments
6208
6209 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6210
6211         * device/lib/_gptrget.c,
6212         * device/lib/_gptrput.c: slightly shorter
6213         * doc/sdccman.lyx: incremented version
6214         * src/mcs51/peeph.def: moved peephole comments to the line of first
6215           change to better keep line correlation, reanimated 186.e
6216         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
6217
6218 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
6219
6220         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
6221           David Saxton with quotes around file name.
6222
6223 2005-08-15 Borut Razem <borut.razem AT siol.net>
6224
6225         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
6226           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
6227           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
6228           make tests run on x86_64 platform
6229
6230 2005-08-13 Raphael Neider <rneider AT web.de>
6231
6232         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
6233           as it might be executed DURING a build (parallel make is wonderful)
6234
6235 2005-08-13 Raphael Neider <rneider AT web.de>
6236
6237         * device/lib/Makefile.in (port-specific-objects-pic16):
6238           revert to cp $(PORT)/bin/*.* $(PORTDIR)
6239         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
6240           dependency
6241         * device/lib/pic16/Makefile.rules: build subdirs before creating
6242           the library, removed builddir rule, create $(builddir) early in
6243           recurse rule, use empty recurse rule for leaf directories
6244         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
6245           mkdir errors (race condition), removed duplicate suffix "hex"
6246           from clean rules
6247         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
6248         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
6249           prevents mkdir -p from aborting on Alpha
6250
6251 2005-08-12 Raphael Neider <rneider AT web.de>
6252
6253         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
6254           db-statements in order to allow for arrays of pointers in code
6255           sections to be placed without interspersed 0-padding, fixes
6256           bug #1256215
6257         * (emitStatistics): fixed division by zero for pic18f1220
6258         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
6259           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
6260         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
6261         * (pic16_pCodeConstString): keep track of already emitted string
6262           literals to prevent "duplicate definitions of symbol _str_NR"
6263         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
6264           debug message
6265         * device/lib/Makefile.in: ignore failing PIC16 library builds
6266         * device/lib/pic16/Makefile: do not build if gputils are missing
6267         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
6268
6269 2005-08-10 Raphael Neider <rneider AT web.de>
6270
6271         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
6272           my last commit)
6273
6274 2005-08-10 Raphael Neider <rneider AT web.de>
6275
6276         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
6277           Rokas' patch to add the new fixed point type "__fixed16x16"
6278         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
6279           functions for __fixed16x16 arithmetics
6280         * device/lib/pic16: reimplemented the build system to support
6281           a separate build directory, better handling of libio (create
6282           the library in a separate subdir for each architecture) and
6283           easier configuration (centralized in Makefile.common)
6284
6285 2005-08-07 Raphael Neider <rneider AT web.de>
6286
6287         * src/pic16/gen.c (genrshTwo): fixed sign extension
6288         * src/pic16/device.c: added pic18f2320, 4220 and 4320
6289         * device/include/pic16/pic18f2220.h: changed some bit definitions,
6290           added T0CONbits
6291         * device/include/pic16/pic18f4220.h: NEW, header for
6292           pic18f4220 and pic18f4320
6293         * device/include/pic16/pic18fregs.h: added new devices,
6294           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
6295         * device/include/pic16/signal.h: resolved name clashes
6296           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
6297           to also allow testing for interrupt enable bits, added
6298           comments on how to use the macros
6299         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
6300         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
6301           register definitions for the devices
6302         * device/lib/pic16/pics.all: added new devices
6303         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
6304           allocated memory
6305         * device/lib/pic16/libc/stdlib/memfree: do not count
6306           the block header as free memory
6307         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
6308           simplified and added missing end-of-blocklist-marker
6309           (reported by Peter Onion, fixes #1252814)
6310         * (_mergeHeapBlock): fixed loop condition
6311         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
6312           len==0, restructured code
6313         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
6314           up a bit, reduced bitfield accesses, prevent endless loops
6315           in case of heap corruption
6316         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
6317           "unreferenced arguments/must return a value" warnings
6318         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
6319           replaced BAUDREG with SPBRG
6320         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
6321           device/lib/pic16/debug/gstack/gstack.c: replaced
6322           _naked, _asm, _endasm with __naked, __asm, __endasm
6323
6324 2005-08-05 Raphael Neider <rneider AT web.de>
6325
6326         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
6327           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
6328
6329 2005-08-05 Borut Razem <borut.razem AT siol.net>
6330
6331         * device/lib/Makefile.in: added missing ';'
6332         * configure: removed ^M characters
6333
6334 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6335
6336         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
6337           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
6338           License
6339
6340 2005-08-04 Borut Razem <borut.razem AT siol.net>
6341
6342         * configure.in: pic16 libraries build 2nd try - enable running
6343           configure in device/lib/pic16
6344         * configure: regenerated from configure.in
6345         * device/lib/Makefile.in: create $(PORT)/bin directory
6346
6347 2005-08-03 Raphael Neider <rneider AT web.de>
6348
6349         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
6350           to get/set values via pointers
6351         * (genUnpackBits,genPackBits): changed detection of
6352           ptr->bitfield vs. sym.bitfield, fixed access via generic
6353           pointers, removed dead (wrong) code for multibyte bitfields
6354         * (genNearPointerGet, genGenPointerGet): removed useless code,
6355           fixed bitfield detection, fixes #1250594
6356         * (genNearPointerSet): removed useless code
6357         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
6358           and introduced macro pic16_emitpcode that conditionally emits
6359           the origin of the following pCode (useful for debugging SDCC)
6360         * src/pic16/pcode.c: changed (and disabled) some debug outputs
6361         * (createDefmap): fixed handling of LFSR for --optimize-df
6362
6363 2005-08-02 Borut Razem <borut.razem AT siol.net>
6364
6365         * device/lib/Makefile.in: pic16 libraries build enabled since
6366           gputils-0.13.2 are now localy installed at sourceforge's compile farm
6367
6368 2005-08-02 Raphael Neider <rneider AT web.de>
6369
6370         * src/pic16/gen.c (genPackBits): removed deprecated warning
6371         * (genGenPointerSet): fixed bitfield detection
6372
6373 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6374
6375         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
6376
6377 2005-07-31 Raphael Neider <rneider AT web.de>
6378
6379         * device/lib/pic16/libdev/pic18f458.c,
6380           device/include/pic16/pic18f458.h: added missing T0CONbits
6381
6382 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
6383
6384         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
6385
6386 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
6387
6388         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
6389
6390 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6391
6392         * device/include/mcs51/at89c51ed2.h: added.
6393
6394 2005-07-23 Raphael Neider <rneider AT web.de>
6395
6396         * src/pic/gen.h: added emitpcode macro for debugging
6397         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
6398           and replace by macro adding debug information on demand
6399         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
6400         * (gencjne): tried to fix; replaced with correct (slower) code
6401         * (gen{Unp,P}ackBits): fixed single bit access
6402         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
6403         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
6404           previous instruction
6405         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
6406           register has to be handled with care (forbidding movement
6407           of assignments/uses, removing assignments completely, ...)
6408         * (pCodeOptime2pCodes): make use of regIsSpecial
6409         * added lots of debugging output (commented out)
6410         * src/pic/rallloc.c (deassignLRs): prevent operand registers
6411           from being reused as result UNLESS it is known to work
6412
6413 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
6414
6415         * support/Util/dbuf.h: include <stddef.h> for size_t
6416         * .version: changed to version 2.5.2
6417
6418 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6419
6420         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
6421
6422 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6423
6424         * src/hc08/gen.c (genMinus): fixed bug #1241835,
6425           (genModOneByte): removed needless psha/pula
6426
6427 2005-07-22 Raphael Neider <rneider AT web.de>
6428
6429         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
6430           have PIC14 handled like PIC16, fixes broken pic14 linker calls
6431         * src/pic/gen.c (resolveIfx): do not "invent" labels
6432         * (genSkipc): changed to positive logic
6433         * (genSkipCond): removed as no longer needed
6434         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
6435           backport from PIC16
6436         * (genLeftShift): check operands are in different registers
6437         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
6438           INCF does not update CARRY...
6439         * src/pic/main.c: fixed _linkCmd
6440         * src/pic/pcode.c (unlinkpCode): added inactive code
6441         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
6442           alive (do not assign result and operand overlapping registers)
6443
6444 2005-07-22 Raphael Neider <rneider AT web.de>
6445
6446         * src/pic/device.c (dump_sfr): replaced register declaration with
6447           call to emitSymbolToFile() to avoid duplicate symbols
6448         * (assignRelocatableRegisters): do not declare external symbols
6449         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
6450           right (take size of type, not etype)
6451         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
6452         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
6453         * (packRegsForAccUse): disabled assignment of WREG as
6454           the result reg to prevent occurence of just fixed #1235003,
6455           fixes #1242954
6456         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
6457           symbols (avoids duplicate symbols in .asm file)
6458         * (pic14emitRegularMap): use emitSymbolToFile()
6459         * src/pic/gen.c (aopOp): fixed spillLocation handling
6460         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
6461         * (genDataPointerSet): removed unneccessary variables/output
6462
6463 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
6464
6465         * as/mcs51/lkarea.c: enlarged codemap for banked memory
6466         * device/lib/mcs51/crtbank.asm: added # to 0x0F
6467
6468 2005-07-21 Raphael Neider <rneider AT web.de>
6469
6470         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
6471           architecture cannot handle them efficiently, fixes bug #1235003
6472         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
6473           check for empty sets before using them (fixes bug #1232190)
6474
6475 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
6476
6477         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
6478           (lnksect2): generate warnings for memory overlap
6479         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
6480           constseg to set the name of these segments so you can instruct the linker
6481           to place them in banks
6482         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
6483         * src/SDCCglobl.h: added MODEL_HUGE to enum,
6484           added code_seg and const_seg to options
6485         * src/SDCCglue.c (emitMaps): use options.const_seg,
6486           (createInterruptVect): put interrupt vectors in segment HOME,
6487           (glue): put HOME before static segment and put the main glue in HOME,
6488           (glue): use options.code_seg
6489         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
6490         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
6491           these segments so you can instruct the linker to place them in banks
6492           (linkEdit): use code_loc for HOME segment which should be the first
6493           segment in code memory now
6494         * src/SDCCmem.c: fixed more stuff like bug 1238386
6495         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
6496           (changePointer): don't change function pointers to code pointers for
6497           banked functions,
6498           (compareType): added exceptional check for banked function pointers
6499         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
6500         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
6501           after static in code memory
6502         * src/mcs51/gen.c: added aopLiteralLong prototype,
6503           (aopForSym): use getSize for functions,
6504           (genCall): generate banked calls over one trampoline __sdcc_banked_call
6505           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
6506           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
6507           the segment,
6508           (genPcall): use call for literal function pointers and generate banked
6509           calls over the one trampoline so there's only one place for the user to
6510           modify according to his/hers hardware,
6511           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
6512           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
6513         * src/mcs51/main.c: added keyword banked,
6514           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
6515         * support/Util/SDCCerr.c,
6516         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
6517           needed for passing the bank and address to the trampoline
6518         * device/lib/mcs51/crtbank.asm: added for bankswitching
6519         * device/lib/mcs51/Makefile: added crtbank
6520
6521 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6522
6523         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
6524           for fields at offset 0 of a struct or union as reported
6525           on 2005-07-07 in the developer mailing list.
6526
6527 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
6528
6529         * src/SDCCmem.c: fixed bug 1238386
6530
6531 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6532
6533         * src/mcs51/peeph.def: added labelrefcounting for peepholes
6534           (patch #1144962), added peephole 300, enabled 259.x
6535         * doc/sdccman.lyx: removed screenshot and provided link instead
6536
6537 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6538
6539         * doc/sdccman.lyx: added section about debugging with ddd
6540         * doc/figures/ddd_example.eps: screenshot of debugging session
6541
6542 2005-07-04 Raphael Neider <rneider AT web.de>
6543
6544         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
6545           like CODE pointers, fixes #1115683
6546         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
6547           call, fixes bugs #1232211, #1228110,
6548           fixed wrong casts to pCodeFlow from pCodeInstructions
6549
6550 2005-07-04 Raphael Neider <rneider AT web.de>
6551
6552         * src/pic/gen.c (popGet): changed assert to allow for
6553           bit operands
6554         * (popGetAddr): changed signature to provide
6555           an additional index, patched all call sites
6556         * (genCmpEq): handle literal-like operands correctly
6557         * (genAddrOf): added sanity checks on __code/__data pointers
6558         * (genAssign): added handling of symbols from __code section
6559         * (gencjne): do not generate code for comparisons whose result
6560           is neither stored nor used, fixes bug #1171114
6561         * (AccLsh, AccRsh): operate on operand instead of WREG
6562         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
6563           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
6564           by known count
6565         * rewrote complete shift-by-literal logic, commented unused
6566           functions out
6567         * (genConstPointerGet): get multiple bytes (if result size > 1),
6568           fixed handling of non-immediate addresses
6569         * (genPointerGet): handle CODE pointers like CONST pointers
6570         * (genpic14Code): insert C-SRC lines as Cource-pCodes
6571         * ({aop,op}_isLitLike): NEW, single place to decide whether an
6572           operand is to be treated as a literal or not
6573         * (mov2w,genPcall,genCmpEq),
6574           src/pic/genarith.c: use aop_isLitLike() to decide between
6575           literal/register contents
6576         * (addSign): added missing offset
6577         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
6578           only emit comment in debug-mode,
6579           use {aop,op}_isLitLike throughout the file
6580         * src/pic/glue.c: fix initializers for pointers (work in progress)
6581         * src/pic/pcode.c (get_op): honor index on _const symbols
6582         * ({reset,dump}pCodeStatistics): NEW, estimate code size
6583         * (dumppBlock): added pCode size estimation
6584         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
6585           check for IS_SYMOP before OP_SYMBOL'ing
6586         * fixed indentation, compacted switch-statements
6587         * (allocReg): find free register and allocate it instead of
6588           allocating new registers all the time
6589         * (deassignLRs): prevent POINTER_GET's from being assigned the same
6590           registers as its operands (necessary only for multibyte GETs)
6591
6592 2005-07-01 Raphael Neider <rneider AT web.de>
6593
6594         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
6595           debugging .asm-output macros FENTRY + FEXIT
6596         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
6597           way... I wonder...
6598         * (emitpComment): NEW, printf to pCode
6599         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
6600           offset handling
6601         * (popGetAddr): NEW, variant of popGet to access an immediates
6602           high(er) bytes instead of the n'th byte of memory they reference,
6603           replaced popGet with popGetAddr where neccessary
6604         * (genDataPointerGet): reactivated and fixed implementation
6605         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
6606           accesses
6607         * (genDataPointerSet): fixed multibyte assignments
6608         * (genpic14Code): fixed --i-code-in-asm handling
6609         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
6610         * (genPlus): fixed index-out-of-bounds error
6611         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
6612         * src/pic/ralloc.c: added debugging output macro FENTRY2
6613         * (spillThis): fixed indentation, enbraced for-body for clarity
6614         * (rematStr): commented out as now unused
6615         * (regTypeNum): commented out special spill case (overwrites
6616           arbitrary values)
6617         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
6618
6619 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
6620
6621         * doc/sdccman.lyx: documented sfr16/sfr32,
6622           added example for using storage class with function pointers
6623         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
6624
6625 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
6626
6627         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
6628         * device/lib/_itoa.c,
6629         * device/lib/_ltoa.c: optimized codesize
6630         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
6631           but don't know how to suppress the double warning.
6632         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
6633         * support/Util/SDCCerr.c,
6634         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
6635
6636 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
6637
6638         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
6639           fixed old K&R prototypes
6640         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
6641         * device/lib/_gptrget.c,
6642         * device/lib/_gptrgetc.c,
6643         * device/lib/_gptrput.c: changed versions for new memory indicator values,
6644           also new versions for small generic pointers and banked generic pointers
6645         * src/port.h: added const_name
6646         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
6647         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
6648         * src/SDCCcse.c (findPrevIc): check all associative operators
6649         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
6650         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
6651         * src/SDCCmem.c: updated comments,
6652           set far-space to 0 for pdata, results in optimized code
6653         * src/SDCCmem.h: added macro CONST_NAME
6654         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
6655           moving the info into the highest bits, see also gptrget/gptrput
6656         * src/src.dsp: added sdcc.ico to project files
6657         * src/avr/gen.c (genCast): fixed bug 0x%d
6658         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
6659         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
6660           relation between ptr_type and DCL_TYPE,
6661           (genCast): fixed bug 0x%d
6662         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
6663           (CODE)" for const_name
6664         * src/hc08/gen.c (genCast): fixed bug 0x%d
6665         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
6666           (hc08_port): added "CONST (CODE)" for const_name
6667         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
6668           (aopForRemat, adjustArithmeticResult): disconnected direct relation
6669           between ptr_type and DCL_TYPE,
6670           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
6671           operand* and took AOP() inside function so sfr-ness can be checked,
6672           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
6673           new prototype,
6674           (genFunction, genEndFunction): optimized stack setup,
6675           (genMinus): optimized for literals with ending zeroes (in bytes),
6676           (genCast): fixed bug 0x%d
6677         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
6678           (mcs51_port): added "CONST (CODE)" for const_name
6679         * src/mcs51/peeph.def: made rule 226 more generic
6680         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
6681         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
6682         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
6683         * src/z80/main.c (z80_port): added NULL for const_name,
6684           (gbz80_port): added NULL for const_name
6685         * support/regression/tests/bug663539.c,
6686         * support/regression/tests/sfr16.c: new tests
6687
6688 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6689
6690         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
6691
6692 2005-06-24 Raphael Neider <rneider AT web.de>
6693
6694         * device/lib/pic16/libdev/pic18f[68][567]20.c:
6695           corrected typos...
6696         * device/include/pic16/signal.h: added USBIF
6697           and SIG_USB
6698
6699 2005-06-24 Raphael Neider <rneider AT web.de>
6700
6701         * device/lib/pic16/libdev/pic18f2455.c,
6702           device/include/pic16/pic18f2455.h: NEW
6703         * device/include/pic16/pic18fregs.h,
6704           device/lib/pic16/pics.all,
6705           src/pic16/device.c: added 18f2455
6706         * device/lib/pic16/libdev/pic18f[68][567]20.c,
6707           device/include/pic16/{pic18f[68][567].h,usart.h}:
6708           replaced MULTIPLE_USARTS define with more relaible
6709           compatibility sfrs (for USART access)
6710
6711 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
6712
6713         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
6714           and the output asm file line is printed on two lines.
6715
6716 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6717
6718         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
6719           BGT, BLE, BHI, and BLS instructions
6720         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
6721           genCmpEq): removed
6722         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
6723           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
6724           fixes bug #1216342
6725         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
6726
6727 2005-06-15 Raphael Neider <rneider AT web.de>
6728
6729         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
6730         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
6731         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
6732           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
6733           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
6734
6735 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6736
6737         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
6738           Marcel Telka in bug #1215704
6739
6740 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
6741
6742         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
6743           located in shared memory bank.
6744
6745 2005-05-31 Raphael Neider <rneider AT web.de>
6746
6747         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
6748           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
6749           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
6750
6751 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
6752
6753         * device/lib/_strncpy.c: fixed the fix
6754
6755 2005-05-26 Raphael Neider <rneider AT web.de>
6756
6757         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
6758           initializers with \0, bug #1208187
6759         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
6760           intializers with \0, bug #1208187
6761
6762 2005-05-26 Raphael Neider <rneider AT web.de>
6763
6764         * src/pic16/glue.c (pic16_printIvalChar): fixed string
6765           initializers with \0, bug #1208187
6766         * src/pic16/main.c (_process_pragma): added sanity checks
6767           for stack position and size, emit warnings when appropriate
6768
6769 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
6770
6771         * device/lib/_strncpy.c: fixed not filling with \0
6772
6773 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6774
6775         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
6776           createFunction),
6777         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
6778           compound_statement),
6779         * src/SDCCsymt.h,
6780         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
6781
6782 2005-05-24 Raphael Neider <rneider AT web.de>
6783
6784         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
6785
6786 2005-05-24 Raphael Neider <rneider AT web.de>
6787
6788         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
6789           TRISE definitions, closes bug #1162453
6790
6791 2005-05-22 Raphael Neider <rneider AT web.de>
6792
6793         * src/pic16/main.c (_process_pragma): check for missing
6794           arguments to pragmas code and udata
6795         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
6796           consistency fixes to match other headers (thanks to Jim Paris)
6797         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
6798
6799 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
6800
6801         * src/SDCCicode.c (isOperandEqual): fixed missing ;
6802
6803 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
6804
6805         * support/regression/tests/bug1198642.c: new test
6806         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
6807         * src/SDCCcse.c (findPrevIc): added comment, please have a look
6808         * support/scripts/resource.h,
6809         * support/scripts/resource.rc,
6810         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
6811         * support/scripts/sdcc.ico: added 32x32 icon
6812
6813 2005-05-18 Raphael Neider <rneider AT web.de>
6814
6815         * device/lib/pic16/libdev/pic18f*.c,
6816         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
6817           keywords to "__sfr" and "__at (X)"
6818         * device/include/pic16/pic18fregs.h: added pic18f4520
6819         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
6820           #1203088 (MPLAB compatibility)
6821
6822 2005-05-17 Raphael Neider <rneider AT web.de>
6823
6824         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
6825         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
6826         * device/lib/pic16/pics.all: added new devices
6827         * src/pic16/device.c: added support for pic18f4520
6828
6829 2005-05-16 Raphael Neider <rneider AT web.de>
6830         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
6831         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
6832         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
6833           convenience function for bit access
6834
6835 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
6836
6837         * device/lib/printf_large.c: fixed bug 1193299
6838         * support/regression/tests/bug1057979.c: added test %3.3s
6839
6840 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6841
6842         * device/include/mcs51/8051.h,
6843         * device/include/mcs51/8052.h: made parseable with lint
6844         * device/include/mcs51/lint.h: added include file for (sp)lint
6845         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
6846         * doc/cdbfileformat.lyx,
6847         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
6848
6849 2005-05-14 Raphael Neider <rneider AT web.de>
6850
6851         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
6852         * device/lib/pic16/libc/stdlib/itoa.c (new)
6853         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
6854         * device/lib/pic16/libio/Makefile: exclude subdir according to
6855           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
6856         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
6857         * src/pic16/gen.c (genFunction): prevent annoying warning
6858         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
6859           nameclashes on BeOS
6860         * support/cpp2/cppmain.c (cpp_output_string): new
6861         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
6862           fixes bug 1116802
6863
6864 2005-05-13 Borut Razem <borut.razem AT siol.net>
6865
6866         * src/SDCCmain.c (linkEdit): fixed bug 1195202
6867
6868 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6869
6870         * .version: changed to version 2.5.1; back to bleeding edge development
6871
6872 2005-05-11 Borut Razem <borut.razem AT siol.net>
6873
6874         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
6875           generate PDF version 1.3 documents
6876
6877 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6878
6879         * .version: changed to version 2.5.0
6880
6881 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6882
6883         * doc/sdccman.lyx: updated weblinks, index and smaller updates
6884
6885 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6886
6887         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
6888         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
6889         well as many smaller updates.
6890         * .version: changed to version 2.5.0-pre1
6891
6892 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6893
6894         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
6895
6896 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
6897
6898         * support/regression/tests/bug1185672.c: added
6899         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
6900           bug 1185672
6901         * src/mcs51/gen.c (genCall): added comments, made it look safer
6902         * src/mcs51/gen.c (genEndFunction): simplified
6903
6904 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
6905
6906         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
6907
6908 2005-04-14 Borut Razem <borut.razem AT siol.net>
6909
6910         * fixed bug 1045046 - SIGSEGV with really simple code?:
6911           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
6912           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
6913
6914 2005-04-14 Borut Razem <borut.razem AT siol.net>
6915
6916         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
6917           src/pic16/device.h: temporarily disabled experimental #inline pragma
6918           for 2.5.0 release
6919
6920 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
6921
6922         * device/include/z80/stdio.h,
6923         * device/include/z80/string.h: removed these highly incomplete files so
6924           SDCC can use the default ones in device/include/
6925
6926 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6927
6928         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
6929         gcc warning.
6930         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
6931         fix sdcpp warnings.
6932
6933 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
6934
6935         * device/include/malloc.h: removed redundant __reentrant prototypes
6936         * device/lib/_mullong.c: added working xstack variant in asm (C version
6937           doesn't pass regression tests)
6938         * device/lib/bpx.c: used __data and made bpx char for mcs51
6939         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
6940           (createFunction): fixed bug with xstackPtr
6941         * src/SDCCcse.c: corrected comments
6942         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
6943           (killDeadCode, eBBlockFromiCode): removed unused code
6944         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
6945           corrected comments
6946         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
6947           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
6948           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
6949           (genModOneByte): fixed warning in MSVC
6950         * src/mcs51/main.c (): added comments
6951         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
6952
6953 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
6954
6955         * src/SDCCmain.c (linkEdit): oops, changed one line too many
6956
6957 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
6958
6959         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
6960
6961 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
6962
6963         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
6964         characters arrays of larger size than the declared one.
6965
6966 2005-04-10 Borut Razem <borut.razem AT siol.net>
6967
6968         * src/pic/gen.c (genInline),
6969           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
6970           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
6971           (findNextInstruction), (findPrevInstruction),
6972           (findInstructionUsingLabel),
6973           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
6974         * src/pic/pcode.c (findLabel): added missing '\n'
6975         * src/src.dsp: added SDCCdwarf2.c to the project
6976
6977 2005-04-09 Borut Razem <borut.razem AT siol.net>
6978
6979         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
6980
6981 2005-04-08 Raphael Neider <rneider AT web.de>
6982
6983         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
6984           into the chain after a given one) and mergeDefmapSymbols (combine
6985           defmap entries for each symbol per pcode)
6986         * (createDefmap): have defmap entries merged in the end
6987         * (defmapReplaceSymRef): split defmap entries covering two accesses to
6988           a symbol before replacing one access type's symbol, merge symbols in
6989           the end (replacement symbol might already have an entry)
6990         * (assignValnums): keep reference to written WREG intact
6991
6992 2005-04-08 Raphael Neider <rneider AT web.de>
6993
6994         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
6995           Alpha)
6996
6997 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
6998
6999         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
7000         bytes
7001
7002 2005-04-07 Raphael Neider <rneider AT web.de>
7003
7004         * device/include/pic16/usart.h: added compatibility defines for
7005           devices with more than one USART
7006         * device/include/pic16/pic18f[68][567]20.h: activated above defines
7007
7008 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7009
7010         * device/lib/Makefile.in: updated for port specific include
7011
7012 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7013
7014         * support/regression/ports/mcs51/spec.mk: added mcs51 include
7015
7016 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7017
7018         * device/include/8051.h,
7019         * device/include/8052.h,
7020         * device/include/at89S8252.h,
7021         * device/include/at89c55.h,
7022         * device/include/at89x051.h,
7023         * device/include/at89x51.h,
7024         * device/include/at89x52.h,
7025         * device/include/mcs51reg.h,
7026         * device/include/reg51.h,
7027         * device/include/reg764.h,
7028         * device/include/regc515c.h,
7029         * device/include/sab80515.h: (re)moved these 12 files
7030         * device/include/mcs51/8051.h,
7031         * device/include/mcs51/8052.h,
7032         * device/include/mcs51/at89S8252.h,
7033         * device/include/mcs51/at89c55.h,
7034         * device/include/mcs51/at89x051.h,
7035         * device/include/mcs51/at89x51.h,
7036         * device/include/mcs51/at89x52.h,
7037         * device/include/mcs51/mcs51reg.h,
7038         * device/include/mcs51/reg51.h,
7039         * device/include/mcs51/reg764.h,
7040         * device/include/mcs51/regc515c.h,
7041         * device/include/mcs51/sab80515.h: and added them here
7042
7043 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
7044
7045         * device/include/stdarg.h: changed SDCC specific keywords to double
7046           underlined form.
7047         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
7048           mcs51 and ds390.
7049         * device/include/hc08/mc68hc908gp32.h,
7050         * device/include/hc08/mc68hc908jb8.h,
7051         * device/include/hc08/mc68hc908jkjl.h,
7052         * device/include/hc08/mc68hc908qy.h: fixed comments
7053         * device/include/mcs51/README: updated
7054         * device/include/mcs51/c8051f120.h: added PINRSF
7055         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
7056         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
7057           amidst code. Also inline is not supported.
7058
7059 2005-04-06 Raphael Neider <rneider AT web.de>
7060
7061         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
7062         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
7063           callers stack/frame pointers
7064
7065 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
7066
7067         * device/include/pic16/usart.h: added, missing in previous commit,
7068         * device/include/pic16/adc.h: fixed typo,
7069         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
7070         commit,
7071         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
7072         <p18fxxx.inc>
7073         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
7074         uninitialized because a bug appears with gplink
7075         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
7076         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
7077         complains for unrecognised option
7078
7079 2005-04-05 Raphael Neider <rneider AT web.de>
7080
7081         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
7082           structs as well (using memcpy)
7083         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
7084           on ISRs (GOTO has no label)
7085         * src/pic16/device.h: added OF_OPTIMIZE_DF
7086         * src/pic16/main.c: added compiler switch --optimize-df to enable the
7087           new data flow analysis/optimization
7088         * src/pic16/pcode.c: added (prototypes for and implementation of)
7089           dataflow analysis functions, fixed pCodeInstructions' inCond and
7090           outCond values, made RCALL a branch instruction
7091         * (pic16_unlinkpCode): keep C line if possible
7092         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
7093           C line moved if possible
7094         * (pic16_getRegFrompCodeOp): NEW, improved version of...
7095         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
7096           to use new pic16_getRegFrompCodeOp (works for more SFRs)
7097         * (pic16_BuildFlow): fixed skip instructions with label (did not start
7098           new flow)
7099         * (pic16_getJumptabpCode): NEW, needed in...
7100         * (LinkFlow): fixed handling of jumptables, calls and conditional
7101           branches
7102         * (pic16_InsertCommentAfter): NEW
7103         * (pic16_pCodeReplace): made verbose and flow preserving
7104         * (AnalyzeFlow): added call to data flow analysis
7105         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
7106         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
7107         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
7108
7109 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7110
7111         * src/SDCCast.c (decorateType): fixed bug #1105626
7112
7113 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
7114
7115         * device/include/asm/pic16/features.h,
7116         * pic18f*.h headers,
7117         * device/include/pic16/adc.h,
7118         * device/include/pic16/delay.h,
7119         * device/include/pic16/i2c.h,
7120         * device/include/pic16/malloc.h,
7121         * device/include/pic16/stdio.h,
7122         * device/include/pic16/stdlib.h,
7123         * device/include/pic16/string.h,
7124         * device/lib/pic16/libc/stdio/printf_tiny.c,
7125         * device/lib/pic16/libc/stdio/printf_small.c,
7126         * device/lib/pic16/libc/stdio/strmgpsim.c,
7127         * device/lib/pic16/libc/stdio/strmmssp.c,
7128         * device/lib/pic16/libc/stdio/strmusart.c,
7129         * device/lib/pic16/libc/stdio/vfprintf.c,
7130         * device/lib/pic16/libc/stdlib/ltoa.c,
7131         * device/lib/pic16/libc/stdlib/putchar.c,
7132         * device/lib/pic16/libc/stdlib/x_ftoa.c,
7133         * device/lib/pic16/libc/stdlib/memchrpgm.c,
7134         * device/lib/pic16/libc/stdlib/memchrram.c,
7135         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
7136         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
7137         * device/lib/pic16/libio/adc/adcbusy.c,
7138         * device/lib/pic16/libio/adc/adcread.c,
7139         * device/lib/pic16/libio/adc/adcsetch.c,
7140         * device/lib/pic16/libio/usart/ubaud.c,
7141         * device/lib/pic16/libio/usart/ubusy.c,
7142         * device/lib/pic16/libio/usart/udrdy.c,
7143         * device/lib/pic16/libio/usart/uopen.c,
7144         * device/lib/pic16/libio/usart/uputc.c,
7145         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
7146         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
7147         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
7148         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
7149         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
7150         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
7151         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
7152         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
7153         specific keywords to double underlined form,
7154         * device/lib/pic16/libc/Makefile.rules,
7155         * device/lib/pic16/libsdcc/Makefile.rules,
7156         * device/lib/pic16/libm/Makefile,
7157         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
7158         to compile with C standard set in Makefile.common
7159         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
7160         rand.c and crc.c in compilation process,
7161         * device/lib/pic16/libsdcc/int/divuint.c,
7162         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
7163         `c' from signed to unsigned,
7164         * device/lib/pic16/startup/crt0.c,
7165         * device/lib/pic16/startup/crt0i.c,
7166         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
7167         keywords to double underlined form, bug fixes in _do_cinit function
7168         which prevented the correct initialization of the .idata segment,
7169         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
7170         core to enter a infinite loop
7171         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
7172
7173 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7174
7175         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
7176
7177 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7178
7179         * device/include/Makefile.in: add support for hc08 subdirectory
7180         * device/include/hc08/: new subdirectory
7181         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
7182         Lucas Loizaga, thanks!
7183         * device/include/hc08/mc68hc908qy.h,
7184         * device/include/hc08/mc68hc908gp32.h,
7185         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
7186         their own directory. Changed internal macro names to use the compiler
7187         reserved namespace. Changed SDCC specific keywords to double
7188         underlined form.
7189         * device/include/math.h,
7190         * device/include/malloc.h,
7191         * device/include/stdarg.h,
7192         * device/include/stdbool.h
7193         * device/include/string.h,
7194         * device/include/tinibios.h,
7195         * device/include/ds400rom.h,
7196         * device/include/8051.h,
7197         * device/include/8052.h,
7198         * device/include/80c51xa.h,
7199         * device/include/at89c55.h,
7200         * device/include/at89S8252.h,
7201         * device/include/at89x51.h,
7202         * device/include/at89x52.h,
7203         * device/include/ds80c390.h,
7204         * device/include/reg764.h,
7205         * device/include/regc515c.h,
7206         * device/include/sab80515.h,
7207         * device/include/mcs51/c8051f000.h,
7208         * device/include/mcs51/c8051f018.h,
7209         * device/include/mcs51/c8051f020.h,
7210         * device/include/mcs51/c8051f040.h,
7211         * device/include/mcs51/c8051f060.h,
7212         * device/include/mcs51/c8051f120.h,
7213         * device/include/mcs51/c8051f300.h,
7214         * device/include/mcs51/c8051f310.h,
7215         * device/include/mcs51/c8051f320.h,
7216         * device/include/mcs51/c8051f330.h,
7217         * device/include/mcs51/c8051f350.h,
7218         * device/include/z180.h: Changed SDCC specific keywords to double
7219         underlined form.
7220
7221 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
7222
7223         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
7224         18F4455,
7225         * (pic16_assignConfigWordValue): disable testing of configuration
7226         register value with config mask,
7227         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
7228         function with port->fun_prefix,
7229         * (genFunction): when generating a naked interrupt function never
7230         create an absolute segment placed in interrupt vector address, place
7231         the actual interrupt function at IVA instead, when an interrupt
7232         function is generated with unspecified interrupt then do not create
7233         the absolute section,
7234         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
7235         code for generating a call to generic pointer get/put function with
7236         a call to function pic16_callGenericPointer(),
7237         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
7238         the call to the generic pointer get/put functions with prefixing the
7239         function name with port->fun_prefix,
7240         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
7241         * src/pic16/main.c (_process_pragma): prefix function with
7242         port->fun_prefix,
7243         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
7244         calling assembler, old 18Fxxxx macro is deprecated,
7245         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
7246         PC_ASMDIR in while condition,
7247         * (findInstruction): add PC_ASMDIR in while condition,
7248         * (buildCallTree): prefix main with port->fun_prefix,
7249         * (pic16_pCode2str): fixed bug that didn't emit the memory access
7250         identifier for variable with banked access in instructions BTFSS,
7251         BTFSC, BCF, BSF, BTG
7252         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
7253         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
7254         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
7255         perform optimization when enviroment variable NO_REG_OPT is set,
7256         * (insideLRBlock): NEW, return 1 if register is inside an
7257         INF_LOCALREGS block,
7258         * (RemoveRegFromLRBlock): remove a register that is completely
7259         eliminated by register optimization, but it is still left in local
7260         register store/restore in/from stack block,
7261         * (Remove2pcodes): after removing register, check to see if it
7262         should be removed from local register store/restore in/from stack
7263         block,
7264         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
7265         DUMMY_READ_VOLATILE,
7266
7267         * device/include/pic16/adc.h: minor prototype modifications and
7268         update,
7269         * device/include/pic16/malloc.h: added GPL notice various
7270         modifications,
7271         * device/include/pic16/stdint.h: NEW, standard header for ints
7272         * device/include/pic16/delay.h: NEW, header for delay functions,
7273         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
7274         delay1mtcy,
7275         * device/include/pic16/signal.h: NEW, header providing helper macros
7276         for implementing signal handlers,
7277         * device/include/pic16/stdio.h: added prototypes for functions,
7278         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
7279         prototypes for stdin and stdout, added macro PUTCHAR to
7280         automatically implement putchar function prototype,
7281         * device/include/pic16/usart.h: modified and updated USART library,
7282         * device/lib/pic16/libio/adc/,
7283         * device/lib/pic16/libio/i2c: some modifications to improve library
7284         performance,
7285         * device/lib/pic16/libc/stdio/: modifications for the new printf*
7286         family of functions,
7287         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
7288         family of functions and other sources,
7289         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
7290         of the PIC18Fxx[28] devices,
7291         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
7292         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
7293         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
7294         _do_cinit function, because the previous failed when local variables
7295         where not placed in the same memory bank,
7296         * device/lib/pic16/libsdcc/char/: various modifications to improve
7297         library performance,
7298         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
7299         information on the new functions of the c library and more...
7300
7301 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7302
7303         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
7304
7305 2005-03-26 Raphael Neider <rneider AT web.de>
7306
7307         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
7308           if condition == CARRY)
7309         * (genCmp): adapted to new genSkipc semantics
7310         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
7311           on rIfx (genCmp was broken)
7312
7313 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7314
7315         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
7316         * src/z80/main.c (_keywords[]),
7317         * src/SDCCglobal.h (struct options),
7318         * src/SDCC.y,
7319         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
7320         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
7321         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
7322         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
7323         always available in leading double underscore form. The C99 support is
7324         mostly missing, but it's a start.
7325         * support/regression/tests/bug-227710.c: fixed nonconforming use of
7326         reserved identifier "__data".
7327
7328 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
7329
7330         * src/mcs51/peeph.def: fixed bug 1170013
7331
7332 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
7333
7334         * device/include/mcs51reg.h: fixed bug 842007
7335
7336 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7337
7338         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
7339         last time.
7340
7341 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7342
7343         * src/port.h (struct PORT),
7344         * src/avr/ralloc.c (avr_assignRegisters),
7345         * src/avr/main.c,
7346         * src/ds390/ralloc.c (ds390_assignRegisters),
7347         * src/ds390/main.c,
7348         * src/hc08/ralloc.c (hc08_assignRegisters),
7349         * src/hc08/main.c,
7350         * src/mcs51/ralloc.c (mcs51_assignRegisters),
7351         * src/mcs51/main.c,
7352         * src/pic/ralloc.c (pic14_assignRegisters),
7353         * src/pic/main.c,
7354         * src/pic16/ralloc.c (pic16_assignRegisters),
7355         * src/pic16/main.c,
7356         * src/xa51/ralloc.c (xa51_assignRegisters),
7357         * src/xa51/main.c,
7358         * src/z80/ralloc.c (z80_assignRegisters),
7359         * src/z80/ralloc.h,
7360         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
7361         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
7362         * src/SDCCcse.h,
7363         * src/SDCCdflow.c (computeDataFlow),
7364         * src/SDCCdflow.h,
7365         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
7366         * src/SDCCloop.h,
7367         * src/SDCCcflow.c (*),
7368         * src/SDCCcflow.h,
7369         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
7370         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
7371         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
7372         immedDom() returning wrong block; probably fixes bug #1160833)
7373
7374 2005-03-20 Borut Razem <borut.razem AT siol.net>
7375
7376         * support/scripts/inc2h.pl: WIN32 port
7377
7378 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
7379
7380         * device/lib/makefile.in: added abs.c and labs.c
7381
7382 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
7383
7384         * device/include/stdint.h: added
7385         * device/lib/abs.c: added
7386         * device/lib/labs.c: added
7387         * device/include/stdlib.h: added abs() and labs() prototypes
7388         * device/lib/libsdcc.lib: added abs and labs
7389         * device/include/float.h,
7390         * device/lib/_fsmul.c,
7391         * device/lib/printf_fast.c,
7392         * device/lib/printf_tiny.c: updated comments
7393
7394 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7395
7396         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
7397         bug #1164313
7398
7399 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7400
7401         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
7402         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
7403
7404 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
7405
7406         * device/lib/printf_large.c: removed inline assembly for portability and
7407           readability. Use printf_fast if speed or size are more important.
7408         * src/pic16/gen.c: removed conditions around use of DEBUGpc
7409         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
7410
7411 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
7412
7413         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
7414         prevent compiler warning
7415
7416 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
7417
7418         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
7419         moved to level 0 and declared as static. Also they are explicit
7420         placed in access bank. This was necessery because some times they
7421         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
7422         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
7423         optimizations. Currently only compare to unsigned char is implemented,
7424         * src/pic16/gen.c: added fReturnIdx array,
7425         * (struct resolvedIfx) is moved to gen.h and made public,
7426         * (struct _G): added sregsAlloc and sregsAllocSet fields,
7427         * (aopForSym): added an optimization to directly store in stack of
7428         the operand of a SEND iCode,
7429         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
7430         but as registers instead (AOP_REG) using the fReturnIdx array,
7431         * (pic16_freeAsmop): remove the freed register from the
7432         _G.sregsAlloc field,
7433         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
7434         a compare of 'WREG',
7435         * (pic16_popGetTempRegCond): changed function prototype, now
7436         function takes also a bitVector argument v which holds the current
7437         set of registers that are allocated for stack access by aopForSym,
7438         registers allocated in aopForSym for accessing stack symbols are not
7439         any more part of the functions usedRegs field,
7440         * (genCall): some times aopOp is called for a stack variable to be
7441         send, aopForSym might perform the push, if this is true make sure
7442         that genCall doesn't push the variable twice by testing _G.resDirect,
7443         * (genFunction): changed testing for unspecified interrupt number
7444         from 256 to INTNO_UNSPEC,
7445         * modified selection scheme of frame pointer generation. Previously
7446         if function did use local registers a frame pointer was generated,
7447         now a frame pointer is generated only if function has arguments
7448         (that need PLUSW2 register access), or has stack arguments, or the
7449         compiler is not instructed to omit the frame pointer,
7450         * (genEndFunction): before restoring local registers that were saved
7451         in the function preamble, also restore the registers that *might*
7452         have been allocated for stack access,
7453         * (genRet): removed some old comments,
7454         * (genCmp, the active (RN's) version): added a call to the
7455         pic16_genCmp_special function to perform the compare with a more
7456         robust and optimized way,
7457         * (genInline): a feature has been added in inline code generation,
7458         which allows a wildcard variable substitution when writing inline
7459         assembly. Code is incomplete and experimental therefore undocumented,
7460         * (genCast): changed order of aopOp for result and right to allow
7461         aopForSym to directly load the result if possible,
7462         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
7463         perform an optimized compare on some selected special occasions,
7464         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
7465         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
7466         generate an IVT any more,
7467         * src/pic16/main.c (pic16_optionsTable): added command line option
7468         --optimize-cmp,
7469         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
7470         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
7471         macros,
7472         * src/pic16/NOTES: Raphael Neider added in list of active developers
7473         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
7474         jumptable_end to prevent bug #,
7475         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
7476         inCond and outCond fields,
7477         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
7478         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
7479         turn off register spilling,
7480         * (packRegsForOneUse): synced with other ports' versions although it
7481         is not used currently,
7482         * (pic16_packRegisters): added an optimization while reading
7483         structure bitfields, some registers may be saved (malloc code is
7484         decreased by 80 bytes)
7485
7486 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
7487
7488         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
7489         left is a bitfield, if yes, then don't optimize assignment. Perhaps
7490         this can be optimized more?
7491
7492 2005-03-10 Raphael Neider <rneider AT web.de>
7493
7494         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
7495           genNearPointerGet): (hopefully) fixed access to bitfields via
7496           pointers (p->bitN = x; and x = p->bitN; failed)
7497
7498 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
7499
7500         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
7501
7502 2005-03-09 Raphael Neider <rneider AT web.de>
7503
7504         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
7505
7506 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
7507
7508         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
7509         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
7510           (regTypeNum): set REG_BIT type if necessary
7511         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
7512         * support/regression/tests/critical.c: check bug 1144613
7513
7514 2005-03-02 Raphael Neider <rneider AT web.de>
7515
7516         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
7517
7518 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7519
7520         * src/avr/ralloc.c (serialRegAssign),
7521         * src/ds390/ralloc.c (serialRegAssign),
7522         * src/hc08/ralloc.c (serialRegAssign),
7523         * src/mcs51/ralloc.c (serialRegAssign),
7524         * src/pic/ralloc.c (serialRegAssign),
7525         * src/pic16/ralloc.c (serialRegAssign),
7526         * src/xa51/ralloc.c (serialRegAssign),
7527         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
7528
7529 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
7530
7531         * src/SDCCast.c (decorateType): fixed bug 1124787
7532
7533 2005-02-20 Hubert Sack <sack AT digiplan.de>
7534         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7535
7536         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
7537         patch #1121755
7538
7539 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7540
7541         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
7542         to keep the correct label reference count when adding/removing references
7543         to labels. A peephole file using this is appended to patch #1144962.
7544
7545 2005-02-14 Raphael Neider <rneider AT web.de>
7546
7547         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
7548         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
7549         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
7550           retrievals of result operand's value on assignment
7551
7552 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
7553
7554         * device/include/pic16/string.h: modified prototype for memccpy()
7555         to memccpy(void *, void *, char, size_t)
7556         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
7557         check whether to omit frame pointer or not,
7558         * (genInline): convert all occurences of "\n" to LF in inline
7559         assembler blocks, this helps formatting the inline text,
7560         * (pic16_loadFSR0): modified prototype,
7561         * (genNearPointerGet, genNearPointerSet): reorganization of code,
7562         removed some 8051 legacy code,
7563         * (genPackBits): enabled handling bitfields exceeding one byte in size,
7564         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
7565         before allocating temporary registers in functions,
7566
7567 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
7568
7569         * support/regression/tests/bitvars.c: corrected the "fix"
7570
7571 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
7572
7573         * support/regression/tests/bitvars.c,
7574         * support/regression/tests/bitwise.c,
7575         * support/regression/tests/rotate.c: "fixed" problems on Alpha
7576
7577 2005-02-10 Raphael Neider <rneider AT web.de>
7578
7579         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
7580           different size for Alpha
7581         * src/pic16/gen.c (genCmpEq) : improved compare with 0
7582
7583 2005-02-09 Raphael Neider <rneider AT web.de>
7584
7585         * src/SDCC.lex(doPragma) : save and restore warning options as well
7586           (also added new stack plus clone- and copyAndFreeSDCCERRG())
7587         * have #pragma less_pedantic set the errorlevel to WARNING
7588           (fixes #1117001)
7589         * (cloneOptimize) : fixed wrong malloc's size
7590         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
7591           facilitate correct handling of #pragma (save|restore)
7592
7593 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
7594
7595         * src/mcs51/gen.c: removed non-standard C nameless struct/union
7596
7597 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
7598
7599         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
7600
7601 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
7602
7603         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
7604
7605 2005-02-02 Raphael Neider <rneider AT web.de>
7606
7607         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
7608         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
7609         * (pic16_storeForReturn): fixed to allow returning function pointers
7610         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
7611         * device/include/pic16/{stddef.h,stdbool.h}: added
7612
7613 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
7614
7615         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
7616
7617 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
7618
7619         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
7620         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
7621          appeared to be required
7622
7623 2005-01-31 Borut Razem <borut.razem AT siol.net>
7624
7625         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
7626           include/mcs51 and include/z80 directories to the package
7627
7628 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7629
7630         * src/hc08/gen.c (genFunction): fixed bug #1112752
7631
7632 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7633
7634         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
7635
7636 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7637
7638         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
7639
7640 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
7641
7642         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
7643
7644 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
7645
7646         * device/include/c8051fxxx.h: removed these 6 files
7647         * device/include/mcs51/c8051fxxx.h: added these 11 new files
7648
7649 2005-01-26 Raphael Neider <rneider AT web.de>
7650
7651         * src/pic16/gen.c (genAssign): fixed assignment from longs
7652           in codespace (were cut to three bytes)
7653         * (genDummyRead): implemented (except for CODESPACE...),
7654           fixed bug #1108575
7655         * src/pic16/glue.c (emitStatistics): beautified
7656         * device/lib/pic16/libm/Makefile: added include path
7657
7658 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7659
7660         * src/z80/gen.c (aopPut): fixed bug #1103902
7661
7662 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7663
7664         * device/lib/expf.c: fixed bug #1095792
7665
7666 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
7667
7668         * device/lib/pic16/libm: added Math library sources
7669
7670 2005-01-24 Raphael Neider <rneider AT web.de>
7671
7672         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
7673           to enable upcast to pCodeOpReg2 (there is no type tag to
7674           differenciate the two and pic16_popGet2p cast into PCOR2)
7675         * src/pic16/main.c (_process_pragma): fixed another malloc bug
7676           (sizeof(sectNames) changed to sizeof(sectName))
7677           Both patches fix segfaults under MinGW.
7678
7679 2005-01-23 Raphael Neider <rneider AT web.de>
7680
7681         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
7682           Safe_[mc]?alloc()'ed variables
7683         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
7684           of (byte sized) temporaries (assign them to WREG for now)
7685         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
7686           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
7687           this might fix SIGSEGVs on MinGW...
7688         * src/SDCCopt.c (killDeadCode): restored original behaviour
7689           (volatile operands might get thrown away though)
7690
7691 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
7692
7693         * src/pic16/gen.c: fixed bug #1106975,
7694         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
7695         pointer update, INTCON is saved, global interrupts are disabled and
7696         restored after updateing TOS.
7697         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
7698         * added function attribute 'shadowregs' to take advantage of shadow
7699         registers,
7700         * added function attribute 'wparam' as an alternative to the wparam
7701         pragma,
7702         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
7703         user declares a non-ISR function as 'shadowregs',
7704         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
7705
7706 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
7707
7708         * .version: bumped version number to 2.4.8
7709         * device/lib/pic16/pics.all: list of PIC18F devices supported by
7710         pic16 port,
7711         * device/lib/pic16/libio/i2c/: I2C module support library,
7712         * device/include/pic16/i2c.h: I2C support library header,
7713         * device/lib/pic16/libc/stdio/: standard IO support sources,
7714         * (printf_small.c): printf_small() source, supports float print,
7715         * (printf_tiny.c): printf_tiny() source, does not support floats,
7716         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
7717         enable global optimizations for entire library source, other
7718         Makefiles in the source tree are also modified to reflect this,
7719         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
7720         function,
7721         * doc/sdccman.lyx: updated to reflect new changes,
7722         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
7723         sym->onStack if-case,
7724         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
7725         sbit, idata, _idata, xdata, _xdata,
7726         * added pragma library, to link an external library, (see doc),
7727         * removed command line options, --pomit-config-words, --pomit-ivt,
7728         --pleave-reset-vector,
7729         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
7730         when calling assembler to reflect memory model used, also define
7731         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
7732         reflect stack model used,
7733         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
7734         on stack return NULL,
7735
7736 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
7737
7738         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
7739           of the operands is volatile. Fixes #1020220
7740
7741 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
7742
7743         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
7744         * (OptimizeRegUsage): make sure that there is really no other flow where
7745           the first pCode is used
7746
7747 2005-01-22 Raphael Neider <rneider AT web.de>
7748
7749         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
7750           to fix #1106967 (pCode->seq are not set up correctly)
7751
7752 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7753
7754         * src/SDCCglue.c (glue): make sure code area is declared before the
7755         static initialization area.
7756
7757 2005-01-21 Raphael Neider <rneider AT web.de>
7758
7759         * device/lib/Makefile.in: fixed test for pic16 install dir
7760         * device/lib/pic16/*/Makefile*: modified compile flags to enable
7761           optimizations
7762         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
7763           added --optimize-goto compiler switch and pragma wparam documentation
7764         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
7765         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
7766           and PRODH closing bug #1071770 (peephole optimizer)
7767
7768 2005-01-19 Raphael Neider <rneider AT web.de>
7769
7770         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
7771           cmdLine buffers (used when calling sdcpp...) are large enough
7772           (MAX_PATH=256 truncates arguments leading to system halts when
7773           used in MinGW...)
7774         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
7775         * (genUminus): rewritten to for efficiency
7776         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
7777           used uninitialized in some cases)
7778         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
7779           copy the third byte from the int -- now assumes 0x80 (data memory)
7780         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
7781           operands (genAddLit expects the iCode's operands to swapped as
7782           well), fixed leftover bytes (crashed for short left operands)
7783         * (pic16_genMinusDec): performance improvements, removed false
7784           PIC14 emitSKPNCs
7785         * (pic16_genMinus): fixed to cope with differently sized operands
7786         * src/pic16/glue.c (pic16_glue): added new banksel optimization
7787           for --obanksel > 1
7788         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
7789         * src/pic16/graph.[ch]: implementation of directed graphs, used by
7790           new banksel optimization
7791         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
7792           analysis for temporary registers (segfaults...)
7793         * src/pic16/peeph.def: added rule
7794
7795 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
7796
7797         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
7798         which converts a float number to its ASCII representation
7799         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
7800         functions to convert the fractional and integer part of a float to ASCII,
7801         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
7802         realloc.c): added _MALLOC_SPEC to explicit place variables in data
7803         ram
7804         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
7805         _STATMEM macros,
7806         * device/include/pic16/adc.h: added GPL info,
7807         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
7808         a pCodeOp as tested operand,
7809         * (genNearPointerGet): optimized bit testing, does not use
7810         intermediate register for bit value, test directly instead with
7811         BTFSS, BTFSC, works only for single bits,
7812         * (genpic16Code): dump the name of the iCode in the asm,
7813         * src/pic16/ralloc.c (decodeOp): removed static declaration and
7814         renamed to pic16_decodeOp,
7815         * (serialRegAssign): do not allocate a temporary register for iCode
7816         sequences that test a single bit for 1/0
7817
7818 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
7819
7820         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
7821         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
7822         access stack and frame pointers. They are initially assigned to
7823         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
7824         accessing SFRs. Updated all occurences of modification of stack or
7825         frame pointer in gen.c and pcode.c,
7826         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
7827         assigning of a literal value to pointers,
7828         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
7829         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
7830         selected
7831
7832 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
7833
7834         * doc/sdccman.lyx: update documentation about stack pragma, added
7835         some info for stack memory models
7836
7837 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7838
7839         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
7840
7841 2005-01-08 Raphael Neider <rneider AT web.de>
7842
7843         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
7844           udata sections to fix bug #1097823
7845
7846 2005-01-05 Raphael Neider <rneider AT web.de>
7847
7848         * src/pic16/gen.c (genGenericShift): added handling of differently
7849           sized left operand and result
7850
7851 2005-01-04 Raphael Neider <rneider AT web.de>
7852
7853         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
7854         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
7855           to hold the condition bit)
7856         * added new version of genCmp (old code available via #define)
7857         * added new version of genShiftLeft/genShiftRight in a generic
7858           way, now supports shifting by negative values
7859         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
7860           shiftCount (expected by genGenericShift)
7861         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
7862         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
7863           dump
7864         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
7865           is an invalid literal too...)
7866
7867 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
7868
7869         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
7870         from Raphael Neider,
7871         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
7872         for 8-bit literals. This fixes some literal operands which are sign
7873         extended to 16-bits ints when instruction needs only 8-bits.
7874
7875 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
7876
7877         * device/lib/logf.c: added mcs51 assembly version
7878         * device/lib/expf.c: added mcs51 assembly version
7879         * device/lib/_logexpf.c: new shared asm code for expf and logf
7880         * device/include/math.h: add defines for assembly math library
7881         * device/lib/Makefile.in: build new _logexpf.c
7882         * device/lib/libfloat.lib: use new _logexpf.c
7883
7884 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
7885
7886         * src/pic/device.c
7887         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
7888           device types which have less than 0x7f registers.
7889
7890 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
7891
7892         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
7893
7894 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
7895
7896         * device/lib/printf_fast.c: only build on supported arch.
7897         * device/lib/printf_tiny.c: only build on supported arch.
7898         * device/lib/printf_fast_f.c: only build if asm float lib
7899         * device/lib/_fsget1arg.c: only build if asm float lib
7900         * device/lib/_fsget2args.c: only build if asm float lib
7901         * device/lib/_fsnormalize.c: only build if asm float lib
7902         * device/lib/_fsreturnval.c: only build if asm float lib
7903         * device/lib/_fsrshift.c: only build if asm float lib
7904         * device/lib/_fsswapargs.c: only build if asm float lib
7905         * device/include/stdio.h: don't provide print_fast,
7906           print_fast_f, print_tiny prototypes if --xstack used
7907
7908 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
7909
7910         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
7911         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
7912           to the SOURCES
7913
7914 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
7915
7916         * device/lib/printf_fast_f.c: same as printf_fast, but
7917           with floating point enabled
7918         * device/lib/printf_fast.c: minor tweaks
7919         * device/include/stdio.h: add printf_fast_f
7920
7921 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
7922
7923         * src/SDCCmain.c: make --float-reent default for mcs51
7924         * device/lib/_fsadd.c: added mcs51 assembly version
7925         * device/lib/_fssub.c: added mcs51 assembly version
7926         * device/lib/_fsmul.c: added mcs51 assembly version
7927         * device/lib/_fsdiv.c: added mcs51 assembly version
7928         * device/lib/_fseq.c: added mcs51 assembly version
7929         * device/lib/_fsneq.c: added mcs51 assembly version
7930         * device/lib/_fsgt.c: added mcs51 assembly version
7931         * device/lib/_fslt.c: added mcs51 assembly version
7932         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
7933         * device/lib/Makefile.in: add _fscmp to build
7934         * device/lib/libfloat.lib: add _fscmp to build
7935
7936 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
7937
7938         * device/lib/_fs2slong.c: added mcs51 assembly version
7939         * device/lib/_fs2sint.c: added mcs51 assembly version
7940         * device/lib/_fs2schar.c: added mcs51 assembly version
7941         * device/lib/_fs2ulong.c: added mcs51 assembly version
7942         * device/lib/_fs2uint.c: added mcs51 assembly version
7943         * device/lib/_fs2uchar.c: added mcs51 assembly version
7944         * device/lib/_slong2fs.c: added mcs51 assembly version
7945         * device/lib/_sint2fs.c: added mcs51 assembly version
7946         * device/lib/_schar2fs.c: added mcs51 assembly version
7947         * device/lib/_ulong2fs.c: added mcs51 assembly version
7948         * device/lib/_uint2fs.c: added mcs51 assembly version
7949         * device/lib/_uchar2fs.c: added mcs51 assembly version
7950         * device/include/float.h: added #define to select asm vs c
7951
7952 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
7953
7954         * device/lib/printf_fast.c: improvements to float output
7955         * device/include/float.h: add defines for assembly float library
7956         * device/lib/_fsget1arg.c: receive 1 float arg
7957         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
7958         * device/lib/_fsnormalize.c: normalize a float
7959         * device/lib/_fsreturnval.c: return float, various helper routines
7960         * device/lib/_fsrshift.c: right shift a float's mantissa
7961         * device/lib/_fsswapargs.c: swap 2 floats
7962         * device/lib/Makefile.in: build these 6 new files for mcs51
7963         * device/lib/libfloat.lib: add these 6 files to the library
7964
7965 2004-12-26 Borut Razem <borut.razem AT siol.net>
7966
7967         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
7968           built by gcc 3.4.2
7969
7970 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
7971
7972         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
7973           and fully reentrant and register bank neutral.
7974         * device/lib/printf_fast.c: added float (not enabled by default),
7975           added compact/slower integer (also not enabled by default),
7976           improved size/speed of fast integer code, other minor changes
7977         * device/include/stdio.h, device/lib/Makefile.in,
7978           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
7979
7980 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
7981
7982         * src/pic16/pcode.c: declaring variables other than at the start of a
7983           block is not supported in C by VC6.
7984
7985 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
7986
7987         * applied a previous patch from Raphael Neider that wasn't included
7988         in the previous commits, which fixes infinite loops within jumptable
7989         improvements,
7990         * made some fixes that previous patches introduced
7991
7992 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
7993
7994         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
7995         that fixes an issue with AOP_PCODE asmop's offset,
7996         * (pic16_popCopyReg): update instance field too,
7997         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
7998         function of pic port,
7999         * (genCmp, genAnd, genAssign),
8000         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
8001
8002 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
8003
8004         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
8005         variables initial values to idata section,
8006         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
8007         variables in some functions. This utilizes parmBytes field of iCode
8008         structure to hold the offset of the variable in stack. (might be
8009         able to use the stack field too?)
8010         * applied patch from Raphael Neider # ### , # ###
8011         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
8012         variable initial values in idata section,
8013         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
8014         for static variables with initial value
8015         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
8016         applied fix in while loop from Raphael Neider.
8017
8018 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
8019
8020         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
8021         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
8022         * src/ds390/ralloc.c (serialRegAssign): spill bits
8023         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
8024         * support/Util/SDCCerr.c,
8025         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
8026         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
8027         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
8028
8029 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
8030
8031         * device/include/sdcc-lib.h: inserted LGPL, added includes
8032           asm/ds390/features.h and asm/mcs51/features.h
8033         * device/include/asm/default/features.h,
8034         * device/include/asm/gbz80/features.h,
8035         * device/include/asm/z80/features.h: added empty _AUTOMEM
8036           and _STATMEM
8037         * device/include/asm/ds390/features.h,
8038         * device/include/asm/mcs51/features.h: added files with defines for
8039           _AUTOMEM and _STATMEM indicating automatic and static storage class
8040         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
8041         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
8042         * src/SDCCicode.c (geniCodeCast),
8043         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
8044         * src/SDCCloop.c (loopInduction): removed unused variable lr
8045         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
8046           to convertToFcall to include char modulo (RFE 1065037), added check
8047           if left operand is unsigned and use abs of literal value
8048         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
8049           as it doesn't work after conversion from peephole.def to peephole.rul
8050         * src/mcs51/gen.c (toBoolean): added check for size,
8051           (genModOneByte): optimized code for signed char modulo a literal
8052           power of 2 (thanks to Hubert Sack),
8053           (genRRC): removed unnecessary "clr c",
8054           (genRLC): replaced "add a,acc" with cheaper "rlc a"
8055         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
8056           jump optimization,
8057           swapped rules 256.c and 256.d,
8058           extended 256.d by using new multiple checks (thanks Erik),
8059           added rules 256.e and 256.f,
8060           updated rule 261.a and 261.b to new generated code
8061         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
8062
8063 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8064
8065         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
8066           induction related bugs, including first part of bug #1074377
8067
8068 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
8069
8070         * applied patch from bug-report #1076292,
8071         * applied patches for genAnd and Goto-optimizations for Raphael
8072         Neider,
8073         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
8074         dump a less iCode information,
8075         * src/pic16/device.h (pic16_options_t): added field debgen,
8076         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
8077         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
8078         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
8079         puclic,
8080         * (various functions): added macros FENTRY and FENTRY2 to functions,
8081         to emit function prologue,
8082         * (various functions): fixed indentation,
8083         * (genNearPointerGet): fixed loading of FSR0,
8084         * (genPackBits): applied patch from Raphael Neider to fix updating
8085         of FSR0 and touching only the modified bits,
8086         * src/pic16/genarith.c (various functions): added macros FENTRY to
8087         emit function prologue in comments,
8088         * src/pic16/pcode.h: added functions debugf2, debugf3,
8089         * src/pic16/ralloc.c: partial fix for packForPush caused
8090         segmentation fault,
8091
8092 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8093
8094         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
8095           <stsp AT users.sourceforge.net> with reversed byte order
8096         * support/regression/tests/rotate.c: added (ds390 skips some tests)
8097
8098 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8099
8100         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
8101           bug #1074377
8102         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
8103         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
8104
8105 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
8106
8107         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
8108
8109 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8110
8111         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
8112           conditions,
8113           (setFromConditionArgs): friendly operand parser for peephole rules,
8114           (operandBaseName, operandsNotRelated): new peephole condition
8115           "operandsNotRelated" -- similar to "operandsNotSame", but takes
8116           architecture specific register naming into account, handles n-way
8117           comparisons, and supports quoted literals
8118         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
8119
8120 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8121
8122         * src/mcs51/peeph.def: fixed bug #1076940
8123
8124 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
8125
8126         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
8127
8128 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8129
8130         Adding support for replacing ljmps with sjmps in jumptables
8131         generated for switch statements. For now you need to set the
8132         environment variable SDCC_SJMP_JUMPTABLE to enable this.
8133         Now 4 algorithms for mcs51 jumptable generation are used:
8134         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
8135         addresses loaded pc-relative for up to 112 cases and stack-pushing
8136         target addresses loaded with offset from dptr for up to 256 cases.
8137
8138         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
8139         * src/mcs51/main.c: adapted constants for switch table generation
8140         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
8141
8142 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
8143
8144         * device/lib/printf_large.c (_print_format): fixed bug 1073386
8145         * support/regression/tests/bug1057979.c: added test for bug 1073386
8146
8147 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
8148
8149         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
8150         compilers
8151
8152 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
8153
8154         * src/pic16/device.h,
8155         * src/pic16/genarith.c,
8156         * src/pic16/glue.c,
8157         * src/pic16/main.c,
8158         * src/pic16/pcode.c: applied patches #1068154 and #1070213
8159
8160 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
8161
8162         Large cummulative patch for pic16 port.
8163         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
8164         to call when a stack overflow occurs,
8165         * (malloc.h): added CVS Id tag,
8166         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
8167         variable,
8168         * added libc directory. The current version of LibC contains string
8169         functions, ctype functions and macros and some functions of the
8170         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
8171         be extensively tested in the future. Standard disclaimer here.
8172         Library is not automatically build yet. But one can build it by
8173         invoking 'make' inside the libc directory.
8174         * added ADC library under libio. Preliminary version yet.
8175
8176         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
8177         * src/pic16/gen.c (aopForRemat): asmop size is filled by
8178         aopForRemat() now and not by pic16_aopOp(),
8179         * (pic16_popGetTempReg): removed warning messgae when allocating
8180         temporary registers, its a buggy feature and will be removed,
8181         * (pic16_popGet): set register instance field in AOP_CRY,
8182         * (pic16_outBitC): fixed for results in size greater than 1,
8183         * (genUminusFloat): fixed for pic16, ported code from mcs51,
8184         * (pic16_storeForReturn): optimized return of 0,
8185         * (genCmp): experimental code for new genCmp which uses PIC18's
8186         special compare&skip instructions. Initial tests fail some times
8187         with variables grater than 1 byte in size, so new code is disabled,
8188         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
8189         a single bit,
8190         * (genCast): began a fix to optimize the casting of a bit to another
8191         bit, now assigning a bitfield to another bitfield will fail, sorry,
8192         * src/pic16/main.c: disabled the use of lr-support feature,
8193         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
8194         * added some function prototypes, added function _debugf prototype,
8195         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
8196         bits with offset (case PO_GPR_BIT),
8197         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
8198         command line,
8199         * (isBankInstruction): modified to return 0 for no banking instruction,
8200         and 1 for banking instruction,
8201         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
8202         caused stop processing pCodes after a inline assembly block,
8203         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
8204         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
8205         registers when it shouldn't,
8206         * src/pic16/ralloc.c (allocReg): add preliminary support for
8207         supporting a limited set of temporary registers,
8208
8209 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8210
8211         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
8212           genDataPointerSet): ensure assignments always copy in MSB to LSB
8213           order,
8214           (loadRegFromAop): recognize CLRH optimization,
8215           (genFunction): optimize RECEIVE iCodes in reentrant functions
8216
8217 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8218
8219         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
8220           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
8221           selected.
8222         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
8223         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
8224           contiguous with data
8225
8226 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8227
8228         * device/lib/_gptrget.c (_gptrget),
8229         * device/lib/_gptrgetc.c (_gptrgetc),
8230         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
8231           instead of sjmp to ret
8232         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
8233           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
8234
8235 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
8236
8237         * .version: bumped version to 2.4.7
8238         * device/lib/_gptrget.c (_gptrget): is now _naked
8239         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
8240         * device/lib/_gptrput.c (_gptrput): is now _naked
8241         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
8242           (createFunction): fixed xstack
8243         * src/SDCCglue.c (emitMaps): set allocation required for bit area
8244         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
8245           or bit either,
8246           (geniCodeCritical): store original interrupt state in an iTemp bit
8247           var unless stack-auto
8248         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
8249         * src/SDCCmain.c (setIncludePath): added include/target to search path
8250         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
8251         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
8252           prototype,
8253           (processFuncArgs): put bit vars in bit area
8254         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
8255           unsaveRBank): fixed xstack,
8256           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
8257           (genFunction, genEndFunction): fixed xstack,
8258           (genAssign): optimization don't walk backwards through mem
8259         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
8260         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
8261         * support/regression/Makefile: also make library (for stack-auto) when
8262           making "all" and added "test-mcs51-xstack-auto"
8263         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
8264         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
8265         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
8266         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
8267         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
8268           make-library by MAKE_LIBRARY
8269         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
8270           regression tests for xstack
8271         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
8272         * support/regression/tests/critical.c: test for critical on mcs51
8273
8274 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8275
8276         * support/regression/ports/ucz80/spec.mk: use include and lib files from
8277           built version of sdcc instead of installed version
8278
8279 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
8280
8281         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
8282         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
8283           vprintf.c now
8284         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
8285         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
8286           WARNING: remove device/lib/build/z80/printf.o by hand when
8287           updating from previous build!
8288         * device/lib/z80/printf.c: updated comment
8289         * support/regression/tests/bug1057979.c: test all ports now
8290         * support/regression/tests/bug1065458.c: file added
8291
8292 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8293
8294         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
8295           *_start and *_end symbols for static functions
8296
8297 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
8298
8299         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
8300           and search crt0.o in all library paths,
8301           (setIncludePath): proper handling of --nostdinc,
8302           (setLibPath): proper handling of --nostdlib
8303         * support/regression/Makefile,
8304         * support/regression/ports/ds390/spec.mk,
8305         * support/regression/ports/gbz80/spec.mk,
8306         * support/regression/ports/hc08/spec.mk,
8307         * support/regression/ports/mcs51/spec.mk,
8308         * support/regression/ports/mcs51-large/spec.mk,
8309         * support/regression/ports/mcs51-stack-auto/spec.mk,
8310         * support/regression/ports/z80/spec.mk: use include and lib files from
8311           built version of sdcc instead of installed version
8312         * doc/sdccman.lyx: fixed typo in --nostdinc
8313
8314 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
8315
8316         * src/pic/pcode.c,
8317         * src/pic/device.c,
8318         * src/pic/ralloc.c,
8319         * src/pic/gen.c : added support to generate code for struct bit fields.
8320
8321 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
8322
8323         * as/xa51/xa_version.h,
8324         * device/include/errno.h,
8325         * device/include/regc515c.h,
8326         * device/lib/_itoa.c,
8327         * device/lib/_ltoa.c,
8328         * device/lib/ser_ir_cts_rts.c,
8329         * sim/ucsim/xa.src/glob.cc,
8330         * sim/ucsim/xa.src/inst_gen.cc,
8331         * sim/ucsim/xa.src/xa_bit.cc,
8332         * sim/ucsim/xa.src/xa_sfr.cc,
8333         * sim/ucsim/z80.src/inst_dd.cc,
8334         * sim/ucsim/z80.src/inst_fdcb.cc,
8335         * support/scripts/keil2sdcc.pl,
8336         * src/pic16/pic16.dsp,
8337         * src/pic16/pic16a.dsp: corrected cvs line endings
8338         * device/lib/printf_large.c: fixed bug 1057979
8339         * src/pic16/gen.c: fixed non-C standard code
8340         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
8341         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
8342         * support/regression/ports/mcs51/support.c: reload T1 asap
8343         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
8344           pdata use and clear idata startup behaviour
8345         * support/regression/tests/bug1057979.c: added
8346
8347 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
8348
8349         * device/examples/ds390/ow390/ad26.h,
8350         * device/examples/ds390/ow390/cnt1d.h,
8351         * device/examples/ds390/ow390/crcutil.c,
8352         * device/examples/ds390/ow390/ownet.h,
8353         * device/examples/ds390/ow390/owsesu.c,
8354         * device/examples/ds390/ow390/swt12.h,
8355         * device/examples/ds390/ow390/swtoper.c,
8356         * device/examples/ds390/ow390/temp10.h,
8357         * device/examples/ds390/ow390/thermodl.c,
8358         * device/examples/ds390/tinitalk/tinitalk.dsp,
8359         * device/examples/ds390/tinitalk/tinitalk.dsw,
8360         * device/examples/mcs51/clock/hw.h,
8361         * device/examples/mcs51/simple2/go.bat,
8362         * device/examples/serialcomm/windows/serial.h,
8363         * device/examples/xa51/dummy.c,
8364         * device/examples/xa51/hello.c,
8365         * device/include/80c51xa.h,
8366         * device/include/at89x051.h: corrected cvs line endings
8367
8368 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
8369
8370         * src/pic16/main.c (options): added command line --gstack, to trace
8371         stack over/under flows,
8372         * added pragma 'wparam' to allow passing first byte of function
8373         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
8374         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
8375         call to __gstack_test function and sets up the symbol as extern,
8376         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
8377         * popaop): added call to pic16_testStackOverflow,
8378         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
8379         wparamList list,
8380         * (genCall, genPcall): now all parameters are passed via stack
8381         except in functions that are pass to wparam pragma in which WREG is
8382         used too,
8383         * (genPcall): REENTRANT flag is checked to see if variable prototype
8384         contains reentrant keyword, don't call a non-reentrant function, via
8385         a reentrant function pointer or vice versa, functions are never
8386         passed via WREG,
8387         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
8388         D.Winkler,
8389         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
8390         SIGSEGV when accessing a NULL register stucture,
8391         * (pic16_printGPointerType): modified to handle UPPER modifier for
8392         function initializers, changed prototype of function to simpler one,
8393         * (pic16_printIvalFuncPtr): check to see if function is already
8394         added in externs list,
8395         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
8396         optimized a move from W to SFR with a move to the same register
8397         later after a CALL,
8398         * device/lib/pic16/debug: NEW directory, contains debug features
8399         which are enabled when linking with libdebug.lib, currently command
8400         line option --gstack enables stack pointer tracing for over/under
8401         flow, corresponding sources are in debug/gstack
8402
8403 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
8404
8405         * doc/sdccman.lyx: updated SDCC version,
8406         * (PIC16 port): update list of command line options,
8407         * src/pic16/device.h (structure pic16_options_t): added field gstack
8408         to enable stack overflow tracing on push/pops,
8409         * src/pic16/device.c (statistics structure): added statistics
8410         structure,
8411         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
8412         pic16_dump_int_registers): increase statistics counters for each
8413         * variable which is encountered
8414         * (pic16_dump_usection): emit each .udata variable to its own udata
8415         section,
8416         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
8417         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
8418         parameters via stack, otherwise use old scheme,
8419         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
8420         assembler output file,
8421         * src/pic16/main.c: added command line options --gstack to enable
8422         push/pop tracing for stack overflow,
8423         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
8424         instructions): added size of each instruction,
8425         * (pic16_countInstruction): estimate size of instructions in
8426         the_pFile list, inline assembly blocks are not counted,
8427         * (pic16_FixRegisterBanking): trace previous register usage, when
8428         banksel optimizations is greater than 0, don't emit a redudant
8429         banksel directive,
8430
8431 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
8432
8433         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
8434         * src/pic16/ralloc.c : applied same fix for pic16.
8435         * src/pic/gen.c : tidied it up a little.
8436
8437 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8438
8439         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
8440         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
8441
8442 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8443
8444         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
8445
8446 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8447
8448         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
8449         non-reentrant function __modsint in the interrupt function (thus
8450         corrupting math operations during serial I/O)
8451         * device/lib/ser_ir.c: as above, changed buffersize
8452         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
8453         256.c,d for zeroing
8454         * doc/Makefile: added option -t for rsync
8455
8456 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8457
8458         * src/SDCCast.h (struct ast),
8459         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
8460
8461 2004-10-20 Borut Razem <borut.razem AT siol.net>
8462
8463         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
8464         package
8465
8466 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
8467
8468         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
8469         makefile targets,
8470         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
8471         support functions to replace long sequences of MOVFF's from access
8472         bank registers to stack and vice versa,
8473         * src/pic16/device.h: added new field opt_flags, where optimization
8474         flags can be set to enable certain features,
8475         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
8476         * pBlock, (genFunction, genEndFunction): surroung loop for
8477         saving/loading used registers in stack with PC_INFO pCodes,
8478         INF_LREGS. Code in between can then be optimized by pCode optimizer
8479         to support function calls,
8480         * (genDataPointerSet): fixed bug which loaded float fields in
8481         structures with corrupt data,
8482         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
8483         in a standard way debug info on stderr. Feature used for developing
8484         and debugging only,
8485         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
8486         obsolete chunks of code,
8487         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
8488         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
8489         * pic16/src/pcode.c (pic16_newpCodeInfo,
8490         * (pic16_newpCodeOpLocalRegs),
8491         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
8492         feature,
8493         * (pic16_pCodeConstString): printing of the initial value of a
8494         symbol as a comment is inhibited since parsing was already done by
8495         copyStr and output is corrupt,
8496         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
8497
8498 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8499
8500         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
8501
8502 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
8503
8504         * as/mcs51/lkarea.c: removed old K&R style,
8505           (lnksect): changed check on boundary error,
8506           (lnksect2): changed check on boundary error,
8507           (lnksect2): extend XSTK to end of page if size = 1
8508         * as/mcs51/lkmain.c: removed old K&R style,
8509           (Areas51): create l_IRAM symbol
8510         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
8511         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
8512           model-mcs51-stack-auto, added model-mcs51-xstack-auto
8513         * device/lib/_mullong.c: added version to be compiled with xstack
8514         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
8515         * device/lib/mcs51/crtxclear.asm: clear pdata as well
8516         * device/lib/mcs51/crtxstack.asm: fixed comment
8517         * src/SDCCglue.c: maxInterrupts defaults to 0,
8518           (emitMaps): added pdata,
8519           (createInterruptVect): (re)moved default,
8520           (glue): added pdata,
8521           (glue): moved __start__xstack to XSTK with default size 1
8522         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
8523           and options.float_rent when options.stackAuto is set,
8524           (linkEdit): only write XDATA_NAME if provided on command line
8525         * src/SDCCmem.h,
8526         * src/SDCCmem.c: added pdata
8527         * src/port.h: added pdata_name to PORT
8528         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
8529           (saveRegisters, unsaveRegisters): removed usage of B,
8530           (genMinus): fixed accumulator clash,
8531           (genJumpTab): added comment, this needs another look
8532         * src/mcs51/gen.c: added check for "B in use" paranoia,
8533           added pushB() and popB()
8534         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
8535           chance
8536         * src/avr/main.c,
8537         * src/ds390/main.c,
8538         * src/hc08/main.c,
8539         * src/mcs51/main.c,
8540         * src/pic/main.c,
8541         * src/pic16/main.c,
8542         * src/xa51/main.c,
8543         * src/z80/main.c: (reset_regparms) made void parameter explicit and
8544           added PSEG (PAG,XDATA) or NULL to port specifier
8545         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
8546         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
8547           (_mcs51_genInitStartup): removed __start__xstack equ,
8548           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
8549         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
8550         * src/z80/gen.c (_rleAppend): fixed warnings
8551         * support/regression/tests/zeropad.c: added pdata test
8552         * .version: bumped to 2.4.6
8553
8554 2004-10-17 Borut Razem <borut.razem AT siol.net>
8555
8556         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
8557         as a part of nightly build
8558
8559 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
8560
8561         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
8562         WREG holds the first byte function parameters,
8563         * (aopForSym): take special case for symbols which are in FARSPACE
8564         but in CODESPACE too,
8565         * (assignResultValue): modified to take into account _G.useWreg,
8566         * (genCall): don't use wreg for parameter passing when function is
8567         declared as reentrant, too, added optimization INCF to stack
8568         pointer when stack parameter count is 1,
8569         * (genFunction, genEndFunction): refurnished and fixed to not using
8570         wreg for passing parameters when function has varargs or is
8571         reentrant, fixed bug with symbol name compare for generating
8572         functions in absolute address,
8573         * (pic16_storeForReturn): refurnished,
8574         * (genCmp): began writing a new version of the function, not ready
8575         yet, therefore it is disabled,
8576         * (genAssign): do not read code memory when assigning a function to
8577         a pointer function,
8578         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
8579         array of characters, not pointer,
8580         * (pic16initialComments): in debug mode emit an .ident directive for
8581         the assembler,
8582         * (_process_pragma): emit a new warning type (internal to pic16)
8583         when setting stack to default length, emit a similar warning when
8584         placing a function at absolute address and address is not word aligned
8585         * (_pic16_parseOptions): added 'return TRUE' statement,
8586         * (_pic16_linkEdit): if compiling a source, then add the source's
8587         file object, first in the list of objects to link,
8588
8589 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
8590
8591         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
8592         * src/pic/main.c : removed VC warning.
8593         * src/pic/gen.c : changed comment.
8594
8595 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
8596
8597         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
8598         reference to a deprecated symbol _GPTRREG was causing failure to
8599         link. Thanks G. M. Gallant for the info.
8600
8601 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
8602
8603         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
8604         comments for Bugs item #954788.
8605
8606 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
8607
8608         * src/pic16/device.c (pic16_dump_gsection,
8609         * pic16_groupRegistersInSection): handle symbols declared to be in
8610         access bank differently,
8611         * src/pic16/gen.c (struct _G): added field resDirect,
8612         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
8613         send values read from stack directly to result and don't allocate
8614         temporary values,
8615         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
8616         same registers,
8617         * (pic16_sameRegsOfs): NEW,
8618         * (freeAsmop): if _G.resDirect is set then do not mark registers as
8619         free because they were not allocated from temporary pool,
8620         * pic16_popRegFromString): workaround to fix a problem with
8621         allocating variables twice or never,
8622         * (genGenPointerGet): using PRODL instead of FSR0H,
8623         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
8624         instead of FSR0H,
8625         * (genAssign): take advantage of the _G.resDirect flag,
8626         * (genCast): around line 11844, use mov2f instead of directly
8627         MOVFF'ing between operands to account for literal values,
8628         * src/pic16/genutils.c: some new debug functions for gpsim have been
8629         added,
8630         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
8631         float with integer part only,
8632         * src/pic16/main.c (_process_pragma): handle pragma udata access to
8633         place variables in access bank
8634         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
8635         updated sources to reflect recent changes in gen.c
8636
8637 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
8638
8639         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
8640         sources that searched for headers in installation path, now the
8641         device/include/pic16 is used,
8642         * src/pic16/glue.c (pic16glue),
8643         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
8644         .line directives if not in debug mode, this suppresses assembler's
8645         warnings for ignored directives
8646
8647 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
8648
8649         * src/port.h: made reset_regparms prototype void parameter explicit.
8650         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
8651         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
8652         * doc/sdccman.lyx: documented warning disabling and how to use
8653           printf_large to make it print floats.
8654         * device/include/stdbool.h: NEW
8655         * device/lib/_atof.c,
8656         * device/lib/_divuint.c,
8657         * device/lib/_divulong.c,
8658         * device/lib/expf.c,
8659         * device/lib/printf_large.c,
8660         * device/lib/sincosf.c,
8661         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
8662         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
8663           a completely reentrant lib.
8664
8665 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
8666
8667         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
8668         * device/include/pic16/stdio.h: fixed bug with colon
8669
8670 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
8671
8672         * device/include/pic16/stdio.h,
8673         * device/include/pic16/stdlib.h,
8674         * device/include/pic16/math.h: NEW
8675         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
8676         declared as _naked to reduce overhead
8677         * device/lib/Makefile.in (target port-specific-objects-pic16):
8678         changed * to *.* so to ignore the CVS directory,
8679         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
8680         stacked variables back in stack,
8681         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
8682         corruption
8683
8684 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
8685
8686         * .version: bumped version number to 2.4.5
8687         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
8688         * support/Util/SDCCerr.c (messages structure): added entry for
8689         W_POSSBUG2
8690
8691         Large cumulative patch for pic16 port and libraries.
8692         * device/include/pic16/sdcc-lib.h,
8693         * device/include/pic16/stdarg.h,
8694         * device/include/asm/pic16/features.h,
8695         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
8696         * device/include/pic16/float.h: changes reentrant keyword with
8697         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
8698         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
8699         updated target build-libraries to include objects from gptr,
8700         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
8701         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
8702         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
8703         all function headings,
8704         * src/SDCCmain.c: added global parameter userIncDirsSet,
8705         * (parseCmdLine): when option -I is encountered add directory to
8706         userIncDirsSet too,
8707         * src/version.awk: added space between control and long,
8708         * src/pic16/NOTES: added some notes for the port,
8709         * src/pic16/gen.c: added prototype for mov2fp function,
8710         * (fReturnpic16[]): properly named return value registers,
8711         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
8712         * (aopForSym): added code to handle symbols with onStack flag set,
8713         symbols onStack are allocated PTRSIZE bytes,
8714         * (aopFreeAsmop): handles special case where asmops are stack objects,
8715         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
8716         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
8717         added argument lock to trace flaws in allocating temporary registers
8718         when developing port,
8719         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
8720         * (pic16_popRegFromString): reenabled allocating a direct register
8721         from string,
8722         * (assignResultValue): various beautifications,
8723         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
8724         referenced function argument,
8725         * (genIpush): reenabled to allow stacked arguments, handles only
8726         ic->parmPush iCodes,
8727         * (genCall, genPcall): major changes to allow for variable argument
8728         functions, fixed a bug with falsely restoring stack pointer after
8729         returning from call,
8730         * (genFunction): pending code for critical function,
8731         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
8732         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
8733         * (genNearPointerGet): fixed bug with indirect reading, was always
8734         reading from INDF0
8735         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
8736         pointers,
8737         * (genAddrOf): rewrote code to take address of a stacked function parameter
8738         * (genCast): fixed casting to generic pointer type,
8739         * src/pic16/gen.h: added AOP_STA,
8740         * (struct asmop): added field stk,
8741         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
8742         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
8743         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
8744         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
8745         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
8746         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
8747         generic pointers,
8748         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
8749         and library paths,
8750         * (pic16_port structure): generic pointer size is set to 3,
8751         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
8752         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
8753         compiler warning,
8754         * src/pic16/ralloc.c (allocReg): prevent allocating register when
8755         operand is an iTemp,
8756
8757 2004-09-24 Martin Helmling <mh AT octo-soft.de>
8758
8759         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
8760         * debugger/mcs51/simi.c: addapt new syntax of s51
8761
8762 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
8763
8764         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
8765         * src/pic16/pcode.c: commented out some calls to free() in order to
8766         fix bug #989576,
8767
8768 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8769
8770         * src/SDCCicode.h,
8771         * src/SDCCicode.c (isiCodeInFunctionCall),
8772         * src/avr/ralloc.c (selectSpil),
8773         * src/pic/ralloc.c (selectSpil),
8774         * src/pic16/ralloc.c (selectSpil),
8775         * src/ds390/ralloc.c (selectSpil),
8776         * src/hc08/ralloc.c (selectSpil),
8777         * src/xa51/ralloc.c (selectSpil),
8778         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
8779         stack in the middle of a function call sequence (fixes bug #1020268)
8780         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
8781         costs associated with the minimum switch case.
8782
8783 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8784
8785         * src/SDCC.lex: fixed bug #1030549
8786
8787 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8788
8789         * src/SDCCcse.h (struct cseDef),
8790         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
8791         over a function call if the CSE is derived from a symbol whose
8792         address has been taken (fixes bug #1029883)
8793         * support/regression/tests/bug-1029883: a new regression test for
8794         this bug
8795
8796 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8797
8798         * src/hc08/gen.c (emitinline): fixed bug #1029778
8799         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
8800         to a cast object is no longer a syntax error ("fixes" bug #1030006,
8801         and starts toward RFE #905167)
8802
8803 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
8804
8805         * src/pic16/gen.c (mov2f): New function to move an operand to
8806         another without considering if it is a literal or a register,
8807         * (pic16_sameRegs): don't check if they are both AOP_REG,
8808         * (AccRsh): removed andmask=0 lines,
8809         * (genLeftShift): duplicated to be improved in future versions,
8810         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
8811         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
8812         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
8813         * (pic16initMnemonics): added initialization for POC_INFSNZW,
8814         * (insertBankSwitch): fixed inserting banksel directives algorithm
8815         for instructions that follow a skip instruction, this fixes a report
8816         for broken subtraction code generation,
8817         * src/pic16/ralloc.c (deassignLRs): do not free register if current
8818         iCode is a left op, just in case result and right share the same
8819         registers
8820
8821 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8822
8823         * src/hc08/main.c,
8824         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
8825         preservation of HX
8826         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
8827         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
8828         on 2004-09-12; it was buggy
8829
8830 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
8831
8832         * src/SDCCsymt.h: removed RESULT_CHECK
8833         * src/SDCCast.c,
8834         * src/SDCCglue.c,
8835         * src/SDCCval.c,
8836         * src/pic/glue.c,
8837         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
8838
8839 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
8840
8841         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
8842         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
8843         configuration values no more rejected by compiler, they are assigned
8844         to configuration registers with a warning message instead,
8845         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
8846         the for-loop so last conf register is emitted too,
8847         * (_pic16_initPaths): link library libsdcc.lib by default,
8848         * (_hasNativeMulFor): modified test for multiplication according to
8849         Raphael Neider's remarks. Integer multiplication is also done with
8850         support functions,
8851         * device/include/pic16/pic18fregs.h: corrected type error in while
8852         testing and including 18f6720 header file
8853
8854 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
8855
8856         * src/pic16/device.h (pic16_options): removed field use_crt,
8857         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
8858         until an optimization to handle single bits is added,
8859         * (pic16_loadFSR0): moved before genUnpackBits,
8860         * (genAnd): some white lines removed,
8861         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
8862         leave_reset flags in pic16_options when using crt modules,
8863
8864 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
8865
8866         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
8867           for bugs 898889 & 979599. Also used some safer print instructions.
8868
8869 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
8870
8871         * src/pic16/device.h (pic16_options_t): added field use_crt,
8872         crt_name, no_crt,
8873         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
8874         catch a probable future bug,
8875         * src/pic16/gen.c: aopIdx function commented out,
8876         * (genAssign): commented out old code which used aopIdx,
8877         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
8878         code, added if conditionals to take into account the --use-crt
8879         command line options,
8880         * src/pic16/main.c (pic16_optionsTable): added new command line
8881         options, --use-crt= and --no-crt,
8882         * (_pic16_linkEdit): now the proper crt object is added in the
8883         linker command line except than when --no-crt is specified,
8884         * src/pic16/pcode.c,
8885         * src/pic16/pcode.h: added some structures and functions for a new
8886         optimization scheme to compansate for instruction overhead between
8887         same iCodes, this scheme is currently under development and is not
8888         working in any way,
8889         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
8890         to && operator,
8891         * device/lib/pic16/startup/crt0i.c,
8892         * device/lib/pic16/startup/crt0iz.c: added global char variable
8893         __uflags to force the generation of an idata section
8894
8895 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
8896
8897         * doc/Makefile,
8898         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
8899         * doc/sdccman.lyx: updated sdcc version to 2.4.4
8900
8901 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8902
8903         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
8904         Frieder) and clarified the default code optimization mode
8905
8906 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8907
8908         * src/SDCC.lex (doPragma, process_pragma),
8909         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
8910         "opt_code_size", and "opt_code_balanced"
8911         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
8912         regrouped options by category, added support for category headers
8913         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
8914         and "--opt-code-size"
8915         * doc/sdccman.lyx: documented these new options and pragmas
8916         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
8917         preference into account
8918
8919 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
8920
8921         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
8922           geniCodePreDec): Fixed bug 904237 by generating a warning
8923         * src/SDCCerr.h,
8924         * src/SDCCerr.c: added warning W_SIZEOF_VOID
8925
8926 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
8927
8928         * src/pic/device.c : When no max ram set validate full memory range.
8929         * src/pic/pcode.c,
8930         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
8931
8932 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
8933
8934         * device/lib/_gptrget.c,
8935         * device/lib/_gptrput.c: updated comment
8936         * device/lib/calloc.c,
8937         * device/lib/free.c,
8938         * device/lib/malloc.c,
8939         * device/lib/realloc.c: added LGPL, made them reentrant-safe
8940         * src/SDCCcse.c (cseBBlock),
8941         * src/SDCCicode.c (printOperand, geniCodeArray),
8942         * src/SDCCicode.h (struct operand): fixed bug 868103
8943         * support/regression/tests/bug-868103.c: added
8944         * src/SDCCast.c (searchLitOp),
8945         * src/SDCCcse.h (struct cseDef),
8946         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
8947         * src/SDCCicode.h (struct operand),
8948         * src/SDCCsymt.h (struct sym_link),
8949         * src/avr/gen.c (hasInc),
8950         * src/ds390/gen.c (hasInc),
8951         * src/hc08/gen.c (genPlusIncr, hasInc),
8952         * src/mcs51/gen.c (hasInc),
8953         * src/pic16/glue.c (pic16_printIvalChar),
8954         * src/pic16/ralloc.c (regWithIdx),
8955         * src/xa51/gen.c (hasInc) : removed warnings
8956         * src/SDCCast.c (createBlock): added comment ???
8957         * src/hc08/ralloc.c: updated comments
8958
8959 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8960
8961         * doc/sdccman.lyx: updated section on switch statements, added
8962         section about semaphore locking
8963         * doc/Makefile: added option -info for latex2html
8964         * device/lib/_gptrget.c,
8965         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
8966
8967 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
8968
8969         * src/pic/device.h,
8970         * src/pic/device.c,
8971         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
8972          maxram is less than 0x100.
8973
8974 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
8975
8976         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
8977
8978 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8979
8980         * src/port.h,
8981         * src/mcs51/main.c,
8982         * src/ds390/main.c,
8983         * src/z80/main.c,
8984         * src/hc08/main.c,
8985         * src/pic/main.c,
8986         * src/pic16/main.c,
8987         * src/avr/main.c,
8988         * src/xa51/main.c
8989         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
8990         a jump table is the best form for a switch statement, including
8991         automatic insertion of missing cases to make the case range
8992         continuous. Developed in collaboration with Frieder Ferlemann.
8993
8994 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8995
8996         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
8997         accumulator result if it needs sign extension
8998
8999 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9000
9001         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
9002
9003 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9004
9005         * device/lib/gbz80/printf.c,
9006         * device/lib/z80/printf.c: removed define for NULL
9007
9008 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9009
9010         * as/xa51/xa_link.c,
9011         * device/examples/ds390/ow390/ad26.c,
9012         * device/examples/ds390/ow390/cnt1d.c,
9013         * device/examples/ds390/ow390/counter.c,
9014         * device/examples/ds390/ow390/ds2480.h,
9015         * device/examples/ds390/ow390/ds2480ut.c,
9016         * device/examples/ds390/ow390/findtype.c,
9017         * device/examples/ds390/ow390/gethumd.c,
9018         * device/examples/ds390/ow390/owllu.c,
9019         * device/examples/ds390/ow390/ownetu.c,
9020         * device/examples/ds390/ow390/swt12.c,
9021         * device/examples/ds390/ow390/swtloop.c,
9022         * device/examples/ds390/ow390/temp.c,
9023         * device/examples/ds390/ow390/temp10.c,
9024         * device/examples/ds390/ow390/thermo21.c,
9025         * device/examples/ds390/ow390/tinilnk.c,
9026         * device/examples/ds390/ow390/tstfind.c,
9027         * device/examples/serialcomm/windows/serial.cpp,
9028         * device/examples/serialcomm/windows/test_serialcomm.cpp,
9029         * device/include/reg51.h: fixed line endings for cvs
9030
9031 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9032
9033         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
9034         packRegsForAccUse, packRegisters): new accumulator register
9035         packing algorithm
9036         * support/regression/ports/hc08/support.c (_putchar): suppress
9037         warning of unused variable
9038         * src/SDCCicode.c: added SWAP entry to codeTable
9039
9040 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
9041
9042         * device/lib/sprintf.c: forgot to add this file before previous commit
9043
9044 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
9045
9046         * src/pic16/gen.c (genPackBits): added operand right in function
9047         parameters, load result directly if p_type is POINTER (that is
9048         called by genNearPointerSet)
9049         * (genUnPackBits): added operand left in function parameters,
9050         * (genNearPointerGet, genNearPointerSet): prevent the loading of
9051         FSR0 if accessing bitfields,
9052
9053 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
9054
9055         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
9056           _print_format; updated printf, sprintf, vsprintf
9057         * device/include/asm/default/features.h: corrected comment/define
9058         * device/lib/Makefile.in: added sprintf.c
9059         * device/lib/libsdcc.lib: added sprintf module
9060         * device/lib/printf_large.c,
9061         * device/lib/vprintf.c,
9062         * device/lib/sprintf.c: totally refactored printf_large and vprintf
9063           into these 3 files
9064         * support/regression/Makefile: changed ALL_PORTS into a usefull default
9065         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
9066         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
9067           hc08 test
9068         * support/regression/tests/zeropad.c: define idata as data for hc08
9069
9070 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9071
9072         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
9073         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
9074         labels are referenced at least once (even if a reference is not found)
9075         * src/hc08/gen.c (emitcode): set isComment flag for comments
9076         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
9077         loads), rules 6a..6b (optimize jumps to return)
9078
9079 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9080
9081         * device/lib/acosf.c (acosf),
9082         * device/lib/asinf.c (asinf),
9083         * device/lib/atanf.c (atanf),
9084         * device/lib/ceilf.c (ceilf),
9085         * device/lib/cosf.c (cosf),
9086         * device/lib/coshf.c (coshf),
9087         * device/lib/cotf.c (cotf),
9088         * device/lib/fabsf.c (fabsf),
9089         * device/lib/floorf.c (floorf),
9090         * device/lib/log10f.c (log10f),
9091         * device/lib/logf.c (logf),
9092         * device/lib/sinf.c (sinf),
9093         * device/lib/sinhf.c (sinhf),
9094         * device/lib/sqrtf.c (sqrtf),
9095         * device/lib/tanf.c (tanf),
9096         * device/lib/tanhf.c (tanhf),
9097         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
9098         replaced all instances of "reentrant" in the library functions
9099         defined in math.h with this macro.
9100         * support/regression/tests/float_trans.c: reenabled test for hc08
9101
9102 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
9103
9104         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
9105         erroneously deleted
9106
9107 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9108
9109         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
9110         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
9111         multi-byte volatile operands are used
9112         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
9113         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
9114         initialization to area GSINIT0 so that it would always precede
9115         any static initializers in GSINIT
9116         * support/regression/tests/zeropad.c: fixed idata define for hc08
9117         * support/regression/tests/bug-927659.c,
9118         * support/regression/tests/float_trans.c: disabled tests for hc08
9119         pending missing library routines
9120         * .version: increased version number to 2.4.4 - hc08 port now passes
9121         regression tests
9122
9123
9124 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
9125
9126         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
9127         * Makefile.common.in,
9128         * as/Makefile,
9129         * as/hc08/Makefile.in,
9130         * as/mcs51/Makefile.in,
9131         * as/z80/Makefile.in,
9132         * debugger/mcs51/Makefile.in,
9133         * device/include/Makefile.in,
9134         * device/lib/Makefile.in,
9135         * doc/Makefile,
9136         * link/Makefile,
9137         * link/z80/Makefile.in,
9138         * packihx/Makefile.in,
9139         * sim/ucsim/main_in.mk,
9140         * sim/ucsim/avr.src/Makefile.in,
9141         * sim/ucsim/doc/Makefile.in,
9142         * sim/ucsim/gui.src/serio.src/Makefile.in,
9143         * sim/ucsim/hc08.src/Makefile.in,
9144         * sim/ucsim/s51.src/Makefile.in,
9145         * sim/ucsim/xa.src/Makefile.in,
9146         * sim/ucsim/z80.src/Makefile.in,
9147         * src/Makefile.in,
9148         * support/cpp2/Makefile.in,
9149         * support/librarian/Makefile,
9150         * support/makebin/Makefile: added DESTDIR to the install path proposed
9151         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
9152         * doc/sdccman.lyx: added DESTDIR documentation
9153
9154 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
9155
9156         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
9157         instruction for interrupt handlers, use fast returns when returning
9158         from high priority interrupts
9159
9160 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9161
9162         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
9163         code generation
9164         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
9165         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
9166         bugs, ported much of Bernhard's code from mcs51
9167         * src/mcs51/gen.c (genSend),
9168         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
9169         than one when calling a reentrant function
9170         * device/lib/_mullong.c: defined an alternate struct layout for big
9171         endian ports (hc08)
9172
9173 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9174
9175         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
9176         test
9177
9178 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9179
9180         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
9181         are sane and complete before asking the port its prefered parameter
9182         passing method (fixes bug #1017633)
9183         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
9184         and _ret3
9185
9186 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9187
9188         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
9189         problem in bitfields >= 8 bits.
9190
9191 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9192
9193         * src/SDCCsymt.c: undid changes that were not meant to be committed
9194
9195 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9196
9197         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
9198
9199 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9200
9201         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
9202           copied and wrong bit got inverted
9203
9204 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9205
9206         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
9207         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
9208         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
9209         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
9210         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
9211         assignments to bitfields at known addresses
9212         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
9213         reads from bitfields at known addresses
9214         * src/hc08/ralloc.c (packRegisters),
9215         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
9216         genhc08Code): optimize pointer get values used as conditionals
9217         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
9218         and branch
9219
9220 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9221
9222         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
9223         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
9224         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
9225         as conditionals
9226
9227 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9228
9229         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
9230
9231 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9232
9233         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
9234         related problems
9235
9236 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
9237
9238         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
9239
9240 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9241
9242         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
9243         mcs51 port
9244
9245 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
9246
9247         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
9248
9249 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9250
9251         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
9252         cases use more compact code.
9253
9254 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
9255
9256         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
9257
9258 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9259
9260         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
9261
9262 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9263
9264         * src/SDCCsymt.h,
9265         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
9266         parameter of changePointer() from symbol* to sym_link*
9267         * src/SDCCast.c (decorateType): call changePointer() for CAST op
9268         * src/SDCCsymt.c (compareType): void* type is castable to other
9269         pointers, but not necesarily an exact match.
9270         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
9271         is no longer blindly treated as an exact match.
9272         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
9273
9274 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
9275
9276         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
9277
9278 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
9279
9280         * src/pic/gen.c,
9281         * src/pic/pcode.c,
9282         * src/pic/ralloc.h,
9283         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
9284
9285 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
9286
9287         * src/pic/device.c,
9288         * src/pic/device.h,
9289         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
9290
9291 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9292
9293         * src/mcs51/gen.c (emitcode): fixed bug #992819
9294
9295 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
9296
9297         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
9298           there's no need to make it worse
9299
9300 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9301
9302         * src/mcs51/ralloc.c (deassignLR),
9303         * src/ds390/ralloc.c (deassignLR),
9304         * src/hc08/ralloc.c (deassignLR),
9305         * src/z80/ralloc.c (deassignLR),
9306         * src/pic/ralloc.c (deassignLR),
9307         * src/pic16/ralloc.c (deassignLR),
9308         * src/avr/ralloc.c (deassignLR),
9309         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
9310         rlivePoint): fixed another part of bug #971834
9311
9312 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9313
9314         * src/z80/main.c: enabled "critical" keyword
9315         * src/z80/mappings.i,
9316         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
9317         functions (fixes bug #979646)
9318         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
9319
9320 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9321
9322         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
9323           such as c:\mydir.
9324
9325 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
9326
9327         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
9328           doesn't disable too much optimizations
9329
9330 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
9331
9332         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
9333
9334 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
9335
9336         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
9337
9338 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
9339
9340         * src/pic/gen.c tidied up tabs
9341         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
9342         * src/pic/main.c tidied up tabs
9343         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
9344         * src/pic/pcoderegs.c tidied up tabs
9345         * src/pic/ralloc.c tidied up tabs
9346
9347 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
9348
9349         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
9350         to S_FIXED for pic16 port and when symbol is not in level 0,
9351         allocate for S_REGISTER storage class and pic16 port, too,
9352         * src/pic16/device.h: prototype for checkSym,
9353         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
9354         * (pic16_assignConfigWordValue): test the value and the mask to
9355         validate that the value is suitable for the configuration word,
9356         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
9357         collect extern declared symbols, don't emit symbol twice, check
9358         first if symbol is in publics set first,
9359         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
9360         * added command line '--fstack' which enables an experimental
9361         feature for stack access, too buggy to be used yet...
9362         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
9363         * (pic16_allocDirReg): when register has storage class S_REGISTER
9364         allocate in pic16_dynAccessRegs,
9365         * device/include/pic16/pic18f????.h: modified configuration word
9366         naming convention, words started as CONFIG0H but should be CONFIG1H
9367
9368 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
9369
9370         * device/include/mcs51reg.h: fixed bug 970993
9371
9372 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
9373
9374         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
9375         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
9376         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
9377         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
9378         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
9379         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
9380           error/warning numbers,
9381           added function setWarningDisabled()
9382         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
9383         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
9384           _memcmp.c _memmove.c calloc.c realloc.c free.c
9385         * support/regression/tests/malloc.c: added tests for new functionality
9386         * support/regression/tests/zeropad.c: added tests for truncated initializers
9387           and initialized char arrays starting with '\x0'
9388         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
9389
9390 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
9391
9392         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
9393
9394 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9395
9396         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
9397         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
9398         peephole 177.e. Thanks to anonymous
9399
9400 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
9401
9402         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
9403         function isn't used in the source but referenced as a
9404         variable initializer then declare it as extern in .asm file
9405
9406 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
9407
9408         * .version: increased version number to 2.4.3
9409
9410         Adding version extension according to ChangeLog CVS revision
9411         * src/Makefile.in (target all): added dependency 'version.h'
9412         * (rule version.h): added rule to create version.h from ChangeLog,
9413         * (rule dep): added dependency version.h,
9414         * src/version.awk: AWK script to create version.h
9415         * src/SDCCdwarf2.c (dwWriteModule),
9416         * src/SDCCglue.c (initialComments),
9417         * src/SDCCmain.c (printVersionInfo): modified to write after
9418         version string the version extension number,
9419         * src/SDCCutil.c: included "version.h"
9420         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
9421         number,
9422         * src/SDCCutil.h: added prototype for getBuildNumber
9423
9424         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
9425         includeDirsSet, too,
9426         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
9427         const char [] is found in function prototype...
9428
9429         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
9430         moving to WREG with source is already in WREG,
9431         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
9432         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
9433         * (aopForSym): stack'ed symbols are partially supported, added
9434         if-clause to support symbols in FARSPACE,
9435         * (sameRegs): added test for AOP_ACC to see if registers are same,
9436         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
9437         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
9438         * (pic16_popRegFromString): will not allocate a new register if it
9439         doesn't find one by name, bug may have introduced...
9440         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
9441         * (genIpush): revived to use pic16 port's stack,
9442         * (genAddrOf): added incomplete case for stack'ed operand,
9443         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
9444         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
9445         can handle multibyte operands,
9446         * src/pic16/glue.c (pic16_printIval*): some debug info added,
9447         * (pic16initialComments): added message for MPLAB compatibility
9448         mode enabled,
9449         * src/pic16/main.h: prototype for pic16_mplab_comp,
9450         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
9451         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
9452         * (_pic16_linkEdit): NEW, handles link stage, transferred here
9453         because of increased complexity of procedure,
9454         * (_process_pragma): stack pragma changed to format 'stack pos len',
9455         emit symbol '_stack_end' to conform with gplink,
9456         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
9457         to search for register,
9458         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
9459         PO_GPR_REGISTER,
9460         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
9461         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
9462         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
9463         case for PO_GPR_REGISTER,
9464         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
9465         dies, the new era is ahead !...
9466         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
9467         pic16_dynInternalRegs,
9468         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
9469         * (pic16_allocDirReg): minor optimizations and bug fixes,
9470         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
9471
9472         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
9473         load stack and frame pointer with address of 'stack_end' symbol
9474
9475 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
9476
9477         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
9478         without source code but only variable initializers
9479
9480 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
9481
9482         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
9483         external are not declared as extern to reduce overhead while linking
9484
9485 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
9486
9487         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
9488
9489 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
9490
9491         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
9492           Yee Keat for the patch
9493         * src/SDCCast.c (decorateType): fixed bug #979599
9494         * src/ds390/gen.h: removed local fReturnSizeDS390
9495         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
9496         * src/ds390/gen.c (genAnd, genOr, genXor),
9497         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
9498
9499 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
9500
9501         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
9502         add relFilesSet to $3, manipulate $2 to handle linking of object
9503         files without source files in command line,
9504         * device/include/pic16 (all headers): added ID location macros,
9505         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
9506         entries for ID location bytes,
9507         * (pic16_assignIdByteValue): NEW,
9508         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
9509         added field dumpcalltree to pic16_options_t,
9510         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
9511         is used instead of pic16_Gstack_base_addr, check if (ifx) before
9512         emitting rFalseIfx label after check_carry label,
9513         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
9514         pic16_emitDIRegs), NEW
9515         * (pic16glue): dump .calltree file when option --calltree found,
9516         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
9517         * (_pic16_genAssemblerPreamble): emit ID locations after
9518         configuration registers,
9519         * (pic16_linkCmd): modifications of the link command,
9520         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
9521         * (pic16_pCodeInitRegisters): don't init stack registers,
9522         * (pic16_findPrevInstruction): fixed bug,
9523         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
9524         bug with immediate registers,
9525         * (buildCallTree): traces stack push and pop,
9526         * (pct2): dump also stack usage for each function,
9527         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
9528         * (pic16_allocDirReg): various modifications,
9529         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
9530         fixed to 1,
9531
9532 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
9533
9534         * src/pic16/pcode.c: removed buggy double colon
9535
9536 2004-07-01 Borut Razem <borut.razem AT siol.net>
9537
9538         * support/scripts/sdcc.nsi: added include/pic16 to setup
9539
9540 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
9541
9542         * device/lib/Makefile.in: fixed bug in target objects-pic16,
9543         * device/lib/pic16/Makefile: prefixed with dash (-) command under
9544         target 'clean',
9545         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
9546         specific command line arguments. Also added sample lkr script
9547         for placing a variable at a specific memory bank.
9548         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
9549         at a specific memory bank,
9550         * (pic16_dump_isection): fixed bug which caused string literals to
9551         be omitted when dumping idata section,
9552         * (pic16_groupRegistersInSection): added code to handle registers
9553         in specific memory banks,
9554         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
9555         public, all references are renamed too,
9556         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
9557         AOP_DPTR2,
9558         * (pic16_storeForReturn): added case to handle when dest is WREG,
9559         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
9560         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
9561         pic16_rel_udata, check to see if that register is marked as being
9562         a member of a specific memory bank,
9563         * (pic16_printIvalCharPtr): added code to add string literals either
9564         to code or the idata sections,
9565         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
9566         also accept the 'udata' pragma,
9567         * src/pic16/main.h: new structure types sectName and sectSym
9568         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
9569         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
9570         * (pic16_findPrevInstruction): fixed, it returned nothing,
9571         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
9572         instruction combinations,
9573         * (pic16_FixRegisterBanking): heavily reorganised,
9574         * (pic16_AnalyzeBanking): if generating banksel directives is
9575         disabled, then don't call FixRegisterBanking at all,
9576         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
9577         completely removed,
9578         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
9579
9580 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
9581
9582         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
9583         Phuah Yee Keat <yk.phuah AT nestac.com>
9584
9585 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
9586
9587         * src/pic16/glue.c (pic16createInterruptVect): function now emits
9588         correctly the IVT even if it is relocated to some other location
9589
9590 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
9591
9592         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
9593         * device/include/pic16/pic18f2220.h: NEW,
9594         * device/lib/pic16/libdev/pic18f2220.c: NEW,
9595         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
9596         * src/pic16/device.c (struct Pics16): added info for 18f2220,
9597         * src/pic16/device.h (struct pic16_options): added ivt_loc and
9598         nodefaultlibs, ivt_loc is the location of the interrupt vector
9599         table, and nodefaultlibs signs that default libraries should not be
9600         linked in link stage,
9601         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
9602         according to --ivt-loc argument,
9603         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
9604         when pragma stack is found,
9605
9606 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9607
9608         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
9609         256 (range check), 257 (do while), 258.a-f (bit banging
9610         f.e. on 3-wire SPI bus)
9611
9612 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9613
9614         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
9615         variables used exclusively within a loop
9616
9617 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
9618
9619         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
9620
9621 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9622
9623         * src/SDCClrange.c (computeClash): fixed bug #971834
9624
9625 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9626
9627         * src/mcs51/gen.c (genCmp): fixed bug #975903
9628         * src/hc08/gen.c (operandsEqu),
9629         * src/ds390/gen.c (operandsEqu),
9630         * src/z80/gen.c (operandsEqu),
9631         * src/pic/gen.c (operandsEqu),
9632         * src/pic16/gen.c (operandsEqu),
9633         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
9634         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
9635
9636 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9637
9638         * src/SDCCcse.c (cseBBlock): fixed bug #966963
9639
9640 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
9641
9642         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
9643         default case in switch statement,
9644         * glue.c (pic16_initPointer): expr is initialised via decoarteType
9645         to eliminate problem with initialisation of pointers, but problem
9646         still exists,
9647         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
9648         * (emitStaticSegment): removed various lines emitting debug info,
9649         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
9650         added processor registers for utilizing EEPROM,
9651         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
9652         configurable and set 8
9653
9654 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
9655
9656         * .version: increased version number to 2.4.2,
9657
9658         Cumulative patch for pic16 port
9659         * src/pic16/device.c: changed scheme to dump initial values for
9660         variables in idata segment, all print_idata* functions were removed,
9661         now the pic16_printIval* will be called,
9662         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
9663         * _pic16_printPointerType, pic16_printPointerType,
9664         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
9665         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
9666         NEW, similar to the respective functions in SDCCglue.c,
9667         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
9668         way, emitting hex bytes,
9669         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
9670
9671 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9672
9673         * src/avr/ralloc.c (serialRegAssign),
9674         * src/xa51/ralloc.c (serialRegAssign),
9675         * src/pic/ralloc.c (serialRegAssign),
9676         * src/pic16/ralloc.c (serialRegAssign),
9677         * src/hc08/ralloc.c (serialRegAssign),
9678         * src/z80/ralloc.c (serialRegAssign),
9679         * src/ds390/ralloc.c (serialRegAssign),
9680         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
9681
9682 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9683
9684         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
9685         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
9686
9687 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
9688
9689         Cumulative patch for pic16 port:
9690         * src/pic16/device.h (typedef PIC16_device) modified fields for
9691         defining microcontrollers,
9692         * src/pic16/device.c: added new info for all devices in Pics16 array,
9693         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
9694         to be optimised out by the pCode optimiser,
9695         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
9696         specially, bug reported by G.M. Gallant,
9697         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
9698         as force'd so that cannot be optimised out by pCode optimiser,
9699         * src/pic16/pcode.c,
9700         * src/pic16/pcodepeeph.c,
9701         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
9702         they are disabled by default, but can be enabled explicit with
9703         command argument --denable-peeps, for testing,
9704         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
9705         --pomit-ivt in COMPILE_FLAGS
9706
9707 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
9708
9709         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
9710           compilation on MSVC
9711
9712 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
9713
9714         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
9715
9716 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9717
9718         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
9719         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
9720
9721 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
9722
9723         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
9724         would only assign 0x300001 register.
9725
9726 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
9727
9728         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
9729         in COMPILE_FLAGS. Thanks to G. Gallant for report.
9730
9731 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9732
9733         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
9734         for ds80c400
9735         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
9736         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
9737         added peephole 254 (left shift), 255 (jump table)
9738
9739 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
9740
9741         * device/lib/Makefile.in: removed comment line with model-pic16,
9742         * (target port-specific-objects-pic16): the libraries and objects
9743         are copied to the build directory form the device/lib/pic16/bin
9744         directory
9745
9746         Cumulative patch concerning pic16 port:
9747         * library directory has been re-organized,
9748         * added support for PIC18F1220,
9749         * added headers and library sources for chips 18f1220,18f6520,
9750         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
9751
9752         * configuration registers setting has changed, now each supported
9753         device has a complete description of the registers it uses,
9754         * all initialisations are moved to idata sections, these section
9755         can be absolute or relocatable,
9756         * fixed initialisation of codespace variables,
9757         * fixed warning about PCLATU and gpsim,
9758         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
9759         * (genAssign): use table reads when assigning from variables in codespace,
9760         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
9761         char/int variables placed in codespace,
9762         * (pic16_emitConfigRegs): NEW, emits a list with configuration
9763         registers set in .asm file, no need for --pomit-config-words anymore,
9764         * (pic16glue): some 8051 legacy segments are commented out
9765         (to be removed completely),
9766         * added support for alternative assembler and linker with --asm=
9767         and --link= command line arguments,
9768         * peepholes are disabled automatically in the port, no need to
9769         specify on command line,
9770         * port supports natively char/int/long multiplication, but converts
9771         all divisions to support functions,
9772         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
9773         to the file set in variable $2,
9774         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
9775         strings in ASCII format and not in hex,
9776         * ralloc.c (serialRegAssign): added a triplet of conditional calls
9777         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
9778         allocate proper register if iCodes aren't temporary,
9779
9780 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
9781
9782         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
9783
9784 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
9785
9786         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
9787         is commented out
9788
9789 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9790
9791         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
9792         computed address is reused
9793         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
9794         multi-byte bitfields
9795
9796 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
9797
9798         * src/z80/gen.c: (genArrayInit): must check for pointers too
9799
9800 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
9801
9802         * support/regression/tests/zeropad.c: never meant to commit the
9803           nestedstruct test: removed, added check for GCC version
9804
9805 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
9806
9807         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
9808         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
9809         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
9810           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
9811           bugs 928906 and 954082 half-empty initializers
9812         * src/SDCCsymt.h,
9813         * src/SDCCsymt.c (getAllocSize): added for above fix
9814         * src/z80/gen.c (genArrayInit): fixed bug 741044
9815         * support/regression/tests/zeropad.c: added tests
9816
9817 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
9818
9819         * src/pic16/device.c (pic16_dump_section): corrected bug which
9820         caused some symbols of the libraries to be misplaced
9821
9822 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
9823
9824         * src/pic16/glue.c,
9825         * src/pic16/ralloc.h,
9826         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
9827         to fix conflict with pic port
9828
9829 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
9830
9831         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
9832         externs configuration variables,
9833         * src/pic16/ralloc.h,
9834         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
9835         prototype in header, commented out some debug messages
9836
9837 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
9838
9839         * src/pic16/glue.c,
9840         * src/pic16/main.c,
9841         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
9842         for gpasm COFF object generation. Thanks to D. Hawkins for
9843         his patch info
9844
9845 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9846
9847         * src/ds390/main.c,
9848         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
9849         Brock for spotting this)
9850         * src/ds390/gen.c (genEndFunction),
9851         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
9852         interrupt handler and critical. Disable push/pop optimizations when
9853         peephole optimizations disabled.
9854
9855 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
9856
9857         Updated pic16 library sources and headers.
9858         * device/lib/pic16/pic18f*/ ,
9859         * device/include/pic16/*.h: modified to handle structured SFR
9860         definitions
9861
9862 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
9863
9864         * src/port.h (PORT structure): added hook initPaths, now each
9865         port can declare its own default search paths,
9866         which can been seen with the --print-search-dirs option,
9867         see pic16 port for example,
9868         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
9869         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
9870         * (doPrintSearchDirs): NEW, replaces in a central manner the
9871         printing of search dirs which was split in set*Paths functions,
9872         * (main): added call to port->initPaths and doPrintSearchDirs,
9873         * src/avr/main.c,
9874         * src/ds390/main.c,
9875         * src/hc08/main.c,
9876         * src/izt/i186.c,
9877         * src/izt/tlcs900h.c,
9878         * src/mcs51/main.c,
9879         * src/pic/main.c,
9880         * src/pic16/main.c: modified port structures to reflect addition of
9881         initPaths hook,
9882
9883         * src/pic16/device.c (regCompare): registers are finally sorted by name,
9884         * (pic16_dump_section): for registers in same address reserve memory once,
9885         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
9886         to no_banksel,
9887         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
9888         result is greater in size than right or left,
9889         * (pic16_genUMult8X8_8): there are some cases where the result can
9890         be 16 bits size, so handle these,
9891         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
9892         * (pic16_outBitC): modified to emit pcodes,
9893         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
9894         or not,
9895         * (genDivOneByte): implemented algorithm to divide 8-bits,
9896         * (genCmp): uncommented goto, but issues still exist,
9897         * (genAnd): fixed a bug with variables >8bits,
9898         * (genPackBits): optimization added that uses BCF/BSF to change a
9899         single bit,
9900         * (genAssign): fixed bug when assigning floating point literals,
9901         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
9902         __sdcc_gsinit_startup label,
9903         * src/pic16/main.c (_pic16_init): removed search directory
9904         initialisations,
9905         * (_pic16_initPaths): NEW, used to initialise search directories,
9906         * (_hasNativeMulFor): support functions for all except char/int
9907         multiplication, and char division,
9908         * (PIC16_port struct): modified entry for native mul support,
9909         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
9910         no_banksel option,
9911         * (buildCallTree): call to register_usage is ifdef'ed out,
9912
9913 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9914
9915         * device/include/string.h: applied Stas Sergeev's patch to make this
9916         header file compatible with the preprocessor -Wundef option
9917         * src/SDCCmain.c (main): abort compilation if preprocessor reports
9918         failure (fixes bug #941458)
9919
9920 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9921
9922         * src/SDCCopt.c (killDeadCode): fixed bug #907733
9923         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
9924         that the variable, not the function, should be static
9925         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
9926         to be consistent with non-literal case
9927
9928 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9929
9930         * src/SDCCast.c (isConformingBody): fixed bug #949967
9931         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
9932         convilong): fixed bug #952086
9933
9934 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9935
9936         * src/SDCCmem.c (allocVariables): fixed bug #955321
9937
9938 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9939
9940         * src/hc08/main.c (_hc08_genAssemblerEnd),
9941         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
9942         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
9943         completely eliminated the use of a temporary file
9944         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
9945         when more than one file linked
9946         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
9947
9948 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9949
9950         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
9951         which fixes bug #543481
9952         * support/regression/tests/bug-751703.c: fixed comments left from a
9953         cut and paste error
9954         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
9955         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
9956         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
9957         scopes
9958         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
9959         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
9960         are now changed to underscores in moduleName
9961
9962 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9963
9964         * as/mcs51/lkmem.c: better fix for bug #954173
9965
9966 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
9967         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9968
9969         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
9970         * device/include/c8051f000.h,
9971         * device/include/c8051f120.h,
9972         * device/include/c8051f300.h,
9973         * device/include/c8051f310.h,
9974         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
9975         PWM16) and detab'ed
9976
9977 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9978
9979         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
9980         and mailing lists, doc'ed --no-peep-comments, removed reference
9981         to knoppix (newest version has no LyX/LaTeX), other minor changes
9982         * src/SDCCglue.c (glue): save 2 bytes stack space with
9983         option --main-return. The ljmp could probably be avoided too
9984
9985 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9986
9987         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
9988
9989 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9990
9991         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
9992         * src/SDCCopt.c (isLocalWithoutDef),
9993         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
9994         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
9995         (credit to Maarten Brock for patch #949363, on which this is based)
9996         * support/regression/tests/bug-751703.c: some test cases of extern used
9997         within inner scopes.
9998
9999 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10000
10001         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
10002         SPEC_STRUCT
10003         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
10004         struct definitions
10005         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
10006         dwWriteLabel): fix to create valid debugger symbols even when
10007         the module name has non-alphanumeric symbols in it
10008         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
10009         when a variable's allocation has been optimized away
10010
10011
10012 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10013
10014         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
10015         * src/hc08/main.c,
10016         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
10017         * src/mcs51/main.c,
10018         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
10019         * src/ds390/main.c,
10020         * src/z80/gen.c (z80_emitDebuggerSymbol),
10021         * src/z80/main.c,
10022         * src/pic/gen.c (pic14_emitDebuggerSymbol),
10023         * src/pic/main.c,
10024         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
10025         * src/pic16/main.c,
10026         * src/avr/gen.c (avr_emitDebuggerSymbol),
10027         * src/avr/main.c,
10028         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
10029         * src/xa51/main.c,
10030         * src/SDCCdebug.c (emitDebuggerSymbol),
10031         * src/SDCCdebug.h,
10032         * src/port.h: added a debugger struct to the port struct. Added a
10033         callback for defining debugger symbols
10034
10035         * src/SDCCast.c (createLabel),
10036         * src/SDCC.y (labeled_statement): mark all compiler generated labels
10037         with isitmp = 1
10038         * src/SDCCicode.h,
10039         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
10040         iCode back to the ast for the function
10041
10042         * src/hc08/ralloc.c (hc08_assignRegisters),
10043         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
10044         unneeded fields from the regs struct.
10045         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
10046         pushReg() & pullReg() functions instead of emitcode()
10047
10048         * src/hc08/gen.c (genLabel, genhc08Code),
10049         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
10050
10051         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
10052         debugger hooks
10053
10054         * src/hc08/gen.c (genEndFunction, genhc08Code),
10055         * src/hc08/gen.h,
10056         * src/mcs51/gen.c (genEndFunction, gen51Code),
10057         * src/mcs51/gen.h,
10058         * src/ds390/gen.c (genEndFunction, gen390Code),
10059         * src/ds390/gen.h,
10060         * src/z80/gen.c (genEndFunction, genZ80Code),
10061         * src/z80/gen.h,
10062         * src/z80/z80.h,
10063         * src/pic/gen.c (genEndFunction, genpic14Code),
10064         * src/pic/gen.h,
10065         * src/pic16/gen.c (genEndFunction, genpic16Code),
10066         * src/pic16/gen.h,
10067         * src/avr/gen.c (genEndFunction, genAVRCode),
10068         * src/avr/gen.h,
10069         * src/xa51/gen.c (genEndFunction, genXA51Code),
10070         * src/xa51/gen.h,
10071         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
10072         specific code to cdbFile.c and out of the backend code generators
10073
10074         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
10075         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
10076         starting address is now 0
10077
10078         * as/hc08/asm.h,
10079         * as/hc08/m08pst.c,
10080         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
10081         assembler directive for DWARF support
10082         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
10083
10084         * src/src.dsp,
10085         * src/Makefile.in,
10086         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
10087
10088 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10089
10090         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
10091         and inappropriate peephole optimization in jump tables
10092
10093 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10094
10095         * as/hc08/m08pst.c,
10096         * src/SDCCglue.c: sdccopt works for the hc08 port now
10097
10098 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
10099
10100         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
10101
10102 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10103
10104         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
10105
10106 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10107
10108         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
10109         rules
10110         * src/SDCCmain.c,
10111         * src/SDCCglobl.h,
10112         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
10113         comments from the peephole optimizer replacement rules
10114         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
10115         symbols
10116         * src/SDCCcse.c (updateSpillLocation),
10117         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
10118         equivalents
10119         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
10120         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
10121         objects far pointers
10122
10123 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10124
10125         * src/SDCCsymt.h: a missing part of my last change
10126         * src/pic/ralloc.c (regTypeNum),
10127         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
10128
10129 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10130
10131         * src/SDCCicode.h,
10132         * src/SDCCicode.c (aggrToPtrDclType),
10133         * src/SDCCptropt.h,
10134         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
10135         ptrPseudoSymConvert),
10136         * src/pic/ralloc.c (regTypeNum),
10137         * src/pic16/ralloc.c (regTypeNum),
10138         * src/hc08/ralloc.c (regTypeNum),
10139         * src/ds390/ralloc.c (regTypeNum),
10140         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
10141         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
10142
10143 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10144
10145         * link/z80/lkmain.c (afile),
10146         * as/hc08/lkmain.c (afile),
10147         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
10148         prevent a pointer problem when a filename has no directory and
10149         no extension specified.
10150
10151 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10152
10153         * link/z80/lkmain.c (afile): allow periods in directory names
10154         * link/z80/lkmain.c (afile),
10155         * as/mcs51/lkmain.c (afile),
10156         * as/hc08/lkmain.c (afile): allow linker script file to have an
10157         extension other than ".lnk"
10158         * link/z80/lklex.c (getfid),
10159         * link/z80/lkmain.c (parse),
10160         * as/mcs51/lklex.c (getfid),
10161         * as/mcs51/lkmain.c (parse),
10162         * as/hc08/lklex.c (getfid),
10163         * as/hc08/lkmain.c (parse): Support comments in the linker script
10164         file on lines by themselves and after filenames
10165
10166 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10167
10168         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
10169
10170 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10171
10172         * src/z80/peeph-z80.def: removed some peephole rules that don't
10173         work with multibyte arithmetic (fixed bug #937126)
10174         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
10175         to registers and not global variables
10176         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
10177         geniCodePreInc, geniCodePostDec, geniCodePreDec,
10178         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
10179         checking for assignments not internally generated (fixed bug #931895)
10180         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
10181         structure member (fixed bug #930072)
10182
10183 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10184
10185         * src/SDCCmain.c (linkEdit),
10186         * src/hc08/main.c (_hc08_parseOptions),
10187         * as/hc08/Makefile.in,
10188         * as/hc08/aslink.h,
10189         * as/hc08/asm.h,
10190         * as/hc08/m08pst.c,
10191         * as/hc08/lkrloc.c (relr, rele),
10192         * as/hc08/lkarea.c (lnkarea)
10193         * as/hc08/lkmain.c (afile, parse),
10194         * as/hc08/lkelf.c: support for ELF output
10195         * as/hc08/lks19.c (s19),
10196         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
10197
10198 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10199
10200         * as/mcs51/lkihx.c: Fixed bug #899105.
10201
10202 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10203
10204         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
10205         .dsp files from Unix to DOS.
10206
10207 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10208
10209         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
10210         function pointers; we have been compliant for several months now.
10211         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
10212         change that was accidently commented out
10213         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
10214         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
10215         bug #922319
10216
10217 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10218
10219         * src/hc08/gen.c: output of all of the internal debugging information
10220         is now controlled by the D() macro; it is disabled by default
10221
10222 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10223
10224         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
10225         harder to keep the same registers during a CAST iCode
10226         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
10227         long via int can be done in a single cast, if the signedness is
10228         correct.
10229         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
10230         putchar() in tinibios.c in ds390's library
10231
10232 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
10233
10234         * src/SDCCast.c (decorateType): fixed bug #898889,
10235         cast result of a literal complement too
10236         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
10237         fixed check for bitfields
10238
10239 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
10240
10241         * src/SDCCicode.c (geniCodeLogic): made it static,
10242         (geniCodeLogicAndOr): added in order to fix bug #905492,
10243         (ast2iCode): fixed bug #905492
10244         * support/regression/tests/bug-905492.c: added
10245         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
10246         (processParms): fixed bug #927659: don't copy parms, this will clear
10247         decorated flag
10248         * support/regression/tests/bug-927659.c: added
10249
10250 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
10251
10252         * src/SDCCast.c (addCast): don't cast float to char
10253         * device/lib/libsdcc.lib: added _memmove
10254
10255 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
10256
10257         * device/lib/large/Makefile: fixed parallel execution by
10258         replacing `make` by `$(MAKE)`
10259
10260 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10261
10262         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
10263         offsets (fixes bug #923936)
10264
10265 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
10266
10267         * device/lib/small/Makefile: fixed parallel execution by
10268         replacing `make` by `$(MAKE)`
10269
10270 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
10271
10272         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
10273
10274 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
10275
10276         * src/pic/gen.c (genCpl): multi-byte complements were not working.
10277         * src/regression/Makefile: Regression test was not running.
10278
10279 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
10280
10281         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
10282         complement if possible
10283         * src/SDCCval.c (valComplement),
10284         * src/SDCCicode.c (operandOperation): fixed complement of literal
10285         * support/regression/tests/onebyte.c (testComplement): added
10286
10287 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
10288
10289         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
10290         return an optimized tree; actually replace actParm with the new tree
10291         * src/SDCCast.h: added some parantheses to remove side effects
10292         * support/regression/tests/bug-920866.c
10293
10294 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
10295         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
10296         Bit operands were not being handled properly in the pic14 port.
10297         (now src/regression/add.c passes again).
10298
10299 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10300
10301         * src/SDCC.y (labeled_statement): case and default no longer require
10302         a following statement (RFE #893037)
10303
10304 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10305
10306         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
10307         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
10308         disabled (fixes bug #916294)
10309         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
10310         "mov a,acc"; patch provided by Lenny Story
10311         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
10312
10313 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10314
10315         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
10316         functions
10317         * src/ds390/gen.c (genFunction, genEndFunction),
10318         * src/ds390/ralloc.c (ds390_assignRegisters),
10319         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
10320         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
10321         pushed if there are parameters passed on the stack. Also, a cleaner
10322         way to decide if r0/r1 should be pushed/popped. (Together they fix
10323         bug #918693)
10324
10325 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10326
10327         * doc/sdccman.lyx,
10328         * device/lib/mcs51/crtpagesfr.asm,
10329         * device/lib/mcs51/crtxinit.asm,
10330         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
10331         to avoid confusion with Si Lab's SFRPAGE register.
10332
10333 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10334
10335         * src/SDCCglue.c (emitMaps): allow public sfr variables
10336         * src/SDCCglue.c (initialComments): include compiler build date
10337         with compiler version and put the timestamp of the generated
10338         assembly file on a serperate line to be less confusing.
10339         * src/port.h: added genInitStartup hook
10340         * src/avr/main.c,
10341         * src/ds390/main.c,
10342         * src/hc08/main.c,
10343         * src/pic/main.c,
10344         * src/pic16/main.c,
10345         * src/xa51/main.c,
10346         * src/z80/main.c: genInitStartup initialize as NULL (default to
10347         historical behaviour)
10348         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
10349         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
10350         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
10351         library instead of hard coding it into the compiler.
10352         * support/regression/ports/mcs51-stack-auto/spec.mk,
10353         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
10354         * device/lib/mcs51/Makefile,
10355         * device/lib/small/Makefile,
10356         * device/lib/large/Makefile,
10357         * device/lib/mcs51/crtpagesfr.asm,
10358         * device/lib/mcs51/crtstart.asm,
10359         * device/lib/mcs51/crtxclear.asm,
10360         * device/lib/mcs51/crtxinit.asm,
10361         * device/lib/mcs51/crtclear.asm,
10362         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
10363         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
10364         and into user configurable files.
10365         * device/lib/clean.mk: clean mcs51 directory too
10366         * support/regression/tests/longlit.c: added static to T1 declaration
10367         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
10368         accesses in the initialization code
10369
10370 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10371
10372         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
10373         OSCTRIMVAL as noted in bug #916008
10374
10375 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10376
10377         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
10378         in loops with multiple exits (reported as incorrect registers
10379         used by Martin Helmling in Sdcc-user list)
10380
10381 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10382
10383         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
10384         made ds390 register extensions look less like error messages
10385
10386 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10387
10388         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
10389         reported by Adam Wozniak in Sdcc-user list
10390
10391 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
10392
10393         * src/SDCCast.c (decorateType): fixed with bug and promotion in
10394         arithmetic optimizations, added debug output
10395
10396 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
10397
10398         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
10399         * sdcc.spec: updated and split sdcc into 3 rpms
10400         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
10401         needed for literals of LEFT_OP and '+'
10402         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
10403         introduced RESULT_TYPE_NOPROM
10404         (geniCodeMultiply): fixed logic for decision if mul is optimized to
10405         left shift
10406         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
10407         limited promotion to int only for '*'
10408         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
10409
10410 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
10411
10412         * src/pic16/gen.c (genSkip),
10413         (genc16bit2lit), (gencjneshort): commented out
10414         (is_LitOp): new helper function, checks operand type
10415         (genCmpEq): rewritten
10416
10417 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
10418
10419         * support/regression/tests/bug-908454.c: added
10420
10421 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
10422
10423         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
10424         * src/SDCCicode.c (usualBinaryConversions): op needs int type
10425         (geniCodeCast): cosmetic, don't preserve bit storage class
10426         (geniCodeLeftShift): added promotion
10427         (geniCodeLogic): fixed regression
10428         * src/SDCCsymt.c (computeTypeOr): accept bits too
10429         (compareType): 2nd part of fix for bug #908454, needed for bitfields
10430
10431 2004-03-07  Borut Razem <borut.razem AT siol.net>
10432
10433         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
10434
10435 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
10436
10437         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
10438         version of pic16_genPackRegisters which does not check if ic is a
10439         CAST operator,
10440         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
10441         function cause string1.c regression test fails
10442
10443 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
10444
10445         * sim/ucsim/configure.in,
10446         * sim/ucsim/configure,
10447         * sim/ucsim/doc/Makefile.in: use docdir
10448         * src/SDCC.y: fixed sbit atrributes
10449         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
10450         * src/SDCCast.c (decorateType): |^& need special promotion handling
10451         * src/SDCCast.h,
10452         * src/SDCCsymt.h: moved definition of RESULT_TYPE
10453         * src/SDCCsymt.h (computeType),
10454         * src/SDCCicode.c: computeType() needs op
10455         * src/SDCCsymt.c (checkTypeSanity),
10456         * doc/sddman.lyx: "plain" bitfields are unsigned
10457         * src/SDCCsymt.c (computeTypeOr): added
10458         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
10459         |^& ops
10460         * src/SDCCval.c (val*): computeType() needs op
10461         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
10462         * support/regression/tests/onebyte.c: added tests for |^&
10463
10464 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
10465
10466         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
10467         for writing icode into asm output.
10468
10469 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
10470
10471         * src/pic16/device.c: added some debug lines enabled
10472         with macro DEBUG_CHECK,
10473         * src/pic16/genarith.c: more debug in genPlus,
10474         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
10475         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
10476         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
10477         * (aopForSym): onStack symbols are re-placed in data memspace,
10478         and onStack flag is cleared,
10479         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
10480         copy temporary pcodeop,
10481         * (genPcall): added warning for not updating PCLATU,
10482         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
10483         always true for pic16 port,
10484         * (genMultOneWord): NEW, supports integer multiplication,
10485         * (genMult): modified to call genMultOneWord,
10486         * (ifxForOp): added warning when return NULL,
10487         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
10488         flag is set before call to operandFromSymbol for implicit
10489         added structures,
10490         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
10491         options.intlong_rent are set by default,
10492         * (_hasNativeMulFor): modified to allow port generation of integer
10493         multiplication,
10494         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
10495         set regtype to REG_SFR for all registers, restricting seting the
10496         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
10497
10498 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10499
10500         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
10501         more than 500 times in the regression tests
10502
10503 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10504
10505         * support/Util/SDCCerr.h,
10506         * support/Util/SDCCerr.c,
10507         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
10508         enumerator_list),
10509         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
10510         for symbol conflicts.
10511         * support/valdiags/tests/enum.c,
10512         * support/valdiags/tests/tentdecl.c,
10513         * support/valdiags/tests/struct.c: expect possible error messages
10514         referring to original symbol definitions.
10515         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
10516         * src/SDCCsymt.h,
10517         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
10518
10519 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
10520
10521         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
10522
10523 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
10524
10525         * src/pic16/ralloc.c (newReg): fixed bug #908929
10526
10527 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10528
10529         * src/ds390/gen.c: added missing #include "main.h"
10530
10531 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
10532
10533         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
10534         checking if symbol is already in set,
10535         * src/pic16/device.h: prototype for checkAddSym,
10536         * src/pic16/gen.c: (_G): added entry interruptvector,
10537         * (assignResultValue): removed some commented out lines,
10538         * (genFunction): check for ISR via sym->type, absolute section for
10539         interrupt code is created via a new pBlock, the goto instruction is
10540         placed now correctly at the interrupt vector position, changed all
10541         references from ivec to _G.interruptvector,
10542         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
10543         is the interrupt is a high priority one, same for return from ISR,
10544         * src/pic16/glue.c: changed all calls of addSetHead for publics and
10545         externs to calls of checkAddSym,
10546         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
10547         pic16_pcode_verbose flag is set,
10548         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
10549         * src/pic16/pcoderegs.c: message about how many registers are saved
10550         will only be emitted if pic16_pcode_verbose flag is set,
10551
10552 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10553
10554         * src/ds390/ralloc.h,
10555         * src/ds390/ralloc.c (ds390_regWithIdx),
10556         * src/ds390/gen.c (emitcode),
10557         * src/ds390/main.h,
10558         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
10559         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
10560         ds390operandCompare, getRegsRead, getRegsWritten,
10561         initializeAsmLineNode): customized instruction size calculation for
10562         ds390, started basis for some register optimizations
10563         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
10564         corresponding assembly output
10565         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
10566         missing push/pop of r0/r1. Optimized push/pops
10567
10568 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10569
10570         * src/mcs51/main.c (instructionSize): fixed ACALL size
10571         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
10572
10573 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
10574
10575         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
10576         the sorting of rlist with NULL elements
10577         * (print_idataType, print_idata): NEW to create idata sections
10578         * src/pic16/device.h: idataSymSet new variable
10579         * src/pic16/gen.c (genFunction): fixed some bugs in string
10580         comparing, improved the absolute section creation for ISRs,
10581         added FSR0L/FSR0H in registers that are saved in an ISR,
10582         * (genInline): fixed the processing of inline snippets,
10583         now they undergo no process by the peephole optimizer
10584         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
10585         are placed in idataSymSet,
10586         * (pic16emitStaticSeg): extern symbols are added in externs,
10587         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
10588         switching when aboslute variables are placed in access bank memory
10589         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
10590         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
10591         commented out with #if,
10592         * (pic16_packRegisters): reintroduce the check for CAST because some
10593         symbols are not correctly handled,
10594         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
10595         pCodeInstruction instead of pCode,
10596         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
10597         pCodeAsmDir definition,
10598         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
10599         directive, then the argument directive is emitted without the leading
10600         tab, hack for inline labels which must be in the first column,
10601         * (compareLabel,pic16_findNextInstruction),
10602         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
10603         * (insertBankSwitch): modified for the new pCodeAsmDir,
10604
10605 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
10606         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
10607
10608         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
10609         instance,
10610         * (pushSide): commented out with #if,
10611         * (assignResultValue): fixed some typos in saving
10612         registers,
10613         * (genPcall): FIXED and sync'ed with genCall,
10614         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
10615         * (genNearPointerGet): fixed to handle some more cases,
10616         implementation scheme via table reads,
10617         * (genConstPointerGet): modified to access code memory correct,
10618         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
10619         and improved to handle some cases
10620         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
10621         instead of "RETLW" for init data
10622         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
10623         not IN_DIRSPACE, work around to reduce bank switching when aboslute
10624         variables are placed in access bank memory (<0x80 and >=0xf80),
10625         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
10626         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
10627         TBLWT_POSTDEC,TBLWT_PREINC
10628         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
10629         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
10630         directives
10631         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
10632         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
10633         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
10634         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
10635
10636 2004-02-29  Borut Razem <borut.razem AT siol.net>
10637
10638         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
10639         support/Util/findme.h, support/Util/system.h: enhance binary relative
10640         search for lib and include by using findProgramPath()
10641
10642 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10643
10644         * src/SDCCpeeph.h,
10645         * src/SDCCpeeph.c (pcDistance),
10646         * src/port.h,
10647         * src/mcs51/ralloc.h,
10648         * src/mcs51/ralloc.c (mcs51_regWithIdx),
10649         * src/mcs51/main.h,
10650         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
10651         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
10652         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
10653         size calculation port specific, started basis for some register
10654         optimizations
10655         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
10656         missing push/pop of r0/r1. Optimized push/pops
10657         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
10658         * device/lib/_modsint.c (_modsint),
10659         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
10660         and stack version so regression tests pass
10661
10662 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
10663
10664         * src/Makefile.in (dep): include SLIBOBJS in dependency check
10665         * src/SDCCast.c (decorateType): catch another small optimization
10666         with '?' operator
10667         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
10668         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
10669         modified to finally use computeType() all over SDCC,
10670         see Feature Request #877103
10671         * src/SDCCval.h: cosmetic
10672         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
10673         valCompare(); regression tested in muldiv.c
10674         * support/regression/tests/muldiv.c (testMod): mod sign follows
10675         dividend only
10676
10677 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
10678
10679         * src/SDCCast.c (decorateType): fixed bug #902362
10680         * doc/INSTALL.txt: fixed install instructions for win32
10681
10682 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
10683
10684         * device/include/Makefile.in (install): fixed by replacing spaces
10685         by tabs
10686         * doc/README.txt,
10687         * doc/INSTALL.txt: updated for release
10688         * doc/sdccman.lyx: added warning for --xstack being buggy
10689
10690 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
10691
10692         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
10693         to eliminate build warnings.
10694         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
10695
10696 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
10697            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
10698
10699         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
10700         removed -penable-stack, added comment for stack pragma, added
10701         warning for not initializing the stack/frame registers, removed
10702         comment at interrupts section
10703
10704         Stack is made permanent, there is no ability to disable stack usage.
10705         * src/pic16/device.h,
10706         * src/pic16/device.c: removed all references to USE_STACK macro,
10707         * src/pic16/device.c (pic16_dump_section): when no elements in
10708         rlist, free rlist before return,
10709         * (pic16_dump_int_registers): NEW, internal registers are a new set
10710         of general purpose registers reused by each function,
10711         * (checkAddReg): returns 1 if registers is added to set,
10712         * (pic16_groupRegistersInSection): when a registers is of type
10713         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
10714         * src/pic16/device.h: memRange and Assigned Memory are deleted,
10715         SRCASECMP macro is moved here from device.c
10716         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
10717         PO_PCLATU, PO_PRODL, PO_PRODH,
10718         * (pic16_pCodeOpType, genMinus,
10719         changed compares to "a" register, with AOP_ACC,
10720         * (pic16_genPlus): fixed some bugs and indented properly,
10721         * (pic16_addSign): changed size to size+offset in the MOVWF
10722         instruction,
10723         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
10724         multiply 8-bit operand by literal, result is 8-bit,
10725         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
10726         multiply 2 8-bit operand, result is 8-bit,
10727         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
10728         genUMult8X*_16,
10729         * src/pic16/gen.c: changed accUse to contain WREG only,
10730         * (pic16_emitcomment): renamed to pic16_emitpcomment,
10731         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
10732         true, do not use immediate addressing any more unless sym is a
10733         pointer in codespace,
10734         * (aopForRemat): do not use immediate addressing when symbol not in
10735         codespace and when symbol's address is requested,
10736         * (aopOp): for-loop in if(sym->accUse) is modified for the new
10737         accUse size (= 1),
10738         * (aopGet): added case for AOP_ACC and don't return "accumulator
10739         bug" but WREG instead,
10740         * (popGetTempReg): pushes contents of temporary register in stack,
10741         * (popReleaseTempReg): pops contents of temporary register from
10742         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
10743         * (pic16_popGet): separated case AOP_ACC to return register WREG
10744         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
10745         or PO_IMMEDIATE and initializes their instance/offset appropriately,
10746         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
10747         the use of immediate pointers to certain cases only.
10748
10749         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
10750         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
10751         * (assignResultValue, genCall, genRet): modified to use the new
10752         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
10753         genPcall is still broken,
10754         * (genFunction): added code to create 'A' type pBlocks when
10755         interrupt functions are generated, code not extensively tested yet,
10756         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
10757         * (genEndFunction): modified so ISRs pop stored registers from stack,
10758         * (genMultOneByte): cleanup,
10759         * (AccRsh): added flag andmask, to and result with appropriate mask,
10760         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
10761         * (genDataPointerGet): fixed and reenabled its use,
10762         * (genNearDataPointerGet): bugs fixed,
10763         * (genDataPointerSet): bugs fixed,
10764         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
10765         pic16_DumpSymbol, pic16_DumpOp,
10766         * src/pic16/genutils.h: function prototypes for the above functions,
10767         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
10768         pointers,
10769         * (pic16emitRegularMap): many many many improvements, but needs a
10770         major cleanup,
10771         * src/pic16/main.c: enable_stack in pic16_options is removed,
10772         * (_pic16_parseOptions): removed command line options -penable-stack,
10773         * (_process_pragma): emit stack symbol only when stack pragma is
10774         processed,
10775         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
10776         redirected to FSR0L/FSR0H pair,
10777         * (pic16_get_op, pic16_get_op2): modifications and improvements,
10778         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
10779         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
10780         for immediates,
10781         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
10782         * (dumpPicOptype): NEW,
10783         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
10784         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
10785         with movff instruction,
10786         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
10787         added pic16_int_regs, some packRegsFor* functions are commented out,
10788         because produce errors,
10789         * src/pic16/NOTES: minor modifications
10790
10791 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10792
10793         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
10794         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
10795         --pack-iram.
10796         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
10797         * as/mcs51/lkaomf51.c: fixed bug #895763
10798
10799 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
10800
10801         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
10802
10803 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10804
10805         * doc/sdccman.lyx: added details about the HC08 storage classes and
10806         interrupts, fixed the register usage info for z80 & gbz80
10807
10808 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
10809
10810         * doc/sdccman.lyx: added more pic16 port documentation
10811         * device/include/pic16/: added header pic18fregs.h
10812
10813 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
10814
10815         * doc/sdccman.lyx: added Vangelis' contribution
10816
10817 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10818
10819         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
10820         extend to the next CALL or PCALL, not just to the next CALL.
10821
10822 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
10823
10824         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
10825
10826 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10827
10828         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
10829         bug #895752 and a better fix for bug #716790
10830
10831 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10832
10833         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
10834
10835 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10836
10837         * doc/sdccman.lyx: minor changes, minor changed
10838
10839 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
10840
10841         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
10842         which can't handle SDCC_NEWONEBYTEOPS,
10843         (geniCodeMultiply): removed conversion from mult to shift for pic14
10844         and pic16
10845
10846 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10847
10848         * src/hc08/gen.h,
10849         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
10850         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
10851         thus fixing bug #895406
10852
10853 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
10854
10855         * device/lib/_modsint.c,
10856         * device/lib/_modslong.c: sign follows divisor only
10857         * src/hc08/gen.c (genMultOneByte): if result size is 1,
10858         signs or signedness can be ignored
10859         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
10860         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
10861         added optimization for IFX,
10862         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
10863         arguments;
10864         reenabled optimization for IFX, which was removed on 2004-01-11
10865         * src/SDCCast.h: added return type IFX
10866         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
10867         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
10868         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
10869         SDCC_OLDONEBYTEOPS selects the old behaviour
10870         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
10871         changed again and commented promotion rule
10872         * src/SDCCval.c (valDiv): promotion no longer necessary
10873         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
10874         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
10875         rewritten
10876         * support/regression/tests/onebyte.c: added
10877
10878 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
10879
10880         * gen.c (genInline): reverted to old code for assemnling inline
10881         code because of bug reported James Chadd
10882
10883 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
10884
10885         * ralloc.h: missing declarations from previous patch,
10886         seems that patch for ralloc.h was never applied, fixed
10887
10888 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
10889            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
10890
10891         * pcode.c,
10892         * pcode.h,
10893         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
10894         indirect addressing. Marked FSR0 as deprecated
10895         * gen.c (pointerCode): commented out, not needed now
10896         (pic16_popGet2p): new MOVFF helper function
10897         (genGenPointerGet),
10898         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
10899         (shiftRLong): removed duplicate debugging info
10900
10901 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10902
10903         * src/ds390/gen.c (genNearPointerGet),
10904         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
10905         optimization with bits, but not bitfields.
10906         * src/ds390/ralloc.c (packRegisters),
10907         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
10908
10909 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
10910
10911         * src/SDCCcse.c (algebraicOpts): copy operands before modification
10912
10913 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10914
10915         * src/SDCCsymt.h,
10916         * src/SDCCicode.c (operandFromSymbol),
10917         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
10918         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
10919         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
10920         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
10921         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
10922         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
10923         bug #892038
10924         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
10925         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
10926         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
10927         * src/SDCCsymt.c (newSymbol),
10928         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
10929         enumerator_list),
10930         * src/SDCCval.h,
10931         * src/SDCCval.c (newiList): fixed bug #885705
10932
10933 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10934
10935         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
10936         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
10937
10938 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10939
10940         * device/include/c8051f120.h,
10941         * device/include/c8051f300.h,
10942         * device/include/c8051f310.h: added/updated header files for Silicon
10943         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
10944         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
10945         in new section Submitting patches
10946
10947 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10948
10949         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
10950         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10951         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10952         genGenPointerSet),
10953         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
10954         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10955         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10956         genGenPointerSet),
10957         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
10958         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10959         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10960         genGenPointerSet),
10961         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
10962         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10963         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10964         genGenPointerSet): fixed bug #892400
10965         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
10966         to eliminate build warnings.
10967         * src/SDCCast.c (processParms),
10968         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
10969         fixed bug 751859
10970         * support/valdiag/valdiag.py: added GCC to the list of defines active
10971         when compiling with gcc
10972
10973 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10974
10975         * support/Util/SDCCerr.h,
10976         * support/Util/SDCCerr.c,
10977         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
10978         with an incomplete type (fixed bug #883734)
10979         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
10980
10981 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10982
10983         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
10984
10985 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10986
10987         * src/SDCCast.c (decorateType),
10988         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
10989         function pointer implementation
10990         * support/regression/tests/funptrs.c: added tests to verify both forms
10991         of function pointers work correctly. Added tests to verify parameters
10992         are passed in the correct order.
10993
10994 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
10995
10996         * device.c (regCompare): registers are sorted by ascending
10997         address and increasing size,
10998         * main.c (_pic16_finaliseOptions): removed the declaration
10999         of compiler macro MCU. Now a macro of the format pic18fxxxx
11000         will be defined from the command line
11001
11002 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11003             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
11004
11005         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
11006         PCOP_RLCF was overwritten!
11007         * gen.c (genSkip): commented out calls to pic16_emitcode,
11008         * (genCmpEQ): fixed "long" compares, only high word did get compared,
11009         * (genlshTwo),
11010         * (genRRC): added debugging info,
11011         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
11012         overwritten while shifting,
11013         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
11014         overwritten while shifting,
11015         * (AccLsh),
11016         * (AccRsh),
11017         * (shiftLLeftOrResult),
11018         * (shiftRLeftOrResult),
11019         * (shiftRLong),
11020         * (shiftLLong): Implemented with pic16_emitpcode
11021         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
11022         * (genLeftShift): Fixed bug, operand for shift by variable always
11023         was "and"ed with 0x0f,
11024         * (genLeftShiftLiteral),
11025         * (genrshTwo),
11026         * (genRightShiftLiteral): added debugging info,
11027         * (genrshFour): added comment,
11028         * (genRightShift): determined signedness from operand "left"
11029         instead of "result"
11030
11031 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11032
11033         * src/SDCCicode.c (geniCodeParms),
11034         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
11035         function pointers, fixed function pointer bugs #861242 and #861896
11036
11037 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11038
11039         * device/include/c8051f000.h,
11040         * device/include/c8051f120.h,
11041         * device/include/c8051f300.h: added header files for Silicon
11042         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
11043
11044 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
11045
11046         * src/SDCCast.c (processParams): added new type flow and restructured
11047         (gatherAutoInit): added new type flow
11048         (addCast): cosmetic changes
11049         (getLeftResultType): added new type flow for array indices, patch
11050         provided by Stas, see FR #877103
11051         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
11052         array index patch by Stas
11053         * src/SDCCast.h: added prototype getResultTypeFromType()
11054         * src/SDCCval.h,
11055         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
11056         * src/pic/glue.c (pic14emitStaticSeg),
11057         * src/pic16/glue.c (pic16emitStaticSeg),
11058         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
11059         for initialization of symbols
11060         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
11061         * support/Util/SDCCerr.h:
11062         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
11063         * .version: bumped version number to 2.3.8
11064         * device/include/Makefile.in (install),
11065         * doc/Makefile (install): changed to 'rm `find ...`' construct to
11066         avoid warnings
11067
11068 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
11069
11070         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
11071         Slade Rich fixed an optimization bug
11072         * src/pic/pcodepeep.c,
11073         * src/pic/pcoderegs.c
11074         * doc/Makefile (install): added test for directory
11075
11076 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11077
11078         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
11079         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
11080         * src/pic/ralloc.c (getRegPtr, getRegGpr),
11081         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
11082         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
11083         * as/mcs51/asexpr.c (term),
11084         * as/hc08/asexpr.c (term): fixed bug #887146
11085
11086 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11087
11088         * src/z80/gen.c (genMult): handle single byte result product
11089         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
11090         DUMMY_READ_VOLATILE (fixed bug #886367)
11091
11092 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
11093
11094         * support/regression/tests/libmullong.c: fixed logic, on little endian
11095         hosts we ended without a mullong_wrapper()
11096
11097 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11098
11099         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
11100         virus/worm forged address usage.
11101
11102 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
11103
11104         Fixed promotion, it should be done on AST level:
11105         * src/SDCCast.c (addCast): added promotion to int
11106         (decorateType): updated call to upCast()
11107         * src/SDCCicode.c (geniCodeLeftShift): removed call to
11108         usualUnaryConversions()
11109
11110 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
11111
11112         * support/regression/tests/literalop.c (mulWrapper): Added a
11113         wrapper to remove integer overflow warnings.
11114
11115         * support/regression/tests/float_trans.c: Made work on host.
11116
11117         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
11118         location of sz80.
11119
11120         * support/regression/generate-cases.py (main): Changed from inline
11121         to a main method.
11122
11123         * doc/Makefile (install): Changed to depth first to get rid of
11124         missing directory install warning.
11125
11126         * as/Makefile (install-doc): Made work on Mac.
11127
11128 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
11129
11130         * src/SDCCast.c: added an additional type flow in decorateType() of
11131         opposite direction, see feature request #860006; it's enabled at runtime
11132         by setting the environment variable SDCC_NEWTYPEFLOW
11133         * src/SDCCast.h: changed prototype of decorateType()
11134         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
11135         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
11136         'char' to 'int' can be omitted, if both operands are 'unsigned char';
11137         see feature request #877103
11138         * src/SDCCval.c: updated call of decorateType()
11139         (valBitwise): fixed bug #882876
11140         (valMinus): added promotion
11141         (valLogicAndOr): result is unsigned
11142         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
11143         * src/SDCCsymt.c (computeType),
11144         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
11145         must not cause an unsigned operation
11146         * src/pic/glue (pic14emitRegularMap),
11147         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
11148
11149 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
11150
11151         * src/pic/pcode.c (PCodeID): commented out left over debug code
11152
11153 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
11154
11155         * support/valdiag/tests/overflow.c: added shift tests
11156         * src/pic/device.c,
11157         * src/pic/gen.c,
11158         * src/pic/gen.h,
11159         * src/pic/glue.c,
11160         * src/pic/main.c,
11161         * src/pic/pcode.c,
11162         * src/pic/pcode.h,
11163         * src/pic/pcodepeep.c,
11164         * src/pic/pcoderegs.c,
11165         * src/pic/ralloc.c,
11166         * src/pic/ralloc.h: applied patch from Slade Rich;
11167         added support for multiple code pages and multiple RAM banks on the
11168         PIC 14 port. The ASM files now no longer simply assume all the
11169         code / RAM are in the same page / bank. This means the linker can
11170         safely allocate code/RAM of separate ASM files to different pages/banks.
11171         * doc/sdccman.lyx: added Slade's tips
11172         * src/mcs51/peeph.def: fixed bug #880768
11173
11174 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11175
11176         * src/hc08/ralloc.c (rematStr): fixed bug #879282
11177         * src/SDCCast.c (decorateType): fixed bug #880197
11178
11179 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
11180
11181         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
11182         getopt.h.
11183
11184         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
11185         strtof is not part of C89 and isn't included with Mac OS X.
11186
11187 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11188
11189         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
11190         shiftL2Left2Result): fixed bug #879326
11191         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
11192         (genMultOneByte): fixed bug in signed vs unsigned multiplication
11193         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
11194         address fetch for clr instruction
11195         * device/lib/hc08/_mulint.c: created optimized assembly version
11196         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
11197
11198 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
11199
11200         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
11201         proposed in FR #877103
11202
11203 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
11204
11205         * src/SDCCval.c (cheapestVal): added missing checks
11206         * src/SDCCicode.c (usualBinaryConversions): fixed condition
11207         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
11208
11209 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
11210
11211         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
11212         equal operands
11213
11214 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
11215
11216         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
11217         loaded with the linker search paths (-L arguments) and the libraries
11218         to be linked with the current source (-l arguments). Changes
11219         currently will affect only the pic16 port.
11220         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
11221         include path the port specific paths and port specific libraries,
11222         * gplink command now contains the $3 argument,
11223         * src/pic16/device.h,
11224         * src/pic16/device.c,: structure PIC_device is made public and
11225         renamed to PIC16_device, the same for variable Pics which is renamed
11226         to Pics16. Updated all references to them.
11227         * src/pic16/glue.c (pic16glue): corrected bug with code
11228         initialization which bypassed the variable initializations block.
11229
11230         * device/lib/pic16/Makefile.rules: removed --penable-stack from
11231         COMPILE_FLAGS and added the --nostdinc option
11232
11233 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11234
11235         * device/include/mc68hc908jb8.h: Register defs for another member
11236         of the hc08 family. Contributed by Bjorn Bringert - thanks!
11237
11238 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
11239
11240         Documenting changes from previous commits.
11241         * configure.in (version 1.56),
11242         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
11243         when generating output files to configure the pic16 library,
11244         but now I've commented it out, since gputils aren't installed in the
11245         SF compile farm, so library won't compile
11246
11247         * device/lib/Makefile.in (version 1.56): initially I've added in
11248         target 'all' the prerequestive 'model-pic16' so it compiled the
11249         pic16 library, but now I've commented it out for the same reasons
11250         above,
11251         * added targets 'model-pic16' and 'objects-pic16' to compile the
11252         library
11253         * added target 'port-specific-objects-pic16' to handle the
11254         generated libraries and copy them into the build/ directory
11255         * added target 'clean-intermediate-pic16' to clean intermediate
11256         files into pic16 directory
11257         * in target 'installdirs' added line to create directory pic16 in
11258         the installation path
11259
11260         * device/include/Makefile.in (version 1.11): in target 'install'
11261         added lines to copy all header files to installation path,
11262         * in target 'installdirs' added line create directory for pic16
11263         headers in the installation path
11264
11265 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
11266
11267         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
11268          a function call
11269
11270 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
11271
11272         * configure,
11273         * device/lib/configure.in,
11274         * device/lib/configure: fixed for autoconf 2.57
11275
11276 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11277
11278         * src/z80/main.c (_parseOptions): fixed the portmode= command line
11279         option so that it actually works. Made it specific to the z80, since
11280         the gbz80 doesn't have these kinds of I/O ports.
11281
11282 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11283
11284         * device/include/z180.h,
11285         * device/lib/_memcpy.c,
11286         * device/lib/_memmove.c,
11287         * device/lib/_mulint.c,
11288         * device/lib/ser_ir.c,
11289         * device/lib/ser_ir_cts_rts.c,
11290         * device/lib/_strcmp.c,
11291         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
11292         * src/z80/main.c (_process_pragma): add support for pragmas bank and
11293         portmode; added deprecation warning for bank= and protmode= forms.
11294         Also, guard against buffer overflow.
11295         * src/z80/gen.c (aopGet): generate better code for sfr banked read
11296
11297 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11298
11299         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
11300         changed interrupt vector table generation to only emit declared vectors.
11301         * device/include/Makefile.in: added missing backslash
11302         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
11303
11304 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
11305
11306         Mainly changes to support compilation of the device libraries
11307         * src/pic16/device.c: stack is allocated via symbol and not
11308         via literal number. The symbol is placed in the corresponding
11309         position of the data ram
11310         * (pic16_dump_section): relocatable and absolute uninitialized
11311         data are now emitted in sorted order to reduce section naming,
11312         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
11313         weren't marked as being in the access bank,
11314
11315 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
11316
11317         Added portion of GNU PIC Library under the directory
11318         device/include/pic16 and device/lib/pic16. These files
11319         contain the declarations of SFRs for the PIC18Fxx2 devices.
11320         The directory is initialized via configure from toplevel.
11321
11322 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
11323
11324         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
11325         the spilllocations to be compared correctly
11326
11327 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
11328
11329         * src/SDCCast.c (decorateType): fixed bug introduced today
11330
11331 2004-01-12  Borut Razem <borut.razem AT siol.net>
11332
11333         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
11334         doc/sdccman.lyx: upper case pragmas are deprecated
11335
11336 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
11337
11338         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
11339         in simpler and even better code
11340
11341 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
11342
11343         * src/SDCCicode.c (operandOperation): fixed bug #874819
11344         * src/SDCCast.c (decorateType): fixed
11345         char foo (unsigned long ul) { return ul > 0; }
11346
11347 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11348
11349         * doc/sdccman.lyx: Moved and added some sections, small changes
11350         all over. Telling LaTeX to be less strict with word spacing
11351         to better keep the right margin. Changed some notes about
11352         maintainance of the ports in section 3.2.1 - is it OK like this?
11353
11354 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
11355
11356         SDCC source changes:
11357         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
11358         convilong): modified to inform the pic16 port that builtin functions
11359         are external
11360
11361         PIC16 PORT specific changes:
11362         * src/pic16/device.c pic16_dump_equates() added,
11363         processor registers declared internally by the port are emitted in
11364         the translation as equates,
11365         * src/pic16/gen.c: inline code is passed unprocessed to the
11366         translation,
11367         * (pic16_popGetLit2): fnuction modified to take second operand as
11368         pCodeOp pointer and not as literal,
11369         * (popRegFromIdx): prefixed with pic16_,
11370         * (pic16_popCombine2): modified to receive already allocated pCode
11371         operands,
11372         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
11373         * (genFunction): initializes local stack frame and pushes on stack
11374         all the registers used by this function,
11375         * (genEndFunction): restores all registers from stack and restores
11376         stack frame,
11377         * src/pic16/glue.c (pic16emitRegularMap): various changes and
11378         improvements,
11379         * (pic16glue): changed the program startup sequence,
11380         * added new dbName code 'A' for functions placed in absolute section
11381         * src/pic16/main.c: added function attribute _naked,
11382         * added pragma 'code' to place a fnuction at an absolute address,
11383         * added command line arguments --debug-ralloc and --pcode-verbose,
11384         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
11385         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
11386         * (pic16_newpCodeOpLit2): modified to take the second operand as
11387         pCodeOp pointer,
11388         * (pic16_printpBlock): modified to emit each function in a separate
11389         section,
11390         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
11391         UPPER for immediate operands,
11392         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
11393         instruction,
11394         * src/pic16/peeph.def: all peepholes with movff are commented out,
11395         because there is a problem in the pcode peep optimizer,
11396         * src/pic16/ralloc.c: the register allocator can now reuse local
11397         function symbols for another function. This saves register usage.
11398         * src/pic16/ralloc.h: added flag isLocal in structure regs,
11399
11400         Added file src/pic16/NOTES with information about program writing on
11401         the current port version.
11402
11403 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11404
11405         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
11406         and peephole 252 (array access)
11407
11408 2004-01-09  Borut Razem <borut.razem AT siol.net>
11409
11410         * src/SDCCmain.c : fixed #872250: -l command line defined library
11411           files are scanned before standard library files
11412
11413 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11414
11415         * src/SDCCast.c (decorateType): fixed bug #874046
11416
11417 2004-01-09  Borut Razem <borut.razem AT siol.net>
11418
11419         * support/scripts/sdcc.nsi: remove previous installation
11420
11421 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11422
11423         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
11424         bytes for last interrupt vector (mcs51)
11425         * sdcc.spec: fixed typo
11426
11427 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11428
11429         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
11430         gen51Code): more efficient parameter receive for --model-large
11431         ("bug" #845294)
11432
11433 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11434
11435         * src/ds390/main.c,
11436         * src/z80/main.c: added missed needLinkerScript flags (more than
11437         one port structure defined in these file)
11438         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
11439         bug #795325
11440
11441 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
11442
11443         * src/SDCCmain.c: removed various references to DEFAULT_PORT
11444         * src/port.h: added flag needLinkerScript in port->linker
11445         structure to inform whether to create a .lnk file or not,
11446         * src/avr/main.c,
11447         * src/ds390/main.c,
11448         * src/hc08/main.c,
11449         * src/mcs51/main.c,
11450         * src/pic/main.c,
11451         * src/pic16/main.c,
11452         * src/xa51/main.c,
11453         * src/z80/main.c: changed appropriately to configure
11454         needLinkerScript flag
11455         * src/pic/gen.c,
11456         * src/pic16/gen.c (genAddrOf): fixed bug #863624
11457         * src/pic/glue.c: added variable udata_section_name to
11458         override default uninitialized data segment definition for
11459         devices only with SHAREBANK memory (reported from Erik Epetrich)
11460         * (pic14emitOverlay): modified to emit a commented overlay segment
11461         directive when no overlay data exist
11462         * (picglue): modified to emit uninitialized data segment
11463         according to udata_section_name
11464         * src/pic/main.c (_pic14_parseOptions): added command line
11465         options --udata-section-name=[name] to override default
11466         udata definition name
11467         * modified _linkCmd and _asmCmd to include compiler passed
11468         arguments via -W option
11469         * src/pic16/main.c: added $l in _asmCmd, changed extension for
11470         object file from '.rel' to '.o' in port->linker structure,
11471         changed size of fptr from 2 to 3 in port structure
11472
11473 2004-01-07  Borut Razem <borut.razem AT siol.net>
11474
11475         * support/scripts/sdcc.nsi: update PATH
11476         * support/scripts/sdcc.ico: craeted
11477
11478 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
11479
11480         * device/include/Makefile.in: fix install
11481         * doc/Makefile: fix install
11482
11483 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11484
11485         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
11486         in bug #860505
11487         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
11488         how the function variable allocation summary is displayed; also
11489         include information about variables allocated to the overlay
11490         segment
11491
11492 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11493
11494         * as/mcs51/lkmain.c: Help about -Y option
11495         * as/mcs51/lkarea.c: Fixed gcc warnings
11496
11497 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
11498
11499         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
11500         fixed warning
11501         * support/valdiag/tests/overflow.c: added
11502         * src/SDCCast.c (decorateType),
11503         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
11504         LEFT_OP (left shift)
11505
11506 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11507
11508         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
11509         (default behaviour).
11510
11511 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11512
11513         A python script to validate compiler diagnostic messages. It can be
11514         used to verify that sdcc complains about bad c source code and
11515         gives a good location of the error.
11516         * support/valdiag/Makefile,
11517         * support/valdiag/valdiag.py,
11518         * support/valdiag/tests/*
11519
11520 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11521
11522         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
11523         * src/SDCCsymt.c (newEnumType),
11524         * src/SDCCsymt.h
11525         * support/Util/SDCCerr.c,
11526         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
11527         enum related bugs.
11528         * support/regression/tests/enum.c: added test for enum values that
11529         require at least 2 bytes of storage.
11530
11531 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
11532
11533         * src/common.h: added ifndef/define/endif macros
11534         around the header file.
11535         Bug reported from Jesus Calvino-Fraga
11536
11537 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
11538
11539         * sdcc.spec: updated
11540         * device/include/Makefile.in: don't install CVS directories
11541         * device/lib/Makefile.in: added removal of CVS directories after install
11542         * doc/Makefile: fixed install, added local_icons
11543         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
11544         * src/mcs51/gen.c (genRightShift): fixed bug #870788
11545         * src/ds390/gen.c (genRightShift): fixed bug #870788
11546         * src/SDCCast.c (decorateType): fixed bug #870781
11547
11548 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
11549
11550         PIC16 port related changes:
11551         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
11552         added variable stackPos,
11553
11554         * gen.c: genCall, assignResultValue: added support for
11555         pushing/retrieving function parameters to/from stack,
11556         genFunction,genEndFunction: setup stack frame for the
11557         generated function,
11558         genAddrOf: will be changed according to bug 863624
11559
11560         * added files genutils.c and genutils.h which contain gen*
11561         debugged and optimised functions extracted from gen.c
11562
11563         * glue.c: added variable 'externs' which holds extern symbols,
11564         pic16emitRegularMap: is modified to properly handle relocatable
11565          symbols under the new scheme,
11566         pic16createInterruptVect: is modified
11567         pic16printPublics: is modified to emit 'global' assembler directives,
11568         added pic16_printExterns to print extern symbols,
11569         pic16glue: initializes stack/frame pointer in the beginning of
11570         the assembly output. Temporary hack, will be corrected later,
11571         because gplink yet does not support stack and SDCC does not
11572         yet support a type of crt0.o object to create the final binary.
11573
11574         * Removed many lines that contain 8051 legacy code.
11575         * The code is finally placed under a 'code' directive.
11576         * Added port specific options.
11577
11578         * _process_pragma: simplified since now we do not need *special*
11579         include file to define SFR registers. But a separate header
11580         will be needed. This will be developed later.
11581         * _pic16_parseOptions: added, parses port specific options:
11582         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
11583         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
11584         --preplace-udata-with=
11585
11586         * _pic16_setDefaultOptions: modified to initialize section names,
11587         but hack is temporarly out of order since it needs improvement.
11588         * _pic16_genAssemblerPreamble: configuration words are emitted by
11589         their address instead of their name. This part is incomplete and
11590         supports only the 18Fxx2 devices. Other devices will emit an error
11591         during assembly since they do not contain the same set of config
11592         registers
11593         * _pic16_genIVT: is modified,
11594
11595         * pcode.c: added definitions for some hardware registers that are needed
11596         for stack support
11597         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
11598         All PCI entries are updated. Now LFSR is supported.
11599         * Removed pic16_pciTRIS is mentioned by mdubuc in source
11600         * added pic16_newpCodeOpLit2 to support instructions with
11601         two literal arguments
11602         * pic16_pCode2str: corrected code that emits assembler instructions
11603         with two literal operands and those that have an access bit modifier
11604         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
11605         this fixes a bug which caused some labels to be lost, when an
11606         assembler directive was added, i.e. banksel,
11607         * pic16_FixRegisterBanking: improved logic that causes the insertion
11608         of bank switching,
11609         * InlineFunction: functions that are called once, are not any more
11610         inlined. This can be a port option in the future,
11611
11612         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
11613
11614         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
11615         hold the corresponding uninitialized symbols,
11616         * pic16_allocProcessorRegister: registers have explicit marked the
11617         accessBank field,
11618         * pic16_allocInternalRegister: registers are explicit marked as
11619         not used,
11620         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
11621         processing list, so bit registers were lost,
11622         *
11623
11624         * ralloc.h: added field 'accessBank' and original symbol operand
11625         in register definition,
11626         * removed the field isMapped from register definition,
11627
11628         ** Several functions have been removed from various sources:
11629         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
11630         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
11631         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
11632         pic16_assignRelocatableRegisters
11633
11634         ** others have been introduced:
11635         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
11636         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
11637
11638 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
11639
11640         * support/scripts/inc2h.pl: changed definition of BIT_AT
11641         to emit 'sbit at' instead of 'bit at'. This was a request.
11642
11643         PIC16 port related preliminary changes:
11644         * gen.c: prefixed function popRegFromString with
11645         pic16_ and all references to it corrected
11646         * pcode.c: all pic16_pc_* hardware registers prefixed
11647         with underscore (_),
11648         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
11649         * ralloc.c: newReg(): when register is REG_SFR then
11650         set address to rIdx,
11651         pic16_allocProcessorRegister(): marks register wasUsed=0
11652         pic16_writeUsedRegs(): added a call to assign processor
11653         registers via pic16_assignFixedRegisters
11654
11655 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11656
11657         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
11658         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
11659         variables in unused register banks.  Also the SSEG is placed
11660         wherever there is enough space for it, and IDATA can be anywhere
11661         in internal RAM.  For now compile using -Wl-Y[stack_size].
11662         The mem file is different for this option as well, since it
11663         makes no sense of talking about DSEG lenght.
11664
11665 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
11666
11667         * src/SDCClrange.c: fixed bug 869095 that caused segfault
11668         in certain cases, e.g. when ROM assignment, patch provided
11669         from Albert den Haan.
11670
11671 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
11672
11673         Many signedness and type propagation fixes:
11674         * src/SDCCicode.c: made geniCodeCast() static
11675         replaced SPEC_ by IS_ (cosmetic)
11676         (operandOperation): fixed div and mod operation
11677         (usualBinaryConversions): added support for promotion of char
11678         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
11679         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
11680         (geniCodeAdd): an array index will stay unsigned, even if promoted
11681         from char to int
11682         (geniCodeArray): ditto
11683         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
11684         * src/SDCCsymt.c (computeType): added more support for char;
11685         promotion of char is selectable by promoteCharToInt, fixed signedness
11686         for all cases
11687         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
11688         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
11689         * src/SDCCval (val*): replaced signedness calculation by
11690         computeType()
11691         rearranged if-branches (cosmetic)
11692         (valShift): added warning W_SHIFT_CHANGED
11693         (valCompare): fixed problem with different types
11694         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
11695         * support/regression/tests/literalop.c: added many cases
11696         * support/regression/tests/ast_constant_folding.c: changed finally to
11697         'unsigned int'
11698         * .version: new year, new version: 2.3.7
11699         * src/SDCCmain.c (main): applied patch #866468
11700         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
11701         provided by Scott Bronson
11702         * doc/sdccman.lyx: updated documentation for sdcdb
11703         updated and added chapter tips
11704
11705 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11706
11707         * src/SDCCsymt.h: missing from yesterday's commits
11708
11709 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11710
11711         * src/SDCC.y (struct_or_union_specifier),
11712         * support/Util/SDCCerr.c,
11713         * support/Util/SDCCerr.h: verify that struct & union tags are used
11714         as declared.
11715
11716 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11717
11718         * src/SDCCglobl.h: missing from yesterday's commits
11719
11720 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11721
11722         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
11723         sft_attributes, struct_declaration, parameter_declaration,
11724         type_name, start_block, declaration_list),
11725         * src/SDCC.lex (check_type): support redefinition of typedef names
11726
11727 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11728
11729         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
11730         aligned xdata arrays. Erik helped me with the if clause.
11731
11732 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11733
11734         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
11735         warning
11736
11737 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11738
11739         * src/SDCCast.h,
11740         * src/SDCCast.c (newAst_),
11741         * src/SDCCicode.h,
11742         * src/SDCCicode.c (ast2iCode, newiCode),
11743         * src/SDCCglobl.h,
11744         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
11745         expr, statement, expression_statement, selection_statement,
11746         iteration_statement, expr_opt, jump_statement): foundation for tracking
11747         sequence points
11748         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
11749         point code too)
11750
11751 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11752
11753         * support/Util/SDCCerr.c,
11754         * src/SDCCast.h,
11755         * src/SDCCast.c (createCase, createDefault, decorateType),
11756         * src/SDCClabel.c (labelUnreach),
11757         * src/SDCC.y (labeled_statement, jump_statement): More improvements
11758         to error messages.
11759         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
11760         (with thanks to Stas Sergeev)
11761         * device/include/time.h,
11762         * device/lib/time.c (CheckTime): suppress unreachable code warning
11763
11764 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11765
11766         * src/SDCCast.c (createIvalCharPtr),
11767         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
11768         bug #753752)
11769         * support/regression/tests/nullstring.c: tests for these two bugs
11770
11771 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11772
11773         * support/Util/SDCCerr.h,
11774         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
11775         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
11776         about storage class and 'at' used inside struct or union
11777         * src/SDCCBBlock.c (iCodeFromeBBlock),
11778         * src/SDCCcse.c (ifxOptimize),
11779         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
11780         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
11781         printIval, emitStaticSeg, emitOverlay),
11782         * src/SDCClabel.c (deleteIfx),
11783         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
11784         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
11785         gatherAutoInit, processParms),
11786         * support/Util/SDCCerr.h,
11787         * support/Util/SDCCerr.c (werrorfl): Support for better error location
11788         reporting for post-parse errors.
11789
11790 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11791
11792         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
11793         implicit casts via union; they don't work on big endian systems
11794         (possible fix for bug #861138)
11795
11796 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11797
11798         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
11799         * src/mcs51/main.c: fixed the fix for bug #737001
11800
11801 2003-12-15  Borut Razem <borut.razem AT siol.net>
11802
11803         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
11804
11805 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11806
11807         * support/makebin/makebin.c: put output in binary mode
11808
11809 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11810
11811         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
11812         xdata and data memory on startup. Set the environment variable
11813         SDCC_NOGENRAMCLEAR to disable this.
11814         * src/mcs51/peephole.def,
11815         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
11816         (allows non-interrupt and interrupt code to safely compete for a resource
11817         without the non-interrupt code having to disable interrupts)
11818
11819 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11820
11821         * src/SDCCicode.c (geniCodeAdd),
11822         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
11823         with valFromType if type might be a pointer and host is big endian).
11824         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
11825         types, not just integer types.
11826         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
11827         multiply defined with mismatching "at" address.
11828
11829 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11830
11831         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
11832         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
11833         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
11834         with embedded nulls (fixed bug #753752)
11835
11836 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11837
11838         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
11839         Apparently this did not see much testing (endless loop)
11840
11841 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11842
11843         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
11844
11845 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11846
11847         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
11848         gracefully handle NULL memmap pointers
11849
11850 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11851
11852         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
11853         instead of deleting the iCode when an operand is volatile
11854         * src/z80/gen.c (genDummyRead),
11855         * src/mcs51/gen.c (genDummyRead),
11856         * src/ds390/gen.c (genDummyRead),
11857         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
11858         not just IC_RIGHT
11859         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
11860         * src/SDCC.y: fixed bug #850420
11861
11862 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11863
11864         Applied z80 i/o port patch from Peter Townson and fixed some operators
11865         to better handle operands in A register.
11866         * device/include/z180.h
11867         * src/SDCC.y
11868         * src/SDCCglue.c
11869         * src/z80/gen.c
11870         * src/z80/gen.h
11871         * src/z80/main.c
11872         * src/z80/peeph-z80.def
11873         * src/z80/peeph.def
11874         * src/z80/z80.h
11875
11876 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11877
11878         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
11879
11880 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11881
11882         * device/lib/hc08/_mullong.c: Removed extra #endif
11883
11884 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11885
11886         * sim/ucsim/hc08.src/inst.cc,
11887         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
11888         carries from x to h
11889         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
11890         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
11891         * device/include/stdarg.h: fixed varargs for hc08
11892         * device/lib/Makefile.in,
11893         * device/lib/hc08/Makefile,
11894         * device/lib/hc08/_mulint.c,
11895         * device/lib/hc08/_mullong.c: fixed some endian problems
11896
11897 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11898
11899         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
11900         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
11901         * device/lib/_gptrget.c,
11902         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
11903
11904 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11905
11906         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
11907         * src/SDCCast.c (astErrors): fixed bug #846007
11908         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
11909
11910 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11911
11912         * src/SDCCast.c (decorateType): disabled a transformation I added in
11913         revision 1.188 (access to fields of a structure at an absolute address);
11914         it breaks with bitfields, extern declarations, and gcse analysis.
11915         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
11916         could be assigned through a pointer, so don't complain.
11917         * src/SDCCast.c (astErrors),
11918         * src/SDCCast.h,
11919         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
11920
11921 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
11922
11923         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
11924         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
11925         output of __config directives, since gpasm now supports them
11926         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
11927         pre-processor macro, i.e. -DMCU=p18f452
11928         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
11929         and modified to handle 'cast' icode similarly to '=' icode
11930         * src/pic16/device.h (typedef struct PIC_device): added field
11931         'extMIface' to indicate that chip has external memory interface
11932         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
11933         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
11934         18F8720
11935
11936 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11937
11938         * src/SDCC.y (pointer): fixed bug #846006
11939         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
11940         * src/SDCCast.c (decorateType): fixed bug #846009
11941         * src/ds390/peeph.def,
11942         * src/ds390/gen.c (genAnd, genOr),
11943         * src/mcs51/peeph.def,
11944         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
11945
11946 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11947
11948         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
11949         * src/SDCCdflow.c
11950         * src/SDCCcse.c
11951         * src/SDCCcse.h
11952         * src/SDCCBBlock.h
11953         * src/SDCCBBlock.c
11954
11955 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
11956
11957         fixed bug #845089
11958         * src/SDCCbitv.h,
11959         * src/SDCCbitv.c: added function to free a bitvector
11960         * src/SDCClrange.h,
11961         * src/SDCClrange.c: added function to recompute the liveranges
11962         * src/avr/ralloc.c,
11963         * src/ds390/ralloc.c,
11964         * src/hc08/ralloc.c,
11965         * src/mcs51/ralloc.c,
11966         * src/pic/ralloc.c,
11967         * src/pic16/ralloc.c,
11968         * src/xa51/ralloc.c,
11969         * src/z80/ralloc.c: recompute the liveranges after register packing
11970
11971 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
11972
11973         * src/SDCCloop.c (newInduction): fixed bug #845630
11974
11975 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11976
11977         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
11978         inadvertantly left behind from my 2003-11-12 change
11979
11980 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11981
11982         Updated headers I neglected to commit yesterday.
11983         * src/SDCClrange.h,
11984         * src/SDCCicode.h
11985
11986 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11987
11988         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
11989         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
11990         * src/SDCCopt.c (eBBlockFromiCode),
11991         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
11992         the creation of the key hash table from the sequencing so it can be used
11993         earlier (for some GCSE bug fixes still pending)
11994
11995 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11996
11997         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
11998         * support/regression/tests/addsub.c: testing genPlus shortcut
11999
12000 2003-11-15  Borut Razem <borut.razem AT siol.net>
12001
12002         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
12003
12004 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12005
12006         * src/SDCCcse.c (cseBBlock): fixed bug #527779
12007         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
12008         ordering is immaterial.
12009         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
12010
12011 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12012
12013         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
12014         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
12015         (SIGSEV) of bug #840381
12016         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
12017         unlink new file before rename if new and old filenames are the same)
12018
12019 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12020
12021         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
12022         uninitialized variables) for the mcs51. Set environment variable
12023         SDCC_GENRAMCLEAR to test.
12024         xdata initialization slightly shorter
12025
12026 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12027
12028         * src/SDCCsymt.h,
12029         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
12030         #838241 & 780691 (basicly the same bug)
12031         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
12032         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
12033
12034 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
12035
12036         * src/SDCCmain.c (linkEdit): "fix" #834252
12037
12038 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12039
12040         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
12041         * src/SDCCast.h,
12042         * src/SDCC.y: fixed bug #819403
12043
12044 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12045
12046         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
12047         the reentrant attribute.
12048         * src/hc08/gen.c (genPackBits): added missing stack readjustment
12049         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
12050         simulation
12051         * src/SDCCast.c (decorateType): fixed bug with storage class not being
12052         updated during pointer dereference; f.e. ~(((char *)1)*) was being
12053         erroneously reduced to a literal.
12054         * src/hc08/ralloc.c (packRegisters, rematStr),
12055         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
12056         some cases
12057
12058 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12059
12060         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
12061         * doc/sdccman.lyx: changed from 'article' to 'book'
12062         * doc/Makefile: readded test_suite_spec and cdbfileformat
12063
12064 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
12065
12066         * device/include/stdlib.h: include malloc.h to comply with ANSI
12067         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
12068
12069 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12070
12071         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
12072         * doc/clean.mk: also remove *.out files
12073         * doc/sdccman.lyx: some additions, larger top/bottom margins
12074
12075 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12076
12077         * src/SDCC.y: fixed bug #837365
12078         * support/regression/tests/bitopcse.c
12079         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
12080         a symbol (might be valop instead)
12081         * device/lib/Makefile.in: added errno.c to HC08SOURCES
12082         * device/lib/clean.mk: added hc08 to the cleaning list
12083
12084 2003-11-04  Borut Razem <borut.razem AT siol.net>
12085
12086         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
12087           made 2003-11-04
12088         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
12089           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
12090           malloc is declared in standard stdlib.h
12091
12092 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12093
12094         * device/lib/hc08/Makefile: need to clean .rel not .o files
12095         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
12096
12097 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12098
12099         * src/port.h,
12100         * src/hc08/main.c,
12101         * src/mcs51/main.c,
12102         * src/ds390/main.c,
12103         * src/z80/main.c,
12104         * src/avr/main.c,
12105         * src/pic/main.c,
12106         * src/pic16/main.c,
12107         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
12108         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
12109         tests (which uses the port's oclsExpense function)
12110         * src/SDCC.y,
12111         * src/SDCCast.c,
12112         * src/SDCCicode.c,
12113         * src/hc08/gen.c,
12114         * src/ds390/gen.c,
12115         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
12116
12117 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12118
12119         * src/SDCCcse.c (ifxOptimize),
12120         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
12121         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
12122         deleting the IFX iCode.
12123         * src/hc08/ralloc.c: reduced unneeded slocs
12124         * src/hc08/gen.c: fixed bug in asmopToBoolean
12125
12126 2003-11-04  Borut Razem <borut.razem AT siol.net>
12127
12128         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
12129           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
12130           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
12131           transferred to configure
12132
12133 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
12134
12135         Use headers defined in the C[++] standards:
12136         * sim/ucsim/gui.src/serio.src/fileio.cc
12137         * sim/ucsim/gui.src/serio.src/frontend.cc
12138         * sim/ucsim/gui.src/serio.src/main.cc
12139         * sim/ucsim/gui.src/serio.src/posix_signal.cc
12140         * support/Util/NewAlloc.c
12141         * as/hc08/lklibr.c
12142         * as/mcs51/lklibr.c
12143         * as/z80/aslist.c
12144         * as/z80/assym.c
12145
12146 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12147
12148         * Added MSVC projects for hc08 assembler and linker:
12149         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
12150         /as/hc08/link_hc08.dsp
12151
12152 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
12153
12154         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
12155
12156 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
12157
12158         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
12159
12160 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12161
12162         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
12163
12164 2003-10-31  Borut Razem <borut.razem AT siol.net>
12165
12166         * support/cpp2/cpplib.h,
12167           support/cpp2/cpplib.c,
12168           support/cpp2/cpplex.c,
12169           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
12170           to switch _asm block preprocessing on / off. Default is
12171           #pragma preproc_asm +
12172
12173 2003-10-31  Borut Razem <borut.razem AT siol.net>
12174
12175         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
12176           when outputting comment blocks (when executed with -C option) and
12177           _asm (SDCPP specific) blocks
12178
12179 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12180
12181         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
12182
12183 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
12184
12185         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
12186
12187 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
12188
12189         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
12190         * src/SDCCast.c (decorateType): fixed bug #832664
12191
12192 2003-10-31  Borut Razem <borut.razem AT siol.net>
12193
12194         * support/cpp2/cpplex.c: fixed for SDCPP:
12195           comments(when executed with -C option) and _asm blocks
12196           were included even if they where in skipped #if block.
12197           Applied solution from GCC cpp 3.3.2
12198
12199 2003-10-31  Borut Razem <borut.razem AT siol.net>
12200
12201         * src/SDCC.lex: sdcc now understands both formats:
12202           '# <line_number> <file_name>' and
12203           '#line <line_number> <file_name>'
12204         * support/cpp2/cppmain.c: sdcpp now generates the standard
12205           '# <line_number> <file_name>' instead of former
12206           '#line <line_number> <file_name>'
12207
12208 2003-10-30  Borut Razem <borut.razem AT siol.net>
12209
12210         * support/cpp2/cpphash.h,
12211         * support/cpp2/cpplib.h
12212         * support/cpp2/cpplex.c,
12213         * support/cpp2/cppmain.c,
12214         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
12215
12216 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12217
12218         Fixed a number of problems revealed by bug #827883.
12219         * src/SDCCloop.c (loopInvariants): Spill location of the
12220         result operand should be recomputed if extracted from
12221         a loop. Also, don't extract assignments of an iTemp
12222         from a literal.
12223         * src/SDCCast.c (isConformingBody): loop reversal should
12224         not occur if the control variable is involved with a
12225         relational operator.
12226
12227 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
12228
12229         * .version: bumped to 2.3.6 to reflect the big improvements
12230         made by Erik and Klaus. Thanks!
12231
12232 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
12233
12234         Replaced the livrange code.
12235         * src/SDCClrange.c: added new LR code
12236         * src/SDCCloop.c,
12237         * src/SDCCBBlock.h: removed remainig parts from old LR code
12238         * src/ds390/ralloc.c,
12239         * src/ds390/gen.c: minor fixes to make it work with new code
12240
12241 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12242
12243         * as/hc08/asm.h,
12244         * as/hc08/lkrloc.c,
12245         * src/hc08/gen.c,
12246         * src/hc08/ralloc.c: Fix various warnings related to the hc08
12247         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
12248         (tweaked fix for bug #818696)
12249
12250 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12251
12252         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
12253
12254 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12255
12256         * src/SDCCmain.c,
12257         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
12258         * src/mcs51/gen.c (gencjneshort),
12259         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
12260         more efficient (per Scott Bronson's suggestion)
12261
12262 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12263
12264         Extended the semantics of the critical keyword to include
12265         individual statements. See RFE #827755 and #799831
12266         * src/SDCC.y
12267         * src/SDCCicode.c
12268         * src/SDCCopt.c
12269         * src/SDCCast.c
12270         * support/Util/SDCCerr.c
12271         * support/Util/SDCCerr.h
12272         * src/mcs51/gen.c
12273         * src/ds390/gen.c
12274         * src/hc08/gen.c
12275
12276 2003-10-19  Borut Razem <borut.razem AT siol.net>
12277
12278         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
12279
12280 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12281
12282         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
12283         Fixed bug #818696
12284         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
12285         and predecrement operand is displayed
12286
12287 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
12288
12289         * src/SDCCval.c (valMinus): fixed bug #826041
12290
12291 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12292
12293         Some hc08 related updates that I missed earlier
12294         * sim/ucsim/stypes.h
12295         * support/regression/ports/hc08/spec.mk
12296
12297 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12298
12299         New target "hc08" for the Motorola 68hc08 family of micros
12300
12301         * configure
12302         * configure.in
12303         * Makefile
12304         * src/hc08/*
12305         * src/SDCCmain.c
12306         * src/port.h
12307         * sim/ucsim/hc08.src/*
12308         * sim/ucsim/configure.in
12309         * src/ucsim/configure
12310         * sim/ucsim/packages_in.mk
12311         * as/hc08/*
12312         * as/Makefile
12313         * device/include/mc68hc908qy.h
12314         * device/lib/hc08/*
12315         * device/lib/Makefile.in
12316         * support/regression/ports/hc08/*
12317         * support/regression/Makefile
12318
12319 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12320
12321         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
12322         regression test
12323         * src/ds390/gen.c (genCast): fixed bug #821957
12324
12325 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
12326
12327         * device/lib/logf.c: "fixed" overlay bug
12328         * support/regression/ports/host/spec.mk: added m library
12329         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
12330         * support/regression/tests/float_trans: added (for Eric)
12331
12332 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
12333
12334         * src/mcs51/gen.c (genCpl): fixed bug
12335         http://sf.net/mailarchive/message.php?msg_id=6263915
12336
12337 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
12338
12339         * src/SDCCast.c (decorateType): added extended constant folding
12340         * src/SDCCsymt.c (computeType): cleanup
12341         * src/SDCCval.c (valShift): minor optimization
12342         * support/regression/tests/ast_constant_folding.c: added
12343
12344 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12345
12346         * src/SDCCmain.c: removed some unintended changes
12347
12348 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12349
12350         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
12351         * src/z80/gen.c: fixed part of bug #817589
12352         * src/SDCCsymt.c (checkFunction): fixed bug #817895
12353
12354 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
12355
12356         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
12357         * src/SDCCcflow.c
12358         * src/SDCCcse.c
12359         * src/SDCCdflow.c
12360         * src/SDCClabel.c
12361         * src/SDCClrange.c
12362         * src/SDCCmem.c
12363         * src/SDCCopt.c
12364         * src/SDCCpeeph.c
12365         * src/SDCCset.c
12366         * src/avr/ralloc.c
12367         * src/ds390/ralloc.c
12368         * src/izt/ralloc.c
12369         * src/mcs51/ralloc.c
12370         * src/pic/ralloc.c
12371         * src/pic16/ralloc.c
12372         * src/xa51/ralloc.c
12373         * src/z80/ralloc.c
12374         * src/z80/gen.c: removed unused label "release:"
12375
12376 2003-10-06  Borut Razem <borut.razem AT siol.net>
12377
12378         * src/SDCC.lex: removed definition of unused variables
12379           save_optimize and save_options
12380
12381 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
12382
12383         * clean.mk: removed '=' in "-maxdepth=1"
12384         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
12385         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
12386
12387 2003-10-06  Borut Razem <borut.razem AT siol.net>
12388
12389         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
12390           my_unput() replaced by unput()
12391
12392 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
12393
12394         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
12395         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
12396         type-punned pointer will break strict-aliasing rules"
12397         Old LR behaviour is again default; Klaus' LR can be choosen by
12398         defining the environment variable LRKLAUS
12399         * src/SDCCBBlock.h
12400         * src/SDCCloop.c
12401         * src/SDCClrange.c
12402         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
12403         * clean.mk: fixed removal of files in bin/CVS/
12404         * device/lib/clean.mk: fixed removal of directories small and large
12405         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
12406         * src/SDCCicode.c,
12407         * src/SDCCval.c: removed superflous test for pedantic
12408
12409 2003-10-05  Borut Razem <borut.razem AT siol.net>
12410
12411         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
12412           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
12413           message "unmatched #pragma SAVE and #pragma RESTORE"
12414
12415 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12416
12417         * doc/sdccman.lyx: various additions and updates (interrupts, inline
12418           assembly, critical functions, atomic, nojtbound)
12419
12420 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
12421
12422         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
12423         * src/SDCCBBlock.h
12424         * src/SDCCloop.c
12425         * src/SDCCloop.h
12426         * src/SDCClrange.c
12427
12428 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12429
12430         * src/z80/gen.h,
12431         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
12432         * src/mcs51/gen.h
12433         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
12434         * src/ds390/gen.h
12435         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
12436         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
12437         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
12438
12439 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12440
12441         * src/z80/gen.c (genRet): fixed bug #524753
12442         * src/z80/gen.c (genCast): fixed internal error on cast from
12443         pointer to long
12444         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
12445         fix for bug #477835 to the z80
12446         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
12447         for tracking iCodes in the peephole optimizer for z80
12448
12449 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12450
12451         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
12452         the other part of bug #814548
12453         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
12454
12455 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
12456
12457         * src/SDCCcse.c: fixed part of bug #814548
12458
12459 2003-09-28  Borut Razem <borut.razem AT siol.net>
12460
12461         * src/asm.c: rewrite of printILine() to use temporary file instead
12462           a pipe
12463         * src/xa51/main.c: commented out declaration of int rewinds
12464
12465 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12466
12467         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
12468
12469 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12470
12471         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
12472         * src/asm.c (printILine): Fixed bug #811015
12473
12474 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12475
12476         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
12477         freeing.
12478
12479 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12480
12481         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
12482         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
12483         to correctly handle general case of AOP_PAIRPTR
12484         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
12485
12486 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12487
12488         * src/mcs51/ralloc.c (fillGaps),
12489         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
12490         register positioning bug)
12491
12492 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
12493
12494         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
12495
12496 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12497
12498         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
12499         genCodePointerGet, genGenPointerGet, genFarPointerSet,
12500         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
12501         (ralloc doesn't intentionally do this now, but perhaps later)
12502         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
12503         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
12504         register positioning bugs (Fixed bug #762602 and #795325)
12505         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
12506         (Fixed bug #808779)
12507         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
12508         lines that --i-code-in-asm generates
12509
12510 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12511
12512         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
12513         trying to fclose a FILE* that was already closed.
12514
12515 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12516
12517         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
12518         of const struct should be treated as if const themselves)
12519
12520 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
12521
12522         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
12523
12524 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12525
12526         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
12527         Unix (/n) and DOS (/r/n) line terminations.
12528
12529 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12530
12531         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
12532         bug #613775
12533
12534 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12535
12536         * src/mcs51/gen.c (genFunction, genEndFunction),
12537         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
12538         and restore of EA so that stack offsets to parameters are
12539         correct when using both critical and reentrant/stack-auto.
12540         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
12541         size (can be triggered in error if sloc is shared between
12542         different sized objects)
12543         * device/include/float.h: fixed macros to explicitly use
12544         unsigned long where needed
12545
12546 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
12547
12548         Feature req. 799831: added code to allow nesting of critical functions
12549         * src/mcs51/gen.c (genFunction, genEndFunction)
12550         * src/ds390/gen.c (genFunction, genEndFunction)
12551
12552 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12553
12554         * src/SDCCsymt.c (sclsFromPtr),
12555         * src/SDCCsymt.h,
12556         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
12557         support for standard C idiom of memory mapped variables; for
12558         example, *((xdata int*)0x1234) = 1 is now internally equivalent
12559         to xdata int at 0x1234 tempvar = 1.
12560         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
12561         provided by Akiya ISHIDA
12562
12563 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
12564
12565         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
12566         * src/SDCCval.c (constVal): added reduction from int to char
12567         * src/SDCCval.c (valMult, valDiv): fixed sign handling
12568         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
12569         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
12570         to ignore the sign
12571         * support/regression/tests/shifts.c: fixed
12572
12573 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12574
12575         * src/z80/gen.c (genXor): Fixed bug #805445
12576
12577 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12578
12579         Fixed bug #621531 (const & volatile confusion in the type chain).
12580         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
12581         refer to the const or volatile state of the pointer itself.
12582
12583         * src/SDCCast.c
12584         * src/SDCCglue.c
12585         * src/SDCCicode.c
12586         * src/SDCCsymt.c
12587         * src/SDCCval.c
12588         * src/SDCC.y
12589         * src/SDCCsymt.h
12590         * src/pic/gen.c
12591         * src/pic/ralloc.c
12592         * src/pic16/gen.c
12593         * src/pic16/ralloc.c
12594         * support/regression/tests/const.c
12595
12596 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12597
12598         When checking for duplicated modules, use absolute paths
12599         instead of relative paths.  Files changed:
12600
12601         * as/mcs51/lklib.c
12602         * link/z80/lklib.c
12603
12604 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12605
12606         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
12607
12608 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12609
12610         * device/include/string.h: added size_t typedef, changed
12611         prototypes to use size_t, eliminated separate reentrant and
12612         non-reentrant declarations, added _memmove declaration
12613         * device/lib/_memcpy.c: changed to use size_t instead of int,
12614         changed /4 to >>2 to avoid division library call
12615         * device/lib/_memcmp.c,
12616         * device/lib/_memset.c,
12617         * device/lib/_strncat.c,
12618         * device/lib/_strncpy.c,
12619         * device/lib/_strncmp.c: changed to use size_t instead of int
12620         * device/lib/_memmove.c: new file (fixed bug #772294)
12621         * device/lib/Makefile.in: added _memmove.c
12622         * device/lib/z80/asm_strings.s: fixed bug #772290
12623         * support/regression/tests/bitfields.c: attempt to fix host assertion
12624         failure on amd64-unknown-linux2.2
12625
12626 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12627
12628         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
12629         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
12630         * as/z80/asmain.c (main): fixed bug #801766
12631
12632 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
12633
12634         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
12635         compilers
12636
12637 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12638
12639         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
12640         reported in bug #800609
12641
12642 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
12643
12644         * Top header beautifications in src/pic16 directory:
12645           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
12646           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
12647           pcoderegs.h, ralloc.c, ralloc.h
12648         * main.c: added top header and GPL license notice
12649         * pcode.c: fixed the if-conditional warning
12650
12651 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
12652
12653         * device/lib/_mullong.c: replaced int by short for gcc
12654
12655 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12656
12657         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
12658         and JUMPTABLE iCodes properly now (worked by accident before)
12659         * src/mcs51/gen.c (leftRightUseAcc),
12660         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
12661         iCode properly now. Use getSize instead of nRegs since a & b
12662         aren't part of the nRegs tally.
12663
12664 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
12665
12666         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
12667         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
12668           before instructions that use the _STATUS register
12669
12670 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
12671
12672         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
12673         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
12674         fetching of the pointer
12675         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
12676         copied from genNearPointerSet()
12677         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
12678         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
12679         If they pop r0/r1 they must be called in the opposite order than aopOp().
12680         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
12681         (resp. --stack-auto), prepared for --xstack
12682
12683 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12684
12685         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
12686
12687 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
12688
12689         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
12690         these ports have their own __sdcc_external_start()
12691
12692 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
12693
12694         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
12695         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
12696         type for bits was changed. It resulted in bit variables becoming
12697         global, which is not permitted in PIC 14 assembly output.
12698
12699 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12700
12701         * doc/sdccman.lyx: various additions and updates. Rearranged sections
12702
12703 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12704
12705         Z80 and MCS51 linkers complaint if a public symbol is defined
12706         in more than one library module:
12707
12708         * as/mcs51/lklib.c
12709         * link/z80/lklib.c
12710         * as/mcs51/Makefile.in
12711
12712 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12713
12714         A few small changes that speed up the peephole optimizer.
12715
12716         * src/SDCCpeeph.c
12717
12718 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12719
12720         Try to make the peephole optimizer smarter by maintaining
12721         an association between the assembly source code and the
12722         iCodes that originated them. Put this information to use
12723         with a new peephole rule condition "notVolatile" so that
12724         the rules can be aggressive yet still safe.
12725
12726         * src/SDCCpeeph.c
12727         * src/SDCCpeeph.h
12728         * src/mcs51/gen.c
12729         * src/mcs51/peeph.def
12730
12731 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12732
12733         Fixed bug #741761
12734
12735         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
12736         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
12737         if the left or right operand symbols have the accuse flag set.
12738
12739 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12740
12741         Changed the type of the result of the ! (NOT) operator to char;
12742         previously it returned the same type as the source. This allows
12743         us to eliminate all the genFloatNot functions (all of its target
12744         implementations were very buggy) since !float can use the same
12745         code as !long now.
12746
12747         * src/SDCCicode.c (ast2iCode): ! returns char
12748         * src/mcs51/gen.c (genNot, genNotFloat),
12749         * src/ds390/gen.c (genNot, genNotFloat),
12750         * src/z80/gen.c (genNot, genNotFloat),
12751         * src/pic/gen.c (genNot, genNotFloat),
12752         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
12753
12754 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
12755
12756         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
12757         1. Interrupt would not compile properly. Ensure PCLATH register is saved
12758            during interrupts. Ensure WSAVE is located at a shared bank address.
12759         2. Fixed page selection in some places
12760         3. Fixed BTFSS/C to where necessary use registers directly and not simply
12761            the registers name strings.
12762         4. Fixed "signed / unsigned compare" compiler warnings.
12763         5. The PIC port manages its own allocation of the general purpose
12764            registers, but makes no attempt to reuse them. As a result when
12765            compiling it soon runs out of general purpose registers. Some
12766            additional code was added to the files pcode.c and device.c to walk
12767            through the function call tree and rename the registers so that they
12768            get reused.
12769
12770         * src/pic/device.c
12771         * src/pic/gen.c
12772         * src/pic/glue.c
12773         * src/pic/pcode.c
12774         * src/pic/pcode.h
12775         * src/pic/ralloc.c
12776         * src/pic/ralloc.h
12777         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
12778         genPlus() & genMinus() when the result is the same as left or right
12779
12780 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12781
12782         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
12783
12784 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12785
12786         Made bitfield a distinct type from bit so that bitfields
12787         convert as per ANSI C and bits retain their traditional
12788         boolean style behaviour. Implemented bitfield support in
12789         the z80 port.
12790
12791         * src/SDCCsymt.h,
12792         * src/SDCCsymt.c,
12793         * src/SDCCast.c,
12794         * src/cdbFile.c,
12795         * src/mcs51/gen.c,
12796         * src/ds390/gen.c: bit v bitfield split
12797         * src/z80/gen.c: New support for bitfields
12798         * support/regression/tests/bitfields.c: reenabled z80,
12799         added more tests
12800
12801 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12802
12803         Rules 246.x, 247.x relate to bitfields, the others speed up
12804         access to xdata mapped I/O devices.
12805
12806         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
12807
12808 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12809
12810         Cleaned up genPackBits and genUnpackBits and added two helper
12811         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
12812         for literal assignments in genPackBits (thanks to Frieder for
12813         reminding me).
12814
12815         * src/mcs51/gen.c
12816         * src/ds390/gen.c
12817
12818 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12819
12820         Fixed bug #748310 (pointer to function type mishandled when the
12821         function name is omitted). Also fixed a SIGSEGV when a function
12822         attribute (reentrant, etc) is used on a non-function or on a
12823         function but misplaced before the parameter list.
12824
12825         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
12826         bug #748310
12827         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
12828         * support/Util/SDCCerr.h,
12829         * support/Util/SDCCerr.c: Added func attr misuse error msg
12830
12831 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
12832
12833         Fixed bug #787649 by anonymous
12834         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
12835         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
12836
12837 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12838
12839         Fixed numerous bitfield problems.
12840
12841         * src/SDCC.y: More bitfield related error checking
12842         * src/SDCCsymt.h,
12843         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
12844         * support/Util/SDCCerr.h,
12845         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
12846         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
12847         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
12848         * support/regression/tests/bitfields.c: tests added
12849
12850 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12851
12852         Made the constant following the "interrupt" keyword optional. If
12853         omitted, the function will not automatically be given an entry
12854         in the interrupt vector table (similar to #pragma NOIV, but
12855         less syntacticly kludgy). The interrupt number is also now
12856         range checked. Also fixed a bug in the high order bit example
12857         in the manual.
12858
12859         * src/SDCC.y
12860         * src/SDCCmem.c
12861         * src/SDCCglue.c
12862         * src/SDCCsymt.h
12863         * support/Util/SDCCerr.c
12864         * support/Util/SDCCerr.h
12865         * doc/sdccman.lyx
12866
12867 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
12868
12869         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
12870         * src/SDCCicode.c (operandOperation): rewritten some ops
12871         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
12872         * src/SDCCsymt.c (computeType): literals are handled the same way as any
12873         other type
12874         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
12875         be re-activated by defining REDUCE_LITERALS)
12876         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
12877         unsigned, but are signed by default
12878         * src/SDCCval.c (constVal): rearranged
12879         * src/SDCCval.c (valMod): preliminary fix
12880         * src/SDCCval.c (valCastLiteral): use TYPE_* types
12881         * support/regression/literalop.c: added, work in progress
12882
12883 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12884
12885         Generate warnings for useless declarations like "char data;"
12886         that don't do what new users expect.
12887
12888         * src/SDCC.y
12889         * support/Util/SDCCerr.h
12890         * support/Util/SDCCerr.c
12891
12892 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
12893
12894         * src/SDCCval.c (valMult): fix overflow detection of negative int
12895
12896 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12897
12898         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
12899
12900         Changes to support big endian targets:
12901
12902         * src/ports.h
12903         * src/SDCCglue.c
12904         * src/avr/main.c
12905         * src/ds390/main.c
12906         * src/izt/i186.c
12907         * src/mcs51/main.c
12908         * src/pic/main.c
12909         * src/pic16/main.c
12910         * src/xa51/main.c
12911         * src/z80/main.c
12912
12913 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
12914
12915         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
12916         * device/lib/time.c: fixed warning "integer overflow in expression"
12917
12918 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
12919
12920         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
12921         * src/SDCCval.c (constVal): changed default to signed; hex and octal
12922         constants are unsigned; added recognition of "u" flag for unsigned
12923         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
12924         * src/SDCCval.c (valDiv, valMod): fixed signdness
12925         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
12926         signedness of modulo, left and right shift
12927         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
12928         * support/Util/SDCCerr.h: added warning W_INT_OVL
12929         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
12930         * src/SDCCast.c (ast_print): improved output of constants
12931
12932 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12933
12934         Fixed some warnings when building with MSVC:
12935
12936         * as/mcs51/asdata.c
12937         * as/z80/asdata.c
12938         * as/mcs51/asm.h
12939         * as/z80/asm.h
12940         * link/z80/aslink.h
12941         * link/z80/lkdata.c
12942         * link/z80/lkeval.c
12943         * link/z80/lkgb.c
12944         * link/z80/lkihx.c
12945         * link/z80/lks19.c
12946         * link/z80/lksym.c
12947         * support/cpp2/cpplib.c
12948         * src/ds390/gen.c
12949         * src/mcs51/gen.c
12950
12951 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
12952
12953         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
12954
12955 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12956
12957         * support/librarian/clean.mk: Do not remove Makefile.
12958         * support/librarian/Makefile: added.
12959
12960 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12961
12962         Added librarian to MSVC build:
12963         * all.dsp
12964         * sdcc.dsw
12965         * support/librarian/librarian.dsp
12966
12967         'configure' not needed for librarian, removed:
12968         * support/librarian/configure
12969         * support/librarian/configure.in
12970         * support/librarian/config_in.h
12971         * support/librarian/Makefile.in
12972
12973         Hopefully these ones built the librarian and the rest of sdcc properly:
12974         * Makefile
12975         * Makefile.common.in
12976
12977         Messed up 'configure', so revert to previous version:
12978         * configure
12979         * configure.in
12980
12981 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
12982
12983         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
12984         there, while the mantissa of a double is "only" 53 bits wide.
12985
12986 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12987
12988         Adding sdcclib to the build.  MSVC project coming soon.
12989         Files added/changed:
12990
12991         * support/librarian/clean.mk
12992         * support/librarian/configure
12993         * support/librarian/configure.in
12994         * support/librarian/config_in.h
12995         * support/librarian/Makefile.bcc
12996         * support/librarian/Makefile.in
12997         * support/librarian/sdcclib.c
12998         * Makefile.bcc
12999         * Makefile
13000         * Makefile.common.in
13001         * configure
13002         * configure.in
13003
13004 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13005
13006         Linker now complaints if linked modules have conflicting options, for
13007         example, one compiled using --model-large and another one compiled with
13008         --model-small.  The following files were modified:
13009
13010         * as/mcs51/asdata.c
13011         * as/mcs51/aslink.h
13012         * as/mcs51/asm.h
13013         * as/mcs51/asmain.c
13014         * as/mcs51/asout.c
13015         * as/mcs51/i51pst.c
13016         * as/mcs51/lkdata.c
13017         * as/mcs51/lklibr.c
13018         * as/mcs51/lkmain.c
13019         * as/z80/asdata.c
13020         * as/z80/asm.h
13021         * as/z80/asmain.c
13022         * as/z80/asout.c
13023         * as/z80/z80pst.c
13024         * link/z80/aslink.h
13025         * link/z80/lkdata.c
13026         * link/z80/lklibr.c
13027         * link/z80/lkmain.c
13028         * src/SDCCglue.c
13029
13030 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13031
13032         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
13033         as/mcs51/lklibr.c: Generate a warning when a library is not found.
13034
13035 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
13036
13037         * src/z80/mappings.i: fix _mul[us][int,long] entries
13038
13039 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13040
13041         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
13042
13043 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
13044
13045         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
13046         * support/regression/tests/bitopcse.c: added
13047         fixed warning:
13048         * src/avr/gen.c:
13049         * src/pic/gen.c:
13050         * src/pic16/gen.c:
13051         * src/z80/gen.c:
13052         * src/xa51/gen.c:
13053
13054 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13055
13056         added support for new library format to z80, gbz80 linkers:
13057         *link/z80/aslink.h
13058         *link/z80/lklex.c
13059         *link/z80/lklib.c
13060         *link/z80/lklist.c
13061
13062 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
13063
13064         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
13065         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
13066
13067 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
13068
13069         added DUMMY_READ_VOLATILE:
13070         * src/SDCC.y:
13071         * src/avr/gen.c:
13072         * src/xa51/gen.c:
13073         * src/z80/gen.c:
13074         * src/pic/gen.c:
13075         * src/pic16/gen.c:
13076         * src/mcs51/gen.c:
13077         * src/ds390/gen.c:
13078         * src/SDCCcse.c (algebraicOpts): many improvements
13079         * src/SDCCcse.h: removed algebraicOpts()
13080         * src/SDCCicode.c (picDummyRead): added
13081
13082 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13083
13084         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
13085         "Insufficient space in data memory".
13086
13087 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13088
13089         * src/mcs51/gen.c: fixed bug #771358
13090         * src/z80/gen.c: fixed bug #759087
13091
13092 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
13093
13094         * src/pic16/glue.c: minor cleanup by Vangelis
13095
13096 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13097
13098         * device/include/regc515c.h: fixed #758477
13099         * device/lib/_gptrget.c: saving some cycles in generic pointer get
13100         * device/lib/_gptrput.c: saved a few bytes
13101         * my tab spacing is 8, yours too?)
13102         * device/lib/_ser.c: process RX bytes earlier than TX bytes
13103         * device/lib/serial.c: process RX bytes earlier than TX bytes
13104         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
13105
13106 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13107
13108         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
13109
13110 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13111
13112     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
13113
13114 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
13115
13116         * device/lib/Makefile.in: bad fix, reverted to 1.43
13117
13118 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
13119
13120         * device/lib/Makefile.in: added missing z80 object files
13121
13122 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
13123
13124         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
13125         pic16 progress by Vangelis:
13126         * src/SDCCglobl.h:
13127         * src/SDCCmain.c:
13128         * src/pic/Makefile:
13129         * src/pic:
13130         * pic/Makefile:
13131         * pic16/device.c:
13132         * pic16/device.h:
13133         * pic16/gen.c:
13134         * pic16/gen.h:
13135         * pic16/genarith.c:
13136         * pic16/glue.c:
13137         * pic16/main.c:
13138         * pic16/pcode.c:
13139         * pic16/pcode.h:
13140         * pic16/pcodepeep.c:
13141         * pic16/peeph.def:
13142
13143 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13144
13145     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
13146
13147 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13148
13149     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
13150     added gbz80 build to MSVC project.
13151     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
13152     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
13153     from 8051 stuff and setup so it links using a .lnk file.
13154
13155 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13156
13157     * support/librarian/sdcclib.c: sdcc librarian.
13158     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
13159     with sdcclib.
13160
13161 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13162
13163     * as/mcs51/lkmain.c: properly handle extensions in function afile.
13164
13165 2003-07-02  Borut Razem <borut.razem AT siol.net>
13166
13167         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
13168         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
13169         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
13170         src/xa51/main.c, src/z80/main.c:
13171         virtualization of glue() function: each port has it's own glue function,
13172         which is accessed by do_glue function pointer in PORT.general structure
13173
13174 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
13175
13176         * DS800C400 fun, improved ROM interface and tinibios.
13177
13178 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
13179
13180         * More support for DS80C400. Now includes beginning of interface to ROM.
13181
13182 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
13183
13184         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
13185
13186 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13187
13188         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
13189
13190 2003-06-19  Borut Razem <borut.razem AT siol.net>
13191
13192         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
13193
13194 2003-06-19  Borut Razem <borut.razem AT siol.net>
13195
13196         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
13197         fixed Z80 port - crt0.o: cannot open.
13198
13199 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
13200
13201         * support/Util/MySystem.c (merge_command): revert bad fix
13202
13203 2003-06-18  Borut Razem <borut.razem AT siol.net>
13204
13205         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
13206
13207 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13208
13209         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
13210         option --use-stdout sends errors to stdout instead of stderr.
13211
13212 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
13213
13214         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
13215
13216 2003-06-15  Borut Razem <borut.razem AT siol.net>
13217
13218         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
13219         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
13220         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
13221         fixed width array of pointers replaced with sets;
13222         multiple include and lib paths ared transferred to preprocessor and linker
13223         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
13224         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
13225         fixed width array of pointers
13226         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
13227         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
13228         fixupPath(), getPathDifference()
13229         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
13230         fixed width array of pointers
13231
13232 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
13233
13234         * src/pic16/ralloc.c: fix warnings
13235         * src/pic16/pcode.c: fix warning
13236
13237 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
13238
13239          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
13240         know all the details, but essentially this set of changes enable
13241         the pic16 port to generate movff instructions and generate assembler
13242         directives,
13243         * src/SDCCmain.c:
13244         * src/pic16/gen.c:
13245         * src/pic16/glue.c:
13246         * src/pic16/pcode.c:
13247         * src/pic16/device.c:
13248         * src/pic16/main.c:
13249         * src/pic16/pcode.h:
13250         * src/pic16/pcoderegs.c:
13251         * src/pic16/ralloc.c:
13252         * src/pic16/ralloc.h:
13253
13254 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13255
13256         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
13257         added option --vc, so sdcc errors and warnings are compatible with
13258         Microsoft Visual Studio.
13259
13260 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13261
13262         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
13263           device/lib/libfloat.lib: added atof function.
13264
13265 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
13266
13267         * doc/sdccman.lyx: updated to Lyx 1.3
13268         * doc/cdbfileformat.lyx: updated to Lyx 1.3
13269         * doc/test_suite_spec.lyx: updated to Lyx 1.3
13270         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
13271
13272 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
13273
13274         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
13275
13276 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13277
13278         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
13279           additions to the "related tools/documentation" section
13280
13281 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
13282
13283         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
13284
13285 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
13286
13287         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
13288         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
13289
13290 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
13291
13292         * doc/sdccman.lyx: fix double dash and other minor things
13293         * doc/Makefile: fix double dash
13294
13295 2003-05-28  Karl Bongers(patches from Martin Helmling)
13296         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
13297           condition and ignore commands.
13298
13299 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13300
13301         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
13302           is in parts still quite out of date, I did changes as far as I felt makes sense
13303           for a non-native english speaker.
13304           Please feel free to add to the manual or to correct my changes.
13305         * doc/Makefile: undid touching the date of intermediate tex files.
13306
13307 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13308
13309         * doc/sdccman.lyx: Manual has an index now
13310
13311 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
13312
13313         Finalize muluint/mulsint and mululong/mulslong merging:
13314         * device/lib/_mulint.c
13315         * device/lib/_mullong.c
13316         * device/lib/gbz80/mul.s
13317         * device/lib/gbz80/stubs.s
13318         * device/lib/z80/mul.s
13319         * device/lib/z80/stubs.s
13320         * src/SDCCsymt.c (initCSupport)
13321
13322 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13323
13324         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
13325         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
13326           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
13327           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
13328           instead of /Zm500.
13329
13330 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13331
13332         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
13333           the regression tests I'm not brave enough to enable 245.b, 245.c
13334         * doc/sdccman.lyx: added latex preamble for hyperref package.
13335           Using pdflatex this will give you a hyperlinked pdf file with
13336           bookmarks. (prepend '%' before /usepackage if this breaks something)
13337
13338 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13339
13340          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
13341
13342 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
13343
13344         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
13345
13346 2003-05-21    <johan AT balder>
13347
13348         * src/SDCCglue.c (printIval): fixed bug #739934
13349
13350 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
13351
13352         Applied patch from bug 737905 (renamed yylineo to mylineno):
13353         * src/altlex.c
13354         * src/SDCCast.c
13355         * src/SDCglobl.h
13356         * src/SDCC.lex
13357         * src/SDCCsymt.c
13358         * src/SDCCval.c
13359         * src/pic16/pcode.c: Cleaned warnings
13360         * src/pic16/pcodeflow.c: Cleaned warnings
13361         * src/pic16/pcoderegs.c: Cleaned warnings
13362
13363 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
13364
13365         * src/pic16/pcode.c: Cleaned warnings
13366         * src/pic16/pcodepeep.c: Cleaned warnings
13367         * src/pic16/ralloc.c: Cleaned warnings
13368
13369 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
13370
13371         * doc/sdccman.lyx: fixed bug 739745
13372         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
13373
13374 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
13375
13376         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
13377         it can be defined with CFLAGS when running configure
13378         * src/SDCCmain.c: fixed compiling + linking with object files
13379
13380 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
13381
13382         * configure.in: configure for pic16 port,
13383             added --disable-pic16-port
13384         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
13385         * src/SDCCmain.c: linkOptions is changed to set *,
13386             added if/endif conditional macros to remove options help
13387             messages from optionsTable when a port is not configured, added
13388             support for the PIc16 port in the ports table, when executing
13389             the compiler with no port specified on command line, a default
13390             port is selected with the new macro DEFAULT_PORT which is
13391             defined in port.h, in setDefaultOptions() linkOptions is removed
13392             from initialization assignment, since now it is a set,
13393             parseCmdLine uses setParseWithComma for linkOptions, in
13394             linkEdit() linkOptions are accessed with new function indexSet()
13395             which returns the i'th item of a set variable. See SDCCset.c, in
13396             linkEdit() when calling buildCmdLine(), added linkOptions as
13397             last argument. Now users can pass arguments to gplink via the
13398             -Wl option, main() uses pic16glue() to glue up pic16 programs
13399         * src/SDCCpeeph.c: various changes to support pic16
13400         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
13401             return the i'th item of the set
13402         * src/SDCCset.h: added function prototype for indexSet()
13403         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
13404         * src/clean.mk: added pic16 in CLEANALLPORTS variable
13405         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
13406             added macro DEFAULT_PORT
13407         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
13408         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
13409             generated
13410         * src/pic16/glue.c: commented out some error producing lines
13411         * src/pic16/main.c: __config directives are commented out to stop
13412             gpasm complaining and test the linkage with gplink, _linkCmd and
13413             _asmCmd changed to be more gplink and gpasm friendly
13414         * src/pic16/peeph.def: peep rule 3 is commented out, since it
13415             produced an error when parsed, peep rule 12 is added to utilize
13416             movff, but it is commented out since the pCode does not support
13417             yet a command with 2 address arguments
13418
13419 2003-05-18    <johan AT balder>
13420
13421         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
13422         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
13423 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
13424
13425         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
13426   Added feature to script commands from file.
13427
13428 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
13429
13430         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
13431         * src/SDCCutil.c: include ctype.h for win32
13432
13433 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
13434
13435         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
13436
13437 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
13438
13439         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
13440   Fixed so you can set breakpoints prior to run, run does not stop
13441   on entry now.  Add tbreak.  Other enhancements and fixes for use
13442   with ddd.
13443
13444 2003-05-12  Borut Razem <borut.razem AT siol.net>
13445
13446         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
13447
13448 2003-05-11  Borut Razem <borut.razem AT siol.net>
13449
13450         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
13451         the path of bin directory, so that PATH is the only env. variable, which has to be set
13452         in case of standard installation.
13453         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
13454         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
13455         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
13456
13457 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
13458
13459         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
13460         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
13461         temp files are in the port dir; clean the gen/test directory when
13462         generating new test.c
13463         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
13464         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
13465         * support/regression/tests/zeropad.c: added
13466
13467 2003-05-09    <johan AT balder>
13468
13469         * src/SDCCglue.c: fixed bug #597940
13470
13471 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
13472
13473         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
13474   cache sfr, optimize next,step, fix off by one sourceline,
13475   support ddd list function.
13476         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
13477
13478 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
13479
13480         * support/regression/HTMLgen.py: added compare_s2f()
13481         * support/regression/Makefile: redo 1.27
13482         * support/regression/generate-cases.py: redo 1.5
13483
13484 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
13485
13486         * support/regression/tests/float.c: workaround 33 bit hex constant
13487         * support/regression/tests/simplefloat.c: fix division for host
13488
13489 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
13490
13491         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
13492         that tame's the PIC's over-aggressive optimizer.
13493
13494 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13495
13496          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
13497          support for MSVC.
13498
13499 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
13500
13501         Initial support for DS80C400. "Hello world" runs on TINIm400
13502         (with polled I/O).
13503
13504 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
13505
13506          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
13507          * Some notes on ddd usage added in debugger/README
13508          Martin Helmling adding more features and fixes for ddd GUI debugger.
13509          Code added for nexti, stepi, up, down, and other adjustments.
13510
13511 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
13512
13513         * src/pic/pCodepeep.c non-wildcard asmops are now handled
13514         * src/pic/peeph.def Added two rules to optimize carry manipulation
13515         * src/pic/* removed debug printfs
13516
13517 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
13518
13519         * debugger/mcs51/cmd.c: added header newalloc.h
13520
13521 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
13522
13523         * as/Makefile: new EXEEXT
13524         * as/z80/Makefile: remove trailing slash of BUILDIR
13525         * as/z80/clean.mk: new EXEEXT
13526         * Makefile.common.in: add to CFLAGS (and others), don't replace it
13527         * support/cpp2/Makefile.in: new EXEEXT
13528         * src/pic/glue.c (pic14emitRegularMap): fixed warning
13529
13530 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
13531
13532         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
13533         EXEEXT was introduced to fix all related problems with targets
13534         "clean", "install" and "uninstall"; a couple of further flaws
13535         especially with "clean" have been fixed too
13536         * as/mcs51/Makefile.in
13537         * as/mcs51/clean.mk
13538         * as/z80/Makefile
13539         * Makefile
13540         * clean.mk
13541         * debugger/mcs51/Makefile.in
13542         * debugger/mcs51/clean.mk
13543         * link/z80/Makefile
13544         * link/z80/Makefile.in
13545         * link/z80/clean.mk
13546         * link/Makefile
13547         * packihx/Makefile.in
13548         * packihx/clean.mk
13549         * sim/ucsim/Makefile
13550         * sim/ucsim/clean.mk
13551         * sim/ucsim/avr.src/Makefile.in
13552         * sim/ucsim/avr.src/clean.mk
13553         * sim/ucsim/s51.src/Makefile.in
13554         * sim/ucsim/s51.src/clean.mk
13555         * sim/ucsim/xa.src/Makefile.in
13556         * sim/ucsim/xa.src/clean.mk
13557         * sim/ucsim/z80.src/Makefile.in
13558         * sim/ucsim/z80.src/clean.mk
13559         * sim/ucsim/main_in.mk
13560         * sim/ucsim/packages_in.mk
13561         * sim/ucsim/gui.src/Makefile.in
13562         * sim/ucsim/gui.src/serio.src/Makefile.in
13563         * sim/ucsim/gui.src/serio.src/clean.mk
13564         * src/Makefile.in
13565         * src/clean.mk
13566         * support/cpp2/Makefile.in
13567         * support/cpp2/clean.mk
13568         * support/makebin/Makefile
13569         * support/makebin/clean.mk
13570         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
13571         * doc/sdccman.lyx: --program-suffix no longer needed
13572
13573 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
13574
13575          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
13576          Martin Helmling added support for ddd GUI debugger.
13577          Code added to display assembly, set variables, and other commands
13578          to interface to ddd.
13579
13580 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
13581
13582         * as/Makefile: fix target clean
13583         * as/clean.mk: fix target clean
13584         * as/z80/clean.mk: fix target clean
13585
13586 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
13587
13588         * Makefile.common.in: added  AT EXEEXT AT
13589         * configure.in: removed all mingw32 stuff
13590         * configure: rebuilt from configure.in
13591         * doc/sdccman.lyx: updated section "installation"
13592         * support/scripts/sdcc_mingw32: adapted to configure
13593         * support/scripts/sdcc_cygwin_mingw32: added
13594
13595 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
13596
13597         * src/pic Added object file support for the PIC port
13598         * src/pic Applied patch from Craig Franklin (this started the object file support)
13599         * src/regression Updated the PIC regression tests for object files
13600
13601 2003-04-20  Borut Razem <borut.razem AT siol.net>
13602
13603         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
13604           lklex.c: In function `getfid':
13605           lklex.c:203: warning: array subscript has type `char'
13606         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
13607           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
13608         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
13609           stack handling macros
13610
13611 2003-04-19  Borut Razem <borut.razem AT siol.net>
13612
13613         * "handling space characters in file path" task:
13614         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
13615         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
13616         * support/Util/MySystem.h: make it self-sufficient
13617         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
13618           src/z80/main.c, sdcc/as/mcs51/lklex.c:
13619           handling space characters in file path
13620         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
13621           (it will be used by assemblers, which have their own includes, e.g. gpasm)
13622         * support/Util/MySystem.c: handling space characters in executable's path
13623
13624 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
13625
13626         * as/z80/Makefile: fix permanent rebuild of z80
13627         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
13628         * support/regression/tests/bitfields.c: added Johan's bitfields.c
13629
13630 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
13631
13632         * src/SDCCopt.c: add special case optimization to replace modulo by
13633           a power of two with a bitwise AND.
13634
13635 2003-04-18    <johan AT balder>
13636
13637         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
13638
13639 2003-04-17    <johan AT balder>
13640
13641         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
13642         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
13643
13644 2003-04-13  Borut Razem <borut.razem AT siol.net>
13645
13646         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
13647         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
13648           fixed mingw problem in adl_NORMALIZE_PATH
13649
13650 2003-04-12  Borut Razem <borut.razem AT siol.net>
13651
13652         * fixed "#pragma SAVE/RESTORE can not be nested":
13653         * src/SDCC.lex: reworked pragma handling functions
13654         * sdcc/src/SDCCglobl.h: reworked stack handling macros
13655         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
13656
13657 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
13658
13659         * src/SDCCutil.c (pathEquivalent): defined but not used
13660         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
13661         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
13662         * configure: rebuilt from configure.in
13663         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
13664         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
13665         * device/include/Makefile.in: replace sdcc_datadir
13666         * device/lib/Makefile.in: replace sdcc_datadir
13667         * Makefile.common.in: add LDFLAGS from configure
13668         * packihx/Makefile.in: use LDFLAGS
13669         * src/Makefile.in: use LDFLAGS
13670         * support/cpp2/Makefile.in: add LDFLAGS from configure
13671         * support/makebin/Makefile: use LDFLAGS
13672         * .version: bumped version number to 2.3.5
13673
13674 2003-04-12  Borut Razem <borut.razem AT siol.net>
13675
13676         * completed "different paths" task:
13677         * src/SDCCmacro.c: fixed bug in handling quotes
13678         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
13679         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
13680
13681 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
13682
13683         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
13684
13685 2003-04-11 kevin Vigor <kevin AT vigor.nu>
13686
13687         * ds390/gen.c ds390/peeph.def: fix bug 706781
13688
13689 2003-04-11  Borut Razem <borut.razem AT siol.net>
13690
13691         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
13692
13693 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
13694
13695         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
13696         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
13697          set - this bit used to not be set...).
13698         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
13699           bad code in PIC Port
13700         * src/regression/and2.c added to test bug 609268
13701         * src/regression/Makefile added and2.c to regression test
13702
13703
13704 2003-04-08    <johan AT CP255758-A>
13705
13706         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
13707         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
13708         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
13709
13710 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
13711
13712         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
13713         fix bug #487815
13714         * support/cpp2/Makefile.in: fix bug #487815
13715         * configure: rebuilt from configure.in
13716         * Makefile.common.in: docdir changed, new path suffixes
13717         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
13718         * sdcc_vc_in.h: reflect changes from sdccconf.h
13719         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
13720         * src/SDCCutil.h: remove BINDIR hack
13721         * doc/sdccman.lyx: update new path hierarchy
13722
13723 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
13724
13725         * src/SDCCpeeph.c: added okToRemoveSLOC test
13726
13727 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
13728
13729         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
13730
13731 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
13732
13733         * src/SDCCpeeph.c: added labelIsReturnOnly test
13734         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
13735
13736 2003-04-05    <johan AT balder>
13737
13738         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
13739         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
13740         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
13741         * src/SDCCast.c: fixed a warning
13742         * src/SDCCast.h: fixed a warning
13743         * src/SDCCicode.c (operandFromAst): fixed a warning
13744
13745 2003-04-04    <johan AT balder>
13746
13747         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
13748         * src/SDCCast.c (decorateType): fixed bug #715076
13749         * src/SDCC.y: fixed bug #702907
13750
13751 2003-04-03    <johan AT balder>
13752
13753         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
13754         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
13755         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
13756         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
13757         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
13758
13759 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
13760
13761         * _decdptr.c: fix return values
13762         * _gptrget.c: fix return values
13763         * _gptrgetc.c: fix return values
13764         * _gptrput.c: fix return values
13765         * _mulint.c: fix return values
13766         * as/z80/Makefile: fix 'make -j' problem
13767
13768 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
13769
13770         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
13771         * configure.in: big cleanup, updated to autoconf 2.5x
13772         * configure: rebuilt from configure.in
13773         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
13774         * sdcc_vc_in.h: reflect changes from sdccconf.h
13775         * doc/Makefile: fixed a flaw in "make install"
13776
13777 2003-04-02    <johan AT balder>
13778
13779         * src/ds390/gen.c (genCmp): no comments
13780         * src/mcs51/gen.c (genCmp): no comments
13781         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
13782         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
13783
13784 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
13785
13786         * support/regression/generate-cases.py: place generated file in given sub directory
13787         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
13788         * support/regression/Makefile: improvements for 'make -j';
13789         side effect: it's simpler and faster now
13790
13791 2003-03-31  Borut Razem <borut.razem AT siol.net>
13792
13793         * src/z80/main.c: link-{port} and as-{port} defined without path
13794         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
13795
13796 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
13797
13798         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
13799
13800 2003-03-30  Borut Razem <borut.razem AT siol.net>
13801
13802         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
13803           changed type of list parameter to set
13804         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
13805         * src/port.h: changed type of do_assemble() parameter to set
13806         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
13807           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
13808           definition of "cppoutfilename" macro with NULL value in preProcess()
13809         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
13810         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
13811         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
13812           replaced with set *binPathSet
13813         * shash_add() deallocates the item, if allready exsists, before adding the new one
13814         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
13815
13816 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
13817
13818         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
13819           a nested for loop bug in the PIC port
13820         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
13821           for loops
13822
13823 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
13824
13825         * support/Util/dbuf.h: remove C++ stuff to make it portable
13826
13827 2003-03-28  Borut Razem <borut.razem AT siol.net>
13828
13829         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
13830           literal strings in stringLiteral()
13831         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
13832         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
13833           to the project
13834
13835 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
13836
13837         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
13838
13839 2003-03-26    <johan AT balder>
13840
13841         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
13842         * src/ds390/gen.c (saveRegisters): catched symbol abuse
13843         * src/SDCCast.c (decorateType): fixed " -v < 3"
13844
13845 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
13846
13847         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
13848         Added Lenny Story's debug infrastructure changes:
13849         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
13850         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
13851         * src/cdbFile.c: added
13852         * src/SDCCdebug.c: added
13853         * src/SDCCdebug.h: added
13854         * src/SDCCast.c (createFunction)
13855         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
13856         * src/SDCCmain.c (parseCmdLine, main)
13857         * src/SDCCmem.c (redoStackOffsets)
13858         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
13859         * src/SDCCsymt.h
13860         * src/common.h
13861         * src/avr/gen.c (genAVRCode)
13862         * src/ds390/gen.c (gen390Code)
13863         * src/mcs51/gen.c (gen51Code)
13864         * src/pic/gen.c (genpic14Code)
13865         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
13866         * src/xa51/gen.c (genXA51Code)
13867         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
13868
13869 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13870
13871         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
13872         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
13873
13874 2003-03-22    <johan AT balder>
13875
13876         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
13877
13878 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
13879
13880         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
13881         * doc/cdbfileformat.lyx: added, written by Lenny Story
13882         * doc/Makefile: added cdbfileformat.lyx
13883         * doc/clean.mk: added cdbfileformat.lyx
13884
13885 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
13886
13887         * src/mcs51/peeph.def: fix bug #705773
13888
13889 2003-03-20    <johan AT balder>
13890
13891         An sfr/sbit can have an "at #" AND an initializer
13892         * src/SDCCsymt.c (checkSClass):
13893         * src/SDCCmem.c (allocGlobal):
13894         * src/SDCCmem.c (allocLocal):
13895         * src/SDCCast.c (createBlock):
13896
13897 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
13898
13899         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
13900
13901 2003-03-16    <johan AT balder>
13902
13903         Undid the hackup of const and volatile, the problem is much bigger
13904         * src/SDCC.y:1.65
13905         * src/SDCCast.c:1.171
13906         * src/SDCCglue.c:1.138
13907         * src/SDCCicode.c:1.146
13908         * src/SDCCsymt.c:1.150
13909         * src/SDCCval.c:1.65
13910
13911 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
13912
13913         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
13914         * src/ds390/gen.c (genAddrOf): fixed bug #704087
13915
13916 2003-03-13    <johan AT balder>
13917
13918         Hackup const and volatile modifiers in type chains a bit:
13919         * src/SDCC.y:1.63
13920         * src/SDCCast.c:1.169
13921         * src/SDCCglue.c:1.136
13922         * src/SDCCicode.c:1.143
13923         * src/SDCCsymt.c1.146
13924         * src/SDCCsymt.h1.59
13925         * src/SDCCval.c:1.63
13926
13927 2003-03-12    <johan AT balder>
13928
13929         * src/SDCCBBlock.h: more LRH debugging junk
13930         * src/SDCCcflow.h: more LRH debugging junk
13931         * src/SDCCloop.c: more LRH debugging junk
13932         * src/SDCC.y (struct_declaration): fixed bug #697590
13933         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
13934         * src/ds390/gen.c (aopForRemat): fixed bug #700031
13935         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
13936
13937 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
13938         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
13939         test function names must now match exactly).
13940         * src/SDCCcse.c: added special case in findCheaperOp to allow
13941         extending a short integer. Makes less awful code for bug 700121 test case.
13942
13943 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13944
13945         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
13946         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
13947
13948 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
13949
13950         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
13951         actually called (operandsNotEqual() was called for all
13952         operandsNotEqualX tests).
13953
13954 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
13955
13956         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
13957         with shorter literals. Fixes bug 700121.
13958
13959 2003-03-11    <johan AT balder>
13960
13961         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
13962
13963 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
13964
13965         * src/SDCCloop.c (mergeRegions): an evil beast is dead
13966         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
13967
13968 2003-03-10  Borut Razem <borut.razem AT siol.net>
13969
13970         * src/SDCCmain.c: pipe preprocessor's output
13971         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
13972         * sdcc_vc_in.h: define pclose as _pclose for WIN32
13973         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
13974         which closes all pipes in pipeSet set
13975         * src/SDCCset.c: free deleted item in function deleteSetItem()
13976         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
13977         moved from z80 to src subproject
13978         * .version: increased version number to 2.3.4
13979
13980 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
13981
13982         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
13983         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
13984         * support/regression/ports/xa51/spec.mk: fix typo
13985
13986 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
13987
13988         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
13989
13990 2003-03-09  Borut Razem <borut.razem AT siol.net>
13991
13992         * src/SDCCmain.c: pipe preprocessor's output
13993         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
13994         * sdcc_vc_in.h: define pclose as _pclose for WIN32
13995         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
13996         which closes all pipes in pipeSet set
13997         * src/SDCCset.c: free deleted item in function deleteSetItem()
13998         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
13999         moved from z80 to src subproject
14000
14001 2003-03-09  Borut Razem <borut.razem AT siol.net>
14002
14003         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
14004         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
14005         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
14006         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
14007         * src/SDCCglobl.h: unification of WIN32 native definitions
14008
14009 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14010
14011         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
14012
14013 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
14014
14015         * src/configure.in:   check for endianess (even while cross-compiling)
14016         * src/configure:      check for endianess (even while cross-compiling)
14017         * src/configure_in.h: check for endianess (even while cross-compiling)
14018         * src/avr/gen.c:        remove old endianess stuff
14019         * src/mcs51/gen.c:      remove old endianess stuff
14020         * src/ds390/gen.c:      remove old endianess stuff
14021         * src/pic/gen.c:        remove old endianess stuff
14022         * src/pic/genarith.c:   remove old endianess stuff
14023         * src/pic/glue.c:       fix endianess check
14024         * src/pic16/gen.c:      remove old endianess stuff
14025         * src/pic16/genarith.c: remove old endianess stuff
14026         * src/pic16/glue.c:     fix endianess check
14027         * src/xa51/gen.c:       remove old endianess stuff
14028         * src/z80/gen.c:        fix endianess check
14029         * src/SDCCglue.c:       fix endianess check
14030         * src/ds390/peeph.def: fix bug 700036
14031
14032 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
14033
14034         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
14035         * src/configure: find appropriate data-types on host for SDCC's int and long
14036         * src/configure.in: find appropriate data-types on host for SDCC's int and long
14037         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
14038         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
14039
14040 2003-03-07    <johan AT balder>
14041
14042         Just a big NOOP:
14043                 some minor cleanups before the big shot
14044                 OP_DEFS and OP_USES now use Kevin's protection
14045                 new option --nolabelopt
14046
14047         * src/SDCCBBlock.c:
14048         * src/SDCCast.c,:
14049         * src/SDCCcflow.c:
14050         * src/SDCCcse.c:
14051         * src/SDCCicode.c:
14052         * src/SDCCicode.h:
14053         * src/SDCClabel.c:
14054         * src/SDCCloop.c:
14055         * src/SDCCmain.c:
14056         * src/ds390/ralloc.c:
14057         * src/mcs51/ralloc.c:
14058         * src/pic/ralloc.c:
14059         * src/xa51/ralloc.c:
14060         * src/z80/ralloc.c:
14061
14062 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
14063
14064         * src/pic/pcode.c (get_op): fix 64 bit warnings
14065         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
14066         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
14067         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
14068         * support/regression/tests/malloc.c: fix 64 bit warnings
14069
14070 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
14071
14072         * src/mcs51/gen.c (genMinus): fixed bug 696436
14073
14074 2003-03-02  Borut Razem <borut.razem AT siol.net>
14075
14076         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
14077
14078 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
14079
14080         * configure.in: test for mkstemp
14081         * sdccconf_in.h: add HAVE_MKSTEMP
14082
14083 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
14084
14085         * device/include/ctype.h: removed warning while using --stack-auto
14086         * device/include/malloc.h: removed warning while using --stack-auto
14087         * device/include/string.h: removed warning while using --stack-auto
14088
14089 2003-02-23  Borut Razem <borut.razem AT siol.net>
14090
14091         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
14092         because NDEBUG is defined (see man assert)
14093         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
14094
14095 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14096
14097         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
14098         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
14099
14100 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14101
14102         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
14103         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
14104
14105 2003-02-18    <johan AT balder>
14106
14107         * as/mcs51/asmain.c (asmbl): module can start with a digit
14108         * as/z80/asmain.c (asmbl): module can start with a digit
14109
14110 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
14111
14112         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
14113         * src/asm.c: fix pipe() for Mingw32
14114
14115 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
14116
14117         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
14118         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
14119         make -V work again; --c1mode reads now from stdin
14120         * doc/sdccman.lyx: added --c1mode
14121         * support/Util/SDCCerr.c: new messages for c1 mode
14122         * support/Util/SDCCerr.h: new messages for c1 mode
14123         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
14124
14125 2003-02-15    <johan AT balder>
14126
14127         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
14128
14129 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
14130
14131         * doc/sdccman.lyx: Environment variables, -o and other minor things
14132
14133 2003-02-14    <johan AT balder>
14134
14135         * src/xa51/main.c: before anyone really tries to use it :)
14136
14137         * Install doc's in share/sdcc/doc
14138         * removed some obsolete files
14139         * Do a proper make distclean and uninstall
14140         M Makefile.common.in
14141         R sdccbuild.sh
14142         M as/Makefile
14143         M device/include/Makefile.in
14144         M device/lib/Makefile.in
14145         M doc/sdccman.lyx
14146         M link/Makefile
14147         M sim/ucsim/doc/Makefile.in
14148         M src/clean.mk
14149         R src/avr/peeph.rul
14150         R src/xa51/peeph.rul
14151         M support/cpp2/Makefile.in
14152         M support/makebin/Makefile
14153
14154
14155 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
14156
14157         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
14158
14159 2003-02-10  Borut Razem <borut.razem AT siol.net>
14160
14161         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
14162         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
14163         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
14164         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
14165         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
14166         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
14167         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
14168         src/z80/Makefile.bcc: Borland Makefile cleanup
14169         * as/z80/Makefile.bcc: Added Borland Makefile
14170         * support/cpp2/borland.h: Removed
14171
14172 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
14173
14174         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
14175         * src/SDCC.lex: new pragma NOIV
14176         * src/SDCCglobl.h: new pragma NOIV
14177         * src/SDCCmem.c: new pragma NOIV
14178
14179 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
14180
14181         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
14182
14183 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
14184
14185         * src/SDCCmain.c: signal handling is switched off by --debug
14186         * doc/Makefile: small fix for install; use clean.mk again
14187         * doc/clean.mk: clean *.pdf and *.html too
14188
14189 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
14190
14191         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
14192         * device/lib/printfl.c: fix a ds390 bug by making it portable
14193         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
14194         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
14195         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
14196         * debugger/mcs51/cmd.c: converted multi-line string literals
14197         * sim/ucsim/globals.cc: converted multi-line string literals
14198         * src/SDCCmain.c: introduced signal handler to remove temp files
14199         * doc/Makefile: small tweaks, implement clean
14200         * doc: removed generated files
14201
14202 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14203
14204         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
14205         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
14206         Address Record is not correctly generated for DS390."
14207
14208 2003-02-02  Borut Razem <borut.razem AT siol.net>
14209
14210         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
14211         * as/mcs51/asm.h: fixed compilation with Borland C
14212         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
14213         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
14214         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
14215         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
14216         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
14217         src/z80/Makefile.bcc: delete $(LIB) only if exist
14218         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
14219
14220 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
14221
14222         * device/include/malloc.h: introduced NULL
14223         * device/include/string.h: introduced NULL
14224         * device/include/stdlib.h: introduced NULL
14225         * device/lib/_memcpy.c: removed NULL
14226         * device/lib/_strcat.c: removed NULL
14227         * device/lib/_strchr.c: removed NULL
14228         * device/lib/_strcmp.c: removed NULL
14229         * device/lib/_strcpy.c: removed NULL
14230         * device/lib/_strcspn.c: removed NULL
14231         * device/lib/_strlen.c: removed NULL
14232         * device/lib/_strncat.c: removed NULL
14233         * device/lib/_strncmp.c: removed NULL
14234         * device/lib/_strncpy.c: removed NULL
14235         * device/lib/_strpbrk.c: removed NULL
14236         * device/lib/_strrchr.c: removed NULL
14237         * device/lib/_strspn.c: removed NULL
14238         * device/lib/_strstr.c: removed NULL
14239         * device/lib/_strtok.c: removed NULL
14240         * device/lib/malloc.c: removed NULL, include own header
14241
14242 2003-02-02    <johan AT balder>
14243
14244         * 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
14245         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
14246         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
14247         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
14248         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
14249         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
14250
14251 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14252
14253         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
14254         area 'DATA'"
14255
14256 2003-02-01    <johan AT balder>
14257
14258         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
14259
14260 2003-01-31    <johan AT CP255758-A>
14261
14262         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
14263
14264 2003-01-30    <johan AT balder>
14265
14266         * src/SDCCBBlock.c: automatic bug detection
14267         * src/SDCCicode.c: automatic bug detection
14268
14269 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14270
14271         * src/SDCCglobl.h:   now --xram-size 0 works
14272         * src/SDCCmain.c:    now --xram-size 0 works
14273
14274 2003-01-29    <johan AT balder>
14275
14276         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
14277
14278 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14279
14280         * as/mcs51/aslink.h: Added options --xram-size and --code-size
14281         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
14282         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
14283         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
14284         * src/SDCCglobl.h:   Added options --xram-size and --code-size
14285         * src/SDCCmain.c:    Added options --xram-size and --code-size
14286
14287 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
14288
14289         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
14290         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
14291
14292 2003-01-27    <johan AT balder>
14293
14294         * src/SDCC.y: fixed bug #613764
14295
14296 2003-01-26    <johan AT balder>
14297
14298         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
14299         * src/SDCCsymt.h: fixed bug #673374
14300         * src/SDCCglue.c: fixed bug #661910
14301         * src/SDCCast.c: fixed bug #458099 and 673374
14302
14303 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
14304
14305         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
14306         * as/mcs51/strcmpi.h: added
14307         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
14308         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
14309         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
14310         * as/mcs51/assym.c: strcmpi -> as_strcmpi
14311         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
14312         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
14313         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
14314         * as/mcs51/Makefile.aslink: new module strcmpi
14315         * as/mcs51/Makefile.asx8051: new module strcmpi
14316         * as/mcs51/Makefil.bcc: new module strcmpi
14317         * as/mcs51/Makefile.in: new module strcmpi
14318         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
14319
14320 2003-01-26    <johan AT balder>
14321
14322         * src/SDCCglue.c: reverted back to 1.124
14323         * src/SDCCast.c: reverted back to 1.156
14324         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
14325
14326 2003-01-25    <johan AT balder>
14327
14328         * src/SDCCglue.c: A better fix for bug #661910
14329         * src/SDCCast.c: A better fix for bug #661910
14330         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
14331
14332 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
14333
14334         * src/Makefile.in: remove spawn.o
14335         * src/SDCCmain.c: remove spawn.h
14336         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
14337         * src/spawn.c: removed
14338         * src/spawn.h: removed
14339         * support/regression/ports/ds390/spec.mk: link with -r
14340
14341 2003-01-24    <johan AT CP255758-A>
14342
14343         * src/ds390/gen.c (aopOp): fixed bug #667458
14344         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
14345         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
14346         (createIvalCharPtr): an ival doesn't always have a storage class anymore
14347
14348 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
14349
14350         * src/mcs51/peeph.def: better assembler identation by Frieder
14351         * src/mcs51/gen.c: better assembler identation by Frieder
14352
14353 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
14354
14355         * as/z80/string.h: removed for gcc 3.2
14356         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
14357         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
14358
14359 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
14360
14361         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
14362         * src/SDCCpeeph.c (replaceRule): fix bug #663503
14363         * support/regression/Makefile: separate temp files for ports
14364         * support/regression/generate-cases.py: separate temp files for ports
14365         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
14366         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
14367
14368 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
14369
14370         * moved tinitalk to device/examples/ds390
14371
14372 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
14373
14374         * as/mcs51/lkmem.c: rflag is for DS390
14375         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
14376         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
14377                          (linkEdit): move mem- and map-files the same way as ihx-files
14378         * src/z80/main.c (_setDefaultOptions): removed --generic
14379         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
14380         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
14381         * src/pic/glue.c (picglue): --c1mode works again
14382         * src/pic16/glue.c (pic16glue): --c1mode works again
14383         * src/asm.c (printCLine): fix #660034
14384
14385 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
14386
14387         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
14388         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
14389         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
14390         * as/mcs51/lkmem (summary): better fix for sp problem
14391         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
14392         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
14393         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
14394                                               remove --stack-after-data
14395
14396 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
14397
14398         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
14399         * src/SDCCutil.c (join): ugly bug: missing '\0'
14400         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
14401
14402 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
14403
14404         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
14405         * src/port.h: typo
14406         * src/pic/main.c (_asmCmd): gpasm supports -o
14407         * src/z80/main.c: more general macros
14408         * device/lib/Makefile.in: remove intermediate files
14409
14410 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
14411
14412         * .version: Bumped version number to 2.3.3
14413         * src/SDCCBBlock.c: new option -o
14414         * src/SDCCglobl.h: new option -o
14415         * src/SDCCglue.c: new option -o
14416         * src/SDCCmain.c: new option -o
14417         * src/asm.c: new option -o
14418         * src/ds390/main.c: new option -o
14419         * src/pic/glue.c: new option -o
14420         * src/pic/pcode.c: new option -o
14421         * src/pic/ralloc.c: new option -o
14422         * src/pic16/glue.c: new option -o
14423         * src/pic16/pcode.c: new option -o
14424         * src/pic16/ralloc.c: new option -o
14425         * src/z80/main.c: new option -o
14426         * device/lib/Makefile.in: use -o
14427         * support/regression/ports/ds390/spec.mk: use -o
14428         * support/regression/ports/gbz80/spec.mk: use -o
14429         * support/regression/ports/mcs51/spec.mk: use -o
14430         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
14431         * support/regression/ports/z80/spec.mk: use -o
14432         * support/regression/ports/ucz80/spec.mk: use -o
14433         * support/regression/ports/xa51/spec.mk: use -o
14434         * support/regression/fwk/lib/timeout.c: fix usage string
14435
14436 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
14437         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
14438
14439 2003-01-07    <johan AT balder>
14440
14441         * src/SDCCast.c (decorateType): fixed bug #600035
14442
14443 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
14444         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
14445         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
14446         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
14447         * src/pic/pcode.c: outcommented unused variable to remove warnings
14448         * src/pic/ralloc.c: outcommented unused variable to remove warnings
14449
14450 2003-01-06    <karl AT turbobit.com>
14451         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
14452    regression tests.
14453
14454 2003-01-06    <johan AT balder>
14455
14456         * src/SDCCicode.c: fixed array add
14457
14458 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
14459         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
14460         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
14461
14462 2003-01-04    <johan AT balder>
14463
14464         * src/SDCCval.c (getNelements): fixed the initialized array of structures
14465
14466 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14467         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
14468
14469 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
14470         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
14471         * support/regression/tests/bug-524697.c: fit mem usage into 8032
14472
14473 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
14474         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
14475
14476 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
14477         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
14478
14479 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
14480         * src/mcs51/main.c: removed {bindir}{sep} from aslink
14481
14482 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14483
14484     * in /sdcc/as/mcs51/ changed these files in order to create an
14485     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
14486     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
14487     following files to include the previous two files: aslink.dsp,
14488     Makefile.aslink, Makefile.bcc, and Makefile.in.
14489
14490     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
14491     .adb instead of .cdb
14492
14493 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14494
14495         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
14496         value from option --iram-size.
14497
14498 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14499
14500         * /sdcc/as/mcs51/lklist.c: added boundary check before using
14501         dram[] array.
14502
14503 2002-09-18    <wiml AT hhhh.org>
14504
14505         * SDCClrange.h: exposed setFromRange() and setToRange()
14506         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
14507           packRegsForAccUse() (bug 542397)
14508         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
14509           multiple times and emitting the fetch operations more than once
14510           added aopGetUsesAcc() function to allow binary operators to
14511           fetch their operands in the correct order; made genMinus() emit
14512           compact code for X = LITERAL - Y
14513
14514 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14515         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
14516         sprintf() in line 1267.
14517
14518 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14519         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
14520         like ports.
14521
14522 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14523         Changes to aslink (All the changes are marked with 'JCF'):
14524
14525         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
14526         summary().
14527
14528         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
14529         area BSEG.  Also moves, if possible, the DATA area down into the internal
14530         ram so more space is available.
14531
14532         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
14533         sflag.
14534
14535         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
14536         not bytes.  Function summary() which creates a memory usage summary
14537         file with extension .mem.  Reports of overlaping stack and small stack
14538         size.  If the space for the stack is less than 16 bytes aslink trows a
14539         warning.
14540
14541         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
14542         the 8051.  Option 'y' for memory summary output file.
14543
14544         Changes to sdcc (All the changes are marked with 'JCF'):
14545
14546         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
14547
14548         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
14549         overlaying area for it (uses RegBankUsed[4]).
14550
14551         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
14552         bank zero as used by default.  By default aslink locates the stack
14553         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
14554         the creation of the .mem file.  Delegates the allocation of data area
14555         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
14556         the begining of the stack area to aslink.
14557
14558         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
14559         glue() in SDCCglue.c creates an area for it.
14560
14561 2002-09-03  Borut Razem <borut.razem AT siol.net>
14562         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
14563         sdcc/src/pic/glue.c:
14564         introduced atexit() handler for teporay files removal in case of
14565         errors, assertions, ...
14566
14567 2002-08-29  Borut Razem <borut.razem AT siol.net>
14568         * sdcc/support/cpp2/auto-host_vc_in.h:
14569         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
14570         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
14571         Maybe there is a similar problem with BORLANDC? It should be checked!
14572
14573         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
14574         corrected improper use of assert: the assignment to clr variable was done inside the assert.
14575         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
14576         was not executed, and the compiler (cl) launched a warning:
14577         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
14578
14579 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
14580         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
14581
14582 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
14583         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
14584
14585         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
14586           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
14587           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
14588           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
14589           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
14590           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
14591           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
14592         - added Release configuration in VS projects
14593         - review of compiler an linker options
14594         - VC .exe files are generated in bin_vc directory, not to interfere
14595           with binaries generated from other projects (cygwin, mingw, bcc ...)
14596
14597         * sdcc/src/yacc.dsp: added
14598
14599         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
14600         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
14601         and insert the version number definitions from .version
14602
14603         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
14604
14605         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
14606         added - genarate auto-host.h using auto-host_vc_in.h as template
14607
14608         * sdcc/sdcc_vc.h,
14609         removed from CVS, generated automatically
14610
14611 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
14612         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
14613
14614 2002-08-11  Borut Razem <borut.razem AT siol.net>
14615         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
14616
14617 2002-08-10  Borut Razem <borut.razem AT siol.net>
14618         * src/SDCCmain.c (main):
14619         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
14620         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
14621         The consequence was that some temporary files were not removed.
14622
14623         * src/SDCCglue.c:
14624         unification of code in functions tempfilename() and tempfile():
14625         function tempnam() is defined in Visual Studio 6.0 and .NET
14626
14627         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
14628
14629         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
14630           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
14631         - removed compiler command line option /WX: Treats all warnings as errors
14632         - update a list of source files, included into the project
14633
14634         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
14635           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
14636         changed project type to Generic Project so that can be correcly converted to VS.NET project
14637
14638         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
14639
14640         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
14641
14642         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
14643
14644         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
14645         added return 0 statements after assert() to make compiler happy
14646
14647         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
14648         added newline in the def file to keep MSC compiler satisfied
14649
14650         * sdcc/src/z80/gen.c:
14651         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
14652           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
14653         - solved MSC error in function aopDump()
14654
14655         * sdcc_vc.h: define PREFIX as "\\sdcc"
14656
14657 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
14658         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
14659
14660 2002-06-22  Scott Dattalo <scott AT dattalo.com>
14661         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
14662         - Rewrote the register banking algorithm.
14663         - Added pCode live-range analysis to registers (for now, only non-used and
14664         singly-used registers optimized away)
14665
14666         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
14667
14668         * 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.
14669
14670 2002-05-10  Scott Dattalo <scott AT dattalo.com>
14671         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
14672
14673 2002-04-22  Michael Hope  <michaelh AT vroom>
14674
14675         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
14676
14677         * configure.in (DD_COPT): Added include support required for gbdk.
14678
14679         * .version: Bumped version number just to increase it.
14680
14681         * src/SDCCmain.c: Added -nostdinc to the default options.
14682
14683 2002-04-15  Michael Hope  <michaelh AT vroom>
14684
14685         * device/lib/z80/printf.c (sprintf): Added.
14686
14687         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
14688
14689         * src/z80/peeph.def: Added transpose redundent load rule.
14690
14691         * src/z80/main.c: Added force callee saves for jaune.
14692
14693         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
14694
14695         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
14696
14697 2002-03-28  Johan Knol  <johan AT balder>
14698
14699         * src/SDCCval.c: fixed bug #532436
14700
14701 2002-03-14  Scott Dattalo <scott AT dattalo.com>
14702         * /src/port.h:
14703         Added "char *Processor" field to the port structure.
14704
14705         * /src/SDCCmain.c:
14706         Added -p option. Allows port dependent processor to be specified.
14707
14708         * all ports:
14709         Initialized the new field char *Processor field to NULL in all ports
14710
14711         * /src/pic/*:
14712         Compiler generated registers for interrupt context saving
14713         were not getting allocated.
14714
14715 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
14716
14717         * /src/SDCCast.c:
14718         Fixed left shift. Will promote the left side of a left shift
14719         if a) left shifting more than size of operand or b) when assigned
14720         to something size > size of left side
14721
14722 2002-03-14  Scott Dattalo <scott AT dattalo.com>
14723         * src/pic/*
14724         tons of changes. Register allocation has been
14725         rewritten. Added customization for the various PICs. Flow
14726         analysis is restructured. ...
14727
14728         * src/pic/device.h:
14729         Added
14730
14731         * src/pic/device.c:
14732         Added. device.c is a PIC port hack to accomodate variations
14733         in PIC devices.
14734
14735 2002-03-13  Michael Hope  <michaelh AT vroom>
14736
14737         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
14738
14739 2002-03-04  johanknol  <johanknol AT manik>
14740
14741         * /src/SDCCval.c: fixed
14742
14743         const unsigned char arr[][2] = { { 0, 1 } };
14744         t18.c:1: error: Initializer element is not constant
14745
14746 2002-03-04  bela  <bela AT manik>
14747
14748         * /device/include/mcs51reg.h:
14749         ds89c420 register definition update
14750
14751 2002-03-03    <johan AT FRIJA>
14752
14753         * support/Util/SDCCerr.c: did something, but don't no why anymore
14754
14755         * support/regression/tests/bug-524691.c: made it a little less shy
14756
14757         * src/SDCCast.c (decorateType): fixed bug #524697
14758
14759         * src/SDCCast.c: made some lineno improvements
14760
14761         * src/SDCCval.c (getNelements): changed warning to error
14762
14763         * src/SDCCglue.c (printIvalArray): changed warning to error
14764
14765         * src/SDCCicode.c: fixed a warning for mingw
14766
14767         * src/SDCCast.c (decorateType): fixed the << promotion for ops
14768
14769         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
14770
14771 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
14772
14773         * src/ds390/peeph.def:
14774         Added some more peephole rules
14775
14776         * src/ds390/gen.c: Various fixes & enhancements
14777
14778         * src/SDCClrange.c, src/SDCClrange.h:
14779         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
14780
14781         * src/ds390/ralloc.c:
14782         various fixes & enhancements (ds390) specific
14783
14784         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
14785         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
14786         from rallocs.
14787
14788         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
14789
14790 2002-03-02    <johan AT FRIJA>
14791
14792         * src/SDCCast.c (decorateType): fixed bug #524708
14793
14794         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
14795
14796         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
14797
14798 2002-03-01  Michael Hope  <michaelh AT vroom>
14799
14800         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
14801
14802         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
14803
14804 2002-03-01    <johan AT FRIJA>
14805
14806         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
14807
14808         * src/SDCCast.c (decorateType): fixed bug #524209
14809
14810         * src/SDCCval.c (valNot): fixed bug #524195
14811
14812 2002-02-26    <johan AT balder>
14813
14814         * src/xa51/gen.c: fixed a warning
14815
14816         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
14817
14818         * src/SDCCast.c (decorateType): fixed bug #522534
14819
14820 2002-02-23    <johan AT balder>
14821
14822         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
14823
14824 2002-02-22    <johan AT balder>
14825
14826         * src/SDCCast.c: fixed bug #514865
14827
14828         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
14829
14830 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
14831
14832         * sdcc/src/SDCCloop.c:
14833         Previous fix was not good. basic blocks that have "break" or "return" are
14834         not really partof a loop , but live ranges used in these blocks should
14835         be live thru the entire loop, so set partOfLoop but don't add them to
14836         loop region
14837
14838 2002-02-21    <johan AT FRIJA>
14839
14840         * src/SDCCcse.c: fixed bug #514308
14841
14842 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
14843
14844         * src/SDCCloop.c:
14845         Fixed BUG #519583. If a conditional block ended in a return/break
14846         statement inside a loop, it was not being considered part of the loop.
14847
14848         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
14849
14850 2002-02-10  Karl Bongers <karl AT turbobit.com>
14851
14852         * debugger/*:
14853         Fixed up SDCDB debugger somewhat.  Updated debugger/README
14854         with lots of comments and notes.
14855
14856         * device/examples/test2.c:
14857         Fix bug, "red" variable not being initialized(compiler complained).
14858
14859         * device/examples/Makefile, examples/test3.c:
14860         Add Makefile in device/examples folder, compiles test3.c
14861         for use as a multiple module SDCDB test case.
14862
14863         * sim/ucsim/cmd.src/cmdset.cc:
14864         Took out debug printfs in ucsim "next" command.
14865
14866         * sim/ucsim/xa.src:
14867         Karl and Johan start ucsim XA support.  Most dissassembly working,
14868         about 75% emulation done(plenty of work remaining).
14869
14870         * sim/ucsim/z80.src:
14871         Add Z80 support to ucsim, add test-ucz80 regression test,
14872         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
14873         Notice z80 compiler fails on examples/test3.c/crc code.
14874
14875 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
14876
14877         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
14878         Added support for --parms-in-bank1
14879
14880         * src/ds390/peeph.def:
14881         added a few more peephole optimzations
14882
14883         * src/ds390/main.c:
14884         1) added __builtin_inp & __builtin_outp used to read in data of given length
14885            from a memory mapped port
14886         2) added __builtin_memcmp
14887         3) added __builtin_swapw swap bytes of a short
14888
14889         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
14890         1) handle multiple send & receives from register bank1
14891         2) ralloc can now allocate DPTR1 to some liveRanges
14892
14893         * src/SDCCsymt.c, src/SDCCsymt.h:
14894         changes to handle multiple sends & receives
14895
14896         * src/SDCCptropt.h:
14897         added some pointer arithmetic optimization
14898
14899         * src/SDCCptropt.c:
14900         added some pointer arithmetic optimizations but not stable yet so not
14901         called from anywhere (will get this working shortly)
14902
14903         * src/SDCCopt.c: fixed for multiple sends & receives
14904
14905         * src/SDCCmain.c:
14906         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
14907         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
14908            set preprocessor defines (depending on options)
14909
14910         * src/SDCCicode.c, src/SDCCicode.h:
14911         changes made to handle multiple sends & receives
14912
14913         * src/SDCCglobl.h:
14914         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
14915
14916         * src/SDCCcse.c, src/SDCCcse.h:
14917         added function findbackward def (to be used in upcoming optimization)
14918
14919         * src/SDCCcflow.c, src/SDCCcflow.h:
14920         added function returnAtEnd - to determine if a basic block terminates with
14921         a RETURN iCode
14922
14923         * src/SDCCast.c, src/SDCCast.h:
14924         added option parms-in-bank1
14925
14926         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
14927         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
14928         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
14929         adjusted for --parms-in-bank1 option
14930
14931         * device/include/string.h:
14932         donot redefine "reentrant" keyword
14933
14934         * device/include/ds80c390.h: Added some more SFRs
14935
14936 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
14937
14938         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
14939
14940 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
14941
14942         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
14943
14944 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
14945
14946         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
14947
14948 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
14949
14950         * Added --xram-movc option
14951
14952 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
14953
14954         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
14955
14956 2002-01-11  Johan Knol
14957
14958         * Added math lib of Jesus Calvino-Fraga
14959
14960 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
14961
14962         * src/SDCCmain.c (processFile): fix processing of ../../src.c
14963         * support/regression/Makefile: new target test-mcs51-stack-auto
14964         * support/regression/ports/mcs51-stack-auto/spec.mk: added
14965
14966 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
14967
14968         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
14969
14970 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
14971
14972         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
14973
14974 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
14975
14976         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
14977
14978         * src/SDCCglue.h: add definition for printIvalChar()
14979
14980 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
14981
14982         * src/SDCCast.c: fix #498138 by Johan
14983
14984         * src/SDCCglue.c: fix #498138 by Johan
14985
14986 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
14987
14988         * support/regression/Makefile: fix clean
14989
14990         * support/regression/ports/ds390/support.c: fix transmission of last character
14991
14992 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
14993
14994         * /sdcc/src/ds390/gen.c:
14995         a) improved computing address of stack variable
14996         b) took out some #if 0 code
14997         c) improved parmBytes adjustment
14998         d) improved genPlusIncr & genMinusIncr
14999         e) genCmp could generate bad code (when left assigned to DPTR)
15000         f) Fixed bug in hasInc
15001
15002         * /sdcc/src/ds390/ralloc.c:
15003         a) packRegsForSupport could mess up live information (Fixed)
15004         b) packRegsDPTRuse could be incorrect for left & right shift
15005
15006         * /sdcc/src/mcs51/ralloc.c:
15007         packRegsForSupport could mess up the live information (Fixed)
15008
15009         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
15010
15011         * /sdcc/src/SDCCast.c:
15012         can reverse a loop even if function call is present as long
15013         as the loop control variable is local & is not passed as parameter
15014
15015 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15016
15017         * /sdcc/ChangeLog: *** empty log message ***
15018
15019         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
15020         More builtin function additions for TININative
15021
15022         * /sdcc/src/ds390/ralloc.c:
15023         Had broken the regression testsuite
15024
15025         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
15026
15027         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
15028         Added funcattr hasStackParms will be set for reentrant functions when there
15029         are paramteres on the stack, this helps in minimizing frame pointer generation
15030         typeFromStr can handle function pointers now
15031
15032         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
15033         *** empty log message ***
15034
15035 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15036
15037         * /src/ds390/gen.c, /src/ds390/main.c:
15038         More builtin function additions for TININative
15039
15040         * /src/ds390/ralloc.c:
15041         Had broken the regression testsuite
15042
15043         * /src/SDCCast.c: Fixed a bug in dumptree
15044
15045         * /src/SDCCsymt.c, /src/SDCCsymt.h:
15046         Added funcattr hasStackParms will be set for reentrant functions when there
15047         are paramteres on the stack, this helps in minimizing frame pointer generation
15048         typeFromStr can handle function pointers now
15049
15050         * /doc/builtins.txt, /doc/TININative.txt:
15051         *** empty log message ***
15052
15053
15054 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15055
15056         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
15057         ALPHA version for -mTININative
15058
15059         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
15060         updated to reflect changes in the port structure
15061
15062         * /src/port.h:
15063         added function do_assemble (similar to do_link) if non-null this function
15064         will be called to do assembly (-mTININative) requires a multi command
15065         assembly
15066         added function genAssemblerEnd will be called to generate assembler Epilogue
15067
15068         * /src/SDCCsymt.c:
15069         added _JavaNative to debug info printing
15070
15071         * /src/SDCCmain.c: added option --tini-libid
15072         added port->do_assemble function (-mTININative) has a multi command assemble
15073
15074         * /src/SDCCglue.c: Disabled "constExpr" check
15075         added port->genAssemblerEnd function
15076
15077         * /src/SDCCglobl.h: Added option --tini-libid value
15078
15079         * /src/SDCCast.h:
15080         tookout optimizeCompare from the header (has no external references)
15081
15082         * /src/SDCCast.c: made one more function "static"
15083
15084 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
15085
15086         * src/z80/mappings.i: Added z80asm support.
15087
15088         * src/z80/main.c: Added z80asm support on --asm=z80asm
15089
15090         * src/z80/gen.c: Fixed asm portability issues.
15091
15092         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
15093
15094         * src/SDCCglue.c (printExterns): Added global/extern split.
15095
15096 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
15097
15098         * support/regression/Makefile: added test for mcs51 model large
15099
15100         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
15101
15102         * support/regression/ports/gbz80/spec.mk: added -mgbz80
15103
15104 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
15105
15106         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
15107
15108 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
15109
15110         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
15111
15112         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
15113
15114 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
15115
15116         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
15117
15118         * support/regression/tests/simplefloat.c: Port to mcs51.
15119
15120 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
15121         * support/regression/tests/bug-485362.c: Added.
15122
15123         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
15124
15125         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
15126
15127         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
15128
15129         * src/z80/gen.c (aopDump): Added a dump function.
15130
15131 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
15132         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
15133
15134         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
15135
15136         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
15137
15138         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
15139
15140         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
15141
15142         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
15143
15144         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
15145
15146         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
15147
15148         * support/regression/ports/ds390/support.c: Use tinibios.
15149
15150         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
15151
15152 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
15153
15154         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
15155         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
15156
15157         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
15158
15159         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
15160
15161 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
15162
15163         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
15164
15165         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
15166         (packRegsForIYUse): Created and optimised.
15167
15168 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
15169
15170         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
15171 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
15172
15173         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
15174
15175         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
15176
15177         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
15178
15179 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15180
15181         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
15182
15183         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
15184
15185 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15186
15187         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
15188
15189         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
15190
15191         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
15192
15193 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
15194
15195         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
15196         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
15197         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
15198
15199         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
15200
15201         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
15202         (genNotFloat): Added.
15203         (genUminusFloat): Added.
15204
15205         * device/lib/z80/Makefile: Added floating pt stubs.
15206
15207         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
15208
15209         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
15210
15211         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
15212
15213 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15214
15215         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
15216
15217         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
15218
15219         * sdcc/support/regression/Makefile: Add port ds390.
15220
15221         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
15222
15223         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
15224
15225         * sdcc/support/regression/ports/ds390/spec.mk: Added.
15226
15227         * sdcc/support/regression/ports/ds390/support.c: Added.
15228
15229         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
15230
15231         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
15232
15233         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
15234
15235 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
15236
15237         * device/include/malloc.h: Added z80 and gbz80 support.
15238
15239         * device/lib/gbz80/heap.s: Added.
15240
15241         * device/lib/z80/heap.s: Added.
15242
15243         * device/lib/malloc.c: Added z80 and gbz80 support.
15244
15245         * support/regression/tests/malloc.c (testMalloc): Added.
15246
15247         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
15248
15249         * support/regression/tests/bug-478094.c: Added.
15250
15251         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
15252
15253 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
15254
15255         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
15256
15257         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
15258
15259         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
15260
15261         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
15262
15263         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
15264
15265 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
15266
15267         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
15268
15269 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
15270
15271         * support/regression/tests/bug-477927.c: Added.
15272
15273         * src/z80/peeph.def: Added minor rules.
15274
15275         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
15276
15277         * src/z80/peeph.def: Added jump optimisation modification.
15278
15279 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
15280
15281         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
15282
15283 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
15284
15285         * support/regression/tests/funptrs.c: Added.
15286
15287 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
15288
15289         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
15290
15291 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
15292
15293         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
15294
15295         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
15296
15297         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
15298         (movLeft2ResultLong): Created.
15299
15300         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
15301         (joinPushes): Added.  Joins two char pushes into a word push.
15302
15303 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
15304
15305         * support/cpp2/Makefile.in (install): Added creation of dest dir.
15306
15307         * support/makebin/Makefile (install): Added creation of dest dir.
15308
15309 2001-10-24 Karl Bongers <karl AT turbobit.com>
15310
15311         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
15312
15313 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
15314
15315         * src/z80/ralloc.c: Turned off faulty pack for one use.
15316
15317         * src/z80/peeph-gbz80.def: Removed redundent restart options.
15318
15319         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
15320
15321 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
15322
15323         * support/regression/Makefile: Improved clean
15324
15325         * support/regression/ports/gbz80/spec.mk: Added clean
15326
15327         * support/regression/ports/host/spec.mk: Added clean
15328
15329         * support/regression/ports/z80/spec.mk: Added clean
15330
15331         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
15332
15333         * support/regression/ports/mcs51/timeout.c: little improvements
15334
15335 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
15336
15337         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
15338
15339         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
15340
15341         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
15342
15343 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
15344
15345         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
15346
15347         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
15348
15349 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
15350         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
15351
15352         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
15353
15354         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
15355
15356         * src/mcs51/main.c (_linkCmd): Added bin path to command.
15357
15358         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
15359
15360         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
15361
15362         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
15363
15364         * support/regression/tests/longor.c: Added.
15365
15366 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
15367
15368         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
15369
15370         * as/mcs51/aslink.h: define PATH_MAX
15371
15372         * as/mcs51/asm.h: define PATH_MAX
15373
15374         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
15375
15376         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
15377
15378         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
15379
15380         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
15381
15382         * src/SDCCglobl.h: define PATH_MAX
15383
15384         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
15385
15386         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
15387
15388 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
15389
15390         * src/z80/gen.c (gencjneshort): Fixed
15391
15392         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
15393
15394 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
15395
15396         * support/regression/tests/bug-469671.c: Added.
15397
15398         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
15399
15400 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
15401
15402         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
15403
15404         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
15405
15406 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
15407
15408         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
15409
15410         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
15411
15412         * src/device/lib/_mullong.c : removed hint: nooverlay bug
15413
15414         * src/device/lib/_divuint.c : removed hint: nooverlay bug
15415
15416         * src/device/lib/_divulong.c: removed hint: nooverlay bug
15417
15418         * src/device/lib/_moduint.c : removed hint: nooverlay bug
15419
15420         * src/device/lib/_modulong.c: removed hint: nooverlay bug
15421
15422 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
15423
15424         * 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.
15425
15426         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
15427
15428         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
15429
15430 2001-10-07    <johan AT FRIJA>
15431
15432         * device/lib/gets.c (gets): fixed the return value.
15433
15434 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
15435         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
15436
15437         * 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.
15438
15439         * 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.
15440
15441         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
15442
15443         * src/pic/gen.c: Removed Safe_strdup.
15444
15445         * configure.in: Added option to enable libgc support.
15446
15447         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
15448         (bitVectUnion): Optimised.
15449         (bitVectIntersect): Optimised.
15450         (bitVectBitsInCommon): Optimised.
15451         (bitVectCplAnd): Optimised.
15452
15453         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
15454
15455 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
15456
15457         * src/SDCCmain.c: distinguish between assembler debug and plain options
15458
15459         * src/avr/main.c:   remove standard assembler options
15460
15461         * src/ds390/main.c: remove standard assembler options
15462
15463         * src/mcs51/main.c: remove standard assembler options
15464
15465         * src/port.h: removed "PENDING" comment
15466
15467 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
15468
15469         * src/device/lib/_mulint.c  : new, with assember functions
15470
15471         * src/device/lib/_mullong.c : new, with assember functions
15472
15473         * src/device/lib/_divuint.c : with assember functions
15474
15475         * src/device/lib/_divsint.c : with assember functions
15476
15477         * src/device/lib/_divulong.c: with assember functions
15478
15479         * src/device/lib/_divslong.c: with assember functions
15480
15481         * src/device/lib/_moduint.c : with assember functions
15482
15483         * src/device/lib/_modsint.c : with assember functions
15484
15485         * src/device/lib/_modulong.c: with assember functions
15486
15487         * src/device/lib/_modslong.c: with assember functions
15488
15489         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
15490
15491         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
15492
15493         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
15494                                       replaced _mululong.c and _mulslong.c by _mullong.c
15495
15496 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
15497
15498         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
15499
15500 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
15501
15502         * src/SDCCglue.c: test, if win32api is available for MINGW
15503
15504 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
15505
15506         * src/SDCCsymt.c: no more _modifier in printTypeChain()
15507         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
15508         * support/regression/ports/gbz80/spec.mk: removed GENERIC
15509         * support/regression/ports/host/spec.mk: removed GENERIC
15510         * support/regression/ports/mcs51/spec.mk: removed GENERIC
15511         * support/regression/ports/z80/spec.mk: removed GENERIC
15512
15513 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
15514
15515         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
15516
15517         * support/regression/tests/bug-467035.c: Created.
15518
15519 2001-10-01    <johan AT FRIJA>
15520
15521         * src/SDCC.y: fixed bug #466586 part 1
15522
15523 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
15524
15525         * SDCCicode.c: z80 has no generic pointers
15526         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
15527
15528 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
15529
15530         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
15531
15532 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
15533
15534         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
15535
15536         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
15537
15538 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
15539
15540         * configure.in: Fixed up so that ucsim is only configured once.
15541
15542         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
15543
15544         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
15545         (getPathDifference): As above.
15546
15547         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
15548
15549         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
15550
15551 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
15552         * .version: Updated to 2.3.1
15553
15554         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
15555         Added copyright header.
15556
15557         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
15558         (assemble): Added support for macro based assembler commands.
15559         (linkEdit): Added support for macro based linker commands.
15560         (preProcess): Changed the pre-processor to use macros.
15561         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
15562         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
15563
15564         * device/lib/z80/crt0.s: Added module name for debugging.
15565
15566 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
15567
15568         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
15569
15570         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
15571
15572         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
15573
15574         * src/Makefile.in: Added SDCCmacro and SDCCutil
15575
15576 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
15577
15578         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
15579
15580 2001-09-16    <johan AT FRIJA>
15581
15582         * 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.
15583
15584 2001-09-15    <johan AT FRIJA>
15585
15586         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
15587         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
15588
15589 2001-09-11    <johan AT FRIJA>
15590
15591         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
15592
15593 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
15594
15595         * support/regression/tests/bug-460444.c: Added test case.
15596
15597         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
15598         (genCast): Added justification for all of the asserts.
15599
15600 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
15601
15602         * support/regression/support.c: _xdata replaced by xdata
15603
15604         * support/regression/spec.mk: removed _generic
15605
15606 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
15607
15608         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
15609
15610         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
15611         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
15612
15613         * src/z80/peeph.def: Added a rule to optimise shift then compare.
15614
15615         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
15616
15617         * support/regression/tests/bug-460010.c: Added test case.
15618
15619         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
15620
15621 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
15622
15623         * support/regression/Makefile: inter-port-clean adjusted for mcs51
15624
15625         * support/regression/testfwk.c: removed workaround for bug #436344
15626
15627         * support/regression/tests/bp.c: use less memory with mcs51
15628
15629         * support/regression/tests/bug-441448.c: use less memory
15630
15631         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
15632
15633         * support/regression/collate-results.py: typo
15634
15635 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
15636
15637         * support/regression/tests/fetchoverlap.c: Added new test case.
15638
15639         * support/regression/tests/bp.c: Added new test case.
15640
15641         * support/regression/tests/bug-448984.c: Added new test case.
15642
15643         * support/regression/tests/pow2shifts.c: Added new test case.
15644
15645         * src/z80/gen.c: Turned off the noise it normally generates for the release.
15646         (genlshTwo): Fixed right shift for count > 8.
15647
15648         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
15649
15650 2001-09-08    <johan AT FRIJA>
15651
15652         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
15653
15654 2001-09-07    <johan AT FRIJA>
15655
15656         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
15657
15658         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
15659
15660 2001-09-06    <johan AT FRIJA>
15661
15662         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
15663         * bernhard noted me at this: "() equals to (void)" (1.38)
15664
15665 2001-09-05    <johan AT FRIJA>
15666
15667         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
15668
15669 2001-09-04    <johan AT FRIJA>
15670
15671         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
15672
15673
15674 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
15675
15676         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
15677
15678 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
15679
15680         * link/z80/aslink.h: Fixed path for PATH_MAX
15681
15682 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
15683
15684         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
15685
15686         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
15687
15688         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
15689
15690         * 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.
15691
15692 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
15693
15694         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
15695         (genCmp): Fixed up genCmp for the GB with longs.
15696
15697         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
15698
15699         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
15700
15701         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
15702
15703         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
15704
15705 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
15706
15707         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
15708
15709 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
15710
15711         * 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.
15712
15713         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
15714
15715 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
15716
15717         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
15718
15719         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
15720
15721 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
15722
15723   * sim/ucsim/configure:    little improvement of Cygwin-detection
15724   * sim/ucsim/configure.in: little improvement of Cygwin-detection
15725   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
15726   * support/regression/tests/bug-221100.c: small changes for mcs51
15727   * support/regression/tests/bug-221168.c: small changes for mcs51
15728   * support/regression/tests/bug-227710.c: small changes for mcs51
15729   * support/regression/tests/staticinit.c: small changes for mcs51
15730   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
15731   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
15732   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
15733
15734 $Revision$