* src/SDCCast.c (expandInlineFuncs): fixed bug 1875869
[fw/sdcc] / ChangeLog
1 2008-02-24 Maarten Brock <sourceforge.brock AT dse.nl>
2
3         * src/SDCCast.c (expandInlineFuncs): fixed bug 1875869
4
5 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
6
7         * src/z80/gen.c (genMult): Rewrote 8-bit multiplication by constant,
8           implements #1898231
9
10 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
11
12         * device/lib/z80/mul.s: Rewrote __muluchar_rrx_s, to improve 8-bit mult.,
13           implements #1896290
14
15 2008-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
16
17         * src/SDCCast.c (createIvalStruct): fixed bug 1466761
18
19 2008-02-21 Borut Razem <borut.razem AT siol.net>
20
21         * support/regression/Makefile.in,
22           support/regression/ports/ds390/spec.mk,
23           support/regression/ports/hc08/spec.mk,
24           support/regression/ports/mcs51-common/spec.mk,
25           support/regression/ports/pic14/spec.mk,
26           support/regression/ports/pic16/spec.mk,
27           support/regression/ports/ucz80/spec.mk,
28           support/regression/ports/xa51/spec.mk:
29           added CFLAGS when compiling timeout
30
31 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
32
33         * support/regression/tests/bugs-1596270-1736867.c: Regression test for #1596270, #1736867
34
35 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
36
37         * src/SDCClrange.c (findPrevUse): fixed bug 1888147
38         * support/regression/tests/bug1888147.c: new, added
39
40 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
41
42         * src/z80/gen.c: fixed bugs #1596270, #1736867
43
44 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
45
46         * src/z80/gen.c: fixed bug in register pair loading when swapping register contents,
47           mostly fixes #1596270
48
49 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
50
51         * src/z80/peeph.def,
52         * src/z80/peeph-z80.def: moved peephole that breaks gbz80 to z80-specific peepholes,
53           fixes #1806565
54
55 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
56
57         * src/SDCCpeeph.c (operandBaseName): added check for @Ri
58         * src/mcs51/peeph.def (rule 177.c): added operandsNotRelated(%1 %3)
59           fixes bug 1739475, thanks Robert Larice
60           (rule 271): new, added
61
62 2008-02-18 Borut Razem <borut.razem AT siol.net>
63
64         * sim/ucsim/s51.src/Makefile.in: fixed error made in previous commit
65
66 2008-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
67
68         * src/SDCCmain.c (linkEdit): emit -z when using --debug for z80
69
70 2008-02-17 Raphael Neider <rneider AT web.de>
71
72         * src/pic16/genarith.c,
73         * src/pic16/gen.c,
74         * src/pic16/gen.h,
75         * src/pic16/genutils.c: removed unused legacy code,
76           removed unused fields from struct asmop and struct _G
77
78 2008-02-17 Raphael Neider <rneider AT web.de>
79
80         * src/pic16/gen.c (AccRsh): cosmetic changes,
81           (shiftR1Left2ResultSigned,shiftR1Left2Result,shiftL1Left2Result,
82           genRightShiftLiteral): fixed to work with SFRs as result by
83           assigning only once to result,
84           removed a lot of unused/excluded code fragments
85
86 2008-02-17 Raphael Neider <rneider AT web.de>
87
88         * device/include/pic/pic16f88.h,
89         * device/include/pic/pic16f886.h,
90         * device/include/pic/pic16f887.h: added TRISA6 and TRISA7
91
92 2008-02-17 Borut Razem <borut.razem AT siol.net>
93
94         * src/z80/peeph.def: applied patch
95           #1893626: Optimize tail calls on Z80, thanks to Philipp Krause
96         * src/z80/gen.c, src/z80/peeph.def: applied patch
97           #1893510: Improve logical left shift on Z80, thanks to Philipp Krause
98         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
99           sim/ucsim/s51.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
100           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
101           sim/ucsim/main_in.mk: renamed libutil.a to libucsimutil.a in order to
102           enable compilation on Mac OS X 10.5 (Leopard) and XCode v3.0
103
104 2008-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
105
106         * as/link/mcs51/aslink.dsp: removed SDK define
107         * as/link/z80/clean.mk: brought in sync with other ports
108         * as/link/z80/lklibr.c (SdccLib, fndsym): handle the dflag here too
109         * as/hc08/Makefile.bcc,
110         * as/mcs51/Makefile.bcc,
111         * as/z80/Makefile.bcc: noice.c was moved to as/asxxsrc/
112         * src/z80/main.c (_setValues): use the now capitalized -Z,
113           (z80_port, gbz80_port): generate debug information when asked
114
115 2008-02-16 Borut Razem <borut.razem AT siol.net>
116
117         * as/z80/asmain.c, as/z80/asm.h, as/z80/asdata.c,
118           as/link/z80/lkmain.c, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
119           as/z80/Makefile.in. as/z80/Makefile.bcc:
120           applied patch #1893393: patch for as-z80 and link-z80 to generate
121           cdb, thanks to Armin Diehl
122         * as/*/asnoice.c, as/hc08/as_hc08.dsp, as/hc08/Makefile.in,
123           as/mcs51/asx8051.dsp, as/mcs51/Makefile.in:
124           asnoice.c moved to as/asxxsrc/asnoice.c
125         * src/z80/peeph-gbz80.def: applied patch
126           #1880235: Z80 return peephole, thanks to Philipp Krause
127
128 2008-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
129
130         * .version,
131         * doc/sdccman.lyx: bumped version to 2.7.5
132         * src/SDCCsymt.c (compareType, comparePtrType): fixed bug 1281583
133
134 2008-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
135
136         * device/include/pic16/stdlib.h,
137         * device/lib/pic16/libc/stdlib/ltoa.c,
138         * device/lib/pic16/libc/stdio/vfprintf.c: ascii strings are char*
139
140 2008-02-13 Borut Razem <borut.razem AT siol.net>
141
142         * src/SDCCmain.c, src/SDCCglue.c: fixed --c1mode
143         * src/pic16/glue.c, src/SDCCast.c, src/SDCCast.h, src/SDCCBBlock.c,
144           src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c, src/SDCCloop.c,
145           src/SDCCopt.c,  src/SDCCval.c:
146           fixed bug #1890273: SDCC Warning 154 shows wrong filename
147
148 2008-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
149
150         * src/SDCCsymt.c (compareType): fixed bug 1309013
151
152 2008-02-09 Borut Razem <borut.razem AT siol.net>
153
154         * src/SDCCval.c, src/SDCCval.h:
155           code cleaning, added function constChrVal()
156         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c, src/SDCCast.c, src/SDCC.y:
157           call constChrVal() instead constVal()
158
159 2008-02-01 Maarten Brock <sourceforge.brock AT dse.nl>
160
161         * src/SDCCast.c (resolveSymbols): added reentrancy check for parameters
162           of function pointer
163         * src/SDCCerr.h,
164         * src/SDCCerr.c: changed warning W_NONRENT_ARGS to error E_NONRENT_ARGS
165         * support/regression/tests/absolute.c: added TestStruct TestVar (see also
166           bug 1859853)
167
168 2008-02-01 Raphael Neider <rneider AT web.de>
169
170         * device/include/pic/pic16f886.h,
171         * device/include/pic/pic16f887.h: added RA6 and RA7
172
173 2008-01-24 Raphael Neider <rneider AT web.de>
174
175         * device/include/pic/pic16f88.h: added RA6 and RA7
176         * device/lib/pic/libdev/disabled_pic16f886.c,
177         * device/lib/pic/libdev/disabled_pic16f887.c: renamed and enabled
178
179         * src/pic16/devices.inc,
180         * device/include/pic16/pic18f2423.h,
181         * device/include/pic16/pic18f2523.h,
182         * device/include/pic16/pic18fregs.h,
183         * device/lib/pic16/pics.all
184         * device/lib/pic16/libdev/pic18f2423.c,
185         * device/lib/pic16/libdev/pic18f2523.c: added 18f2423 and 18f2523
186         * device/lib/pic16/libio/i2c.ignore,
187         * device/lib/pic16/libio/usart.ignore,
188         * device/lib/pic16/libio/adc.ignore: ignore new devices
189
190 2008-01-23 Maarten Brock <sourceforge.brock AT dse.nl>
191
192         * src/SDCCast.c (createRMW): fixed bug 1582651
193
194 2008-01-20 Borut Razem <borut.razem AT siol.net>
195
196         * src/SDCCcse.c: partially fixed enhancement request
197           #1793872 - multiply by -1 not collapsed
198         * support/regression/tests/arithcsi.c: added regression test
199
200 2008-01-19 Maarten Brock <sourceforge.brock AT dse.nl>
201
202         * as/mcs51/asx8051.dsp: removed define SDK
203         * as/mcs51/i51mch.c (machine): fixed bug 1865114
204         * device/include/asm/ds390/features.h: fixed bug with ds390 & stack-auto
205         * as/link/lklex.c,
206         * as/link/mcs51/lkmain.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
207           cosmetic changes, brought more in sync, changed old K&R to ANSI
208
209 2008-01-13 Borut Razem <borut.razem AT siol.net>
210
211         * support/scripts/sdcc.nsi: added Uninstall/reinstall page, ...
212         * src/SDCCicode.c: fixed bug #1870216 - Error 122: dividing by zero
213
214 2007-12-30 Borut Razem <borut.razem AT siol.net>
215
216         * src/pic16/gen.c: fixed implementation of bitwise operations for
217           pic16 target
218         * support/regression/tests/bitwise.c: added test cases
219
220 2007-12-29 Borut Razem <borut.razem AT siol.net>
221
222         * src/SDCCasm.[ch]: renamed from asm[ch], use dbuf_getline(), ...
223         * src/src.dsp, src/Makefile.bcc, src/Makefile.in, src/common.h,
224           src/SDCCglue.c, src/xa51/main.c: asm.[ch] renamed to SDCCasm.[ch]
225         * support/Util/dbuf_string.[ch]: added function dbuf_getline()
226         * src/ds390/gen.c, src/hc08/gen.c, src/mcs51/gen.c, src/pic16/gen.c,
227           src/pic/gen.c, src/z80/gen.c, src/xa51/gen.c, src/pic16/ralloc.c,
228           src/pic16/pcode.[ch]: added const qualifier
229         * as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
230           as/mcs51/Makefile.bcc, as/mcs51/Makefile.in, as/mcs51/asx8051.dsp,
231           as/z80/Makefile.bcc, as/z80/Makefile.in, as/z80/as_gbz80.dsp,
232           as/z80/as_z80.dsp: added dbuf.[ch] and dbuf_string[ch] to project
233         * as/asxxsrc/aslex.c: use dbuf_getline()
234         * as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/asm.h, as/hc08/m08adr.c,
235           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/asm.h,
236           as/mcs51/i51adr.c, as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c,
237           as/z80/asm.h, as/z80/z80adr.c:
238           changed type of ib and ip to const char *
239
240 2007-12-28 Borut Razem <borut.razem AT siol.net>
241
242         * as/asxxsrc/aslex.c: moved from as/mcs51/aslex.c;
243           introduced (readlin) - long lines are turuncated
244         * as/hc08/as_hc08.dsp, as/mcs51/asx8051.dsp, as/z80/as_gbz80.dsp,
245           as/z80/as_z80.dsp, as/hc08/Makefile.in, as/mcs51/Makefile.in,
246           as/z80/Makefile.in: moved aslex.c to asxxsrc
247         * as/hc08/aslex.c, as/z80/aslex.c: deleted
248         * as/hc08/asmain.c, as/mcs51/asmain.c:
249           added missing initialization of a_addr field
250         * support/regression/tests/long_asm_line.c: added regtest for long
251           assembler line
252
253 2007-12-22 Borut Razem <borut.razem AT siol.net>
254
255         * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
256
257 2007-12-20 Maarten Brock <sourceforge.brock AT dse.nl>
258
259         * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang
260
261 2007-12-16 Borut Razem <borut.razem AT siol.net>
262
263         * device/include/pic16/stdbool.h: removed, since already exists in
264          device/include/; this also fixes bitopcse.c regression test for pic16
265          target
266         * support/regression/fwk/inclusw/testfwk.h: added macro ASSERT_FAILED
267         * src/pic16/glue.c: fixed bug #1851855: generic static pointer
268           dereference doesn't work; covered by regression test bug1399290
269
270 2007-12-05 Borut Razem <borut.razem AT siol.net>
271
272         * doc/sdccman.lyx: fixed bug #1844509 - Correction to Manual 4.6.9
273           Adding new PIC16
274
275 2007-12-01 Borut Razem <borut.razem AT siol.net>
276
277         * sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/mem.cc:
278           corrected handling of the highest_valid_address
279
280 2007-11-17 Raphael Neider <rneider AT web.de>
281
282         * src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
283         * src/pic/glue.c (picglue): emit .file if --debug is given
284
285 2007-11-17 Raphael Neider <rneider AT web.de>
286
287         * src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
288         care when left or right operand resides in result, fixes #1830220
289
290 2007-11-17 Borut Razem <borut.razem AT siol.net>
291
292         * src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
293           #983491 - "Merge duplicate strings function is ineffective"
294         * support/regression/tests/bug-983491.c: regtest disabled
295         * as/asxxsrc: created
296           as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
297           as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
298           as/z80/assym.c, as/hc08/asstore.c, as/mcs51/asstore.c: deleted
299           as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
300           as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
301           as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
302           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
303           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
304           as/link/z80/linkz80.dsp, as/mcs51/Makefile.bcc, as/mcs51/Makefile.in,
305           as/mcs51/asm.h, as/mcs51/asx8051.dsp, as/z80/Makefile.bcc,
306           as/z80/Makefile.in, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
307           as/z80/Makefile.as_hc08, as/mcs51/Makefile.asx8051: modified
308           created as/asxxsrc directory, assym.c and strcpi.c moved into it
309
310 2007-11-15 Maarten Brock <sourceforge.brock AT dse.nl>
311
312         * device/include/stdarg.h: added and removed some casts
313         * src/SDCCsymt.c (compareType): Fully check types between generic and
314           non-generic pointers, also accept ptr-ptr to void-ptr assignments
315
316 2007-11-13 Borut Razem <borut.razem AT siol.net>
317
318         * support/regression/tests/bug-1817005.c:
319           added regtest for bug #1817005 - as-z80 chokes on long labels
320
321 2007-11-12 Borut Razem <borut.razem AT siol.net>
322
323         * as\z80\asmain.c, as\z80\asm.h, as\z80\assym.c, as\z80\asdata.c,
324           as\z80\asout.c, as\z80\aslist.c:
325           fixed bug #1817005 - as-z80 chokes on long labels
326
327 2007-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
328
329         * as/hc08/asmain.c,
330         * as/z80/asmain.c: cosmetic changes
331         * as/hc08/alloc.h,
332         * as/mcs51/alloc.h,
333         * as/z80/alloc.h: removed
334         * as/hc08/assym.c,
335         * as/mcs51/assym.c: replaced alloc.h with stdlib.h
336         * as/link/aslink.h: added LKDIRSEP and, LKDIRSEPSTR
337         * as/link/hc08/Makefile.in,
338         * as/link/mcs51/Makefile.in,
339         * as/link/z80/Makefile.in: added -DUNIX to CFLAGS
340         * as/link/lklex.c,
341         * as/link/mcs51/lkarea.c,
342         * as/link/mcs51/lkmain.c: cosmetic changes
343         * as/link/hc08/lklibr.c,
344         * as/link/z80/lklibr.c,
345         * as/link/mcs51/lklibr.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
346           used cygwin_conv_to_full_posix_path,
347           added warnings, cosmetic changes, brought more in sync
348           changed old K&R into ANSI function declarations
349         * as/link/z80/lklibr.c (loadAdb): added
350         * as/link/z80/lkmain.c: removed -- option from usage text
351
352 2007-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
353
354         * src/mcs51/gen.c (outBitC): optimized for no result
355
356 2007-10-31 Borut Razem <borut.razem AT siol.net>
357
358         * src/SDCCsymt.c: fixed (hopeful properly) bug
359           #1805702 - order of extern matters
360         * support/regression/tests/bug-1805702.c: enabled regtest for bug
361           #1805702
362
363 2007-10-29 Borut Razem <borut.razem AT siol.net>
364
365         * src/SDCCsymt.c: reverted bad fixed of bug #1805702
366           - order of extern matters
367         * support/regression/tests/bug-1805702.c: disabled regtest for bug
368           #1805702
369
370 2007-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
371
372         * src/ds390/peeph.def: replaced 24bitModeAndPortDS390 by
373           24bitMode, portIsDS390
374         * src/mcs51/gen.c (genOr): optimized for RFE 1750727
375         * src/SDCCpeeph.c (flat24bitModeAndPortDS390): removed
376           (notVolatileVariable): also check sloc names,
377           (callFuncByName): moved ftab[] out of function and sorted it by use
378
379 2007-10-28 Maarten Brock <sourceforge.brock AT dse.nl>
380
381         * device/include/stdarg.h: fixed bug in va_start macro for --xstack
382         * src/hc08/gen.c (aopForRemat): aop->aopu.aop_immd.from_cast_remat not set,
383           aop->aopu.aop_immd.aop_immd2 not filled with (generic) pointer type
384         * src/SDCCicode.c (geniCodeCast): fixed bug 880197
385         * support/regression/tests/bug-880197.c: new, added
386
387 2007-10-28 Borut Razem <borut.razem AT siol.net>
388
389         * support/regression/Makefile.in,
390           support/regression/ports/mcs51-large/spec.mk,
391           support/regression/ports/mcs51-xstack-auto/spec.mk,
392           support/regression/ports/mcs51-stack-auto/spec.mk,
393           support/regression/ports/mcs51-medium/spec.mk,
394           support/regression/ports/mcs51-common/spec.mk,
395           support/regression/ports/mcs51-common/*,
396           support/regression/ports/mcs51-small/*:
397           mcs51 renamed to mcs51-common, created mcs51-small
398         * src/SDCCsymt.c: fixed bug #1805702 - order of extern matters
399         * support/regression/tests/bug-1805702.c: added regtest for bug
400           #1805702
401
402 2007-10-26 Maarten Brock <sourceforge.brock AT dse.nl>
403
404         * src/mcs51/peeph.def: moved rules 257.x to 253.x and re-enabled 253.b,
405           added new rules 265 - 270
406         * support/regression/tests/bug1721024.c:new, added
407         * support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
408           introduced new test-mcs51 to run all mcs51 tests
409
410 2007-10-25 Maarten Brock <sourceforge.brock AT dse.nl>
411
412         * support/regression/tests/bug1816470.c: new, added
413
414 2007-10-21 Maarten Brock <sourceforge.brock AT dse.nl>
415
416         * src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
417           propagate for *,+,- with float, fixed bug 1816470
418           (decorateType): cast to resultTypeProp instead of resultType
419
420 2007-10-19 Borut Razem <borut.razem AT siol.net>
421
422         * src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
423           function is ineffective" for pic16 tareget
424         * support/scripts/listerr.c: corrected include path
425         * device/lib/_itoa.c: fixed bug #1806402 - _itoa and _uitoa leak to
426           adjacent memory
427
428 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
429
430         * support/regression/tests/using.c: new, added
431         * support/regression/tests/vaargs.c: fixed and enabled test
432
433 2007-10-18 Borut Razem <borut.razem AT siol.net>
434
435         * src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
436           is ineffective
437         * support/regression/tests/bug-983491.c: added regtest for bug #983491
438
439 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
440
441         * doc/sdccman.lyx: documented option --Werror
442         * src/SDCCsymt.c (checkFunction): fixed bug 1815418 by setting
443           RegBankUsed[] earlier
444
445 2007-10-14 Maarten Brock <sourceforge.brock AT dse.nl>
446
447         * device/include/mcs51/p89lpc938.h: new, added, thanks Kyle Guinn
448         * src/pic/glue.c,
449         * src/SDCCval.c,
450         * src/SDCCast.c,
451         * src/SDCCast.h: replaced AST_LIT_VALUE with AST_FLOAT_VALUE and
452           AST_ULONG_VALUE
453         * src/SDCCast.c (decorateType): improved optimization of tri-op
454         * src/SDCCerr.c (vwerror, setWError),
455         * src/SDCCerr.h,
456         * src/SDCCmain.c (parseCmdLine): added option --Werror to treat all
457           warnings as errors, thanks Stas Sergeev for PATCH 1813211
458
459 2007-10-13 Maarten Brock <sourceforge.brock AT dse.nl>
460
461         * src/mcs51/gen.c (leftRightUseAcc): use macro IS_OP_ACCUSE
462         * src/SDCCast.c (decorateType): optimize bit=cond?1:0, RFE 1738430
463         * support/regression/tests/bug-223113.c,
464         * support/regression/tests/bug-426632.c,
465         * support/regression/tests/bug-468811.c,
466         * support/regression/tests/bug-477835.c,
467         * support/regression/tests/bug-478094.c,
468         * support/regression/tests/bug-499644.c,
469         * support/regression/tests/bug-524209.c,
470         * support/regression/tests/bug-524211.c,
471         * support/regression/tests/packcast.c,
472         * support/regression/tests/structidx.c: added empty tests
473         * support/regression/tests/bug-607243.c: enabled test
474
475 2007-10-06 Borut Razem <borut.razem AT siol.net>
476
477         * .version, doc/sdccman.lyx: bumped version to 2.7.4 to indicate the full
478            support of universal binaries on Mac OS X
479
480 2007-10-02 Borut Razem <borut.razem AT siol.net>
481
482         * src/SDCCval.h: unified double2ul macro for all platforms
483         * src/SDCCval.c: fixed bug #1777758 - applied Maarten's patch
484         * support/regression/tests/bitwise.c: added regtest for bug #1777758
485
486 2007-09-30 Borut Razem <borut.razem AT siol.net>
487
488         * src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
489           platforms
490         * sdcc_vc_in.h: enabled warnings
491         * src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
492           unsigned type, result still unsigned
493         * src/mcs51/peep.c: fixed gcc warning: suggest parentheses around && within ||
494
495 2007-09-28 Raphael Neider <rneider AT web.de>
496
497         * src/pic/device.c (find_device): prevent buffer underflow error
498         * src/pic/pcoderegs.c (OptimizeRegUsage): avoid dereferencing
499           the just destroyed list entry
500
501 2007-09-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
502
503         * doc/sdccman.lyx: there's a dedicated wiki page for cmake and sdcc, thanks
504           Alexander Neundorf
505
506 2007-09-18 Borut Razem <borut.razem AT siol.net>
507
508         * src/SDCCval.c: fixed MSVC warning C4146: unary minus operator
509          applied to unsigned type, result still unsigned
510
511 2007-09-17 Borut Razem <borut.razem AT siol.net>
512
513         * src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c,
514           src/SDCCicode.c, src/SDCCopt.c, src/SDCCsymt.c, src/SDCCval.c,
515           src/SDCCval.h, src/hc08/gen.c, src/avr/gen.c, src/ds390/gen.c,
516           src/mcs51/gen.c, src/pic/gen.c, src/pic/genarith.c, src/pic/glue.c,
517           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/genarith.c,
518           src/pic16/genutils.c, src/pic16/glue.c, src/pic16/main.c,
519           src/z80/gen.c, src/z80/ralloc.c:
520           fixed bug #1739860 - sdcc does not work correctly on some platforms
521           (not finished)
522           introduced and used ulFromVal(), double2ul(), used strtod() instead sscanf()
523
524 2007-09-17 Raphael Neider <rneider AT web.de>
525
526         * src/pic16/device.c: reverted to previous version
527         * device/lib/pic16/Makefile.common.in: quieten gpasm via -Wa,-q
528
529 2007-09-16 Raphael Neider <rneider AT web.de>
530
531         * src/pic16/device.c (pic16_dump_usection): do not reserve 0 bytes,
532           as this raises a ton of gpasm warnings, just emit a second label
533         * src/pic16/devices.inc,
534         * device/lib/pic16/pics.all,
535         * device/lib/pic16/libdev/pic18f2585.c,
536         * device/lib/pic16/libdev/pic18f2680.c,
537         * device/lib/pic16/libdev/pic18f2682.c,
538         * device/lib/pic16/libdev/pic18f2685.c,
539         * device/lib/pic16/libdev/pic18f4585.c,
540         * device/lib/pic16/libdev/pic18f4680.c,
541         * device/lib/pic16/libdev/pic18f4682.c,
542         * device/lib/pic16/libdev/pic18f4685.c,
543         * device/include/pic16/pic18f2585.h,
544         * device/include/pic16/pic18f2680.h,
545         * device/include/pic16/pic18f2682.h,
546         * device/include/pic16/pic18f2685.h,
547         * device/include/pic16/pic18f4585.h,
548         * device/include/pic16/pic18f4680.h,
549         * device/include/pic16/pic18f4682.h,
550         * device/include/pic16/pic18f4685.h,
551         * device/include/pic16/pic18fregs.h: added 18f2585, 18f2680,
552           18f2682, 18f2685, 18f4585, 18f4680, 18f4682, 18f4685,
553           patch contributed by Anton Strobl, applied with changes
554
555 2007-09-16 Raphael Neider <rneider AT web.de>
556
557         * device/include/pic16/pic18f2431.h,
558         * device/include/pic16/pic18f25j10.h,
559         * device/include/pic16/pic18f4431.h,
560         * device/include/pic16/pic18f45j10.h: adopted common include style
561         * device/include/pic16/pic18f1320.h,
562         * device/include/pic16/pic18f2320.h,
563         * device/include/pic16/pic18f2525.h,
564         * device/include/pic16/pic18f4320.h,
565         * device/include/pic16/pic18f4525.h: NEW, just include proper .h file
566         * device/include/pic16/pic18fregs.h: prepared for automatic include
567           file selection by having DEVICE.h for every DEVICE
568         * device/lib/pic16/libdev/pic18f2320.c,
569         * device/lib/pic16/libdev/pic18f4320.c: just include proper .c file
570
571         * device/lib/pic16/configure.in,
572         * device/lib/pic16/configure: use rm -rf instead of rmdir
573         * device/lib/pic16/Makefile.in: use RMDIR to remove build directories
574         * device/lib/pic16/libc/stdlib/free.c: avoid warning on pointer cast
575
576 2007-09-09 Borut Razem <borut.razem AT siol.net>
577
578         * src/SDCCmain.c, src/SDCCutil.c: print newline after printVersionInfo(),
579           distingush between i386 and ppc Mac OS X versions
580
581 2007-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
582
583         * src/mcs51/gen.c (genReceive): fixed bug 1788177
584         * support/regression/tests/bug1788177.c: new, added
585
586 2007-09-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
587
588         * doc/sdccman.lyx: mentioned d52 and cmake, customizing startup code
589         * device/include/mcs51/lint.h added keyword __naked
590
591 2007-09-04 Maarten Brock <sourceforge.brock AT dse.nl>
592
593         * src/pic16/glue.c,
594         * src/pic/glue.c,
595         * src/SDCCmem.h: removed maxRegBank
596         * src/SDCCmem.c (allocVariables): removed maxRegBank and moved setting
597           RegBankUsed[] to checkFunction() in SDCCsymt.c to fix bug 1759839
598         * src/SDCCsymt.c (checkFunction): set RegBankUsed[] here
599         * src/mcs51/peep.c (isCallerSaveFunc, termScanAtFunc): changed function
600           name and behaviour to handle banked functions
601           (scan4op): and use it to fix bug 1786213
602
603 2007-09-03 Raphael Neider <rneider AT web.de>
604
605         * device/include/pic16/pic18f248.h,
606         * device/include/pic16/pic18f258.h,
607         * device/include/pic16/pic18f448.h,
608         * device/lib/pic16/libdev/pic18f248.c,
609         * device/lib/pic16/libdev/pic18f258.c,
610         * device/lib/pic16/libdev/pic18f448.c: fixed TRISEbits,
611           added T0CONbits, fixes #1786891
612
613 2007-08-29 Maarten Brock <sourceforge.brock AT dse.nl>
614
615         * src/ds390/gen.c (genFarPointerSet),
616         * src/hc08/ralloc.c (packRegisters),
617         * src/mcs51/ralloc.c (packRegisters),
618         * src/SDCCcse.c (cseBBlock): check if result is a symbol first to fix
619           bug 1750318
620         * src/SDCCicode.h: POINTER_SET can be true for literals too
621         * support/regression/tests/bug1750318.c: new, added
622
623 2007-08-23 Borut Razem <borut.razem AT siol.net>
624
625         * debugger/mcs51/sdcdb.c: fixed compilation with older readline
626           library versions without the completition functionality
627
628 2007-08-22 Raphael Neider <rneider AT web.de>
629
630         * device/include/pic16/pic18f1220.h,
631         * device/lib/pic16/libdev/pic18f1220.c: applied patch #1776191
632
633 2007-08-12 Borut Razem <borut.razem AT siol.net>
634
635         * debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
636
637 2007-08-11 Borut Razem <borut.razem AT siol.net>
638
639         * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
640           src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
641           support/Util/SDCCerr.[ch] moved to src
642         * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
643           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
644           device/examples/ds390/tinitalk/tinitalk.dsp,
645           device/examples/serialcomm/windows/serialcomm.dsp,
646           support/librarian/librarian.dsp:
647           removed linking of unused odbc32.lib and odbccp32.lib
648         * support/scripts/winres.h:
649           added for compilation with Visual C++ 2005 Express Edition
650
651 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
652
653         * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
654           and CKCON1.
655
656 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
657
658         * sdccconf_in.h: update the endian test so that SPARC Solaris
659           does not throw syntax errors
660
661 2007-08-06 Borut Razem <borut.razem AT siol.net>
662
663         * doc/sdccman.lyx: removed two index entries which prevented the
664           generation of sdcc doc archive
665
666 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
667
668         * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
669           instead of lyx 1.5.0.
670
671 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
672
673         * device/include/hc08/mc68hc908apxx.h: new header contributed by
674           Lucas Loizaga, with minor modifications. Thanks!
675
676 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
677
678         * doc/sdccman.lyx: Documented --acall-ajmp and described new features
679           in sdcclib.
680
681 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
682
683         * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
684           src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
685           with acall/ajmp.
686
687 2007-07-22 Borut Razem <borut.razem AT siol.net>
688
689         * configure.in, configure: re-introduced .version
690         * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
691           the version reverted to 2.7.0
692
693 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
694
695         * configure.in,
696         * doc/sdccman.lyx: bumped version to 2.7.3
697         * device/include/mcs51/compiler.h: fixed elif->else
698         * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
699         * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
700           (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
701            enable accuse for bit operands
702         * src/SDCCmain.c (printVersionInfo),
703         * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
704           environment descriptor
705         * src/SDCCutil.h: added getBuildEnvironment
706         * src/SDCCglue.c (initialComments): use getBuildEnvironment
707         * support/regression/tests/bug1464657.c: enabled test test_Peephole251
708         * support/regression/tests/bug-408972.c: enabled test leftShiftLong
709         * support/regression/tests/bug1348008.c,
710         * support/regression/tests/bug1496419.c,
711         * support/regression/tests/bug1503067.c,
712         * support/regression/tests/preproc.c: added empty tests
713
714 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
715
716         * support/regression/tests/bug1678803.c: new, added
717
718 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
719
720         * as/link/aslink.h,
721         * as/link/hc08/lkihx.c,
722         * as/link/hc08/lkrloc.c,
723         * as/link/mcs51/lkihx.c,
724         * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
725           ihxExtendedLinearAddress
726         * as/link/mcs51/lkrloc.c (relr),
727         * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
728           acall/ajmp, see bug 830513
729
730 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
731
732         * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
733           (cseBBlock): remember aggr2ptr has been used
734         * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
735           (geniCodeAssign): fixed bug 868103
736         * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
737           added operandSize prototype
738         * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
739           (genDataPointerSet): use max of size of right and result,
740           (gencjne): added parameter useCarry for optimization,
741           (genCmpEq): use carry if appropriate,
742           (genXor): check if operand already in carry
743         * support/regression/tests/bug-868103.c: enabled test
744
745 2007-07-12 Raphael Neider <rneider AT web.de>
746
747         * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
748
749 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
750
751         * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
752           from Robert Larice, thanks
753         * support/regression/tests/bitopcse.c,
754         * support/regression/tests/bitvars.c,
755         * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
756         * support/regression/tests/bug-927659.c: enabled test for z80
757         * support/regression/tests/bug1738367.c: added extra tests by Frieder
758         * support/regression/tests/bug1745717.c: new, added
759         * support/regression/tests/literalop.c,
760         * support/regression/tests/nullstring.c: removed storage definitions that
761           are now in testfwk.h
762
763 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
764
765         * device/include/stdbool.h: do not define __bool_true_false_are_defined
766           and bool for targets that do not fully support it.
767         * support/regression/tests/bug1546986.c,
768         * support/regression/tests/bug1723128.c,
769         * support/regression/tests/bug1734654.c,
770         * support/regression/tests/bug1738367.c,
771         * support/regression/tests/constantRange.c: only use bool if allowed
772
773 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
774
775         * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
776           Larice, also handle function pointers
777         * support/regression/tests/bug1749275.c: new, added
778
779 2007-07-03 Borut Razem <borut.razem AT siol.net>
780
781         * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
782           src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
783           #1746528: SDCC should ignore ':' in inline assembler comments
784         * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
785
786 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
787
788         * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
789         * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
790
791 2007-06-29 Borut Razem <borut.razem AT siol.net>
792
793         * src/SDCCmain.c: fixed bug
794           #1744746: SDCC #4867: broken option --xram-size
795
796 2007-06-28 Borut Razem <borut.razem AT siol.net>
797
798         * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
799           find out the endianess of host machine for ucsim
800
801 2007-06-27 Borut Razem <borut.razem AT siol.net>
802
803         * support/regression/generate-cases.py: corrected the file name
804           in warning
805         * configure.in, configure, sdccconf_in.h: find out the endianess of
806           host machine
807         * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
808           negative size
809
810 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
811
812         * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
813
814 2007-06-26 Borut Razem <borut.razem AT siol.net>
815
816         * support/regression/generate-cases.py: display warning if function
817           list is empty; implemented more flexible rule for detection of
818           testing functions, allowing return type 'void' in the same line as
819           the function name in the function definition
820         * support/regression/tests/bug-1654060.c: corrected test
821         * support/librarian/sdcclib.c: fixed warning:
822           format '%s' expects type 'char *', but argument 2 has type 'int'
823
824 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
825
826         * support/librarian/sdcclib.c: Added feature Requests [1510635]
827           Multiple infiles for sdcclib.
828
829 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
830
831         * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
832           bug 1731741
833
834 2007-06-18 Borut Razem <borut.razem AT siol.net>
835
836         * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
837           how to handle comments, so they have to be removed by the
838           preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
839         * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
840           src/pic16/main.c, src/pic/main.c, src/z80/main.c,
841           support/Util/SDCCerr.c, support/Util/SDCCerr.h:
842           table driven option hadling
843
844 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
845
846         * src/SDCCast.c (decorateType),
847         * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
848           iCode to ast level to fix bug 1738367
849         * support/regression/tests/bug1738367.c: new, added
850
851 2007-06-15 Raphael Neider <rneider AT web.de>
852
853         * src/pic16/devices.inc,
854         * device/lib/pic16/pics.all,
855         * device/include/pic16/pic18fregs.h,
856         * device/include/pic16/pic18f[24][45]20.h,
857         * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
858           18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
859         * device/lib/pic16/Makefile.in: faster cleanup
860
861 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
862
863         * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
864
865 2007-06-13 Raphael Neider <rneider AT web.de>
866
867         * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
868
869 2007-06-12 Raphael Neider <rneider AT web.de>
870
871         * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
872           suppress bit defines if NO_BIT_DEFINES is #define'd
873         * device/include/pic/pic*.h: recreated all headers to include
874           conditional bit defines
875         * device/include/pic/pic16f886.h,
876         * device/include/pic/pic16f887.h: fixed based on newer .inc file
877         * device/include/pic/recreate.sh: script to recreate the complete
878           device library files based on the currently supported devices
879
880 2007-06-12 Borut Razem <borut.razem AT siol.net>
881
882         * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
883           support/regression/Makefile.in, support/scripts/build.mak,
884           support/scripts/Makefile.snapshot:
885           use new svn URL scheme
886         * doc/sdccman.lyx: SDCC Wiki moved to
887           http://sdcc.wiki.sourceforge.net/
888
889 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
890
891         * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
892         * support/regression/tests/bug1734654.c: added
893
894 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
895
896         * src/SDCCast.c (decorateType): optimized '?' for equal operands
897         * src/SDCCicode.c (geniCodeConditional): optimization for bit result
898           with literal operands
899
900 2007-06-10 Borut Razem <borut.razem AT siol.net>
901
902         * as/link/z80/lklibr.c: fixed mingw build warning
903           lklibr.c:575: warning: implicit declaration of function 'tolower'
904         * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
905           src/z80/main.c: move target specific options from src/SDCCmain.c
906           to src/<target>/main.c
907
908 2007-06-09 Borut Razem <borut.razem AT siol.net>
909
910         * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
911           removed unused swap_sense; removed outBitCLong, replaced with outBitC
912         * support/regression/tests/bug-1294691.c: added
913
914 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
915
916         * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
917           can also be static, fixes bug 1733438
918         * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
919           have absolute address too
920           (computeType): added optimization for 'cond ? true : false'
921         * support/regression/tests/absolute.c: added test for static absolute var
922
923 2007-06-08 Raphael Neider <rneider AT web.de>
924
925         * src/regression/Makefile: suppress parallel builds, allow easy
926           switching between pic14/pic16 ports
927         * src/regression/picregs.h: added pic14/16 header file switch
928         * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
929           inline.c,nestfor.c,string1.c}: include "picregs.h"
930
931 2007-06-07 Borut Razem <borut.razem AT siol.net>
932
933         * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
934           permanent solution to suppress GCC 4.2.0 c++ warning:
935           deprecated conversion from string constant to `char *'
936           use 'const char *' where ever required
937         * support/regression/generate-cases.py: implemented more flexible rule
938           for detection of testing functions, allowing white-spaces surrounding
939           the function name and the 'void' parameter.
940         * support/regression/tests/constantRange.c,
941           support/regression/tests/scott-compare3.c: fixed failing regression
942           tests, uncovered by implementation of more flexible rule for detection
943           of testing functions
944
945 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
946
947         * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
948
949 2007-06-04 Borut Razem <borut.razem AT siol.net>
950
951         * configure.in, configure, config_vc.awk: sdcc version number is now
952           stored in configure.in; removed .version
953         * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
954           doc/INSTALL.txt: version bumped to 2.7.2
955         * sim/ucsim/configure.in, sim/ucsim/configure:
956           use "read" to read from .version
957
958 2007-06-03 Borut Razem <borut.razem AT siol.net>
959
960         * */Makefile.in: removed annoying warning:
961           Makefile:xx: Makefile.dep: No such file or directory
962
963 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
964
965         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
966           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
967         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
968         * src/SDCCast.c (resultTypePropagate): propagate for '!',
969           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
970           bugfix: only use newBoolLink for bit result type
971         * src/SDCCicode.c (geniCodeLogic): added param tree,
972           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
973           (geniCodeLogicAndOr): use IS_BIT,
974           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
975           (ast2iCode): added tree param to geniCodeLogic for comparisons
976         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
977         * support/regression/tests/bug1723128.c: added test NotZero
978
979 2007-06-01 Borut Razem <borut.razem AT siol.net>
980
981         * SDCPP synchronized with GCC CPP release version 4.2.0,
982           currently the latest release:
983         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
984           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
985           support/cpp2/cppdefault.h, support/cpp2/except.h,
986           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
987           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
988           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
989           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
990           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
991           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
992           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
993           support/cpp2/opts.h, support/cpp2/output.h,
994           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
995           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
996           support/cpp2/system.h, support/cpp2/version.c,
997           support/cpp2/Makefile.in: modified
998         * support/cpp2/opts-common.c: added
999         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
1000         * device/lib/pic16/libdev/pic18f[24]5j10.c:
1001           search for included source file in local directory
1002         * sim/ucsim/configure, sim/ucsim/configure.in:
1003           temporary solution to suppress GCC 4.2.0 c++ warning:
1004           deprecated conversion from string constant to `char *'
1005
1006 2007-06-01 Raphael Neider <rneider AT web.de>
1007
1008         * device/lib/pic/libdev/pic12f683.c,
1009         * device/include/pic/pic12f683.h: added GPIO bits
1010
1011 2007-06-01 Raphael Neider <rneider AT web.de>
1012
1013         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
1014           quotation marks, clarified role of PIC14 vs. PIC16 ports
1015         * src/pic16/devices.inc,
1016         * device/include/pic16/pic18fregs.h,
1017         * device/include/pic16/pic18f[24][45]j10.h,
1018         * device/lib/pic16/pics.all,
1019         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
1020           18f24j10, 18f25j10, 18f44j10, and 18f45j10
1021         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
1022           for new devices as they are not yet supported by gputils
1023
1024 2007-05-31 Borut Razem <borut.razem AT siol.net>
1025
1026         * Small Device C Compiler 2.7.0 released
1027         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
1028           changed sdcc version to 2.7.1
1029         * support/scripts/sdcc.nsi: added How to create WIN32 release
1030           setup.exe package
1031
1032 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
1033
1034         * doc/sdccman.lyx: documented initialization and allocation of absolute
1035           variables, bit parameter passing, the need for function pointers to be
1036           reentrant and alpha quality support of inline and retrict
1037
1038 2007-05-26 Borut Razem <borut.razem AT siol.net>
1039
1040         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
1041           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
1042         * docs/knownbugs.html: updated
1043
1044 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
1045
1046         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
1047           thanks Jan Waclawek
1048         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
1049           AOP_CRY and ruonly
1050           (gencjneshort): optimized when left is AOP_DIR
1051         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
1052           initializing unions in a struct/array
1053         * support/regression/fwk/include/testfwk.h: added defines for data, near
1054           and far for host and z80
1055         * support/regression/tests/bug1723128.c: new, added
1056
1057 2007-05-22 Borut Razem <borut.razem AT siol.net>
1058
1059         * doc/knownbugs.html: updated
1060
1061 2007-05-21 Raphael Neider <rneider AT web.de>
1062
1063         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
1064           error message instead
1065         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
1066
1067 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
1068
1069         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
1070
1071 2007-05-21 Raphael Neider <rneider AT web.de>
1072
1073         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
1074           closes #1722392
1075         * src/regression/gpsim_assert.h,
1076         * src/regression/Makefile,
1077         * src/regression/pcodeopt.c: regression test for the above fix
1078
1079 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
1080
1081         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
1082           jumps to self, fixed bug 1717281
1083
1084 2007-05-10 Borut Razem <borut.razem AT siol.net>
1085
1086         * support/scripts/gen_known_bugs.pl: cosmetic fix
1087         * doc/knownbugs.html: generated by gen_known_bugs.pl
1088
1089 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1090
1091         * src/SDCCast.c (createFunction): also generate non-inlined version of
1092           function for functions declared as "static inline"
1093         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
1094           function can be inlined after non-inlined version generated.
1095
1096 2007-05-10 Borut Razem <borut.razem AT siol.net>
1097
1098         * support/scripts/gen_known_bugs.pl: added script
1099           which generates knownbugs.html
1100
1101 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
1102
1103         * doc/knownbugs.html: updated for release 2.7.0
1104
1105 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1106
1107         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
1108
1109 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
1110
1111         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
1112           (throughout): updated generating comments
1113         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
1114           (throughout): updated generating comments
1115         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
1116           rule instead of at the second, or it might skip lines when removing the
1117           complete match
1118         * support/regression/tests/bug1714204.c: changed test to foo
1119
1120 2007-05-08 Borut Razem <borut.razem AT siol.net>
1121
1122         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
1123           thanks to SDCC Distributed Compile Farm members,
1124           added Z80 and GBZ80 command line options
1125         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
1126
1127 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
1128
1129         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
1130         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
1131         * support/regression/tests/longlit.c: modified to be tested at all and
1132           to pass the actual test
1133
1134 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1135
1136         * device/include/mcs51/uPSD33xx.h: Added.
1137
1138 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
1139
1140         * device/lib/_gptrput.c,
1141         * device/lib/_gptrget.c: removed old code,
1142          (_gptrgetWord),
1143         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
1144         * support/regression/tests/bug1714204.c: new, added
1145
1146 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1147
1148         * support/regression/tests/regtrack.c: test was never executed
1149           because of the regression test being picky about white spaces.
1150         * device/lib/mcs51/crtclear.asm: added comment
1151
1152 2007-05-06 Raphael Neider <rneider AT web.de>
1153
1154         * device/lib/pic/Makefile.rules,
1155         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
1156           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
1157
1158 2007-05-06 Raphael Neider <rneider AT web.de>
1159
1160         * src/pic16/device.h,
1161         * src/pic16/main.h,
1162         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
1163           _pic16_setDefaultOptions): removed/reordered command-line args
1164         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
1165           devices, regrouped command line args, environment variables),
1166           clarified sone points, added sections on how to add devices to the
1167           PIC14/PIC16 ports
1168
1169 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
1170
1171         * src/z80/peeph.def: fixed bug in rule 2
1172
1173 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
1174
1175         * src/port.h: added TARGET_MCS51_LIKE
1176         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
1177           take advantage of it too
1178         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
1179           (shiftR2Left2Result): Optimized: don't check shifting by 0
1180         * src/z80/peeph-z80.def,
1181         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
1182           modifications, see patch 1700823
1183         * src/mcs51/peep.c (): fixed bug 1712928
1184         * support/regression/tests/bug1712928.c: new, added
1185
1186 2007-05-05 Borut Razem <borut.razem AT siol.net>
1187
1188         * device/lib/pic16/Makefile.common.in,
1189           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
1190           removed bash dependencies
1191
1192 2007-05-01 Borut Razem <borut.razem AT siol.net>
1193
1194         * src/SDCCicode.c:
1195           fixed bug #1710507: --i-code-in-asm makes compile fail
1196           all iCode comments are now one liners
1197         * src/mcs51/gen.c: fixed memory leak
1198
1199 2007-05-01 Raphael Neider <rneider AT web.de>
1200
1201         * device/lib/pic/libdev/*.c
1202         * device/include/pic/*.h: regenerated all device libs from updated
1203           .inc files
1204         * support/scripts/inc2h.pl: documented usage, now uses strict to
1205           catch more bugs
1206
1207 2007-04-30 Borut Razem <borut.razem AT siol.net>
1208
1209         * doc/sdccman.lyx:
1210           fixed bug #1669175: Problem with space in output paths
1211           documented how to use paths with spaces for Windows users
1212
1213 2007-04-29 Borut Razem <borut.razem AT siol.net>
1214
1215         * Fixed svn:eol-style and svn:keywords properties
1216         * src/SDCCval.c: fixed bug
1217           #1592871: Segfault with "large" const arrays of characters
1218           replaced recursion with iteration
1219         * Removed svn:executable property from non-executable files
1220
1221 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
1222
1223         * src/mcs51/gen.c (genRet): fixed bug 1707003
1224
1225 2007-04-27 Raphael Neider <rneider AT web.de>
1226
1227         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
1228           createReachingDefinitions,assignValnums,pic16_destructDF,
1229           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
1230           prevent NULL pointer dereferences
1231         * device/lib/pic/libdev/pic16f886.c,
1232         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
1233           prevent building them, gputils do not really support them yet
1234
1235 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1236
1237         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
1238           helps printf_small. 32 bytes more __idata mem.
1239
1240 2007-04-27 Raphael Neider <rneider AT web.de>
1241
1242         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
1243           return early when pb or pb->pcHead is NULL (patch #1708427)
1244         * src/regression/empty.c,
1245         * src/regression/Makefile: added test with empty functions
1246         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
1247
1248 2007-04-27 Borut Razem <borut.razem AT siol.net>
1249
1250         * src/SDCCast.c: fixed feature request
1251           #1547512: Redundant strings linked when using sizeof("abc")
1252
1253 2007-04-23 Borut Razem <borut.razem AT siol.net>
1254
1255         * doc/sdccman.lyx, src/SDCCmain.c:
1256           peep-hole comments are generated only if --fverbose-asm option is
1257           specified and --no-peep-comments is not, as proposed by Frieder.
1258         * support/regression/Makefile.in: compile regression tests with
1259           --fverbose-asm option so one can "grep" whether a new (or an old)
1260           peephole is (still) applied; requested by Frieder.
1261
1262 2007-04-23 Kevin Buettner <kevin AT buettner.to>
1263
1264         * device/include/pic/pic16f886.h,
1265         * device/include/pic/pic16f887.h,
1266         * device/lib/pic/libdev/pic16f886.c,
1267         * device/lib/pic/libdev/pic16f887.c,
1268         * device/include/pic/pic14devices.txt,
1269         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
1270
1271 2007-04-23 Kevin Buettner <kevin AT buettner.to>
1272
1273         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
1274           fixes #1704666
1275
1276 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1277
1278         * device/lib/_memset.c: assembler version for mcs51
1279
1280 2007-04-22 Borut Razem <borut.razem AT siol.net>
1281
1282         * support/scripts/listerr.c: program to create the list of errors and
1283           warnings list from - added
1284         * doc/sdccman.lyx: removed the note
1285           "For list of warnings and corresponding codes, see err_warn.txt"
1286         * src/SDCCsymt.c: fixed bug #1699804:
1287           Bug with some uses of sizeof(static local array) (MCS51)
1288         * support/regression/tests/bug-1699804.c: added
1289
1290 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
1291
1292         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
1293           (main): added option -i,
1294           (asmbl, case S_INCL): use search_path_fopen,
1295           mostly from patch 1579668 by Peter Miller, thanks
1296         * src/z80/main.c: fixed typo --callee-saves-bc
1297         * device/include/mcs51/compiler.h: added sfrword for Tasking
1298
1299 2007-04-20 Borut Razem <borut.razem AT siol.net>
1300
1301         * src/z80/main.c: replaced reserved keyword asm with asmblr
1302
1303 2007-04-19 Borut Razem <borut.razem AT siol.net>
1304
1305         * src/port.h: use const pointers to strings
1306         * src/SDCCargs.h: declared getStringArg() and getIntArg()
1307         * src/pic16/main.c: include SDCCargs.h
1308         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
1309           const char, since the strings are dynamically allocated
1310         * src/SDCCmain.c: options.code_seg and options.const_seg are
1311           dynamically allocated; check port specific command line options
1312           before the general ones
1313         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
1314
1315 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
1316
1317         * device/include/ds400rom.h,
1318         * device/lib/ds390/lcd390.c,
1319         * device/lib/ds390/memcpyx.c,
1320         * device/lib/ds390/rtc390.c,
1321         * device/lib/ds400/ds400rom.c,
1322         * device/lib/ds400/memcpyx.c,
1323         * device/lib/hc08/_ret.c: more replacements of keywords with their
1324           double underscore equivalents
1325         * device/lib/ds390/Makefile.in,
1326         * device/lib/ds400/Makefile.in,
1327         * device/lib/gbz80/Makefile.in,
1328         * device/lib/hc08/Makefile.in,
1329         * device/lib/mcs51/Makefile.in,
1330         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
1331
1332 2007-04-17 Borut Razem <borut.razem AT siol.net>
1333
1334         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
1335           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
1336           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
1337           to --fverbose-asm, to be gcc'ish
1338
1339 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
1340
1341         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
1342
1343 2007-04-17 Borut Razem <borut.razem AT siol.net>
1344
1345         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
1346         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
1347           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
1348           with their double underscore equivalent
1349
1350 2007-04-14 Borut Razem <borut.razem AT siol.net>
1351
1352         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
1353           source"
1354
1355 2007-04-13 Borut Razem <borut.razem AT siol.net>
1356
1357         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
1358           C99 standard
1359         * device/examples/serialcomm/windows/serial.[ch],
1360           device/examples/serialcomm/windows/test_serialcomm.cpp:
1361           updated by Bela Torok
1362         * device/examples/serialcomm/windows/serialcomm.dsw,
1363           device/examples/serialcomm/windows/serialcomm.dsp: added
1364
1365 2007-04-13 Jan Waclawek <wek AT efton.sk>
1366
1367         * doc/sdccman.lyx: additions and changes at various places
1368           (submitted as #1697136).
1369           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
1370
1371 2007-04-10 Borut Razem <borut.razem AT siol.net>
1372
1373         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
1374           LyX file format changed to 245
1375         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
1376           "FreeWare" replaced with "free open source"
1377
1378 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
1379
1380         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
1381
1382 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
1383
1384         * device/include/pic16/pic18fregs.h,
1385         * device/lib/_bp.c,
1386         * device/lib/_decdptr.c,
1387         * device/lib/_divsint.c,
1388         * device/lib/_divslong.c,
1389         * device/lib/_divuint.c,
1390         * device/lib/_divulong.c,
1391         * device/lib/_fs2schar.c,
1392         * device/lib/_fs2sint.c,
1393         * device/lib/_fs2slong.c,
1394         * device/lib/_fs2uchar.c,
1395         * device/lib/_fs2uint.c,
1396         * device/lib/_fs2ulong.c,
1397         * device/lib/_fsadd.c,
1398         * device/lib/_fscmp.c,
1399         * device/lib/_fsdiv.c,
1400         * device/lib/_fseq.c,
1401         * device/lib/_fsget1arg.c,
1402         * device/lib/_fsget2args.c,
1403         * device/lib/_fsgt.c,
1404         * device/lib/_fslt.c,
1405         * device/lib/_fsmul.c,
1406         * device/lib/_fsneq.c,
1407         * device/lib/_fsnormalize.c,
1408         * device/lib/_fsreturnval.c,
1409         * device/lib/_fsrshift.c,
1410         * device/lib/_fssub.c,
1411         * device/lib/_fsswapargs.c,
1412         * device/lib/_gptrget.c,
1413         * device/lib/_gptrgetc.c,
1414         * device/lib/_gptrput.c,
1415         * device/lib/_logexpf.c,
1416         * device/lib/_modsint.c,
1417         * device/lib/_modslong.c,
1418         * device/lib/_moduint.c,
1419         * device/lib/_modulong.c,
1420         * device/lib/_mulint.c,
1421         * device/lib/_mullong.c,
1422         * device/lib/_schar2fs.c,
1423         * device/lib/_ser.c,
1424         * device/lib/_setjmp.c,
1425         * device/lib/_sint2fs.c,
1426         * device/lib/_slong2fs.c,
1427         * device/lib/_spx.c,
1428         * device/lib/_uchar2fs.c,
1429         * device/lib/_uint2fs.c,
1430         * device/lib/_ulong2fs.c,
1431         * device/lib/asincosf.c,
1432         * device/lib/atanf.c,
1433         * device/lib/calloc.c,
1434         * device/lib/ds390/tinibios.c,
1435         * device/lib/ds400/tinibios.c,
1436         * device/lib/expf.c,
1437         * device/lib/free.c,
1438         * device/lib/hc08/_mulint.c,
1439         * device/lib/logf.c,
1440         * device/lib/malloc.c,
1441         * device/lib/printf_fast.c,
1442         * device/lib/printf_tiny.c,
1443         * device/lib/printfl.c,
1444         * device/lib/realloc.c,
1445         * device/lib/ser_ir.c,
1446         * device/lib/serial.c,
1447         * support/regression/tests/libmullong.c: replaced all special keywords
1448           with their double underscore equivalent
1449         * support/regression/ports/mcs51-xstack-auto/spec.mk,
1450         * device/lib/Makefile.in: compile libs with --std-c99 instead of
1451           --std-sdcc99
1452         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
1453           (genRet): if the bit-symbol is ruonly it already is in the carry
1454         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
1455         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
1456         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
1457           type UCHAR if dest is not bit
1458
1459 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
1460
1461         * device/include/math.h,
1462         * device/lib/cotf.c,
1463         * device/lib/expf.c,
1464         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
1465
1466 2007-04-01 Borut Razem <borut.razem AT siol.net>
1467
1468         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
1469           fixed bug #1692042: input buffer overflow...scanner uses REJECT
1470         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
1471           gcc_unreachable() called internal_error()...
1472
1473 2007-03-30 Raphael Neider <rneider AT web.de>
1474
1475         * src/pic/ralloc.c (isData): suppress garbage debug output
1476
1477 2007-03-28 Borut Razem <borut.razem AT siol.net>
1478
1479         * doc/sdccman.lyx:
1480           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
1481           is developed, built and used worldwide, and the word "night" doesn't
1482           make any sense.
1483
1484 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
1485
1486         * device/include/mcs51/C8051F360.h: new, added
1487         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
1488
1489 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1490
1491         * src/SDCC.y (declaration_specifiers, function_specifier),
1492         * support/Util/SDCCerr.c,
1493         * support/Util/SDCCerr.h,
1494         * src/SDCCsymt.h,
1495         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
1496           inline keyword
1497         * src/SDCCmem.c (deallocParms),
1498         * src/SDCCast.c: support for function inlining, not quite complete
1499         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
1500           'restrict' qualifier
1501
1502 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
1503
1504         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
1505           (saveRBank, unsaveRBank): don't save bits,
1506           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
1507         * support/regression/tests/bug1535242.c: new, added
1508         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
1509           thanks Alexey Shamrin <shamrin AT gmail.com>,
1510           made assert.h header ANSI compliant (added a check for NDEBUG macro,
1511           removed header guard)
1512         * .version,
1513         * sdcc.spec: bumped version to 2.6.5
1514         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
1515
1516 2007-03-22 Borut Razem <borut.razem AT siol.net>
1517
1518         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
1519           fixed bug #1653671: sdcdb integration into ddd is broken
1520
1521 2007-03-22 Raphael Neider <rneider AT web.de>
1522
1523         * src/pic/gen.c (popGetExternal): augmented to also create references
1524           to external variables (not only labels),
1525           (genCall): comment on plan to reduce PAGESEL overhead,
1526           (genFunction, genEndFunction): also save/restore FSR around interrupt
1527           handling code, removed lots of unused code
1528           (genDivOneByte): release acquired temp register
1529         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
1530           of popGetExternal
1531         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
1532           for registers that need to be saved during interrupts (FSR, STATUS,
1533           PCLATH; W needs special handling), currently only FSR is used
1534
1535 2007-03-22 Raphael Neider <rneider AT web.de>
1536
1537         * device/include/pic/pic14devices.txt: 16f688 has only one config word
1538
1539 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1540
1541         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
1542
1543 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
1544
1545         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
1546
1547 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
1548
1549         * as/link/aslink.h: added LKOBJEXT
1550         * as/link/hc08/link_hc08.dsp,
1551         * as/link/hc08/Makefile.bcc,
1552         * as/link/hc08/Makefile.in,
1553         * as/link/mcs51/aslink.dsp,
1554         * as/link/mcs51/Makefile.bcc,
1555         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
1556         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
1557         * as/link/lkaomf51.c: merged and moved
1558         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
1559         * as/link/z80/lkdata.c,
1560         * as/link/lkdata.c: merged and moved
1561         * as/link/hc08/lkmain.c,
1562         * as/link/mcs51/lkmain.c: cosmetic changes
1563         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
1564         * as/link/lklex.c: use LKOBJEXT
1565         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
1566           ANSI-fied functions, removed bubble-sorts
1567         * as/link/z80/lksym.c           as/link/lksym.c: merged,
1568           ANSI-fied functions
1569         * as/link/z80/linkgbz80.dsp,
1570         * as/link/z80/linkz80.dsp,
1571         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
1572           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
1573         * as/link/z80/lkhead.c,
1574         * as/link/z80/lklex.c: deleted
1575         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
1576         * as/link/z80/lkmain.c: added copyfile()
1577
1578 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1579
1580         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
1581
1582 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1583
1584         * device/lib/_strlen.c: assembler version for mcs51
1585
1586 2007-03-13 Raphael Neider <rneider AT web.de>
1587
1588         * device/include/pic16/pic18f2221.h,
1589         * device/include/pic16/pic18f2321.h,
1590         * device/include/pic16/pic18f2331.h,
1591         * device/include/pic16/pic18f4221.h,
1592         * device/include/pic16/pic18f4321.h,
1593         * device/include/pic16/pic18f4331.h: fixed config byte location names
1594         * support/scripts/inc2h-pic16.pl: removed debug output, emit
1595           consistently named config byte locations
1596
1597 2007-03-13 Borut Razem <borut.razem AT siol.net>
1598
1599         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
1600           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
1601           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
1602           as/link/z80/Makefile.in, as/z80/Makefile.in:
1603           introduced LDFLAGS
1604
1605 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1606
1607         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
1608         * device/lib/printf_large.c: pointer was converted to generic
1609         pointer for mcs51 models other than model-small (Maarten noticed)
1610
1611 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1612
1613         * device/include/mcs51/ADuC84x.h: Added.
1614
1615 2007-03-10 Borut Razem <borut.razem AT siol.net>
1616
1617         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
1618           fixed RFE #1624219: double backslashes in filenames;
1619           functions hexEscape(), octalEscape() and copyStr() moved from
1620           SDCCval.c to SDCCutil.c and made them glovbally available
1621
1622 2007-03-09 Borut Razem <borut.razem AT siol.net>
1623
1624         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
1625           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
1626           1673361: Missaligned comments in output files
1627
1628 2007-03-09 Raphael Neider <rneider AT web.de>
1629
1630         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
1631
1632 2007-03-09 Raphael Neider <rneider AT web.de>
1633
1634         * src/pic/gen.c,
1635         * src/pic/glue.c,
1636         * src/pic/ralloc.c: suppress undesired debug output
1637         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
1638
1639 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1640
1641         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
1642
1643 2007-03-07 Borut Razem <borut.razem AT siol.net>
1644
1645         * device/lib/pic16/libdev/pic18f[24][34]31.c:
1646           search include files in the current directory
1647
1648 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
1649
1650         * src/SDCCglue.c (emitMaps, glue),
1651         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
1652           absolute xdata
1653         * support/regression/tests/absolute.c: added xdata test
1654
1655 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
1656
1657         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
1658           added condition to macro, fixes bug 1666080
1659
1660 2007-03-02 Raphael Neider <rneider AT web.de>
1661
1662         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
1663
1664 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1665
1666         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
1667         be cleared. Unconditionally set __XPAGE
1668         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
1669
1670 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1671
1672         * src/SDCCglobl.h,
1673         * src/SDCCmain.c,
1674         * src/mcs51/gen.c,
1675         * src/mcs51/rtrack.c,
1676         * src/ds390/gen.c,
1677         * doc/sdccman.lyx: added --no-gen-comments
1678         * src/mcs51/peeph.def: added 192.b, disabled 185
1679
1680 2007-02-25 Raphael Neider <rneider AT web.de>
1681
1682         * src/pic16/gen.c (genCast): fixed typo
1683         * device/lib/pic16/Makefile.subdir: only install existing files
1684         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
1685
1686 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1687
1688         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
1689         * device/lib/mcs51/crtclear.asm,
1690         * device/lib/mcs51/crtxclear.asm: renumbered labels
1691         * device/lib/mcs51/Makefile.in: added crtcall.asm
1692         * doc/sdccman.lyx: documented mcs51 crt* library startup code
1693         * src/mcs51/gen.c (movc): removed,
1694           (aopGet, genPlusBits): clear a after loading the carry (possibly from
1695             acc.x or psw.x),
1696           (toCarry, genSend, genRet): added function toCarry,
1697           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
1698           (assignBit, genAssign, genCast): added function assignBit
1699         * src/mcs51/Makefile.bcc: added rtrack.c
1700         * src/mcs51/ralloc.h: made valueKnown a bitfield
1701         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
1702           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
1703           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
1704         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
1705         * src/z80/gen.c: added AOP_IS_PAIRPTR,
1706           (_pop): only pop valid pairs, see gencjneshort,
1707           (gencjneshort): return pair that still needs to be popped, restructured,
1708           (gencjne, genCmpEq): call _pop
1709
1710 2007-02-23 Raphael Neider <rneider AT web.de>
1711
1712         * device/include/pic/pic14devices.txt: 16f684 has only one config word
1713
1714 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1715
1716         * device/include/mcs51/P89LPC925.h: Added.
1717
1718 2007-02-18 Raphael Neider <rneider AT web.de>
1719
1720         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
1721
1722 2007-02-17 Borut Razem <borut.razem AT siol.net>
1723
1724         * support/cpp2/directives.c, support/cpp2/version.c:
1725           synchronized with GCC CPP 4.1.2
1726
1727 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1728
1729         * src/mcs51/rtrack.h,
1730         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
1731           by checking the strings passed by emitcode() to the assembler.
1732           Feel free to change. This in part addresses RFE #482179.
1733           Set environment variable SDCC_RTRACK to enable.
1734         * src/mcs51/gen.c: inserted hooks
1735         * src/mcs51/ralloc.h: added two members to struct regs
1736         * support/regression/tests/regtrack.c: added
1737
1738 2007-02-14 Borut Razem <borut.razem AT siol.net>
1739
1740         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
1741         * Makefile.in: applied patch from Makefile related part of
1742           #1469393: Compiler does not initialize static data
1743
1744 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
1745
1746         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
1747           for better fix of bug 1273984, compiles pic16 rand.c
1748
1749 2007-02-12 Borut Razem <borut.razem AT siol.net>
1750
1751         * src/pic16/main.c: fixed pic16 standard library directory bug
1752
1753 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
1754
1755         * src/hc08/gen.c (genSwap): fix swap regression test
1756
1757 2007-02-10 Borut Razem <borut.razem AT siol.net>
1758
1759         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
1760           with same scope
1761         * support/regression/tests/bug-1654060.c: added regression test for
1762           #1654060
1763
1764 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
1765
1766         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
1767         bit moves in return statement
1768
1769 2007-02-09 Borut Razem <borut.razem AT siol.net>
1770
1771         * src/SDCC.y: fixed bug #1654060 typedef within function causes
1772           syntax error
1773
1774 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
1775
1776         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
1777         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
1778
1779 2007-02-07 Raphael Neider <rneider AT web.de>
1780
1781         * src/pic16/devices.inc,
1782         * device/include/pic16/pic18fregs.h,
1783         * device/include/pic16/pic18f[24][34]31.h,
1784         * device/lib/pic16/libdev/pic18f[24][34]31.c,
1785         * device/lib/pic16/pics.all: added 18f[24][34]31 family
1786         * device/lib/pic16/libio/i2c.ignore: do not build i2c
1787
1788 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
1789
1790         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
1791           can this have lived here for so many years?
1792         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
1793           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
1794         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
1795
1796 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
1797
1798         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
1799         appended by loop induction must be at the very end of the eBBlock
1800
1801 2007-02-05 Kevin Vigor
1802
1803         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
1804
1805 2007-02-05 Borut Razem <borut.razem AT siol.net>
1806
1807         * support/regression/fwk/lib/timeout.c: native WIN32 port,
1808           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
1809
1810 2007-02-03 Borut Razem <borut.razem AT siol.net>
1811
1812         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
1813           applied patch #1646602 option to set default signedness of char to
1814           unsigned, added -funsigned-char command line option,
1815           thanks to Gunther Jehle
1816         * device/lib/Makefile.in: added the -f option to rm so it doesn't
1817           prompt for file deletion a few hundred times (especially the
1818           subversion files, which have ro permissions so it asks for
1819           confirmation), thanks to Simon McAuliffe;
1820           added {} + option to find in order to remove multiple files from a
1821           single rm commad
1822
1823 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1824
1825         * device/include/mcs51/SST89x5xRDx.h: Added.
1826
1827 2007-02-02 Raphael Neider <rneider AT web.de>
1828
1829         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
1830         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
1831
1832 2007-02-01 Raphael Neider <rneider AT web.de>
1833
1834         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
1835           config words again
1836
1837 2007-01-31 Borut Razem <borut.razem AT siol.net>
1838
1839         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
1840           if compiled with GCC. Thanks to Raphael Neider
1841
1842 2007-01-31 Raphael Neider <rneider AT web.de>
1843
1844         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
1845             operand names, handles name and (name + n) for all n,
1846           (sameBank): restructured, also check bank allocation policy,
1847         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
1848           (pic14_operandsAllocatedInSameBank): check whether to operands
1849             will be allocated into the same bank (i.e., section) to reduce
1850             BANKSEL overhead, queried from pcode.c:sameBank,
1851           (pic14printLocals): reintroduced clustering registers into a single
1852             section: all compiler generated symbols will now reside in one
1853             bank (per file), reducing BANKSEL overhead and code size,
1854           (showAllMemmaps): use local dbuf where possible
1855
1856 2007-01-29 Raphael Neider <rneider AT web.de>
1857
1858         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
1859           (call_libraryfunc): retrieve/create symbol and mark as used,
1860           (genFunction): mark defined functions as non-extern and add again
1861            to code memmap for later output
1862         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
1863           (pic14printLocals): reworked for new symbol emission,
1864           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
1865           showAllMemmaps): reworked symbol output using dbufs, added handling
1866             of string literals (still incomplete),
1867           (picglue): removed symbol emission, moved into showAllMemmaps,
1868           (emitSymbolSet): new workhorse for symbol output,
1869           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
1870
1871 2007-01-29 Borut Razem <borut.razem AT siol.net>
1872
1873         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
1874           component contains the extension separator.
1875
1876 2007-01-28 Borut Razem <borut.razem AT siol.net>
1877
1878         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
1879           on WIN32
1880         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
1881           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
1882           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
1883           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
1884           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
1885           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
1886           src/z80/gen.c, support/Util/MySystem.c:
1887           accept slash and backslash as directory separator on WIN32 and
1888           Cygwin ports
1889
1890 2007-01-28 Raphael Neider <rneider AT web.de>
1891
1892         * src/pic16/devices.inc,
1893         * device/include/pic16/pic18f[24][23]21.h,
1894         * device/include/pic16/pic18fregs.h,
1895         * device/lib/pic16/libdev/pic18f[24][23]21.c,
1896         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
1897         * device/lib/pic16/libio/adc.ignore,
1898         * device/lib/pic16/libio/i2c.ignore,
1899         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
1900           family, as gputils do not yet support the devices
1901         * device/lib/pic16/Makefile.subdir: ignore errors on install
1902         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
1903           headers and libraries from gputils .inc files
1904
1905 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
1906
1907         * doc/sdccman.lyx: add printf_fast_f precision limitation note
1908
1909 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
1910
1911         * doc/sdccman.lyx: add printf benchmarks
1912
1913 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
1914
1915         * device/lib/printf_fast.c: fix %c, char promoted to int
1916         * device/lib/printf_tiny.c: fix %c, char promoted to int
1917
1918 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
1919
1920         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
1921
1922 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1923
1924         * support/regression/tests/swap.c: 64 bit hosts failed
1925         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
1926
1927 2007-01-25 Raphael Neider <rneider AT web.de>
1928
1929         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
1930           based on absolute register address, patch by Alex Blond
1931
1932 2007-01-22 Raphael Neider <rneider AT web.de>
1933
1934         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
1935           emitted, do not emit them again...
1936
1937 2007-01-22 Raphael Neider <rneider AT web.de>
1938
1939         * src/regression/bank1.c, src/regression/compare6.c,
1940           src/regression/add.c: cosmetic changes
1941         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
1942         * src/pic/gen.c: fixed global zero and one,
1943           (aopForSym): removed unued code,
1944           (aopGet): assert aop is defined, check and use `index' of
1945             pCodeImmd operands (fixes #1630908),
1946         * src/pic/pcode.c (get_op): added output of generic pointer tag,
1947           (register_reassign): prevent accidental register unification,
1948           (ReuseReg): cosmetic changes (also above)
1949         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
1950           pic14emitStaticSeg): do not emit initialized data,
1951           (printIval*): replaced with working versions,
1952           (pic14createInterruptVect,picglue): use idata for initialized data,
1953             now init data should work in all modules (not only main()),
1954         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
1955
1956 2007-01-21 Borut Razem <borut.razem AT siol.net>
1957
1958         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
1959           use -fPIC or -fpic if they are supported and not ignored
1960         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
1961         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
1962
1963 2007-01-20 Borut Razem <borut.razem AT siol.net>
1964
1965         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
1966           implemented RFE #1470316: allow "$" in variable names
1967
1968 2007-01-20 Raphael Neider <rneider AT web.de>
1969
1970         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
1971
1972 2007-01-20 Raphael Neider <rneider AT web.de>
1973
1974         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
1975         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
1976         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
1977         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
1978           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
1979         * device/lib/pic/libdev/pic*.c,
1980         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
1981         * device/lib/pic/libdev/Makefile.in: show progress
1982
1983 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
1984
1985         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
1986         * support/scripts/sdcc_cygwin_mingw32,
1987         * support/scripts/sdcc_mingw32,
1988         * support/scripts/build.mak: replaced --datadir by --datarootdir for
1989         conformance with autoconf 2.6
1990
1991 2007-01-19 Raphael Neider <rneider AT web.de>
1992
1993         * src/pic/device.c (register_map): fixed list construction
1994         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
1995           (genMod): removed case for genModbits,
1996           (genModbits): removed as now unused/unimplemented
1997         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
1998
1999 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2000
2001         * support/regression/tests/swap.c: added in response to #1638622
2002         * doc/sdccman.lyx: synced version, minor changes
2003
2004 2007-01-18 Borut Razem <borut.razem AT siol.net>
2005
2006         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
2007           thanks to Gunther Jehle
2008         * src/asm.c: don't die if the file drfined in #line couldn't be opened
2009         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
2010           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
2011           use filename in lineno instead.
2012         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
2013           print the file name in ast_print()
2014
2015 2007-01-18 Borut Razem <borut.razem AT siol.net>
2016
2017         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
2018           defined in MSVC
2019         * src/SDCC.lex: stringLiteral() returns const char pointer,
2020           EOF detection in stringLiteral(), fixed asmbuf memory leak,
2021           fixed column counting
2022         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
2023           accept const char pointer as parameter
2024         * src/SDCCdwarf2.c: corrected buffer size
2025
2026 2007-01-17 Borut Razem <borut.razem AT siol.net>
2027
2028         * support/Util/dbuf_string.c: fixed for amd64
2029
2030 2007-01-15 Borut Razem <borut.razem AT siol.net>
2031
2032         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
2033           removed terminal symbol ELIPSIS, since it was never generated by the
2034           lexer and it was wrongly used in parameter_identifier_list rule
2035
2036 2007-01-15 Raphael Neider <rneider AT web.de>
2037
2038         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
2039             code page and data banking description
2040         * src/pic/genarith.c,
2041         * src/pic/gen.h: removed bit arithmetic functions,
2042             updated exit(1) to exit(EXIT_FAILURE)
2043         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
2044         * device/include/pic16/pic18f2455.h,
2045         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
2046             TRISD and TRISE, fixed/added some bit names
2047         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
2048         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
2049             updated pic18f2455.{c,h} instead of duplicating them
2050
2051 2007-01-14 Borut Razem <borut.razem AT siol.net>
2052
2053         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
2054           Cannot debug files that contain spaces in the path name
2055           by converting spaces in asm file name to underscores
2056
2057 2007-01-13 Borut Razem <borut.razem AT siol.net>
2058
2059         * doc/sdccman.lyx: fixed format errors
2060
2061 2007-01-10 Borut Razem <borut.razem AT siol.net>
2062
2063         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
2064           codeseg/constseg #pragma fail
2065         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
2066         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
2067           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
2068           suppoprt/cpp2/sdcpp.[ch]: house cleaning
2069
2070 2007-01-09 Borut Razem <borut.razem AT siol.net>
2071
2072         * get rid of diagnistic.[ch], pretty-print.[ch],
2073           c-pretty-print.[ch], ... used just for error, warning, ...
2074           message formatting
2075         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
2076           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
2077           suppoprt/cpp2/pretty-print.[ch]:
2078           removed
2079         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
2080           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
2081           suppoprt/cpp2/sdcpp.dsp:
2082           changed
2083
2084 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
2085
2086         * device/lib/printf_large.c (output_float): removed recursion,
2087           use smaller buffer on stack for mcs51,
2088           fixed bug printing 1.96
2089         * support/regression/tests/snprintf.c: added test
2090
2091 2007-01-07 Borut Razem <borut.razem AT siol.net>
2092
2093         * use dynamic memory buffers instead temporary files
2094         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
2095           added
2096         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
2097           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
2098           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
2099           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
2100           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
2101           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
2102           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
2103           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
2104           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
2105           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
2106           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
2107           support/Util/dbuf.c, support/Util/dbuf.h:
2108           modified
2109         * .version, sdcc.spec: bumped version to 2.6.4
2110
2111 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
2112
2113         * src/port.h: added TARGET_Z80_LIKE macro
2114         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
2115           output PSEG location if --xram-loc or --xstack-loc was used
2116         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
2117
2118 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
2119
2120         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
2121         * as/as_z80.dsp,   as/z80/as_z80.dsp,
2122         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
2123         * sdcc.dsw: moved project files into subdir
2124         * as/hc08/as_hc08.dsp,
2125         * as/hc08/Makefile.bcc,
2126         * as/hc08/Makefile.in,
2127         * as/mcs51/Makefile.bcc,
2128         * as/mcs51/Makefile.in,
2129         * as/z80/Makefile.bcc,
2130         * as/z80/Makefile.in,
2131         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
2132         * as/hc08/asm.h,
2133         * as/mcs51/asm.h,
2134         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
2135         * as/hc08/asmain.c,
2136         * as/hc08/assym.c,
2137         * as/mcs51/asmain.c,
2138         * as/mcs51/assym.c,
2139         * as/z80/assym.c: removed include "strcmpi.h"
2140         * as/hc08/strcmpi.c,
2141         * as/hc08/strcmpi.h,
2142         * as/mcs51/strcmpi.c,
2143         * as/mcs51/strcmpi.h,
2144         * support/Util/strcmpi.c,
2145         * support/Util/strcmpi.h: removed files
2146         * as/strcmpi.c: added as_strncmpi()
2147
2148 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2149
2150         * sdcc.dsw: Added some dependencies on project config.dsp
2151
2152 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
2153
2154         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
2155           with [di]ram_start to fix a regresion
2156
2157 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
2158
2159         * configure.in: added missing mcs51 in status output
2160         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
2161         directory
2162         * debugger/mcs51/clean.mk (distclean): remove config.h
2163         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
2164         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
2165         options.h, s-options-h and options.c
2166         * support/cpp2/clean.mk: unused, removed
2167         * Makefile.common.in,
2168         * main_in.mk,
2169         * as/Makefile.in,
2170         * as/hc08/Makefile.in,
2171         * as/hc08/clean.mk,
2172         * as/mcs51/Makefile.in,
2173         * as/mcs51/clean.mk,
2174         * as/z80/clean.mk,
2175         * as/z80/conf.mk,
2176         * as/z80/Makefile.in,
2177         * as/z80/clean.mk,
2178         * as/link/Makefile.in,
2179         * as/link/hc08/Makefile.in,
2180         * as/link/hc08/clean.mk,
2181         * as/link/mcs51/Makefile.in,
2182         * as/link/mcs51/clean.mk,
2183         * as/link/z80/Makefile.in,
2184         * as/link/z80/clean.mk,
2185         * as/link/z80/conf.mk,
2186         * debugger/mcs51/Makefile.in,
2187         * debugger/mcs51/clean.mk,
2188         * device/include/Makefile.in,
2189         * device/lib/Makefile.in,
2190         * device/lib/mcs51/Makefile.in,
2191         * device/lib/pic/Makefile.in,
2192         * device/lib/pic/Makefile.common.in,
2193         * device/lib/pic/Makefile.subdir,
2194         * device/lib/pic/Makefile.rules,
2195         * device/lib/pic16/libio/Makefile.in,
2196         * device/lib/pic16/Makefile.subdir,
2197         * device/lib/pic16/libdev/Makefile.in,
2198         * device/lib/pic16/Makefile.rules,
2199         * device/lib/pic16/Makefile.common.in,
2200         * sim/ucsim/avr.src/Makefile.in,
2201         * sim/ucsim/main_in.mk,
2202         * sim/ucsim/cmd.src/Makefile.in,
2203         * sim/ucsim/doc/Makefile.in,
2204         * sim/ucsim/gui.src/Makefile.in,
2205         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
2206         * sim/ucsim/gui.src/serio.src/Makefile.in,
2207         * sim/ucsim/hc08.src/Makefile.in,
2208         * sim/ucsim/libltdl/Makefile.in,
2209         * sim/ucsim/s51.src/Makefile.in,
2210         * sim/ucsim/sim.src/Makefile.in,
2211         * sim/ucsim/sim.src/conf.mk,
2212         * sim/ucsim/xa.src/Makefile.in,
2213         * sim/ucsim/z80.src/Makefile.in,
2214         * src/Makefile.in,
2215         * src/clean.mk,
2216         * src/port.mk,
2217         * support/cpp2/Makefile.in,
2218         * support/librarian/Makefile.in,
2219         * support/librarian/clean.mk,
2220         * support/makebin/Makefile.in,
2221         * support/makebin/clean.mk,
2222         * support/packihx/Makefile.in,
2223         * support/regression/Makefile.in,
2224         * support/regression/ports/ds390/spec.mk,
2225         * support/regression/ports/gbz80/spec.mk,
2226         * support/regression/ports/hc08/spec.mk,
2227         * support/regression/ports/mcs51/spec.mk,
2228         * support/regression/ports/mcs51-large/spec.mk,
2229         * support/regression/ports/mcs51-medium/spec.mk,
2230         * support/regression/ports/mcs51-xstack-auto/spec.mk,
2231         * support/regression/ports/pic14/spec.mk,
2232         * support/regression/ports/pic16/spec.mk,
2233         * support/regression/ports/mcs51-stack-auto/spec.mk,
2234         * support/regression/ports/ucz80/spec.mk,
2235         * support/regression/ports/xa51/spec.mk,
2236         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
2237         adding a slash after $(top_builddir) and/or adding @datarootdir@
2238         * configure.in,
2239         * debugger/mcs51/configure.in,
2240         * device/lib/pic/configure.in,
2241         * device/lib/pic16/configure.in,
2242         * sim/ucsim/configure.in,
2243         * support/cpp2/configure.in,
2244         * support/packihx/configure.in: changed AC_PREREQ to 2.60
2245         * configure,
2246         * debugger/mcs51/configure,
2247         * device/lib/pic/configure,
2248         * device/lib/pic16/configure,
2249         * sim/ucsim/configure,
2250         * support/cpp2/configure,
2251         * support/packihx/configure: generated with autoconf 2.60
2252
2253 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
2254
2255         * as/link/hc08/lkihx.c (newArea),
2256         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
2257
2258 2007-01-02 Borut Razem <borut.razem AT siol.net>
2259
2260         * doc/sdccman.lyx: documented #pragma sdcc_hash
2261         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
2262           initialized to 0
2263         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
2264
2265 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
2266
2267         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
2268         empty 'while'-loop to work correctly, see regression test 'while.c'
2269         * support/regression/tests/while.c: added
2270
2271 2007-01-01 Borut Razem <borut.razem AT siol.net>
2272
2273         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
2274           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
2275           support/cpp2/libcpp/sdcpp.c:
2276           sdcpp specific pragma/directive/option handling moved to sdcpp.c
2277         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
2278         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
2279
2280 2006-12-31 Borut Razem <borut.razem AT siol.net>
2281
2282         * SDCPP synchronized with GCC CPP release version 4.1.1,
2283           currently the latest release:
2284         * support/cpp2/libcpp, support/cpp2/libcpp/include,
2285           support/cpp2/libcpp/include/cpp-id-data.h
2286           support/cpp2/libiberty/fopen_unlocked.c
2287           support/cpp2/libiberty/md5.c
2288           support/cpp2/md5.h
2289           support/cpp2/opt-functions.awk
2290           support/cpp2/opt-gather.awk
2291           support/cpp2/optc-gen.awk
2292           support/cpp2/opth-gen.awk:
2293           added
2294         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
2295           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2296           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
2297           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
2298           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
2299           support/cpp2/diagnostic.h, support/cpp2/except.h,
2300           support/cpp2/hwint.h, support/cpp2/input.h,
2301           support/cpp2/intl.h, support/cpp2/move-if-change,
2302           support/cpp2/opts.c, support/cpp2/opts.h,
2303           support/cpp2/output.h, support/cpp2/prefix.c,
2304           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
2305           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
2306           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
2307           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
2308           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
2309           support/cpp2/version.c:
2310           modified
2311         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
2312           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
2313           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
2314           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
2315           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
2316           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
2317           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
2318           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
2319           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
2320           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
2321           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
2322           moved
2323         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
2324           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
2325           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
2326           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
2327           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
2328           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
2329           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
2330           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
2331           support/cpp2/hashtable.h, support/cpp2/line-map.c,
2332           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
2333           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
2334           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
2335           support/cpp2/system.h:
2336           deleted / moved
2337
2338 2006-12-31 Borut Razem <borut.razem AT siol.net>
2339
2340         * configure.in, configure: fixed bug #1538756: configure dies if bison
2341           and flex are not installed, 2nd try
2342
2343 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
2344
2345         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
2346         400.x for better code in RFE 899102
2347
2348 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
2349
2350         * src/SDCCpeeph.c (deadMove),
2351         * src/port.h,
2352         * src/mcs51/peep.h: renamed 'op' by 'reg'
2353         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
2354         (scan4op): small change for removeDeadMove(), added support for
2355         'callee saves' and/or PACLL function calls,
2356         (removeDeadMove): added, removes superflous 'mov r%1,%2',
2357         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
2358         left in new dispatcher mcs51DeadMove()
2359         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
2360         removeDeadMove()
2361         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
2362
2363 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2364
2365         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
2366           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
2367
2368 2006-12-30 Borut Razem <borut.razem AT siol.net>
2369
2370         * support/cpp2/spacs.h: deleted from svn
2371         * configure.in, configure: fixed bug #1538756: configure dies if bison
2372           and flex are not installed
2373
2374 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
2375
2376         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
2377           with this z80 passes printf float test when enabled
2378         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
2379
2380 2006-12-28 Borut Razem <borut.razem AT siol.net>
2381
2382         * support/cpp2/config.in, support/cpp2/configure.in,
2383           support/cpp2/configure, support/cpp2/Makefile.in:
2384           fix for the solaris build
2385
2386 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2387
2388         * src/SDCC.y (type_specifier2, pointer),
2389         * src/SDCCsymt.h,
2390         * src/SDCCsymt.c (mergeSpec, checkSClass),
2391         * support/Util/SDCCerr.c,
2392         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
2393         * support/valdiag/valdiag.py: Allow test cases to specify
2394           required language standard
2395         * support/valdiag/tests/restrict.c: New file to test restrict keyword
2396         * support/valdiag/tests/tentdecl.c: Supress empty source file error
2397
2398 2006-12-27 Borut Razem <borut.razem AT siol.net>
2399
2400         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
2401         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
2402           mbchar removed
2403         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
2404           fixed for borland C
2405         * support/cpp2/libiberty/Makefile.bcc: updated
2406         * src/pic16/main.c: fixed #pragma udata handling
2407         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
2408
2409 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
2410
2411         * src/SDCCpeeph.c: made labelHashEntry global,
2412         made pcDistance, FBYNAME static,
2413         (pcDistance): made static, use isComment and isLabel,
2414         (deadMove): added,
2415         (getLabelRef): added, extracted from labelRefCount(),
2416         (labelRefCount): use new getLabelRef(),
2417         (callFuncByName): made static, added deadMove,
2418         use isComment and isLabel,
2419         (newPeepRule): made static, set isLabel,
2420         (isLabelDefinition): added parameter isPeepRule to allow '%' in
2421         labels from peephole rules,
2422         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
2423         when isComment or isLabel is set
2424         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
2425         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
2426         to make them global
2427         * src/mcs51/peep.h: added
2428         * src/mcs51/peep.c: added, implements mcs51DeadMove()
2429         * src/port.h: added peep->deadMove to port structure
2430         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
2431         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
2432         deadMove, finally removed no. 1 and 2
2433         * src/mcs51/gen.c,
2434         * src/pic/gen.c,
2435         * src/z80/gen.c,
2436         * src/z80/ralloc.c,
2437         * src/pic16/gen.c,
2438         * src/ds390/gen.c,
2439         * src/hc08/gen.c: mark lines with isComment or isLabel
2440         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
2441         * .version,
2442         * sdcc.spec: bumped version to 2.6.3
2443
2444 2006-12-26 Borut Razem <borut.razem AT siol.net>
2445
2446         * support/cpp2/Makefile.in: added dependency on options.h
2447         * configure: regenerated
2448         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
2449         * support/cpp2/Makefile.in: added vasprintf.c
2450
2451 2006-12-25 Borut Razem <borut.razem AT siol.net>
2452
2453         * SDCPP synchronized with GCC CPP release version 3.4.6,
2454           the latest release before 4.x:
2455         * support/cpp2/Makefile.in, support/cpp2/config.h,
2456           support/cpp2/configure, support/cpp2/configure.in,
2457           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
2458           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
2459           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
2460           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
2461           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
2462           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
2463           support/cpp2/cpptrad.c, support/cpp2/except.h,
2464           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
2465           support/cpp2/hwint.h, support/cpp2/intl.h,
2466           support/cpp2/line-map.c, support/cpp2/line-map.h,
2467           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
2468           support/cpp2/output.h, support/cpp2/prefix.c,
2469           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
2470           support/cpp2/system.h, support/cpp2/version.c:
2471           modified
2472         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2473           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
2474           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
2475           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
2476           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
2477           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
2478           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
2479           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
2480           support/cpp2/move-if-change, support/cpp2/opts.c,
2481           support/cpp2/opts.h, support/cpp2/opts.sh,
2482           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
2483           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
2484           support/cpp2/win32, support/cpp2/win32/dirent.c,
2485           support/cpp2/win32/dirent.h:
2486           added
2487         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
2488         * support/cpp2/sdcpp.h: renamed from sdcc.h
2489         * sdcppinit.c: deleted
2490
2491 2006-12-23 Borut Razem <borut.razem AT siol.net>
2492
2493         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
2494           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
2495           preproc.c: an other try to fix bug #982435: introduced
2496           -pedantic-parse-number command line option and pedantic_parse_number
2497           pragma
2498
2499 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
2500
2501         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
2502            BSEG handling,
2503           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
2504            corrected overlayed areax addresses, warn about memory overlaps
2505         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
2506         * src/avr/main.c,
2507         * src/ds390/main.c,
2508         * src/hc08/main.c,
2509         * src/mcs51/main.c,
2510         * src/pic16/main.c,
2511         * src/pic/main.c,
2512         * src/xa51/main.c,
2513         * src/z80/main.c,
2514         * src/port.h: added xabs_name and iabs_name
2515         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
2516           (glue, emitMaps): create and emit maps d_abs and i_abs
2517         * src/SDCCglue.h: cosmetic changes
2518         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
2519         * src/SDCCmem.h,
2520         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
2521           (allocDefault): put absolute, initialized globals in them
2522         * support/regression/tests/absolute.c: added absolute bdata test
2523         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
2524
2525 2006-12-20 Borut Razem <borut.razem AT siol.net>
2526
2527         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
2528         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
2529           added regression test for bug #982435
2530
2531 2006-12-18 Borut Razem <borut.razem AT siol.net>
2532
2533         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
2534         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
2535           small cosmetic changes
2536         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
2537         * support/regression/tests/bug-1351710.c: added regression test
2538
2539 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2540
2541         * doc/sdccman.lyx: added the long missed iCode table
2542           "<where is figure II?>", added links to wiki
2543
2544 2006-12-17 Borut Razem <borut.razem AT siol.net>
2545
2546         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
2547           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
2548           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
2549           unified table driven pragma handling, pragma argument type checking
2550         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
2551           current one - version 1.1.3
2552         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
2553
2554 2006-12-13 Raphael Neider <rneider AT web.de>
2555
2556         * src/pic/device.h: removed AssignedMemory structure and macros
2557         * src/pic/device.c: removed global finalMapping (linker assigns
2558             memory locations),
2559           (register_map): add SFRs to remembered memRanges
2560           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
2561           assignFixedRegisters,assignRelocatableRegisters): removed,
2562           (setMaxRAM,validAddress): adapted accordingly,
2563           (pic14_hasSharebank,pic14_getSharedStack): only report and use
2564             reasonably sized sharebanks,
2565         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
2566           (allDefsOutOfRange): removed unused code,
2567         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
2568             handling
2569         * src/pic/pcode.c (register_reassign): removed recursion warning,
2570             fired far too often,
2571         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
2572             to use existing pic14_stringInSet() to avoid duplicate symbols,
2573             tidied up the code a bit,
2574           (pic14printLocals): added in symmetry to printExterns, replaces
2575             writeUsedRegs more or less,
2576           (picglue): call new pic14_printLocals(),
2577         * device/include/pic/pic*.h: removed #pragma memmap directives,
2578             information gathered from include/pic/pic14devices.txt
2579         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
2580
2581 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
2582
2583         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
2584
2585 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2586
2587         * device/include/mcs51/cc2430.h: fixed missing ';'
2588
2589 2006-12-10 Raphael Neider <rneider AT web.de>
2590
2591         * device/lib/pic16/libc/stdio/vfprintf.c,
2592         * device/lib/pic16/libc/stdio/printf_small.c,
2593         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
2594           char arguments, as char varargs are cast to int by the caller,
2595           hopefully fixes #1604915 (other device libraries are still affected)
2596
2597 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2598
2599         * src/mcs51/ralloc.c (packRegsForAssign),
2600         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
2601
2602 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
2603
2604         * device/include/malloc.h: removed init_dynamic_memory
2605         * device/lib/malloc.c: made init_dynamic_memory static and automatically
2606           call it once from malloc. Also use _sdcc_heap[] from _heap.c
2607         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
2608         * device/lib/libsdcc.lib,
2609         * device/lib/Makefile.in,
2610         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
2611         * doc/sdccman.lyx: documented use of new _heap.c
2612         * support/regression/tests/malloc.c: removed init_dynamic_memory
2613         * src/cdbFile.c(spacesToUnderscores): new function,
2614           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
2615           1068030
2616         * device/include/tinibios.h: removed defines for putchar and getchar
2617         * device/lib/ds390/Makefile.in: added putchar.c
2618         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
2619
2620 2006-12-09 Borut Razem <borut.razem AT siol.net>
2621
2622         * support/cpp2/sdcc.h: prevent multiple inclusion
2623         * support/cpp2/options.h: deleted
2624
2625 2006-12-08 Borut Razem <borut.razem AT siol.net>
2626
2627         * support/cpp2/sdcc.h: removed x*alloc() macros
2628         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
2629         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
2630           support/cpp2/sdcpp.sdc: x*alloc files added to the project
2631         * support/cpp2/system.h: moved #include "sdcc.h"
2632         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
2633           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
2634           added
2635         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
2636           -funsigned-char options
2637         * support/cpp2/sdcppmain.c: fixed bug 1611411
2638
2639 2006-12-07 Borut Razem <borut.razem AT siol.net>
2640
2641         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
2642           directive
2643
2644 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
2645
2646         * src/SDCCsymt.c (addDecl): fixed bug 1609244
2647         * src/SDCCmain.c (linkEdit): fixed bug 1609279
2648         * doc/sdccman.lyx,
2649         * .version: bumped to 2.6.2 because a) it's been a while
2650           b) the linker sources have moved c) the preprocessor is upgraded
2651
2652 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2653
2654         * support/regression/tests/snprintf.c: some checks
2655         * lib/src/printf_large.c: %bc: read char instead of int from stack
2656
2657 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
2658
2659         * device/include/mcs51/cc2430.h: inserted _XPAGE
2660
2661 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2662
2663         * device/include/mcs51/cc2430.h: added
2664
2665 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
2666
2667         * device/include/asm/default/features.h,
2668         * device/include/asm/ds390/features.h,
2669         * device/include/mcs51/at89s53.h,
2670         * device/include/ser.h,
2671         * device/include/ser_ir.h,
2672         * device/include/serial.h: changed keywords to double underscore variants,
2673           fixes bug 1590261 some more, thanks Steven Borley
2674
2675 2006-12-01 Raphael Neider <rneider AT web.de>
2676
2677         * src/pic/pcode.c (register_reassign): do not crash on recursive code
2678           but emit warning (recursion is not supported for pic14)
2679
2680 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2681
2682         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
2683         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
2684
2685 2006-11-30 Raphael Neider <rneider AT web.de>
2686
2687         * src/pic/device.c (dump_sfr): always emit symbols
2688         * src/pic/glue.c (pic14printPublics): fixed typo
2689
2690 2006-11-30 Raphael Neider <rneider AT web.de>
2691
2692         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
2693           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
2694           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
2695            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
2696            a sharebank, use a non-shared bank for the stack if none available
2697         * src/pic/device.h (struct memRange): added linked list next field,
2698           added prototypes for above functions
2699         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
2700           (typeRegWithIdx): accept fixed and unfixed stack registers
2701         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
2702           the stack, handle shared and banked stack (except for WSAVE),
2703           (insertBankSel): removed useless optimization (will never fire),
2704           (FixRegisterBanking): added optimization for devices with only one
2705           possibly aliased bank of memory, like 16f84
2706         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
2707           devices have no SHAREBANK in the linker script
2708         * device/include/pic/pic14devices.txt: documented memmap
2709         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
2710
2711 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2712
2713         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
2714           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
2715           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
2716           genhc08Code): switched most of the D (debug) macros to DD (detailed
2717           debug) macros to better control clutter in the generated .asm file.
2718         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
2719           genRightShift): fixed bug with non-constant bit shift stored to
2720           a volatile result (SF Open Discussion forum thread #1616749).
2721           Single byte case is not yet optimized.
2722
2723 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
2724
2725         * device/include/asm/mcs51/features.h,
2726         * device/include/malloc.h,
2727         * device/include/stdio.h: changed keywords to double underscore variants,
2728           fixes bug 1590261
2729
2730 2006-11-27 Borut Razem <borut.razem AT siol.net>
2731
2732         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
2733           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
2734           support/cpp2/output.h, support/cpp2/cppinit.c,
2735           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
2736           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
2737           support/cpp2/cppdefault.c, support/cpp2/system.h,
2738           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
2739           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
2740           support/cpp2/prefix.c, support/cpp2/except.h,
2741           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
2742           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
2743           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
2744           support/cpp2/version.c, support/cpp2/cppmain.c,
2745           support/cpp2/version.h, support/cpp2/hashtable.c,
2746           support/cpp2/cpperror.c:
2747           synchronized with GCC CPP release version 3.3.6,
2748           the latest where cppmain.c still exists.
2749         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
2750           support/cpp2/sdcppinit.c: added
2751
2752 2006-11-27 Borut Razem <borut.razem AT siol.net>
2753
2754         * support/cpp2/cpplex.c:
2755           fixed _asm ... _endasm handling bug, introduce with GCC CPP
2756           synchronization
2757         * support/cpp2/cpplib.c: removed definitions of unused variables
2758
2759 2006-11-26 Borut Razem <borut.razem AT siol.net>
2760
2761         * support/cpp2/libiberty.h: commented out x*alloc() declarations
2762           since they are redefined by macros in support/cpp2/sdcc.h
2763         * support/cpp2/sdcc.h: x*alloc macro redefinition
2764
2765 2006-11-25 Borut Razem <borut.razem AT siol.net>
2766
2767         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
2768           support/cpp2/configure, support/cpp2/Makefile.in,
2769           support/cpp2/cppfiles.c, support/cpp2/output.h,
2770           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
2771           support/cpp2/config.h, support/cpp2/cpplib.h,
2772           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
2773           support/cpp2/cppdefault.c, support/cpp2/config.in,
2774           support/cpp2/system.h, support/cpp2/cpplex.c,
2775           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
2776           support/cpp2/cppdefault.h, support/cpp2/prefix.c
2777           support/cpp2/hwint.h, support/cpp2/mbchar.h,
2778           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
2779           support/cpp2/configure.in, support/cpp2/intl.h,
2780           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
2781           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
2782           support/cpp2/version.c, support/cpp2/cppmain.c,
2783           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
2784           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
2785           support/cpp2/cpperror.c,
2786           support/cpp2/libiberty/safe-ctype.c,
2787           support/cpp2/libiberty/safe-ctype.h,
2788           support/cpp2/libiberty/splay-tree.c,
2789           support/cpp2/libiberty/obstack.c,
2790           support/cpp2/libiberty/lbasename.c,
2791           support/cpp2/libiberty/splay-tree.h,
2792           support/cpp2/libiberty/obstack.h:
2793           synchronized with GCC CPP release version 3.2.3,
2794           the latest before integration of cpp into gcc
2795         * support/cpp2/except.h, support/cpp2/line-map.c,
2796           support/cpp2/line-map.h,
2797           support/cpp2/libiberty/hex.c,
2798           support/cpp2/libiberty/concat.c,
2799           support/cpp2/libiberty/filenames.h: added
2800         * support/cpp2/intl.c: deleted
2801
2802 2006-11-24 Borut Razem <borut.razem AT siol.net>
2803
2804         * src/SDCC.y: enabled compilation of empty source file
2805         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
2806           "ISO C forbids an empty source file"
2807         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
2808           if all the code is ifdefed out.
2809
2810 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2811
2812         * src/hc08/gen.c (genPcall): fix for bug #1601032
2813
2814 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
2815
2816         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
2817         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
2818         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
2819         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
2820         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
2821         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
2822         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
2823         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
2824         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
2825         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
2826         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
2827         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
2828         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
2829         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
2830         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
2831           Renamed to all upper case as per the standard set by SiLabs
2832
2833 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
2834
2835         * device/include/mcs51/C8051F520.h: new, added
2836         * device/include/mcs51/compiler.h: added link about predefined macros
2837
2838 2006-11-23 Raphael Neider <rneider AT web.de>
2839
2840         * src/regression/Makefile: add -L path to fresh library
2841         * src/regression/simulate: emphasize FAILED output
2842         * src/regression/create_stc: output _failures from gpsim
2843         * src/regression/compare4.c,
2844         * src/regression/rotate6.c: fixed char literals,
2845           all compile, all run =8-D
2846
2847         * src/pic/pcode.h: added isPCASMDIR macro
2848         * src/pic/gen.c (genAnd): fixed bit offset
2849         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
2850           packBits): unified register numbering schemes,
2851           (newReg): do not insert stack registers into hash table,
2852           (initStack): unpinned pseudo stack, simplified,
2853           (typeRegWithIdx): fixed retrieval of stack registers,
2854         * src/pic/pcode.c (addpCodeComment,sameBank): added,
2855           (pCodeReplace): removed invalid assertion,
2856           (insertPCodeInstruction): fixed newly added labels,
2857           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
2858           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
2859           DumpFlow): removed unsed (broken?) code,
2860           (insertBankSel): prevent STATUS from being BANKSELed,
2861           (FixRegisterBanking): rewritten from scratch, implemented generic
2862             optimizations (suppress BANKSELs to same register and to registers
2863             present in all banks),
2864           (AnalyzeBanking): update flow after BANKSELection
2865
2866         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
2867             sharebank, let linker place it, mark STKxx symbols as emitted
2868
2869 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2870
2871         * src/regression/arrays.c,
2872         * src/regression/bank1.c,
2873         * src/regression/bool2.c,
2874         * src/regression/compare7.c,
2875         * src/regression/compare8.c,
2876         * src/regression/compare9.c,
2877         * src/regression/compare10.c,
2878         * src/regression/configword.c,
2879         * src/regression/for.c,
2880         * src/regression/mult1.c,
2881         * src/regression/pointer1.c,
2882         * src/regression/rotate6.c,
2883         * src/regression/string1.c,
2884         * src/regression/struct1.c,
2885         * src/regression/Makefile: make PIC14 regression tests run again
2886           (3 fail, 6 won't compile)
2887
2888 2006-11-21 Raphael Neider <rneider AT web.de>
2889
2890         * device/include/pic16/pic18f4550.h,
2891         * device/include/pic16/pic18f4455.h,
2892         * device/lib/pic16/libdev/pic18f4550.c,
2893         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
2894         * configure.in: removed superfluous closing bracket
2895
2896 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2897
2898         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
2899           always positive.
2900
2901 2006-11-21 Raphael Neider <rneider AT web.de>
2902
2903         * src/pic/device.{c,h}: added pic14_getPIC()
2904         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
2905           (genAnd): added PIC code for one case, fixes #1597044
2906         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
2907           SFRs that are present in all banks (e.g., STATUS)
2908
2909 2006-11-20 Raphael Neider <rneider AT web.de>
2910
2911         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
2912           INCFSZ/INCFSZW and declared them as changing Z bit,
2913           (insertPCodeInstruction): correctly invert the above instructions,
2914           fixes #1599333,
2915           (DoBankSelect): don't panic on po_immediates
2916
2917 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
2918
2919         * as/link/aslink.h,
2920         * as/link/mcs51/lkihx.c (newArea),
2921         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
2922         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
2923
2924 2006-11-11 Raphael Neider <rneider AT web.de>
2925
2926         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
2927           bitfield symbols, fixes #1579535 (once more...).
2928
2929 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2930
2931         * support/regression/generate-cases.py,
2932         * support/regression/fwk/include/testfwk.h,
2933         * support/regression/fwk/lib/testfwk.c: used code pointers,
2934           (about 50kByte less code generated for mcs51)
2935
2936 2006-11-06 Borut Razem <borut.razem AT siol.net>
2937
2938         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
2939           debugger/mcs51/configure: fixed failed check because the function
2940           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
2941           who submitted the patch for gpsim.
2942         * debugger/mcs51/configure.in: removed the result message
2943         * debugger/mcs51/Makefile.in: fixed the config.status warning
2944           "... seems to ignore the --datarootdir setting"
2945
2946 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
2947
2948         * device/include/mcs51/c8051f020.h,
2949         * device/include/mcs51/c8051f040.h,
2950         * device/include/mcs51/c8051f060.h,
2951         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
2952         * src/z80/gen.c (gencjneshort),
2953         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
2954
2955 2006-10-31 Borut Razem <borut.razem AT siol.net>
2956
2957         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
2958           debugger/mcs51/configure: get readline version
2959
2960 2006-10-30 Borut Razem <borut.razem AT siol.net>
2961
2962         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
2963         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
2964           debugger/mcs51/configure: locate readline even when cross compiling
2965         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
2966
2967 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2968
2969         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
2970           serial port.
2971
2972 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
2973
2974         * device/include/malloc.h,
2975         * device/lib/calloc.c,
2976         * device/lib/free.c,
2977         * device/lib/malloc.c,
2978         * device/lib/realloc.c: moved definition of struct into sources
2979         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
2980
2981 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
2982
2983         * as/asx8051.dsp: corrected output directories
2984         * as/link/hc08: new directory for hc08 linker
2985         * as/hc08/aslink.h,             as/link/aslink.h,
2986         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
2987         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
2988         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
2989         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
2990         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
2991         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
2992         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
2993         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
2994         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
2995         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
2996         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
2997         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
2998         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
2999         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
3000         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
3001         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
3002         * as/link/hc08/conf.mk,
3003         * configure,
3004         * configure.in,
3005         * Makefile.in,
3006         * sdcc.dsw: moved hc08 linker to as/link/hc08
3007         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
3008         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
3009         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
3010         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
3011         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
3012         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
3013         * as/link/mcs51/aslink.dsp,
3014         * as/link/mcs51/Makefile.in: factored out the common files
3015         * as/hc08/lkstore.c: deleted, use the one already in as/link/
3016         * as/clean.mk: extra cleaning common files
3017         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
3018         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
3019         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
3020
3021 2006-10-29 Raphael Neider <rneider AT web.de>
3022
3023         * src/pic/ralloc.c (newReg): create aliases for registers with
3024           multiple names to fix #1579535 and #1584001,
3025           (regWithIdx,dirregWithName): resolve aliases on lookup
3026         * src/pic/pcode.c (DoBankSelect): die with error message on failing
3027           bankselect
3028         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
3029           to prevent build errors on small devices
3030
3031 2006-10-28 Raphael Neider <rneider AT web.de>
3032
3033         * src/pic/gen.c (genFunction,genCall): drop "same code page"
3034           assumption within interrupt handlers, fixes #1584940
3035         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
3036           "emitted" to avoid emitting them again in udata
3037
3038 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3039
3040         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
3041         Removed.
3042
3043 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3044
3045         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
3046         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
3047         on/off CR to CRLF conversion.
3048
3049 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3050
3051         * doc/sdccman.lyx: updated IRQ section
3052
3053 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3054
3055         * device/lib/serial_io.c: removed
3056         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
3057         replacements for serial_io.c
3058
3059 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
3060
3061         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
3062
3063 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3064
3065         * device/lib/serial_io.c: Default putchar() and getchar() for
3066           mcs51 uses serial port.
3067
3068 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
3069
3070         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
3071
3072 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3073
3074         * support/regression/ports/mcs51/support.c: smaller
3075         _sdcc_external_startup()
3076         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
3077
3078 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
3079
3080         * device/lib/gbz80/crt0.s,
3081         * device/lib/gbz80/crt0_rle.s,
3082         * device/lib/gbz80/div.s,
3083         * device/lib/gbz80/fstubs.s,
3084         * device/lib/gbz80/heap.s,
3085         * device/lib/gbz80/mul.s,
3086         * device/lib/gbz80/putchar.s,
3087         * device/lib/gbz80/stubs.s,
3088         * device/lib/z80/crt0.s,
3089         * device/lib/z80/crt0_rle.s,
3090         * device/lib/z80/div.s,
3091         * device/lib/z80/fstubs.s,
3092         * device/lib/z80/heap.s,
3093         * device/lib/z80/mul.s,
3094         * device/lib/z80/putchar.s,
3095         * device/lib/z80/stubs.s: reverted, I was mistaken
3096
3097 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3098
3099         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
3100         * support/regression/ports/mcs51/support.c: removed race
3101         condition on TI in _putchar allowing to use serial port mode 0
3102
3103 2006-10-20 Borut Razem <borut.razem AT siol.net>
3104
3105         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
3106
3107 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
3108
3109         * device/lib/gbz80/crt0.s,
3110         * device/lib/gbz80/crt0_rle.s,
3111         * device/lib/gbz80/div.s,
3112         * device/lib/gbz80/fstubs.s,
3113         * device/lib/gbz80/heap.s,
3114         * device/lib/gbz80/mul.s,
3115         * device/lib/gbz80/putchar.s,
3116         * device/lib/gbz80/stubs.s,
3117         * device/lib/z80/crt0.s,
3118         * device/lib/z80/crt0_rle.s,
3119         * device/lib/z80/div.s,
3120         * device/lib/z80/fstubs.s,
3121         * device/lib/z80/heap.s,
3122         * device/lib/z80/mul.s,
3123         * device/lib/z80/putchar.s,
3124         * device/lib/z80/stubs.s: removed all leading underscores from area names
3125
3126 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
3127
3128         * support/regression/ports/mcs51/support.c: use highest baudrate so the
3129           regression tests are not waiting in the simulator for simulated
3130           transmission of debug output
3131
3132 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3133
3134         * device/lib/printf_large.c: slightly smaller
3135         * doc/sdccman.lyx: do not use spaces within html links
3136
3137 2006-10-16 Borut Razem <borut.razem AT siol.net>
3138
3139         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
3140           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
3141           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
3142           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
3143           debugger/mcs51/configure:
3144           [ 1185668 ] add gnu readline support to sdcdb - enabled
3145
3146 2006-10-16 Raphael Neider <rneider AT web.de>
3147
3148         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
3149           fixes #1577882, removes close to all banking optimizations
3150
3151 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
3152
3153         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
3154           variables in code memory
3155         * support/regression/tests/absolute.c: added test for this
3156
3157 2006-10-15 Raphael Neider <rneider AT web.de>
3158
3159         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
3160           devices,
3161           (BankSelect): emit BANKSEL before touching linker-placed regs,
3162           fixes #1570934
3163
3164 2006-10-10 Raphael Neider <rneider AT web.de>
3165
3166         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
3167         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
3168         * src/pic/main.c (_pic14_parseOptions),
3169         * src/pic/main.h: mostly reverted to previous state, now use results
3170             from SDCCmain.c's argument parsing
3171
3172 2006-10-10 Borut Razem <borut.razem AT siol.net>
3173
3174         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
3175           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
3176           [ 1185668 ] add gnu readline support to sdcdb -
3177           prepared for READLINE, not enabled yet,
3178           thanks to <tal.bav AT gmail.com>
3179
3180 2006-10-10 Raphael Neider <rneider AT web.de>
3181
3182         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
3183         * src/pic16/devices.inc,
3184         * device/include/pic16 (pic18f[24]620.h),
3185         * device/include/pic18fregs.h,
3186         * device/lib/pic16/pics.all,
3187         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
3188             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
3189             Gary Plumbridge and Anton Strobl
3190
3191 2006-10-10 Raphael Neider <rneider AT web.de>
3192
3193         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
3194           --stack-siz=NUM options to configure the argument passing stack
3195         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
3196         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
3197           (pic14_getSharebankSize): obey --stack-siz=NUM,
3198           (pic14_getSharebankAddress): obey --stack-loc=NUM
3199
3200 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3201
3202         * doc/sdccman.lyx: added to the manual
3203         * doc/figures/ddd_example.png: added (neither pdflatex nor
3204         most browsers seem to like the .eps file)
3205
3206 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
3207
3208         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
3209         to /tmp and /var/tmp acc. LSB
3210         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
3211         RESULT_TYPE_IFX
3212         * support/regression/tests/onebyte.c: added test
3213
3214 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3215
3216         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
3217
3218 2006-10-05 Borut Razem <borut.razem AT siol.net>
3219
3220         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
3221           thanks to dfulab:
3222           - sdcc.dsw: changed property eol-style to CRLF
3223           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
3224
3225 2006-10-04 Raphael Neider <rneider AT web.de>
3226
3227         * device/include/pic/{pic16f84.h,pic16f84a.h},
3228         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
3229           from patch #1522504, thanks to Robas Teodor
3230
3231 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
3232
3233         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
3234           fixes bug 1566015
3235
3236 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
3237
3238         * src/pic16/glue.c (pic16emitMaps),
3239         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
3240         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
3241         * device/lib/pic16/libc/string/memcpypgm2ram.c,
3242         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
3243           Philipp Krause
3244         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
3245         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
3246
3247 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3248
3249         * support/librarian/sdcclib.c: Added option -l.
3250         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
3251           usage totals.
3252         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
3253           using Windows command prompt.
3254
3255 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
3256
3257         * device/lib/libsdcc.lib: added module rand
3258         * src/ds390/ralloc.c (rematStr),
3259         * src/hc08/ralloc.c (rematStr),
3260         * src/mcs51/ralloc.c (rematStr),
3261         * src/z80/ralloc.c (rematStr): made output more consistent
3262         * src/mcs51/gen.c: cosmetic changes
3263
3264 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
3265
3266         * src/port.h: added mem.cabs_name to PORT
3267         * src/ds390/main.c,
3268         * src/hc08/main.c,
3269         * src/mcs51/main.c,
3270         * src/pic16/main.c,
3271         * src/pic/main.c,
3272         * src/xa51/main.c,
3273         * src/z80/main.c: added cabs_name initializers
3274         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
3275           constants
3276           (emitMaps): emit absolutes in code memory into cabs_name
3277         * src/SDCCmem.c,
3278         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
3279         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
3280         * support/regression/fwk/include/testfwk.h: added define for at
3281         * support/regression/tests/absolute.c: added, new
3282
3283 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
3284
3285         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
3286           optimizations, see also patch 887161 by Stas Sergeev
3287         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
3288           to be necessary anymore,
3289           (102, 103, 104, 127): renamed all occurances of bp to _bp
3290
3291 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
3292
3293         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
3294           thanks Weston T. Schmidt for patch 1555221
3295         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
3296         * src/SDCCicode.c(geniCodeMultiply): small optimization
3297
3298 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
3299
3300         * device/include/stdlib.h: added rand prototypes
3301         * device/lib/rand.c: new, added
3302         * device/lib/Makefile.in: added rand.c
3303         * src/z80/peeph.def,
3304         * src/z80/peeph-gbz80.def,
3305         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
3306
3307 2006-09-20 Raphael Neider <rneider AT web.de>
3308
3309         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
3310
3311 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
3312
3313         * as/link/aslink.h: cosmetic changes
3314         * as/link/mcs51/Makefile.in,
3315         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
3316
3317 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
3318
3319         * as/link/aslink.h,
3320         * as/link/mcs51/aslink.h,
3321         * as/link/z80/aslink.h: merged and moved to as/link/
3322         * as/link/lkstore.c,
3323         * as/link/mcs51/lkstore.c: moved to as/link/
3324         * as/link/clean.mk: remove *.o
3325         * as/link/mcs51/alloc.h: deleted
3326         * as/link/mcs51/lkarea.c: added lnksect prototype
3327         * as/link/mcs51/lkdata.c,
3328         * as/link/mcs51/lklex.c,
3329         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
3330         * as/link/mcs51/lkmem.c,
3331         * as/link/mcs51/lknoice.c: removed include strcmpi.h
3332         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
3333         * as/link/mcs51/aslink.dsp,
3334         * as/link/mcs51/Makefile.aslink,
3335         * as/link/mcs51/Makefile.bcc,
3336         * as/link/mcs51/Makefile.in: updated for moved files
3337         * as/link/z80/lkarea.c,
3338         * as/link/z80/lkhead.c,
3339         * as/link/z80/lklex.c,
3340         * as/link/z80/lklibr.c,
3341         * as/link/z80/lklist.c,
3342         * as/link/z80/lkmain.c,
3343         * as/link/z80/lkrloc.c,
3344         * as/link/z80/lksym.c: synced with mcs51
3345         * as/link/z80/lkdata.c,
3346         * as/link/z80/lkeval.c,
3347         * as/link/z80/lkihx.c,
3348         * as/link/z80/lks19.c: cosmetic changes
3349         * as/link/z80/Makefile.in,
3350         * as/link/z80/linkgbz80.dsp,
3351         * as/link/z80/linkz80.dsp: updated for moved files
3352
3353 2006-09-16 Borut Razem <borut.razem AT siol.net>
3354
3355         * debugger/mcs51/sdcdb.c: partially fixed
3356           [ 1203664 ] sdcdb fails to open files w. two "." periods
3357         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
3358           debugger/mcs51/symtab.h: fixed indenting
3359         * configure.in, configure: up to date with latest Maarten's changes
3360
3361 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
3362
3363         as/link/mcs51
3364         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
3365         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
3366         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
3367         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
3368         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
3369         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
3370         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
3371         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
3372         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
3373         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
3374         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
3375         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
3376         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
3377         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
3378         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
3379         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
3380         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
3381         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
3382         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
3383         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
3384         as/link/mcs51/alloc.h,
3385         as/link/mcs51/clean.mk,
3386         as/link/mcs51/conf.mk,
3387         as/link/mcs51/Makefile.bcc,
3388         as/link/mcs51/Makefile.in,
3389         as/link/mcs51/readme.390,
3390         as/link/mcs51/strcmpi.c,
3391         as/link/mcs51/strcmpi.h,
3392         as/mcs51/clean.mk,
3393         as/mcs51/Makefile.bcc,
3394         as/mcs51/Makefile.in,
3395         configure,
3396         Makefile.in,
3397         sdcc.dsw: moved mcs51 linker to as/link/mcs51
3398
3399 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
3400
3401         * as/link,
3402         * as/link/Makefile.in,
3403         * as/link/z80/linkgbz80.dsp,
3404         * as/link/z80/linkz80.dsp,
3405         * configure,
3406         * link,
3407         * link/clean.mk,
3408         * link/Makefile.in,
3409         * link/README,
3410         * link/z80,
3411         * link/z80/aslink.h,
3412         * link/z80/clean.mk,
3413         * link/z80/conf.mk,
3414         * link/z80/linkgbz80.dsp,
3415         * link/z80/linkz80.dsp,
3416         * link/z80/lkarea.c,
3417         * link/z80/lkdata.c,
3418         * link/z80/lkeval.c,
3419         * link/z80/lkgb.c,
3420         * link/z80/lkgg.c,
3421         * link/z80/lkhead.c,
3422         * link/z80/lkihx.c,
3423         * link/z80/lklex.c,
3424         * link/z80/lklibr.c,
3425         * link/z80/lklist.c,
3426         * link/z80/lkmain.c,
3427         * link/z80/lkrloc.c,
3428         * link/z80/lks19.c,
3429         * link/z80/lksym.c,
3430         * link/z80/Makefile.in,
3431         * Makefile.in,
3432         * sdcc.dsw: moved link/ to as/link/
3433
3434 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
3435
3436         * as/mcs51/i51mch.c (machine): fixed warning
3437
3438 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
3439
3440         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
3441
3442 2006-09-09 Borut Razem <borut.razem AT siol.net>
3443
3444         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
3445           sdcdb WIN32 native port
3446         * src/clean.mk: fixed
3447
3448 2006-09-08 Borut Razem <borut.razem AT siol.net>
3449
3450         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
3451
3452 2006-09-08 Raphael Neider <rneider AT web.de>
3453
3454         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
3455         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
3456             to gplink to disable processor mismatch warning and to allow
3457             the use of devices with only aliased (shared) memory banks,
3458           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
3459
3460 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3461
3462         * doc/sdccman.lyx: Some re-formating plus example on using
3463           #pragma preproc_asm +/-
3464
3465 2006-09-07 Borut Razem <borut.razem AT siol.net>
3466
3467         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
3468           section
3469
3470 2006-09-06 Borut Razem <borut.razem AT siol.net>
3471
3472         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
3473           line at sdcc.nsi:153
3474         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
3475
3476 2006-09-05 Borut Razem <borut.razem AT siol.net>
3477
3478         * configure.in, configure: support for winsock2
3479         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
3480           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
3481           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
3482           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
3483           debugger/mcs51/symtab.h: sdcdb WIN32 native port
3484
3485 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
3486
3487         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
3488           and OP_DEFS
3489         * support/regression/tests/bug1551947.c: new, added
3490         * src/SDCCsymt.h: strings are char* not byte*
3491
3492 2006-09-05 Raphael Neider <rneider AT web.de>
3493
3494         * device/lib/pic16/libdev/pic18f4550.c,
3495           device/include/pic16/pic18f4550.h: added PORTD/TRISD
3496             declarations/definitions from patch #1520949
3497
3498 2006-09-05 Raphael Neider <rneider AT web.de>
3499
3500         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
3501           byte-aligned bitfields, fixes #1539278
3502
3503 2006-09-05 Raphael Neider <rneider AT web.de>
3504
3505         * src/pic/gen.c (genReceive): skip unreferenced arguments,
3506           fixes #1544120
3507
3508 2006-09-04 Borut Razem <borut.razem AT siol.net>
3509
3510         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
3511         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
3512           -mno-cygwin is a part of the compiler name
3513         * support/scripts/sdcc_mingw32: don't disable ucsim
3514
3515 2006-09-03 Borut Razem <borut.razem AT siol.net>
3516
3517         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
3518         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
3519
3520 2006-09-03 Raphael Neider <rneider AT web.de>
3521
3522         * src/pic/ralloc.c,
3523         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
3524           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
3525           fixes #1550049
3526
3527 2006-09-01 Borut Razem <borut.razem AT siol.net>
3528
3529         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
3530           to make ppc-osx happy
3531
3532 2006-08-31 Borut Razem <borut.razem AT siol.net>
3533
3534         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
3535         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
3536         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
3537         * support/regression/ports/ds390/spec.mk,
3538           support/regression/ports/mcs51/spec.mk,
3539           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
3540           To run regression tests in mingw environment:
3541           make DEV_NULL=NUL CC=gcc
3542
3543 2006-08-30 Borut Razem <borut.razem AT siol.net>
3544
3545         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
3546           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
3547           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
3548           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
3549           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
3550           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
3551           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
3552           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
3553           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
3554           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
3555           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
3556           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
3557           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
3558           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
3559           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
3560           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
3561           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
3562           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
3563           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
3564           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
3565           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
3566           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
3567           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
3568           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
3569           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
3570           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
3571           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
3572           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
3573           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
3574           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
3575           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
3576           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
3577           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
3578           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
3579           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
3580           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
3581           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
3582           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
3583           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
3584           ucsim WIN32 native port
3585
3586 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3587
3588         * doc/sdccman.lyx: added note on dynamic memory heap initialization
3589
3590 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
3591
3592         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
3593         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
3594
3595 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
3596
3597         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
3598         * support/regression/tests/bug1546986.c: new, added
3599         * as/mcs51/.cvsignore,
3600         * debugger/mcs51/.cvsignore,
3601         * src/.cvsignore: deleted
3602
3603 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3604
3605         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
3606           definitions)
3607
3608 2006-08-20 Borut Razem <borut.razem AT siol.net>
3609
3610         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
3611           removed cl_listen_console::match(), cl_console::match(),
3612           restructured cl_commander::proc_input()
3613
3614 2006-08-16 Borut Razem <borut.razem AT siol.net>
3615
3616         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
3617           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
3618           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
3619
3620 2006-08-14 Borut Razem <borut.razem AT siol.net>
3621
3622         * support/regression/Makefile.in,
3623           support/regression/ports/pic14/gpsim.cmd,
3624           support/regression/ports/pic14/spec.mk,
3625           support/regression/ports/pic14/support.c:
3626           added pic14 regression test
3627
3628 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
3629
3630         * as/doc/asxhtm.html: documented changed ABS behaviour
3631         * as/doc/README: fixed some typos
3632
3633 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
3634
3635         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
3636           not defined on host
3637
3638 2006-08-12 Borut Razem <borut.razem AT siol.net>
3639
3640         * support/regression/fwk/include/testfwk.h,
3641           support/regression/fwk/lib/testfwk.c,
3642           support/regression/generate-cases.py,
3643           support/regression/Makefile.in:
3644           regression test framework does not depend on function pointers and
3645           variable arguments
3646
3647 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
3648
3649         * device/include/stddef.h: c temporary hack to fix bug 1518273
3650
3651 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3652
3653         * device/include/mcs51/cc2510fx.h: added
3654         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
3655           to projects.
3656
3657 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
3658
3659         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
3660         * as/z80/Makefile.in: added strcmpi.c
3661         * as/z80/z80adr.c: added upper case registers and lower case conditionals
3662         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
3663
3664 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
3665
3666         * device/lib/gbz80/asm_strings.s,
3667         * device/lib/gbz80/crt0_rle.s,
3668         * device/lib/gbz80/div.s,
3669         * device/lib/gbz80/mul.s,
3670         * device/lib/gbz80/shift.s,
3671         * device/lib/z80/asm_strings.s,
3672         * device/lib/z80/crt0_rle.s,
3673         * device/lib/z80/div.s,
3674         * device/lib/z80/mul.s,
3675         * device/lib/z80/shift.s: changed to all lower case menmonics except the
3676           flags which are all upper case
3677
3678 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
3679
3680         * as/z80/asm.h: made CASE_SENSITIVE 1
3681         * link/z80/aslink.h: made CASE_SENSITIVE 1
3682         * src/z80/gen.c (throughout): made all conditionals upper case
3683         * support/regression/tests/bug1503067.c: new
3684
3685 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
3686
3687         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
3688           (shiftIntoPair): added case 2 for PAIR_IY,
3689           (setupToPreserveCarry): replaced parameters with iCode and check if
3690            PAIR_DE is in use to fix bug 1399290,
3691           (genPlus, genMinus): updated call to setupToPreserveCarry
3692         * support/regression/tests/bug1399290.c: new
3693
3694 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
3695
3696         * device/lib/Makefile.in (Z80SOURCES): enabled float support
3697         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
3698         * src/ds390/gen.c (shiftRLong),
3699         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
3700         * src/mcs51/gen.c (sameReg): changed to sameByte,
3701           (xch_a_aopGet): new,
3702           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
3703            shiftRLong): fixed bug 1533966
3704         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
3705           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
3706         * support/regression/Makefile.in: disabled z80, enabled ucz80
3707         * support/regression/tests/float_trans.c: enabled test for z80 and host
3708         * support/regression/tests/shifts2.c: new, for testing bug 1533966
3709
3710 2006-08-01 Borut Razem <borut.razem AT siol.net>
3711
3712         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
3713           comparison is always false due to limited range of data type
3714           on PPC64 machine (openpower-linux1) where "char = unsigned char"
3715
3716 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
3717
3718         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
3719         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
3720         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
3721         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
3722
3723 2006-07-31 Borut Razem <borut.razem AT siol.net>
3724
3725         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
3726           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
3727           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
3728           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
3729           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
3730           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
3731           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
3732           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
3733           enable ucsim mingw compilation. Serial port is disabled,
3734           since it uses termios.h API, which is not available on native
3735           WIN32
3736
3737 2006-07-31 Borut Razem <borut.razem AT siol.net>
3738
3739         * Small Device C Compiler 2.6.0 released
3740         * support/scripts/sdcc.nsi: added FULL_DOC option
3741         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
3742
3743 2006-07-28 Borut Razem <borut.razem AT siol.net>
3744
3745         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
3746         * doc/INSTALL.txt: updated
3747
3748 2006-07-27 Borut Razem <borut.razem AT siol.net>
3749
3750         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
3751           device/lib/pic/libdev/Makefile.in: fixed bug
3752           [ 1438354 ] pic libsdcc: distclean doesn't work
3753         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
3754           device/lib/pic16/libio/Makefile.in: fixed bug
3755           [ 1438344 ] pic16 lib: clean doesn't work properly
3756         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
3757
3758 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
3759
3760         * device/lib/pic/libsdcc/fsdiv.c,
3761         * device/lib/pic/libsdcc/fsmul.c,
3762         * device/lib/pic16/libsdcc/float/fsdiv.c,
3763         * device/lib/pic16/libsdcc/float/fsmul.c,
3764         * device/lib/_fsdiv.c,
3765         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
3766         * support/regression/tests/bug1520966.c: added
3767         * doc/knownbugs.html: removed [ 1520966 ] from the list
3768
3769 2006-07-25 Borut Razem <borut.razem AT siol.net>
3770
3771         * configure.in, configure, sdccconf_in.h: fixed bug
3772           [ 1519095 ] regression test onebyte.c fails on ppc64 host
3773         * doc/knownbugs.html: removed [ 1519095 ] from the list
3774
3775 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
3776
3777         * doc/knownbugs.html: added, contains list of known bugs at release
3778         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
3779
3780 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
3781
3782         * device/include/mcs51/compiler.h: added SFRX for xdata based special
3783           function registers and corrected defaults with additional warning
3784         * device/lib/malloc.c: cosmetic changes
3785         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
3786         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
3787           (fillGaps): and used it
3788
3789 2006-07-20 Raphael Neider <rneider AT web.de>
3790
3791         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
3792           output unless SDCCPICDEBUG is set
3793         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
3794           output if SILENT is set
3795
3796 2006-07-11 Borut Razem <borut.razem AT siol.net>
3797
3798         * doc/README.txt: updated
3799
3800 2006-07-10 Borut Razem <borut.razem AT siol.net>
3801
3802         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
3803           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
3804           in WIN32 installation
3805         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
3806           release candidate 1
3807
3808 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
3809
3810         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
3811         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
3812
3813 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
3814
3815         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
3816
3817 2006-07-06 Borut Razem <borut.razem AT siol.net>
3818
3819         * support/regression/tests/bitfields.c:
3820           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
3821         * support/regression/tests/constantRange.c:
3822           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
3823
3824 2006-07-04 Borut Razem <borut.razem AT siol.net>
3825
3826         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
3827           src/port.mk,
3828           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
3829           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
3830           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
3831           reverted changes from 2006-07-03
3832         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
3833         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
3834           added CPPFLAGS, used by the host port
3835
3836 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
3837
3838         * support/regression/valdiag/tests/switch.c,
3839         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
3840         * support/regression/tests/libmullong.c: fixed for host
3841         * support/regression/ports/host/spec.mk: disable all warnings for host,
3842         SDCC runs with --less-pedantic too
3843
3844 2006-07-03 Borut Razem <borut.razem AT siol.net>
3845
3846         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
3847           defined CPPFLAGS
3848         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
3849         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
3850           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
3851           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
3852           include ../port.mk
3853         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
3854           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
3855           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
3856           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
3857
3858 2006-07-02 Raphael Neider <rneider AT web.de>
3859
3860         * src/pic16/devices.inc,
3861         * device/include/pic16/pic18fregs.h,
3862         * device/include/pic16/pic18f4550.h,
3863         * device/lib/pic16/pics.all,
3864         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
3865
3866 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
3867
3868         * as/hc08/lkaomf51.c (OutputName),
3869         * as/mcs51/lkaomf51.c (OutputName),
3870         * as/z80/asmain.c (asmbl),
3871         * src/ds390/main.c (asmLineNodeFromLineNode),
3872         * src/hc08/ralloc.c (hc08_assignRegisters),
3873         * src/mcs51/main.c (asmLineNodeFromLineNode),
3874         * src/xa51/ralloc.c (checkRegMask),
3875         * src/xa51/gen.c (emitcode),
3876         * src/z80/gen.c (_emit2),
3877         * src/SDCCast.c (searchLitOp),
3878         * src/SDCCglobl.h,
3879         * support/packihx/packihx.c,
3880         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
3881         * src/ds390/gen.c (aopPutUsesAcc),
3882         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
3883         * support/regression/tests/libmullong.c (mullong_wrapper),
3884         * src/SDCCsymt.c (powof2),
3885         * src/SDCCast.c,
3886         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
3887         * src/SDCCsymt.h: added TYPE_TARGET_*
3888         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
3889         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
3890         SDCCast because 1) header problems 2) this is the right place
3891         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
3892         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
3893         prototype
3894
3895 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
3896
3897         * src/SDCCicode.h: removed buggy semicolon in unused macro
3898         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
3899         search for previous definiton of auto symbols too,
3900         (findPrevUse): fixed logic of emitWarnings
3901
3902 2006-06-26 Raphael Neider <rneider AT web.de>
3903
3904         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
3905           PCLATH and PCLATU on interrupts, potentially fixes #1505141
3906
3907 2006-06-25 Raphael Neider <rneider AT web.de>
3908
3909         * device/lib/pic/libm: NEW, added math library functions
3910         * device/lib/pic/libsdcc: NEW; added float support functions
3911         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
3912         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
3913           NEW, added math related headers
3914         * device/include/asm/pic/features.h: NEW
3915         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
3916           (popGet): allow larger offsets for AOP_PCODE,
3917           (genDataPointerSet): handle literals explicitly, more debug output,
3918           (genAssign): fixed for float using aopLiteral ;-)
3919         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
3920           GOTO initialisation routine
3921         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
3922           flag on registers, fixes #1469043 (local variables do not work)
3923         * src/pic/main.c (_pic14_do_link),
3924         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
3925           available
3926
3927 2006-06-25 Borut Razem <borut.razem AT siol.net>
3928
3929         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
3930           characters printed (not including the trailing '\0' used to end
3931           output to strings). Problem detected in regression test bug-927659.c.
3932           NOTE: printf() family functions should return int instead
3933           unsigned int!
3934         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
3935           specifier are printed as themselves
3936         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
3937           support flags, width and precision specifiers
3938
3939 2006-06-24 Borut Razem <borut.razem AT siol.net>
3940
3941         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
3942           to the list of sdcc tagrets not supporting bit type
3943         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
3944           testfor pic16 due to bug:
3945           [ 1511794 ] pic16: regression test bug-895992.c fails
3946
3947 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
3948
3949         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
3950         * src/SDCCglue.c (initPointer), fixed bug 1496419
3951         * support/regression/tests/bug1496419.c: new, added
3952
3953 2006-06-22 Borut Razem <borut.razem AT siol.net>
3954
3955         * support/regression/ports/pic16/support.c: use gpsim usart module from
3956           libgpsim_modules library
3957
3958 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3959
3960         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
3961         IP0H to IPH0.
3962
3963 2006-06-19 Raphael Neider <rneider AT web.de>
3964
3965         * src/pic/glue.h,src/pic16/glue.h: added prototypes
3966         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
3967           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
3968           (pic14printExterns,pic14printPublics,pic16printPublics,
3969           pic16_printExterns): use new functions to emit symbols
3970           (picglue,pic16glue): emit publics before emitting externs
3971         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
3972           locally defined functions to avoid bug #1443651
3973         * support/regression/tests/bug-716242.c: removed pic16 workaround
3974         * support/regression/ports/pic16/spec.mk: ignore errors during build
3975
3976 2006-06-19 Raphael Neider <rneider AT web.de>
3977
3978         * src/pic/glue.h: added pic14aopLiteral prototype
3979         * src/pic/glue.c (pic14aopLiteral): return unsigned int
3980         * src/pic/gen.c: removed stdint.h dependency
3981           (aopGet): use Safe_strdup()
3982           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
3983           (genDataPointerSet): use pic14aopLiteral()
3984         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
3985           for pic16; thanks to Bernhard and Maarten
3986
3987 2006-06-18 Borut Razem <borut.razem AT siol.net>
3988
3989         * support/regression/tests/structflexarray.c: flexible array members
3990           not supported by gcc < 3
3991         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
3992           GUI tool by default
3993         * src/pic/gen.c: don't include [p]strdin.h on solaris
3994         * support/Util/pstdint.h: addad svn attributes
3995         * support/regression/tests/constantRange.c,
3996           support/regression/tests/rotate.c: include inttypes.h instead
3997           stdint.h on solaris, addad svn attributes
3998
3999 2006-06-18 Raphael Neider <rneider AT web.de>
4000
4001         * src/SDCCsymt.c (initCSupport): change return type of divschar to
4002           int for PIC16
4003         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
4004           (pic16_genMinusBits): simplified sign-extension
4005           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
4006             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
4007             adjusted to correctly handle mixed-signed operands, disabled
4008             now unused multiplciation routines
4009         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
4010           (assignResultValue): added argument denoting the size of the result
4011             as returned by the function (fixes upcasts in assigning from
4012             function calls: char foo(); int i = foo();)
4013           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
4014             function result to assignResultValue
4015           (genMult): disabled inlined multiplication code
4016           (genDiv): augmented to also handle the modulus operator, fixed to
4017             handle mixed-signed operands correctly
4018           (genMod): simply call genDiv, disabled unused code
4019           (genAssign): fixed missing (sign-)extension on result
4020         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
4021             valid char operands, allow signed operands for native code, added
4022             division and modulo operator handling
4023         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
4024
4025         As a consequence, onebyte.c (if split into two files) and muldiv.c
4026         pass regression tests.
4027
4028 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4029
4030         * doc/Makefile.in: two runs of makeindex seem needed to get
4031         correct page references in the index of sdccman.pdf
4032         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
4033
4034 2006-06-17 Borut Razem <borut.razem AT siol.net>
4035
4036         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
4037
4038 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4039
4040         * doc/sdccman.lyx: updated, added (porting source code, debugging),
4041         mentioned ec2drv and paulmon
4042
4043 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
4044
4045         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
4046           consecutive abs areas
4047           (find_empty_space, allocate_space): added map to handle codemap or
4048            xdatamap,
4049           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
4050            absolute idata and xdata
4051         * as/mcs51/lkmem.c (summary2): updated legend
4052
4053 2006-06-16 Raphael Neider <rneider AT web.de>
4054
4055         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
4056
4057 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
4058
4059         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
4060           1208515
4061         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
4062
4063 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
4064
4065         * src/port.h (struct PORT): added field gp_tags, to hold the tag
4066         value of generic pointers,
4067         * src/avr/main.c,
4068           src/ds390/main.c,
4069           src/hc08/main.c,
4070           src/izt/i186.c,
4071           src/izt/tlcs900h.c,
4072           src/mcs51/main.c,
4073           src/pic/main.c,
4074           src/pic16/main.c,
4075           src/xa51/main.c,
4076           src/z80/main.c: PORT structure, added elements for gp_tags field,
4077         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
4078         fields in the PORT structure of each port,
4079         * src/SDCCast.c (decorateType): allow processing of generic pointers
4080         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
4081         S_FIXED symbols
4082
4083 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
4084
4085         * link/z80/lkgb.c,
4086         * link/z80/lkgg.c,
4087         * src/pic16/gen.c,
4088         * src/pic16/main.c,
4089         * src/pic16/pcode.c,
4090         * src/pic/main.c,
4091         * src/pic/pcoderegs.c,
4092         * src/SDCCicode.c,
4093         * src/SDCCmain.c,
4094         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
4095           bug 1504689 on minGW
4096
4097 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4098
4099         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
4100
4101 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
4102
4103         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
4104
4105 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
4106
4107         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
4108           for optimization
4109
4110 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
4111
4112         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
4113         to a char variable. Fixed bug #1504211
4114         * device/include/pic16/adc.h,
4115         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
4116         and fixed bug #1364390
4117
4118 2006-06-10 Borut Razem <borut.razem AT siol.net>
4119
4120         * CVSROOT: removed the CVS left-over
4121
4122 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
4123
4124         * as/hc08/asmain.c (asexit),
4125         * as/hc08/lkmain.c (lkexit),
4126         * as/mcs51/asmain.c (asexit),
4127         * as/mcs51/lkmain.c (lkexit),
4128         * src/SDCCglue.c (DEFSETFUNC),
4129         * src/SDCCmain.c (linkEdit, assemble),
4130         * support/librarian/sdcclib.c (AddRel),
4131           replaced unlink() by standard C remove()
4132         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
4133         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
4134           gatherImplicitVariables): new, added to fix bug 608752,
4135           (createFunction): added gatherImplicitVariables()
4136         * src/SDCCast.h: added createRMW prototype
4137         * src/SDCCsymt.h (struct symbol): added infertype
4138         * support/regression/tests/bug608752.c: new, added
4139
4140 2006-06-10 Raphael Neider <rneider AT web.de>
4141
4142         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
4143           multibyte dummy reads (fixes #1503234)
4144
4145 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
4146
4147         * device/include/mcs51/compiler.h: new, added header file to enable
4148           creating common sfr definition header files for different compilers
4149
4150 2006-06-05 Raphael Neider <rneider AT web.de>
4151
4152         * src/pic16/{pcode.h,genarith.c}:
4153           introduced pCodeOp combining any two pCodeOps (previously only
4154           two register operands could be combined), removed pcop2 from
4155           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
4156         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
4157         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
4158           rewritten to use new PO_TWO_OPS
4159         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
4160         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
4161           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
4162           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
4163           (pic16_get_op): embraced return arg to allow #define return(x),
4164             added new case for combined opcodes
4165           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
4166           (pic16_pCode2str,pic16_getRegFrompCodeOp,
4167            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
4168
4169 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
4170
4171         * src/SDCCval.c (checkConstantRange): added
4172         * src/SDCCval.h: added checkConstantRange
4173         * support/Util/SDCCerr.c,
4174         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
4175         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
4176         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
4177         * src/SDCCast.c (decorateType): added checkConstantRange,
4178         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
4179         can be emitted with the correct always true/false warning,
4180         added optimization for double '!';
4181         result of decorateType() must be assigned back to the tree, because
4182         decorateType() can change the tree
4183         * src/SDCCicode.c (geniCodeLogic),
4184         (geniCodeAssign): replaced new checkConstantRange, added warnings,
4185         (checkConstantRange): removed, it was only a fragment which never
4186         emitted a warning
4187         * src/SDCCsymt.c (computeType): fixed promotion for
4188         "-1 < (unsigned bit) b"
4189         * src/pic/ralloc.c (packRegsForAssign),
4190         * src/pic16/ralloc.c (packRegsForAssign),
4191         * src/hc08/ralloc.c (packRegsForAssign),
4192         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
4193         from mcs51
4194         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
4195         * support/regression/tests/constantRange.c: added
4196         * support/valdiag/tests/constantRange.c: added
4197         * support/valdiag/valdiag.py: added -DPORT_HOST=1
4198
4199 2006-06-02 Borut Razem <borut.razem AT siol.net>
4200
4201         * support/regression/ports/pic16/support.c: increase stack size
4202           to 255 bytes
4203         * support/regression/Makefile.in: sort tests by name so that the
4204           resutlts can be compared on different machines / platforms
4205
4206 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
4207
4208         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
4209         * src/ds390/gen.c (emitLabel): new, added,
4210           (genDjnz): fixed stack overflow bug,
4211           (throughout): cosmetic changes to sync with mcs51/gen.c,
4212           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
4213         * src/mcs51/gen.c (genEndFunction): small optimization,
4214           (throughout): cosmetic changes to sync with ds390/gen.c
4215
4216 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
4217
4218         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
4219           (_print_format): fixed printing pointers
4220         * src/mcs51/gen.c (emitLabel, movb): new, added,
4221           (genAssign): small optimization,
4222           (genDjnz): fixed stack overflow bug,
4223           (throughout): replaced sprintf with SNPRINTF,
4224           replaced mcs51_regWithIdx with REG_WITH_INDEX,
4225           replaced emitcode("mov", "b,...") with MOVB(...),
4226           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
4227           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
4228         * src/mcs51/peeph.def: added rules 140 and 264
4229         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
4230           so they may get optimized into registers
4231
4232 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
4233
4234         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
4235           immediately when encountered,
4236           (printUsage): always use stderr even on windows
4237
4238 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
4239
4240         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
4241         (processParms): fixed bug #1247551
4242         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
4243         parseCmdLine, main): print '--version' to stdout,
4244         print 'help' to stdout if --help is given,
4245         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
4246         arguments are given; fixed --help
4247
4248 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
4249
4250         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
4251         * support/regression/tests/bug-1493710.c: added
4252
4253 2006-05-27 Borut Razem <borut.razem AT siol.net>
4254
4255         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
4256           static instead auto
4257         * support/regression/ports/pic16/support.c: increase stack size
4258           from default 64 bytes to 128 bytes
4259         * support/regression/tests/staticinit.c,
4260           support/regression/tests/float.c: regression tests fully enabled
4261           for pic16 port by putting the initialized data arrays into the code
4262           section
4263         * support/regression/ports/pic16/spec.mk: don't link default libraries.
4264           This was changed by mistake in the previous version.
4265
4266 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
4267
4268         * src/pic16/gen.c (genFunction, genEndFunction): some
4269         beautifications, fixed bug with falsely restoring FSR2 in large
4270         stack model, thanks to Beau E. Cox for reporting the bug
4271
4272 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
4273
4274         * debugger/mcs51/break.c,
4275         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
4276           use %p to print pointers, made address variables unsigned
4277         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
4278         * debugger/mcs51/symtab.c (parseSymbol): must return something
4279         * src/mcs51/gen.c (aopForSym): small optimization,
4280            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
4281           (freeAsmop): added missing break,
4282           (aopPut): removed parameter bvolatile, determine it inside the function,
4283           (saveRegisters, unsaveRegisters): small optimization,
4284           (genIpush): removed pointless check,
4285           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
4286           replaced sprintf with SNPRINTF,
4287           replaced strcpy with strncpyz,
4288           updated aopPut calls,
4289           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
4290         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
4291
4292 2006-05-24 Borut Razem <borut.razem AT siol.net>
4293
4294         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
4295           modification of test for the pic16 port, put the array to the code
4296           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
4297
4298 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4299
4300         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
4301         * support/Util/pstdint.h: added
4302
4303 2006-05-22 Borut Razem <borut.razem AT siol.net>
4304
4305         * src/regression/Makefile: removed bool2.c test, added -q linker option
4306         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
4307           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
4308           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
4309           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
4310           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
4311           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
4312           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
4313           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
4314           define SUPPORT_BIT_TYPES 0, removed unused bit variables
4315
4316 2006-05-22 Raphael Neider <rneider AT web.de>
4317
4318         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
4319           bug #1492360 (problematic due to generic pointers, see code)
4320
4321 2006-05-22 Borut Razem <borut.razem AT siol.net>
4322
4323         * support/regression/ports/pic16/specs.mk: removed stack size linker
4324           directive
4325         * support/regression/tests/array.c,
4326           support/regression/tests/bitopcse.c,
4327           support/regression/tests/bug-908454.c,
4328           support/regression/tests/malloc.c: modified for pic16 regression test
4329         * support/regression/tests/bitfields.c:
4330           pic16 - excluded bitfileds of size > 8
4331         * support/regression/tests/bp.c: pic16 - reduced data size
4332         * support/regression/tests/bug-221100.c: pic16 - reduced data size
4333         * support/regression/tests/bug-460010.c:
4334           pic16 - used the absolute address the fits in memory
4335         * support/regression/tests/bug-716242.c:
4336           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
4337         * support/regression/tests/float.c:
4338           pic16 - excluded - data size too big
4339         * support/regression/tests/onebyte.c:
4340           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
4341         * support/regression/tests/shifts.c:
4342           pic16 - function names probably have to differ in first X characters
4343           (gpasm limitation?)
4344         * support/regression/tests/staticinit.c:
4345           pic16 - excluded some tests due error: no target memory available for
4346           section ".idata"
4347
4348 2006-05-22 Borut Razem <borut.razem AT siol.net>
4349
4350         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
4351           second try. Thanks Stas Sergeev once more.
4352
4353 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
4354
4355         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
4356           (genLeftShift, genRightShift): fixed bug 1491627
4357         * src/hc08/peeph.def (rules 7, 8.x): added
4358         * support/regression/tests/shifts.c (ShiftLeftByParam,
4359           ShiftRightByParam, testShiftByParam): added to test variable shifting
4360
4361 2006-05-20 Raphael Neider <rneider AT web.de>
4362
4363         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
4364         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
4365           (allocReg): add only new registers to dynAllocRegs,
4366           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
4367             #1489055, #1445850, and probably #1483693
4368
4369 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
4370
4371         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
4372         bug in for-loop that didn't emit the last of CONFIG and ID registers
4373
4374 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
4375
4376         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
4377           with offset
4378         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
4379           1489016, 1434401 and 1490124
4380         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
4381           1489016, 1434401 and 1490124
4382
4383 2006-05-17 Borut Razem <borut.razem AT siol.net>
4384
4385         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
4386           thanks Stas Sergeev
4387
4388 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
4389
4390         * device/include/mcs51/P89c51RD2.h,
4391         * device/include/mcs51/P89LPC901.h,
4392         * device/include/mcs51/P89LPC922.h,
4393         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
4394
4395 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
4396
4397         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
4398         to fix missing stack pragma in compiled binary object file,
4399
4400 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
4401
4402         * support/packihx/configure.in,
4403         * support/packihx/configure: removed warning, autoconf >= 2.5x can
4404         determine sizeof basic types even while cross compiling
4405
4406 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
4407
4408         * src/avr/gen.c (aopop),
4409         * src/ds390/gen.c (aopOp),
4410         * src/hc08/gen.c (aopOp),
4411         * src/mcs51/gen.c (aopop),
4412         * src/pic16/gen.c (pic16_aopOp),
4413         * src/pic/gen.c (aopOp),
4414         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
4415         if size of operand is smaller than spill location
4416
4417 2006-05-12 Borut Razem <borut.razem AT siol.net>
4418
4419         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
4420           have to have CR/LF line endings even if they are checked out on *nix
4421           or on WIN32 in cygwin binmode
4422
4423 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
4424
4425         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
4426         * device/include/ds80c390.h: added sfr16 definitions
4427         * src/ds390/gen.c,
4428         * src/ds390/gen.h,
4429         * src/ds390/main.c,
4430         * src/ds390/ralloc.c,
4431         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
4432           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
4433           bit returning functions
4434         * support/regression/tests/sfr16.c: enabled test on ds390
4435
4436 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4437
4438         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
4439         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
4440
4441 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
4442
4443         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
4444         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
4445           (cl_address_space constructor): removed expensive initialization,
4446           (cl_address_space::get_cell): extended for late initialization,
4447           (cl_address_space::*): use late initialization,
4448           (cl_address_decoder::activate): removed expensive initialization,
4449           This reduced regression test running time by 25%
4450
4451 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
4452
4453         * packihx/,
4454         * configure.in,
4455         * configure,
4456         * sdcc.dsw,
4457         * Makefile.bcc,
4458         * Makefile.in,
4459         * support/packihx/Makefile.in,
4460         * support/packihx/clean.mk,
4461         * support/packihx/Makefile.bcc,
4462         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
4463
4464 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4465
4466         * src/SDCCval.c (valNot): fix for regression test failure
4467           of not.c on big endian hosts
4468
4469 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
4470
4471         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
4472
4473 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4474
4475         * device/lib/mcs51/Makefile.in: changed string comparison operator
4476           to = for POSIX compliance; == is bash extension
4477
4478 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
4479
4480         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
4481           kosmonaut_pirx
4482
4483 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
4484
4485         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
4486         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
4487         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
4488         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
4489         bug report #1478657,
4490
4491 2006-05-05 Borut Razem <borut.razem AT siol.net>
4492
4493         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
4494           making the html
4495
4496 2006-05-02 Borut Razem <borut.razem AT siol.net>
4497
4498         * doc/Makefile.in: removed *.ind dependency since there is no rule to
4499           create *.ind, which made make to fail if invoked with -j 2
4500
4501 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
4502
4503         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
4504           Hubert Sack for patch 1479782
4505
4506 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
4507
4508         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
4509
4510 2006-05-01 Raphael Neider <rneider AT web.de>
4511
4512         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
4513           (create_pic): store only prefix-free device name,
4514           (init_pic): check for device names with "16" prefix,
4515           (list_valid_pics),
4516         * src/pic/device.h (struct PIC_device),
4517         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
4518             stored device name,
4519         * device/include/pic/pic12f{635,675,629,683}.h,
4520         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
4521         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
4522         * device/include/pic/pic16f505.h,
4523         * device/lib/pic/libdev/pic16f505.c: removed
4524         * device/include/pic/pic14devices.txt: added support for pic12f
4525             devices, removed unsupported non 16-bit devices
4526             [above changes provided by patch from Zik Saleeba]
4527         * src/pic/*, src/pic16/*, device/include/pic16/*,
4528           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
4529
4530 2006-05-01 Borut Razem <borut.razem AT siol.net>
4531
4532         * configure.in, configure, doc/Makefile.in:
4533           sync with nightly build makefile - latex, dvipdf and dvips
4534           not needed any more
4535
4536 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
4537
4538         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
4539         in the library source
4540
4541 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
4542
4543         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
4544
4545 2006-04-28 Raphael Neider <rneider AT web.de>
4546
4547         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
4548         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
4549           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
4550         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
4551
4552 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
4553
4554         * device/lib/pic/libdev/Makefile.in,
4555         * device/lib/hc08/Makefile.in,
4556         * device/lib/gbz80/Makefile.in,
4557         * device/lib/z80/Makefile.in,
4558         * device/lib/ds390/Makefile.in,
4559         * device/lib/ds400/Makefile.in: added srcdir to include search path,
4560         thanks to Borut for the bug report
4561         * configure.in,
4562         * configure: always create doc/Makefile independent from --enable-doc
4563         * Makefile.in: always install from directory doc independent from
4564         --enable-doc
4565         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
4566         removed
4567         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
4568         * doc/Makefile.in: install *.txt if present
4569         * device/include/Makefile.in (install): added installation of pic/*.inc
4570         and pic/*.txt files again, they were erroneously removed
4571
4572 2006-04-28 Raphael Neider <rneider AT web.de>
4573
4574         * src/pic/{gen.c,main.h,pcode.c},
4575         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
4576             concerning signedness with casts
4577
4578 2006-04-28 Raphael Neider <rneider AT web.de>
4579
4580         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
4581             definition of an interrupt handler,
4582         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
4583             interrupt handler stuff from picglue() to separate routine,
4584           (picglue): enabled definition of intr handlers in files w/o main()
4585
4586 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
4587
4588         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
4589           compilation with MSVC 2005 Express Edition (VC8)
4590
4591 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
4592
4593         * device/lib/Makefile: fixed build of gbz80 lib
4594
4595 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
4596
4597         * support/regression/tests/bug-460010.c,
4598         * support/regression/tests/bug-524691.c,
4599         * support/regression/tests/bug-716242.c: removed conditional defines
4600           that are already in testfwk.h
4601
4602 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
4603
4604         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
4605           (AccAXRsh1): added, shift right by 1,
4606           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
4607            AccAXLrl1
4608         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
4609
4610 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
4611
4612         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
4613         remove cast to same type
4614         * src/SDCCast.c (decorateType): fix for RFE 1475742,
4615         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
4616         * as/z80/Makefile,
4617         * link/z80/Makefile: removed, they have moved to
4618         Makefile.in files
4619         * configure,
4620         * configure.in: replaced duplicate message about ucsim by missing sdcpp
4621         * install-sh: fix bug #1204398 by setting umask 0022
4622         * device/lib/Makefile: separate build of z80 and gbz80 lib
4623
4624 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
4625
4626         Enabled VPATH feature: changed nearly all Makefiles (149 files).
4627         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
4628
4629         One basic decision: e.g. src/clean.mk includes further files. In order
4630         to make this work there are two solutions:
4631         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
4632           run configure on them. This way they can use
4633           'include $(srcdir)/port-clean.mk'
4634         - always include clean.mk by the Makefile at the same level. To avoid
4635           that `make clean` tries to include and build Makefile.dep the
4636           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
4637           implemented, because now even `make uninstall` doesn't create
4638           Makefile.in. clean.mk could be eliminated by pasting it in
4639           Makefile.in.
4640
4641         * debugger/mcs51/Makefile.in: build own objects from library sources
4642         (SLIB, SDCC) in current directory
4643
4644         * configure, configure.in: renamed --disable-device-lib-build in
4645         --disable-device-lib; added --enable-doc, the required tools are
4646         searched by configure; added result message; the toolchain for the
4647         belonging ports are now only built, if the port is enabled.
4648
4649         * support/regression/*: all output is written in directory gen, because
4650         the fwk and ports directories don't livet in the build tree using vpath
4651
4652         * doc/sdccman.lyx: renamed --disable-device-lib-build to
4653         --disable-device-lib, added --enable-doc, added section VPATH
4654
4655         * sim/ucsim/configure.in,
4656         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
4657         z80 are enabled by default
4658
4659 2006-04-24 Raphael Neider <rneider AT web.de>
4660
4661         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
4662             to config word, "pic14_"-prefixed some extern functions
4663           (pic14_emitConfigWord): emit __config directive(s) if assignment to
4664             config word has been found
4665         * src/pic/device.h: added prototypes
4666         * src/pic/pcode.c: added "pic14_"-prefix where needed
4667         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
4668             fixup
4669         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
4670             words,
4671           (pic14emitRegularMap): ignore config words,
4672           (pic14createInterruptVect): moved generating __config directives away
4673           (picglue): have __config directives emitted
4674
4675 2006-04-24 Borut Razem <borut.razem AT siol.net>
4676
4677         * doc/Makefile: sync with nightly build makefile
4678
4679 2006-04-24 Raphael Neider <rneider AT web.de>
4680
4681         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
4682             registers that have not been assigned proper liveranges,
4683             fixes #1469504 and #1474602,
4684           (pCodeRegOptimizeRegUsage): fixed typo in comment
4685
4686 2006-04-24 Borut Razem <borut.razem AT siol.net>
4687
4688         * device/examples/main8051.c: deleted - it was removed from CVS
4689           24.mar.2000 and after that modified 18.feb.2001, so it reappered
4690           after the transition to Subversion
4691         * src/SDCCalloc.h: deleted - it was removed  from CVS
4692           3.feb.2001 and after that modified 18.feb.2001, so it reappered
4693           after the transition to Subversion
4694         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
4695           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
4696           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
4697           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
4698
4699 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
4700
4701         * as/asx8051.dsp: added mcs51/strcmpi.h
4702         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
4703         * as/hc08/aslink.h: updated lnksect prototype
4704         * as/hc08/asm.h,
4705         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
4706         * as/hc08/asmain.c,
4707         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
4708           (newdot): handle A_ABS
4709         * as/hc08/asout.c,
4710         * as/mcs51/asout.c (outarea): output address
4711         * as/hc08/lkaomf51.c,
4712         * as/mcs51/lkaomf51.c: disabled unused array UsageType
4713         * as/hc08/m08pst.c,
4714         * as/mcs51/i51pst.c,
4715         * as/z80/z80pst.c: "ABS" is not A_OVR
4716         * as/hc08/lkarea.c (newarea): read a_addr,
4717           (lnkarea): added codemap array, sort absolute areas to the front,
4718            combine all GSINITx/GSFINAL,
4719           (find_empty_space, allocate_space): new functions,
4720           (lnksect): return next address, handle absolute sections
4721         * as/mcs51/lkarea.c (newarea): read a_addr,
4722           lnksect2 prototype changed,
4723           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
4724           (find_empty_space, allocate_space): new, factored out of lnksect2,
4725           (lnksect2): return next address, handle absolute sections
4726         * as/hc08/lkhead.c,
4727         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
4728         * as/hc08/lklibr.c (addfile, fndsym),
4729         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
4730           index out of range and detect both '\' and '/'
4731         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
4732         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
4733           regression tests (ds390 cannot return bool yet)
4734         * doc/sdccman.lyx: changed version number, document changed --no-peep,
4735           document critical interrupts on z80, document changed SDCC define
4736         * src/asm.c (_asxxxx_mapping): fixed .org directive,
4737           (_a390_mapping): added .org directive
4738         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
4739           (genMultOneByte): fixed warnings
4740         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
4741           ones
4742         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
4743         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
4744           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
4745         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
4746         * src/pic16/main.c: removed newReg prototype
4747         * src/pic16/pcode.c,
4748         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
4749           warnings
4750         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
4751           ones
4752         * src/pic16/ralloc.c
4753         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
4754           to fix warnings
4755         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
4756           from short to PIC_OPTYPE
4757         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
4758         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
4759           optype from short to PIC_OPTYPE
4760         * src/port.h: made int_size unsigned to fix warnings
4761         * src/SDCC.y: fixed warning on MSVC
4762         * src/SDCCicode.c (getArraySizePtr): return unsigned int
4763         * src/SDCCopt.c (convertToFcall): fixed warnings
4764         * src/SDCCsymt.h: removed double prototype for genSymName
4765         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
4766           offset int to fix warnings
4767
4768 2006-04-22 Borut Razem <borut.razem AT siol.net>
4769
4770         * doc/sdccman.lyx, */Makefile, */Makefile.in:
4771           references to CVS replaced with Subversion
4772
4773 2006-04-21 Borut Razem <borut.razem AT siol.net>
4774
4775         * doc/sdccman.lyx, */Makefile, */Makefile.in:
4776           references to CVS replaced with Subversion
4777
4778 2006-04-19 Borut Razem <borut.razem AT siol.net>
4779
4780         * src/version.awk: adapted for svn
4781         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
4782           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
4783           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
4784           /binutils-avr/etc/*.vi, *.jin: removed all properties
4785           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
4786
4787 2006-04-19 Borut Razem <borut.razem AT siol.net>
4788
4789         * CVS to Subversion migration completed
4790
4791 2006-04-18 Borut Razem <borut.razem AT siol.net>
4792
4793         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
4794           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
4795
4796 2006-04-17 Borut Razem <borut.razem AT siol.net>
4797
4798         * device/include/Makefile.in: added pic/*.inc to the installation
4799
4800 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
4801
4802         * support/regression/collate-results.py: fixed output in case of
4803         a valdiag error
4804         * support/regression/generate-cases.py: fixed splitting of pathnames
4805         with dots
4806         * as/hc08/lklibr.c (addfile),
4807         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
4808
4809 2006-04-11 Raphael Neider <rneider AT web.de>
4810
4811         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
4812         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
4813         * src/pic16/pcode.c (assignValnums): fixed #1460578
4814
4815 2006-04-11 Raphael Neider <rneider AT web.de>
4816
4817         * device/lib/pic/libdev/*.c,
4818         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
4819           fixes #1468739, enables compilation in --std-c99 mode
4820         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
4821
4822 2006-04-11 Raphael Neider <rneider AT web.de>
4823
4824         * src/pic/device.c (find_device): removed debug output
4825           (list_valid_pics): enabled verbose listing of supported devices
4826         * device/include/stdbool.h: define bool as char for pic14/16 as well
4827
4828 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4829
4830         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
4831
4832 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
4833
4834         * .version: bumped version to 2.5.6
4835         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
4836
4837 2006-04-06 Raphael Neider <rneider AT web.de>
4838
4839         * .version: bumped version to 2.5.6 (pic14 ABI changed)
4840         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
4841         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
4842           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
4843             pic14_constructAbsMap
4844           (pic14printPublics): declare absolute global symbols as global
4845           (pic14createInterruptVect),
4846         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
4847           (newReg): assume new registers unused, use correct name in
4848             hashtable (reg->name instead of name), more debugLog output
4849         * src/pic/device.h (PIC_device): added fields for verbose output
4850         * src/pic/device.c: moved device definition to pic14devices.txt,
4851             added routines for runtime parsing of pic14devices.txt,
4852             added support for second config word
4853         * src/pic/main.c (_process_pragma): removed #pragma maxram,
4854           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
4855           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
4856           (_pic14_parseOptions): moved pCodeInitRegisters here
4857           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
4858         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
4859           (pCodeInitRegisters): rewrapped comments, perpared new approach to
4860             handling the pseudo stack
4861         * device/lib/Makefile.in: ignore failures in objects-pic16,
4862         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
4863         * device/lib/pic/NEWS: document new dependency on picXXX.lib
4864         * device/lib/pic/Makefile.subdir,
4865         * device/lib/pic16/Makefile.subdir: improved clean rules
4866         * device/lib/pic/libdev/: NEW, pic14 device libraries
4867         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
4868         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
4869         * device/include/Makefile.in: create subdir and install pic14 headers
4870         * device/include/pic/p16f_common.inc: removed unused declarations
4871         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
4872             PICs from inc2h.pl v1.6,
4873             replaced BIT_AT macros with struct declarations
4874         * device/include/pic/pic14devices.txt: definition of supported devices,
4875             all above improvements contributed by Zik Saleeba, thanks
4876         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
4877         * support/scripts/sdcc.nsi: also install pic14 device libraries and
4878             headers
4879
4880 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
4881
4882         * device/include/mcs51/c8051f410.h: added interrupt numbers,
4883         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
4884           thanks to Charles Olds
4885
4886 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4887
4888         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
4889
4890 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
4891
4892         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
4893         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
4894         * support/regression/bug1464657.c: added, new test
4895
4896 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
4897
4898         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
4899           version number
4900
4901 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
4902
4903         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
4904           --no-peep and --peep-file <file> are used don't use default rules but
4905           do use the <file>
4906
4907 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
4908
4909         * src/mcs51/gen.c (genCall): fixed bug 1457608
4910
4911 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4912
4913         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
4914         changes seem to cause (trigger?) problems with the build system.
4915
4916 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
4917
4918         * src/SDCCpeeph.c (operandsLiteral): new, added,
4919           (callFuncByName): inserted operandsLiteral
4920         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
4921
4922 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4923
4924         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
4925         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
4926
4927 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
4928
4929         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
4930           implemented patch 1120823 Thanks to Willy De la Court (normal
4931           interrupts need an interrupt number now if they are made critical),
4932           and enabled nesting of critical functions though not for gbz80
4933           (genCritical, genEndCritical): added functions
4934           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
4935         * src/z80/mappings.i: added "ei" to all mappings
4936
4937 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4938
4939         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
4940         submitted by the Debian SDCC maintainer Aurelien Jarno:
4941         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
4942         archive with gcc 4.1 on mips and wrote the patch"
4943
4944 2006-03-16 Raphael Neider <rneider AT web.de>
4945
4946         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
4947           the left operand is shorter than the result (c* = lit-c* + int),
4948           fixes bug #1450796
4949         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
4950           OP_SYMBOL
4951
4952 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
4953
4954         * src/.version: increased version number to 2.5.5
4955         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
4956         linking is done manually in pic16 port's _linkEdit,
4957         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
4958         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
4959         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
4960         allocate asmop as AOP_ACC,
4961         (aopForRemat): added parameter 'bool result' in function declaration,
4962         (pic16_aopGet): return AOP_ACC when accessing WREG,
4963         (pic16_popGetTempReg): minor modification,
4964         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
4965         'pic16_allocWithIdx',
4966         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
4967         calling function in absolute addresses,
4968         (genAssign): take into account AOP_ACC asmop,
4969         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
4970         * src/pic16/pcoderegs.c: some debug functions and lines added,
4971         * src/pic16/ralloc.c (decodeRegType): added but commented out,
4972         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
4973         register too,
4974         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
4975         call to allocReg, not by manually allocating a new one,
4976         (pic16_assignRegisters): now before going through the register
4977         allocating functions mark all registers as free. This eliminates some
4978         side effects resulting from peephole parser done earlier in the backbone
4979
4980 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
4981
4982         * src/SDCCicode.c (geniCodeLogic),
4983         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
4984
4985 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
4986
4987         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
4988           (genSend): bugfix, do not allocate and free twice,
4989           (shiftRLong): handle partially overlapping aops
4990         * support/regression/tests/bitopcse.c: fixed warning redefined idata
4991
4992 2006-03-08 Borut Razem <borut.razem AT siol.net>
4993
4994         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
4995           for pic16
4996
4997 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
4998
4999         * support/regression/tests/bug1409955.c: new, added
5000         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
5001         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
5002           (aopForSym, aopOp): increment asmop.allocated if reused,
5003           (freeAsmop): decrement asmop.allocated and check for zero instead of
5004           using asmop.freed,
5005           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
5006           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
5007            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
5008            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
5009            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
5010            genSignedRightShift, genRightShift, genDataPointerGet,
5011            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
5012            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
5013             in reverse order from allocation,
5014           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
5015             added swappedLR to keep track
5016         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
5017           pdata & code for GCC, z80, gbz80 & hc08
5018         * support/regression/tests/zeropad.c: moved defines to testfwk.h
5019
5020 2006-03-08 Raphael Neider <rneider AT web.de>
5021
5022         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
5023
5024 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
5025
5026         * device/include/mcs51/c8051f410.h: new SiLabs mcu
5027         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
5028         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
5029
5030 2006-03-06 Borut Razem <borut.razem AT siol.net>
5031
5032         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
5033           made the linker quiet
5034
5035 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
5036
5037         * src/pic16/gen.c (genPcall): fixed bug #1443644
5038         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
5039         which dumps before the function entry point a data byte which represents
5040         the number of the local variables used by the specified function, added
5041         'xinst' for initial support for Extended Instruction Support,
5042         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
5043         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
5044         port->fun_prefix anymore (may change later),
5045         (genFunction, genEndFunction): do not store/restore local registers for
5046         _main (this should take care the --main-return command line option in
5047         the future),
5048         (genOr): removed some legacy pic-port instructions,
5049         * src/pic16/genarith.c (genAddLit): re-enabled old code because
5050         performing operations with SFR's causes data to be written more than
5051         once to each SFR. Perhaps SFRs should be handled in special cases...
5052         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
5053         pcode.h
5054         * src/pic16/main.c (_process_pragma): stack bound checking did not take
5055         into account for stack starting position,
5056         (struct OPTIONS pic16_optionsTable): added command line argument
5057         --extended or -y for Extended Instruction Support,
5058         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
5059         (deassignLRs): *** perhaps the most important change, old 'for' code
5060         (commented out for reference), didn't account for some registers which
5061         were left marked 'not free' after a pointer operation. The change
5062         reduces register usage a lot in some cases
5063
5064 2006-03-04 Borut Razem <borut.razem AT siol.net>
5065
5066         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
5067           _clean
5068         * support/regression/tests/bug-524697.c: decreased array size for
5069           mcs51 to fit into the internal RAM
5070         * support/regression/Makefile.in: a little bit more verbose
5071
5072 2006-03-03 Borut Razem <borut.razem AT siol.net>
5073
5074         * support/regression/fwk/lib/testfwk.c,
5075           support/regression/fwk/include/testfwk.h: introduced function
5076           _prints(), nonrecursive _printn(), call _initEmu() from main()
5077         * support/regression/ports/gbz80/support.asm,
5078           support/regression/ports/ucz80/support.asm,
5079           support/regression/ports/z80/support.asm,
5080           support/regression/ports/ds390/support.c,
5081           support/regression/ports/hc08/support.c,
5082           support/regression/ports/host/support.c,
5083           support/regression/ports/mcs51/support.c,
5084           support/regression/ports/xa51/support.c: added empty _initEmu()
5085           function
5086         * support/regression/ports/pic16/gpsim.cmd,
5087           support/regression/ports/pic16/spec.mk,
5088           support/regression/ports/pic16/support.c,
5089           support/regression/Makefile.in: added pic16 regression test
5090
5091 2006-03-01 Raphael Neider <rneider AT web.de>
5092
5093         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
5094           genConstPointerGet): use safe way of generating MOVFF to cover
5095             literals as well as registers, fixes bug #1440527
5096         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
5097             dereference
5098           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
5099             more correctly, fixes bug #1232186
5100           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
5101         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
5102             gplink guess the correct processor in more cases, applied patch
5103             from Till Riedel attached to and fixing bug #1436552
5104
5105 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5106
5107         * support/regression/tests/array.c: added, contains check for #1434401
5108         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
5109
5110 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
5111
5112         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
5113         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
5114         * device/include/mcs51/c8051f326.h,
5115         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
5116         * device/include/mcs51/c8051f000.h,
5117         * device/include/mcs51/c8051f018.h,
5118         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
5119           PCON_IDLE,PCON_STOP and added sfr16 definitions
5120
5121 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
5122
5123         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
5124           genGetWord): fixed bug 1409955
5125
5126 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
5127
5128         * device/include/hc08/mc68hc908gp32.h,
5129         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
5130
5131 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
5132
5133         * src/SDCCast.c (constExprValue): return NULL if not a value
5134         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
5135         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
5136         * support/regression/tests/bitfields.c: enabled signed bitfield for all
5137
5138 2006-02-13 Borut Razem <borut.razem AT siol.net>
5139
5140         * src/regression/ptrarg.c: added, fails due to bug #1430967
5141         * src/regression/Makefile: ptrarg.c added, ...
5142
5143 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
5144
5145         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
5146         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
5147
5148 2006-02-11 Borut Razem <borut.razem AT siol.net>
5149
5150         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
5151           print "Processor: xxx" message to stdout only if --verbose
5152
5153 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
5154
5155         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
5156         * support/regression/tests/bug1426356.c: added
5157         * support/regression/tests/bitfields.c: removed 2 tests
5158
5159 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
5160
5161         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
5162         * device/include/mcs51/c8051f330.h,
5163         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
5164           PCON_IDLE,PCON_STOP and added sfr16 definitions
5165         * device/lib/_divsint.c,
5166         * device/lib/_divuint.c,
5167         * device/lib/_divulong.c,
5168         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
5169           register bank bug for small stackauto
5170
5171 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
5172
5173         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
5174
5175 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
5176
5177         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
5178         * all.dsp: corrected several bin paths
5179         * device/include/mcs51/c8051f120.h,
5180         * device/include/mcs51/c8051f300.h,
5181         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
5182           to PCON_IDLE,PCON_STOP
5183         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
5184         * device/lib/printf_large.c (output_float): fixed bug 1388703
5185         * support/regression/tests/bug1057979.c: added test for bug 1388703
5186
5187 2006-02-08 Raphael Neider <rneider AT web.de>
5188
5189         * src/pic/pcode.c (pciTRIS): fixed typo,
5190           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
5191           (LinkFlow): fixed handling of flows that end in a call,
5192           (ReuseReg): perform safety check earlier
5193         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
5194             to work with flows at the beginning of a pBlock,
5195             fixes #1426557 (Symbol not previously defined),
5196           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
5197             usage information
5198           (RemoveUnusedRegisters): update register usage info
5199         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
5200             created, reuse existing ones instead
5201         * src/pic/gen.c (genPcall): fixed #1424719
5202
5203 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
5204
5205         * link/z80/lkmain.c,
5206         * link/z80/lklex.c,
5207         * link/z80/lkdata.c,
5208         * link/z80/aslink.h: fixed build on current cygwin:
5209         replaced getline() by lk_getline()
5210
5211 2006-02-01 Borut Razem <borut.razem AT siol.net>
5212
5213         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
5214           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
5215           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
5216           src/regression/bool1.c, src/regression/bool2.c,
5217           src/regression/bool3.c, src/regression/call1.c,
5218           src/regression/compare.c, src/regression/compare10.c,
5219           src/regression/compare2.c, src/regression/compare3.c,
5220           src/regression/compare4.c, src/regression/compare5.c,
5221           src/regression/compare6.c, src/regression/compare7.c,
5222           src/regression/compare8.c, src/regression/compare9.c,
5223           src/regression/configword.c, src/regression/for.c,
5224           src/regression/inline.c, src/regression/mult1.c,
5225           src/regression/nestfor.c, src/regression/or1.c,
5226           src/regression/pointer1.c, src/regression/ptrfunc.c,
5227           src/regression/rotate1.c, src/regression/rotate2.c,
5228           src/regression/rotate3.c, src/regression/rotate4.c,
5229           src/regression/rotate5.c, src/regression/rotate6.c,
5230           src/regression/rotate7.c, src/regression/string1.c,
5231           src/regression/struct1.c, src/regression/sub.c,
5232           src/regression/sub2.c, src/regression/switch1.c,
5233           src/regression/while.c, src/regression/xor.c,
5234           src/regression/create_stc, src/regression/simulate,
5235           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
5236           regression tests
5237         * src/regression/gpsim_assert.h: added
5238
5239 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
5240
5241         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
5242         ((void (code *) (void)) 0) ();
5243         * as/hc08/aslex.c,
5244         * as/hc08/aslink.h,
5245         * as/hc08/asm.h,
5246         * as/hc08/asmain.c,
5247         * as/hc08/lkdata.c,
5248         * as/hc08/lklex.c,
5249         * as/hc08/lkmain.c,
5250         * as/mcs51/aslex.c,
5251         * as/mcs51/aslink.h,
5252         * as/mcs51/asm.h,
5253         * as/mcs51/asmain.c,
5254         * as/mcs51/lkdata.c,
5255         * as/mcs51/lklex.c,
5256         * as/mcs51/lkmain.c,
5257         * as/z80/aslex.c,
5258         * as/z80/asm.h,
5259         * as/z80/asmain.c: fixed build on current cygwin:
5260         replaced getline() by as_getline()
5261
5262 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
5263
5264         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
5265         declarator in the symbol chain
5266         * src/SDCCsymt.h,
5267         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
5268         parameter list for function pointers
5269         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
5270         * support/regression/tests/bug-716242.c: added
5271
5272 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
5273
5274         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
5275         offset if possible
5276         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
5277
5278 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
5279
5280         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
5281         inifinitely recurseable, added static
5282         * support/regression/tests/bug-1408066.c: added
5283
5284 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
5285
5286         * src/SDCCicode.h,
5287         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
5288         renamed, added possibility to create "postLoopLbl"-labels
5289         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
5290         newiTempLoopHeaderLabel
5291         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
5292         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
5293         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
5294         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
5295         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
5296         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
5297         (basicInduction): fixed bug #136564, made static,
5298         (loopInduction): changed parameter of basicInduction, made static,
5299         (addPostLoopBlock): added
5300         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
5301         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
5302         findLoopEndSeq
5303         * support/regression/tests/bug-136564.c: added
5304         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
5305         --std-sdcc99 to LIBSDCCFLAGS
5306
5307 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
5308
5309         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
5310         while loop
5311         * support/regression/tests/bug-1406131.c: added
5312
5313 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
5314
5315         * src/SDCCast.c (decorateType): fix promotion of unary minus
5316         * src/SDCCsymt.c (computeType): beautified
5317         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
5318         (valUnaryPM, valComplement): fix sign and promotion,
5319         (valNot): ANSI: result type is int (SDCC: unsigned char)
5320         * support/regression/tests/uminus.c: speedup by removing superflous
5321         test case 'int'
5322         * support/regression/tests/onebyte.c: added promotion and signedness
5323         tests for unary minus
5324         * support/regressions/tests/bug-477927.c: disable warning about
5325         uninitialized variables
5326         * support/regression/tests/not.c: added
5327
5328 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
5329
5330         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
5331         * src/mcs51/gen.c (gen51Code): show final register usage after
5332         fillGaps in asm with --i-code-in-asm
5333         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
5334         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
5335         incUsed, rliveClear, adjustIChain): made static,
5336         (setFromRange): excluded because it's unused,
5337         (findPrevUseSym, markWholeLoop): added,
5338         (findPrevUse): rewritten; fixes bug 895992; now a complete search
5339         through all branches of predecessors enables sdcc to emit the warning
5340         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
5341         (rlivePoint): made static, added parameter emitWarnings which is only
5342         true during the first run out of two,
5343         (findRecursiveSucc, findRecursivePred): removed,
5344         (computeLiveRanges): made static, added parameter emitWarnings,
5345         (dumpIcRlive): added for debugging only
5346         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
5347         removed prototype of setFromRange()
5348         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
5349         in call of computeLiveRanges()
5350         * support/regression/tests/bug-895992.c: added
5351         * support/regression/tests/bug-971834.c: added
5352         * support/valdiag/tests/bug-895992.c: added
5353         * support/valdiag/tests/bug-971834.c: added
5354
5355 2005-12-18 Raphael Neider <rneider AT web.de>
5356
5357         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
5358           (genUnpackBits): improved code for direct operands,
5359           (genPackBits): improved code for literal assignment to bitfields
5360             and for direct destination operands (no FSR indirection),
5361             prevented redundant AND, fixes #1362800,
5362           (AccLsh): added parameter to disable masking of the result
5363         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
5364           skip instructions with side-effects (like incfsz),
5365           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
5366         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
5367         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
5368           fixes #1375263
5369
5370 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
5371
5372         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
5373         volatile variables as spill location
5374
5375 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
5376
5377         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
5378         replacing literals
5379         * support/regression/tests/bug-1376320.c: added
5380
5381 2005-12-08 Raphael Neider <rneider AT web.de>
5382
5383         * src/pic/device.c: renamed is_shared to pic14_is_shared
5384         * src/pic/gen.c (genIfx): re-enabled handling of sbits
5385         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
5386           (is_valid_identifier): added for above workaround
5387
5388 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
5389
5390         * device/lib/Makefile.in: fixed to enable port-specific-objects
5391         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
5392           char, thanks Hubert Sack
5393         * doc/sdccman.lyx: documented --xstack-loc,
5394           elaborated a bit more on interrupts and pitfalls,
5395           removed "setjmp/longjmp unsupported",
5396           documented some unsupported C99 features
5397         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
5398         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
5399           if, thanks Hubert Sack
5400         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
5401         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
5402           make make_library
5403         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
5404           regression tests can report resource usage (rfe 700441)
5405         * support/regression/collate-results.py: report resource usage
5406         * support/regression/ports/ds390/spec.mk,
5407         * support/regression/ports/hc08/spec.mk,
5408         * support/regression/ports/mcs51/spec.mk,
5409         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
5410         * support/regression/ports/ds390/uCsim.cmd,
5411         * support/regression/ports/hc08/uCsim.cmd,
5412         * support/regression/ports/mcs51/uCsim.cmd,
5413         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
5414         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
5415           library, use the default one
5416         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
5417           building the library
5418
5419 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
5420
5421         * config.dsp: added dependency on .version and configure_vc.awk
5422         * device/include/setjmp.h: updated for --stack-auto and --xstack
5423         * device/include/mcs51/at89c51snd1c.h: corrected line endings
5424         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
5425         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
5426         * device/lib/libsdcc.lib: added _setjmp
5427         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
5428           (decorateType): fixed bug 1372851,
5429           (optimizeGetHbit): fixed warning
5430         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
5431           array initialisation
5432         * support/regression/tests/bug1057979.c: added test for bug 1358192
5433         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
5434
5435 2005-12-03 Borut Razem <borut.razem AT siol.net>
5436
5437         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
5438           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
5439
5440 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
5441
5442         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
5443         createIval): implement symbol independant "flexible array member",
5444         (createIvalCharPtr): implemented flexible array initialisation with a
5445         string
5446         * src/SDCCsymt.c (copyStruct): removed,
5447         (getSize): fixed misleading comment,
5448         (getAllocSize): removed, the additional allocation size is now in
5449         sym->flexArrayLength,
5450         (checkStructFlexArray): new, syntax checks for flexible array members,
5451         (compStructSize): added syntax checks for "flexible array members"
5452         (copyStruct): removed,
5453         (copyLinkChain): removed inefficient fix for bug 770487
5454         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
5455         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
5456         symbol->flexArrayLength
5457         * src/SDCCerr.c,
5458         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
5459         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
5460         * support/regression/tests/structflexarray.c: added
5461         * support/valdiag/tests/structflexiblearray.c: added
5462
5463 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
5464
5465         * src/SDCCast.c (decorateType): fixed bug 1368489
5466         * support/Util/SDCCerr.c,
5467         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
5468
5469 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5470
5471         * device/include/mcs51/at89c51snd1c.h: added file submitted by
5472           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
5473
5474 2005-11-27 Borut Razem <borut.razem AT siol.net>
5475
5476         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
5477           support/cpp2/mkdeps.h: added command line option
5478           -obj-ext=<extension> to SDCPP to define object file externion, used
5479           for generation of make dependencies (-M)
5480         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
5481
5482 2005-11-26 Borut Razem <borut.razem AT siol.net>
5483
5484         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
5485           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
5486           added pic and pic16 libraries
5487
5488 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5489
5490         * device/include/float.h: Corrected typo in prototype of __fsgt
5491
5492 2005-11-25 Borut Razem <borut.razem AT siol.net>
5493
5494         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
5495           added creation of model-mcs51-stack-auto libraries
5496
5497 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
5498
5499         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
5500         and fields-list too
5501         * src/SDCCast.c (createIvalArray): removed obsolete comment
5502
5503 2005-11-24 Borut Razem <borut.razem AT siol.net>
5504
5505         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
5506           added missing device/lib/mcs51/crt*.asm sources
5507
5508 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
5509
5510         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
5511
5512 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
5513
5514         * device/lib/_fs2schar.c,
5515         * device/lib/_fs2sint.c,
5516         * device/lib/_fs2slong.c: optimized inline asm
5517
5518 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5519
5520         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
5521           Better handling of floats between -1.0 and 0.0.
5522
5523 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5524
5525         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
5526           (the missing "if"s prohibited removal of redundant labels)
5527
5528 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5529
5530         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
5531           Properly convert floats between -1.0 and 0.0 to long, int, and char
5532           types (max integer value of negative floats tends to zero).
5533         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
5534           Removed changes made so to work properly with floats between
5535           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
5536           and _fs2char.c
5537
5538 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
5539
5540         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
5541         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
5542         (genCast) cosmetic change
5543         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
5544         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
5545         from mcs51
5546         * support/regression/tests/bitfields (testSignedBitfields): added
5547
5548 2005-11-18 Borut Razem <borut.razem AT siol.net>
5549
5550         * sdcc/device/lib/Makefile.in: remove all unnecessary files
5551         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
5552           introduced SILENT option to make building of pic16 libraries less
5553
5554 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5555
5556         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
5557           Now they work properly with floats between -1.0 and 0.0
5558         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
5559
5560 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
5561
5562         * src/SDCCicode.c (printOperand): added missing else
5563
5564 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
5565
5566         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
5567         reformatted for better readability
5568         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
5569         signed bitfields
5570
5571 2005-11-17 Borut Razem <borut.razem AT siol.net>
5572
5573         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
5574           introduced SILENT option to make building of pic16 libraries less
5575           verbose - used for nightly snapshot build
5576         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
5577           available on Win32 platforms.
5578         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
5579           medium, large, pic and pic16
5580
5581 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5582
5583         * device/lib/printf_large.c: Temporary patch for bug 1358192:
5584           printf("%f"...) sets fraction to zero.
5585
5586 2005-11-16 Raphael Neider <rneider AT web.de>
5587
5588         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
5589           fixes #1357221
5590         * src/pic/gen.c (genIfx): implemented for CARRY bit
5591         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
5592           to generic pointers, fixes #1357332,
5593           (pic16_movLit2f): NEW,
5594           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
5595
5596 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
5597
5598         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
5599
5600 2005-11-11 Raphael Neider <rneider AT web.de>
5601
5602         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
5603         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
5604           compute pointer's type from operand,
5605           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
5606           improved single bit reads, fixes bug #1353379
5607
5608 2005-11-09 Borut Razem <borut.razem AT siol.net>
5609
5610         * support/scripts/sdcc.nsi: added lib/pic to the package
5611
5612 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
5613
5614         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
5615
5616 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
5617
5618         * support/regression/tests/bug1348008.c: added
5619         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
5620         * support/regression/tests/bug1337835.c: updated comment
5621
5622 2005-11-06 Borut Razem <borut.razem AT siol.net>
5623
5624         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
5625           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
5626           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
5627           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
5628           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
5629           dynamic construction of cl_error_class and derivates - 2.nd try
5630
5631 2005-11-05 Borut Razem <borut.razem AT siol.net>
5632
5633         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
5634           bug, which caused Bus Errors on sparc solaris
5635
5636 2005-11-04 Borut Razem <borut.razem AT siol.net>
5637
5638         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
5639           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
5640           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
5641           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
5642           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
5643           and derivates to resolve the initialization problem on OSX
5644
5645 2005-11-02 Borut Razem <borut.razem AT siol.net>
5646
5647         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
5648           corrected typo - #include <winsock2.h>
5649
5650 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
5651
5652         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
5653           (_asxxxx_mapping): added org directive for future enhancements
5654
5655 2005-11-01 Borut Razem <borut.razem AT siol.net>
5656
5657         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
5658           enabled sockets on WIN32
5659         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
5660
5661 2005-10-31 Borut Razem <borut.razem AT siol.net>
5662
5663         * support/regression/generate-cases.py: escape backslashes in {testcase}:
5664           WIN32 backslash path delimiters should be escaped when used in C strings
5665         * support/regression/tests/bitfields.c: exclude failing assertions for
5666           __CYGWIN32__ and __MINGW32__ hosts
5667
5668 2005-10-30 Borut Razem <borut.razem AT siol.net>
5669
5670         * src/SDCCutil.c: corrected double comparison typo
5671
5672 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
5673
5674         * device/lib/medium/Makefile: added for new memory model medium
5675         * device/include/asm/mcs51/features.h: updated for medium/pdata
5676         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
5677           added Multiply & Accumulate sbit's and MAC0_PAGE define
5678         * device/include/mcs51/c8051f300.h: added sfr16 definitions
5679         * device/include/mcs51/c8051f310.h: added sfr16 definitions
5680         * device/lib/_mullong.c: update for medium model
5681         * device/lib/incl.mk: added medium model
5682         * doc/sdccman.lyx: documented medium model
5683         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
5684         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
5685         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
5686         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
5687           (allocParms): set SCLS and OCLS to pdata for medium model
5688         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
5689           for pdata,
5690           (powof2): return <0 if not power of 2
5691         * src/avr/gen.c (genBitWise): use updated powof2
5692         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
5693           (shiftR2Left2Result): small optimization in setup, save acc when storing,
5694           (shiftLLeftOrResult): use B if necessary
5695         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
5696         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
5697         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
5698         * support/regression/Makefile.in: added test-mcs51-medium
5699         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
5700
5701 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
5702
5703         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
5704         specifier unsigned
5705         * device/lib/time.c (mktime): fixed bug 1334315
5706
5707 2005-10-28 Raphael Neider <rneider AT web.de>
5708
5709         * device/include/pic/p16f_common.inc: added common declarations
5710         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
5711
5712 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
5713
5714         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
5715           (aopPutUsesAcc): added to predict accumulator use,
5716           (assignResultValue): save acc if necessary,
5717           (genMinusDec): store result if indirectly addressed,
5718           (genDivOneByte):  save acc if necessary,
5719           (movLeft2Result): bugfix if left already in acc,
5720           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
5721             attention to accumulator use (esp. pdata),
5722           (genReceive): receive pdata correctly
5723         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
5724         * src/SDCCicode.h: added isOperandInPagedSpace prototype
5725
5726 2005-10-27 Raphael Neider <rneider AT web.de>
5727
5728         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
5729
5730 2005-10-27 Raphael Neider <rneider AT web.de>
5731
5732         * .version: changed version to 2.5.4
5733         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
5734         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
5735           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
5736             arithmetics support routines
5737         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
5738         * device/lib/Makefile.in: also create installdir for pic
5739
5740         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
5741           pic14 port as well
5742         * src/pic/device.c (dump_sfr): rewritten to delegate register
5743           placement to the linker (use `extern sym' rather than sym EQU addr),
5744           (validAddress): fixed to check last specified address
5745         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
5746           (popGetLit): truncate literal value to 8 bit,
5747           (popGet): moved assert to more appropriate place
5748           (popGetExternal): create pCode operand from and mark the according
5749             symbol as being `extern'
5750           (popGetAddr): added sanity check on immediate's offset, provide
5751             GPOINTER tag on demand
5752           (aopPut): fixed for immediates,
5753           (mov2w_op): move operand's address or contents to WREG (depending on
5754             operand type), safer variant of mov2w,
5755           (movwf,call_libraryfunc): NEW, handy abbreviations,
5756           (get_argument_pcop,get_return_val_pcop,pass_argument,
5757           get_returnvalue): interface for accessing function parameters and
5758             return values,
5759           (assignResultValuei,genRet): use new parameter/return value interface
5760           (pic14_getDataSize): back to old version handling generic pointers,
5761           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
5762             provided implementation and/or fixed old one,
5763           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
5764             calls, removed legacy 8051 reference code
5765           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
5766           (loadSignToC): NEW, move the operands sign bit to CARRY,
5767           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
5768             genRightShiftSigned, accepts negative shift counts,
5769           (setup_fsr): load FSR and adjust IRP (indirect memory access),
5770           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
5771             generic pointers, __data pointers and __code pointers,
5772           (genUnpackBits,genPackBits): rewritten to work with generic pointers
5773             and signed bitfields, limit bitfields to 8 bit,
5774           (genDataPointerGet): fixed number of bytes read,
5775           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
5776           (genPointerGet,genPointerSet): fixed handling of __code pointers,
5777             pointers to constant data are no longer assumed to point to __code
5778             space, removed invalid pointer types,
5779           (bitpatternFromVal): retrieve the PICs representation of an integer
5780             or float literal,
5781           (genDataPointerSet): fixed assigning to po_immediate operands,
5782           (genGenPointerSet): implemented as library call,
5783           (genIfx): fixed incorrect condition,
5784           (genAddrOf): limit generic pointers' addresses to 2 bytes,
5785             provide GPOINTER tag according to destination's storage class,
5786           (genCast): added code to handle casting to generic pointers, added
5787             sign-/zero extension of the result
5788           (aop_isLitLike,op_isLitLike): fixed handling of immediates
5789         * src/pic/gen.h: added macros to access IRP bit in STATUS register
5790         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
5791           extend the result
5792         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
5793           address/register resides in the shared banks
5794           (emitSymbolToFile): improved to handle global and `pinned' symbols,
5795             put all variables into separate sections (have the linker arrange
5796             them)
5797           (picglue): put init code and interrupt handlers in separate sections
5798         * src/pic/main.c: added port specific options table, modified to PORT
5799           structure to make GPOINTERs 3 byte, added pic14_options
5800           (_pic14_do_link): private linking routine (update paths to libraries,
5801             add libsdcc.lib by default)
5802         * src/pic/main.h: declare pic14_options
5803         * src/pic/pcode.c: fixed instructions i/o relations,
5804           (RegCond): reverted to correct version,
5805           (newpCodeOpLit): truncate literals to 8 bit,
5806           (genericPrint): added debug output,
5807           (getRegFromInstruction): fixed for various operand types, simplified
5808           (BuildFlow): fixed broken handling of isntructions with labels
5809           (LinkFlow): start at last instruction in flow (skip trailing comments),
5810             pass the flow on to the next instruction after CALL
5811           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
5812           (insertPCodeInstruction): fixed inserting after a skip instruction,
5813           (DoBankSelect): fixed for labeled instructions
5814           (OptimizepBlock): honor --nopeep switch
5815           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
5816         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
5817         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
5818           (pCodeOptime2pCodes): allow disabling this optimization via
5819             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
5820             but is still buggy), started implementation of a dataflow based
5821             pCode optimization (CSE + dead code elimination)
5822           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
5823         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
5824           names are independant of the stack location and therefore portable across
5825           devices
5826
5827 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
5828
5829         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
5830           (selectSpil): fixed bug 1337835 by not spilling bit variables
5831         * support/regression/tests/bug1337835.c: added test for this bug
5832         * src/mcs51/peeph.def: restart after rule 3.c,
5833           addded rules 263.x to optimize loading constants
5834
5835 2005-10-26 Raphael Neider <rneider AT web.de>
5836
5837         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
5838         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
5839           (genAssign): emit warning when casting literals to generic pointer
5840             type, also applies when taking the address of a fixed variable,
5841           (genCast): improved casting to generic pointers
5842         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
5843           extern variables, added verbose error message
5844         * device/include/pic16/{string.h,errno.h}: added #pragma library c
5845
5846 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
5847
5848         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
5849         carry must be complemented too
5850         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
5851         could be emitted by genMinus
5852         * src/SDCCval.c (constVal): fixed bug 1305065
5853
5854 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
5855
5856         * src/SDCCast.c (addCast): added promotion for bit variables
5857         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
5858         promotion casts + optimisation
5859         (optimizeGetWord): fix warning 'i' might be used uninitialized
5860         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
5861         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
5862
5863 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
5864
5865         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
5866         all chars are promoted to int; promotion should be handled in SDCCast.c
5867
5868 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5869
5870         * device/lib/_strcmp.c: Fixed bug 1326457
5871
5872 2005-10-11 Raphael Neider <rneider AT web.de>
5873
5874         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
5875         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
5876
5877 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
5878
5879         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
5880         * support/regression/tests/sfr16.c: added test for the sfr32 bug
5881
5882 2005-10-04 Raphael Neider <rneider AT web.de>
5883
5884         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
5885           device/lib/pic16/pics.all: added pic18f1320
5886         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
5887
5888 2005-09-30 Raphael Neider <rneider AT web.de>
5889
5890         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
5891         * src/pic16/devices.inc: NEW, provides device descriptions
5892         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
5893
5894 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
5895
5896         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
5897           GETHBIT
5898
5899 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
5900
5901         * doc/sdccman.lyx: updated Highest Order Bit documentation,
5902           documented Any Order Bit, Higher Order Byte and Higher Order Word
5903         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
5904         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
5905           (optimizeGetAbit): new, to get any bit, not only the high bit,
5906           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
5907           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
5908           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
5909           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
5910             RIGHT_OP: also try GETBYTE, GETWORD optimization,
5911             GETABIT, GETBYTE, GETWORD: decorate them,
5912           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
5913           (ast_print): added GETABIT, GETBYTE, GETWORD
5914         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
5915         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
5916           (geniCodeBinary): new generic binary icode,
5917           (ast2iCode): added GETABIT, GETBYTE, GETWORD
5918         * src/port.h: updated comment for PORT.hasExtBitOp
5919         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
5920           (genGetByte): new, to get a single byte,
5921           (genGetWord): new, to get a word from a long,
5922           (gen51Code): added GETABIT, GETBYTE, GETWORD
5923         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
5924
5925 2005-09-23 Raphael Neider <rneider AT web.de>
5926
5927         * configure.in, configure: have device/lib/pic configured
5928         * device/lib/Makefile.in: added model-pic14
5929         * device/lib/clean.mk: added pic/ to clean rule
5930         * device/lib/pic: added rudimentary pic14 library providing support
5931           functions for multiplication/division/generic pointer access
5932         * src/SDCCopt.c (convilong): mark support functions as extern
5933           for pic14 port as well
5934         * src/pic/gen.c (genMult): added assertions,
5935           (genpic14Code): emit warning on unhandled iCodes
5936         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
5937         * src/pic/pcode.c (pCodeOpCopy),
5938         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
5939           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
5940           SFR_REGISTER}), made safe for future extensions
5941         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
5942           instructions even if preceeded by SKIP instructions (also remove
5943           them); removed unused code
5944         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
5945           prevents leaving parts of the structure uninitialized after copying
5946
5947 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
5948
5949         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
5950           ago by me
5951         * support/regression/tests/addsub.c: added test for the bug
5952
5953 2005-09-21 Raphael Neider <rneider AT web.de>
5954
5955         * device/include/pic16/pic18f1220.h,
5956           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
5957         * device/lib/pic16/Makefile.rules: added missing opening paren
5958         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
5959           are provided in genutils.c,
5960           (genUminusFloat,genUminus,genCmpEq): added asserts on different
5961           operand/result sizes,
5962           (genCmp): assert on NULL pointers first, then check deref'ed values
5963         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
5964           result size
5965
5966 2005-09-18 Raphael Neider <rneider AT web.de>
5967
5968         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
5969           as these are now unused,
5970           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
5971         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
5972           local, avoids uninitialized pointer dereference on r->name
5973         * src/pic16/ralloc.c (newReg): fixed indentation
5974
5975 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
5976
5977         * src/SDCCval.c (constVal): fixed bug 730366
5978         * support/Util/SDCCerr.c,
5979         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
5980
5981 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
5982
5983         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
5984
5985 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
5986
5987         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
5988
5989 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
5990
5991         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
5992           (hex2dec): made hex_digit unsigned char, removed ascii dependance
5993         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
5994           (hex2dec): made hex_digit unsigned char, removed ascii dependance
5995         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
5996         * packihx/packihx.c (hexDigit): made c unsigned char
5997         * as/mcs51/lklibr.c (fndsym),
5998         * link/z80/lkgb.c (gb),
5999         * link/z80/lklibr.c (fndsym),
6000         * link/z80/lkrloc.c (relr),
6001         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
6002         * src/SDCC.lex (checkCurrFile, process_pragma),
6003         * src/SDCCglue.c (spacesToUnderscores),
6004         * src/SDCCmain.c (setParseWithComma, processFile),
6005         * src/asm.c (tvsprintf, printCLine),
6006         * src/avr/gen.c (emitcode, aopPut),
6007         * src/ds390/gen.c (emitcode),
6008         * src/hc08/gen.c (emitcode, emitinline),
6009         * src/mcs51/gen.c (emitcode, genInline),
6010         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
6011           tokenizeLineNode),
6012         * src/pic/ralloc.c (debugLog),
6013         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
6014           tokenizeLineNode),
6015         * src/pic16/ralloc.c (debugLog),
6016         * src/z80/main.c (_process_pragma):
6017            made all ctype.h function calls safe
6018         * src/SDCCopt.c: include math.h for fabs
6019         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
6020           and used them throughout the code to make ctype.h function calls safe
6021         * src/ds390/main.c (asmLineNodeFromLineNode),
6022         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
6023         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
6024            unsigned char*
6025         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
6026           (newpCodeAsmDir): made ctype.h function calls safe
6027         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
6028           pic16_emitcode):  made lbp unsigned char*
6029         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
6030           (pic16_newpCodeAsmDir): made ctype.h function calls safe
6031         * src/xa51/gen.c (emitcode),
6032         * src/z80/gen.c (_emit2): made lbp unsigned char*
6033         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
6034            char*
6035
6036 2005-09-05 Raphael Neider <rneider AT web.de>
6037
6038         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
6039           access bank splitpoint
6040
6041 2005-09-05 Raphael Neider <rneider AT web.de>
6042
6043         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
6044
6045 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
6046
6047         * .version: changed to version 2.5.3
6048         * doc/sdccman.lyx: changed version to 2.5.3,
6049           documented --codeseg and --constseg and pragma codeseg and constseg,
6050           documented bit parameters (reentrant) and bit returning
6051         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
6052            currFunc->recvSize, but is this ok for all ports?
6053           (ast2iCode): result of ~ on unsigned char must be cast to int for
6054            bool to work
6055         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
6056           function pointers in bit space
6057         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
6058           (processFuncArgs): call port.reg_parm() with reentrancy info
6059         * src/port.h,
6060         * src/avr/main.c,
6061         * src/ds390/main.c,
6062         * src/hc08/main.c,
6063         * src/pic/main.c,
6064         * src/pic16/main.c,
6065         * src/xa51/main.c,
6066         * src/z80/main.c: port.reg_parm prototype extended with
6067           "bool reentrant" parameter
6068         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
6069           options.stackAuto for allocating bit register parameters
6070         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
6071           (genSend): set BitBankUsed if it is,
6072           (selectRegBank): factored out of genCall for use in genPcall,
6073           (genCall): removed redundant dtype assignmen, use selectRegBank,
6074           (genPcall): handle returning in Carry properly, save in F0 if needed,
6075           (genReceive): handle bit register parameters
6076         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
6077           (mcs51_assignRegisters): enable bit registers for all reentrant
6078            functions and don't set BitBankUsed unconditionally
6079         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
6080         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
6081         * support/regression/tests/funptrs.c: added tests for BOOL and for return
6082
6083 2005-08-27 Borut Razem <borut.razem AT siol.net>
6084
6085         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
6086         ppc-osx (Darwin) does not support -u option. It seems that it is
6087         supported only on Linux - GNU cp
6088
6089 2005-08-25 Borut Razem <borut.razem AT siol.net>
6090
6091         * sim/ucsim/gui.src/serio.src/Makefile.in,
6092           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
6093           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
6094           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
6095           install and strip, since the strip at /usr/ccs/bin should be used
6096           on solaris
6097
6098 2005-08-24 Borut Razem <borut.razem AT siol.net>
6099
6100         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
6101
6102 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
6103
6104         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
6105         ffffffffu
6106
6107 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
6108
6109         * as/mcs51/aslink.h: completed lkrloc.c prototypes
6110         * as/mcs51/lkmain.c (link_main): fixed warning
6111         * device/include/stdbool.h: ds390 has no advanced bit support yet
6112         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
6113         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
6114         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
6115           and updated their macros
6116         * src/SDCCval.c (constVal): updated comment for renamed b_long
6117
6118 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
6119
6120         * as/mcs51/asdata.c: changed ctype['['] to BINOP
6121         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
6122           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
6123           (oprio): set priority for '['
6124         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
6125            and adb_24_bit
6126         * as/mcs51/asm.h: added defines R_BIT and S_BIT
6127         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
6128         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
6129         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
6130           added overlayable BIT_BANK area
6131         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
6132           (summary2): explain 'T' in legenda
6133         * as/mcs51/lkrloc.c: replaced old K&R style,
6134           (relr): added R_BIT processing,
6135           (errmsg): added "Bit-addressable relocation error",
6136           (adb_bit): added for converting from byte- to bit-addressable space,
6137           (adb_24_bit): added for converting from byte- to bit-addressable space
6138         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
6139            used in reentrant functions now even as return value
6140         * device/lib/_gptrput.c (_gptrput): removed obsolete code
6141         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
6142           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
6143         * src/SDCCglobl.h: added indicator BitBankUsed
6144         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
6145            the bit registers b0-b7
6146         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
6147           (geniCodeCast): fixed bug 1263853,
6148           (geniCodeLogicAndOr): put result in bool or char,
6149           (geniCodeReceive): added parameter func for accessing the return type,
6150           (geniCodeFunctionBody): pass func to geniCodeReceive
6151         * src/SDCCmain.c: added indicator BitBankUsed
6152         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
6153         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
6154           (checkSClass): don't put automatic bool/bit on stack,
6155           (checkFunction): removed check on function cannot return bit
6156         * src/SDCCsymt.h: added newBoolLink prototype
6157         * src/mcs51/gen.c (rb1regs): added bit registers,
6158           (movc): created for assigning to carry,
6159           (pushReg, popReg): created for pushing registers,
6160           (sameRegs): check both AOP_REG and AOP_CRY types,
6161           (aopOp): handle bit registers,
6162           (aopPut): optimization no self-assign,
6163           (saveRegisters): push reg->base (bits) only once for bit registers,
6164            and use pushReg,
6165           (unsaveRegisters): pop reg->base only once and use popReg,
6166           (assignResultValue): added parameter func and return in carry for bits,
6167           (genIpush): optimization no reload in A if not changed,
6168           (genSend): bit parameters in reentrant functions are passed in bit
6169            registers by first assigning to bits in B, then save registers and
6170            copy B to bits,
6171           (genCall): handle returning in Carry properly, save it in F0 if needed,
6172           (genPcall): updated assignResultValue call, this is not safe yet for bit
6173            returning function !!!
6174           (genFunction): don't generate equ's for bit registers and use pushReg,
6175           (genEndFunction): take care of bit returning functions and use popReg,
6176           (genRet): return bit in Carry,
6177           (genIfx): optimize bit registers and other directly addressable bits,
6178           (genReceive): updated assignResultValue call
6179         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
6180           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
6181            registers when using stack-auto
6182         * src/mcs51/ralloc.c (_G): added allBitregs,
6183           (regs8051): added the bit registers,
6184           (createStackSpil): use macro IS_BIT,
6185           (getRegBit): added to allocate a bit register, else spill,
6186           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
6187           (updateRegUsage): factored out to ease stepping while debugging,
6188           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
6189            also allocate bit registers,
6190           (fillGaps): handle bit registers,
6191           (findAllBitregs): added to create bit vector with all bit registers,
6192           (mcs51_allBitregs): returns this bit vector,
6193           (mcs51_assignRegisters): when using stack-auto use bit registers for
6194            passing parameters and creating local variables
6195         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
6196
6197 2005-08-22 Borut Razem <borut.razem AT siol.net>
6198
6199         * device/lib/Makefile.in: replaced find option -or with -o
6200           to make it run on solaris
6201
6202 2005-08-22 Raphael Neider <rneider AT web.de>
6203
6204         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
6205           fixes #1265442 (crash on Solaris)
6206
6207 2005-08-20 Borut Razem <borut.razem AT siol.net>
6208
6209         * configure, configure.in: added tests for libsocket and libnsl libraries,
6210           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
6211           from support/regression/Makefile.in
6212         * support/regression/Makefile.in: added
6213         * device/lib/pic16/Makefile.common.in: force make to use bash shell
6214         * sim/ucsim/libtool: regenerated on sparc-solaris
6215         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
6216           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
6217           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
6218           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
6219           sparc-solaris, which doesn't use GNU ld linker
6220         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
6221         * as/Makefile: find on sparc-solaris does not support -maxdepth option
6222
6223 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
6224
6225         * src/mcs51/peeph.def: updated comments
6226
6227 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6228
6229         * device/lib/_gptrget.c,
6230         * device/lib/_gptrput.c: slightly shorter
6231         * doc/sdccman.lyx: incremented version
6232         * src/mcs51/peeph.def: moved peephole comments to the line of first
6233           change to better keep line correlation, reanimated 186.e
6234         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
6235
6236 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
6237
6238         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
6239           David Saxton with quotes around file name.
6240
6241 2005-08-15 Borut Razem <borut.razem AT siol.net>
6242
6243         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
6244           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
6245           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
6246           make tests run on x86_64 platform
6247
6248 2005-08-13 Raphael Neider <rneider AT web.de>
6249
6250         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
6251           as it might be executed DURING a build (parallel make is wonderful)
6252
6253 2005-08-13 Raphael Neider <rneider AT web.de>
6254
6255         * device/lib/Makefile.in (port-specific-objects-pic16):
6256           revert to cp $(PORT)/bin/*.* $(PORTDIR)
6257         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
6258           dependency
6259         * device/lib/pic16/Makefile.rules: build subdirs before creating
6260           the library, removed builddir rule, create $(builddir) early in
6261           recurse rule, use empty recurse rule for leaf directories
6262         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
6263           mkdir errors (race condition), removed duplicate suffix "hex"
6264           from clean rules
6265         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
6266         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
6267           prevents mkdir -p from aborting on Alpha
6268
6269 2005-08-12 Raphael Neider <rneider AT web.de>
6270
6271         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
6272           db-statements in order to allow for arrays of pointers in code
6273           sections to be placed without interspersed 0-padding, fixes
6274           bug #1256215
6275         * (emitStatistics): fixed division by zero for pic18f1220
6276         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
6277           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
6278         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
6279         * (pic16_pCodeConstString): keep track of already emitted string
6280           literals to prevent "duplicate definitions of symbol _str_NR"
6281         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
6282           debug message
6283         * device/lib/Makefile.in: ignore failing PIC16 library builds
6284         * device/lib/pic16/Makefile: do not build if gputils are missing
6285         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
6286
6287 2005-08-10 Raphael Neider <rneider AT web.de>
6288
6289         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
6290           my last commit)
6291
6292 2005-08-10 Raphael Neider <rneider AT web.de>
6293
6294         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
6295           Rokas' patch to add the new fixed point type "__fixed16x16"
6296         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
6297           functions for __fixed16x16 arithmetics
6298         * device/lib/pic16: reimplemented the build system to support
6299           a separate build directory, better handling of libio (create
6300           the library in a separate subdir for each architecture) and
6301           easier configuration (centralized in Makefile.common)
6302
6303 2005-08-07 Raphael Neider <rneider AT web.de>
6304
6305         * src/pic16/gen.c (genrshTwo): fixed sign extension
6306         * src/pic16/device.c: added pic18f2320, 4220 and 4320
6307         * device/include/pic16/pic18f2220.h: changed some bit definitions,
6308           added T0CONbits
6309         * device/include/pic16/pic18f4220.h: NEW, header for
6310           pic18f4220 and pic18f4320
6311         * device/include/pic16/pic18fregs.h: added new devices,
6312           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
6313         * device/include/pic16/signal.h: resolved name clashes
6314           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
6315           to also allow testing for interrupt enable bits, added
6316           comments on how to use the macros
6317         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
6318         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
6319           register definitions for the devices
6320         * device/lib/pic16/pics.all: added new devices
6321         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
6322           allocated memory
6323         * device/lib/pic16/libc/stdlib/memfree: do not count
6324           the block header as free memory
6325         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
6326           simplified and added missing end-of-blocklist-marker
6327           (reported by Peter Onion, fixes #1252814)
6328         * (_mergeHeapBlock): fixed loop condition
6329         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
6330           len==0, restructured code
6331         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
6332           up a bit, reduced bitfield accesses, prevent endless loops
6333           in case of heap corruption
6334         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
6335           "unreferenced arguments/must return a value" warnings
6336         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
6337           replaced BAUDREG with SPBRG
6338         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
6339           device/lib/pic16/debug/gstack/gstack.c: replaced
6340           _naked, _asm, _endasm with __naked, __asm, __endasm
6341
6342 2005-08-05 Raphael Neider <rneider AT web.de>
6343
6344         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
6345           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
6346
6347 2005-08-05 Borut Razem <borut.razem AT siol.net>
6348
6349         * device/lib/Makefile.in: added missing ';'
6350         * configure: removed ^M characters
6351
6352 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6353
6354         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
6355           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
6356           License
6357
6358 2005-08-04 Borut Razem <borut.razem AT siol.net>
6359
6360         * configure.in: pic16 libraries build 2nd try - enable running
6361           configure in device/lib/pic16
6362         * configure: regenerated from configure.in
6363         * device/lib/Makefile.in: create $(PORT)/bin directory
6364
6365 2005-08-03 Raphael Neider <rneider AT web.de>
6366
6367         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
6368           to get/set values via pointers
6369         * (genUnpackBits,genPackBits): changed detection of
6370           ptr->bitfield vs. sym.bitfield, fixed access via generic
6371           pointers, removed dead (wrong) code for multibyte bitfields
6372         * (genNearPointerGet, genGenPointerGet): removed useless code,
6373           fixed bitfield detection, fixes #1250594
6374         * (genNearPointerSet): removed useless code
6375         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
6376           and introduced macro pic16_emitpcode that conditionally emits
6377           the origin of the following pCode (useful for debugging SDCC)
6378         * src/pic16/pcode.c: changed (and disabled) some debug outputs
6379         * (createDefmap): fixed handling of LFSR for --optimize-df
6380
6381 2005-08-02 Borut Razem <borut.razem AT siol.net>
6382
6383         * device/lib/Makefile.in: pic16 libraries build enabled since
6384           gputils-0.13.2 are now localy installed at sourceforge's compile farm
6385
6386 2005-08-02 Raphael Neider <rneider AT web.de>
6387
6388         * src/pic16/gen.c (genPackBits): removed deprecated warning
6389         * (genGenPointerSet): fixed bitfield detection
6390
6391 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6392
6393         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
6394
6395 2005-07-31 Raphael Neider <rneider AT web.de>
6396
6397         * device/lib/pic16/libdev/pic18f458.c,
6398           device/include/pic16/pic18f458.h: added missing T0CONbits
6399
6400 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
6401
6402         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
6403
6404 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
6405
6406         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
6407
6408 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6409
6410         * device/include/mcs51/at89c51ed2.h: added.
6411
6412 2005-07-23 Raphael Neider <rneider AT web.de>
6413
6414         * src/pic/gen.h: added emitpcode macro for debugging
6415         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
6416           and replace by macro adding debug information on demand
6417         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
6418         * (gencjne): tried to fix; replaced with correct (slower) code
6419         * (gen{Unp,P}ackBits): fixed single bit access
6420         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
6421         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
6422           previous instruction
6423         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
6424           register has to be handled with care (forbidding movement
6425           of assignments/uses, removing assignments completely, ...)
6426         * (pCodeOptime2pCodes): make use of regIsSpecial
6427         * added lots of debugging output (commented out)
6428         * src/pic/rallloc.c (deassignLRs): prevent operand registers
6429           from being reused as result UNLESS it is known to work
6430
6431 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
6432
6433         * support/Util/dbuf.h: include <stddef.h> for size_t
6434         * .version: changed to version 2.5.2
6435
6436 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6437
6438         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
6439
6440 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6441
6442         * src/hc08/gen.c (genMinus): fixed bug #1241835,
6443           (genModOneByte): removed needless psha/pula
6444
6445 2005-07-22 Raphael Neider <rneider AT web.de>
6446
6447         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
6448           have PIC14 handled like PIC16, fixes broken pic14 linker calls
6449         * src/pic/gen.c (resolveIfx): do not "invent" labels
6450         * (genSkipc): changed to positive logic
6451         * (genSkipCond): removed as no longer needed
6452         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
6453           backport from PIC16
6454         * (genLeftShift): check operands are in different registers
6455         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
6456           INCF does not update CARRY...
6457         * src/pic/main.c: fixed _linkCmd
6458         * src/pic/pcode.c (unlinkpCode): added inactive code
6459         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
6460           alive (do not assign result and operand overlapping registers)
6461
6462 2005-07-22 Raphael Neider <rneider AT web.de>
6463
6464         * src/pic/device.c (dump_sfr): replaced register declaration with
6465           call to emitSymbolToFile() to avoid duplicate symbols
6466         * (assignRelocatableRegisters): do not declare external symbols
6467         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
6468           right (take size of type, not etype)
6469         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
6470         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
6471         * (packRegsForAccUse): disabled assignment of WREG as
6472           the result reg to prevent occurence of just fixed #1235003,
6473           fixes #1242954
6474         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
6475           symbols (avoids duplicate symbols in .asm file)
6476         * (pic14emitRegularMap): use emitSymbolToFile()
6477         * src/pic/gen.c (aopOp): fixed spillLocation handling
6478         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
6479         * (genDataPointerSet): removed unneccessary variables/output
6480
6481 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
6482
6483         * as/mcs51/lkarea.c: enlarged codemap for banked memory
6484         * device/lib/mcs51/crtbank.asm: added # to 0x0F
6485
6486 2005-07-21 Raphael Neider <rneider AT web.de>
6487
6488         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
6489           architecture cannot handle them efficiently, fixes bug #1235003
6490         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
6491           check for empty sets before using them (fixes bug #1232190)
6492
6493 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
6494
6495         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
6496           (lnksect2): generate warnings for memory overlap
6497         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
6498           constseg to set the name of these segments so you can instruct the linker
6499           to place them in banks
6500         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
6501         * src/SDCCglobl.h: added MODEL_HUGE to enum,
6502           added code_seg and const_seg to options
6503         * src/SDCCglue.c (emitMaps): use options.const_seg,
6504           (createInterruptVect): put interrupt vectors in segment HOME,
6505           (glue): put HOME before static segment and put the main glue in HOME,
6506           (glue): use options.code_seg
6507         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
6508         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
6509           these segments so you can instruct the linker to place them in banks
6510           (linkEdit): use code_loc for HOME segment which should be the first
6511           segment in code memory now
6512         * src/SDCCmem.c: fixed more stuff like bug 1238386
6513         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
6514           (changePointer): don't change function pointers to code pointers for
6515           banked functions,
6516           (compareType): added exceptional check for banked function pointers
6517         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
6518         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
6519           after static in code memory
6520         * src/mcs51/gen.c: added aopLiteralLong prototype,
6521           (aopForSym): use getSize for functions,
6522           (genCall): generate banked calls over one trampoline __sdcc_banked_call
6523           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
6524           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
6525           the segment,
6526           (genPcall): use call for literal function pointers and generate banked
6527           calls over the one trampoline so there's only one place for the user to
6528           modify according to his/hers hardware,
6529           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
6530           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
6531         * src/mcs51/main.c: added keyword banked,
6532           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
6533         * support/Util/SDCCerr.c,
6534         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
6535           needed for passing the bank and address to the trampoline
6536         * device/lib/mcs51/crtbank.asm: added for bankswitching
6537         * device/lib/mcs51/Makefile: added crtbank
6538
6539 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6540
6541         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
6542           for fields at offset 0 of a struct or union as reported
6543           on 2005-07-07 in the developer mailing list.
6544
6545 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
6546
6547         * src/SDCCmem.c: fixed bug 1238386
6548
6549 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6550
6551         * src/mcs51/peeph.def: added labelrefcounting for peepholes
6552           (patch #1144962), added peephole 300, enabled 259.x
6553         * doc/sdccman.lyx: removed screenshot and provided link instead
6554
6555 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6556
6557         * doc/sdccman.lyx: added section about debugging with ddd
6558         * doc/figures/ddd_example.eps: screenshot of debugging session
6559
6560 2005-07-04 Raphael Neider <rneider AT web.de>
6561
6562         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
6563           like CODE pointers, fixes #1115683
6564         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
6565           call, fixes bugs #1232211, #1228110,
6566           fixed wrong casts to pCodeFlow from pCodeInstructions
6567
6568 2005-07-04 Raphael Neider <rneider AT web.de>
6569
6570         * src/pic/gen.c (popGet): changed assert to allow for
6571           bit operands
6572         * (popGetAddr): changed signature to provide
6573           an additional index, patched all call sites
6574         * (genCmpEq): handle literal-like operands correctly
6575         * (genAddrOf): added sanity checks on __code/__data pointers
6576         * (genAssign): added handling of symbols from __code section
6577         * (gencjne): do not generate code for comparisons whose result
6578           is neither stored nor used, fixes bug #1171114
6579         * (AccLsh, AccRsh): operate on operand instead of WREG
6580         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
6581           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
6582           by known count
6583         * rewrote complete shift-by-literal logic, commented unused
6584           functions out
6585         * (genConstPointerGet): get multiple bytes (if result size > 1),
6586           fixed handling of non-immediate addresses
6587         * (genPointerGet): handle CODE pointers like CONST pointers
6588         * (genpic14Code): insert C-SRC lines as Cource-pCodes
6589         * ({aop,op}_isLitLike): NEW, single place to decide whether an
6590           operand is to be treated as a literal or not
6591         * (mov2w,genPcall,genCmpEq),
6592           src/pic/genarith.c: use aop_isLitLike() to decide between
6593           literal/register contents
6594         * (addSign): added missing offset
6595         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
6596           only emit comment in debug-mode,
6597           use {aop,op}_isLitLike throughout the file
6598         * src/pic/glue.c: fix initializers for pointers (work in progress)
6599         * src/pic/pcode.c (get_op): honor index on _const symbols
6600         * ({reset,dump}pCodeStatistics): NEW, estimate code size
6601         * (dumppBlock): added pCode size estimation
6602         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
6603           check for IS_SYMOP before OP_SYMBOL'ing
6604         * fixed indentation, compacted switch-statements
6605         * (allocReg): find free register and allocate it instead of
6606           allocating new registers all the time
6607         * (deassignLRs): prevent POINTER_GET's from being assigned the same
6608           registers as its operands (necessary only for multibyte GETs)
6609
6610 2005-07-01 Raphael Neider <rneider AT web.de>
6611
6612         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
6613           debugging .asm-output macros FENTRY + FEXIT
6614         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
6615           way... I wonder...
6616         * (emitpComment): NEW, printf to pCode
6617         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
6618           offset handling
6619         * (popGetAddr): NEW, variant of popGet to access an immediates
6620           high(er) bytes instead of the n'th byte of memory they reference,
6621           replaced popGet with popGetAddr where neccessary
6622         * (genDataPointerGet): reactivated and fixed implementation
6623         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
6624           accesses
6625         * (genDataPointerSet): fixed multibyte assignments
6626         * (genpic14Code): fixed --i-code-in-asm handling
6627         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
6628         * (genPlus): fixed index-out-of-bounds error
6629         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
6630         * src/pic/ralloc.c: added debugging output macro FENTRY2
6631         * (spillThis): fixed indentation, enbraced for-body for clarity
6632         * (rematStr): commented out as now unused
6633         * (regTypeNum): commented out special spill case (overwrites
6634           arbitrary values)
6635         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
6636
6637 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
6638
6639         * doc/sdccman.lyx: documented sfr16/sfr32,
6640           added example for using storage class with function pointers
6641         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
6642
6643 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
6644
6645         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
6646         * device/lib/_itoa.c,
6647         * device/lib/_ltoa.c: optimized codesize
6648         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
6649           but don't know how to suppress the double warning.
6650         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
6651         * support/Util/SDCCerr.c,
6652         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
6653
6654 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
6655
6656         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
6657           fixed old K&R prototypes
6658         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
6659         * device/lib/_gptrget.c,
6660         * device/lib/_gptrgetc.c,
6661         * device/lib/_gptrput.c: changed versions for new memory indicator values,
6662           also new versions for small generic pointers and banked generic pointers
6663         * src/port.h: added const_name
6664         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
6665         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
6666         * src/SDCCcse.c (findPrevIc): check all associative operators
6667         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
6668         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
6669         * src/SDCCmem.c: updated comments,
6670           set far-space to 0 for pdata, results in optimized code
6671         * src/SDCCmem.h: added macro CONST_NAME
6672         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
6673           moving the info into the highest bits, see also gptrget/gptrput
6674         * src/src.dsp: added sdcc.ico to project files
6675         * src/avr/gen.c (genCast): fixed bug 0x%d
6676         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
6677         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
6678           relation between ptr_type and DCL_TYPE,
6679           (genCast): fixed bug 0x%d
6680         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
6681           (CODE)" for const_name
6682         * src/hc08/gen.c (genCast): fixed bug 0x%d
6683         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
6684           (hc08_port): added "CONST (CODE)" for const_name
6685         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
6686           (aopForRemat, adjustArithmeticResult): disconnected direct relation
6687           between ptr_type and DCL_TYPE,
6688           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
6689           operand* and took AOP() inside function so sfr-ness can be checked,
6690           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
6691           new prototype,
6692           (genFunction, genEndFunction): optimized stack setup,
6693           (genMinus): optimized for literals with ending zeroes (in bytes),
6694           (genCast): fixed bug 0x%d
6695         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
6696           (mcs51_port): added "CONST (CODE)" for const_name
6697         * src/mcs51/peeph.def: made rule 226 more generic
6698         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
6699         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
6700         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
6701         * src/z80/main.c (z80_port): added NULL for const_name,
6702           (gbz80_port): added NULL for const_name
6703         * support/regression/tests/bug663539.c,
6704         * support/regression/tests/sfr16.c: new tests
6705
6706 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6707
6708         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
6709
6710 2005-06-24 Raphael Neider <rneider AT web.de>
6711
6712         * device/lib/pic16/libdev/pic18f[68][567]20.c:
6713           corrected typos...
6714         * device/include/pic16/signal.h: added USBIF
6715           and SIG_USB
6716
6717 2005-06-24 Raphael Neider <rneider AT web.de>
6718
6719         * device/lib/pic16/libdev/pic18f2455.c,
6720           device/include/pic16/pic18f2455.h: NEW
6721         * device/include/pic16/pic18fregs.h,
6722           device/lib/pic16/pics.all,
6723           src/pic16/device.c: added 18f2455
6724         * device/lib/pic16/libdev/pic18f[68][567]20.c,
6725           device/include/pic16/{pic18f[68][567].h,usart.h}:
6726           replaced MULTIPLE_USARTS define with more relaible
6727           compatibility sfrs (for USART access)
6728
6729 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
6730
6731         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
6732           and the output asm file line is printed on two lines.
6733
6734 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6735
6736         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
6737           BGT, BLE, BHI, and BLS instructions
6738         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
6739           genCmpEq): removed
6740         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
6741           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
6742           fixes bug #1216342
6743         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
6744
6745 2005-06-15 Raphael Neider <rneider AT web.de>
6746
6747         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
6748         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
6749         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
6750           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
6751           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
6752
6753 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6754
6755         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
6756           Marcel Telka in bug #1215704
6757
6758 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
6759
6760         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
6761           located in shared memory bank.
6762
6763 2005-05-31 Raphael Neider <rneider AT web.de>
6764
6765         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
6766           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
6767           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
6768
6769 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
6770
6771         * device/lib/_strncpy.c: fixed the fix
6772
6773 2005-05-26 Raphael Neider <rneider AT web.de>
6774
6775         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
6776           initializers with \0, bug #1208187
6777         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
6778           intializers with \0, bug #1208187
6779
6780 2005-05-26 Raphael Neider <rneider AT web.de>
6781
6782         * src/pic16/glue.c (pic16_printIvalChar): fixed string
6783           initializers with \0, bug #1208187
6784         * src/pic16/main.c (_process_pragma): added sanity checks
6785           for stack position and size, emit warnings when appropriate
6786
6787 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
6788
6789         * device/lib/_strncpy.c: fixed not filling with \0
6790
6791 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6792
6793         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
6794           createFunction),
6795         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
6796           compound_statement),
6797         * src/SDCCsymt.h,
6798         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
6799
6800 2005-05-24 Raphael Neider <rneider AT web.de>
6801
6802         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
6803
6804 2005-05-24 Raphael Neider <rneider AT web.de>
6805
6806         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
6807           TRISE definitions, closes bug #1162453
6808
6809 2005-05-22 Raphael Neider <rneider AT web.de>
6810
6811         * src/pic16/main.c (_process_pragma): check for missing
6812           arguments to pragmas code and udata
6813         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
6814           consistency fixes to match other headers (thanks to Jim Paris)
6815         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
6816
6817 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
6818
6819         * src/SDCCicode.c (isOperandEqual): fixed missing ;
6820
6821 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
6822
6823         * support/regression/tests/bug1198642.c: new test
6824         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
6825         * src/SDCCcse.c (findPrevIc): added comment, please have a look
6826         * support/scripts/resource.h,
6827         * support/scripts/resource.rc,
6828         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
6829         * support/scripts/sdcc.ico: added 32x32 icon
6830
6831 2005-05-18 Raphael Neider <rneider AT web.de>
6832
6833         * device/lib/pic16/libdev/pic18f*.c,
6834         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
6835           keywords to "__sfr" and "__at (X)"
6836         * device/include/pic16/pic18fregs.h: added pic18f4520
6837         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
6838           #1203088 (MPLAB compatibility)
6839
6840 2005-05-17 Raphael Neider <rneider AT web.de>
6841
6842         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
6843         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
6844         * device/lib/pic16/pics.all: added new devices
6845         * src/pic16/device.c: added support for pic18f4520
6846
6847 2005-05-16 Raphael Neider <rneider AT web.de>
6848         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
6849         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
6850         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
6851           convenience function for bit access
6852
6853 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
6854
6855         * device/lib/printf_large.c: fixed bug 1193299
6856         * support/regression/tests/bug1057979.c: added test %3.3s
6857
6858 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6859
6860         * device/include/mcs51/8051.h,
6861         * device/include/mcs51/8052.h: made parseable with lint
6862         * device/include/mcs51/lint.h: added include file for (sp)lint
6863         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
6864         * doc/cdbfileformat.lyx,
6865         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
6866
6867 2005-05-14 Raphael Neider <rneider AT web.de>
6868
6869         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
6870         * device/lib/pic16/libc/stdlib/itoa.c (new)
6871         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
6872         * device/lib/pic16/libio/Makefile: exclude subdir according to
6873           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
6874         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
6875         * src/pic16/gen.c (genFunction): prevent annoying warning
6876         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
6877           nameclashes on BeOS
6878         * support/cpp2/cppmain.c (cpp_output_string): new
6879         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
6880           fixes bug 1116802
6881
6882 2005-05-13 Borut Razem <borut.razem AT siol.net>
6883
6884         * src/SDCCmain.c (linkEdit): fixed bug 1195202
6885
6886 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6887
6888         * .version: changed to version 2.5.1; back to bleeding edge development
6889
6890 2005-05-11 Borut Razem <borut.razem AT siol.net>
6891
6892         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
6893           generate PDF version 1.3 documents
6894
6895 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6896
6897         * .version: changed to version 2.5.0
6898
6899 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6900
6901         * doc/sdccman.lyx: updated weblinks, index and smaller updates
6902
6903 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6904
6905         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
6906         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
6907         well as many smaller updates.
6908         * .version: changed to version 2.5.0-pre1
6909
6910 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6911
6912         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
6913
6914 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
6915
6916         * support/regression/tests/bug1185672.c: added
6917         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
6918           bug 1185672
6919         * src/mcs51/gen.c (genCall): added comments, made it look safer
6920         * src/mcs51/gen.c (genEndFunction): simplified
6921
6922 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
6923
6924         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
6925
6926 2005-04-14 Borut Razem <borut.razem AT siol.net>
6927
6928         * fixed bug 1045046 - SIGSEGV with really simple code?:
6929           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
6930           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
6931
6932 2005-04-14 Borut Razem <borut.razem AT siol.net>
6933
6934         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
6935           src/pic16/device.h: temporarily disabled experimental #inline pragma
6936           for 2.5.0 release
6937
6938 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
6939
6940         * device/include/z80/stdio.h,
6941         * device/include/z80/string.h: removed these highly incomplete files so
6942           SDCC can use the default ones in device/include/
6943
6944 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6945
6946         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
6947         gcc warning.
6948         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
6949         fix sdcpp warnings.
6950
6951 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
6952
6953         * device/include/malloc.h: removed redundant __reentrant prototypes
6954         * device/lib/_mullong.c: added working xstack variant in asm (C version
6955           doesn't pass regression tests)
6956         * device/lib/bpx.c: used __data and made bpx char for mcs51
6957         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
6958           (createFunction): fixed bug with xstackPtr
6959         * src/SDCCcse.c: corrected comments
6960         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
6961           (killDeadCode, eBBlockFromiCode): removed unused code
6962         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
6963           corrected comments
6964         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
6965           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
6966           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
6967           (genModOneByte): fixed warning in MSVC
6968         * src/mcs51/main.c (): added comments
6969         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
6970
6971 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
6972
6973         * src/SDCCmain.c (linkEdit): oops, changed one line too many
6974
6975 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
6976
6977         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
6978
6979 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
6980
6981         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
6982         characters arrays of larger size than the declared one.
6983
6984 2005-04-10 Borut Razem <borut.razem AT siol.net>
6985
6986         * src/pic/gen.c (genInline),
6987           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
6988           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
6989           (findNextInstruction), (findPrevInstruction),
6990           (findInstructionUsingLabel),
6991           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
6992         * src/pic/pcode.c (findLabel): added missing '\n'
6993         * src/src.dsp: added SDCCdwarf2.c to the project
6994
6995 2005-04-09 Borut Razem <borut.razem AT siol.net>
6996
6997         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
6998
6999 2005-04-08 Raphael Neider <rneider AT web.de>
7000
7001         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
7002           into the chain after a given one) and mergeDefmapSymbols (combine
7003           defmap entries for each symbol per pcode)
7004         * (createDefmap): have defmap entries merged in the end
7005         * (defmapReplaceSymRef): split defmap entries covering two accesses to
7006           a symbol before replacing one access type's symbol, merge symbols in
7007           the end (replacement symbol might already have an entry)
7008         * (assignValnums): keep reference to written WREG intact
7009
7010 2005-04-08 Raphael Neider <rneider AT web.de>
7011
7012         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
7013           Alpha)
7014
7015 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
7016
7017         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
7018         bytes
7019
7020 2005-04-07 Raphael Neider <rneider AT web.de>
7021
7022         * device/include/pic16/usart.h: added compatibility defines for
7023           devices with more than one USART
7024         * device/include/pic16/pic18f[68][567]20.h: activated above defines
7025
7026 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7027
7028         * device/lib/Makefile.in: updated for port specific include
7029
7030 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7031
7032         * support/regression/ports/mcs51/spec.mk: added mcs51 include
7033
7034 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7035
7036         * device/include/8051.h,
7037         * device/include/8052.h,
7038         * device/include/at89S8252.h,
7039         * device/include/at89c55.h,
7040         * device/include/at89x051.h,
7041         * device/include/at89x51.h,
7042         * device/include/at89x52.h,
7043         * device/include/mcs51reg.h,
7044         * device/include/reg51.h,
7045         * device/include/reg764.h,
7046         * device/include/regc515c.h,
7047         * device/include/sab80515.h: (re)moved these 12 files
7048         * device/include/mcs51/8051.h,
7049         * device/include/mcs51/8052.h,
7050         * device/include/mcs51/at89S8252.h,
7051         * device/include/mcs51/at89c55.h,
7052         * device/include/mcs51/at89x051.h,
7053         * device/include/mcs51/at89x51.h,
7054         * device/include/mcs51/at89x52.h,
7055         * device/include/mcs51/mcs51reg.h,
7056         * device/include/mcs51/reg51.h,
7057         * device/include/mcs51/reg764.h,
7058         * device/include/mcs51/regc515c.h,
7059         * device/include/mcs51/sab80515.h: and added them here
7060
7061 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
7062
7063         * device/include/stdarg.h: changed SDCC specific keywords to double
7064           underlined form.
7065         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
7066           mcs51 and ds390.
7067         * device/include/hc08/mc68hc908gp32.h,
7068         * device/include/hc08/mc68hc908jb8.h,
7069         * device/include/hc08/mc68hc908jkjl.h,
7070         * device/include/hc08/mc68hc908qy.h: fixed comments
7071         * device/include/mcs51/README: updated
7072         * device/include/mcs51/c8051f120.h: added PINRSF
7073         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
7074         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
7075           amidst code. Also inline is not supported.
7076
7077 2005-04-06 Raphael Neider <rneider AT web.de>
7078
7079         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
7080         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
7081           callers stack/frame pointers
7082
7083 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
7084
7085         * device/include/pic16/usart.h: added, missing in previous commit,
7086         * device/include/pic16/adc.h: fixed typo,
7087         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
7088         commit,
7089         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
7090         <p18fxxx.inc>
7091         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
7092         uninitialized because a bug appears with gplink
7093         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
7094         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
7095         complains for unrecognised option
7096
7097 2005-04-05 Raphael Neider <rneider AT web.de>
7098
7099         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
7100           structs as well (using memcpy)
7101         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
7102           on ISRs (GOTO has no label)
7103         * src/pic16/device.h: added OF_OPTIMIZE_DF
7104         * src/pic16/main.c: added compiler switch --optimize-df to enable the
7105           new data flow analysis/optimization
7106         * src/pic16/pcode.c: added (prototypes for and implementation of)
7107           dataflow analysis functions, fixed pCodeInstructions' inCond and
7108           outCond values, made RCALL a branch instruction
7109         * (pic16_unlinkpCode): keep C line if possible
7110         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
7111           C line moved if possible
7112         * (pic16_getRegFrompCodeOp): NEW, improved version of...
7113         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
7114           to use new pic16_getRegFrompCodeOp (works for more SFRs)
7115         * (pic16_BuildFlow): fixed skip instructions with label (did not start
7116           new flow)
7117         * (pic16_getJumptabpCode): NEW, needed in...
7118         * (LinkFlow): fixed handling of jumptables, calls and conditional
7119           branches
7120         * (pic16_InsertCommentAfter): NEW
7121         * (pic16_pCodeReplace): made verbose and flow preserving
7122         * (AnalyzeFlow): added call to data flow analysis
7123         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
7124         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
7125         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
7126
7127 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7128
7129         * src/SDCCast.c (decorateType): fixed bug #1105626
7130
7131 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
7132
7133         * device/include/asm/pic16/features.h,
7134         * pic18f*.h headers,
7135         * device/include/pic16/adc.h,
7136         * device/include/pic16/delay.h,
7137         * device/include/pic16/i2c.h,
7138         * device/include/pic16/malloc.h,
7139         * device/include/pic16/stdio.h,
7140         * device/include/pic16/stdlib.h,
7141         * device/include/pic16/string.h,
7142         * device/lib/pic16/libc/stdio/printf_tiny.c,
7143         * device/lib/pic16/libc/stdio/printf_small.c,
7144         * device/lib/pic16/libc/stdio/strmgpsim.c,
7145         * device/lib/pic16/libc/stdio/strmmssp.c,
7146         * device/lib/pic16/libc/stdio/strmusart.c,
7147         * device/lib/pic16/libc/stdio/vfprintf.c,
7148         * device/lib/pic16/libc/stdlib/ltoa.c,
7149         * device/lib/pic16/libc/stdlib/putchar.c,
7150         * device/lib/pic16/libc/stdlib/x_ftoa.c,
7151         * device/lib/pic16/libc/stdlib/memchrpgm.c,
7152         * device/lib/pic16/libc/stdlib/memchrram.c,
7153         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
7154         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
7155         * device/lib/pic16/libio/adc/adcbusy.c,
7156         * device/lib/pic16/libio/adc/adcread.c,
7157         * device/lib/pic16/libio/adc/adcsetch.c,
7158         * device/lib/pic16/libio/usart/ubaud.c,
7159         * device/lib/pic16/libio/usart/ubusy.c,
7160         * device/lib/pic16/libio/usart/udrdy.c,
7161         * device/lib/pic16/libio/usart/uopen.c,
7162         * device/lib/pic16/libio/usart/uputc.c,
7163         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
7164         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
7165         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
7166         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
7167         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
7168         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
7169         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
7170         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
7171         specific keywords to double underlined form,
7172         * device/lib/pic16/libc/Makefile.rules,
7173         * device/lib/pic16/libsdcc/Makefile.rules,
7174         * device/lib/pic16/libm/Makefile,
7175         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
7176         to compile with C standard set in Makefile.common
7177         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
7178         rand.c and crc.c in compilation process,
7179         * device/lib/pic16/libsdcc/int/divuint.c,
7180         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
7181         `c' from signed to unsigned,
7182         * device/lib/pic16/startup/crt0.c,
7183         * device/lib/pic16/startup/crt0i.c,
7184         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
7185         keywords to double underlined form, bug fixes in _do_cinit function
7186         which prevented the correct initialization of the .idata segment,
7187         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
7188         core to enter a infinite loop
7189         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
7190
7191 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7192
7193         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
7194
7195 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7196
7197         * device/include/Makefile.in: add support for hc08 subdirectory
7198         * device/include/hc08/: new subdirectory
7199         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
7200         Lucas Loizaga, thanks!
7201         * device/include/hc08/mc68hc908qy.h,
7202         * device/include/hc08/mc68hc908gp32.h,
7203         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
7204         their own directory. Changed internal macro names to use the compiler
7205         reserved namespace. Changed SDCC specific keywords to double
7206         underlined form.
7207         * device/include/math.h,
7208         * device/include/malloc.h,
7209         * device/include/stdarg.h,
7210         * device/include/stdbool.h
7211         * device/include/string.h,
7212         * device/include/tinibios.h,
7213         * device/include/ds400rom.h,
7214         * device/include/8051.h,
7215         * device/include/8052.h,
7216         * device/include/80c51xa.h,
7217         * device/include/at89c55.h,
7218         * device/include/at89S8252.h,
7219         * device/include/at89x51.h,
7220         * device/include/at89x52.h,
7221         * device/include/ds80c390.h,
7222         * device/include/reg764.h,
7223         * device/include/regc515c.h,
7224         * device/include/sab80515.h,
7225         * device/include/mcs51/c8051f000.h,
7226         * device/include/mcs51/c8051f018.h,
7227         * device/include/mcs51/c8051f020.h,
7228         * device/include/mcs51/c8051f040.h,
7229         * device/include/mcs51/c8051f060.h,
7230         * device/include/mcs51/c8051f120.h,
7231         * device/include/mcs51/c8051f300.h,
7232         * device/include/mcs51/c8051f310.h,
7233         * device/include/mcs51/c8051f320.h,
7234         * device/include/mcs51/c8051f330.h,
7235         * device/include/mcs51/c8051f350.h,
7236         * device/include/z180.h: Changed SDCC specific keywords to double
7237         underlined form.
7238
7239 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
7240
7241         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
7242         18F4455,
7243         * (pic16_assignConfigWordValue): disable testing of configuration
7244         register value with config mask,
7245         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
7246         function with port->fun_prefix,
7247         * (genFunction): when generating a naked interrupt function never
7248         create an absolute segment placed in interrupt vector address, place
7249         the actual interrupt function at IVA instead, when an interrupt
7250         function is generated with unspecified interrupt then do not create
7251         the absolute section,
7252         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
7253         code for generating a call to generic pointer get/put function with
7254         a call to function pic16_callGenericPointer(),
7255         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
7256         the call to the generic pointer get/put functions with prefixing the
7257         function name with port->fun_prefix,
7258         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
7259         * src/pic16/main.c (_process_pragma): prefix function with
7260         port->fun_prefix,
7261         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
7262         calling assembler, old 18Fxxxx macro is deprecated,
7263         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
7264         PC_ASMDIR in while condition,
7265         * (findInstruction): add PC_ASMDIR in while condition,
7266         * (buildCallTree): prefix main with port->fun_prefix,
7267         * (pic16_pCode2str): fixed bug that didn't emit the memory access
7268         identifier for variable with banked access in instructions BTFSS,
7269         BTFSC, BCF, BSF, BTG
7270         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
7271         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
7272         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
7273         perform optimization when enviroment variable NO_REG_OPT is set,
7274         * (insideLRBlock): NEW, return 1 if register is inside an
7275         INF_LOCALREGS block,
7276         * (RemoveRegFromLRBlock): remove a register that is completely
7277         eliminated by register optimization, but it is still left in local
7278         register store/restore in/from stack block,
7279         * (Remove2pcodes): after removing register, check to see if it
7280         should be removed from local register store/restore in/from stack
7281         block,
7282         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
7283         DUMMY_READ_VOLATILE,
7284
7285         * device/include/pic16/adc.h: minor prototype modifications and
7286         update,
7287         * device/include/pic16/malloc.h: added GPL notice various
7288         modifications,
7289         * device/include/pic16/stdint.h: NEW, standard header for ints
7290         * device/include/pic16/delay.h: NEW, header for delay functions,
7291         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
7292         delay1mtcy,
7293         * device/include/pic16/signal.h: NEW, header providing helper macros
7294         for implementing signal handlers,
7295         * device/include/pic16/stdio.h: added prototypes for functions,
7296         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
7297         prototypes for stdin and stdout, added macro PUTCHAR to
7298         automatically implement putchar function prototype,
7299         * device/include/pic16/usart.h: modified and updated USART library,
7300         * device/lib/pic16/libio/adc/,
7301         * device/lib/pic16/libio/i2c: some modifications to improve library
7302         performance,
7303         * device/lib/pic16/libc/stdio/: modifications for the new printf*
7304         family of functions,
7305         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
7306         family of functions and other sources,
7307         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
7308         of the PIC18Fxx[28] devices,
7309         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
7310         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
7311         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
7312         _do_cinit function, because the previous failed when local variables
7313         where not placed in the same memory bank,
7314         * device/lib/pic16/libsdcc/char/: various modifications to improve
7315         library performance,
7316         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
7317         information on the new functions of the c library and more...
7318
7319 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7320
7321         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
7322
7323 2005-03-26 Raphael Neider <rneider AT web.de>
7324
7325         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
7326           if condition == CARRY)
7327         * (genCmp): adapted to new genSkipc semantics
7328         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
7329           on rIfx (genCmp was broken)
7330
7331 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7332
7333         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
7334         * src/z80/main.c (_keywords[]),
7335         * src/SDCCglobal.h (struct options),
7336         * src/SDCC.y,
7337         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
7338         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
7339         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
7340         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
7341         always available in leading double underscore form. The C99 support is
7342         mostly missing, but it's a start.
7343         * support/regression/tests/bug-227710.c: fixed nonconforming use of
7344         reserved identifier "__data".
7345
7346 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
7347
7348         * src/mcs51/peeph.def: fixed bug 1170013
7349
7350 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
7351
7352         * device/include/mcs51reg.h: fixed bug 842007
7353
7354 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7355
7356         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
7357         last time.
7358
7359 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7360
7361         * src/port.h (struct PORT),
7362         * src/avr/ralloc.c (avr_assignRegisters),
7363         * src/avr/main.c,
7364         * src/ds390/ralloc.c (ds390_assignRegisters),
7365         * src/ds390/main.c,
7366         * src/hc08/ralloc.c (hc08_assignRegisters),
7367         * src/hc08/main.c,
7368         * src/mcs51/ralloc.c (mcs51_assignRegisters),
7369         * src/mcs51/main.c,
7370         * src/pic/ralloc.c (pic14_assignRegisters),
7371         * src/pic/main.c,
7372         * src/pic16/ralloc.c (pic16_assignRegisters),
7373         * src/pic16/main.c,
7374         * src/xa51/ralloc.c (xa51_assignRegisters),
7375         * src/xa51/main.c,
7376         * src/z80/ralloc.c (z80_assignRegisters),
7377         * src/z80/ralloc.h,
7378         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
7379         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
7380         * src/SDCCcse.h,
7381         * src/SDCCdflow.c (computeDataFlow),
7382         * src/SDCCdflow.h,
7383         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
7384         * src/SDCCloop.h,
7385         * src/SDCCcflow.c (*),
7386         * src/SDCCcflow.h,
7387         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
7388         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
7389         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
7390         immedDom() returning wrong block; probably fixes bug #1160833)
7391
7392 2005-03-20 Borut Razem <borut.razem AT siol.net>
7393
7394         * support/scripts/inc2h.pl: WIN32 port
7395
7396 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
7397
7398         * device/lib/makefile.in: added abs.c and labs.c
7399
7400 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
7401
7402         * device/include/stdint.h: added
7403         * device/lib/abs.c: added
7404         * device/lib/labs.c: added
7405         * device/include/stdlib.h: added abs() and labs() prototypes
7406         * device/lib/libsdcc.lib: added abs and labs
7407         * device/include/float.h,
7408         * device/lib/_fsmul.c,
7409         * device/lib/printf_fast.c,
7410         * device/lib/printf_tiny.c: updated comments
7411
7412 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7413
7414         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
7415         bug #1164313
7416
7417 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7418
7419         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
7420         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
7421
7422 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
7423
7424         * device/lib/printf_large.c: removed inline assembly for portability and
7425           readability. Use printf_fast if speed or size are more important.
7426         * src/pic16/gen.c: removed conditions around use of DEBUGpc
7427         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
7428
7429 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
7430
7431         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
7432         prevent compiler warning
7433
7434 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
7435
7436         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
7437         moved to level 0 and declared as static. Also they are explicit
7438         placed in access bank. This was necessery because some times they
7439         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
7440         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
7441         optimizations. Currently only compare to unsigned char is implemented,
7442         * src/pic16/gen.c: added fReturnIdx array,
7443         * (struct resolvedIfx) is moved to gen.h and made public,
7444         * (struct _G): added sregsAlloc and sregsAllocSet fields,
7445         * (aopForSym): added an optimization to directly store in stack of
7446         the operand of a SEND iCode,
7447         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
7448         but as registers instead (AOP_REG) using the fReturnIdx array,
7449         * (pic16_freeAsmop): remove the freed register from the
7450         _G.sregsAlloc field,
7451         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
7452         a compare of 'WREG',
7453         * (pic16_popGetTempRegCond): changed function prototype, now
7454         function takes also a bitVector argument v which holds the current
7455         set of registers that are allocated for stack access by aopForSym,
7456         registers allocated in aopForSym for accessing stack symbols are not
7457         any more part of the functions usedRegs field,
7458         * (genCall): some times aopOp is called for a stack variable to be
7459         send, aopForSym might perform the push, if this is true make sure
7460         that genCall doesn't push the variable twice by testing _G.resDirect,
7461         * (genFunction): changed testing for unspecified interrupt number
7462         from 256 to INTNO_UNSPEC,
7463         * modified selection scheme of frame pointer generation. Previously
7464         if function did use local registers a frame pointer was generated,
7465         now a frame pointer is generated only if function has arguments
7466         (that need PLUSW2 register access), or has stack arguments, or the
7467         compiler is not instructed to omit the frame pointer,
7468         * (genEndFunction): before restoring local registers that were saved
7469         in the function preamble, also restore the registers that *might*
7470         have been allocated for stack access,
7471         * (genRet): removed some old comments,
7472         * (genCmp, the active (RN's) version): added a call to the
7473         pic16_genCmp_special function to perform the compare with a more
7474         robust and optimized way,
7475         * (genInline): a feature has been added in inline code generation,
7476         which allows a wildcard variable substitution when writing inline
7477         assembly. Code is incomplete and experimental therefore undocumented,
7478         * (genCast): changed order of aopOp for result and right to allow
7479         aopForSym to directly load the result if possible,
7480         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
7481         perform an optimized compare on some selected special occasions,
7482         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
7483         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
7484         generate an IVT any more,
7485         * src/pic16/main.c (pic16_optionsTable): added command line option
7486         --optimize-cmp,
7487         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
7488         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
7489         macros,
7490         * src/pic16/NOTES: Raphael Neider added in list of active developers
7491         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
7492         jumptable_end to prevent bug #,
7493         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
7494         inCond and outCond fields,
7495         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
7496         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
7497         turn off register spilling,
7498         * (packRegsForOneUse): synced with other ports' versions although it
7499         is not used currently,
7500         * (pic16_packRegisters): added an optimization while reading
7501         structure bitfields, some registers may be saved (malloc code is
7502         decreased by 80 bytes)
7503
7504 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
7505
7506         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
7507         left is a bitfield, if yes, then don't optimize assignment. Perhaps
7508         this can be optimized more?
7509
7510 2005-03-10 Raphael Neider <rneider AT web.de>
7511
7512         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
7513           genNearPointerGet): (hopefully) fixed access to bitfields via
7514           pointers (p->bitN = x; and x = p->bitN; failed)
7515
7516 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
7517
7518         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
7519
7520 2005-03-09 Raphael Neider <rneider AT web.de>
7521
7522         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
7523
7524 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
7525
7526         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
7527         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
7528           (regTypeNum): set REG_BIT type if necessary
7529         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
7530         * support/regression/tests/critical.c: check bug 1144613
7531
7532 2005-03-02 Raphael Neider <rneider AT web.de>
7533
7534         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
7535
7536 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7537
7538         * src/avr/ralloc.c (serialRegAssign),
7539         * src/ds390/ralloc.c (serialRegAssign),
7540         * src/hc08/ralloc.c (serialRegAssign),
7541         * src/mcs51/ralloc.c (serialRegAssign),
7542         * src/pic/ralloc.c (serialRegAssign),
7543         * src/pic16/ralloc.c (serialRegAssign),
7544         * src/xa51/ralloc.c (serialRegAssign),
7545         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
7546
7547 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
7548
7549         * src/SDCCast.c (decorateType): fixed bug 1124787
7550
7551 2005-02-20 Hubert Sack <sack AT digiplan.de>
7552         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7553
7554         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
7555         patch #1121755
7556
7557 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7558
7559         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
7560         to keep the correct label reference count when adding/removing references
7561         to labels. A peephole file using this is appended to patch #1144962.
7562
7563 2005-02-14 Raphael Neider <rneider AT web.de>
7564
7565         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
7566         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
7567         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
7568           retrievals of result operand's value on assignment
7569
7570 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
7571
7572         * device/include/pic16/string.h: modified prototype for memccpy()
7573         to memccpy(void *, void *, char, size_t)
7574         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
7575         check whether to omit frame pointer or not,
7576         * (genInline): convert all occurences of "\n" to LF in inline
7577         assembler blocks, this helps formatting the inline text,
7578         * (pic16_loadFSR0): modified prototype,
7579         * (genNearPointerGet, genNearPointerSet): reorganization of code,
7580         removed some 8051 legacy code,
7581         * (genPackBits): enabled handling bitfields exceeding one byte in size,
7582         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
7583         before allocating temporary registers in functions,
7584
7585 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
7586
7587         * support/regression/tests/bitvars.c: corrected the "fix"
7588
7589 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
7590
7591         * support/regression/tests/bitvars.c,
7592         * support/regression/tests/bitwise.c,
7593         * support/regression/tests/rotate.c: "fixed" problems on Alpha
7594
7595 2005-02-10 Raphael Neider <rneider AT web.de>
7596
7597         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
7598           different size for Alpha
7599         * src/pic16/gen.c (genCmpEq) : improved compare with 0
7600
7601 2005-02-09 Raphael Neider <rneider AT web.de>
7602
7603         * src/SDCC.lex(doPragma) : save and restore warning options as well
7604           (also added new stack plus clone- and copyAndFreeSDCCERRG())
7605         * have #pragma less_pedantic set the errorlevel to WARNING
7606           (fixes #1117001)
7607         * (cloneOptimize) : fixed wrong malloc's size
7608         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
7609           facilitate correct handling of #pragma (save|restore)
7610
7611 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
7612
7613         * src/mcs51/gen.c: removed non-standard C nameless struct/union
7614
7615 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
7616
7617         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
7618
7619 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
7620
7621         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
7622
7623 2005-02-02 Raphael Neider <rneider AT web.de>
7624
7625         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
7626         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
7627         * (pic16_storeForReturn): fixed to allow returning function pointers
7628         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
7629         * device/include/pic16/{stddef.h,stdbool.h}: added
7630
7631 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
7632
7633         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
7634
7635 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
7636
7637         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
7638         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
7639          appeared to be required
7640
7641 2005-01-31 Borut Razem <borut.razem AT siol.net>
7642
7643         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
7644           include/mcs51 and include/z80 directories to the package
7645
7646 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7647
7648         * src/hc08/gen.c (genFunction): fixed bug #1112752
7649
7650 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7651
7652         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
7653
7654 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7655
7656         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
7657
7658 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
7659
7660         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
7661
7662 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
7663
7664         * device/include/c8051fxxx.h: removed these 6 files
7665         * device/include/mcs51/c8051fxxx.h: added these 11 new files
7666
7667 2005-01-26 Raphael Neider <rneider AT web.de>
7668
7669         * src/pic16/gen.c (genAssign): fixed assignment from longs
7670           in codespace (were cut to three bytes)
7671         * (genDummyRead): implemented (except for CODESPACE...),
7672           fixed bug #1108575
7673         * src/pic16/glue.c (emitStatistics): beautified
7674         * device/lib/pic16/libm/Makefile: added include path
7675
7676 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7677
7678         * src/z80/gen.c (aopPut): fixed bug #1103902
7679
7680 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7681
7682         * device/lib/expf.c: fixed bug #1095792
7683
7684 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
7685
7686         * device/lib/pic16/libm: added Math library sources
7687
7688 2005-01-24 Raphael Neider <rneider AT web.de>
7689
7690         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
7691           to enable upcast to pCodeOpReg2 (there is no type tag to
7692           differenciate the two and pic16_popGet2p cast into PCOR2)
7693         * src/pic16/main.c (_process_pragma): fixed another malloc bug
7694           (sizeof(sectNames) changed to sizeof(sectName))
7695           Both patches fix segfaults under MinGW.
7696
7697 2005-01-23 Raphael Neider <rneider AT web.de>
7698
7699         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
7700           Safe_[mc]?alloc()'ed variables
7701         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
7702           of (byte sized) temporaries (assign them to WREG for now)
7703         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
7704           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
7705           this might fix SIGSEGVs on MinGW...
7706         * src/SDCCopt.c (killDeadCode): restored original behaviour
7707           (volatile operands might get thrown away though)
7708
7709 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
7710
7711         * src/pic16/gen.c: fixed bug #1106975,
7712         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
7713         pointer update, INTCON is saved, global interrupts are disabled and
7714         restored after updateing TOS.
7715         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
7716         * added function attribute 'shadowregs' to take advantage of shadow
7717         registers,
7718         * added function attribute 'wparam' as an alternative to the wparam
7719         pragma,
7720         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
7721         user declares a non-ISR function as 'shadowregs',
7722         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
7723
7724 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
7725
7726         * .version: bumped version number to 2.4.8
7727         * device/lib/pic16/pics.all: list of PIC18F devices supported by
7728         pic16 port,
7729         * device/lib/pic16/libio/i2c/: I2C module support library,
7730         * device/include/pic16/i2c.h: I2C support library header,
7731         * device/lib/pic16/libc/stdio/: standard IO support sources,
7732         * (printf_small.c): printf_small() source, supports float print,
7733         * (printf_tiny.c): printf_tiny() source, does not support floats,
7734         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
7735         enable global optimizations for entire library source, other
7736         Makefiles in the source tree are also modified to reflect this,
7737         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
7738         function,
7739         * doc/sdccman.lyx: updated to reflect new changes,
7740         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
7741         sym->onStack if-case,
7742         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
7743         sbit, idata, _idata, xdata, _xdata,
7744         * added pragma library, to link an external library, (see doc),
7745         * removed command line options, --pomit-config-words, --pomit-ivt,
7746         --pleave-reset-vector,
7747         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
7748         when calling assembler to reflect memory model used, also define
7749         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
7750         reflect stack model used,
7751         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
7752         on stack return NULL,
7753
7754 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
7755
7756         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
7757           of the operands is volatile. Fixes #1020220
7758
7759 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
7760
7761         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
7762         * (OptimizeRegUsage): make sure that there is really no other flow where
7763           the first pCode is used
7764
7765 2005-01-22 Raphael Neider <rneider AT web.de>
7766
7767         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
7768           to fix #1106967 (pCode->seq are not set up correctly)
7769
7770 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7771
7772         * src/SDCCglue.c (glue): make sure code area is declared before the
7773         static initialization area.
7774
7775 2005-01-21 Raphael Neider <rneider AT web.de>
7776
7777         * device/lib/Makefile.in: fixed test for pic16 install dir
7778         * device/lib/pic16/*/Makefile*: modified compile flags to enable
7779           optimizations
7780         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
7781           added --optimize-goto compiler switch and pragma wparam documentation
7782         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
7783         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
7784           and PRODH closing bug #1071770 (peephole optimizer)
7785
7786 2005-01-19 Raphael Neider <rneider AT web.de>
7787
7788         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
7789           cmdLine buffers (used when calling sdcpp...) are large enough
7790           (MAX_PATH=256 truncates arguments leading to system halts when
7791           used in MinGW...)
7792         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
7793         * (genUminus): rewritten to for efficiency
7794         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
7795           used uninitialized in some cases)
7796         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
7797           copy the third byte from the int -- now assumes 0x80 (data memory)
7798         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
7799           operands (genAddLit expects the iCode's operands to swapped as
7800           well), fixed leftover bytes (crashed for short left operands)
7801         * (pic16_genMinusDec): performance improvements, removed false
7802           PIC14 emitSKPNCs
7803         * (pic16_genMinus): fixed to cope with differently sized operands
7804         * src/pic16/glue.c (pic16_glue): added new banksel optimization
7805           for --obanksel > 1
7806         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
7807         * src/pic16/graph.[ch]: implementation of directed graphs, used by
7808           new banksel optimization
7809         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
7810           analysis for temporary registers (segfaults...)
7811         * src/pic16/peeph.def: added rule
7812
7813 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
7814
7815         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
7816         which converts a float number to its ASCII representation
7817         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
7818         functions to convert the fractional and integer part of a float to ASCII,
7819         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
7820         realloc.c): added _MALLOC_SPEC to explicit place variables in data
7821         ram
7822         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
7823         _STATMEM macros,
7824         * device/include/pic16/adc.h: added GPL info,
7825         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
7826         a pCodeOp as tested operand,
7827         * (genNearPointerGet): optimized bit testing, does not use
7828         intermediate register for bit value, test directly instead with
7829         BTFSS, BTFSC, works only for single bits,
7830         * (genpic16Code): dump the name of the iCode in the asm,
7831         * src/pic16/ralloc.c (decodeOp): removed static declaration and
7832         renamed to pic16_decodeOp,
7833         * (serialRegAssign): do not allocate a temporary register for iCode
7834         sequences that test a single bit for 1/0
7835
7836 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
7837
7838         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
7839         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
7840         access stack and frame pointers. They are initially assigned to
7841         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
7842         accessing SFRs. Updated all occurences of modification of stack or
7843         frame pointer in gen.c and pcode.c,
7844         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
7845         assigning of a literal value to pointers,
7846         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
7847         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
7848         selected
7849
7850 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
7851
7852         * doc/sdccman.lyx: update documentation about stack pragma, added
7853         some info for stack memory models
7854
7855 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7856
7857         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
7858
7859 2005-01-08 Raphael Neider <rneider AT web.de>
7860
7861         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
7862           udata sections to fix bug #1097823
7863
7864 2005-01-05 Raphael Neider <rneider AT web.de>
7865
7866         * src/pic16/gen.c (genGenericShift): added handling of differently
7867           sized left operand and result
7868
7869 2005-01-04 Raphael Neider <rneider AT web.de>
7870
7871         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
7872         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
7873           to hold the condition bit)
7874         * added new version of genCmp (old code available via #define)
7875         * added new version of genShiftLeft/genShiftRight in a generic
7876           way, now supports shifting by negative values
7877         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
7878           shiftCount (expected by genGenericShift)
7879         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
7880         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
7881           dump
7882         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
7883           is an invalid literal too...)
7884
7885 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
7886
7887         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
7888         from Raphael Neider,
7889         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
7890         for 8-bit literals. This fixes some literal operands which are sign
7891         extended to 16-bits ints when instruction needs only 8-bits.
7892
7893 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
7894
7895         * device/lib/logf.c: added mcs51 assembly version
7896         * device/lib/expf.c: added mcs51 assembly version
7897         * device/lib/_logexpf.c: new shared asm code for expf and logf
7898         * device/include/math.h: add defines for assembly math library
7899         * device/lib/Makefile.in: build new _logexpf.c
7900         * device/lib/libfloat.lib: use new _logexpf.c
7901
7902 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
7903
7904         * src/pic/device.c
7905         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
7906           device types which have less than 0x7f registers.
7907
7908 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
7909
7910         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
7911
7912 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
7913
7914         * device/lib/printf_fast.c: only build on supported arch.
7915         * device/lib/printf_tiny.c: only build on supported arch.
7916         * device/lib/printf_fast_f.c: only build if asm float lib
7917         * device/lib/_fsget1arg.c: only build if asm float lib
7918         * device/lib/_fsget2args.c: only build if asm float lib
7919         * device/lib/_fsnormalize.c: only build if asm float lib
7920         * device/lib/_fsreturnval.c: only build if asm float lib
7921         * device/lib/_fsrshift.c: only build if asm float lib
7922         * device/lib/_fsswapargs.c: only build if asm float lib
7923         * device/include/stdio.h: don't provide print_fast,
7924           print_fast_f, print_tiny prototypes if --xstack used
7925
7926 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
7927
7928         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
7929         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
7930           to the SOURCES
7931
7932 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
7933
7934         * device/lib/printf_fast_f.c: same as printf_fast, but
7935           with floating point enabled
7936         * device/lib/printf_fast.c: minor tweaks
7937         * device/include/stdio.h: add printf_fast_f
7938
7939 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
7940
7941         * src/SDCCmain.c: make --float-reent default for mcs51
7942         * device/lib/_fsadd.c: added mcs51 assembly version
7943         * device/lib/_fssub.c: added mcs51 assembly version
7944         * device/lib/_fsmul.c: added mcs51 assembly version
7945         * device/lib/_fsdiv.c: added mcs51 assembly version
7946         * device/lib/_fseq.c: added mcs51 assembly version
7947         * device/lib/_fsneq.c: added mcs51 assembly version
7948         * device/lib/_fsgt.c: added mcs51 assembly version
7949         * device/lib/_fslt.c: added mcs51 assembly version
7950         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
7951         * device/lib/Makefile.in: add _fscmp to build
7952         * device/lib/libfloat.lib: add _fscmp to build
7953
7954 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
7955
7956         * device/lib/_fs2slong.c: added mcs51 assembly version
7957         * device/lib/_fs2sint.c: added mcs51 assembly version
7958         * device/lib/_fs2schar.c: added mcs51 assembly version
7959         * device/lib/_fs2ulong.c: added mcs51 assembly version
7960         * device/lib/_fs2uint.c: added mcs51 assembly version
7961         * device/lib/_fs2uchar.c: added mcs51 assembly version
7962         * device/lib/_slong2fs.c: added mcs51 assembly version
7963         * device/lib/_sint2fs.c: added mcs51 assembly version
7964         * device/lib/_schar2fs.c: added mcs51 assembly version
7965         * device/lib/_ulong2fs.c: added mcs51 assembly version
7966         * device/lib/_uint2fs.c: added mcs51 assembly version
7967         * device/lib/_uchar2fs.c: added mcs51 assembly version
7968         * device/include/float.h: added #define to select asm vs c
7969
7970 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
7971
7972         * device/lib/printf_fast.c: improvements to float output
7973         * device/include/float.h: add defines for assembly float library
7974         * device/lib/_fsget1arg.c: receive 1 float arg
7975         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
7976         * device/lib/_fsnormalize.c: normalize a float
7977         * device/lib/_fsreturnval.c: return float, various helper routines
7978         * device/lib/_fsrshift.c: right shift a float's mantissa
7979         * device/lib/_fsswapargs.c: swap 2 floats
7980         * device/lib/Makefile.in: build these 6 new files for mcs51
7981         * device/lib/libfloat.lib: add these 6 files to the library
7982
7983 2004-12-26 Borut Razem <borut.razem AT siol.net>
7984
7985         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
7986           built by gcc 3.4.2
7987
7988 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
7989
7990         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
7991           and fully reentrant and register bank neutral.
7992         * device/lib/printf_fast.c: added float (not enabled by default),
7993           added compact/slower integer (also not enabled by default),
7994           improved size/speed of fast integer code, other minor changes
7995         * device/include/stdio.h, device/lib/Makefile.in,
7996           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
7997
7998 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
7999
8000         * src/pic16/pcode.c: declaring variables other than at the start of a
8001           block is not supported in C by VC6.
8002
8003 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
8004
8005         * applied a previous patch from Raphael Neider that wasn't included
8006         in the previous commits, which fixes infinite loops within jumptable
8007         improvements,
8008         * made some fixes that previous patches introduced
8009
8010 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
8011
8012         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
8013         that fixes an issue with AOP_PCODE asmop's offset,
8014         * (pic16_popCopyReg): update instance field too,
8015         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
8016         function of pic port,
8017         * (genCmp, genAnd, genAssign),
8018         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
8019
8020 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
8021
8022         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
8023         variables initial values to idata section,
8024         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
8025         variables in some functions. This utilizes parmBytes field of iCode
8026         structure to hold the offset of the variable in stack. (might be
8027         able to use the stack field too?)
8028         * applied patch from Raphael Neider # ### , # ###
8029         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
8030         variable initial values in idata section,
8031         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
8032         for static variables with initial value
8033         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
8034         applied fix in while loop from Raphael Neider.
8035
8036 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
8037
8038         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
8039         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
8040         * src/ds390/ralloc.c (serialRegAssign): spill bits
8041         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
8042         * support/Util/SDCCerr.c,
8043         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
8044         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
8045         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
8046
8047 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
8048
8049         * device/include/sdcc-lib.h: inserted LGPL, added includes
8050           asm/ds390/features.h and asm/mcs51/features.h
8051         * device/include/asm/default/features.h,
8052         * device/include/asm/gbz80/features.h,
8053         * device/include/asm/z80/features.h: added empty _AUTOMEM
8054           and _STATMEM
8055         * device/include/asm/ds390/features.h,
8056         * device/include/asm/mcs51/features.h: added files with defines for
8057           _AUTOMEM and _STATMEM indicating automatic and static storage class
8058         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
8059         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
8060         * src/SDCCicode.c (geniCodeCast),
8061         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
8062         * src/SDCCloop.c (loopInduction): removed unused variable lr
8063         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
8064           to convertToFcall to include char modulo (RFE 1065037), added check
8065           if left operand is unsigned and use abs of literal value
8066         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
8067           as it doesn't work after conversion from peephole.def to peephole.rul
8068         * src/mcs51/gen.c (toBoolean): added check for size,
8069           (genModOneByte): optimized code for signed char modulo a literal
8070           power of 2 (thanks to Hubert Sack),
8071           (genRRC): removed unnecessary "clr c",
8072           (genRLC): replaced "add a,acc" with cheaper "rlc a"
8073         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
8074           jump optimization,
8075           swapped rules 256.c and 256.d,
8076           extended 256.d by using new multiple checks (thanks Erik),
8077           added rules 256.e and 256.f,
8078           updated rule 261.a and 261.b to new generated code
8079         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
8080
8081 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8082
8083         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
8084           induction related bugs, including first part of bug #1074377
8085
8086 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
8087
8088         * applied patch from bug-report #1076292,
8089         * applied patches for genAnd and Goto-optimizations for Raphael
8090         Neider,
8091         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
8092         dump a less iCode information,
8093         * src/pic16/device.h (pic16_options_t): added field debgen,
8094         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
8095         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
8096         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
8097         puclic,
8098         * (various functions): added macros FENTRY and FENTRY2 to functions,
8099         to emit function prologue,
8100         * (various functions): fixed indentation,
8101         * (genNearPointerGet): fixed loading of FSR0,
8102         * (genPackBits): applied patch from Raphael Neider to fix updating
8103         of FSR0 and touching only the modified bits,
8104         * src/pic16/genarith.c (various functions): added macros FENTRY to
8105         emit function prologue in comments,
8106         * src/pic16/pcode.h: added functions debugf2, debugf3,
8107         * src/pic16/ralloc.c: partial fix for packForPush caused
8108         segmentation fault,
8109
8110 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8111
8112         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
8113           <stsp AT users.sourceforge.net> with reversed byte order
8114         * support/regression/tests/rotate.c: added (ds390 skips some tests)
8115
8116 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8117
8118         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
8119           bug #1074377
8120         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
8121         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
8122
8123 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
8124
8125         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
8126
8127 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8128
8129         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
8130           conditions,
8131           (setFromConditionArgs): friendly operand parser for peephole rules,
8132           (operandBaseName, operandsNotRelated): new peephole condition
8133           "operandsNotRelated" -- similar to "operandsNotSame", but takes
8134           architecture specific register naming into account, handles n-way
8135           comparisons, and supports quoted literals
8136         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
8137
8138 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8139
8140         * src/mcs51/peeph.def: fixed bug #1076940
8141
8142 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
8143
8144         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
8145
8146 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8147
8148         Adding support for replacing ljmps with sjmps in jumptables
8149         generated for switch statements. For now you need to set the
8150         environment variable SDCC_SJMP_JUMPTABLE to enable this.
8151         Now 4 algorithms for mcs51 jumptable generation are used:
8152         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
8153         addresses loaded pc-relative for up to 112 cases and stack-pushing
8154         target addresses loaded with offset from dptr for up to 256 cases.
8155
8156         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
8157         * src/mcs51/main.c: adapted constants for switch table generation
8158         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
8159
8160 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
8161
8162         * device/lib/printf_large.c (_print_format): fixed bug 1073386
8163         * support/regression/tests/bug1057979.c: added test for bug 1073386
8164
8165 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
8166
8167         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
8168         compilers
8169
8170 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
8171
8172         * src/pic16/device.h,
8173         * src/pic16/genarith.c,
8174         * src/pic16/glue.c,
8175         * src/pic16/main.c,
8176         * src/pic16/pcode.c: applied patches #1068154 and #1070213
8177
8178 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
8179
8180         Large cummulative patch for pic16 port.
8181         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
8182         to call when a stack overflow occurs,
8183         * (malloc.h): added CVS Id tag,
8184         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
8185         variable,
8186         * added libc directory. The current version of LibC contains string
8187         functions, ctype functions and macros and some functions of the
8188         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
8189         be extensively tested in the future. Standard disclaimer here.
8190         Library is not automatically build yet. But one can build it by
8191         invoking 'make' inside the libc directory.
8192         * added ADC library under libio. Preliminary version yet.
8193
8194         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
8195         * src/pic16/gen.c (aopForRemat): asmop size is filled by
8196         aopForRemat() now and not by pic16_aopOp(),
8197         * (pic16_popGetTempReg): removed warning messgae when allocating
8198         temporary registers, its a buggy feature and will be removed,
8199         * (pic16_popGet): set register instance field in AOP_CRY,
8200         * (pic16_outBitC): fixed for results in size greater than 1,
8201         * (genUminusFloat): fixed for pic16, ported code from mcs51,
8202         * (pic16_storeForReturn): optimized return of 0,
8203         * (genCmp): experimental code for new genCmp which uses PIC18's
8204         special compare&skip instructions. Initial tests fail some times
8205         with variables grater than 1 byte in size, so new code is disabled,
8206         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
8207         a single bit,
8208         * (genCast): began a fix to optimize the casting of a bit to another
8209         bit, now assigning a bitfield to another bitfield will fail, sorry,
8210         * src/pic16/main.c: disabled the use of lr-support feature,
8211         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
8212         * added some function prototypes, added function _debugf prototype,
8213         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
8214         bits with offset (case PO_GPR_BIT),
8215         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
8216         command line,
8217         * (isBankInstruction): modified to return 0 for no banking instruction,
8218         and 1 for banking instruction,
8219         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
8220         caused stop processing pCodes after a inline assembly block,
8221         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
8222         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
8223         registers when it shouldn't,
8224         * src/pic16/ralloc.c (allocReg): add preliminary support for
8225         supporting a limited set of temporary registers,
8226
8227 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8228
8229         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
8230           genDataPointerSet): ensure assignments always copy in MSB to LSB
8231           order,
8232           (loadRegFromAop): recognize CLRH optimization,
8233           (genFunction): optimize RECEIVE iCodes in reentrant functions
8234
8235 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8236
8237         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
8238           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
8239           selected.
8240         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
8241         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
8242           contiguous with data
8243
8244 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8245
8246         * device/lib/_gptrget.c (_gptrget),
8247         * device/lib/_gptrgetc.c (_gptrgetc),
8248         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
8249           instead of sjmp to ret
8250         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
8251           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
8252
8253 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
8254
8255         * .version: bumped version to 2.4.7
8256         * device/lib/_gptrget.c (_gptrget): is now _naked
8257         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
8258         * device/lib/_gptrput.c (_gptrput): is now _naked
8259         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
8260           (createFunction): fixed xstack
8261         * src/SDCCglue.c (emitMaps): set allocation required for bit area
8262         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
8263           or bit either,
8264           (geniCodeCritical): store original interrupt state in an iTemp bit
8265           var unless stack-auto
8266         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
8267         * src/SDCCmain.c (setIncludePath): added include/target to search path
8268         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
8269         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
8270           prototype,
8271           (processFuncArgs): put bit vars in bit area
8272         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
8273           unsaveRBank): fixed xstack,
8274           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
8275           (genFunction, genEndFunction): fixed xstack,
8276           (genAssign): optimization don't walk backwards through mem
8277         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
8278         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
8279         * support/regression/Makefile: also make library (for stack-auto) when
8280           making "all" and added "test-mcs51-xstack-auto"
8281         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
8282         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
8283         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
8284         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
8285         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
8286           make-library by MAKE_LIBRARY
8287         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
8288           regression tests for xstack
8289         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
8290         * support/regression/tests/critical.c: test for critical on mcs51
8291
8292 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8293
8294         * support/regression/ports/ucz80/spec.mk: use include and lib files from
8295           built version of sdcc instead of installed version
8296
8297 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
8298
8299         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
8300         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
8301           vprintf.c now
8302         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
8303         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
8304           WARNING: remove device/lib/build/z80/printf.o by hand when
8305           updating from previous build!
8306         * device/lib/z80/printf.c: updated comment
8307         * support/regression/tests/bug1057979.c: test all ports now
8308         * support/regression/tests/bug1065458.c: file added
8309
8310 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8311
8312         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
8313           *_start and *_end symbols for static functions
8314
8315 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
8316
8317         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
8318           and search crt0.o in all library paths,
8319           (setIncludePath): proper handling of --nostdinc,
8320           (setLibPath): proper handling of --nostdlib
8321         * support/regression/Makefile,
8322         * support/regression/ports/ds390/spec.mk,
8323         * support/regression/ports/gbz80/spec.mk,
8324         * support/regression/ports/hc08/spec.mk,
8325         * support/regression/ports/mcs51/spec.mk,
8326         * support/regression/ports/mcs51-large/spec.mk,
8327         * support/regression/ports/mcs51-stack-auto/spec.mk,
8328         * support/regression/ports/z80/spec.mk: use include and lib files from
8329           built version of sdcc instead of installed version
8330         * doc/sdccman.lyx: fixed typo in --nostdinc
8331
8332 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
8333
8334         * src/pic/pcode.c,
8335         * src/pic/device.c,
8336         * src/pic/ralloc.c,
8337         * src/pic/gen.c : added support to generate code for struct bit fields.
8338
8339 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
8340
8341         * as/xa51/xa_version.h,
8342         * device/include/errno.h,
8343         * device/include/regc515c.h,
8344         * device/lib/_itoa.c,
8345         * device/lib/_ltoa.c,
8346         * device/lib/ser_ir_cts_rts.c,
8347         * sim/ucsim/xa.src/glob.cc,
8348         * sim/ucsim/xa.src/inst_gen.cc,
8349         * sim/ucsim/xa.src/xa_bit.cc,
8350         * sim/ucsim/xa.src/xa_sfr.cc,
8351         * sim/ucsim/z80.src/inst_dd.cc,
8352         * sim/ucsim/z80.src/inst_fdcb.cc,
8353         * support/scripts/keil2sdcc.pl,
8354         * src/pic16/pic16.dsp,
8355         * src/pic16/pic16a.dsp: corrected cvs line endings
8356         * device/lib/printf_large.c: fixed bug 1057979
8357         * src/pic16/gen.c: fixed non-C standard code
8358         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
8359         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
8360         * support/regression/ports/mcs51/support.c: reload T1 asap
8361         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
8362           pdata use and clear idata startup behaviour
8363         * support/regression/tests/bug1057979.c: added
8364
8365 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
8366
8367         * device/examples/ds390/ow390/ad26.h,
8368         * device/examples/ds390/ow390/cnt1d.h,
8369         * device/examples/ds390/ow390/crcutil.c,
8370         * device/examples/ds390/ow390/ownet.h,
8371         * device/examples/ds390/ow390/owsesu.c,
8372         * device/examples/ds390/ow390/swt12.h,
8373         * device/examples/ds390/ow390/swtoper.c,
8374         * device/examples/ds390/ow390/temp10.h,
8375         * device/examples/ds390/ow390/thermodl.c,
8376         * device/examples/ds390/tinitalk/tinitalk.dsp,
8377         * device/examples/ds390/tinitalk/tinitalk.dsw,
8378         * device/examples/mcs51/clock/hw.h,
8379         * device/examples/mcs51/simple2/go.bat,
8380         * device/examples/serialcomm/windows/serial.h,
8381         * device/examples/xa51/dummy.c,
8382         * device/examples/xa51/hello.c,
8383         * device/include/80c51xa.h,
8384         * device/include/at89x051.h: corrected cvs line endings
8385
8386 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
8387
8388         * src/pic16/main.c (options): added command line --gstack, to trace
8389         stack over/under flows,
8390         * added pragma 'wparam' to allow passing first byte of function
8391         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
8392         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
8393         call to __gstack_test function and sets up the symbol as extern,
8394         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
8395         * popaop): added call to pic16_testStackOverflow,
8396         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
8397         wparamList list,
8398         * (genCall, genPcall): now all parameters are passed via stack
8399         except in functions that are pass to wparam pragma in which WREG is
8400         used too,
8401         * (genPcall): REENTRANT flag is checked to see if variable prototype
8402         contains reentrant keyword, don't call a non-reentrant function, via
8403         a reentrant function pointer or vice versa, functions are never
8404         passed via WREG,
8405         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
8406         D.Winkler,
8407         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
8408         SIGSEGV when accessing a NULL register stucture,
8409         * (pic16_printGPointerType): modified to handle UPPER modifier for
8410         function initializers, changed prototype of function to simpler one,
8411         * (pic16_printIvalFuncPtr): check to see if function is already
8412         added in externs list,
8413         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
8414         optimized a move from W to SFR with a move to the same register
8415         later after a CALL,
8416         * device/lib/pic16/debug: NEW directory, contains debug features
8417         which are enabled when linking with libdebug.lib, currently command
8418         line option --gstack enables stack pointer tracing for over/under
8419         flow, corresponding sources are in debug/gstack
8420
8421 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
8422
8423         * doc/sdccman.lyx: updated SDCC version,
8424         * (PIC16 port): update list of command line options,
8425         * src/pic16/device.h (structure pic16_options_t): added field gstack
8426         to enable stack overflow tracing on push/pops,
8427         * src/pic16/device.c (statistics structure): added statistics
8428         structure,
8429         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
8430         pic16_dump_int_registers): increase statistics counters for each
8431         * variable which is encountered
8432         * (pic16_dump_usection): emit each .udata variable to its own udata
8433         section,
8434         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
8435         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
8436         parameters via stack, otherwise use old scheme,
8437         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
8438         assembler output file,
8439         * src/pic16/main.c: added command line options --gstack to enable
8440         push/pop tracing for stack overflow,
8441         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
8442         instructions): added size of each instruction,
8443         * (pic16_countInstruction): estimate size of instructions in
8444         the_pFile list, inline assembly blocks are not counted,
8445         * (pic16_FixRegisterBanking): trace previous register usage, when
8446         banksel optimizations is greater than 0, don't emit a redudant
8447         banksel directive,
8448
8449 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
8450
8451         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
8452         * src/pic16/ralloc.c : applied same fix for pic16.
8453         * src/pic/gen.c : tidied it up a little.
8454
8455 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8456
8457         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
8458         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
8459
8460 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8461
8462         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
8463
8464 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8465
8466         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
8467         non-reentrant function __modsint in the interrupt function (thus
8468         corrupting math operations during serial I/O)
8469         * device/lib/ser_ir.c: as above, changed buffersize
8470         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
8471         256.c,d for zeroing
8472         * doc/Makefile: added option -t for rsync
8473
8474 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8475
8476         * src/SDCCast.h (struct ast),
8477         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
8478
8479 2004-10-20 Borut Razem <borut.razem AT siol.net>
8480
8481         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
8482         package
8483
8484 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
8485
8486         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
8487         makefile targets,
8488         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
8489         support functions to replace long sequences of MOVFF's from access
8490         bank registers to stack and vice versa,
8491         * src/pic16/device.h: added new field opt_flags, where optimization
8492         flags can be set to enable certain features,
8493         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
8494         * pBlock, (genFunction, genEndFunction): surroung loop for
8495         saving/loading used registers in stack with PC_INFO pCodes,
8496         INF_LREGS. Code in between can then be optimized by pCode optimizer
8497         to support function calls,
8498         * (genDataPointerSet): fixed bug which loaded float fields in
8499         structures with corrupt data,
8500         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
8501         in a standard way debug info on stderr. Feature used for developing
8502         and debugging only,
8503         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
8504         obsolete chunks of code,
8505         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
8506         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
8507         * pic16/src/pcode.c (pic16_newpCodeInfo,
8508         * (pic16_newpCodeOpLocalRegs),
8509         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
8510         feature,
8511         * (pic16_pCodeConstString): printing of the initial value of a
8512         symbol as a comment is inhibited since parsing was already done by
8513         copyStr and output is corrupt,
8514         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
8515
8516 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8517
8518         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
8519
8520 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
8521
8522         * as/mcs51/lkarea.c: removed old K&R style,
8523           (lnksect): changed check on boundary error,
8524           (lnksect2): changed check on boundary error,
8525           (lnksect2): extend XSTK to end of page if size = 1
8526         * as/mcs51/lkmain.c: removed old K&R style,
8527           (Areas51): create l_IRAM symbol
8528         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
8529         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
8530           model-mcs51-stack-auto, added model-mcs51-xstack-auto
8531         * device/lib/_mullong.c: added version to be compiled with xstack
8532         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
8533         * device/lib/mcs51/crtxclear.asm: clear pdata as well
8534         * device/lib/mcs51/crtxstack.asm: fixed comment
8535         * src/SDCCglue.c: maxInterrupts defaults to 0,
8536           (emitMaps): added pdata,
8537           (createInterruptVect): (re)moved default,
8538           (glue): added pdata,
8539           (glue): moved __start__xstack to XSTK with default size 1
8540         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
8541           and options.float_rent when options.stackAuto is set,
8542           (linkEdit): only write XDATA_NAME if provided on command line
8543         * src/SDCCmem.h,
8544         * src/SDCCmem.c: added pdata
8545         * src/port.h: added pdata_name to PORT
8546         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
8547           (saveRegisters, unsaveRegisters): removed usage of B,
8548           (genMinus): fixed accumulator clash,
8549           (genJumpTab): added comment, this needs another look
8550         * src/mcs51/gen.c: added check for "B in use" paranoia,
8551           added pushB() and popB()
8552         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
8553           chance
8554         * src/avr/main.c,
8555         * src/ds390/main.c,
8556         * src/hc08/main.c,
8557         * src/mcs51/main.c,
8558         * src/pic/main.c,
8559         * src/pic16/main.c,
8560         * src/xa51/main.c,
8561         * src/z80/main.c: (reset_regparms) made void parameter explicit and
8562           added PSEG (PAG,XDATA) or NULL to port specifier
8563         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
8564         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
8565           (_mcs51_genInitStartup): removed __start__xstack equ,
8566           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
8567         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
8568         * src/z80/gen.c (_rleAppend): fixed warnings
8569         * support/regression/tests/zeropad.c: added pdata test
8570         * .version: bumped to 2.4.6
8571
8572 2004-10-17 Borut Razem <borut.razem AT siol.net>
8573
8574         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
8575         as a part of nightly build
8576
8577 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
8578
8579         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
8580         WREG holds the first byte function parameters,
8581         * (aopForSym): take special case for symbols which are in FARSPACE
8582         but in CODESPACE too,
8583         * (assignResultValue): modified to take into account _G.useWreg,
8584         * (genCall): don't use wreg for parameter passing when function is
8585         declared as reentrant, too, added optimization INCF to stack
8586         pointer when stack parameter count is 1,
8587         * (genFunction, genEndFunction): refurnished and fixed to not using
8588         wreg for passing parameters when function has varargs or is
8589         reentrant, fixed bug with symbol name compare for generating
8590         functions in absolute address,
8591         * (pic16_storeForReturn): refurnished,
8592         * (genCmp): began writing a new version of the function, not ready
8593         yet, therefore it is disabled,
8594         * (genAssign): do not read code memory when assigning a function to
8595         a pointer function,
8596         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
8597         array of characters, not pointer,
8598         * (pic16initialComments): in debug mode emit an .ident directive for
8599         the assembler,
8600         * (_process_pragma): emit a new warning type (internal to pic16)
8601         when setting stack to default length, emit a similar warning when
8602         placing a function at absolute address and address is not word aligned
8603         * (_pic16_parseOptions): added 'return TRUE' statement,
8604         * (_pic16_linkEdit): if compiling a source, then add the source's
8605         file object, first in the list of objects to link,
8606
8607 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
8608
8609         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
8610         * src/pic/main.c : removed VC warning.
8611         * src/pic/gen.c : changed comment.
8612
8613 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
8614
8615         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
8616         reference to a deprecated symbol _GPTRREG was causing failure to
8617         link. Thanks G. M. Gallant for the info.
8618
8619 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
8620
8621         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
8622         comments for Bugs item #954788.
8623
8624 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
8625
8626         * src/pic16/device.c (pic16_dump_gsection,
8627         * pic16_groupRegistersInSection): handle symbols declared to be in
8628         access bank differently,
8629         * src/pic16/gen.c (struct _G): added field resDirect,
8630         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
8631         send values read from stack directly to result and don't allocate
8632         temporary values,
8633         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
8634         same registers,
8635         * (pic16_sameRegsOfs): NEW,
8636         * (freeAsmop): if _G.resDirect is set then do not mark registers as
8637         free because they were not allocated from temporary pool,
8638         * pic16_popRegFromString): workaround to fix a problem with
8639         allocating variables twice or never,
8640         * (genGenPointerGet): using PRODL instead of FSR0H,
8641         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
8642         instead of FSR0H,
8643         * (genAssign): take advantage of the _G.resDirect flag,
8644         * (genCast): around line 11844, use mov2f instead of directly
8645         MOVFF'ing between operands to account for literal values,
8646         * src/pic16/genutils.c: some new debug functions for gpsim have been
8647         added,
8648         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
8649         float with integer part only,
8650         * src/pic16/main.c (_process_pragma): handle pragma udata access to
8651         place variables in access bank
8652         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
8653         updated sources to reflect recent changes in gen.c
8654
8655 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
8656
8657         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
8658         sources that searched for headers in installation path, now the
8659         device/include/pic16 is used,
8660         * src/pic16/glue.c (pic16glue),
8661         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
8662         .line directives if not in debug mode, this suppresses assembler's
8663         warnings for ignored directives
8664
8665 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
8666
8667         * src/port.h: made reset_regparms prototype void parameter explicit.
8668         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
8669         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
8670         * doc/sdccman.lyx: documented warning disabling and how to use
8671           printf_large to make it print floats.
8672         * device/include/stdbool.h: NEW
8673         * device/lib/_atof.c,
8674         * device/lib/_divuint.c,
8675         * device/lib/_divulong.c,
8676         * device/lib/expf.c,
8677         * device/lib/printf_large.c,
8678         * device/lib/sincosf.c,
8679         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
8680         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
8681           a completely reentrant lib.
8682
8683 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
8684
8685         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
8686         * device/include/pic16/stdio.h: fixed bug with colon
8687
8688 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
8689
8690         * device/include/pic16/stdio.h,
8691         * device/include/pic16/stdlib.h,
8692         * device/include/pic16/math.h: NEW
8693         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
8694         declared as _naked to reduce overhead
8695         * device/lib/Makefile.in (target port-specific-objects-pic16):
8696         changed * to *.* so to ignore the CVS directory,
8697         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
8698         stacked variables back in stack,
8699         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
8700         corruption
8701
8702 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
8703
8704         * .version: bumped version number to 2.4.5
8705         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
8706         * support/Util/SDCCerr.c (messages structure): added entry for
8707         W_POSSBUG2
8708
8709         Large cumulative patch for pic16 port and libraries.
8710         * device/include/pic16/sdcc-lib.h,
8711         * device/include/pic16/stdarg.h,
8712         * device/include/asm/pic16/features.h,
8713         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
8714         * device/include/pic16/float.h: changes reentrant keyword with
8715         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
8716         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
8717         updated target build-libraries to include objects from gptr,
8718         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
8719         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
8720         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
8721         all function headings,
8722         * src/SDCCmain.c: added global parameter userIncDirsSet,
8723         * (parseCmdLine): when option -I is encountered add directory to
8724         userIncDirsSet too,
8725         * src/version.awk: added space between control and long,
8726         * src/pic16/NOTES: added some notes for the port,
8727         * src/pic16/gen.c: added prototype for mov2fp function,
8728         * (fReturnpic16[]): properly named return value registers,
8729         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
8730         * (aopForSym): added code to handle symbols with onStack flag set,
8731         symbols onStack are allocated PTRSIZE bytes,
8732         * (aopFreeAsmop): handles special case where asmops are stack objects,
8733         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
8734         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
8735         added argument lock to trace flaws in allocating temporary registers
8736         when developing port,
8737         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
8738         * (pic16_popRegFromString): reenabled allocating a direct register
8739         from string,
8740         * (assignResultValue): various beautifications,
8741         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
8742         referenced function argument,
8743         * (genIpush): reenabled to allow stacked arguments, handles only
8744         ic->parmPush iCodes,
8745         * (genCall, genPcall): major changes to allow for variable argument
8746         functions, fixed a bug with falsely restoring stack pointer after
8747         returning from call,
8748         * (genFunction): pending code for critical function,
8749         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
8750         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
8751         * (genNearPointerGet): fixed bug with indirect reading, was always
8752         reading from INDF0
8753         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
8754         pointers,
8755         * (genAddrOf): rewrote code to take address of a stacked function parameter
8756         * (genCast): fixed casting to generic pointer type,
8757         * src/pic16/gen.h: added AOP_STA,
8758         * (struct asmop): added field stk,
8759         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
8760         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
8761         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
8762         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
8763         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
8764         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
8765         generic pointers,
8766         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
8767         and library paths,
8768         * (pic16_port structure): generic pointer size is set to 3,
8769         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
8770         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
8771         compiler warning,
8772         * src/pic16/ralloc.c (allocReg): prevent allocating register when
8773         operand is an iTemp,
8774
8775 2004-09-24 Martin Helmling <mh AT octo-soft.de>
8776
8777         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
8778         * debugger/mcs51/simi.c: addapt new syntax of s51
8779
8780 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
8781
8782         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
8783         * src/pic16/pcode.c: commented out some calls to free() in order to
8784         fix bug #989576,
8785
8786 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8787
8788         * src/SDCCicode.h,
8789         * src/SDCCicode.c (isiCodeInFunctionCall),
8790         * src/avr/ralloc.c (selectSpil),
8791         * src/pic/ralloc.c (selectSpil),
8792         * src/pic16/ralloc.c (selectSpil),
8793         * src/ds390/ralloc.c (selectSpil),
8794         * src/hc08/ralloc.c (selectSpil),
8795         * src/xa51/ralloc.c (selectSpil),
8796         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
8797         stack in the middle of a function call sequence (fixes bug #1020268)
8798         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
8799         costs associated with the minimum switch case.
8800
8801 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8802
8803         * src/SDCC.lex: fixed bug #1030549
8804
8805 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8806
8807         * src/SDCCcse.h (struct cseDef),
8808         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
8809         over a function call if the CSE is derived from a symbol whose
8810         address has been taken (fixes bug #1029883)
8811         * support/regression/tests/bug-1029883: a new regression test for
8812         this bug
8813
8814 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8815
8816         * src/hc08/gen.c (emitinline): fixed bug #1029778
8817         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
8818         to a cast object is no longer a syntax error ("fixes" bug #1030006,
8819         and starts toward RFE #905167)
8820
8821 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
8822
8823         * src/pic16/gen.c (mov2f): New function to move an operand to
8824         another without considering if it is a literal or a register,
8825         * (pic16_sameRegs): don't check if they are both AOP_REG,
8826         * (AccRsh): removed andmask=0 lines,
8827         * (genLeftShift): duplicated to be improved in future versions,
8828         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
8829         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
8830         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
8831         * (pic16initMnemonics): added initialization for POC_INFSNZW,
8832         * (insertBankSwitch): fixed inserting banksel directives algorithm
8833         for instructions that follow a skip instruction, this fixes a report
8834         for broken subtraction code generation,
8835         * src/pic16/ralloc.c (deassignLRs): do not free register if current
8836         iCode is a left op, just in case result and right share the same
8837         registers
8838
8839 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8840
8841         * src/hc08/main.c,
8842         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
8843         preservation of HX
8844         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
8845         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
8846         on 2004-09-12; it was buggy
8847
8848 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
8849
8850         * src/SDCCsymt.h: removed RESULT_CHECK
8851         * src/SDCCast.c,
8852         * src/SDCCglue.c,
8853         * src/SDCCval.c,
8854         * src/pic/glue.c,
8855         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
8856
8857 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
8858
8859         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
8860         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
8861         configuration values no more rejected by compiler, they are assigned
8862         to configuration registers with a warning message instead,
8863         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
8864         the for-loop so last conf register is emitted too,
8865         * (_pic16_initPaths): link library libsdcc.lib by default,
8866         * (_hasNativeMulFor): modified test for multiplication according to
8867         Raphael Neider's remarks. Integer multiplication is also done with
8868         support functions,
8869         * device/include/pic16/pic18fregs.h: corrected type error in while
8870         testing and including 18f6720 header file
8871
8872 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
8873
8874         * src/pic16/device.h (pic16_options): removed field use_crt,
8875         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
8876         until an optimization to handle single bits is added,
8877         * (pic16_loadFSR0): moved before genUnpackBits,
8878         * (genAnd): some white lines removed,
8879         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
8880         leave_reset flags in pic16_options when using crt modules,
8881
8882 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
8883
8884         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
8885           for bugs 898889 & 979599. Also used some safer print instructions.
8886
8887 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
8888
8889         * src/pic16/device.h (pic16_options_t): added field use_crt,
8890         crt_name, no_crt,
8891         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
8892         catch a probable future bug,
8893         * src/pic16/gen.c: aopIdx function commented out,
8894         * (genAssign): commented out old code which used aopIdx,
8895         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
8896         code, added if conditionals to take into account the --use-crt
8897         command line options,
8898         * src/pic16/main.c (pic16_optionsTable): added new command line
8899         options, --use-crt= and --no-crt,
8900         * (_pic16_linkEdit): now the proper crt object is added in the
8901         linker command line except than when --no-crt is specified,
8902         * src/pic16/pcode.c,
8903         * src/pic16/pcode.h: added some structures and functions for a new
8904         optimization scheme to compansate for instruction overhead between
8905         same iCodes, this scheme is currently under development and is not
8906         working in any way,
8907         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
8908         to && operator,
8909         * device/lib/pic16/startup/crt0i.c,
8910         * device/lib/pic16/startup/crt0iz.c: added global char variable
8911         __uflags to force the generation of an idata section
8912
8913 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
8914
8915         * doc/Makefile,
8916         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
8917         * doc/sdccman.lyx: updated sdcc version to 2.4.4
8918
8919 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8920
8921         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
8922         Frieder) and clarified the default code optimization mode
8923
8924 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8925
8926         * src/SDCC.lex (doPragma, process_pragma),
8927         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
8928         "opt_code_size", and "opt_code_balanced"
8929         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
8930         regrouped options by category, added support for category headers
8931         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
8932         and "--opt-code-size"
8933         * doc/sdccman.lyx: documented these new options and pragmas
8934         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
8935         preference into account
8936
8937 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
8938
8939         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
8940           geniCodePreDec): Fixed bug 904237 by generating a warning
8941         * src/SDCCerr.h,
8942         * src/SDCCerr.c: added warning W_SIZEOF_VOID
8943
8944 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
8945
8946         * src/pic/device.c : When no max ram set validate full memory range.
8947         * src/pic/pcode.c,
8948         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
8949
8950 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
8951
8952         * device/lib/_gptrget.c,
8953         * device/lib/_gptrput.c: updated comment
8954         * device/lib/calloc.c,
8955         * device/lib/free.c,
8956         * device/lib/malloc.c,
8957         * device/lib/realloc.c: added LGPL, made them reentrant-safe
8958         * src/SDCCcse.c (cseBBlock),
8959         * src/SDCCicode.c (printOperand, geniCodeArray),
8960         * src/SDCCicode.h (struct operand): fixed bug 868103
8961         * support/regression/tests/bug-868103.c: added
8962         * src/SDCCast.c (searchLitOp),
8963         * src/SDCCcse.h (struct cseDef),
8964         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
8965         * src/SDCCicode.h (struct operand),
8966         * src/SDCCsymt.h (struct sym_link),
8967         * src/avr/gen.c (hasInc),
8968         * src/ds390/gen.c (hasInc),
8969         * src/hc08/gen.c (genPlusIncr, hasInc),
8970         * src/mcs51/gen.c (hasInc),
8971         * src/pic16/glue.c (pic16_printIvalChar),
8972         * src/pic16/ralloc.c (regWithIdx),
8973         * src/xa51/gen.c (hasInc) : removed warnings
8974         * src/SDCCast.c (createBlock): added comment ???
8975         * src/hc08/ralloc.c: updated comments
8976
8977 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8978
8979         * doc/sdccman.lyx: updated section on switch statements, added
8980         section about semaphore locking
8981         * doc/Makefile: added option -info for latex2html
8982         * device/lib/_gptrget.c,
8983         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
8984
8985 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
8986
8987         * src/pic/device.h,
8988         * src/pic/device.c,
8989         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
8990          maxram is less than 0x100.
8991
8992 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
8993
8994         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
8995
8996 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8997
8998         * src/port.h,
8999         * src/mcs51/main.c,
9000         * src/ds390/main.c,
9001         * src/z80/main.c,
9002         * src/hc08/main.c,
9003         * src/pic/main.c,
9004         * src/pic16/main.c,
9005         * src/avr/main.c,
9006         * src/xa51/main.c
9007         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
9008         a jump table is the best form for a switch statement, including
9009         automatic insertion of missing cases to make the case range
9010         continuous. Developed in collaboration with Frieder Ferlemann.
9011
9012 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9013
9014         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
9015         accumulator result if it needs sign extension
9016
9017 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9018
9019         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
9020
9021 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9022
9023         * device/lib/gbz80/printf.c,
9024         * device/lib/z80/printf.c: removed define for NULL
9025
9026 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9027
9028         * as/xa51/xa_link.c,
9029         * device/examples/ds390/ow390/ad26.c,
9030         * device/examples/ds390/ow390/cnt1d.c,
9031         * device/examples/ds390/ow390/counter.c,
9032         * device/examples/ds390/ow390/ds2480.h,
9033         * device/examples/ds390/ow390/ds2480ut.c,
9034         * device/examples/ds390/ow390/findtype.c,
9035         * device/examples/ds390/ow390/gethumd.c,
9036         * device/examples/ds390/ow390/owllu.c,
9037         * device/examples/ds390/ow390/ownetu.c,
9038         * device/examples/ds390/ow390/swt12.c,
9039         * device/examples/ds390/ow390/swtloop.c,
9040         * device/examples/ds390/ow390/temp.c,
9041         * device/examples/ds390/ow390/temp10.c,
9042         * device/examples/ds390/ow390/thermo21.c,
9043         * device/examples/ds390/ow390/tinilnk.c,
9044         * device/examples/ds390/ow390/tstfind.c,
9045         * device/examples/serialcomm/windows/serial.cpp,
9046         * device/examples/serialcomm/windows/test_serialcomm.cpp,
9047         * device/include/reg51.h: fixed line endings for cvs
9048
9049 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9050
9051         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
9052         packRegsForAccUse, packRegisters): new accumulator register
9053         packing algorithm
9054         * support/regression/ports/hc08/support.c (_putchar): suppress
9055         warning of unused variable
9056         * src/SDCCicode.c: added SWAP entry to codeTable
9057
9058 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
9059
9060         * device/lib/sprintf.c: forgot to add this file before previous commit
9061
9062 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
9063
9064         * src/pic16/gen.c (genPackBits): added operand right in function
9065         parameters, load result directly if p_type is POINTER (that is
9066         called by genNearPointerSet)
9067         * (genUnPackBits): added operand left in function parameters,
9068         * (genNearPointerGet, genNearPointerSet): prevent the loading of
9069         FSR0 if accessing bitfields,
9070
9071 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
9072
9073         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
9074           _print_format; updated printf, sprintf, vsprintf
9075         * device/include/asm/default/features.h: corrected comment/define
9076         * device/lib/Makefile.in: added sprintf.c
9077         * device/lib/libsdcc.lib: added sprintf module
9078         * device/lib/printf_large.c,
9079         * device/lib/vprintf.c,
9080         * device/lib/sprintf.c: totally refactored printf_large and vprintf
9081           into these 3 files
9082         * support/regression/Makefile: changed ALL_PORTS into a usefull default
9083         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
9084         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
9085           hc08 test
9086         * support/regression/tests/zeropad.c: define idata as data for hc08
9087
9088 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9089
9090         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
9091         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
9092         labels are referenced at least once (even if a reference is not found)
9093         * src/hc08/gen.c (emitcode): set isComment flag for comments
9094         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
9095         loads), rules 6a..6b (optimize jumps to return)
9096
9097 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9098
9099         * device/lib/acosf.c (acosf),
9100         * device/lib/asinf.c (asinf),
9101         * device/lib/atanf.c (atanf),
9102         * device/lib/ceilf.c (ceilf),
9103         * device/lib/cosf.c (cosf),
9104         * device/lib/coshf.c (coshf),
9105         * device/lib/cotf.c (cotf),
9106         * device/lib/fabsf.c (fabsf),
9107         * device/lib/floorf.c (floorf),
9108         * device/lib/log10f.c (log10f),
9109         * device/lib/logf.c (logf),
9110         * device/lib/sinf.c (sinf),
9111         * device/lib/sinhf.c (sinhf),
9112         * device/lib/sqrtf.c (sqrtf),
9113         * device/lib/tanf.c (tanf),
9114         * device/lib/tanhf.c (tanhf),
9115         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
9116         replaced all instances of "reentrant" in the library functions
9117         defined in math.h with this macro.
9118         * support/regression/tests/float_trans.c: reenabled test for hc08
9119
9120 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
9121
9122         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
9123         erroneously deleted
9124
9125 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9126
9127         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
9128         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
9129         multi-byte volatile operands are used
9130         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
9131         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
9132         initialization to area GSINIT0 so that it would always precede
9133         any static initializers in GSINIT
9134         * support/regression/tests/zeropad.c: fixed idata define for hc08
9135         * support/regression/tests/bug-927659.c,
9136         * support/regression/tests/float_trans.c: disabled tests for hc08
9137         pending missing library routines
9138         * .version: increased version number to 2.4.4 - hc08 port now passes
9139         regression tests
9140
9141
9142 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
9143
9144         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
9145         * Makefile.common.in,
9146         * as/Makefile,
9147         * as/hc08/Makefile.in,
9148         * as/mcs51/Makefile.in,
9149         * as/z80/Makefile.in,
9150         * debugger/mcs51/Makefile.in,
9151         * device/include/Makefile.in,
9152         * device/lib/Makefile.in,
9153         * doc/Makefile,
9154         * link/Makefile,
9155         * link/z80/Makefile.in,
9156         * packihx/Makefile.in,
9157         * sim/ucsim/main_in.mk,
9158         * sim/ucsim/avr.src/Makefile.in,
9159         * sim/ucsim/doc/Makefile.in,
9160         * sim/ucsim/gui.src/serio.src/Makefile.in,
9161         * sim/ucsim/hc08.src/Makefile.in,
9162         * sim/ucsim/s51.src/Makefile.in,
9163         * sim/ucsim/xa.src/Makefile.in,
9164         * sim/ucsim/z80.src/Makefile.in,
9165         * src/Makefile.in,
9166         * support/cpp2/Makefile.in,
9167         * support/librarian/Makefile,
9168         * support/makebin/Makefile: added DESTDIR to the install path proposed
9169         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
9170         * doc/sdccman.lyx: added DESTDIR documentation
9171
9172 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
9173
9174         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
9175         instruction for interrupt handlers, use fast returns when returning
9176         from high priority interrupts
9177
9178 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9179
9180         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
9181         code generation
9182         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
9183         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
9184         bugs, ported much of Bernhard's code from mcs51
9185         * src/mcs51/gen.c (genSend),
9186         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
9187         than one when calling a reentrant function
9188         * device/lib/_mullong.c: defined an alternate struct layout for big
9189         endian ports (hc08)
9190
9191 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9192
9193         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
9194         test
9195
9196 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9197
9198         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
9199         are sane and complete before asking the port its prefered parameter
9200         passing method (fixes bug #1017633)
9201         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
9202         and _ret3
9203
9204 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9205
9206         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
9207         problem in bitfields >= 8 bits.
9208
9209 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9210
9211         * src/SDCCsymt.c: undid changes that were not meant to be committed
9212
9213 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9214
9215         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
9216
9217 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9218
9219         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
9220           copied and wrong bit got inverted
9221
9222 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9223
9224         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
9225         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
9226         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
9227         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
9228         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
9229         assignments to bitfields at known addresses
9230         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
9231         reads from bitfields at known addresses
9232         * src/hc08/ralloc.c (packRegisters),
9233         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
9234         genhc08Code): optimize pointer get values used as conditionals
9235         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
9236         and branch
9237
9238 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9239
9240         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
9241         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
9242         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
9243         as conditionals
9244
9245 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9246
9247         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
9248
9249 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9250
9251         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
9252         related problems
9253
9254 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
9255
9256         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
9257
9258 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9259
9260         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
9261         mcs51 port
9262
9263 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
9264
9265         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
9266
9267 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9268
9269         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
9270         cases use more compact code.
9271
9272 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
9273
9274         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
9275
9276 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9277
9278         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
9279
9280 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9281
9282         * src/SDCCsymt.h,
9283         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
9284         parameter of changePointer() from symbol* to sym_link*
9285         * src/SDCCast.c (decorateType): call changePointer() for CAST op
9286         * src/SDCCsymt.c (compareType): void* type is castable to other
9287         pointers, but not necesarily an exact match.
9288         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
9289         is no longer blindly treated as an exact match.
9290         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
9291
9292 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
9293
9294         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
9295
9296 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
9297
9298         * src/pic/gen.c,
9299         * src/pic/pcode.c,
9300         * src/pic/ralloc.h,
9301         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
9302
9303 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
9304
9305         * src/pic/device.c,
9306         * src/pic/device.h,
9307         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
9308
9309 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9310
9311         * src/mcs51/gen.c (emitcode): fixed bug #992819
9312
9313 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
9314
9315         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
9316           there's no need to make it worse
9317
9318 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9319
9320         * src/mcs51/ralloc.c (deassignLR),
9321         * src/ds390/ralloc.c (deassignLR),
9322         * src/hc08/ralloc.c (deassignLR),
9323         * src/z80/ralloc.c (deassignLR),
9324         * src/pic/ralloc.c (deassignLR),
9325         * src/pic16/ralloc.c (deassignLR),
9326         * src/avr/ralloc.c (deassignLR),
9327         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
9328         rlivePoint): fixed another part of bug #971834
9329
9330 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9331
9332         * src/z80/main.c: enabled "critical" keyword
9333         * src/z80/mappings.i,
9334         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
9335         functions (fixes bug #979646)
9336         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
9337
9338 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9339
9340         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
9341           such as c:\mydir.
9342
9343 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
9344
9345         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
9346           doesn't disable too much optimizations
9347
9348 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
9349
9350         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
9351
9352 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
9353
9354         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
9355
9356 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
9357
9358         * src/pic/gen.c tidied up tabs
9359         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
9360         * src/pic/main.c tidied up tabs
9361         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
9362         * src/pic/pcoderegs.c tidied up tabs
9363         * src/pic/ralloc.c tidied up tabs
9364
9365 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
9366
9367         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
9368         to S_FIXED for pic16 port and when symbol is not in level 0,
9369         allocate for S_REGISTER storage class and pic16 port, too,
9370         * src/pic16/device.h: prototype for checkSym,
9371         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
9372         * (pic16_assignConfigWordValue): test the value and the mask to
9373         validate that the value is suitable for the configuration word,
9374         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
9375         collect extern declared symbols, don't emit symbol twice, check
9376         first if symbol is in publics set first,
9377         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
9378         * added command line '--fstack' which enables an experimental
9379         feature for stack access, too buggy to be used yet...
9380         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
9381         * (pic16_allocDirReg): when register has storage class S_REGISTER
9382         allocate in pic16_dynAccessRegs,
9383         * device/include/pic16/pic18f????.h: modified configuration word
9384         naming convention, words started as CONFIG0H but should be CONFIG1H
9385
9386 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
9387
9388         * device/include/mcs51reg.h: fixed bug 970993
9389
9390 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
9391
9392         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
9393         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
9394         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
9395         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
9396         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
9397         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
9398           error/warning numbers,
9399           added function setWarningDisabled()
9400         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
9401         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
9402           _memcmp.c _memmove.c calloc.c realloc.c free.c
9403         * support/regression/tests/malloc.c: added tests for new functionality
9404         * support/regression/tests/zeropad.c: added tests for truncated initializers
9405           and initialized char arrays starting with '\x0'
9406         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
9407
9408 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
9409
9410         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
9411
9412 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9413
9414         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
9415         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
9416         peephole 177.e. Thanks to anonymous
9417
9418 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
9419
9420         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
9421         function isn't used in the source but referenced as a
9422         variable initializer then declare it as extern in .asm file
9423
9424 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
9425
9426         * .version: increased version number to 2.4.3
9427
9428         Adding version extension according to ChangeLog CVS revision
9429         * src/Makefile.in (target all): added dependency 'version.h'
9430         * (rule version.h): added rule to create version.h from ChangeLog,
9431         * (rule dep): added dependency version.h,
9432         * src/version.awk: AWK script to create version.h
9433         * src/SDCCdwarf2.c (dwWriteModule),
9434         * src/SDCCglue.c (initialComments),
9435         * src/SDCCmain.c (printVersionInfo): modified to write after
9436         version string the version extension number,
9437         * src/SDCCutil.c: included "version.h"
9438         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
9439         number,
9440         * src/SDCCutil.h: added prototype for getBuildNumber
9441
9442         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
9443         includeDirsSet, too,
9444         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
9445         const char [] is found in function prototype...
9446
9447         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
9448         moving to WREG with source is already in WREG,
9449         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
9450         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
9451         * (aopForSym): stack'ed symbols are partially supported, added
9452         if-clause to support symbols in FARSPACE,
9453         * (sameRegs): added test for AOP_ACC to see if registers are same,
9454         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
9455         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
9456         * (pic16_popRegFromString): will not allocate a new register if it
9457         doesn't find one by name, bug may have introduced...
9458         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
9459         * (genIpush): revived to use pic16 port's stack,
9460         * (genAddrOf): added incomplete case for stack'ed operand,
9461         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
9462         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
9463         can handle multibyte operands,
9464         * src/pic16/glue.c (pic16_printIval*): some debug info added,
9465         * (pic16initialComments): added message for MPLAB compatibility
9466         mode enabled,
9467         * src/pic16/main.h: prototype for pic16_mplab_comp,
9468         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
9469         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
9470         * (_pic16_linkEdit): NEW, handles link stage, transferred here
9471         because of increased complexity of procedure,
9472         * (_process_pragma): stack pragma changed to format 'stack pos len',
9473         emit symbol '_stack_end' to conform with gplink,
9474         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
9475         to search for register,
9476         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
9477         PO_GPR_REGISTER,
9478         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
9479         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
9480         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
9481         case for PO_GPR_REGISTER,
9482         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
9483         dies, the new era is ahead !...
9484         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
9485         pic16_dynInternalRegs,
9486         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
9487         * (pic16_allocDirReg): minor optimizations and bug fixes,
9488         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
9489
9490         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
9491         load stack and frame pointer with address of 'stack_end' symbol
9492
9493 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
9494
9495         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
9496         without source code but only variable initializers
9497
9498 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
9499
9500         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
9501         external are not declared as extern to reduce overhead while linking
9502
9503 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
9504
9505         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
9506
9507 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
9508
9509         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
9510           Yee Keat for the patch
9511         * src/SDCCast.c (decorateType): fixed bug #979599
9512         * src/ds390/gen.h: removed local fReturnSizeDS390
9513         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
9514         * src/ds390/gen.c (genAnd, genOr, genXor),
9515         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
9516
9517 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
9518
9519         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
9520         add relFilesSet to $3, manipulate $2 to handle linking of object
9521         files without source files in command line,
9522         * device/include/pic16 (all headers): added ID location macros,
9523         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
9524         entries for ID location bytes,
9525         * (pic16_assignIdByteValue): NEW,
9526         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
9527         added field dumpcalltree to pic16_options_t,
9528         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
9529         is used instead of pic16_Gstack_base_addr, check if (ifx) before
9530         emitting rFalseIfx label after check_carry label,
9531         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
9532         pic16_emitDIRegs), NEW
9533         * (pic16glue): dump .calltree file when option --calltree found,
9534         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
9535         * (_pic16_genAssemblerPreamble): emit ID locations after
9536         configuration registers,
9537         * (pic16_linkCmd): modifications of the link command,
9538         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
9539         * (pic16_pCodeInitRegisters): don't init stack registers,
9540         * (pic16_findPrevInstruction): fixed bug,
9541         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
9542         bug with immediate registers,
9543         * (buildCallTree): traces stack push and pop,
9544         * (pct2): dump also stack usage for each function,
9545         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
9546         * (pic16_allocDirReg): various modifications,
9547         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
9548         fixed to 1,
9549
9550 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
9551
9552         * src/pic16/pcode.c: removed buggy double colon
9553
9554 2004-07-01 Borut Razem <borut.razem AT siol.net>
9555
9556         * support/scripts/sdcc.nsi: added include/pic16 to setup
9557
9558 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
9559
9560         * device/lib/Makefile.in: fixed bug in target objects-pic16,
9561         * device/lib/pic16/Makefile: prefixed with dash (-) command under
9562         target 'clean',
9563         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
9564         specific command line arguments. Also added sample lkr script
9565         for placing a variable at a specific memory bank.
9566         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
9567         at a specific memory bank,
9568         * (pic16_dump_isection): fixed bug which caused string literals to
9569         be omitted when dumping idata section,
9570         * (pic16_groupRegistersInSection): added code to handle registers
9571         in specific memory banks,
9572         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
9573         public, all references are renamed too,
9574         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
9575         AOP_DPTR2,
9576         * (pic16_storeForReturn): added case to handle when dest is WREG,
9577         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
9578         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
9579         pic16_rel_udata, check to see if that register is marked as being
9580         a member of a specific memory bank,
9581         * (pic16_printIvalCharPtr): added code to add string literals either
9582         to code or the idata sections,
9583         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
9584         also accept the 'udata' pragma,
9585         * src/pic16/main.h: new structure types sectName and sectSym
9586         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
9587         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
9588         * (pic16_findPrevInstruction): fixed, it returned nothing,
9589         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
9590         instruction combinations,
9591         * (pic16_FixRegisterBanking): heavily reorganised,
9592         * (pic16_AnalyzeBanking): if generating banksel directives is
9593         disabled, then don't call FixRegisterBanking at all,
9594         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
9595         completely removed,
9596         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
9597
9598 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
9599
9600         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
9601         Phuah Yee Keat <yk.phuah AT nestac.com>
9602
9603 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
9604
9605         * src/pic16/glue.c (pic16createInterruptVect): function now emits
9606         correctly the IVT even if it is relocated to some other location
9607
9608 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
9609
9610         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
9611         * device/include/pic16/pic18f2220.h: NEW,
9612         * device/lib/pic16/libdev/pic18f2220.c: NEW,
9613         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
9614         * src/pic16/device.c (struct Pics16): added info for 18f2220,
9615         * src/pic16/device.h (struct pic16_options): added ivt_loc and
9616         nodefaultlibs, ivt_loc is the location of the interrupt vector
9617         table, and nodefaultlibs signs that default libraries should not be
9618         linked in link stage,
9619         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
9620         according to --ivt-loc argument,
9621         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
9622         when pragma stack is found,
9623
9624 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9625
9626         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
9627         256 (range check), 257 (do while), 258.a-f (bit banging
9628         f.e. on 3-wire SPI bus)
9629
9630 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9631
9632         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
9633         variables used exclusively within a loop
9634
9635 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
9636
9637         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
9638
9639 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9640
9641         * src/SDCClrange.c (computeClash): fixed bug #971834
9642
9643 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9644
9645         * src/mcs51/gen.c (genCmp): fixed bug #975903
9646         * src/hc08/gen.c (operandsEqu),
9647         * src/ds390/gen.c (operandsEqu),
9648         * src/z80/gen.c (operandsEqu),
9649         * src/pic/gen.c (operandsEqu),
9650         * src/pic16/gen.c (operandsEqu),
9651         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
9652         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
9653
9654 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9655
9656         * src/SDCCcse.c (cseBBlock): fixed bug #966963
9657
9658 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
9659
9660         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
9661         default case in switch statement,
9662         * glue.c (pic16_initPointer): expr is initialised via decoarteType
9663         to eliminate problem with initialisation of pointers, but problem
9664         still exists,
9665         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
9666         * (emitStaticSegment): removed various lines emitting debug info,
9667         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
9668         added processor registers for utilizing EEPROM,
9669         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
9670         configurable and set 8
9671
9672 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
9673
9674         * .version: increased version number to 2.4.2,
9675
9676         Cumulative patch for pic16 port
9677         * src/pic16/device.c: changed scheme to dump initial values for
9678         variables in idata segment, all print_idata* functions were removed,
9679         now the pic16_printIval* will be called,
9680         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
9681         * _pic16_printPointerType, pic16_printPointerType,
9682         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
9683         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
9684         NEW, similar to the respective functions in SDCCglue.c,
9685         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
9686         way, emitting hex bytes,
9687         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
9688
9689 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9690
9691         * src/avr/ralloc.c (serialRegAssign),
9692         * src/xa51/ralloc.c (serialRegAssign),
9693         * src/pic/ralloc.c (serialRegAssign),
9694         * src/pic16/ralloc.c (serialRegAssign),
9695         * src/hc08/ralloc.c (serialRegAssign),
9696         * src/z80/ralloc.c (serialRegAssign),
9697         * src/ds390/ralloc.c (serialRegAssign),
9698         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
9699
9700 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9701
9702         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
9703         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
9704
9705 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
9706
9707         Cumulative patch for pic16 port:
9708         * src/pic16/device.h (typedef PIC16_device) modified fields for
9709         defining microcontrollers,
9710         * src/pic16/device.c: added new info for all devices in Pics16 array,
9711         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
9712         to be optimised out by the pCode optimiser,
9713         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
9714         specially, bug reported by G.M. Gallant,
9715         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
9716         as force'd so that cannot be optimised out by pCode optimiser,
9717         * src/pic16/pcode.c,
9718         * src/pic16/pcodepeeph.c,
9719         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
9720         they are disabled by default, but can be enabled explicit with
9721         command argument --denable-peeps, for testing,
9722         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
9723         --pomit-ivt in COMPILE_FLAGS
9724
9725 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
9726
9727         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
9728           compilation on MSVC
9729
9730 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
9731
9732         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
9733
9734 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9735
9736         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
9737         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
9738
9739 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
9740
9741         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
9742         would only assign 0x300001 register.
9743
9744 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
9745
9746         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
9747         in COMPILE_FLAGS. Thanks to G. Gallant for report.
9748
9749 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9750
9751         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
9752         for ds80c400
9753         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
9754         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
9755         added peephole 254 (left shift), 255 (jump table)
9756
9757 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
9758
9759         * device/lib/Makefile.in: removed comment line with model-pic16,
9760         * (target port-specific-objects-pic16): the libraries and objects
9761         are copied to the build directory form the device/lib/pic16/bin
9762         directory
9763
9764         Cumulative patch concerning pic16 port:
9765         * library directory has been re-organized,
9766         * added support for PIC18F1220,
9767         * added headers and library sources for chips 18f1220,18f6520,
9768         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
9769
9770         * configuration registers setting has changed, now each supported
9771         device has a complete description of the registers it uses,
9772         * all initialisations are moved to idata sections, these section
9773         can be absolute or relocatable,
9774         * fixed initialisation of codespace variables,
9775         * fixed warning about PCLATU and gpsim,
9776         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
9777         * (genAssign): use table reads when assigning from variables in codespace,
9778         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
9779         char/int variables placed in codespace,
9780         * (pic16_emitConfigRegs): NEW, emits a list with configuration
9781         registers set in .asm file, no need for --pomit-config-words anymore,
9782         * (pic16glue): some 8051 legacy segments are commented out
9783         (to be removed completely),
9784         * added support for alternative assembler and linker with --asm=
9785         and --link= command line arguments,
9786         * peepholes are disabled automatically in the port, no need to
9787         specify on command line,
9788         * port supports natively char/int/long multiplication, but converts
9789         all divisions to support functions,
9790         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
9791         to the file set in variable $2,
9792         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
9793         strings in ASCII format and not in hex,
9794         * ralloc.c (serialRegAssign): added a triplet of conditional calls
9795         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
9796         allocate proper register if iCodes aren't temporary,
9797
9798 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
9799
9800         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
9801
9802 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
9803
9804         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
9805         is commented out
9806
9807 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9808
9809         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
9810         computed address is reused
9811         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
9812         multi-byte bitfields
9813
9814 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
9815
9816         * src/z80/gen.c: (genArrayInit): must check for pointers too
9817
9818 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
9819
9820         * support/regression/tests/zeropad.c: never meant to commit the
9821           nestedstruct test: removed, added check for GCC version
9822
9823 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
9824
9825         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
9826         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
9827         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
9828           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
9829           bugs 928906 and 954082 half-empty initializers
9830         * src/SDCCsymt.h,
9831         * src/SDCCsymt.c (getAllocSize): added for above fix
9832         * src/z80/gen.c (genArrayInit): fixed bug 741044
9833         * support/regression/tests/zeropad.c: added tests
9834
9835 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
9836
9837         * src/pic16/device.c (pic16_dump_section): corrected bug which
9838         caused some symbols of the libraries to be misplaced
9839
9840 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
9841
9842         * src/pic16/glue.c,
9843         * src/pic16/ralloc.h,
9844         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
9845         to fix conflict with pic port
9846
9847 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
9848
9849         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
9850         externs configuration variables,
9851         * src/pic16/ralloc.h,
9852         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
9853         prototype in header, commented out some debug messages
9854
9855 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
9856
9857         * src/pic16/glue.c,
9858         * src/pic16/main.c,
9859         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
9860         for gpasm COFF object generation. Thanks to D. Hawkins for
9861         his patch info
9862
9863 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9864
9865         * src/ds390/main.c,
9866         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
9867         Brock for spotting this)
9868         * src/ds390/gen.c (genEndFunction),
9869         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
9870         interrupt handler and critical. Disable push/pop optimizations when
9871         peephole optimizations disabled.
9872
9873 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
9874
9875         Updated pic16 library sources and headers.
9876         * device/lib/pic16/pic18f*/ ,
9877         * device/include/pic16/*.h: modified to handle structured SFR
9878         definitions
9879
9880 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
9881
9882         * src/port.h (PORT structure): added hook initPaths, now each
9883         port can declare its own default search paths,
9884         which can been seen with the --print-search-dirs option,
9885         see pic16 port for example,
9886         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
9887         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
9888         * (doPrintSearchDirs): NEW, replaces in a central manner the
9889         printing of search dirs which was split in set*Paths functions,
9890         * (main): added call to port->initPaths and doPrintSearchDirs,
9891         * src/avr/main.c,
9892         * src/ds390/main.c,
9893         * src/hc08/main.c,
9894         * src/izt/i186.c,
9895         * src/izt/tlcs900h.c,
9896         * src/mcs51/main.c,
9897         * src/pic/main.c,
9898         * src/pic16/main.c: modified port structures to reflect addition of
9899         initPaths hook,
9900
9901         * src/pic16/device.c (regCompare): registers are finally sorted by name,
9902         * (pic16_dump_section): for registers in same address reserve memory once,
9903         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
9904         to no_banksel,
9905         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
9906         result is greater in size than right or left,
9907         * (pic16_genUMult8X8_8): there are some cases where the result can
9908         be 16 bits size, so handle these,
9909         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
9910         * (pic16_outBitC): modified to emit pcodes,
9911         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
9912         or not,
9913         * (genDivOneByte): implemented algorithm to divide 8-bits,
9914         * (genCmp): uncommented goto, but issues still exist,
9915         * (genAnd): fixed a bug with variables >8bits,
9916         * (genPackBits): optimization added that uses BCF/BSF to change a
9917         single bit,
9918         * (genAssign): fixed bug when assigning floating point literals,
9919         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
9920         __sdcc_gsinit_startup label,
9921         * src/pic16/main.c (_pic16_init): removed search directory
9922         initialisations,
9923         * (_pic16_initPaths): NEW, used to initialise search directories,
9924         * (_hasNativeMulFor): support functions for all except char/int
9925         multiplication, and char division,
9926         * (PIC16_port struct): modified entry for native mul support,
9927         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
9928         no_banksel option,
9929         * (buildCallTree): call to register_usage is ifdef'ed out,
9930
9931 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9932
9933         * device/include/string.h: applied Stas Sergeev's patch to make this
9934         header file compatible with the preprocessor -Wundef option
9935         * src/SDCCmain.c (main): abort compilation if preprocessor reports
9936         failure (fixes bug #941458)
9937
9938 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9939
9940         * src/SDCCopt.c (killDeadCode): fixed bug #907733
9941         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
9942         that the variable, not the function, should be static
9943         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
9944         to be consistent with non-literal case
9945
9946 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9947
9948         * src/SDCCast.c (isConformingBody): fixed bug #949967
9949         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
9950         convilong): fixed bug #952086
9951
9952 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9953
9954         * src/SDCCmem.c (allocVariables): fixed bug #955321
9955
9956 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9957
9958         * src/hc08/main.c (_hc08_genAssemblerEnd),
9959         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
9960         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
9961         completely eliminated the use of a temporary file
9962         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
9963         when more than one file linked
9964         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
9965
9966 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9967
9968         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
9969         which fixes bug #543481
9970         * support/regression/tests/bug-751703.c: fixed comments left from a
9971         cut and paste error
9972         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
9973         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
9974         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
9975         scopes
9976         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
9977         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
9978         are now changed to underscores in moduleName
9979
9980 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9981
9982         * as/mcs51/lkmem.c: better fix for bug #954173
9983
9984 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
9985         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9986
9987         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
9988         * device/include/c8051f000.h,
9989         * device/include/c8051f120.h,
9990         * device/include/c8051f300.h,
9991         * device/include/c8051f310.h,
9992         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
9993         PWM16) and detab'ed
9994
9995 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9996
9997         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
9998         and mailing lists, doc'ed --no-peep-comments, removed reference
9999         to knoppix (newest version has no LyX/LaTeX), other minor changes
10000         * src/SDCCglue.c (glue): save 2 bytes stack space with
10001         option --main-return. The ljmp could probably be avoided too
10002
10003 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10004
10005         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
10006
10007 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10008
10009         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
10010         * src/SDCCopt.c (isLocalWithoutDef),
10011         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
10012         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
10013         (credit to Maarten Brock for patch #949363, on which this is based)
10014         * support/regression/tests/bug-751703.c: some test cases of extern used
10015         within inner scopes.
10016
10017 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10018
10019         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
10020         SPEC_STRUCT
10021         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
10022         struct definitions
10023         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
10024         dwWriteLabel): fix to create valid debugger symbols even when
10025         the module name has non-alphanumeric symbols in it
10026         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
10027         when a variable's allocation has been optimized away
10028
10029
10030 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10031
10032         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
10033         * src/hc08/main.c,
10034         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
10035         * src/mcs51/main.c,
10036         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
10037         * src/ds390/main.c,
10038         * src/z80/gen.c (z80_emitDebuggerSymbol),
10039         * src/z80/main.c,
10040         * src/pic/gen.c (pic14_emitDebuggerSymbol),
10041         * src/pic/main.c,
10042         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
10043         * src/pic16/main.c,
10044         * src/avr/gen.c (avr_emitDebuggerSymbol),
10045         * src/avr/main.c,
10046         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
10047         * src/xa51/main.c,
10048         * src/SDCCdebug.c (emitDebuggerSymbol),
10049         * src/SDCCdebug.h,
10050         * src/port.h: added a debugger struct to the port struct. Added a
10051         callback for defining debugger symbols
10052
10053         * src/SDCCast.c (createLabel),
10054         * src/SDCC.y (labeled_statement): mark all compiler generated labels
10055         with isitmp = 1
10056         * src/SDCCicode.h,
10057         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
10058         iCode back to the ast for the function
10059
10060         * src/hc08/ralloc.c (hc08_assignRegisters),
10061         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
10062         unneeded fields from the regs struct.
10063         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
10064         pushReg() & pullReg() functions instead of emitcode()
10065
10066         * src/hc08/gen.c (genLabel, genhc08Code),
10067         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
10068
10069         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
10070         debugger hooks
10071
10072         * src/hc08/gen.c (genEndFunction, genhc08Code),
10073         * src/hc08/gen.h,
10074         * src/mcs51/gen.c (genEndFunction, gen51Code),
10075         * src/mcs51/gen.h,
10076         * src/ds390/gen.c (genEndFunction, gen390Code),
10077         * src/ds390/gen.h,
10078         * src/z80/gen.c (genEndFunction, genZ80Code),
10079         * src/z80/gen.h,
10080         * src/z80/z80.h,
10081         * src/pic/gen.c (genEndFunction, genpic14Code),
10082         * src/pic/gen.h,
10083         * src/pic16/gen.c (genEndFunction, genpic16Code),
10084         * src/pic16/gen.h,
10085         * src/avr/gen.c (genEndFunction, genAVRCode),
10086         * src/avr/gen.h,
10087         * src/xa51/gen.c (genEndFunction, genXA51Code),
10088         * src/xa51/gen.h,
10089         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
10090         specific code to cdbFile.c and out of the backend code generators
10091
10092         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
10093         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
10094         starting address is now 0
10095
10096         * as/hc08/asm.h,
10097         * as/hc08/m08pst.c,
10098         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
10099         assembler directive for DWARF support
10100         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
10101
10102         * src/src.dsp,
10103         * src/Makefile.in,
10104         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
10105
10106 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10107
10108         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
10109         and inappropriate peephole optimization in jump tables
10110
10111 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10112
10113         * as/hc08/m08pst.c,
10114         * src/SDCCglue.c: sdccopt works for the hc08 port now
10115
10116 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
10117
10118         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
10119
10120 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10121
10122         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
10123
10124 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10125
10126         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
10127         rules
10128         * src/SDCCmain.c,
10129         * src/SDCCglobl.h,
10130         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
10131         comments from the peephole optimizer replacement rules
10132         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
10133         symbols
10134         * src/SDCCcse.c (updateSpillLocation),
10135         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
10136         equivalents
10137         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
10138         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
10139         objects far pointers
10140
10141 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10142
10143         * src/SDCCsymt.h: a missing part of my last change
10144         * src/pic/ralloc.c (regTypeNum),
10145         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
10146
10147 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10148
10149         * src/SDCCicode.h,
10150         * src/SDCCicode.c (aggrToPtrDclType),
10151         * src/SDCCptropt.h,
10152         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
10153         ptrPseudoSymConvert),
10154         * src/pic/ralloc.c (regTypeNum),
10155         * src/pic16/ralloc.c (regTypeNum),
10156         * src/hc08/ralloc.c (regTypeNum),
10157         * src/ds390/ralloc.c (regTypeNum),
10158         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
10159         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
10160
10161 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10162
10163         * link/z80/lkmain.c (afile),
10164         * as/hc08/lkmain.c (afile),
10165         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
10166         prevent a pointer problem when a filename has no directory and
10167         no extension specified.
10168
10169 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10170
10171         * link/z80/lkmain.c (afile): allow periods in directory names
10172         * link/z80/lkmain.c (afile),
10173         * as/mcs51/lkmain.c (afile),
10174         * as/hc08/lkmain.c (afile): allow linker script file to have an
10175         extension other than ".lnk"
10176         * link/z80/lklex.c (getfid),
10177         * link/z80/lkmain.c (parse),
10178         * as/mcs51/lklex.c (getfid),
10179         * as/mcs51/lkmain.c (parse),
10180         * as/hc08/lklex.c (getfid),
10181         * as/hc08/lkmain.c (parse): Support comments in the linker script
10182         file on lines by themselves and after filenames
10183
10184 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10185
10186         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
10187
10188 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10189
10190         * src/z80/peeph-z80.def: removed some peephole rules that don't
10191         work with multibyte arithmetic (fixed bug #937126)
10192         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
10193         to registers and not global variables
10194         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
10195         geniCodePreInc, geniCodePostDec, geniCodePreDec,
10196         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
10197         checking for assignments not internally generated (fixed bug #931895)
10198         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
10199         structure member (fixed bug #930072)
10200
10201 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10202
10203         * src/SDCCmain.c (linkEdit),
10204         * src/hc08/main.c (_hc08_parseOptions),
10205         * as/hc08/Makefile.in,
10206         * as/hc08/aslink.h,
10207         * as/hc08/asm.h,
10208         * as/hc08/m08pst.c,
10209         * as/hc08/lkrloc.c (relr, rele),
10210         * as/hc08/lkarea.c (lnkarea)
10211         * as/hc08/lkmain.c (afile, parse),
10212         * as/hc08/lkelf.c: support for ELF output
10213         * as/hc08/lks19.c (s19),
10214         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
10215
10216 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10217
10218         * as/mcs51/lkihx.c: Fixed bug #899105.
10219
10220 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10221
10222         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
10223         .dsp files from Unix to DOS.
10224
10225 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10226
10227         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
10228         function pointers; we have been compliant for several months now.
10229         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
10230         change that was accidently commented out
10231         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
10232         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
10233         bug #922319
10234
10235 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10236
10237         * src/hc08/gen.c: output of all of the internal debugging information
10238         is now controlled by the D() macro; it is disabled by default
10239
10240 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10241
10242         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
10243         harder to keep the same registers during a CAST iCode
10244         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
10245         long via int can be done in a single cast, if the signedness is
10246         correct.
10247         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
10248         putchar() in tinibios.c in ds390's library
10249
10250 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
10251
10252         * src/SDCCast.c (decorateType): fixed bug #898889,
10253         cast result of a literal complement too
10254         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
10255         fixed check for bitfields
10256
10257 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
10258
10259         * src/SDCCicode.c (geniCodeLogic): made it static,
10260         (geniCodeLogicAndOr): added in order to fix bug #905492,
10261         (ast2iCode): fixed bug #905492
10262         * support/regression/tests/bug-905492.c: added
10263         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
10264         (processParms): fixed bug #927659: don't copy parms, this will clear
10265         decorated flag
10266         * support/regression/tests/bug-927659.c: added
10267
10268 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
10269
10270         * src/SDCCast.c (addCast): don't cast float to char
10271         * device/lib/libsdcc.lib: added _memmove
10272
10273 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
10274
10275         * device/lib/large/Makefile: fixed parallel execution by
10276         replacing `make` by `$(MAKE)`
10277
10278 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10279
10280         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
10281         offsets (fixes bug #923936)
10282
10283 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
10284
10285         * device/lib/small/Makefile: fixed parallel execution by
10286         replacing `make` by `$(MAKE)`
10287
10288 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
10289
10290         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
10291
10292 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
10293
10294         * src/pic/gen.c (genCpl): multi-byte complements were not working.
10295         * src/regression/Makefile: Regression test was not running.
10296
10297 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
10298
10299         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
10300         complement if possible
10301         * src/SDCCval.c (valComplement),
10302         * src/SDCCicode.c (operandOperation): fixed complement of literal
10303         * support/regression/tests/onebyte.c (testComplement): added
10304
10305 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
10306
10307         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
10308         return an optimized tree; actually replace actParm with the new tree
10309         * src/SDCCast.h: added some parantheses to remove side effects
10310         * support/regression/tests/bug-920866.c
10311
10312 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
10313         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
10314         Bit operands were not being handled properly in the pic14 port.
10315         (now src/regression/add.c passes again).
10316
10317 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10318
10319         * src/SDCC.y (labeled_statement): case and default no longer require
10320         a following statement (RFE #893037)
10321
10322 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10323
10324         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
10325         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
10326         disabled (fixes bug #916294)
10327         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
10328         "mov a,acc"; patch provided by Lenny Story
10329         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
10330
10331 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10332
10333         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
10334         functions
10335         * src/ds390/gen.c (genFunction, genEndFunction),
10336         * src/ds390/ralloc.c (ds390_assignRegisters),
10337         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
10338         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
10339         pushed if there are parameters passed on the stack. Also, a cleaner
10340         way to decide if r0/r1 should be pushed/popped. (Together they fix
10341         bug #918693)
10342
10343 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10344
10345         * doc/sdccman.lyx,
10346         * device/lib/mcs51/crtpagesfr.asm,
10347         * device/lib/mcs51/crtxinit.asm,
10348         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
10349         to avoid confusion with Si Lab's SFRPAGE register.
10350
10351 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10352
10353         * src/SDCCglue.c (emitMaps): allow public sfr variables
10354         * src/SDCCglue.c (initialComments): include compiler build date
10355         with compiler version and put the timestamp of the generated
10356         assembly file on a serperate line to be less confusing.
10357         * src/port.h: added genInitStartup hook
10358         * src/avr/main.c,
10359         * src/ds390/main.c,
10360         * src/hc08/main.c,
10361         * src/pic/main.c,
10362         * src/pic16/main.c,
10363         * src/xa51/main.c,
10364         * src/z80/main.c: genInitStartup initialize as NULL (default to
10365         historical behaviour)
10366         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
10367         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
10368         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
10369         library instead of hard coding it into the compiler.
10370         * support/regression/ports/mcs51-stack-auto/spec.mk,
10371         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
10372         * device/lib/mcs51/Makefile,
10373         * device/lib/small/Makefile,
10374         * device/lib/large/Makefile,
10375         * device/lib/mcs51/crtpagesfr.asm,
10376         * device/lib/mcs51/crtstart.asm,
10377         * device/lib/mcs51/crtxclear.asm,
10378         * device/lib/mcs51/crtxinit.asm,
10379         * device/lib/mcs51/crtclear.asm,
10380         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
10381         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
10382         and into user configurable files.
10383         * device/lib/clean.mk: clean mcs51 directory too
10384         * support/regression/tests/longlit.c: added static to T1 declaration
10385         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
10386         accesses in the initialization code
10387
10388 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10389
10390         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
10391         OSCTRIMVAL as noted in bug #916008
10392
10393 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10394
10395         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
10396         in loops with multiple exits (reported as incorrect registers
10397         used by Martin Helmling in Sdcc-user list)
10398
10399 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10400
10401         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
10402         made ds390 register extensions look less like error messages
10403
10404 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10405
10406         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
10407         reported by Adam Wozniak in Sdcc-user list
10408
10409 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
10410
10411         * src/SDCCast.c (decorateType): fixed with bug and promotion in
10412         arithmetic optimizations, added debug output
10413
10414 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
10415
10416         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
10417         * sdcc.spec: updated and split sdcc into 3 rpms
10418         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
10419         needed for literals of LEFT_OP and '+'
10420         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
10421         introduced RESULT_TYPE_NOPROM
10422         (geniCodeMultiply): fixed logic for decision if mul is optimized to
10423         left shift
10424         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
10425         limited promotion to int only for '*'
10426         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
10427
10428 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
10429
10430         * src/pic16/gen.c (genSkip),
10431         (genc16bit2lit), (gencjneshort): commented out
10432         (is_LitOp): new helper function, checks operand type
10433         (genCmpEq): rewritten
10434
10435 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
10436
10437         * support/regression/tests/bug-908454.c: added
10438
10439 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
10440
10441         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
10442         * src/SDCCicode.c (usualBinaryConversions): op needs int type
10443         (geniCodeCast): cosmetic, don't preserve bit storage class
10444         (geniCodeLeftShift): added promotion
10445         (geniCodeLogic): fixed regression
10446         * src/SDCCsymt.c (computeTypeOr): accept bits too
10447         (compareType): 2nd part of fix for bug #908454, needed for bitfields
10448
10449 2004-03-07  Borut Razem <borut.razem AT siol.net>
10450
10451         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
10452
10453 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
10454
10455         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
10456         version of pic16_genPackRegisters which does not check if ic is a
10457         CAST operator,
10458         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
10459         function cause string1.c regression test fails
10460
10461 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
10462
10463         * sim/ucsim/configure.in,
10464         * sim/ucsim/configure,
10465         * sim/ucsim/doc/Makefile.in: use docdir
10466         * src/SDCC.y: fixed sbit atrributes
10467         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
10468         * src/SDCCast.c (decorateType): |^& need special promotion handling
10469         * src/SDCCast.h,
10470         * src/SDCCsymt.h: moved definition of RESULT_TYPE
10471         * src/SDCCsymt.h (computeType),
10472         * src/SDCCicode.c: computeType() needs op
10473         * src/SDCCsymt.c (checkTypeSanity),
10474         * doc/sddman.lyx: "plain" bitfields are unsigned
10475         * src/SDCCsymt.c (computeTypeOr): added
10476         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
10477         |^& ops
10478         * src/SDCCval.c (val*): computeType() needs op
10479         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
10480         * support/regression/tests/onebyte.c: added tests for |^&
10481
10482 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
10483
10484         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
10485         for writing icode into asm output.
10486
10487 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
10488
10489         * src/pic16/device.c: added some debug lines enabled
10490         with macro DEBUG_CHECK,
10491         * src/pic16/genarith.c: more debug in genPlus,
10492         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
10493         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
10494         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
10495         * (aopForSym): onStack symbols are re-placed in data memspace,
10496         and onStack flag is cleared,
10497         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
10498         copy temporary pcodeop,
10499         * (genPcall): added warning for not updating PCLATU,
10500         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
10501         always true for pic16 port,
10502         * (genMultOneWord): NEW, supports integer multiplication,
10503         * (genMult): modified to call genMultOneWord,
10504         * (ifxForOp): added warning when return NULL,
10505         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
10506         flag is set before call to operandFromSymbol for implicit
10507         added structures,
10508         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
10509         options.intlong_rent are set by default,
10510         * (_hasNativeMulFor): modified to allow port generation of integer
10511         multiplication,
10512         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
10513         set regtype to REG_SFR for all registers, restricting seting the
10514         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
10515
10516 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10517
10518         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
10519         more than 500 times in the regression tests
10520
10521 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10522
10523         * support/Util/SDCCerr.h,
10524         * support/Util/SDCCerr.c,
10525         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
10526         enumerator_list),
10527         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
10528         for symbol conflicts.
10529         * support/valdiags/tests/enum.c,
10530         * support/valdiags/tests/tentdecl.c,
10531         * support/valdiags/tests/struct.c: expect possible error messages
10532         referring to original symbol definitions.
10533         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
10534         * src/SDCCsymt.h,
10535         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
10536
10537 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
10538
10539         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
10540
10541 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
10542
10543         * src/pic16/ralloc.c (newReg): fixed bug #908929
10544
10545 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10546
10547         * src/ds390/gen.c: added missing #include "main.h"
10548
10549 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
10550
10551         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
10552         checking if symbol is already in set,
10553         * src/pic16/device.h: prototype for checkAddSym,
10554         * src/pic16/gen.c: (_G): added entry interruptvector,
10555         * (assignResultValue): removed some commented out lines,
10556         * (genFunction): check for ISR via sym->type, absolute section for
10557         interrupt code is created via a new pBlock, the goto instruction is
10558         placed now correctly at the interrupt vector position, changed all
10559         references from ivec to _G.interruptvector,
10560         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
10561         is the interrupt is a high priority one, same for return from ISR,
10562         * src/pic16/glue.c: changed all calls of addSetHead for publics and
10563         externs to calls of checkAddSym,
10564         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
10565         pic16_pcode_verbose flag is set,
10566         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
10567         * src/pic16/pcoderegs.c: message about how many registers are saved
10568         will only be emitted if pic16_pcode_verbose flag is set,
10569
10570 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10571
10572         * src/ds390/ralloc.h,
10573         * src/ds390/ralloc.c (ds390_regWithIdx),
10574         * src/ds390/gen.c (emitcode),
10575         * src/ds390/main.h,
10576         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
10577         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
10578         ds390operandCompare, getRegsRead, getRegsWritten,
10579         initializeAsmLineNode): customized instruction size calculation for
10580         ds390, started basis for some register optimizations
10581         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
10582         corresponding assembly output
10583         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
10584         missing push/pop of r0/r1. Optimized push/pops
10585
10586 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10587
10588         * src/mcs51/main.c (instructionSize): fixed ACALL size
10589         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
10590
10591 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
10592
10593         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
10594         the sorting of rlist with NULL elements
10595         * (print_idataType, print_idata): NEW to create idata sections
10596         * src/pic16/device.h: idataSymSet new variable
10597         * src/pic16/gen.c (genFunction): fixed some bugs in string
10598         comparing, improved the absolute section creation for ISRs,
10599         added FSR0L/FSR0H in registers that are saved in an ISR,
10600         * (genInline): fixed the processing of inline snippets,
10601         now they undergo no process by the peephole optimizer
10602         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
10603         are placed in idataSymSet,
10604         * (pic16emitStaticSeg): extern symbols are added in externs,
10605         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
10606         switching when aboslute variables are placed in access bank memory
10607         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
10608         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
10609         commented out with #if,
10610         * (pic16_packRegisters): reintroduce the check for CAST because some
10611         symbols are not correctly handled,
10612         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
10613         pCodeInstruction instead of pCode,
10614         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
10615         pCodeAsmDir definition,
10616         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
10617         directive, then the argument directive is emitted without the leading
10618         tab, hack for inline labels which must be in the first column,
10619         * (compareLabel,pic16_findNextInstruction),
10620         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
10621         * (insertBankSwitch): modified for the new pCodeAsmDir,
10622
10623 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
10624         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
10625
10626         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
10627         instance,
10628         * (pushSide): commented out with #if,
10629         * (assignResultValue): fixed some typos in saving
10630         registers,
10631         * (genPcall): FIXED and sync'ed with genCall,
10632         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
10633         * (genNearPointerGet): fixed to handle some more cases,
10634         implementation scheme via table reads,
10635         * (genConstPointerGet): modified to access code memory correct,
10636         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
10637         and improved to handle some cases
10638         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
10639         instead of "RETLW" for init data
10640         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
10641         not IN_DIRSPACE, work around to reduce bank switching when aboslute
10642         variables are placed in access bank memory (<0x80 and >=0xf80),
10643         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
10644         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
10645         TBLWT_POSTDEC,TBLWT_PREINC
10646         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
10647         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
10648         directives
10649         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
10650         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
10651         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
10652         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
10653
10654 2004-02-29  Borut Razem <borut.razem AT siol.net>
10655
10656         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
10657         support/Util/findme.h, support/Util/system.h: enhance binary relative
10658         search for lib and include by using findProgramPath()
10659
10660 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10661
10662         * src/SDCCpeeph.h,
10663         * src/SDCCpeeph.c (pcDistance),
10664         * src/port.h,
10665         * src/mcs51/ralloc.h,
10666         * src/mcs51/ralloc.c (mcs51_regWithIdx),
10667         * src/mcs51/main.h,
10668         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
10669         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
10670         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
10671         size calculation port specific, started basis for some register
10672         optimizations
10673         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
10674         missing push/pop of r0/r1. Optimized push/pops
10675         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
10676         * device/lib/_modsint.c (_modsint),
10677         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
10678         and stack version so regression tests pass
10679
10680 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
10681
10682         * src/Makefile.in (dep): include SLIBOBJS in dependency check
10683         * src/SDCCast.c (decorateType): catch another small optimization
10684         with '?' operator
10685         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
10686         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
10687         modified to finally use computeType() all over SDCC,
10688         see Feature Request #877103
10689         * src/SDCCval.h: cosmetic
10690         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
10691         valCompare(); regression tested in muldiv.c
10692         * support/regression/tests/muldiv.c (testMod): mod sign follows
10693         dividend only
10694
10695 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
10696
10697         * src/SDCCast.c (decorateType): fixed bug #902362
10698         * doc/INSTALL.txt: fixed install instructions for win32
10699
10700 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
10701
10702         * device/include/Makefile.in (install): fixed by replacing spaces
10703         by tabs
10704         * doc/README.txt,
10705         * doc/INSTALL.txt: updated for release
10706         * doc/sdccman.lyx: added warning for --xstack being buggy
10707
10708 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
10709
10710         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
10711         to eliminate build warnings.
10712         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
10713
10714 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
10715            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
10716
10717         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
10718         removed -penable-stack, added comment for stack pragma, added
10719         warning for not initializing the stack/frame registers, removed
10720         comment at interrupts section
10721
10722         Stack is made permanent, there is no ability to disable stack usage.
10723         * src/pic16/device.h,
10724         * src/pic16/device.c: removed all references to USE_STACK macro,
10725         * src/pic16/device.c (pic16_dump_section): when no elements in
10726         rlist, free rlist before return,
10727         * (pic16_dump_int_registers): NEW, internal registers are a new set
10728         of general purpose registers reused by each function,
10729         * (checkAddReg): returns 1 if registers is added to set,
10730         * (pic16_groupRegistersInSection): when a registers is of type
10731         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
10732         * src/pic16/device.h: memRange and Assigned Memory are deleted,
10733         SRCASECMP macro is moved here from device.c
10734         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
10735         PO_PCLATU, PO_PRODL, PO_PRODH,
10736         * (pic16_pCodeOpType, genMinus,
10737         changed compares to "a" register, with AOP_ACC,
10738         * (pic16_genPlus): fixed some bugs and indented properly,
10739         * (pic16_addSign): changed size to size+offset in the MOVWF
10740         instruction,
10741         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
10742         multiply 8-bit operand by literal, result is 8-bit,
10743         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
10744         multiply 2 8-bit operand, result is 8-bit,
10745         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
10746         genUMult8X*_16,
10747         * src/pic16/gen.c: changed accUse to contain WREG only,
10748         * (pic16_emitcomment): renamed to pic16_emitpcomment,
10749         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
10750         true, do not use immediate addressing any more unless sym is a
10751         pointer in codespace,
10752         * (aopForRemat): do not use immediate addressing when symbol not in
10753         codespace and when symbol's address is requested,
10754         * (aopOp): for-loop in if(sym->accUse) is modified for the new
10755         accUse size (= 1),
10756         * (aopGet): added case for AOP_ACC and don't return "accumulator
10757         bug" but WREG instead,
10758         * (popGetTempReg): pushes contents of temporary register in stack,
10759         * (popReleaseTempReg): pops contents of temporary register from
10760         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
10761         * (pic16_popGet): separated case AOP_ACC to return register WREG
10762         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
10763         or PO_IMMEDIATE and initializes their instance/offset appropriately,
10764         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
10765         the use of immediate pointers to certain cases only.
10766
10767         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
10768         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
10769         * (assignResultValue, genCall, genRet): modified to use the new
10770         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
10771         genPcall is still broken,
10772         * (genFunction): added code to create 'A' type pBlocks when
10773         interrupt functions are generated, code not extensively tested yet,
10774         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
10775         * (genEndFunction): modified so ISRs pop stored registers from stack,
10776         * (genMultOneByte): cleanup,
10777         * (AccRsh): added flag andmask, to and result with appropriate mask,
10778         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
10779         * (genDataPointerGet): fixed and reenabled its use,
10780         * (genNearDataPointerGet): bugs fixed,
10781         * (genDataPointerSet): bugs fixed,
10782         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
10783         pic16_DumpSymbol, pic16_DumpOp,
10784         * src/pic16/genutils.h: function prototypes for the above functions,
10785         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
10786         pointers,
10787         * (pic16emitRegularMap): many many many improvements, but needs a
10788         major cleanup,
10789         * src/pic16/main.c: enable_stack in pic16_options is removed,
10790         * (_pic16_parseOptions): removed command line options -penable-stack,
10791         * (_process_pragma): emit stack symbol only when stack pragma is
10792         processed,
10793         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
10794         redirected to FSR0L/FSR0H pair,
10795         * (pic16_get_op, pic16_get_op2): modifications and improvements,
10796         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
10797         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
10798         for immediates,
10799         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
10800         * (dumpPicOptype): NEW,
10801         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
10802         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
10803         with movff instruction,
10804         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
10805         added pic16_int_regs, some packRegsFor* functions are commented out,
10806         because produce errors,
10807         * src/pic16/NOTES: minor modifications
10808
10809 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10810
10811         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
10812         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
10813         --pack-iram.
10814         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
10815         * as/mcs51/lkaomf51.c: fixed bug #895763
10816
10817 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
10818
10819         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
10820
10821 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10822
10823         * doc/sdccman.lyx: added details about the HC08 storage classes and
10824         interrupts, fixed the register usage info for z80 & gbz80
10825
10826 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
10827
10828         * doc/sdccman.lyx: added more pic16 port documentation
10829         * device/include/pic16/: added header pic18fregs.h
10830
10831 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
10832
10833         * doc/sdccman.lyx: added Vangelis' contribution
10834
10835 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10836
10837         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
10838         extend to the next CALL or PCALL, not just to the next CALL.
10839
10840 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
10841
10842         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
10843
10844 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10845
10846         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
10847         bug #895752 and a better fix for bug #716790
10848
10849 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10850
10851         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
10852
10853 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10854
10855         * doc/sdccman.lyx: minor changes, minor changed
10856
10857 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
10858
10859         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
10860         which can't handle SDCC_NEWONEBYTEOPS,
10861         (geniCodeMultiply): removed conversion from mult to shift for pic14
10862         and pic16
10863
10864 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10865
10866         * src/hc08/gen.h,
10867         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
10868         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
10869         thus fixing bug #895406
10870
10871 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
10872
10873         * device/lib/_modsint.c,
10874         * device/lib/_modslong.c: sign follows divisor only
10875         * src/hc08/gen.c (genMultOneByte): if result size is 1,
10876         signs or signedness can be ignored
10877         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
10878         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
10879         added optimization for IFX,
10880         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
10881         arguments;
10882         reenabled optimization for IFX, which was removed on 2004-01-11
10883         * src/SDCCast.h: added return type IFX
10884         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
10885         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
10886         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
10887         SDCC_OLDONEBYTEOPS selects the old behaviour
10888         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
10889         changed again and commented promotion rule
10890         * src/SDCCval.c (valDiv): promotion no longer necessary
10891         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
10892         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
10893         rewritten
10894         * support/regression/tests/onebyte.c: added
10895
10896 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
10897
10898         * gen.c (genInline): reverted to old code for assemnling inline
10899         code because of bug reported James Chadd
10900
10901 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
10902
10903         * ralloc.h: missing declarations from previous patch,
10904         seems that patch for ralloc.h was never applied, fixed
10905
10906 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
10907            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
10908
10909         * pcode.c,
10910         * pcode.h,
10911         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
10912         indirect addressing. Marked FSR0 as deprecated
10913         * gen.c (pointerCode): commented out, not needed now
10914         (pic16_popGet2p): new MOVFF helper function
10915         (genGenPointerGet),
10916         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
10917         (shiftRLong): removed duplicate debugging info
10918
10919 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10920
10921         * src/ds390/gen.c (genNearPointerGet),
10922         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
10923         optimization with bits, but not bitfields.
10924         * src/ds390/ralloc.c (packRegisters),
10925         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
10926
10927 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
10928
10929         * src/SDCCcse.c (algebraicOpts): copy operands before modification
10930
10931 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10932
10933         * src/SDCCsymt.h,
10934         * src/SDCCicode.c (operandFromSymbol),
10935         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
10936         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
10937         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
10938         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
10939         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
10940         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
10941         bug #892038
10942         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
10943         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
10944         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
10945         * src/SDCCsymt.c (newSymbol),
10946         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
10947         enumerator_list),
10948         * src/SDCCval.h,
10949         * src/SDCCval.c (newiList): fixed bug #885705
10950
10951 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10952
10953         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
10954         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
10955
10956 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10957
10958         * device/include/c8051f120.h,
10959         * device/include/c8051f300.h,
10960         * device/include/c8051f310.h: added/updated header files for Silicon
10961         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
10962         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
10963         in new section Submitting patches
10964
10965 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10966
10967         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
10968         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10969         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10970         genGenPointerSet),
10971         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
10972         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10973         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10974         genGenPointerSet),
10975         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
10976         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10977         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10978         genGenPointerSet),
10979         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
10980         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10981         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10982         genGenPointerSet): fixed bug #892400
10983         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
10984         to eliminate build warnings.
10985         * src/SDCCast.c (processParms),
10986         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
10987         fixed bug 751859
10988         * support/valdiag/valdiag.py: added GCC to the list of defines active
10989         when compiling with gcc
10990
10991 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10992
10993         * support/Util/SDCCerr.h,
10994         * support/Util/SDCCerr.c,
10995         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
10996         with an incomplete type (fixed bug #883734)
10997         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
10998
10999 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11000
11001         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
11002
11003 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11004
11005         * src/SDCCast.c (decorateType),
11006         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
11007         function pointer implementation
11008         * support/regression/tests/funptrs.c: added tests to verify both forms
11009         of function pointers work correctly. Added tests to verify parameters
11010         are passed in the correct order.
11011
11012 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
11013
11014         * device.c (regCompare): registers are sorted by ascending
11015         address and increasing size,
11016         * main.c (_pic16_finaliseOptions): removed the declaration
11017         of compiler macro MCU. Now a macro of the format pic18fxxxx
11018         will be defined from the command line
11019
11020 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11021             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
11022
11023         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
11024         PCOP_RLCF was overwritten!
11025         * gen.c (genSkip): commented out calls to pic16_emitcode,
11026         * (genCmpEQ): fixed "long" compares, only high word did get compared,
11027         * (genlshTwo),
11028         * (genRRC): added debugging info,
11029         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
11030         overwritten while shifting,
11031         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
11032         overwritten while shifting,
11033         * (AccLsh),
11034         * (AccRsh),
11035         * (shiftLLeftOrResult),
11036         * (shiftRLeftOrResult),
11037         * (shiftRLong),
11038         * (shiftLLong): Implemented with pic16_emitpcode
11039         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
11040         * (genLeftShift): Fixed bug, operand for shift by variable always
11041         was "and"ed with 0x0f,
11042         * (genLeftShiftLiteral),
11043         * (genrshTwo),
11044         * (genRightShiftLiteral): added debugging info,
11045         * (genrshFour): added comment,
11046         * (genRightShift): determined signedness from operand "left"
11047         instead of "result"
11048
11049 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11050
11051         * src/SDCCicode.c (geniCodeParms),
11052         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
11053         function pointers, fixed function pointer bugs #861242 and #861896
11054
11055 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11056
11057         * device/include/c8051f000.h,
11058         * device/include/c8051f120.h,
11059         * device/include/c8051f300.h: added header files for Silicon
11060         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
11061
11062 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
11063
11064         * src/SDCCast.c (processParams): added new type flow and restructured
11065         (gatherAutoInit): added new type flow
11066         (addCast): cosmetic changes
11067         (getLeftResultType): added new type flow for array indices, patch
11068         provided by Stas, see FR #877103
11069         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
11070         array index patch by Stas
11071         * src/SDCCast.h: added prototype getResultTypeFromType()
11072         * src/SDCCval.h,
11073         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
11074         * src/pic/glue.c (pic14emitStaticSeg),
11075         * src/pic16/glue.c (pic16emitStaticSeg),
11076         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
11077         for initialization of symbols
11078         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
11079         * support/Util/SDCCerr.h:
11080         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
11081         * .version: bumped version number to 2.3.8
11082         * device/include/Makefile.in (install),
11083         * doc/Makefile (install): changed to 'rm `find ...`' construct to
11084         avoid warnings
11085
11086 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
11087
11088         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
11089         Slade Rich fixed an optimization bug
11090         * src/pic/pcodepeep.c,
11091         * src/pic/pcoderegs.c
11092         * doc/Makefile (install): added test for directory
11093
11094 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11095
11096         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
11097         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
11098         * src/pic/ralloc.c (getRegPtr, getRegGpr),
11099         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
11100         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
11101         * as/mcs51/asexpr.c (term),
11102         * as/hc08/asexpr.c (term): fixed bug #887146
11103
11104 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11105
11106         * src/z80/gen.c (genMult): handle single byte result product
11107         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
11108         DUMMY_READ_VOLATILE (fixed bug #886367)
11109
11110 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
11111
11112         * support/regression/tests/libmullong.c: fixed logic, on little endian
11113         hosts we ended without a mullong_wrapper()
11114
11115 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11116
11117         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
11118         virus/worm forged address usage.
11119
11120 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
11121
11122         Fixed promotion, it should be done on AST level:
11123         * src/SDCCast.c (addCast): added promotion to int
11124         (decorateType): updated call to upCast()
11125         * src/SDCCicode.c (geniCodeLeftShift): removed call to
11126         usualUnaryConversions()
11127
11128 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
11129
11130         * support/regression/tests/literalop.c (mulWrapper): Added a
11131         wrapper to remove integer overflow warnings.
11132
11133         * support/regression/tests/float_trans.c: Made work on host.
11134
11135         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
11136         location of sz80.
11137
11138         * support/regression/generate-cases.py (main): Changed from inline
11139         to a main method.
11140
11141         * doc/Makefile (install): Changed to depth first to get rid of
11142         missing directory install warning.
11143
11144         * as/Makefile (install-doc): Made work on Mac.
11145
11146 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
11147
11148         * src/SDCCast.c: added an additional type flow in decorateType() of
11149         opposite direction, see feature request #860006; it's enabled at runtime
11150         by setting the environment variable SDCC_NEWTYPEFLOW
11151         * src/SDCCast.h: changed prototype of decorateType()
11152         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
11153         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
11154         'char' to 'int' can be omitted, if both operands are 'unsigned char';
11155         see feature request #877103
11156         * src/SDCCval.c: updated call of decorateType()
11157         (valBitwise): fixed bug #882876
11158         (valMinus): added promotion
11159         (valLogicAndOr): result is unsigned
11160         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
11161         * src/SDCCsymt.c (computeType),
11162         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
11163         must not cause an unsigned operation
11164         * src/pic/glue (pic14emitRegularMap),
11165         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
11166
11167 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
11168
11169         * src/pic/pcode.c (PCodeID): commented out left over debug code
11170
11171 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
11172
11173         * support/valdiag/tests/overflow.c: added shift tests
11174         * src/pic/device.c,
11175         * src/pic/gen.c,
11176         * src/pic/gen.h,
11177         * src/pic/glue.c,
11178         * src/pic/main.c,
11179         * src/pic/pcode.c,
11180         * src/pic/pcode.h,
11181         * src/pic/pcodepeep.c,
11182         * src/pic/pcoderegs.c,
11183         * src/pic/ralloc.c,
11184         * src/pic/ralloc.h: applied patch from Slade Rich;
11185         added support for multiple code pages and multiple RAM banks on the
11186         PIC 14 port. The ASM files now no longer simply assume all the
11187         code / RAM are in the same page / bank. This means the linker can
11188         safely allocate code/RAM of separate ASM files to different pages/banks.
11189         * doc/sdccman.lyx: added Slade's tips
11190         * src/mcs51/peeph.def: fixed bug #880768
11191
11192 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11193
11194         * src/hc08/ralloc.c (rematStr): fixed bug #879282
11195         * src/SDCCast.c (decorateType): fixed bug #880197
11196
11197 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
11198
11199         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
11200         getopt.h.
11201
11202         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
11203         strtof is not part of C89 and isn't included with Mac OS X.
11204
11205 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11206
11207         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
11208         shiftL2Left2Result): fixed bug #879326
11209         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
11210         (genMultOneByte): fixed bug in signed vs unsigned multiplication
11211         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
11212         address fetch for clr instruction
11213         * device/lib/hc08/_mulint.c: created optimized assembly version
11214         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
11215
11216 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
11217
11218         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
11219         proposed in FR #877103
11220
11221 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
11222
11223         * src/SDCCval.c (cheapestVal): added missing checks
11224         * src/SDCCicode.c (usualBinaryConversions): fixed condition
11225         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
11226
11227 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
11228
11229         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
11230         equal operands
11231
11232 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
11233
11234         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
11235         loaded with the linker search paths (-L arguments) and the libraries
11236         to be linked with the current source (-l arguments). Changes
11237         currently will affect only the pic16 port.
11238         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
11239         include path the port specific paths and port specific libraries,
11240         * gplink command now contains the $3 argument,
11241         * src/pic16/device.h,
11242         * src/pic16/device.c,: structure PIC_device is made public and
11243         renamed to PIC16_device, the same for variable Pics which is renamed
11244         to Pics16. Updated all references to them.
11245         * src/pic16/glue.c (pic16glue): corrected bug with code
11246         initialization which bypassed the variable initializations block.
11247
11248         * device/lib/pic16/Makefile.rules: removed --penable-stack from
11249         COMPILE_FLAGS and added the --nostdinc option
11250
11251 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11252
11253         * device/include/mc68hc908jb8.h: Register defs for another member
11254         of the hc08 family. Contributed by Bjorn Bringert - thanks!
11255
11256 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
11257
11258         Documenting changes from previous commits.
11259         * configure.in (version 1.56),
11260         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
11261         when generating output files to configure the pic16 library,
11262         but now I've commented it out, since gputils aren't installed in the
11263         SF compile farm, so library won't compile
11264
11265         * device/lib/Makefile.in (version 1.56): initially I've added in
11266         target 'all' the prerequestive 'model-pic16' so it compiled the
11267         pic16 library, but now I've commented it out for the same reasons
11268         above,
11269         * added targets 'model-pic16' and 'objects-pic16' to compile the
11270         library
11271         * added target 'port-specific-objects-pic16' to handle the
11272         generated libraries and copy them into the build/ directory
11273         * added target 'clean-intermediate-pic16' to clean intermediate
11274         files into pic16 directory
11275         * in target 'installdirs' added line to create directory pic16 in
11276         the installation path
11277
11278         * device/include/Makefile.in (version 1.11): in target 'install'
11279         added lines to copy all header files to installation path,
11280         * in target 'installdirs' added line create directory for pic16
11281         headers in the installation path
11282
11283 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
11284
11285         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
11286          a function call
11287
11288 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
11289
11290         * configure,
11291         * device/lib/configure.in,
11292         * device/lib/configure: fixed for autoconf 2.57
11293
11294 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11295
11296         * src/z80/main.c (_parseOptions): fixed the portmode= command line
11297         option so that it actually works. Made it specific to the z80, since
11298         the gbz80 doesn't have these kinds of I/O ports.
11299
11300 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11301
11302         * device/include/z180.h,
11303         * device/lib/_memcpy.c,
11304         * device/lib/_memmove.c,
11305         * device/lib/_mulint.c,
11306         * device/lib/ser_ir.c,
11307         * device/lib/ser_ir_cts_rts.c,
11308         * device/lib/_strcmp.c,
11309         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
11310         * src/z80/main.c (_process_pragma): add support for pragmas bank and
11311         portmode; added deprecation warning for bank= and protmode= forms.
11312         Also, guard against buffer overflow.
11313         * src/z80/gen.c (aopGet): generate better code for sfr banked read
11314
11315 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11316
11317         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
11318         changed interrupt vector table generation to only emit declared vectors.
11319         * device/include/Makefile.in: added missing backslash
11320         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
11321
11322 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
11323
11324         Mainly changes to support compilation of the device libraries
11325         * src/pic16/device.c: stack is allocated via symbol and not
11326         via literal number. The symbol is placed in the corresponding
11327         position of the data ram
11328         * (pic16_dump_section): relocatable and absolute uninitialized
11329         data are now emitted in sorted order to reduce section naming,
11330         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
11331         weren't marked as being in the access bank,
11332
11333 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
11334
11335         Added portion of GNU PIC Library under the directory
11336         device/include/pic16 and device/lib/pic16. These files
11337         contain the declarations of SFRs for the PIC18Fxx2 devices.
11338         The directory is initialized via configure from toplevel.
11339
11340 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
11341
11342         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
11343         the spilllocations to be compared correctly
11344
11345 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
11346
11347         * src/SDCCast.c (decorateType): fixed bug introduced today
11348
11349 2004-01-12  Borut Razem <borut.razem AT siol.net>
11350
11351         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
11352         doc/sdccman.lyx: upper case pragmas are deprecated
11353
11354 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
11355
11356         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
11357         in simpler and even better code
11358
11359 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
11360
11361         * src/SDCCicode.c (operandOperation): fixed bug #874819
11362         * src/SDCCast.c (decorateType): fixed
11363         char foo (unsigned long ul) { return ul > 0; }
11364
11365 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11366
11367         * doc/sdccman.lyx: Moved and added some sections, small changes
11368         all over. Telling LaTeX to be less strict with word spacing
11369         to better keep the right margin. Changed some notes about
11370         maintainance of the ports in section 3.2.1 - is it OK like this?
11371
11372 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
11373
11374         SDCC source changes:
11375         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
11376         convilong): modified to inform the pic16 port that builtin functions
11377         are external
11378
11379         PIC16 PORT specific changes:
11380         * src/pic16/device.c pic16_dump_equates() added,
11381         processor registers declared internally by the port are emitted in
11382         the translation as equates,
11383         * src/pic16/gen.c: inline code is passed unprocessed to the
11384         translation,
11385         * (pic16_popGetLit2): fnuction modified to take second operand as
11386         pCodeOp pointer and not as literal,
11387         * (popRegFromIdx): prefixed with pic16_,
11388         * (pic16_popCombine2): modified to receive already allocated pCode
11389         operands,
11390         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
11391         * (genFunction): initializes local stack frame and pushes on stack
11392         all the registers used by this function,
11393         * (genEndFunction): restores all registers from stack and restores
11394         stack frame,
11395         * src/pic16/glue.c (pic16emitRegularMap): various changes and
11396         improvements,
11397         * (pic16glue): changed the program startup sequence,
11398         * added new dbName code 'A' for functions placed in absolute section
11399         * src/pic16/main.c: added function attribute _naked,
11400         * added pragma 'code' to place a fnuction at an absolute address,
11401         * added command line arguments --debug-ralloc and --pcode-verbose,
11402         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
11403         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
11404         * (pic16_newpCodeOpLit2): modified to take the second operand as
11405         pCodeOp pointer,
11406         * (pic16_printpBlock): modified to emit each function in a separate
11407         section,
11408         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
11409         UPPER for immediate operands,
11410         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
11411         instruction,
11412         * src/pic16/peeph.def: all peepholes with movff are commented out,
11413         because there is a problem in the pcode peep optimizer,
11414         * src/pic16/ralloc.c: the register allocator can now reuse local
11415         function symbols for another function. This saves register usage.
11416         * src/pic16/ralloc.h: added flag isLocal in structure regs,
11417
11418         Added file src/pic16/NOTES with information about program writing on
11419         the current port version.
11420
11421 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11422
11423         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
11424         and peephole 252 (array access)
11425
11426 2004-01-09  Borut Razem <borut.razem AT siol.net>
11427
11428         * src/SDCCmain.c : fixed #872250: -l command line defined library
11429           files are scanned before standard library files
11430
11431 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11432
11433         * src/SDCCast.c (decorateType): fixed bug #874046
11434
11435 2004-01-09  Borut Razem <borut.razem AT siol.net>
11436
11437         * support/scripts/sdcc.nsi: remove previous installation
11438
11439 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11440
11441         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
11442         bytes for last interrupt vector (mcs51)
11443         * sdcc.spec: fixed typo
11444
11445 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11446
11447         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
11448         gen51Code): more efficient parameter receive for --model-large
11449         ("bug" #845294)
11450
11451 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11452
11453         * src/ds390/main.c,
11454         * src/z80/main.c: added missed needLinkerScript flags (more than
11455         one port structure defined in these file)
11456         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
11457         bug #795325
11458
11459 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
11460
11461         * src/SDCCmain.c: removed various references to DEFAULT_PORT
11462         * src/port.h: added flag needLinkerScript in port->linker
11463         structure to inform whether to create a .lnk file or not,
11464         * src/avr/main.c,
11465         * src/ds390/main.c,
11466         * src/hc08/main.c,
11467         * src/mcs51/main.c,
11468         * src/pic/main.c,
11469         * src/pic16/main.c,
11470         * src/xa51/main.c,
11471         * src/z80/main.c: changed appropriately to configure
11472         needLinkerScript flag
11473         * src/pic/gen.c,
11474         * src/pic16/gen.c (genAddrOf): fixed bug #863624
11475         * src/pic/glue.c: added variable udata_section_name to
11476         override default uninitialized data segment definition for
11477         devices only with SHAREBANK memory (reported from Erik Epetrich)
11478         * (pic14emitOverlay): modified to emit a commented overlay segment
11479         directive when no overlay data exist
11480         * (picglue): modified to emit uninitialized data segment
11481         according to udata_section_name
11482         * src/pic/main.c (_pic14_parseOptions): added command line
11483         options --udata-section-name=[name] to override default
11484         udata definition name
11485         * modified _linkCmd and _asmCmd to include compiler passed
11486         arguments via -W option
11487         * src/pic16/main.c: added $l in _asmCmd, changed extension for
11488         object file from '.rel' to '.o' in port->linker structure,
11489         changed size of fptr from 2 to 3 in port structure
11490
11491 2004-01-07  Borut Razem <borut.razem AT siol.net>
11492
11493         * support/scripts/sdcc.nsi: update PATH
11494         * support/scripts/sdcc.ico: craeted
11495
11496 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
11497
11498         * device/include/Makefile.in: fix install
11499         * doc/Makefile: fix install
11500
11501 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11502
11503         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
11504         in bug #860505
11505         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
11506         how the function variable allocation summary is displayed; also
11507         include information about variables allocated to the overlay
11508         segment
11509
11510 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11511
11512         * as/mcs51/lkmain.c: Help about -Y option
11513         * as/mcs51/lkarea.c: Fixed gcc warnings
11514
11515 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
11516
11517         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
11518         fixed warning
11519         * support/valdiag/tests/overflow.c: added
11520         * src/SDCCast.c (decorateType),
11521         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
11522         LEFT_OP (left shift)
11523
11524 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11525
11526         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
11527         (default behaviour).
11528
11529 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11530
11531         A python script to validate compiler diagnostic messages. It can be
11532         used to verify that sdcc complains about bad c source code and
11533         gives a good location of the error.
11534         * support/valdiag/Makefile,
11535         * support/valdiag/valdiag.py,
11536         * support/valdiag/tests/*
11537
11538 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11539
11540         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
11541         * src/SDCCsymt.c (newEnumType),
11542         * src/SDCCsymt.h
11543         * support/Util/SDCCerr.c,
11544         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
11545         enum related bugs.
11546         * support/regression/tests/enum.c: added test for enum values that
11547         require at least 2 bytes of storage.
11548
11549 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
11550
11551         * src/common.h: added ifndef/define/endif macros
11552         around the header file.
11553         Bug reported from Jesus Calvino-Fraga
11554
11555 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
11556
11557         * sdcc.spec: updated
11558         * device/include/Makefile.in: don't install CVS directories
11559         * device/lib/Makefile.in: added removal of CVS directories after install
11560         * doc/Makefile: fixed install, added local_icons
11561         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
11562         * src/mcs51/gen.c (genRightShift): fixed bug #870788
11563         * src/ds390/gen.c (genRightShift): fixed bug #870788
11564         * src/SDCCast.c (decorateType): fixed bug #870781
11565
11566 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
11567
11568         PIC16 port related changes:
11569         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
11570         added variable stackPos,
11571
11572         * gen.c: genCall, assignResultValue: added support for
11573         pushing/retrieving function parameters to/from stack,
11574         genFunction,genEndFunction: setup stack frame for the
11575         generated function,
11576         genAddrOf: will be changed according to bug 863624
11577
11578         * added files genutils.c and genutils.h which contain gen*
11579         debugged and optimised functions extracted from gen.c
11580
11581         * glue.c: added variable 'externs' which holds extern symbols,
11582         pic16emitRegularMap: is modified to properly handle relocatable
11583          symbols under the new scheme,
11584         pic16createInterruptVect: is modified
11585         pic16printPublics: is modified to emit 'global' assembler directives,
11586         added pic16_printExterns to print extern symbols,
11587         pic16glue: initializes stack/frame pointer in the beginning of
11588         the assembly output. Temporary hack, will be corrected later,
11589         because gplink yet does not support stack and SDCC does not
11590         yet support a type of crt0.o object to create the final binary.
11591
11592         * Removed many lines that contain 8051 legacy code.
11593         * The code is finally placed under a 'code' directive.
11594         * Added port specific options.
11595
11596         * _process_pragma: simplified since now we do not need *special*
11597         include file to define SFR registers. But a separate header
11598         will be needed. This will be developed later.
11599         * _pic16_parseOptions: added, parses port specific options:
11600         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
11601         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
11602         --preplace-udata-with=
11603
11604         * _pic16_setDefaultOptions: modified to initialize section names,
11605         but hack is temporarly out of order since it needs improvement.
11606         * _pic16_genAssemblerPreamble: configuration words are emitted by
11607         their address instead of their name. This part is incomplete and
11608         supports only the 18Fxx2 devices. Other devices will emit an error
11609         during assembly since they do not contain the same set of config
11610         registers
11611         * _pic16_genIVT: is modified,
11612
11613         * pcode.c: added definitions for some hardware registers that are needed
11614         for stack support
11615         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
11616         All PCI entries are updated. Now LFSR is supported.
11617         * Removed pic16_pciTRIS is mentioned by mdubuc in source
11618         * added pic16_newpCodeOpLit2 to support instructions with
11619         two literal arguments
11620         * pic16_pCode2str: corrected code that emits assembler instructions
11621         with two literal operands and those that have an access bit modifier
11622         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
11623         this fixes a bug which caused some labels to be lost, when an
11624         assembler directive was added, i.e. banksel,
11625         * pic16_FixRegisterBanking: improved logic that causes the insertion
11626         of bank switching,
11627         * InlineFunction: functions that are called once, are not any more
11628         inlined. This can be a port option in the future,
11629
11630         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
11631
11632         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
11633         hold the corresponding uninitialized symbols,
11634         * pic16_allocProcessorRegister: registers have explicit marked the
11635         accessBank field,
11636         * pic16_allocInternalRegister: registers are explicit marked as
11637         not used,
11638         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
11639         processing list, so bit registers were lost,
11640         *
11641
11642         * ralloc.h: added field 'accessBank' and original symbol operand
11643         in register definition,
11644         * removed the field isMapped from register definition,
11645
11646         ** Several functions have been removed from various sources:
11647         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
11648         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
11649         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
11650         pic16_assignRelocatableRegisters
11651
11652         ** others have been introduced:
11653         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
11654         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
11655
11656 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
11657
11658         * support/scripts/inc2h.pl: changed definition of BIT_AT
11659         to emit 'sbit at' instead of 'bit at'. This was a request.
11660
11661         PIC16 port related preliminary changes:
11662         * gen.c: prefixed function popRegFromString with
11663         pic16_ and all references to it corrected
11664         * pcode.c: all pic16_pc_* hardware registers prefixed
11665         with underscore (_),
11666         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
11667         * ralloc.c: newReg(): when register is REG_SFR then
11668         set address to rIdx,
11669         pic16_allocProcessorRegister(): marks register wasUsed=0
11670         pic16_writeUsedRegs(): added a call to assign processor
11671         registers via pic16_assignFixedRegisters
11672
11673 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11674
11675         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
11676         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
11677         variables in unused register banks.  Also the SSEG is placed
11678         wherever there is enough space for it, and IDATA can be anywhere
11679         in internal RAM.  For now compile using -Wl-Y[stack_size].
11680         The mem file is different for this option as well, since it
11681         makes no sense of talking about DSEG lenght.
11682
11683 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
11684
11685         * src/SDCClrange.c: fixed bug 869095 that caused segfault
11686         in certain cases, e.g. when ROM assignment, patch provided
11687         from Albert den Haan.
11688
11689 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
11690
11691         Many signedness and type propagation fixes:
11692         * src/SDCCicode.c: made geniCodeCast() static
11693         replaced SPEC_ by IS_ (cosmetic)
11694         (operandOperation): fixed div and mod operation
11695         (usualBinaryConversions): added support for promotion of char
11696         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
11697         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
11698         (geniCodeAdd): an array index will stay unsigned, even if promoted
11699         from char to int
11700         (geniCodeArray): ditto
11701         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
11702         * src/SDCCsymt.c (computeType): added more support for char;
11703         promotion of char is selectable by promoteCharToInt, fixed signedness
11704         for all cases
11705         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
11706         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
11707         * src/SDCCval (val*): replaced signedness calculation by
11708         computeType()
11709         rearranged if-branches (cosmetic)
11710         (valShift): added warning W_SHIFT_CHANGED
11711         (valCompare): fixed problem with different types
11712         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
11713         * support/regression/tests/literalop.c: added many cases
11714         * support/regression/tests/ast_constant_folding.c: changed finally to
11715         'unsigned int'
11716         * .version: new year, new version: 2.3.7
11717         * src/SDCCmain.c (main): applied patch #866468
11718         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
11719         provided by Scott Bronson
11720         * doc/sdccman.lyx: updated documentation for sdcdb
11721         updated and added chapter tips
11722
11723 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11724
11725         * src/SDCCsymt.h: missing from yesterday's commits
11726
11727 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11728
11729         * src/SDCC.y (struct_or_union_specifier),
11730         * support/Util/SDCCerr.c,
11731         * support/Util/SDCCerr.h: verify that struct & union tags are used
11732         as declared.
11733
11734 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11735
11736         * src/SDCCglobl.h: missing from yesterday's commits
11737
11738 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11739
11740         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
11741         sft_attributes, struct_declaration, parameter_declaration,
11742         type_name, start_block, declaration_list),
11743         * src/SDCC.lex (check_type): support redefinition of typedef names
11744
11745 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11746
11747         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
11748         aligned xdata arrays. Erik helped me with the if clause.
11749
11750 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11751
11752         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
11753         warning
11754
11755 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11756
11757         * src/SDCCast.h,
11758         * src/SDCCast.c (newAst_),
11759         * src/SDCCicode.h,
11760         * src/SDCCicode.c (ast2iCode, newiCode),
11761         * src/SDCCglobl.h,
11762         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
11763         expr, statement, expression_statement, selection_statement,
11764         iteration_statement, expr_opt, jump_statement): foundation for tracking
11765         sequence points
11766         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
11767         point code too)
11768
11769 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11770
11771         * support/Util/SDCCerr.c,
11772         * src/SDCCast.h,
11773         * src/SDCCast.c (createCase, createDefault, decorateType),
11774         * src/SDCClabel.c (labelUnreach),
11775         * src/SDCC.y (labeled_statement, jump_statement): More improvements
11776         to error messages.
11777         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
11778         (with thanks to Stas Sergeev)
11779         * device/include/time.h,
11780         * device/lib/time.c (CheckTime): suppress unreachable code warning
11781
11782 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11783
11784         * src/SDCCast.c (createIvalCharPtr),
11785         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
11786         bug #753752)
11787         * support/regression/tests/nullstring.c: tests for these two bugs
11788
11789 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11790
11791         * support/Util/SDCCerr.h,
11792         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
11793         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
11794         about storage class and 'at' used inside struct or union
11795         * src/SDCCBBlock.c (iCodeFromeBBlock),
11796         * src/SDCCcse.c (ifxOptimize),
11797         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
11798         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
11799         printIval, emitStaticSeg, emitOverlay),
11800         * src/SDCClabel.c (deleteIfx),
11801         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
11802         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
11803         gatherAutoInit, processParms),
11804         * support/Util/SDCCerr.h,
11805         * support/Util/SDCCerr.c (werrorfl): Support for better error location
11806         reporting for post-parse errors.
11807
11808 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11809
11810         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
11811         implicit casts via union; they don't work on big endian systems
11812         (possible fix for bug #861138)
11813
11814 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11815
11816         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
11817         * src/mcs51/main.c: fixed the fix for bug #737001
11818
11819 2003-12-15  Borut Razem <borut.razem AT siol.net>
11820
11821         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
11822
11823 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11824
11825         * support/makebin/makebin.c: put output in binary mode
11826
11827 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11828
11829         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
11830         xdata and data memory on startup. Set the environment variable
11831         SDCC_NOGENRAMCLEAR to disable this.
11832         * src/mcs51/peephole.def,
11833         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
11834         (allows non-interrupt and interrupt code to safely compete for a resource
11835         without the non-interrupt code having to disable interrupts)
11836
11837 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11838
11839         * src/SDCCicode.c (geniCodeAdd),
11840         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
11841         with valFromType if type might be a pointer and host is big endian).
11842         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
11843         types, not just integer types.
11844         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
11845         multiply defined with mismatching "at" address.
11846
11847 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11848
11849         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
11850         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
11851         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
11852         with embedded nulls (fixed bug #753752)
11853
11854 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11855
11856         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
11857         Apparently this did not see much testing (endless loop)
11858
11859 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11860
11861         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
11862
11863 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11864
11865         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
11866         gracefully handle NULL memmap pointers
11867
11868 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11869
11870         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
11871         instead of deleting the iCode when an operand is volatile
11872         * src/z80/gen.c (genDummyRead),
11873         * src/mcs51/gen.c (genDummyRead),
11874         * src/ds390/gen.c (genDummyRead),
11875         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
11876         not just IC_RIGHT
11877         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
11878         * src/SDCC.y: fixed bug #850420
11879
11880 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11881
11882         Applied z80 i/o port patch from Peter Townson and fixed some operators
11883         to better handle operands in A register.
11884         * device/include/z180.h
11885         * src/SDCC.y
11886         * src/SDCCglue.c
11887         * src/z80/gen.c
11888         * src/z80/gen.h
11889         * src/z80/main.c
11890         * src/z80/peeph-z80.def
11891         * src/z80/peeph.def
11892         * src/z80/z80.h
11893
11894 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11895
11896         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
11897
11898 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11899
11900         * device/lib/hc08/_mullong.c: Removed extra #endif
11901
11902 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11903
11904         * sim/ucsim/hc08.src/inst.cc,
11905         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
11906         carries from x to h
11907         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
11908         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
11909         * device/include/stdarg.h: fixed varargs for hc08
11910         * device/lib/Makefile.in,
11911         * device/lib/hc08/Makefile,
11912         * device/lib/hc08/_mulint.c,
11913         * device/lib/hc08/_mullong.c: fixed some endian problems
11914
11915 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11916
11917         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
11918         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
11919         * device/lib/_gptrget.c,
11920         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
11921
11922 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11923
11924         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
11925         * src/SDCCast.c (astErrors): fixed bug #846007
11926         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
11927
11928 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11929
11930         * src/SDCCast.c (decorateType): disabled a transformation I added in
11931         revision 1.188 (access to fields of a structure at an absolute address);
11932         it breaks with bitfields, extern declarations, and gcse analysis.
11933         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
11934         could be assigned through a pointer, so don't complain.
11935         * src/SDCCast.c (astErrors),
11936         * src/SDCCast.h,
11937         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
11938
11939 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
11940
11941         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
11942         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
11943         output of __config directives, since gpasm now supports them
11944         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
11945         pre-processor macro, i.e. -DMCU=p18f452
11946         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
11947         and modified to handle 'cast' icode similarly to '=' icode
11948         * src/pic16/device.h (typedef struct PIC_device): added field
11949         'extMIface' to indicate that chip has external memory interface
11950         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
11951         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
11952         18F8720
11953
11954 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11955
11956         * src/SDCC.y (pointer): fixed bug #846006
11957         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
11958         * src/SDCCast.c (decorateType): fixed bug #846009
11959         * src/ds390/peeph.def,
11960         * src/ds390/gen.c (genAnd, genOr),
11961         * src/mcs51/peeph.def,
11962         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
11963
11964 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11965
11966         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
11967         * src/SDCCdflow.c
11968         * src/SDCCcse.c
11969         * src/SDCCcse.h
11970         * src/SDCCBBlock.h
11971         * src/SDCCBBlock.c
11972
11973 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
11974
11975         fixed bug #845089
11976         * src/SDCCbitv.h,
11977         * src/SDCCbitv.c: added function to free a bitvector
11978         * src/SDCClrange.h,
11979         * src/SDCClrange.c: added function to recompute the liveranges
11980         * src/avr/ralloc.c,
11981         * src/ds390/ralloc.c,
11982         * src/hc08/ralloc.c,
11983         * src/mcs51/ralloc.c,
11984         * src/pic/ralloc.c,
11985         * src/pic16/ralloc.c,
11986         * src/xa51/ralloc.c,
11987         * src/z80/ralloc.c: recompute the liveranges after register packing
11988
11989 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
11990
11991         * src/SDCCloop.c (newInduction): fixed bug #845630
11992
11993 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11994
11995         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
11996         inadvertantly left behind from my 2003-11-12 change
11997
11998 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11999
12000         Updated headers I neglected to commit yesterday.
12001         * src/SDCClrange.h,
12002         * src/SDCCicode.h
12003
12004 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12005
12006         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
12007         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
12008         * src/SDCCopt.c (eBBlockFromiCode),
12009         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
12010         the creation of the key hash table from the sequencing so it can be used
12011         earlier (for some GCSE bug fixes still pending)
12012
12013 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12014
12015         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
12016         * support/regression/tests/addsub.c: testing genPlus shortcut
12017
12018 2003-11-15  Borut Razem <borut.razem AT siol.net>
12019
12020         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
12021
12022 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12023
12024         * src/SDCCcse.c (cseBBlock): fixed bug #527779
12025         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
12026         ordering is immaterial.
12027         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
12028
12029 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12030
12031         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
12032         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
12033         (SIGSEV) of bug #840381
12034         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
12035         unlink new file before rename if new and old filenames are the same)
12036
12037 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12038
12039         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
12040         uninitialized variables) for the mcs51. Set environment variable
12041         SDCC_GENRAMCLEAR to test.
12042         xdata initialization slightly shorter
12043
12044 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12045
12046         * src/SDCCsymt.h,
12047         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
12048         #838241 & 780691 (basicly the same bug)
12049         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
12050         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
12051
12052 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
12053
12054         * src/SDCCmain.c (linkEdit): "fix" #834252
12055
12056 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12057
12058         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
12059         * src/SDCCast.h,
12060         * src/SDCC.y: fixed bug #819403
12061
12062 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12063
12064         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
12065         the reentrant attribute.
12066         * src/hc08/gen.c (genPackBits): added missing stack readjustment
12067         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
12068         simulation
12069         * src/SDCCast.c (decorateType): fixed bug with storage class not being
12070         updated during pointer dereference; f.e. ~(((char *)1)*) was being
12071         erroneously reduced to a literal.
12072         * src/hc08/ralloc.c (packRegisters, rematStr),
12073         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
12074         some cases
12075
12076 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12077
12078         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
12079         * doc/sdccman.lyx: changed from 'article' to 'book'
12080         * doc/Makefile: readded test_suite_spec and cdbfileformat
12081
12082 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
12083
12084         * device/include/stdlib.h: include malloc.h to comply with ANSI
12085         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
12086
12087 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12088
12089         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
12090         * doc/clean.mk: also remove *.out files
12091         * doc/sdccman.lyx: some additions, larger top/bottom margins
12092
12093 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12094
12095         * src/SDCC.y: fixed bug #837365
12096         * support/regression/tests/bitopcse.c
12097         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
12098         a symbol (might be valop instead)
12099         * device/lib/Makefile.in: added errno.c to HC08SOURCES
12100         * device/lib/clean.mk: added hc08 to the cleaning list
12101
12102 2003-11-04  Borut Razem <borut.razem AT siol.net>
12103
12104         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
12105           made 2003-11-04
12106         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
12107           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
12108           malloc is declared in standard stdlib.h
12109
12110 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12111
12112         * device/lib/hc08/Makefile: need to clean .rel not .o files
12113         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
12114
12115 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12116
12117         * src/port.h,
12118         * src/hc08/main.c,
12119         * src/mcs51/main.c,
12120         * src/ds390/main.c,
12121         * src/z80/main.c,
12122         * src/avr/main.c,
12123         * src/pic/main.c,
12124         * src/pic16/main.c,
12125         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
12126         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
12127         tests (which uses the port's oclsExpense function)
12128         * src/SDCC.y,
12129         * src/SDCCast.c,
12130         * src/SDCCicode.c,
12131         * src/hc08/gen.c,
12132         * src/ds390/gen.c,
12133         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
12134
12135 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12136
12137         * src/SDCCcse.c (ifxOptimize),
12138         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
12139         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
12140         deleting the IFX iCode.
12141         * src/hc08/ralloc.c: reduced unneeded slocs
12142         * src/hc08/gen.c: fixed bug in asmopToBoolean
12143
12144 2003-11-04  Borut Razem <borut.razem AT siol.net>
12145
12146         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
12147           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
12148           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
12149           transferred to configure
12150
12151 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
12152
12153         Use headers defined in the C[++] standards:
12154         * sim/ucsim/gui.src/serio.src/fileio.cc
12155         * sim/ucsim/gui.src/serio.src/frontend.cc
12156         * sim/ucsim/gui.src/serio.src/main.cc
12157         * sim/ucsim/gui.src/serio.src/posix_signal.cc
12158         * support/Util/NewAlloc.c
12159         * as/hc08/lklibr.c
12160         * as/mcs51/lklibr.c
12161         * as/z80/aslist.c
12162         * as/z80/assym.c
12163
12164 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12165
12166         * Added MSVC projects for hc08 assembler and linker:
12167         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
12168         /as/hc08/link_hc08.dsp
12169
12170 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
12171
12172         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
12173
12174 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
12175
12176         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
12177
12178 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12179
12180         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
12181
12182 2003-10-31  Borut Razem <borut.razem AT siol.net>
12183
12184         * support/cpp2/cpplib.h,
12185           support/cpp2/cpplib.c,
12186           support/cpp2/cpplex.c,
12187           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
12188           to switch _asm block preprocessing on / off. Default is
12189           #pragma preproc_asm +
12190
12191 2003-10-31  Borut Razem <borut.razem AT siol.net>
12192
12193         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
12194           when outputting comment blocks (when executed with -C option) and
12195           _asm (SDCPP specific) blocks
12196
12197 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12198
12199         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
12200
12201 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
12202
12203         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
12204
12205 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
12206
12207         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
12208         * src/SDCCast.c (decorateType): fixed bug #832664
12209
12210 2003-10-31  Borut Razem <borut.razem AT siol.net>
12211
12212         * support/cpp2/cpplex.c: fixed for SDCPP:
12213           comments(when executed with -C option) and _asm blocks
12214           were included even if they where in skipped #if block.
12215           Applied solution from GCC cpp 3.3.2
12216
12217 2003-10-31  Borut Razem <borut.razem AT siol.net>
12218
12219         * src/SDCC.lex: sdcc now understands both formats:
12220           '# <line_number> <file_name>' and
12221           '#line <line_number> <file_name>'
12222         * support/cpp2/cppmain.c: sdcpp now generates the standard
12223           '# <line_number> <file_name>' instead of former
12224           '#line <line_number> <file_name>'
12225
12226 2003-10-30  Borut Razem <borut.razem AT siol.net>
12227
12228         * support/cpp2/cpphash.h,
12229         * support/cpp2/cpplib.h
12230         * support/cpp2/cpplex.c,
12231         * support/cpp2/cppmain.c,
12232         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
12233
12234 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12235
12236         Fixed a number of problems revealed by bug #827883.
12237         * src/SDCCloop.c (loopInvariants): Spill location of the
12238         result operand should be recomputed if extracted from
12239         a loop. Also, don't extract assignments of an iTemp
12240         from a literal.
12241         * src/SDCCast.c (isConformingBody): loop reversal should
12242         not occur if the control variable is involved with a
12243         relational operator.
12244
12245 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
12246
12247         * .version: bumped to 2.3.6 to reflect the big improvements
12248         made by Erik and Klaus. Thanks!
12249
12250 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
12251
12252         Replaced the livrange code.
12253         * src/SDCClrange.c: added new LR code
12254         * src/SDCCloop.c,
12255         * src/SDCCBBlock.h: removed remainig parts from old LR code
12256         * src/ds390/ralloc.c,
12257         * src/ds390/gen.c: minor fixes to make it work with new code
12258
12259 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12260
12261         * as/hc08/asm.h,
12262         * as/hc08/lkrloc.c,
12263         * src/hc08/gen.c,
12264         * src/hc08/ralloc.c: Fix various warnings related to the hc08
12265         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
12266         (tweaked fix for bug #818696)
12267
12268 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12269
12270         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
12271
12272 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12273
12274         * src/SDCCmain.c,
12275         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
12276         * src/mcs51/gen.c (gencjneshort),
12277         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
12278         more efficient (per Scott Bronson's suggestion)
12279
12280 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12281
12282         Extended the semantics of the critical keyword to include
12283         individual statements. See RFE #827755 and #799831
12284         * src/SDCC.y
12285         * src/SDCCicode.c
12286         * src/SDCCopt.c
12287         * src/SDCCast.c
12288         * support/Util/SDCCerr.c
12289         * support/Util/SDCCerr.h
12290         * src/mcs51/gen.c
12291         * src/ds390/gen.c
12292         * src/hc08/gen.c
12293
12294 2003-10-19  Borut Razem <borut.razem AT siol.net>
12295
12296         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
12297
12298 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12299
12300         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
12301         Fixed bug #818696
12302         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
12303         and predecrement operand is displayed
12304
12305 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
12306
12307         * src/SDCCval.c (valMinus): fixed bug #826041
12308
12309 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12310
12311         Some hc08 related updates that I missed earlier
12312         * sim/ucsim/stypes.h
12313         * support/regression/ports/hc08/spec.mk
12314
12315 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12316
12317         New target "hc08" for the Motorola 68hc08 family of micros
12318
12319         * configure
12320         * configure.in
12321         * Makefile
12322         * src/hc08/*
12323         * src/SDCCmain.c
12324         * src/port.h
12325         * sim/ucsim/hc08.src/*
12326         * sim/ucsim/configure.in
12327         * src/ucsim/configure
12328         * sim/ucsim/packages_in.mk
12329         * as/hc08/*
12330         * as/Makefile
12331         * device/include/mc68hc908qy.h
12332         * device/lib/hc08/*
12333         * device/lib/Makefile.in
12334         * support/regression/ports/hc08/*
12335         * support/regression/Makefile
12336
12337 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12338
12339         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
12340         regression test
12341         * src/ds390/gen.c (genCast): fixed bug #821957
12342
12343 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
12344
12345         * device/lib/logf.c: "fixed" overlay bug
12346         * support/regression/ports/host/spec.mk: added m library
12347         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
12348         * support/regression/tests/float_trans: added (for Eric)
12349
12350 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
12351
12352         * src/mcs51/gen.c (genCpl): fixed bug
12353         http://sf.net/mailarchive/message.php?msg_id=6263915
12354
12355 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
12356
12357         * src/SDCCast.c (decorateType): added extended constant folding
12358         * src/SDCCsymt.c (computeType): cleanup
12359         * src/SDCCval.c (valShift): minor optimization
12360         * support/regression/tests/ast_constant_folding.c: added
12361
12362 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12363
12364         * src/SDCCmain.c: removed some unintended changes
12365
12366 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12367
12368         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
12369         * src/z80/gen.c: fixed part of bug #817589
12370         * src/SDCCsymt.c (checkFunction): fixed bug #817895
12371
12372 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
12373
12374         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
12375         * src/SDCCcflow.c
12376         * src/SDCCcse.c
12377         * src/SDCCdflow.c
12378         * src/SDCClabel.c
12379         * src/SDCClrange.c
12380         * src/SDCCmem.c
12381         * src/SDCCopt.c
12382         * src/SDCCpeeph.c
12383         * src/SDCCset.c
12384         * src/avr/ralloc.c
12385         * src/ds390/ralloc.c
12386         * src/izt/ralloc.c
12387         * src/mcs51/ralloc.c
12388         * src/pic/ralloc.c
12389         * src/pic16/ralloc.c
12390         * src/xa51/ralloc.c
12391         * src/z80/ralloc.c
12392         * src/z80/gen.c: removed unused label "release:"
12393
12394 2003-10-06  Borut Razem <borut.razem AT siol.net>
12395
12396         * src/SDCC.lex: removed definition of unused variables
12397           save_optimize and save_options
12398
12399 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
12400
12401         * clean.mk: removed '=' in "-maxdepth=1"
12402         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
12403         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
12404
12405 2003-10-06  Borut Razem <borut.razem AT siol.net>
12406
12407         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
12408           my_unput() replaced by unput()
12409
12410 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
12411
12412         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
12413         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
12414         type-punned pointer will break strict-aliasing rules"
12415         Old LR behaviour is again default; Klaus' LR can be choosen by
12416         defining the environment variable LRKLAUS
12417         * src/SDCCBBlock.h
12418         * src/SDCCloop.c
12419         * src/SDCClrange.c
12420         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
12421         * clean.mk: fixed removal of files in bin/CVS/
12422         * device/lib/clean.mk: fixed removal of directories small and large
12423         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
12424         * src/SDCCicode.c,
12425         * src/SDCCval.c: removed superflous test for pedantic
12426
12427 2003-10-05  Borut Razem <borut.razem AT siol.net>
12428
12429         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
12430           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
12431           message "unmatched #pragma SAVE and #pragma RESTORE"
12432
12433 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12434
12435         * doc/sdccman.lyx: various additions and updates (interrupts, inline
12436           assembly, critical functions, atomic, nojtbound)
12437
12438 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
12439
12440         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
12441         * src/SDCCBBlock.h
12442         * src/SDCCloop.c
12443         * src/SDCCloop.h
12444         * src/SDCClrange.c
12445
12446 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12447
12448         * src/z80/gen.h,
12449         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
12450         * src/mcs51/gen.h
12451         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
12452         * src/ds390/gen.h
12453         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
12454         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
12455         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
12456
12457 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12458
12459         * src/z80/gen.c (genRet): fixed bug #524753
12460         * src/z80/gen.c (genCast): fixed internal error on cast from
12461         pointer to long
12462         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
12463         fix for bug #477835 to the z80
12464         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
12465         for tracking iCodes in the peephole optimizer for z80
12466
12467 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12468
12469         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
12470         the other part of bug #814548
12471         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
12472
12473 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
12474
12475         * src/SDCCcse.c: fixed part of bug #814548
12476
12477 2003-09-28  Borut Razem <borut.razem AT siol.net>
12478
12479         * src/asm.c: rewrite of printILine() to use temporary file instead
12480           a pipe
12481         * src/xa51/main.c: commented out declaration of int rewinds
12482
12483 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12484
12485         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
12486
12487 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12488
12489         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
12490         * src/asm.c (printILine): Fixed bug #811015
12491
12492 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12493
12494         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
12495         freeing.
12496
12497 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12498
12499         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
12500         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
12501         to correctly handle general case of AOP_PAIRPTR
12502         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
12503
12504 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12505
12506         * src/mcs51/ralloc.c (fillGaps),
12507         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
12508         register positioning bug)
12509
12510 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
12511
12512         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
12513
12514 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12515
12516         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
12517         genCodePointerGet, genGenPointerGet, genFarPointerSet,
12518         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
12519         (ralloc doesn't intentionally do this now, but perhaps later)
12520         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
12521         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
12522         register positioning bugs (Fixed bug #762602 and #795325)
12523         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
12524         (Fixed bug #808779)
12525         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
12526         lines that --i-code-in-asm generates
12527
12528 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12529
12530         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
12531         trying to fclose a FILE* that was already closed.
12532
12533 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12534
12535         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
12536         of const struct should be treated as if const themselves)
12537
12538 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
12539
12540         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
12541
12542 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12543
12544         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
12545         Unix (/n) and DOS (/r/n) line terminations.
12546
12547 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12548
12549         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
12550         bug #613775
12551
12552 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12553
12554         * src/mcs51/gen.c (genFunction, genEndFunction),
12555         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
12556         and restore of EA so that stack offsets to parameters are
12557         correct when using both critical and reentrant/stack-auto.
12558         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
12559         size (can be triggered in error if sloc is shared between
12560         different sized objects)
12561         * device/include/float.h: fixed macros to explicitly use
12562         unsigned long where needed
12563
12564 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
12565
12566         Feature req. 799831: added code to allow nesting of critical functions
12567         * src/mcs51/gen.c (genFunction, genEndFunction)
12568         * src/ds390/gen.c (genFunction, genEndFunction)
12569
12570 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12571
12572         * src/SDCCsymt.c (sclsFromPtr),
12573         * src/SDCCsymt.h,
12574         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
12575         support for standard C idiom of memory mapped variables; for
12576         example, *((xdata int*)0x1234) = 1 is now internally equivalent
12577         to xdata int at 0x1234 tempvar = 1.
12578         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
12579         provided by Akiya ISHIDA
12580
12581 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
12582
12583         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
12584         * src/SDCCval.c (constVal): added reduction from int to char
12585         * src/SDCCval.c (valMult, valDiv): fixed sign handling
12586         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
12587         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
12588         to ignore the sign
12589         * support/regression/tests/shifts.c: fixed
12590
12591 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12592
12593         * src/z80/gen.c (genXor): Fixed bug #805445
12594
12595 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12596
12597         Fixed bug #621531 (const & volatile confusion in the type chain).
12598         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
12599         refer to the const or volatile state of the pointer itself.
12600
12601         * src/SDCCast.c
12602         * src/SDCCglue.c
12603         * src/SDCCicode.c
12604         * src/SDCCsymt.c
12605         * src/SDCCval.c
12606         * src/SDCC.y
12607         * src/SDCCsymt.h
12608         * src/pic/gen.c
12609         * src/pic/ralloc.c
12610         * src/pic16/gen.c
12611         * src/pic16/ralloc.c
12612         * support/regression/tests/const.c
12613
12614 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12615
12616         When checking for duplicated modules, use absolute paths
12617         instead of relative paths.  Files changed:
12618
12619         * as/mcs51/lklib.c
12620         * link/z80/lklib.c
12621
12622 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12623
12624         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
12625
12626 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12627
12628         * device/include/string.h: added size_t typedef, changed
12629         prototypes to use size_t, eliminated separate reentrant and
12630         non-reentrant declarations, added _memmove declaration
12631         * device/lib/_memcpy.c: changed to use size_t instead of int,
12632         changed /4 to >>2 to avoid division library call
12633         * device/lib/_memcmp.c,
12634         * device/lib/_memset.c,
12635         * device/lib/_strncat.c,
12636         * device/lib/_strncpy.c,
12637         * device/lib/_strncmp.c: changed to use size_t instead of int
12638         * device/lib/_memmove.c: new file (fixed bug #772294)
12639         * device/lib/Makefile.in: added _memmove.c
12640         * device/lib/z80/asm_strings.s: fixed bug #772290
12641         * support/regression/tests/bitfields.c: attempt to fix host assertion
12642         failure on amd64-unknown-linux2.2
12643
12644 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12645
12646         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
12647         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
12648         * as/z80/asmain.c (main): fixed bug #801766
12649
12650 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
12651
12652         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
12653         compilers
12654
12655 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12656
12657         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
12658         reported in bug #800609
12659
12660 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
12661
12662         * Top header beautifications in src/pic16 directory:
12663           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
12664           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
12665           pcoderegs.h, ralloc.c, ralloc.h
12666         * main.c: added top header and GPL license notice
12667         * pcode.c: fixed the if-conditional warning
12668
12669 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
12670
12671         * device/lib/_mullong.c: replaced int by short for gcc
12672
12673 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12674
12675         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
12676         and JUMPTABLE iCodes properly now (worked by accident before)
12677         * src/mcs51/gen.c (leftRightUseAcc),
12678         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
12679         iCode properly now. Use getSize instead of nRegs since a & b
12680         aren't part of the nRegs tally.
12681
12682 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
12683
12684         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
12685         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
12686           before instructions that use the _STATUS register
12687
12688 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
12689
12690         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
12691         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
12692         fetching of the pointer
12693         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
12694         copied from genNearPointerSet()
12695         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
12696         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
12697         If they pop r0/r1 they must be called in the opposite order than aopOp().
12698         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
12699         (resp. --stack-auto), prepared for --xstack
12700
12701 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12702
12703         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
12704
12705 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
12706
12707         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
12708         these ports have their own __sdcc_external_start()
12709
12710 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
12711
12712         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
12713         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
12714         type for bits was changed. It resulted in bit variables becoming
12715         global, which is not permitted in PIC 14 assembly output.
12716
12717 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12718
12719         * doc/sdccman.lyx: various additions and updates. Rearranged sections
12720
12721 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12722
12723         Z80 and MCS51 linkers complaint if a public symbol is defined
12724         in more than one library module:
12725
12726         * as/mcs51/lklib.c
12727         * link/z80/lklib.c
12728         * as/mcs51/Makefile.in
12729
12730 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12731
12732         A few small changes that speed up the peephole optimizer.
12733
12734         * src/SDCCpeeph.c
12735
12736 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12737
12738         Try to make the peephole optimizer smarter by maintaining
12739         an association between the assembly source code and the
12740         iCodes that originated them. Put this information to use
12741         with a new peephole rule condition "notVolatile" so that
12742         the rules can be aggressive yet still safe.
12743
12744         * src/SDCCpeeph.c
12745         * src/SDCCpeeph.h
12746         * src/mcs51/gen.c
12747         * src/mcs51/peeph.def
12748
12749 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12750
12751         Fixed bug #741761
12752
12753         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
12754         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
12755         if the left or right operand symbols have the accuse flag set.
12756
12757 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12758
12759         Changed the type of the result of the ! (NOT) operator to char;
12760         previously it returned the same type as the source. This allows
12761         us to eliminate all the genFloatNot functions (all of its target
12762         implementations were very buggy) since !float can use the same
12763         code as !long now.
12764
12765         * src/SDCCicode.c (ast2iCode): ! returns char
12766         * src/mcs51/gen.c (genNot, genNotFloat),
12767         * src/ds390/gen.c (genNot, genNotFloat),
12768         * src/z80/gen.c (genNot, genNotFloat),
12769         * src/pic/gen.c (genNot, genNotFloat),
12770         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
12771
12772 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
12773
12774         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
12775         1. Interrupt would not compile properly. Ensure PCLATH register is saved
12776            during interrupts. Ensure WSAVE is located at a shared bank address.
12777         2. Fixed page selection in some places
12778         3. Fixed BTFSS/C to where necessary use registers directly and not simply
12779            the registers name strings.
12780         4. Fixed "signed / unsigned compare" compiler warnings.
12781         5. The PIC port manages its own allocation of the general purpose
12782            registers, but makes no attempt to reuse them. As a result when
12783            compiling it soon runs out of general purpose registers. Some
12784            additional code was added to the files pcode.c and device.c to walk
12785            through the function call tree and rename the registers so that they
12786            get reused.
12787
12788         * src/pic/device.c
12789         * src/pic/gen.c
12790         * src/pic/glue.c
12791         * src/pic/pcode.c
12792         * src/pic/pcode.h
12793         * src/pic/ralloc.c
12794         * src/pic/ralloc.h
12795         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
12796         genPlus() & genMinus() when the result is the same as left or right
12797
12798 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12799
12800         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
12801
12802 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12803
12804         Made bitfield a distinct type from bit so that bitfields
12805         convert as per ANSI C and bits retain their traditional
12806         boolean style behaviour. Implemented bitfield support in
12807         the z80 port.
12808
12809         * src/SDCCsymt.h,
12810         * src/SDCCsymt.c,
12811         * src/SDCCast.c,
12812         * src/cdbFile.c,
12813         * src/mcs51/gen.c,
12814         * src/ds390/gen.c: bit v bitfield split
12815         * src/z80/gen.c: New support for bitfields
12816         * support/regression/tests/bitfields.c: reenabled z80,
12817         added more tests
12818
12819 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12820
12821         Rules 246.x, 247.x relate to bitfields, the others speed up
12822         access to xdata mapped I/O devices.
12823
12824         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
12825
12826 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12827
12828         Cleaned up genPackBits and genUnpackBits and added two helper
12829         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
12830         for literal assignments in genPackBits (thanks to Frieder for
12831         reminding me).
12832
12833         * src/mcs51/gen.c
12834         * src/ds390/gen.c
12835
12836 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12837
12838         Fixed bug #748310 (pointer to function type mishandled when the
12839         function name is omitted). Also fixed a SIGSEGV when a function
12840         attribute (reentrant, etc) is used on a non-function or on a
12841         function but misplaced before the parameter list.
12842
12843         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
12844         bug #748310
12845         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
12846         * support/Util/SDCCerr.h,
12847         * support/Util/SDCCerr.c: Added func attr misuse error msg
12848
12849 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
12850
12851         Fixed bug #787649 by anonymous
12852         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
12853         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
12854
12855 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12856
12857         Fixed numerous bitfield problems.
12858
12859         * src/SDCC.y: More bitfield related error checking
12860         * src/SDCCsymt.h,
12861         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
12862         * support/Util/SDCCerr.h,
12863         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
12864         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
12865         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
12866         * support/regression/tests/bitfields.c: tests added
12867
12868 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12869
12870         Made the constant following the "interrupt" keyword optional. If
12871         omitted, the function will not automatically be given an entry
12872         in the interrupt vector table (similar to #pragma NOIV, but
12873         less syntacticly kludgy). The interrupt number is also now
12874         range checked. Also fixed a bug in the high order bit example
12875         in the manual.
12876
12877         * src/SDCC.y
12878         * src/SDCCmem.c
12879         * src/SDCCglue.c
12880         * src/SDCCsymt.h
12881         * support/Util/SDCCerr.c
12882         * support/Util/SDCCerr.h
12883         * doc/sdccman.lyx
12884
12885 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
12886
12887         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
12888         * src/SDCCicode.c (operandOperation): rewritten some ops
12889         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
12890         * src/SDCCsymt.c (computeType): literals are handled the same way as any
12891         other type
12892         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
12893         be re-activated by defining REDUCE_LITERALS)
12894         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
12895         unsigned, but are signed by default
12896         * src/SDCCval.c (constVal): rearranged
12897         * src/SDCCval.c (valMod): preliminary fix
12898         * src/SDCCval.c (valCastLiteral): use TYPE_* types
12899         * support/regression/literalop.c: added, work in progress
12900
12901 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12902
12903         Generate warnings for useless declarations like "char data;"
12904         that don't do what new users expect.
12905
12906         * src/SDCC.y
12907         * support/Util/SDCCerr.h
12908         * support/Util/SDCCerr.c
12909
12910 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
12911
12912         * src/SDCCval.c (valMult): fix overflow detection of negative int
12913
12914 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12915
12916         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
12917
12918         Changes to support big endian targets:
12919
12920         * src/ports.h
12921         * src/SDCCglue.c
12922         * src/avr/main.c
12923         * src/ds390/main.c
12924         * src/izt/i186.c
12925         * src/mcs51/main.c
12926         * src/pic/main.c
12927         * src/pic16/main.c
12928         * src/xa51/main.c
12929         * src/z80/main.c
12930
12931 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
12932
12933         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
12934         * device/lib/time.c: fixed warning "integer overflow in expression"
12935
12936 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
12937
12938         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
12939         * src/SDCCval.c (constVal): changed default to signed; hex and octal
12940         constants are unsigned; added recognition of "u" flag for unsigned
12941         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
12942         * src/SDCCval.c (valDiv, valMod): fixed signdness
12943         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
12944         signedness of modulo, left and right shift
12945         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
12946         * support/Util/SDCCerr.h: added warning W_INT_OVL
12947         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
12948         * src/SDCCast.c (ast_print): improved output of constants
12949
12950 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12951
12952         Fixed some warnings when building with MSVC:
12953
12954         * as/mcs51/asdata.c
12955         * as/z80/asdata.c
12956         * as/mcs51/asm.h
12957         * as/z80/asm.h
12958         * link/z80/aslink.h
12959         * link/z80/lkdata.c
12960         * link/z80/lkeval.c
12961         * link/z80/lkgb.c
12962         * link/z80/lkihx.c
12963         * link/z80/lks19.c
12964         * link/z80/lksym.c
12965         * support/cpp2/cpplib.c
12966         * src/ds390/gen.c
12967         * src/mcs51/gen.c
12968
12969 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
12970
12971         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
12972
12973 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12974
12975         * support/librarian/clean.mk: Do not remove Makefile.
12976         * support/librarian/Makefile: added.
12977
12978 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12979
12980         Added librarian to MSVC build:
12981         * all.dsp
12982         * sdcc.dsw
12983         * support/librarian/librarian.dsp
12984
12985         'configure' not needed for librarian, removed:
12986         * support/librarian/configure
12987         * support/librarian/configure.in
12988         * support/librarian/config_in.h
12989         * support/librarian/Makefile.in
12990
12991         Hopefully these ones built the librarian and the rest of sdcc properly:
12992         * Makefile
12993         * Makefile.common.in
12994
12995         Messed up 'configure', so revert to previous version:
12996         * configure
12997         * configure.in
12998
12999 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
13000
13001         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
13002         there, while the mantissa of a double is "only" 53 bits wide.
13003
13004 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13005
13006         Adding sdcclib to the build.  MSVC project coming soon.
13007         Files added/changed:
13008
13009         * support/librarian/clean.mk
13010         * support/librarian/configure
13011         * support/librarian/configure.in
13012         * support/librarian/config_in.h
13013         * support/librarian/Makefile.bcc
13014         * support/librarian/Makefile.in
13015         * support/librarian/sdcclib.c
13016         * Makefile.bcc
13017         * Makefile
13018         * Makefile.common.in
13019         * configure
13020         * configure.in
13021
13022 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13023
13024         Linker now complaints if linked modules have conflicting options, for
13025         example, one compiled using --model-large and another one compiled with
13026         --model-small.  The following files were modified:
13027
13028         * as/mcs51/asdata.c
13029         * as/mcs51/aslink.h
13030         * as/mcs51/asm.h
13031         * as/mcs51/asmain.c
13032         * as/mcs51/asout.c
13033         * as/mcs51/i51pst.c
13034         * as/mcs51/lkdata.c
13035         * as/mcs51/lklibr.c
13036         * as/mcs51/lkmain.c
13037         * as/z80/asdata.c
13038         * as/z80/asm.h
13039         * as/z80/asmain.c
13040         * as/z80/asout.c
13041         * as/z80/z80pst.c
13042         * link/z80/aslink.h
13043         * link/z80/lkdata.c
13044         * link/z80/lklibr.c
13045         * link/z80/lkmain.c
13046         * src/SDCCglue.c
13047
13048 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13049
13050         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
13051         as/mcs51/lklibr.c: Generate a warning when a library is not found.
13052
13053 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
13054
13055         * src/z80/mappings.i: fix _mul[us][int,long] entries
13056
13057 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13058
13059         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
13060
13061 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
13062
13063         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
13064         * support/regression/tests/bitopcse.c: added
13065         fixed warning:
13066         * src/avr/gen.c:
13067         * src/pic/gen.c:
13068         * src/pic16/gen.c:
13069         * src/z80/gen.c:
13070         * src/xa51/gen.c:
13071
13072 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13073
13074         added support for new library format to z80, gbz80 linkers:
13075         *link/z80/aslink.h
13076         *link/z80/lklex.c
13077         *link/z80/lklib.c
13078         *link/z80/lklist.c
13079
13080 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
13081
13082         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
13083         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
13084
13085 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
13086
13087         added DUMMY_READ_VOLATILE:
13088         * src/SDCC.y:
13089         * src/avr/gen.c:
13090         * src/xa51/gen.c:
13091         * src/z80/gen.c:
13092         * src/pic/gen.c:
13093         * src/pic16/gen.c:
13094         * src/mcs51/gen.c:
13095         * src/ds390/gen.c:
13096         * src/SDCCcse.c (algebraicOpts): many improvements
13097         * src/SDCCcse.h: removed algebraicOpts()
13098         * src/SDCCicode.c (picDummyRead): added
13099
13100 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13101
13102         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
13103         "Insufficient space in data memory".
13104
13105 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13106
13107         * src/mcs51/gen.c: fixed bug #771358
13108         * src/z80/gen.c: fixed bug #759087
13109
13110 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
13111
13112         * src/pic16/glue.c: minor cleanup by Vangelis
13113
13114 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13115
13116         * device/include/regc515c.h: fixed #758477
13117         * device/lib/_gptrget.c: saving some cycles in generic pointer get
13118         * device/lib/_gptrput.c: saved a few bytes
13119         * my tab spacing is 8, yours too?)
13120         * device/lib/_ser.c: process RX bytes earlier than TX bytes
13121         * device/lib/serial.c: process RX bytes earlier than TX bytes
13122         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
13123
13124 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13125
13126         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
13127
13128 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13129
13130     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
13131
13132 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
13133
13134         * device/lib/Makefile.in: bad fix, reverted to 1.43
13135
13136 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
13137
13138         * device/lib/Makefile.in: added missing z80 object files
13139
13140 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
13141
13142         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
13143         pic16 progress by Vangelis:
13144         * src/SDCCglobl.h:
13145         * src/SDCCmain.c:
13146         * src/pic/Makefile:
13147         * src/pic:
13148         * pic/Makefile:
13149         * pic16/device.c:
13150         * pic16/device.h:
13151         * pic16/gen.c:
13152         * pic16/gen.h:
13153         * pic16/genarith.c:
13154         * pic16/glue.c:
13155         * pic16/main.c:
13156         * pic16/pcode.c:
13157         * pic16/pcode.h:
13158         * pic16/pcodepeep.c:
13159         * pic16/peeph.def:
13160
13161 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13162
13163     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
13164
13165 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13166
13167     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
13168     added gbz80 build to MSVC project.
13169     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
13170     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
13171     from 8051 stuff and setup so it links using a .lnk file.
13172
13173 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13174
13175     * support/librarian/sdcclib.c: sdcc librarian.
13176     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
13177     with sdcclib.
13178
13179 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13180
13181     * as/mcs51/lkmain.c: properly handle extensions in function afile.
13182
13183 2003-07-02  Borut Razem <borut.razem AT siol.net>
13184
13185         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
13186         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
13187         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
13188         src/xa51/main.c, src/z80/main.c:
13189         virtualization of glue() function: each port has it's own glue function,
13190         which is accessed by do_glue function pointer in PORT.general structure
13191
13192 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
13193
13194         * DS800C400 fun, improved ROM interface and tinibios.
13195
13196 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
13197
13198         * More support for DS80C400. Now includes beginning of interface to ROM.
13199
13200 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
13201
13202         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
13203
13204 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13205
13206         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
13207
13208 2003-06-19  Borut Razem <borut.razem AT siol.net>
13209
13210         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
13211
13212 2003-06-19  Borut Razem <borut.razem AT siol.net>
13213
13214         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
13215         fixed Z80 port - crt0.o: cannot open.
13216
13217 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
13218
13219         * support/Util/MySystem.c (merge_command): revert bad fix
13220
13221 2003-06-18  Borut Razem <borut.razem AT siol.net>
13222
13223         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
13224
13225 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13226
13227         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
13228         option --use-stdout sends errors to stdout instead of stderr.
13229
13230 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
13231
13232         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
13233
13234 2003-06-15  Borut Razem <borut.razem AT siol.net>
13235
13236         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
13237         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
13238         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
13239         fixed width array of pointers replaced with sets;
13240         multiple include and lib paths ared transferred to preprocessor and linker
13241         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
13242         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
13243         fixed width array of pointers
13244         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
13245         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
13246         fixupPath(), getPathDifference()
13247         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
13248         fixed width array of pointers
13249
13250 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
13251
13252         * src/pic16/ralloc.c: fix warnings
13253         * src/pic16/pcode.c: fix warning
13254
13255 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
13256
13257          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
13258         know all the details, but essentially this set of changes enable
13259         the pic16 port to generate movff instructions and generate assembler
13260         directives,
13261         * src/SDCCmain.c:
13262         * src/pic16/gen.c:
13263         * src/pic16/glue.c:
13264         * src/pic16/pcode.c:
13265         * src/pic16/device.c:
13266         * src/pic16/main.c:
13267         * src/pic16/pcode.h:
13268         * src/pic16/pcoderegs.c:
13269         * src/pic16/ralloc.c:
13270         * src/pic16/ralloc.h:
13271
13272 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13273
13274         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
13275         added option --vc, so sdcc errors and warnings are compatible with
13276         Microsoft Visual Studio.
13277
13278 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13279
13280         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
13281           device/lib/libfloat.lib: added atof function.
13282
13283 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
13284
13285         * doc/sdccman.lyx: updated to Lyx 1.3
13286         * doc/cdbfileformat.lyx: updated to Lyx 1.3
13287         * doc/test_suite_spec.lyx: updated to Lyx 1.3
13288         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
13289
13290 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
13291
13292         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
13293
13294 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13295
13296         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
13297           additions to the "related tools/documentation" section
13298
13299 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
13300
13301         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
13302
13303 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
13304
13305         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
13306         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
13307
13308 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
13309
13310         * doc/sdccman.lyx: fix double dash and other minor things
13311         * doc/Makefile: fix double dash
13312
13313 2003-05-28  Karl Bongers(patches from Martin Helmling)
13314         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
13315           condition and ignore commands.
13316
13317 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13318
13319         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
13320           is in parts still quite out of date, I did changes as far as I felt makes sense
13321           for a non-native english speaker.
13322           Please feel free to add to the manual or to correct my changes.
13323         * doc/Makefile: undid touching the date of intermediate tex files.
13324
13325 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13326
13327         * doc/sdccman.lyx: Manual has an index now
13328
13329 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
13330
13331         Finalize muluint/mulsint and mululong/mulslong merging:
13332         * device/lib/_mulint.c
13333         * device/lib/_mullong.c
13334         * device/lib/gbz80/mul.s
13335         * device/lib/gbz80/stubs.s
13336         * device/lib/z80/mul.s
13337         * device/lib/z80/stubs.s
13338         * src/SDCCsymt.c (initCSupport)
13339
13340 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13341
13342         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
13343         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
13344           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
13345           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
13346           instead of /Zm500.
13347
13348 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13349
13350         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
13351           the regression tests I'm not brave enough to enable 245.b, 245.c
13352         * doc/sdccman.lyx: added latex preamble for hyperref package.
13353           Using pdflatex this will give you a hyperlinked pdf file with
13354           bookmarks. (prepend '%' before /usepackage if this breaks something)
13355
13356 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13357
13358          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
13359
13360 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
13361
13362         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
13363
13364 2003-05-21    <johan AT balder>
13365
13366         * src/SDCCglue.c (printIval): fixed bug #739934
13367
13368 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
13369
13370         Applied patch from bug 737905 (renamed yylineo to mylineno):
13371         * src/altlex.c
13372         * src/SDCCast.c
13373         * src/SDCglobl.h
13374         * src/SDCC.lex
13375         * src/SDCCsymt.c
13376         * src/SDCCval.c
13377         * src/pic16/pcode.c: Cleaned warnings
13378         * src/pic16/pcodeflow.c: Cleaned warnings
13379         * src/pic16/pcoderegs.c: Cleaned warnings
13380
13381 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
13382
13383         * src/pic16/pcode.c: Cleaned warnings
13384         * src/pic16/pcodepeep.c: Cleaned warnings
13385         * src/pic16/ralloc.c: Cleaned warnings
13386
13387 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
13388
13389         * doc/sdccman.lyx: fixed bug 739745
13390         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
13391
13392 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
13393
13394         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
13395         it can be defined with CFLAGS when running configure
13396         * src/SDCCmain.c: fixed compiling + linking with object files
13397
13398 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
13399
13400         * configure.in: configure for pic16 port,
13401             added --disable-pic16-port
13402         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
13403         * src/SDCCmain.c: linkOptions is changed to set *,
13404             added if/endif conditional macros to remove options help
13405             messages from optionsTable when a port is not configured, added
13406             support for the PIc16 port in the ports table, when executing
13407             the compiler with no port specified on command line, a default
13408             port is selected with the new macro DEFAULT_PORT which is
13409             defined in port.h, in setDefaultOptions() linkOptions is removed
13410             from initialization assignment, since now it is a set,
13411             parseCmdLine uses setParseWithComma for linkOptions, in
13412             linkEdit() linkOptions are accessed with new function indexSet()
13413             which returns the i'th item of a set variable. See SDCCset.c, in
13414             linkEdit() when calling buildCmdLine(), added linkOptions as
13415             last argument. Now users can pass arguments to gplink via the
13416             -Wl option, main() uses pic16glue() to glue up pic16 programs
13417         * src/SDCCpeeph.c: various changes to support pic16
13418         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
13419             return the i'th item of the set
13420         * src/SDCCset.h: added function prototype for indexSet()
13421         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
13422         * src/clean.mk: added pic16 in CLEANALLPORTS variable
13423         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
13424             added macro DEFAULT_PORT
13425         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
13426         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
13427             generated
13428         * src/pic16/glue.c: commented out some error producing lines
13429         * src/pic16/main.c: __config directives are commented out to stop
13430             gpasm complaining and test the linkage with gplink, _linkCmd and
13431             _asmCmd changed to be more gplink and gpasm friendly
13432         * src/pic16/peeph.def: peep rule 3 is commented out, since it
13433             produced an error when parsed, peep rule 12 is added to utilize
13434             movff, but it is commented out since the pCode does not support
13435             yet a command with 2 address arguments
13436
13437 2003-05-18    <johan AT balder>
13438
13439         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
13440         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
13441 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
13442
13443         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
13444   Added feature to script commands from file.
13445
13446 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
13447
13448         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
13449         * src/SDCCutil.c: include ctype.h for win32
13450
13451 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
13452
13453         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
13454
13455 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
13456
13457         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
13458   Fixed so you can set breakpoints prior to run, run does not stop
13459   on entry now.  Add tbreak.  Other enhancements and fixes for use
13460   with ddd.
13461
13462 2003-05-12  Borut Razem <borut.razem AT siol.net>
13463
13464         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
13465
13466 2003-05-11  Borut Razem <borut.razem AT siol.net>
13467
13468         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
13469         the path of bin directory, so that PATH is the only env. variable, which has to be set
13470         in case of standard installation.
13471         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
13472         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
13473         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
13474
13475 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
13476
13477         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
13478         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
13479         temp files are in the port dir; clean the gen/test directory when
13480         generating new test.c
13481         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
13482         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
13483         * support/regression/tests/zeropad.c: added
13484
13485 2003-05-09    <johan AT balder>
13486
13487         * src/SDCCglue.c: fixed bug #597940
13488
13489 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
13490
13491         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
13492   cache sfr, optimize next,step, fix off by one sourceline,
13493   support ddd list function.
13494         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
13495
13496 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
13497
13498         * support/regression/HTMLgen.py: added compare_s2f()
13499         * support/regression/Makefile: redo 1.27
13500         * support/regression/generate-cases.py: redo 1.5
13501
13502 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
13503
13504         * support/regression/tests/float.c: workaround 33 bit hex constant
13505         * support/regression/tests/simplefloat.c: fix division for host
13506
13507 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
13508
13509         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
13510         that tame's the PIC's over-aggressive optimizer.
13511
13512 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13513
13514          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
13515          support for MSVC.
13516
13517 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
13518
13519         Initial support for DS80C400. "Hello world" runs on TINIm400
13520         (with polled I/O).
13521
13522 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
13523
13524          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
13525          * Some notes on ddd usage added in debugger/README
13526          Martin Helmling adding more features and fixes for ddd GUI debugger.
13527          Code added for nexti, stepi, up, down, and other adjustments.
13528
13529 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
13530
13531         * src/pic/pCodepeep.c non-wildcard asmops are now handled
13532         * src/pic/peeph.def Added two rules to optimize carry manipulation
13533         * src/pic/* removed debug printfs
13534
13535 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
13536
13537         * debugger/mcs51/cmd.c: added header newalloc.h
13538
13539 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
13540
13541         * as/Makefile: new EXEEXT
13542         * as/z80/Makefile: remove trailing slash of BUILDIR
13543         * as/z80/clean.mk: new EXEEXT
13544         * Makefile.common.in: add to CFLAGS (and others), don't replace it
13545         * support/cpp2/Makefile.in: new EXEEXT
13546         * src/pic/glue.c (pic14emitRegularMap): fixed warning
13547
13548 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
13549
13550         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
13551         EXEEXT was introduced to fix all related problems with targets
13552         "clean", "install" and "uninstall"; a couple of further flaws
13553         especially with "clean" have been fixed too
13554         * as/mcs51/Makefile.in
13555         * as/mcs51/clean.mk
13556         * as/z80/Makefile
13557         * Makefile
13558         * clean.mk
13559         * debugger/mcs51/Makefile.in
13560         * debugger/mcs51/clean.mk
13561         * link/z80/Makefile
13562         * link/z80/Makefile.in
13563         * link/z80/clean.mk
13564         * link/Makefile
13565         * packihx/Makefile.in
13566         * packihx/clean.mk
13567         * sim/ucsim/Makefile
13568         * sim/ucsim/clean.mk
13569         * sim/ucsim/avr.src/Makefile.in
13570         * sim/ucsim/avr.src/clean.mk
13571         * sim/ucsim/s51.src/Makefile.in
13572         * sim/ucsim/s51.src/clean.mk
13573         * sim/ucsim/xa.src/Makefile.in
13574         * sim/ucsim/xa.src/clean.mk
13575         * sim/ucsim/z80.src/Makefile.in
13576         * sim/ucsim/z80.src/clean.mk
13577         * sim/ucsim/main_in.mk
13578         * sim/ucsim/packages_in.mk
13579         * sim/ucsim/gui.src/Makefile.in
13580         * sim/ucsim/gui.src/serio.src/Makefile.in
13581         * sim/ucsim/gui.src/serio.src/clean.mk
13582         * src/Makefile.in
13583         * src/clean.mk
13584         * support/cpp2/Makefile.in
13585         * support/cpp2/clean.mk
13586         * support/makebin/Makefile
13587         * support/makebin/clean.mk
13588         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
13589         * doc/sdccman.lyx: --program-suffix no longer needed
13590
13591 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
13592
13593          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
13594          Martin Helmling added support for ddd GUI debugger.
13595          Code added to display assembly, set variables, and other commands
13596          to interface to ddd.
13597
13598 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
13599
13600         * as/Makefile: fix target clean
13601         * as/clean.mk: fix target clean
13602         * as/z80/clean.mk: fix target clean
13603
13604 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
13605
13606         * Makefile.common.in: added  AT EXEEXT AT
13607         * configure.in: removed all mingw32 stuff
13608         * configure: rebuilt from configure.in
13609         * doc/sdccman.lyx: updated section "installation"
13610         * support/scripts/sdcc_mingw32: adapted to configure
13611         * support/scripts/sdcc_cygwin_mingw32: added
13612
13613 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
13614
13615         * src/pic Added object file support for the PIC port
13616         * src/pic Applied patch from Craig Franklin (this started the object file support)
13617         * src/regression Updated the PIC regression tests for object files
13618
13619 2003-04-20  Borut Razem <borut.razem AT siol.net>
13620
13621         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
13622           lklex.c: In function `getfid':
13623           lklex.c:203: warning: array subscript has type `char'
13624         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
13625           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
13626         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
13627           stack handling macros
13628
13629 2003-04-19  Borut Razem <borut.razem AT siol.net>
13630
13631         * "handling space characters in file path" task:
13632         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
13633         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
13634         * support/Util/MySystem.h: make it self-sufficient
13635         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
13636           src/z80/main.c, sdcc/as/mcs51/lklex.c:
13637           handling space characters in file path
13638         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
13639           (it will be used by assemblers, which have their own includes, e.g. gpasm)
13640         * support/Util/MySystem.c: handling space characters in executable's path
13641
13642 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
13643
13644         * as/z80/Makefile: fix permanent rebuild of z80
13645         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
13646         * support/regression/tests/bitfields.c: added Johan's bitfields.c
13647
13648 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
13649
13650         * src/SDCCopt.c: add special case optimization to replace modulo by
13651           a power of two with a bitwise AND.
13652
13653 2003-04-18    <johan AT balder>
13654
13655         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
13656
13657 2003-04-17    <johan AT balder>
13658
13659         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
13660         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
13661
13662 2003-04-13  Borut Razem <borut.razem AT siol.net>
13663
13664         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
13665         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
13666           fixed mingw problem in adl_NORMALIZE_PATH
13667
13668 2003-04-12  Borut Razem <borut.razem AT siol.net>
13669
13670         * fixed "#pragma SAVE/RESTORE can not be nested":
13671         * src/SDCC.lex: reworked pragma handling functions
13672         * sdcc/src/SDCCglobl.h: reworked stack handling macros
13673         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
13674
13675 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
13676
13677         * src/SDCCutil.c (pathEquivalent): defined but not used
13678         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
13679         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
13680         * configure: rebuilt from configure.in
13681         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
13682         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
13683         * device/include/Makefile.in: replace sdcc_datadir
13684         * device/lib/Makefile.in: replace sdcc_datadir
13685         * Makefile.common.in: add LDFLAGS from configure
13686         * packihx/Makefile.in: use LDFLAGS
13687         * src/Makefile.in: use LDFLAGS
13688         * support/cpp2/Makefile.in: add LDFLAGS from configure
13689         * support/makebin/Makefile: use LDFLAGS
13690         * .version: bumped version number to 2.3.5
13691
13692 2003-04-12  Borut Razem <borut.razem AT siol.net>
13693
13694         * completed "different paths" task:
13695         * src/SDCCmacro.c: fixed bug in handling quotes
13696         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
13697         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
13698
13699 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
13700
13701         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
13702
13703 2003-04-11 kevin Vigor <kevin AT vigor.nu>
13704
13705         * ds390/gen.c ds390/peeph.def: fix bug 706781
13706
13707 2003-04-11  Borut Razem <borut.razem AT siol.net>
13708
13709         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
13710
13711 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
13712
13713         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
13714         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
13715          set - this bit used to not be set...).
13716         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
13717           bad code in PIC Port
13718         * src/regression/and2.c added to test bug 609268
13719         * src/regression/Makefile added and2.c to regression test
13720
13721
13722 2003-04-08    <johan AT CP255758-A>
13723
13724         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
13725         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
13726         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
13727
13728 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
13729
13730         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
13731         fix bug #487815
13732         * support/cpp2/Makefile.in: fix bug #487815
13733         * configure: rebuilt from configure.in
13734         * Makefile.common.in: docdir changed, new path suffixes
13735         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
13736         * sdcc_vc_in.h: reflect changes from sdccconf.h
13737         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
13738         * src/SDCCutil.h: remove BINDIR hack
13739         * doc/sdccman.lyx: update new path hierarchy
13740
13741 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
13742
13743         * src/SDCCpeeph.c: added okToRemoveSLOC test
13744
13745 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
13746
13747         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
13748
13749 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
13750
13751         * src/SDCCpeeph.c: added labelIsReturnOnly test
13752         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
13753
13754 2003-04-05    <johan AT balder>
13755
13756         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
13757         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
13758         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
13759         * src/SDCCast.c: fixed a warning
13760         * src/SDCCast.h: fixed a warning
13761         * src/SDCCicode.c (operandFromAst): fixed a warning
13762
13763 2003-04-04    <johan AT balder>
13764
13765         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
13766         * src/SDCCast.c (decorateType): fixed bug #715076
13767         * src/SDCC.y: fixed bug #702907
13768
13769 2003-04-03    <johan AT balder>
13770
13771         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
13772         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
13773         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
13774         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
13775         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
13776
13777 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
13778
13779         * _decdptr.c: fix return values
13780         * _gptrget.c: fix return values
13781         * _gptrgetc.c: fix return values
13782         * _gptrput.c: fix return values
13783         * _mulint.c: fix return values
13784         * as/z80/Makefile: fix 'make -j' problem
13785
13786 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
13787
13788         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
13789         * configure.in: big cleanup, updated to autoconf 2.5x
13790         * configure: rebuilt from configure.in
13791         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
13792         * sdcc_vc_in.h: reflect changes from sdccconf.h
13793         * doc/Makefile: fixed a flaw in "make install"
13794
13795 2003-04-02    <johan AT balder>
13796
13797         * src/ds390/gen.c (genCmp): no comments
13798         * src/mcs51/gen.c (genCmp): no comments
13799         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
13800         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
13801
13802 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
13803
13804         * support/regression/generate-cases.py: place generated file in given sub directory
13805         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
13806         * support/regression/Makefile: improvements for 'make -j';
13807         side effect: it's simpler and faster now
13808
13809 2003-03-31  Borut Razem <borut.razem AT siol.net>
13810
13811         * src/z80/main.c: link-{port} and as-{port} defined without path
13812         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
13813
13814 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
13815
13816         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
13817
13818 2003-03-30  Borut Razem <borut.razem AT siol.net>
13819
13820         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
13821           changed type of list parameter to set
13822         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
13823         * src/port.h: changed type of do_assemble() parameter to set
13824         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
13825           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
13826           definition of "cppoutfilename" macro with NULL value in preProcess()
13827         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
13828         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
13829         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
13830           replaced with set *binPathSet
13831         * shash_add() deallocates the item, if allready exsists, before adding the new one
13832         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
13833
13834 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
13835
13836         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
13837           a nested for loop bug in the PIC port
13838         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
13839           for loops
13840
13841 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
13842
13843         * support/Util/dbuf.h: remove C++ stuff to make it portable
13844
13845 2003-03-28  Borut Razem <borut.razem AT siol.net>
13846
13847         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
13848           literal strings in stringLiteral()
13849         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
13850         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
13851           to the project
13852
13853 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
13854
13855         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
13856
13857 2003-03-26    <johan AT balder>
13858
13859         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
13860         * src/ds390/gen.c (saveRegisters): catched symbol abuse
13861         * src/SDCCast.c (decorateType): fixed " -v < 3"
13862
13863 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
13864
13865         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
13866         Added Lenny Story's debug infrastructure changes:
13867         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
13868         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
13869         * src/cdbFile.c: added
13870         * src/SDCCdebug.c: added
13871         * src/SDCCdebug.h: added
13872         * src/SDCCast.c (createFunction)
13873         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
13874         * src/SDCCmain.c (parseCmdLine, main)
13875         * src/SDCCmem.c (redoStackOffsets)
13876         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
13877         * src/SDCCsymt.h
13878         * src/common.h
13879         * src/avr/gen.c (genAVRCode)
13880         * src/ds390/gen.c (gen390Code)
13881         * src/mcs51/gen.c (gen51Code)
13882         * src/pic/gen.c (genpic14Code)
13883         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
13884         * src/xa51/gen.c (genXA51Code)
13885         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
13886
13887 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13888
13889         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
13890         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
13891
13892 2003-03-22    <johan AT balder>
13893
13894         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
13895
13896 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
13897
13898         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
13899         * doc/cdbfileformat.lyx: added, written by Lenny Story
13900         * doc/Makefile: added cdbfileformat.lyx
13901         * doc/clean.mk: added cdbfileformat.lyx
13902
13903 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
13904
13905         * src/mcs51/peeph.def: fix bug #705773
13906
13907 2003-03-20    <johan AT balder>
13908
13909         An sfr/sbit can have an "at #" AND an initializer
13910         * src/SDCCsymt.c (checkSClass):
13911         * src/SDCCmem.c (allocGlobal):
13912         * src/SDCCmem.c (allocLocal):
13913         * src/SDCCast.c (createBlock):
13914
13915 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
13916
13917         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
13918
13919 2003-03-16    <johan AT balder>
13920
13921         Undid the hackup of const and volatile, the problem is much bigger
13922         * src/SDCC.y:1.65
13923         * src/SDCCast.c:1.171
13924         * src/SDCCglue.c:1.138
13925         * src/SDCCicode.c:1.146
13926         * src/SDCCsymt.c:1.150
13927         * src/SDCCval.c:1.65
13928
13929 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
13930
13931         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
13932         * src/ds390/gen.c (genAddrOf): fixed bug #704087
13933
13934 2003-03-13    <johan AT balder>
13935
13936         Hackup const and volatile modifiers in type chains a bit:
13937         * src/SDCC.y:1.63
13938         * src/SDCCast.c:1.169
13939         * src/SDCCglue.c:1.136
13940         * src/SDCCicode.c:1.143
13941         * src/SDCCsymt.c1.146
13942         * src/SDCCsymt.h1.59
13943         * src/SDCCval.c:1.63
13944
13945 2003-03-12    <johan AT balder>
13946
13947         * src/SDCCBBlock.h: more LRH debugging junk
13948         * src/SDCCcflow.h: more LRH debugging junk
13949         * src/SDCCloop.c: more LRH debugging junk
13950         * src/SDCC.y (struct_declaration): fixed bug #697590
13951         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
13952         * src/ds390/gen.c (aopForRemat): fixed bug #700031
13953         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
13954
13955 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
13956         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
13957         test function names must now match exactly).
13958         * src/SDCCcse.c: added special case in findCheaperOp to allow
13959         extending a short integer. Makes less awful code for bug 700121 test case.
13960
13961 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13962
13963         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
13964         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
13965
13966 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
13967
13968         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
13969         actually called (operandsNotEqual() was called for all
13970         operandsNotEqualX tests).
13971
13972 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
13973
13974         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
13975         with shorter literals. Fixes bug 700121.
13976
13977 2003-03-11    <johan AT balder>
13978
13979         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
13980
13981 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
13982
13983         * src/SDCCloop.c (mergeRegions): an evil beast is dead
13984         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
13985
13986 2003-03-10  Borut Razem <borut.razem AT siol.net>
13987
13988         * src/SDCCmain.c: pipe preprocessor's output
13989         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
13990         * sdcc_vc_in.h: define pclose as _pclose for WIN32
13991         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
13992         which closes all pipes in pipeSet set
13993         * src/SDCCset.c: free deleted item in function deleteSetItem()
13994         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
13995         moved from z80 to src subproject
13996         * .version: increased version number to 2.3.4
13997
13998 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
13999
14000         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
14001         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
14002         * support/regression/ports/xa51/spec.mk: fix typo
14003
14004 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
14005
14006         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
14007
14008 2003-03-09  Borut Razem <borut.razem AT siol.net>
14009
14010         * src/SDCCmain.c: pipe preprocessor's output
14011         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
14012         * sdcc_vc_in.h: define pclose as _pclose for WIN32
14013         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
14014         which closes all pipes in pipeSet set
14015         * src/SDCCset.c: free deleted item in function deleteSetItem()
14016         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
14017         moved from z80 to src subproject
14018
14019 2003-03-09  Borut Razem <borut.razem AT siol.net>
14020
14021         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
14022         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
14023         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
14024         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
14025         * src/SDCCglobl.h: unification of WIN32 native definitions
14026
14027 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14028
14029         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
14030
14031 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
14032
14033         * src/configure.in:   check for endianess (even while cross-compiling)
14034         * src/configure:      check for endianess (even while cross-compiling)
14035         * src/configure_in.h: check for endianess (even while cross-compiling)
14036         * src/avr/gen.c:        remove old endianess stuff
14037         * src/mcs51/gen.c:      remove old endianess stuff
14038         * src/ds390/gen.c:      remove old endianess stuff
14039         * src/pic/gen.c:        remove old endianess stuff
14040         * src/pic/genarith.c:   remove old endianess stuff
14041         * src/pic/glue.c:       fix endianess check
14042         * src/pic16/gen.c:      remove old endianess stuff
14043         * src/pic16/genarith.c: remove old endianess stuff
14044         * src/pic16/glue.c:     fix endianess check
14045         * src/xa51/gen.c:       remove old endianess stuff
14046         * src/z80/gen.c:        fix endianess check
14047         * src/SDCCglue.c:       fix endianess check
14048         * src/ds390/peeph.def: fix bug 700036
14049
14050 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
14051
14052         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
14053         * src/configure: find appropriate data-types on host for SDCC's int and long
14054         * src/configure.in: find appropriate data-types on host for SDCC's int and long
14055         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
14056         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
14057
14058 2003-03-07    <johan AT balder>
14059
14060         Just a big NOOP:
14061                 some minor cleanups before the big shot
14062                 OP_DEFS and OP_USES now use Kevin's protection
14063                 new option --nolabelopt
14064
14065         * src/SDCCBBlock.c:
14066         * src/SDCCast.c,:
14067         * src/SDCCcflow.c:
14068         * src/SDCCcse.c:
14069         * src/SDCCicode.c:
14070         * src/SDCCicode.h:
14071         * src/SDCClabel.c:
14072         * src/SDCCloop.c:
14073         * src/SDCCmain.c:
14074         * src/ds390/ralloc.c:
14075         * src/mcs51/ralloc.c:
14076         * src/pic/ralloc.c:
14077         * src/xa51/ralloc.c:
14078         * src/z80/ralloc.c:
14079
14080 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
14081
14082         * src/pic/pcode.c (get_op): fix 64 bit warnings
14083         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
14084         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
14085         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
14086         * support/regression/tests/malloc.c: fix 64 bit warnings
14087
14088 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
14089
14090         * src/mcs51/gen.c (genMinus): fixed bug 696436
14091
14092 2003-03-02  Borut Razem <borut.razem AT siol.net>
14093
14094         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
14095
14096 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
14097
14098         * configure.in: test for mkstemp
14099         * sdccconf_in.h: add HAVE_MKSTEMP
14100
14101 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
14102
14103         * device/include/ctype.h: removed warning while using --stack-auto
14104         * device/include/malloc.h: removed warning while using --stack-auto
14105         * device/include/string.h: removed warning while using --stack-auto
14106
14107 2003-02-23  Borut Razem <borut.razem AT siol.net>
14108
14109         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
14110         because NDEBUG is defined (see man assert)
14111         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
14112
14113 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14114
14115         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
14116         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
14117
14118 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14119
14120         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
14121         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
14122
14123 2003-02-18    <johan AT balder>
14124
14125         * as/mcs51/asmain.c (asmbl): module can start with a digit
14126         * as/z80/asmain.c (asmbl): module can start with a digit
14127
14128 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
14129
14130         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
14131         * src/asm.c: fix pipe() for Mingw32
14132
14133 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
14134
14135         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
14136         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
14137         make -V work again; --c1mode reads now from stdin
14138         * doc/sdccman.lyx: added --c1mode
14139         * support/Util/SDCCerr.c: new messages for c1 mode
14140         * support/Util/SDCCerr.h: new messages for c1 mode
14141         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
14142
14143 2003-02-15    <johan AT balder>
14144
14145         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
14146
14147 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
14148
14149         * doc/sdccman.lyx: Environment variables, -o and other minor things
14150
14151 2003-02-14    <johan AT balder>
14152
14153         * src/xa51/main.c: before anyone really tries to use it :)
14154
14155         * Install doc's in share/sdcc/doc
14156         * removed some obsolete files
14157         * Do a proper make distclean and uninstall
14158         M Makefile.common.in
14159         R sdccbuild.sh
14160         M as/Makefile
14161         M device/include/Makefile.in
14162         M device/lib/Makefile.in
14163         M doc/sdccman.lyx
14164         M link/Makefile
14165         M sim/ucsim/doc/Makefile.in
14166         M src/clean.mk
14167         R src/avr/peeph.rul
14168         R src/xa51/peeph.rul
14169         M support/cpp2/Makefile.in
14170         M support/makebin/Makefile
14171
14172
14173 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
14174
14175         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
14176
14177 2003-02-10  Borut Razem <borut.razem AT siol.net>
14178
14179         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
14180         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
14181         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
14182         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
14183         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
14184         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
14185         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
14186         src/z80/Makefile.bcc: Borland Makefile cleanup
14187         * as/z80/Makefile.bcc: Added Borland Makefile
14188         * support/cpp2/borland.h: Removed
14189
14190 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
14191
14192         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
14193         * src/SDCC.lex: new pragma NOIV
14194         * src/SDCCglobl.h: new pragma NOIV
14195         * src/SDCCmem.c: new pragma NOIV
14196
14197 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
14198
14199         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
14200
14201 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
14202
14203         * src/SDCCmain.c: signal handling is switched off by --debug
14204         * doc/Makefile: small fix for install; use clean.mk again
14205         * doc/clean.mk: clean *.pdf and *.html too
14206
14207 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
14208
14209         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
14210         * device/lib/printfl.c: fix a ds390 bug by making it portable
14211         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
14212         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
14213         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
14214         * debugger/mcs51/cmd.c: converted multi-line string literals
14215         * sim/ucsim/globals.cc: converted multi-line string literals
14216         * src/SDCCmain.c: introduced signal handler to remove temp files
14217         * doc/Makefile: small tweaks, implement clean
14218         * doc: removed generated files
14219
14220 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14221
14222         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
14223         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
14224         Address Record is not correctly generated for DS390."
14225
14226 2003-02-02  Borut Razem <borut.razem AT siol.net>
14227
14228         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
14229         * as/mcs51/asm.h: fixed compilation with Borland C
14230         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
14231         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
14232         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
14233         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
14234         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
14235         src/z80/Makefile.bcc: delete $(LIB) only if exist
14236         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
14237
14238 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
14239
14240         * device/include/malloc.h: introduced NULL
14241         * device/include/string.h: introduced NULL
14242         * device/include/stdlib.h: introduced NULL
14243         * device/lib/_memcpy.c: removed NULL
14244         * device/lib/_strcat.c: removed NULL
14245         * device/lib/_strchr.c: removed NULL
14246         * device/lib/_strcmp.c: removed NULL
14247         * device/lib/_strcpy.c: removed NULL
14248         * device/lib/_strcspn.c: removed NULL
14249         * device/lib/_strlen.c: removed NULL
14250         * device/lib/_strncat.c: removed NULL
14251         * device/lib/_strncmp.c: removed NULL
14252         * device/lib/_strncpy.c: removed NULL
14253         * device/lib/_strpbrk.c: removed NULL
14254         * device/lib/_strrchr.c: removed NULL
14255         * device/lib/_strspn.c: removed NULL
14256         * device/lib/_strstr.c: removed NULL
14257         * device/lib/_strtok.c: removed NULL
14258         * device/lib/malloc.c: removed NULL, include own header
14259
14260 2003-02-02    <johan AT balder>
14261
14262         * 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
14263         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
14264         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
14265         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
14266         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
14267         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
14268
14269 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14270
14271         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
14272         area 'DATA'"
14273
14274 2003-02-01    <johan AT balder>
14275
14276         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
14277
14278 2003-01-31    <johan AT CP255758-A>
14279
14280         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
14281
14282 2003-01-30    <johan AT balder>
14283
14284         * src/SDCCBBlock.c: automatic bug detection
14285         * src/SDCCicode.c: automatic bug detection
14286
14287 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14288
14289         * src/SDCCglobl.h:   now --xram-size 0 works
14290         * src/SDCCmain.c:    now --xram-size 0 works
14291
14292 2003-01-29    <johan AT balder>
14293
14294         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
14295
14296 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14297
14298         * as/mcs51/aslink.h: Added options --xram-size and --code-size
14299         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
14300         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
14301         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
14302         * src/SDCCglobl.h:   Added options --xram-size and --code-size
14303         * src/SDCCmain.c:    Added options --xram-size and --code-size
14304
14305 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
14306
14307         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
14308         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
14309
14310 2003-01-27    <johan AT balder>
14311
14312         * src/SDCC.y: fixed bug #613764
14313
14314 2003-01-26    <johan AT balder>
14315
14316         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
14317         * src/SDCCsymt.h: fixed bug #673374
14318         * src/SDCCglue.c: fixed bug #661910
14319         * src/SDCCast.c: fixed bug #458099 and 673374
14320
14321 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
14322
14323         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
14324         * as/mcs51/strcmpi.h: added
14325         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
14326         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
14327         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
14328         * as/mcs51/assym.c: strcmpi -> as_strcmpi
14329         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
14330         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
14331         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
14332         * as/mcs51/Makefile.aslink: new module strcmpi
14333         * as/mcs51/Makefile.asx8051: new module strcmpi
14334         * as/mcs51/Makefil.bcc: new module strcmpi
14335         * as/mcs51/Makefile.in: new module strcmpi
14336         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
14337
14338 2003-01-26    <johan AT balder>
14339
14340         * src/SDCCglue.c: reverted back to 1.124
14341         * src/SDCCast.c: reverted back to 1.156
14342         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
14343
14344 2003-01-25    <johan AT balder>
14345
14346         * src/SDCCglue.c: A better fix for bug #661910
14347         * src/SDCCast.c: A better fix for bug #661910
14348         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
14349
14350 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
14351
14352         * src/Makefile.in: remove spawn.o
14353         * src/SDCCmain.c: remove spawn.h
14354         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
14355         * src/spawn.c: removed
14356         * src/spawn.h: removed
14357         * support/regression/ports/ds390/spec.mk: link with -r
14358
14359 2003-01-24    <johan AT CP255758-A>
14360
14361         * src/ds390/gen.c (aopOp): fixed bug #667458
14362         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
14363         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
14364         (createIvalCharPtr): an ival doesn't always have a storage class anymore
14365
14366 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
14367
14368         * src/mcs51/peeph.def: better assembler identation by Frieder
14369         * src/mcs51/gen.c: better assembler identation by Frieder
14370
14371 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
14372
14373         * as/z80/string.h: removed for gcc 3.2
14374         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
14375         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
14376
14377 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
14378
14379         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
14380         * src/SDCCpeeph.c (replaceRule): fix bug #663503
14381         * support/regression/Makefile: separate temp files for ports
14382         * support/regression/generate-cases.py: separate temp files for ports
14383         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
14384         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
14385
14386 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
14387
14388         * moved tinitalk to device/examples/ds390
14389
14390 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
14391
14392         * as/mcs51/lkmem.c: rflag is for DS390
14393         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
14394         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
14395                          (linkEdit): move mem- and map-files the same way as ihx-files
14396         * src/z80/main.c (_setDefaultOptions): removed --generic
14397         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
14398         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
14399         * src/pic/glue.c (picglue): --c1mode works again
14400         * src/pic16/glue.c (pic16glue): --c1mode works again
14401         * src/asm.c (printCLine): fix #660034
14402
14403 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
14404
14405         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
14406         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
14407         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
14408         * as/mcs51/lkmem (summary): better fix for sp problem
14409         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
14410         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
14411         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
14412                                               remove --stack-after-data
14413
14414 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
14415
14416         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
14417         * src/SDCCutil.c (join): ugly bug: missing '\0'
14418         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
14419
14420 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
14421
14422         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
14423         * src/port.h: typo
14424         * src/pic/main.c (_asmCmd): gpasm supports -o
14425         * src/z80/main.c: more general macros
14426         * device/lib/Makefile.in: remove intermediate files
14427
14428 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
14429
14430         * .version: Bumped version number to 2.3.3
14431         * src/SDCCBBlock.c: new option -o
14432         * src/SDCCglobl.h: new option -o
14433         * src/SDCCglue.c: new option -o
14434         * src/SDCCmain.c: new option -o
14435         * src/asm.c: new option -o
14436         * src/ds390/main.c: new option -o
14437         * src/pic/glue.c: new option -o
14438         * src/pic/pcode.c: new option -o
14439         * src/pic/ralloc.c: new option -o
14440         * src/pic16/glue.c: new option -o
14441         * src/pic16/pcode.c: new option -o
14442         * src/pic16/ralloc.c: new option -o
14443         * src/z80/main.c: new option -o
14444         * device/lib/Makefile.in: use -o
14445         * support/regression/ports/ds390/spec.mk: use -o
14446         * support/regression/ports/gbz80/spec.mk: use -o
14447         * support/regression/ports/mcs51/spec.mk: use -o
14448         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
14449         * support/regression/ports/z80/spec.mk: use -o
14450         * support/regression/ports/ucz80/spec.mk: use -o
14451         * support/regression/ports/xa51/spec.mk: use -o
14452         * support/regression/fwk/lib/timeout.c: fix usage string
14453
14454 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
14455         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
14456
14457 2003-01-07    <johan AT balder>
14458
14459         * src/SDCCast.c (decorateType): fixed bug #600035
14460
14461 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
14462         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
14463         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
14464         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
14465         * src/pic/pcode.c: outcommented unused variable to remove warnings
14466         * src/pic/ralloc.c: outcommented unused variable to remove warnings
14467
14468 2003-01-06    <karl AT turbobit.com>
14469         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
14470    regression tests.
14471
14472 2003-01-06    <johan AT balder>
14473
14474         * src/SDCCicode.c: fixed array add
14475
14476 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
14477         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
14478         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
14479
14480 2003-01-04    <johan AT balder>
14481
14482         * src/SDCCval.c (getNelements): fixed the initialized array of structures
14483
14484 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14485         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
14486
14487 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
14488         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
14489         * support/regression/tests/bug-524697.c: fit mem usage into 8032
14490
14491 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
14492         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
14493
14494 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
14495         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
14496
14497 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
14498         * src/mcs51/main.c: removed {bindir}{sep} from aslink
14499
14500 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14501
14502     * in /sdcc/as/mcs51/ changed these files in order to create an
14503     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
14504     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
14505     following files to include the previous two files: aslink.dsp,
14506     Makefile.aslink, Makefile.bcc, and Makefile.in.
14507
14508     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
14509     .adb instead of .cdb
14510
14511 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14512
14513         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
14514         value from option --iram-size.
14515
14516 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14517
14518         * /sdcc/as/mcs51/lklist.c: added boundary check before using
14519         dram[] array.
14520
14521 2002-09-18    <wiml AT hhhh.org>
14522
14523         * SDCClrange.h: exposed setFromRange() and setToRange()
14524         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
14525           packRegsForAccUse() (bug 542397)
14526         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
14527           multiple times and emitting the fetch operations more than once
14528           added aopGetUsesAcc() function to allow binary operators to
14529           fetch their operands in the correct order; made genMinus() emit
14530           compact code for X = LITERAL - Y
14531
14532 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14533         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
14534         sprintf() in line 1267.
14535
14536 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14537         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
14538         like ports.
14539
14540 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14541         Changes to aslink (All the changes are marked with 'JCF'):
14542
14543         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
14544         summary().
14545
14546         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
14547         area BSEG.  Also moves, if possible, the DATA area down into the internal
14548         ram so more space is available.
14549
14550         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
14551         sflag.
14552
14553         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
14554         not bytes.  Function summary() which creates a memory usage summary
14555         file with extension .mem.  Reports of overlaping stack and small stack
14556         size.  If the space for the stack is less than 16 bytes aslink trows a
14557         warning.
14558
14559         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
14560         the 8051.  Option 'y' for memory summary output file.
14561
14562         Changes to sdcc (All the changes are marked with 'JCF'):
14563
14564         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
14565
14566         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
14567         overlaying area for it (uses RegBankUsed[4]).
14568
14569         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
14570         bank zero as used by default.  By default aslink locates the stack
14571         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
14572         the creation of the .mem file.  Delegates the allocation of data area
14573         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
14574         the begining of the stack area to aslink.
14575
14576         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
14577         glue() in SDCCglue.c creates an area for it.
14578
14579 2002-09-03  Borut Razem <borut.razem AT siol.net>
14580         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
14581         sdcc/src/pic/glue.c:
14582         introduced atexit() handler for teporay files removal in case of
14583         errors, assertions, ...
14584
14585 2002-08-29  Borut Razem <borut.razem AT siol.net>
14586         * sdcc/support/cpp2/auto-host_vc_in.h:
14587         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
14588         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
14589         Maybe there is a similar problem with BORLANDC? It should be checked!
14590
14591         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
14592         corrected improper use of assert: the assignment to clr variable was done inside the assert.
14593         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
14594         was not executed, and the compiler (cl) launched a warning:
14595         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
14596
14597 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
14598         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
14599
14600 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
14601         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
14602
14603         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
14604           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
14605           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
14606           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
14607           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
14608           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
14609           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
14610         - added Release configuration in VS projects
14611         - review of compiler an linker options
14612         - VC .exe files are generated in bin_vc directory, not to interfere
14613           with binaries generated from other projects (cygwin, mingw, bcc ...)
14614
14615         * sdcc/src/yacc.dsp: added
14616
14617         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
14618         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
14619         and insert the version number definitions from .version
14620
14621         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
14622
14623         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
14624         added - genarate auto-host.h using auto-host_vc_in.h as template
14625
14626         * sdcc/sdcc_vc.h,
14627         removed from CVS, generated automatically
14628
14629 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
14630         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
14631
14632 2002-08-11  Borut Razem <borut.razem AT siol.net>
14633         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
14634
14635 2002-08-10  Borut Razem <borut.razem AT siol.net>
14636         * src/SDCCmain.c (main):
14637         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
14638         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
14639         The consequence was that some temporary files were not removed.
14640
14641         * src/SDCCglue.c:
14642         unification of code in functions tempfilename() and tempfile():
14643         function tempnam() is defined in Visual Studio 6.0 and .NET
14644
14645         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
14646
14647         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
14648           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
14649         - removed compiler command line option /WX: Treats all warnings as errors
14650         - update a list of source files, included into the project
14651
14652         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
14653           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
14654         changed project type to Generic Project so that can be correcly converted to VS.NET project
14655
14656         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
14657
14658         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
14659
14660         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
14661
14662         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
14663         added return 0 statements after assert() to make compiler happy
14664
14665         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
14666         added newline in the def file to keep MSC compiler satisfied
14667
14668         * sdcc/src/z80/gen.c:
14669         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
14670           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
14671         - solved MSC error in function aopDump()
14672
14673         * sdcc_vc.h: define PREFIX as "\\sdcc"
14674
14675 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
14676         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
14677
14678 2002-06-22  Scott Dattalo <scott AT dattalo.com>
14679         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
14680         - Rewrote the register banking algorithm.
14681         - Added pCode live-range analysis to registers (for now, only non-used and
14682         singly-used registers optimized away)
14683
14684         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
14685
14686         * 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.
14687
14688 2002-05-10  Scott Dattalo <scott AT dattalo.com>
14689         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
14690
14691 2002-04-22  Michael Hope  <michaelh AT vroom>
14692
14693         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
14694
14695         * configure.in (DD_COPT): Added include support required for gbdk.
14696
14697         * .version: Bumped version number just to increase it.
14698
14699         * src/SDCCmain.c: Added -nostdinc to the default options.
14700
14701 2002-04-15  Michael Hope  <michaelh AT vroom>
14702
14703         * device/lib/z80/printf.c (sprintf): Added.
14704
14705         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
14706
14707         * src/z80/peeph.def: Added transpose redundent load rule.
14708
14709         * src/z80/main.c: Added force callee saves for jaune.
14710
14711         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
14712
14713         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
14714
14715 2002-03-28  Johan Knol  <johan AT balder>
14716
14717         * src/SDCCval.c: fixed bug #532436
14718
14719 2002-03-14  Scott Dattalo <scott AT dattalo.com>
14720         * /src/port.h:
14721         Added "char *Processor" field to the port structure.
14722
14723         * /src/SDCCmain.c:
14724         Added -p option. Allows port dependent processor to be specified.
14725
14726         * all ports:
14727         Initialized the new field char *Processor field to NULL in all ports
14728
14729         * /src/pic/*:
14730         Compiler generated registers for interrupt context saving
14731         were not getting allocated.
14732
14733 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
14734
14735         * /src/SDCCast.c:
14736         Fixed left shift. Will promote the left side of a left shift
14737         if a) left shifting more than size of operand or b) when assigned
14738         to something size > size of left side
14739
14740 2002-03-14  Scott Dattalo <scott AT dattalo.com>
14741         * src/pic/*
14742         tons of changes. Register allocation has been
14743         rewritten. Added customization for the various PICs. Flow
14744         analysis is restructured. ...
14745
14746         * src/pic/device.h:
14747         Added
14748
14749         * src/pic/device.c:
14750         Added. device.c is a PIC port hack to accomodate variations
14751         in PIC devices.
14752
14753 2002-03-13  Michael Hope  <michaelh AT vroom>
14754
14755         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
14756
14757 2002-03-04  johanknol  <johanknol AT manik>
14758
14759         * /src/SDCCval.c: fixed
14760
14761         const unsigned char arr[][2] = { { 0, 1 } };
14762         t18.c:1: error: Initializer element is not constant
14763
14764 2002-03-04  bela  <bela AT manik>
14765
14766         * /device/include/mcs51reg.h:
14767         ds89c420 register definition update
14768
14769 2002-03-03    <johan AT FRIJA>
14770
14771         * support/Util/SDCCerr.c: did something, but don't no why anymore
14772
14773         * support/regression/tests/bug-524691.c: made it a little less shy
14774
14775         * src/SDCCast.c (decorateType): fixed bug #524697
14776
14777         * src/SDCCast.c: made some lineno improvements
14778
14779         * src/SDCCval.c (getNelements): changed warning to error
14780
14781         * src/SDCCglue.c (printIvalArray): changed warning to error
14782
14783         * src/SDCCicode.c: fixed a warning for mingw
14784
14785         * src/SDCCast.c (decorateType): fixed the << promotion for ops
14786
14787         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
14788
14789 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
14790
14791         * src/ds390/peeph.def:
14792         Added some more peephole rules
14793
14794         * src/ds390/gen.c: Various fixes & enhancements
14795
14796         * src/SDCClrange.c, src/SDCClrange.h:
14797         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
14798
14799         * src/ds390/ralloc.c:
14800         various fixes & enhancements (ds390) specific
14801
14802         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
14803         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
14804         from rallocs.
14805
14806         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
14807
14808 2002-03-02    <johan AT FRIJA>
14809
14810         * src/SDCCast.c (decorateType): fixed bug #524708
14811
14812         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
14813
14814         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
14815
14816 2002-03-01  Michael Hope  <michaelh AT vroom>
14817
14818         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
14819
14820         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
14821
14822 2002-03-01    <johan AT FRIJA>
14823
14824         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
14825
14826         * src/SDCCast.c (decorateType): fixed bug #524209
14827
14828         * src/SDCCval.c (valNot): fixed bug #524195
14829
14830 2002-02-26    <johan AT balder>
14831
14832         * src/xa51/gen.c: fixed a warning
14833
14834         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
14835
14836         * src/SDCCast.c (decorateType): fixed bug #522534
14837
14838 2002-02-23    <johan AT balder>
14839
14840         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
14841
14842 2002-02-22    <johan AT balder>
14843
14844         * src/SDCCast.c: fixed bug #514865
14845
14846         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
14847
14848 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
14849
14850         * sdcc/src/SDCCloop.c:
14851         Previous fix was not good. basic blocks that have "break" or "return" are
14852         not really partof a loop , but live ranges used in these blocks should
14853         be live thru the entire loop, so set partOfLoop but don't add them to
14854         loop region
14855
14856 2002-02-21    <johan AT FRIJA>
14857
14858         * src/SDCCcse.c: fixed bug #514308
14859
14860 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
14861
14862         * src/SDCCloop.c:
14863         Fixed BUG #519583. If a conditional block ended in a return/break
14864         statement inside a loop, it was not being considered part of the loop.
14865
14866         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
14867
14868 2002-02-10  Karl Bongers <karl AT turbobit.com>
14869
14870         * debugger/*:
14871         Fixed up SDCDB debugger somewhat.  Updated debugger/README
14872         with lots of comments and notes.
14873
14874         * device/examples/test2.c:
14875         Fix bug, "red" variable not being initialized(compiler complained).
14876
14877         * device/examples/Makefile, examples/test3.c:
14878         Add Makefile in device/examples folder, compiles test3.c
14879         for use as a multiple module SDCDB test case.
14880
14881         * sim/ucsim/cmd.src/cmdset.cc:
14882         Took out debug printfs in ucsim "next" command.
14883
14884         * sim/ucsim/xa.src:
14885         Karl and Johan start ucsim XA support.  Most dissassembly working,
14886         about 75% emulation done(plenty of work remaining).
14887
14888         * sim/ucsim/z80.src:
14889         Add Z80 support to ucsim, add test-ucz80 regression test,
14890         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
14891         Notice z80 compiler fails on examples/test3.c/crc code.
14892
14893 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
14894
14895         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
14896         Added support for --parms-in-bank1
14897
14898         * src/ds390/peeph.def:
14899         added a few more peephole optimzations
14900
14901         * src/ds390/main.c:
14902         1) added __builtin_inp & __builtin_outp used to read in data of given length
14903            from a memory mapped port
14904         2) added __builtin_memcmp
14905         3) added __builtin_swapw swap bytes of a short
14906
14907         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
14908         1) handle multiple send & receives from register bank1
14909         2) ralloc can now allocate DPTR1 to some liveRanges
14910
14911         * src/SDCCsymt.c, src/SDCCsymt.h:
14912         changes to handle multiple sends & receives
14913
14914         * src/SDCCptropt.h:
14915         added some pointer arithmetic optimization
14916
14917         * src/SDCCptropt.c:
14918         added some pointer arithmetic optimizations but not stable yet so not
14919         called from anywhere (will get this working shortly)
14920
14921         * src/SDCCopt.c: fixed for multiple sends & receives
14922
14923         * src/SDCCmain.c:
14924         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
14925         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
14926            set preprocessor defines (depending on options)
14927
14928         * src/SDCCicode.c, src/SDCCicode.h:
14929         changes made to handle multiple sends & receives
14930
14931         * src/SDCCglobl.h:
14932         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
14933
14934         * src/SDCCcse.c, src/SDCCcse.h:
14935         added function findbackward def (to be used in upcoming optimization)
14936
14937         * src/SDCCcflow.c, src/SDCCcflow.h:
14938         added function returnAtEnd - to determine if a basic block terminates with
14939         a RETURN iCode
14940
14941         * src/SDCCast.c, src/SDCCast.h:
14942         added option parms-in-bank1
14943
14944         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
14945         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
14946         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
14947         adjusted for --parms-in-bank1 option
14948
14949         * device/include/string.h:
14950         donot redefine "reentrant" keyword
14951
14952         * device/include/ds80c390.h: Added some more SFRs
14953
14954 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
14955
14956         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
14957
14958 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
14959
14960         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
14961
14962 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
14963
14964         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
14965
14966 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
14967
14968         * Added --xram-movc option
14969
14970 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
14971
14972         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
14973
14974 2002-01-11  Johan Knol
14975
14976         * Added math lib of Jesus Calvino-Fraga
14977
14978 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
14979
14980         * src/SDCCmain.c (processFile): fix processing of ../../src.c
14981         * support/regression/Makefile: new target test-mcs51-stack-auto
14982         * support/regression/ports/mcs51-stack-auto/spec.mk: added
14983
14984 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
14985
14986         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
14987
14988 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
14989
14990         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
14991
14992 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
14993
14994         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
14995
14996         * src/SDCCglue.h: add definition for printIvalChar()
14997
14998 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
14999
15000         * src/SDCCast.c: fix #498138 by Johan
15001
15002         * src/SDCCglue.c: fix #498138 by Johan
15003
15004 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
15005
15006         * support/regression/Makefile: fix clean
15007
15008         * support/regression/ports/ds390/support.c: fix transmission of last character
15009
15010 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
15011
15012         * /sdcc/src/ds390/gen.c:
15013         a) improved computing address of stack variable
15014         b) took out some #if 0 code
15015         c) improved parmBytes adjustment
15016         d) improved genPlusIncr & genMinusIncr
15017         e) genCmp could generate bad code (when left assigned to DPTR)
15018         f) Fixed bug in hasInc
15019
15020         * /sdcc/src/ds390/ralloc.c:
15021         a) packRegsForSupport could mess up live information (Fixed)
15022         b) packRegsDPTRuse could be incorrect for left & right shift
15023
15024         * /sdcc/src/mcs51/ralloc.c:
15025         packRegsForSupport could mess up the live information (Fixed)
15026
15027         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
15028
15029         * /sdcc/src/SDCCast.c:
15030         can reverse a loop even if function call is present as long
15031         as the loop control variable is local & is not passed as parameter
15032
15033 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15034
15035         * /sdcc/ChangeLog: *** empty log message ***
15036
15037         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
15038         More builtin function additions for TININative
15039
15040         * /sdcc/src/ds390/ralloc.c:
15041         Had broken the regression testsuite
15042
15043         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
15044
15045         * /sdcc/src/SDCCsymt.c, /sdcc/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         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
15051         *** empty log message ***
15052
15053 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15054
15055         * /src/ds390/gen.c, /src/ds390/main.c:
15056         More builtin function additions for TININative
15057
15058         * /src/ds390/ralloc.c:
15059         Had broken the regression testsuite
15060
15061         * /src/SDCCast.c: Fixed a bug in dumptree
15062
15063         * /src/SDCCsymt.c, /src/SDCCsymt.h:
15064         Added funcattr hasStackParms will be set for reentrant functions when there
15065         are paramteres on the stack, this helps in minimizing frame pointer generation
15066         typeFromStr can handle function pointers now
15067
15068         * /doc/builtins.txt, /doc/TININative.txt:
15069         *** empty log message ***
15070
15071
15072 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15073
15074         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
15075         ALPHA version for -mTININative
15076
15077         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
15078         updated to reflect changes in the port structure
15079
15080         * /src/port.h:
15081         added function do_assemble (similar to do_link) if non-null this function
15082         will be called to do assembly (-mTININative) requires a multi command
15083         assembly
15084         added function genAssemblerEnd will be called to generate assembler Epilogue
15085
15086         * /src/SDCCsymt.c:
15087         added _JavaNative to debug info printing
15088
15089         * /src/SDCCmain.c: added option --tini-libid
15090         added port->do_assemble function (-mTININative) has a multi command assemble
15091
15092         * /src/SDCCglue.c: Disabled "constExpr" check
15093         added port->genAssemblerEnd function
15094
15095         * /src/SDCCglobl.h: Added option --tini-libid value
15096
15097         * /src/SDCCast.h:
15098         tookout optimizeCompare from the header (has no external references)
15099
15100         * /src/SDCCast.c: made one more function "static"
15101
15102 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
15103
15104         * src/z80/mappings.i: Added z80asm support.
15105
15106         * src/z80/main.c: Added z80asm support on --asm=z80asm
15107
15108         * src/z80/gen.c: Fixed asm portability issues.
15109
15110         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
15111
15112         * src/SDCCglue.c (printExterns): Added global/extern split.
15113
15114 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
15115
15116         * support/regression/Makefile: added test for mcs51 model large
15117
15118         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
15119
15120         * support/regression/ports/gbz80/spec.mk: added -mgbz80
15121
15122 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
15123
15124         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
15125
15126 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
15127
15128         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
15129
15130         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
15131
15132 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
15133
15134         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
15135
15136         * support/regression/tests/simplefloat.c: Port to mcs51.
15137
15138 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
15139         * support/regression/tests/bug-485362.c: Added.
15140
15141         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
15142
15143         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
15144
15145         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
15146
15147         * src/z80/gen.c (aopDump): Added a dump function.
15148
15149 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
15150         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
15151
15152         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
15153
15154         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
15155
15156         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
15157
15158         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
15159
15160         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
15161
15162         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
15163
15164         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
15165
15166         * support/regression/ports/ds390/support.c: Use tinibios.
15167
15168         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
15169
15170 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
15171
15172         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
15173         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
15174
15175         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
15176
15177         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
15178
15179 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
15180
15181         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
15182
15183         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
15184         (packRegsForIYUse): Created and optimised.
15185
15186 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
15187
15188         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
15189 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
15190
15191         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
15192
15193         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
15194
15195         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
15196
15197 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15198
15199         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
15200
15201         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
15202
15203 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15204
15205         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
15206
15207         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
15208
15209         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
15210
15211 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
15212
15213         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
15214         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
15215         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
15216
15217         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
15218
15219         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
15220         (genNotFloat): Added.
15221         (genUminusFloat): Added.
15222
15223         * device/lib/z80/Makefile: Added floating pt stubs.
15224
15225         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
15226
15227         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
15228
15229         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
15230
15231 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15232
15233         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
15234
15235         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
15236
15237         * sdcc/support/regression/Makefile: Add port ds390.
15238
15239         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
15240
15241         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
15242
15243         * sdcc/support/regression/ports/ds390/spec.mk: Added.
15244
15245         * sdcc/support/regression/ports/ds390/support.c: Added.
15246
15247         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
15248
15249         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
15250
15251         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
15252
15253 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
15254
15255         * device/include/malloc.h: Added z80 and gbz80 support.
15256
15257         * device/lib/gbz80/heap.s: Added.
15258
15259         * device/lib/z80/heap.s: Added.
15260
15261         * device/lib/malloc.c: Added z80 and gbz80 support.
15262
15263         * support/regression/tests/malloc.c (testMalloc): Added.
15264
15265         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
15266
15267         * support/regression/tests/bug-478094.c: Added.
15268
15269         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
15270
15271 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
15272
15273         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
15274
15275         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
15276
15277         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
15278
15279         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
15280
15281         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
15282
15283 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
15284
15285         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
15286
15287 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
15288
15289         * support/regression/tests/bug-477927.c: Added.
15290
15291         * src/z80/peeph.def: Added minor rules.
15292
15293         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
15294
15295         * src/z80/peeph.def: Added jump optimisation modification.
15296
15297 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
15298
15299         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
15300
15301 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
15302
15303         * support/regression/tests/funptrs.c: Added.
15304
15305 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
15306
15307         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
15308
15309 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
15310
15311         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
15312
15313         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
15314
15315         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
15316         (movLeft2ResultLong): Created.
15317
15318         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
15319         (joinPushes): Added.  Joins two char pushes into a word push.
15320
15321 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
15322
15323         * support/cpp2/Makefile.in (install): Added creation of dest dir.
15324
15325         * support/makebin/Makefile (install): Added creation of dest dir.
15326
15327 2001-10-24 Karl Bongers <karl AT turbobit.com>
15328
15329         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
15330
15331 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
15332
15333         * src/z80/ralloc.c: Turned off faulty pack for one use.
15334
15335         * src/z80/peeph-gbz80.def: Removed redundent restart options.
15336
15337         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
15338
15339 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
15340
15341         * support/regression/Makefile: Improved clean
15342
15343         * support/regression/ports/gbz80/spec.mk: Added clean
15344
15345         * support/regression/ports/host/spec.mk: Added clean
15346
15347         * support/regression/ports/z80/spec.mk: Added clean
15348
15349         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
15350
15351         * support/regression/ports/mcs51/timeout.c: little improvements
15352
15353 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
15354
15355         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
15356
15357         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
15358
15359         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
15360
15361 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
15362
15363         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
15364
15365         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
15366
15367 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
15368         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
15369
15370         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
15371
15372         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
15373
15374         * src/mcs51/main.c (_linkCmd): Added bin path to command.
15375
15376         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
15377
15378         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
15379
15380         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
15381
15382         * support/regression/tests/longor.c: Added.
15383
15384 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
15385
15386         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
15387
15388         * as/mcs51/aslink.h: define PATH_MAX
15389
15390         * as/mcs51/asm.h: define PATH_MAX
15391
15392         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
15393
15394         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
15395
15396         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
15397
15398         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
15399
15400         * src/SDCCglobl.h: define PATH_MAX
15401
15402         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
15403
15404         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
15405
15406 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
15407
15408         * src/z80/gen.c (gencjneshort): Fixed
15409
15410         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
15411
15412 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
15413
15414         * support/regression/tests/bug-469671.c: Added.
15415
15416         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
15417
15418 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
15419
15420         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
15421
15422         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
15423
15424 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
15425
15426         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
15427
15428         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
15429
15430         * src/device/lib/_mullong.c : removed hint: nooverlay bug
15431
15432         * src/device/lib/_divuint.c : removed hint: nooverlay bug
15433
15434         * src/device/lib/_divulong.c: removed hint: nooverlay bug
15435
15436         * src/device/lib/_moduint.c : removed hint: nooverlay bug
15437
15438         * src/device/lib/_modulong.c: removed hint: nooverlay bug
15439
15440 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
15441
15442         * 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.
15443
15444         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
15445
15446         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
15447
15448 2001-10-07    <johan AT FRIJA>
15449
15450         * device/lib/gets.c (gets): fixed the return value.
15451
15452 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
15453         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
15454
15455         * 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.
15456
15457         * 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.
15458
15459         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
15460
15461         * src/pic/gen.c: Removed Safe_strdup.
15462
15463         * configure.in: Added option to enable libgc support.
15464
15465         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
15466         (bitVectUnion): Optimised.
15467         (bitVectIntersect): Optimised.
15468         (bitVectBitsInCommon): Optimised.
15469         (bitVectCplAnd): Optimised.
15470
15471         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
15472
15473 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
15474
15475         * src/SDCCmain.c: distinguish between assembler debug and plain options
15476
15477         * src/avr/main.c:   remove standard assembler options
15478
15479         * src/ds390/main.c: remove standard assembler options
15480
15481         * src/mcs51/main.c: remove standard assembler options
15482
15483         * src/port.h: removed "PENDING" comment
15484
15485 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
15486
15487         * src/device/lib/_mulint.c  : new, with assember functions
15488
15489         * src/device/lib/_mullong.c : new, with assember functions
15490
15491         * src/device/lib/_divuint.c : with assember functions
15492
15493         * src/device/lib/_divsint.c : with assember functions
15494
15495         * src/device/lib/_divulong.c: with assember functions
15496
15497         * src/device/lib/_divslong.c: with assember functions
15498
15499         * src/device/lib/_moduint.c : with assember functions
15500
15501         * src/device/lib/_modsint.c : with assember functions
15502
15503         * src/device/lib/_modulong.c: with assember functions
15504
15505         * src/device/lib/_modslong.c: with assember functions
15506
15507         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
15508
15509         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
15510
15511         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
15512                                       replaced _mululong.c and _mulslong.c by _mullong.c
15513
15514 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
15515
15516         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
15517
15518 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
15519
15520         * src/SDCCglue.c: test, if win32api is available for MINGW
15521
15522 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
15523
15524         * src/SDCCsymt.c: no more _modifier in printTypeChain()
15525         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
15526         * support/regression/ports/gbz80/spec.mk: removed GENERIC
15527         * support/regression/ports/host/spec.mk: removed GENERIC
15528         * support/regression/ports/mcs51/spec.mk: removed GENERIC
15529         * support/regression/ports/z80/spec.mk: removed GENERIC
15530
15531 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
15532
15533         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
15534
15535         * support/regression/tests/bug-467035.c: Created.
15536
15537 2001-10-01    <johan AT FRIJA>
15538
15539         * src/SDCC.y: fixed bug #466586 part 1
15540
15541 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
15542
15543         * SDCCicode.c: z80 has no generic pointers
15544         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
15545
15546 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
15547
15548         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
15549
15550 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
15551
15552         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
15553
15554         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
15555
15556 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
15557
15558         * configure.in: Fixed up so that ucsim is only configured once.
15559
15560         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
15561
15562         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
15563         (getPathDifference): As above.
15564
15565         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
15566
15567         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
15568
15569 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
15570         * .version: Updated to 2.3.1
15571
15572         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
15573         Added copyright header.
15574
15575         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
15576         (assemble): Added support for macro based assembler commands.
15577         (linkEdit): Added support for macro based linker commands.
15578         (preProcess): Changed the pre-processor to use macros.
15579         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
15580         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
15581
15582         * device/lib/z80/crt0.s: Added module name for debugging.
15583
15584 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
15585
15586         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
15587
15588         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
15589
15590         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
15591
15592         * src/Makefile.in: Added SDCCmacro and SDCCutil
15593
15594 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
15595
15596         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
15597
15598 2001-09-16    <johan AT FRIJA>
15599
15600         * 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.
15601
15602 2001-09-15    <johan AT FRIJA>
15603
15604         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
15605         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
15606
15607 2001-09-11    <johan AT FRIJA>
15608
15609         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
15610
15611 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
15612
15613         * support/regression/tests/bug-460444.c: Added test case.
15614
15615         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
15616         (genCast): Added justification for all of the asserts.
15617
15618 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
15619
15620         * support/regression/support.c: _xdata replaced by xdata
15621
15622         * support/regression/spec.mk: removed _generic
15623
15624 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
15625
15626         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
15627
15628         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
15629         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
15630
15631         * src/z80/peeph.def: Added a rule to optimise shift then compare.
15632
15633         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
15634
15635         * support/regression/tests/bug-460010.c: Added test case.
15636
15637         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
15638
15639 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
15640
15641         * support/regression/Makefile: inter-port-clean adjusted for mcs51
15642
15643         * support/regression/testfwk.c: removed workaround for bug #436344
15644
15645         * support/regression/tests/bp.c: use less memory with mcs51
15646
15647         * support/regression/tests/bug-441448.c: use less memory
15648
15649         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
15650
15651         * support/regression/collate-results.py: typo
15652
15653 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
15654
15655         * support/regression/tests/fetchoverlap.c: Added new test case.
15656
15657         * support/regression/tests/bp.c: Added new test case.
15658
15659         * support/regression/tests/bug-448984.c: Added new test case.
15660
15661         * support/regression/tests/pow2shifts.c: Added new test case.
15662
15663         * src/z80/gen.c: Turned off the noise it normally generates for the release.
15664         (genlshTwo): Fixed right shift for count > 8.
15665
15666         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
15667
15668 2001-09-08    <johan AT FRIJA>
15669
15670         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
15671
15672 2001-09-07    <johan AT FRIJA>
15673
15674         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
15675
15676         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
15677
15678 2001-09-06    <johan AT FRIJA>
15679
15680         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
15681         * bernhard noted me at this: "() equals to (void)" (1.38)
15682
15683 2001-09-05    <johan AT FRIJA>
15684
15685         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
15686
15687 2001-09-04    <johan AT FRIJA>
15688
15689         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
15690
15691
15692 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
15693
15694         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
15695
15696 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
15697
15698         * link/z80/aslink.h: Fixed path for PATH_MAX
15699
15700 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
15701
15702         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
15703
15704         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
15705
15706         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
15707
15708         * 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.
15709
15710 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
15711
15712         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
15713         (genCmp): Fixed up genCmp for the GB with longs.
15714
15715         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
15716
15717         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
15718
15719         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
15720
15721         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
15722
15723 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
15724
15725         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
15726
15727 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
15728
15729         * 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.
15730
15731         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
15732
15733 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
15734
15735         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
15736
15737         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
15738
15739 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
15740
15741   * sim/ucsim/configure:    little improvement of Cygwin-detection
15742   * sim/ucsim/configure.in: little improvement of Cygwin-detection
15743   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
15744   * support/regression/tests/bug-221100.c: small changes for mcs51
15745   * support/regression/tests/bug-221168.c: small changes for mcs51
15746   * support/regression/tests/bug-227710.c: small changes for mcs51
15747   * support/regression/tests/staticinit.c: small changes for mcs51
15748   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
15749   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
15750   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
15751
15752 $Revision$