* src/SDCCast.c (createIvalStruct): fixed bug 1466761
[fw/sdcc] / ChangeLog
1 2008-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
2
3         * src/SDCCast.c (createIvalStruct): fixed bug 1466761
4
5 2008-02-21 Borut Razem <borut.razem AT siol.net>
6
7         * support/regression/Makefile.in,
8           support/regression/ports/ds390/spec.mk,
9           support/regression/ports/hc08/spec.mk,
10           support/regression/ports/mcs51-common/spec.mk,
11           support/regression/ports/pic14/spec.mk,
12           support/regression/ports/pic16/spec.mk,
13           support/regression/ports/ucz80/spec.mk,
14           support/regression/ports/xa51/spec.mk:
15           added CFLAGS when compiling timeout
16
17 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
18
19         * support/regression/tests/bugs-1596270-1736867.c: Regression test for #1596270, #1736867
20
21 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
22
23         * src/SDCClrange.c (findPrevUse): fixed bug 1888147
24         * support/regression/tests/bug1888147.c: new, added
25
26 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
27
28         * src/z80/gen.c: fixed bugs #1596270, #1736867
29
30 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
31
32         * src/z80/gen.c: fixed bug in register pair loading when swapping register contents,
33           mostly fixes #1596270
34
35 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
36
37         * src/z80/peeph.def,
38         * src/z80/peeph-z80.def: moved peephole that breaks gbz80 to z80-specific peepholes,
39           fixes #1806565
40
41 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
42
43         * src/SDCCpeeph.c (operandBaseName): added check for @Ri
44         * src/mcs51/peeph.def (rule 177.c): added operandsNotRelated(%1 %3)
45           fixes bug 1739475, thanks Robert Larice
46           (rule 271): new, added
47
48 2008-02-18 Borut Razem <borut.razem AT siol.net>
49
50         * sim/ucsim/s51.src/Makefile.in: fixed error made in previous commit
51
52 2008-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
53
54         * src/SDCCmain.c (linkEdit): emit -z when using --debug for z80
55
56 2008-02-17 Raphael Neider <rneider AT web.de>
57
58         * src/pic16/genarith.c,
59         * src/pic16/gen.c,
60         * src/pic16/gen.h,
61         * src/pic16/genutils.c: removed unused legacy code,
62           removed unused fields from struct asmop and struct _G
63
64 2008-02-17 Raphael Neider <rneider AT web.de>
65
66         * src/pic16/gen.c (AccRsh): cosmetic changes,
67           (shiftR1Left2ResultSigned,shiftR1Left2Result,shiftL1Left2Result,
68           genRightShiftLiteral): fixed to work with SFRs as result by
69           assigning only once to result,
70           removed a lot of unused/excluded code fragments
71
72 2008-02-17 Raphael Neider <rneider AT web.de>
73
74         * device/include/pic/pic16f88.h,
75         * device/include/pic/pic16f886.h,
76         * device/include/pic/pic16f887.h: added TRISA6 and TRISA7
77
78 2008-02-17 Borut Razem <borut.razem AT siol.net>
79
80         * src/z80/peeph.def: applied patch
81           #1893626: Optimize tail calls on Z80, thanks to Philipp Krause
82         * src/z80/gen.c, src/z80/peeph.def: applied patch
83           #1893510: Improve logical left shift on Z80, thanks to Philipp Krause
84         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
85           sim/ucsim/s51.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
86           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
87           sim/ucsim/main_in.mk: renamed libutil.a to libucsimutil.a in order to
88           enable compilation on Mac OS X 10.5 (Leopard) and XCode v3.0
89
90 2008-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
91
92         * as/link/mcs51/aslink.dsp: removed SDK define
93         * as/link/z80/clean.mk: brought in sync with other ports
94         * as/link/z80/lklibr.c (SdccLib, fndsym): handle the dflag here too
95         * as/hc08/Makefile.bcc,
96         * as/mcs51/Makefile.bcc,
97         * as/z80/Makefile.bcc: noice.c was moved to as/asxxsrc/
98         * src/z80/main.c (_setValues): use the now capitalized -Z,
99           (z80_port, gbz80_port): generate debug information when asked
100
101 2008-02-16 Borut Razem <borut.razem AT siol.net>
102
103         * as/z80/asmain.c, as/z80/asm.h, as/z80/asdata.c,
104           as/link/z80/lkmain.c, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
105           as/z80/Makefile.in. as/z80/Makefile.bcc:
106           applied patch #1893393: patch for as-z80 and link-z80 to generate
107           cdb, thanks to Armin Diehl
108         * as/*/asnoice.c, as/hc08/as_hc08.dsp, as/hc08/Makefile.in,
109           as/mcs51/asx8051.dsp, as/mcs51/Makefile.in:
110           asnoice.c moved to as/asxxsrc/asnoice.c
111         * src/z80/peeph-gbz80.def: applied patch
112           #1880235: Z80 return peephole, thanks to Philipp Krause
113
114 2008-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
115
116         * .version,
117         * doc/sdccman.lyx: bumped version to 2.7.5
118         * src/SDCCsymt.c (compareType, comparePtrType): fixed bug 1281583
119
120 2008-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
121
122         * device/include/pic16/stdlib.h,
123         * device/lib/pic16/libc/stdlib/ltoa.c,
124         * device/lib/pic16/libc/stdio/vfprintf.c: ascii strings are char*
125
126 2008-02-13 Borut Razem <borut.razem AT siol.net>
127
128         * src/SDCCmain.c, src/SDCCglue.c: fixed --c1mode
129         * src/pic16/glue.c, src/SDCCast.c, src/SDCCast.h, src/SDCCBBlock.c,
130           src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c, src/SDCCloop.c,
131           src/SDCCopt.c,  src/SDCCval.c:
132           fixed bug #1890273: SDCC Warning 154 shows wrong filename
133
134 2008-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
135
136         * src/SDCCsymt.c (compareType): fixed bug 1309013
137
138 2008-02-09 Borut Razem <borut.razem AT siol.net>
139
140         * src/SDCCval.c, src/SDCCval.h:
141           code cleaning, added function constChrVal()
142         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c, src/SDCCast.c, src/SDCC.y:
143           call constChrVal() instead constVal()
144
145 2008-02-01 Maarten Brock <sourceforge.brock AT dse.nl>
146
147         * src/SDCCast.c (resolveSymbols): added reentrancy check for parameters
148           of function pointer
149         * src/SDCCerr.h,
150         * src/SDCCerr.c: changed warning W_NONRENT_ARGS to error E_NONRENT_ARGS
151         * support/regression/tests/absolute.c: added TestStruct TestVar (see also
152           bug 1859853)
153
154 2008-02-01 Raphael Neider <rneider AT web.de>
155
156         * device/include/pic/pic16f886.h,
157         * device/include/pic/pic16f887.h: added RA6 and RA7
158
159 2008-01-24 Raphael Neider <rneider AT web.de>
160
161         * device/include/pic/pic16f88.h: added RA6 and RA7
162         * device/lib/pic/libdev/disabled_pic16f886.c,
163         * device/lib/pic/libdev/disabled_pic16f887.c: renamed and enabled
164
165         * src/pic16/devices.inc,
166         * device/include/pic16/pic18f2423.h,
167         * device/include/pic16/pic18f2523.h,
168         * device/include/pic16/pic18fregs.h,
169         * device/lib/pic16/pics.all
170         * device/lib/pic16/libdev/pic18f2423.c,
171         * device/lib/pic16/libdev/pic18f2523.c: added 18f2423 and 18f2523
172         * device/lib/pic16/libio/i2c.ignore,
173         * device/lib/pic16/libio/usart.ignore,
174         * device/lib/pic16/libio/adc.ignore: ignore new devices
175
176 2008-01-23 Maarten Brock <sourceforge.brock AT dse.nl>
177
178         * src/SDCCast.c (createRMW): fixed bug 1582651
179
180 2008-01-20 Borut Razem <borut.razem AT siol.net>
181
182         * src/SDCCcse.c: partially fixed enhancement request
183           #1793872 - multiply by -1 not collapsed
184         * support/regression/tests/arithcsi.c: added regression test
185
186 2008-01-19 Maarten Brock <sourceforge.brock AT dse.nl>
187
188         * as/mcs51/asx8051.dsp: removed define SDK
189         * as/mcs51/i51mch.c (machine): fixed bug 1865114
190         * device/include/asm/ds390/features.h: fixed bug with ds390 & stack-auto
191         * as/link/lklex.c,
192         * as/link/mcs51/lkmain.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
193           cosmetic changes, brought more in sync, changed old K&R to ANSI
194
195 2008-01-13 Borut Razem <borut.razem AT siol.net>
196
197         * support/scripts/sdcc.nsi: added Uninstall/reinstall page, ...
198         * src/SDCCicode.c: fixed bug #1870216 - Error 122: dividing by zero
199
200 2007-12-30 Borut Razem <borut.razem AT siol.net>
201
202         * src/pic16/gen.c: fixed implementation of bitwise operations for
203           pic16 target
204         * support/regression/tests/bitwise.c: added test cases
205
206 2007-12-29 Borut Razem <borut.razem AT siol.net>
207
208         * src/SDCCasm.[ch]: renamed from asm[ch], use dbuf_getline(), ...
209         * src/src.dsp, src/Makefile.bcc, src/Makefile.in, src/common.h,
210           src/SDCCglue.c, src/xa51/main.c: asm.[ch] renamed to SDCCasm.[ch]
211         * support/Util/dbuf_string.[ch]: added function dbuf_getline()
212         * src/ds390/gen.c, src/hc08/gen.c, src/mcs51/gen.c, src/pic16/gen.c,
213           src/pic/gen.c, src/z80/gen.c, src/xa51/gen.c, src/pic16/ralloc.c,
214           src/pic16/pcode.[ch]: added const qualifier
215         * as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
216           as/mcs51/Makefile.bcc, as/mcs51/Makefile.in, as/mcs51/asx8051.dsp,
217           as/z80/Makefile.bcc, as/z80/Makefile.in, as/z80/as_gbz80.dsp,
218           as/z80/as_z80.dsp: added dbuf.[ch] and dbuf_string[ch] to project
219         * as/asxxsrc/aslex.c: use dbuf_getline()
220         * as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/asm.h, as/hc08/m08adr.c,
221           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/asm.h,
222           as/mcs51/i51adr.c, as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c,
223           as/z80/asm.h, as/z80/z80adr.c:
224           changed type of ib and ip to const char *
225
226 2007-12-28 Borut Razem <borut.razem AT siol.net>
227
228         * as/asxxsrc/aslex.c: moved from as/mcs51/aslex.c;
229           introduced (readlin) - long lines are turuncated
230         * as/hc08/as_hc08.dsp, as/mcs51/asx8051.dsp, as/z80/as_gbz80.dsp,
231           as/z80/as_z80.dsp, as/hc08/Makefile.in, as/mcs51/Makefile.in,
232           as/z80/Makefile.in: moved aslex.c to asxxsrc
233         * as/hc08/aslex.c, as/z80/aslex.c: deleted
234         * as/hc08/asmain.c, as/mcs51/asmain.c:
235           added missing initialization of a_addr field
236         * support/regression/tests/long_asm_line.c: added regtest for long
237           assembler line
238
239 2007-12-22 Borut Razem <borut.razem AT siol.net>
240
241         * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
242
243 2007-12-20 Maarten Brock <sourceforge.brock AT dse.nl>
244
245         * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang
246
247 2007-12-16 Borut Razem <borut.razem AT siol.net>
248
249         * device/include/pic16/stdbool.h: removed, since already exists in
250          device/include/; this also fixes bitopcse.c regression test for pic16
251          target
252         * support/regression/fwk/inclusw/testfwk.h: added macro ASSERT_FAILED
253         * src/pic16/glue.c: fixed bug #1851855: generic static pointer
254           dereference doesn't work; covered by regression test bug1399290
255
256 2007-12-05 Borut Razem <borut.razem AT siol.net>
257
258         * doc/sdccman.lyx: fixed bug #1844509 - Correction to Manual 4.6.9
259           Adding new PIC16
260
261 2007-12-01 Borut Razem <borut.razem AT siol.net>
262
263         * sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/mem.cc:
264           corrected handling of the highest_valid_address
265
266 2007-11-17 Raphael Neider <rneider AT web.de>
267
268         * src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
269         * src/pic/glue.c (picglue): emit .file if --debug is given
270
271 2007-11-17 Raphael Neider <rneider AT web.de>
272
273         * src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
274         care when left or right operand resides in result, fixes #1830220
275
276 2007-11-17 Borut Razem <borut.razem AT siol.net>
277
278         * src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
279           #983491 - "Merge duplicate strings function is ineffective"
280         * support/regression/tests/bug-983491.c: regtest disabled
281         * as/asxxsrc: created
282           as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
283           as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
284           as/z80/assym.c, as/hc08/asstore.c, as/mcs51/asstore.c: deleted
285           as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
286           as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
287           as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
288           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
289           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
290           as/link/z80/linkz80.dsp, as/mcs51/Makefile.bcc, as/mcs51/Makefile.in,
291           as/mcs51/asm.h, as/mcs51/asx8051.dsp, as/z80/Makefile.bcc,
292           as/z80/Makefile.in, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
293           as/z80/Makefile.as_hc08, as/mcs51/Makefile.asx8051: modified
294           created as/asxxsrc directory, assym.c and strcpi.c moved into it
295
296 2007-11-15 Maarten Brock <sourceforge.brock AT dse.nl>
297
298         * device/include/stdarg.h: added and removed some casts
299         * src/SDCCsymt.c (compareType): Fully check types between generic and
300           non-generic pointers, also accept ptr-ptr to void-ptr assignments
301
302 2007-11-13 Borut Razem <borut.razem AT siol.net>
303
304         * support/regression/tests/bug-1817005.c:
305           added regtest for bug #1817005 - as-z80 chokes on long labels
306
307 2007-11-12 Borut Razem <borut.razem AT siol.net>
308
309         * as\z80\asmain.c, as\z80\asm.h, as\z80\assym.c, as\z80\asdata.c,
310           as\z80\asout.c, as\z80\aslist.c:
311           fixed bug #1817005 - as-z80 chokes on long labels
312
313 2007-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
314
315         * as/hc08/asmain.c,
316         * as/z80/asmain.c: cosmetic changes
317         * as/hc08/alloc.h,
318         * as/mcs51/alloc.h,
319         * as/z80/alloc.h: removed
320         * as/hc08/assym.c,
321         * as/mcs51/assym.c: replaced alloc.h with stdlib.h
322         * as/link/aslink.h: added LKDIRSEP and, LKDIRSEPSTR
323         * as/link/hc08/Makefile.in,
324         * as/link/mcs51/Makefile.in,
325         * as/link/z80/Makefile.in: added -DUNIX to CFLAGS
326         * as/link/lklex.c,
327         * as/link/mcs51/lkarea.c,
328         * as/link/mcs51/lkmain.c: cosmetic changes
329         * as/link/hc08/lklibr.c,
330         * as/link/z80/lklibr.c,
331         * as/link/mcs51/lklibr.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
332           used cygwin_conv_to_full_posix_path,
333           added warnings, cosmetic changes, brought more in sync
334           changed old K&R into ANSI function declarations
335         * as/link/z80/lklibr.c (loadAdb): added
336         * as/link/z80/lkmain.c: removed -- option from usage text
337
338 2007-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
339
340         * src/mcs51/gen.c (outBitC): optimized for no result
341
342 2007-10-31 Borut Razem <borut.razem AT siol.net>
343
344         * src/SDCCsymt.c: fixed (hopeful properly) bug
345           #1805702 - order of extern matters
346         * support/regression/tests/bug-1805702.c: enabled regtest for bug
347           #1805702
348
349 2007-10-29 Borut Razem <borut.razem AT siol.net>
350
351         * src/SDCCsymt.c: reverted bad fixed of bug #1805702
352           - order of extern matters
353         * support/regression/tests/bug-1805702.c: disabled regtest for bug
354           #1805702
355
356 2007-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
357
358         * src/ds390/peeph.def: replaced 24bitModeAndPortDS390 by
359           24bitMode, portIsDS390
360         * src/mcs51/gen.c (genOr): optimized for RFE 1750727
361         * src/SDCCpeeph.c (flat24bitModeAndPortDS390): removed
362           (notVolatileVariable): also check sloc names,
363           (callFuncByName): moved ftab[] out of function and sorted it by use
364
365 2007-10-28 Maarten Brock <sourceforge.brock AT dse.nl>
366
367         * device/include/stdarg.h: fixed bug in va_start macro for --xstack
368         * src/hc08/gen.c (aopForRemat): aop->aopu.aop_immd.from_cast_remat not set,
369           aop->aopu.aop_immd.aop_immd2 not filled with (generic) pointer type
370         * src/SDCCicode.c (geniCodeCast): fixed bug 880197
371         * support/regression/tests/bug-880197.c: new, added
372
373 2007-10-28 Borut Razem <borut.razem AT siol.net>
374
375         * support/regression/Makefile.in,
376           support/regression/ports/mcs51-large/spec.mk,
377           support/regression/ports/mcs51-xstack-auto/spec.mk,
378           support/regression/ports/mcs51-stack-auto/spec.mk,
379           support/regression/ports/mcs51-medium/spec.mk,
380           support/regression/ports/mcs51-common/spec.mk,
381           support/regression/ports/mcs51-common/*,
382           support/regression/ports/mcs51-small/*:
383           mcs51 renamed to mcs51-common, created mcs51-small
384         * src/SDCCsymt.c: fixed bug #1805702 - order of extern matters
385         * support/regression/tests/bug-1805702.c: added regtest for bug
386           #1805702
387
388 2007-10-26 Maarten Brock <sourceforge.brock AT dse.nl>
389
390         * src/mcs51/peeph.def: moved rules 257.x to 253.x and re-enabled 253.b,
391           added new rules 265 - 270
392         * support/regression/tests/bug1721024.c:new, added
393         * support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
394           introduced new test-mcs51 to run all mcs51 tests
395
396 2007-10-25 Maarten Brock <sourceforge.brock AT dse.nl>
397
398         * support/regression/tests/bug1816470.c: new, added
399
400 2007-10-21 Maarten Brock <sourceforge.brock AT dse.nl>
401
402         * src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
403           propagate for *,+,- with float, fixed bug 1816470
404           (decorateType): cast to resultTypeProp instead of resultType
405
406 2007-10-19 Borut Razem <borut.razem AT siol.net>
407
408         * src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
409           function is ineffective" for pic16 tareget
410         * support/scripts/listerr.c: corrected include path
411         * device/lib/_itoa.c: fixed bug #1806402 - _itoa and _uitoa leak to
412           adjacent memory
413
414 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
415
416         * support/regression/tests/using.c: new, added
417         * support/regression/tests/vaargs.c: fixed and enabled test
418
419 2007-10-18 Borut Razem <borut.razem AT siol.net>
420
421         * src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
422           is ineffective
423         * support/regression/tests/bug-983491.c: added regtest for bug #983491
424
425 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
426
427         * doc/sdccman.lyx: documented option --Werror
428         * src/SDCCsymt.c (checkFunction): fixed bug 1815418 by setting
429           RegBankUsed[] earlier
430
431 2007-10-14 Maarten Brock <sourceforge.brock AT dse.nl>
432
433         * device/include/mcs51/p89lpc938.h: new, added, thanks Kyle Guinn
434         * src/pic/glue.c,
435         * src/SDCCval.c,
436         * src/SDCCast.c,
437         * src/SDCCast.h: replaced AST_LIT_VALUE with AST_FLOAT_VALUE and
438           AST_ULONG_VALUE
439         * src/SDCCast.c (decorateType): improved optimization of tri-op
440         * src/SDCCerr.c (vwerror, setWError),
441         * src/SDCCerr.h,
442         * src/SDCCmain.c (parseCmdLine): added option --Werror to treat all
443           warnings as errors, thanks Stas Sergeev for PATCH 1813211
444
445 2007-10-13 Maarten Brock <sourceforge.brock AT dse.nl>
446
447         * src/mcs51/gen.c (leftRightUseAcc): use macro IS_OP_ACCUSE
448         * src/SDCCast.c (decorateType): optimize bit=cond?1:0, RFE 1738430
449         * support/regression/tests/bug-223113.c,
450         * support/regression/tests/bug-426632.c,
451         * support/regression/tests/bug-468811.c,
452         * support/regression/tests/bug-477835.c,
453         * support/regression/tests/bug-478094.c,
454         * support/regression/tests/bug-499644.c,
455         * support/regression/tests/bug-524209.c,
456         * support/regression/tests/bug-524211.c,
457         * support/regression/tests/packcast.c,
458         * support/regression/tests/structidx.c: added empty tests
459         * support/regression/tests/bug-607243.c: enabled test
460
461 2007-10-06 Borut Razem <borut.razem AT siol.net>
462
463         * .version, doc/sdccman.lyx: bumped version to 2.7.4 to indicate the full
464            support of universal binaries on Mac OS X
465
466 2007-10-02 Borut Razem <borut.razem AT siol.net>
467
468         * src/SDCCval.h: unified double2ul macro for all platforms
469         * src/SDCCval.c: fixed bug #1777758 - applied Maarten's patch
470         * support/regression/tests/bitwise.c: added regtest for bug #1777758
471
472 2007-09-30 Borut Razem <borut.razem AT siol.net>
473
474         * src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
475           platforms
476         * sdcc_vc_in.h: enabled warnings
477         * src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
478           unsigned type, result still unsigned
479         * src/mcs51/peep.c: fixed gcc warning: suggest parentheses around && within ||
480
481 2007-09-28 Raphael Neider <rneider AT web.de>
482
483         * src/pic/device.c (find_device): prevent buffer underflow error
484         * src/pic/pcoderegs.c (OptimizeRegUsage): avoid dereferencing
485           the just destroyed list entry
486
487 2007-09-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
488
489         * doc/sdccman.lyx: there's a dedicated wiki page for cmake and sdcc, thanks
490           Alexander Neundorf
491
492 2007-09-18 Borut Razem <borut.razem AT siol.net>
493
494         * src/SDCCval.c: fixed MSVC warning C4146: unary minus operator
495          applied to unsigned type, result still unsigned
496
497 2007-09-17 Borut Razem <borut.razem AT siol.net>
498
499         * src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c,
500           src/SDCCicode.c, src/SDCCopt.c, src/SDCCsymt.c, src/SDCCval.c,
501           src/SDCCval.h, src/hc08/gen.c, src/avr/gen.c, src/ds390/gen.c,
502           src/mcs51/gen.c, src/pic/gen.c, src/pic/genarith.c, src/pic/glue.c,
503           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/genarith.c,
504           src/pic16/genutils.c, src/pic16/glue.c, src/pic16/main.c,
505           src/z80/gen.c, src/z80/ralloc.c:
506           fixed bug #1739860 - sdcc does not work correctly on some platforms
507           (not finished)
508           introduced and used ulFromVal(), double2ul(), used strtod() instead sscanf()
509
510 2007-09-17 Raphael Neider <rneider AT web.de>
511
512         * src/pic16/device.c: reverted to previous version
513         * device/lib/pic16/Makefile.common.in: quieten gpasm via -Wa,-q
514
515 2007-09-16 Raphael Neider <rneider AT web.de>
516
517         * src/pic16/device.c (pic16_dump_usection): do not reserve 0 bytes,
518           as this raises a ton of gpasm warnings, just emit a second label
519         * src/pic16/devices.inc,
520         * device/lib/pic16/pics.all,
521         * device/lib/pic16/libdev/pic18f2585.c,
522         * device/lib/pic16/libdev/pic18f2680.c,
523         * device/lib/pic16/libdev/pic18f2682.c,
524         * device/lib/pic16/libdev/pic18f2685.c,
525         * device/lib/pic16/libdev/pic18f4585.c,
526         * device/lib/pic16/libdev/pic18f4680.c,
527         * device/lib/pic16/libdev/pic18f4682.c,
528         * device/lib/pic16/libdev/pic18f4685.c,
529         * device/include/pic16/pic18f2585.h,
530         * device/include/pic16/pic18f2680.h,
531         * device/include/pic16/pic18f2682.h,
532         * device/include/pic16/pic18f2685.h,
533         * device/include/pic16/pic18f4585.h,
534         * device/include/pic16/pic18f4680.h,
535         * device/include/pic16/pic18f4682.h,
536         * device/include/pic16/pic18f4685.h,
537         * device/include/pic16/pic18fregs.h: added 18f2585, 18f2680,
538           18f2682, 18f2685, 18f4585, 18f4680, 18f4682, 18f4685,
539           patch contributed by Anton Strobl, applied with changes
540
541 2007-09-16 Raphael Neider <rneider AT web.de>
542
543         * device/include/pic16/pic18f2431.h,
544         * device/include/pic16/pic18f25j10.h,
545         * device/include/pic16/pic18f4431.h,
546         * device/include/pic16/pic18f45j10.h: adopted common include style
547         * device/include/pic16/pic18f1320.h,
548         * device/include/pic16/pic18f2320.h,
549         * device/include/pic16/pic18f2525.h,
550         * device/include/pic16/pic18f4320.h,
551         * device/include/pic16/pic18f4525.h: NEW, just include proper .h file
552         * device/include/pic16/pic18fregs.h: prepared for automatic include
553           file selection by having DEVICE.h for every DEVICE
554         * device/lib/pic16/libdev/pic18f2320.c,
555         * device/lib/pic16/libdev/pic18f4320.c: just include proper .c file
556
557         * device/lib/pic16/configure.in,
558         * device/lib/pic16/configure: use rm -rf instead of rmdir
559         * device/lib/pic16/Makefile.in: use RMDIR to remove build directories
560         * device/lib/pic16/libc/stdlib/free.c: avoid warning on pointer cast
561
562 2007-09-09 Borut Razem <borut.razem AT siol.net>
563
564         * src/SDCCmain.c, src/SDCCutil.c: print newline after printVersionInfo(),
565           distingush between i386 and ppc Mac OS X versions
566
567 2007-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
568
569         * src/mcs51/gen.c (genReceive): fixed bug 1788177
570         * support/regression/tests/bug1788177.c: new, added
571
572 2007-09-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
573
574         * doc/sdccman.lyx: mentioned d52 and cmake, customizing startup code
575         * device/include/mcs51/lint.h added keyword __naked
576
577 2007-09-04 Maarten Brock <sourceforge.brock AT dse.nl>
578
579         * src/pic16/glue.c,
580         * src/pic/glue.c,
581         * src/SDCCmem.h: removed maxRegBank
582         * src/SDCCmem.c (allocVariables): removed maxRegBank and moved setting
583           RegBankUsed[] to checkFunction() in SDCCsymt.c to fix bug 1759839
584         * src/SDCCsymt.c (checkFunction): set RegBankUsed[] here
585         * src/mcs51/peep.c (isCallerSaveFunc, termScanAtFunc): changed function
586           name and behaviour to handle banked functions
587           (scan4op): and use it to fix bug 1786213
588
589 2007-09-03 Raphael Neider <rneider AT web.de>
590
591         * device/include/pic16/pic18f248.h,
592         * device/include/pic16/pic18f258.h,
593         * device/include/pic16/pic18f448.h,
594         * device/lib/pic16/libdev/pic18f248.c,
595         * device/lib/pic16/libdev/pic18f258.c,
596         * device/lib/pic16/libdev/pic18f448.c: fixed TRISEbits,
597           added T0CONbits, fixes #1786891
598
599 2007-08-29 Maarten Brock <sourceforge.brock AT dse.nl>
600
601         * src/ds390/gen.c (genFarPointerSet),
602         * src/hc08/ralloc.c (packRegisters),
603         * src/mcs51/ralloc.c (packRegisters),
604         * src/SDCCcse.c (cseBBlock): check if result is a symbol first to fix
605           bug 1750318
606         * src/SDCCicode.h: POINTER_SET can be true for literals too
607         * support/regression/tests/bug1750318.c: new, added
608
609 2007-08-23 Borut Razem <borut.razem AT siol.net>
610
611         * debugger/mcs51/sdcdb.c: fixed compilation with older readline
612           library versions without the completition functionality
613
614 2007-08-22 Raphael Neider <rneider AT web.de>
615
616         * device/include/pic16/pic18f1220.h,
617         * device/lib/pic16/libdev/pic18f1220.c: applied patch #1776191
618
619 2007-08-12 Borut Razem <borut.razem AT siol.net>
620
621         * debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
622
623 2007-08-11 Borut Razem <borut.razem AT siol.net>
624
625         * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
626           src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
627           support/Util/SDCCerr.[ch] moved to src
628         * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
629           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
630           device/examples/ds390/tinitalk/tinitalk.dsp,
631           device/examples/serialcomm/windows/serialcomm.dsp,
632           support/librarian/librarian.dsp:
633           removed linking of unused odbc32.lib and odbccp32.lib
634         * support/scripts/winres.h:
635           added for compilation with Visual C++ 2005 Express Edition
636
637 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
638
639         * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
640           and CKCON1.
641
642 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
643
644         * sdccconf_in.h: update the endian test so that SPARC Solaris
645           does not throw syntax errors
646
647 2007-08-06 Borut Razem <borut.razem AT siol.net>
648
649         * doc/sdccman.lyx: removed two index entries which prevented the
650           generation of sdcc doc archive
651
652 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
653
654         * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
655           instead of lyx 1.5.0.
656
657 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
658
659         * device/include/hc08/mc68hc908apxx.h: new header contributed by
660           Lucas Loizaga, with minor modifications. Thanks!
661
662 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
663
664         * doc/sdccman.lyx: Documented --acall-ajmp and described new features
665           in sdcclib.
666
667 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
668
669         * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
670           src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
671           with acall/ajmp.
672
673 2007-07-22 Borut Razem <borut.razem AT siol.net>
674
675         * configure.in, configure: re-introduced .version
676         * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
677           the version reverted to 2.7.0
678
679 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
680
681         * configure.in,
682         * doc/sdccman.lyx: bumped version to 2.7.3
683         * device/include/mcs51/compiler.h: fixed elif->else
684         * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
685         * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
686           (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
687            enable accuse for bit operands
688         * src/SDCCmain.c (printVersionInfo),
689         * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
690           environment descriptor
691         * src/SDCCutil.h: added getBuildEnvironment
692         * src/SDCCglue.c (initialComments): use getBuildEnvironment
693         * support/regression/tests/bug1464657.c: enabled test test_Peephole251
694         * support/regression/tests/bug-408972.c: enabled test leftShiftLong
695         * support/regression/tests/bug1348008.c,
696         * support/regression/tests/bug1496419.c,
697         * support/regression/tests/bug1503067.c,
698         * support/regression/tests/preproc.c: added empty tests
699
700 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
701
702         * support/regression/tests/bug1678803.c: new, added
703
704 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
705
706         * as/link/aslink.h,
707         * as/link/hc08/lkihx.c,
708         * as/link/hc08/lkrloc.c,
709         * as/link/mcs51/lkihx.c,
710         * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
711           ihxExtendedLinearAddress
712         * as/link/mcs51/lkrloc.c (relr),
713         * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
714           acall/ajmp, see bug 830513
715
716 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
717
718         * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
719           (cseBBlock): remember aggr2ptr has been used
720         * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
721           (geniCodeAssign): fixed bug 868103
722         * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
723           added operandSize prototype
724         * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
725           (genDataPointerSet): use max of size of right and result,
726           (gencjne): added parameter useCarry for optimization,
727           (genCmpEq): use carry if appropriate,
728           (genXor): check if operand already in carry
729         * support/regression/tests/bug-868103.c: enabled test
730
731 2007-07-12 Raphael Neider <rneider AT web.de>
732
733         * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
734
735 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
736
737         * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
738           from Robert Larice, thanks
739         * support/regression/tests/bitopcse.c,
740         * support/regression/tests/bitvars.c,
741         * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
742         * support/regression/tests/bug-927659.c: enabled test for z80
743         * support/regression/tests/bug1738367.c: added extra tests by Frieder
744         * support/regression/tests/bug1745717.c: new, added
745         * support/regression/tests/literalop.c,
746         * support/regression/tests/nullstring.c: removed storage definitions that
747           are now in testfwk.h
748
749 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
750
751         * device/include/stdbool.h: do not define __bool_true_false_are_defined
752           and bool for targets that do not fully support it.
753         * support/regression/tests/bug1546986.c,
754         * support/regression/tests/bug1723128.c,
755         * support/regression/tests/bug1734654.c,
756         * support/regression/tests/bug1738367.c,
757         * support/regression/tests/constantRange.c: only use bool if allowed
758
759 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
760
761         * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
762           Larice, also handle function pointers
763         * support/regression/tests/bug1749275.c: new, added
764
765 2007-07-03 Borut Razem <borut.razem AT siol.net>
766
767         * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
768           src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
769           #1746528: SDCC should ignore ':' in inline assembler comments
770         * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
771
772 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
773
774         * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
775         * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
776
777 2007-06-29 Borut Razem <borut.razem AT siol.net>
778
779         * src/SDCCmain.c: fixed bug
780           #1744746: SDCC #4867: broken option --xram-size
781
782 2007-06-28 Borut Razem <borut.razem AT siol.net>
783
784         * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
785           find out the endianess of host machine for ucsim
786
787 2007-06-27 Borut Razem <borut.razem AT siol.net>
788
789         * support/regression/generate-cases.py: corrected the file name
790           in warning
791         * configure.in, configure, sdccconf_in.h: find out the endianess of
792           host machine
793         * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
794           negative size
795
796 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
797
798         * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
799
800 2007-06-26 Borut Razem <borut.razem AT siol.net>
801
802         * support/regression/generate-cases.py: display warning if function
803           list is empty; implemented more flexible rule for detection of
804           testing functions, allowing return type 'void' in the same line as
805           the function name in the function definition
806         * support/regression/tests/bug-1654060.c: corrected test
807         * support/librarian/sdcclib.c: fixed warning:
808           format '%s' expects type 'char *', but argument 2 has type 'int'
809
810 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
811
812         * support/librarian/sdcclib.c: Added feature Requests [1510635]
813           Multiple infiles for sdcclib.
814
815 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
816
817         * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
818           bug 1731741
819
820 2007-06-18 Borut Razem <borut.razem AT siol.net>
821
822         * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
823           how to handle comments, so they have to be removed by the
824           preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
825         * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
826           src/pic16/main.c, src/pic/main.c, src/z80/main.c,
827           support/Util/SDCCerr.c, support/Util/SDCCerr.h:
828           table driven option hadling
829
830 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
831
832         * src/SDCCast.c (decorateType),
833         * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
834           iCode to ast level to fix bug 1738367
835         * support/regression/tests/bug1738367.c: new, added
836
837 2007-06-15 Raphael Neider <rneider AT web.de>
838
839         * src/pic16/devices.inc,
840         * device/lib/pic16/pics.all,
841         * device/include/pic16/pic18fregs.h,
842         * device/include/pic16/pic18f[24][45]20.h,
843         * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
844           18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
845         * device/lib/pic16/Makefile.in: faster cleanup
846
847 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
848
849         * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
850
851 2007-06-13 Raphael Neider <rneider AT web.de>
852
853         * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
854
855 2007-06-12 Raphael Neider <rneider AT web.de>
856
857         * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
858           suppress bit defines if NO_BIT_DEFINES is #define'd
859         * device/include/pic/pic*.h: recreated all headers to include
860           conditional bit defines
861         * device/include/pic/pic16f886.h,
862         * device/include/pic/pic16f887.h: fixed based on newer .inc file
863         * device/include/pic/recreate.sh: script to recreate the complete
864           device library files based on the currently supported devices
865
866 2007-06-12 Borut Razem <borut.razem AT siol.net>
867
868         * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
869           support/regression/Makefile.in, support/scripts/build.mak,
870           support/scripts/Makefile.snapshot:
871           use new svn URL scheme
872         * doc/sdccman.lyx: SDCC Wiki moved to
873           http://sdcc.wiki.sourceforge.net/
874
875 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
876
877         * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
878         * support/regression/tests/bug1734654.c: added
879
880 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
881
882         * src/SDCCast.c (decorateType): optimized '?' for equal operands
883         * src/SDCCicode.c (geniCodeConditional): optimization for bit result
884           with literal operands
885
886 2007-06-10 Borut Razem <borut.razem AT siol.net>
887
888         * as/link/z80/lklibr.c: fixed mingw build warning
889           lklibr.c:575: warning: implicit declaration of function 'tolower'
890         * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
891           src/z80/main.c: move target specific options from src/SDCCmain.c
892           to src/<target>/main.c
893
894 2007-06-09 Borut Razem <borut.razem AT siol.net>
895
896         * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
897           removed unused swap_sense; removed outBitCLong, replaced with outBitC
898         * support/regression/tests/bug-1294691.c: added
899
900 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
901
902         * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
903           can also be static, fixes bug 1733438
904         * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
905           have absolute address too
906           (computeType): added optimization for 'cond ? true : false'
907         * support/regression/tests/absolute.c: added test for static absolute var
908
909 2007-06-08 Raphael Neider <rneider AT web.de>
910
911         * src/regression/Makefile: suppress parallel builds, allow easy
912           switching between pic14/pic16 ports
913         * src/regression/picregs.h: added pic14/16 header file switch
914         * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
915           inline.c,nestfor.c,string1.c}: include "picregs.h"
916
917 2007-06-07 Borut Razem <borut.razem AT siol.net>
918
919         * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
920           permanent solution to suppress GCC 4.2.0 c++ warning:
921           deprecated conversion from string constant to `char *'
922           use 'const char *' where ever required
923         * support/regression/generate-cases.py: implemented more flexible rule
924           for detection of testing functions, allowing white-spaces surrounding
925           the function name and the 'void' parameter.
926         * support/regression/tests/constantRange.c,
927           support/regression/tests/scott-compare3.c: fixed failing regression
928           tests, uncovered by implementation of more flexible rule for detection
929           of testing functions
930
931 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
932
933         * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
934
935 2007-06-04 Borut Razem <borut.razem AT siol.net>
936
937         * configure.in, configure, config_vc.awk: sdcc version number is now
938           stored in configure.in; removed .version
939         * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
940           doc/INSTALL.txt: version bumped to 2.7.2
941         * sim/ucsim/configure.in, sim/ucsim/configure:
942           use "read" to read from .version
943
944 2007-06-03 Borut Razem <borut.razem AT siol.net>
945
946         * */Makefile.in: removed annoying warning:
947           Makefile:xx: Makefile.dep: No such file or directory
948
949 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
950
951         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
952           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
953         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
954         * src/SDCCast.c (resultTypePropagate): propagate for '!',
955           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
956           bugfix: only use newBoolLink for bit result type
957         * src/SDCCicode.c (geniCodeLogic): added param tree,
958           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
959           (geniCodeLogicAndOr): use IS_BIT,
960           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
961           (ast2iCode): added tree param to geniCodeLogic for comparisons
962         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
963         * support/regression/tests/bug1723128.c: added test NotZero
964
965 2007-06-01 Borut Razem <borut.razem AT siol.net>
966
967         * SDCPP synchronized with GCC CPP release version 4.2.0,
968           currently the latest release:
969         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
970           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
971           support/cpp2/cppdefault.h, support/cpp2/except.h,
972           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
973           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
974           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
975           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
976           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
977           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
978           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
979           support/cpp2/opts.h, support/cpp2/output.h,
980           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
981           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
982           support/cpp2/system.h, support/cpp2/version.c,
983           support/cpp2/Makefile.in: modified
984         * support/cpp2/opts-common.c: added
985         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
986         * device/lib/pic16/libdev/pic18f[24]5j10.c:
987           search for included source file in local directory
988         * sim/ucsim/configure, sim/ucsim/configure.in:
989           temporary solution to suppress GCC 4.2.0 c++ warning:
990           deprecated conversion from string constant to `char *'
991
992 2007-06-01 Raphael Neider <rneider AT web.de>
993
994         * device/lib/pic/libdev/pic12f683.c,
995         * device/include/pic/pic12f683.h: added GPIO bits
996
997 2007-06-01 Raphael Neider <rneider AT web.de>
998
999         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
1000           quotation marks, clarified role of PIC14 vs. PIC16 ports
1001         * src/pic16/devices.inc,
1002         * device/include/pic16/pic18fregs.h,
1003         * device/include/pic16/pic18f[24][45]j10.h,
1004         * device/lib/pic16/pics.all,
1005         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
1006           18f24j10, 18f25j10, 18f44j10, and 18f45j10
1007         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
1008           for new devices as they are not yet supported by gputils
1009
1010 2007-05-31 Borut Razem <borut.razem AT siol.net>
1011
1012         * Small Device C Compiler 2.7.0 released
1013         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
1014           changed sdcc version to 2.7.1
1015         * support/scripts/sdcc.nsi: added How to create WIN32 release
1016           setup.exe package
1017
1018 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
1019
1020         * doc/sdccman.lyx: documented initialization and allocation of absolute
1021           variables, bit parameter passing, the need for function pointers to be
1022           reentrant and alpha quality support of inline and retrict
1023
1024 2007-05-26 Borut Razem <borut.razem AT siol.net>
1025
1026         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
1027           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
1028         * docs/knownbugs.html: updated
1029
1030 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
1031
1032         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
1033           thanks Jan Waclawek
1034         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
1035           AOP_CRY and ruonly
1036           (gencjneshort): optimized when left is AOP_DIR
1037         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
1038           initializing unions in a struct/array
1039         * support/regression/fwk/include/testfwk.h: added defines for data, near
1040           and far for host and z80
1041         * support/regression/tests/bug1723128.c: new, added
1042
1043 2007-05-22 Borut Razem <borut.razem AT siol.net>
1044
1045         * doc/knownbugs.html: updated
1046
1047 2007-05-21 Raphael Neider <rneider AT web.de>
1048
1049         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
1050           error message instead
1051         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
1052
1053 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
1054
1055         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
1056
1057 2007-05-21 Raphael Neider <rneider AT web.de>
1058
1059         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
1060           closes #1722392
1061         * src/regression/gpsim_assert.h,
1062         * src/regression/Makefile,
1063         * src/regression/pcodeopt.c: regression test for the above fix
1064
1065 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
1066
1067         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
1068           jumps to self, fixed bug 1717281
1069
1070 2007-05-10 Borut Razem <borut.razem AT siol.net>
1071
1072         * support/scripts/gen_known_bugs.pl: cosmetic fix
1073         * doc/knownbugs.html: generated by gen_known_bugs.pl
1074
1075 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1076
1077         * src/SDCCast.c (createFunction): also generate non-inlined version of
1078           function for functions declared as "static inline"
1079         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
1080           function can be inlined after non-inlined version generated.
1081
1082 2007-05-10 Borut Razem <borut.razem AT siol.net>
1083
1084         * support/scripts/gen_known_bugs.pl: added script
1085           which generates knownbugs.html
1086
1087 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
1088
1089         * doc/knownbugs.html: updated for release 2.7.0
1090
1091 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1092
1093         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
1094
1095 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
1096
1097         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
1098           (throughout): updated generating comments
1099         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
1100           (throughout): updated generating comments
1101         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
1102           rule instead of at the second, or it might skip lines when removing the
1103           complete match
1104         * support/regression/tests/bug1714204.c: changed test to foo
1105
1106 2007-05-08 Borut Razem <borut.razem AT siol.net>
1107
1108         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
1109           thanks to SDCC Distributed Compile Farm members,
1110           added Z80 and GBZ80 command line options
1111         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
1112
1113 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
1114
1115         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
1116         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
1117         * support/regression/tests/longlit.c: modified to be tested at all and
1118           to pass the actual test
1119
1120 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1121
1122         * device/include/mcs51/uPSD33xx.h: Added.
1123
1124 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
1125
1126         * device/lib/_gptrput.c,
1127         * device/lib/_gptrget.c: removed old code,
1128          (_gptrgetWord),
1129         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
1130         * support/regression/tests/bug1714204.c: new, added
1131
1132 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1133
1134         * support/regression/tests/regtrack.c: test was never executed
1135           because of the regression test being picky about white spaces.
1136         * device/lib/mcs51/crtclear.asm: added comment
1137
1138 2007-05-06 Raphael Neider <rneider AT web.de>
1139
1140         * device/lib/pic/Makefile.rules,
1141         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
1142           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
1143
1144 2007-05-06 Raphael Neider <rneider AT web.de>
1145
1146         * src/pic16/device.h,
1147         * src/pic16/main.h,
1148         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
1149           _pic16_setDefaultOptions): removed/reordered command-line args
1150         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
1151           devices, regrouped command line args, environment variables),
1152           clarified sone points, added sections on how to add devices to the
1153           PIC14/PIC16 ports
1154
1155 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
1156
1157         * src/z80/peeph.def: fixed bug in rule 2
1158
1159 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
1160
1161         * src/port.h: added TARGET_MCS51_LIKE
1162         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
1163           take advantage of it too
1164         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
1165           (shiftR2Left2Result): Optimized: don't check shifting by 0
1166         * src/z80/peeph-z80.def,
1167         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
1168           modifications, see patch 1700823
1169         * src/mcs51/peep.c (): fixed bug 1712928
1170         * support/regression/tests/bug1712928.c: new, added
1171
1172 2007-05-05 Borut Razem <borut.razem AT siol.net>
1173
1174         * device/lib/pic16/Makefile.common.in,
1175           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
1176           removed bash dependencies
1177
1178 2007-05-01 Borut Razem <borut.razem AT siol.net>
1179
1180         * src/SDCCicode.c:
1181           fixed bug #1710507: --i-code-in-asm makes compile fail
1182           all iCode comments are now one liners
1183         * src/mcs51/gen.c: fixed memory leak
1184
1185 2007-05-01 Raphael Neider <rneider AT web.de>
1186
1187         * device/lib/pic/libdev/*.c
1188         * device/include/pic/*.h: regenerated all device libs from updated
1189           .inc files
1190         * support/scripts/inc2h.pl: documented usage, now uses strict to
1191           catch more bugs
1192
1193 2007-04-30 Borut Razem <borut.razem AT siol.net>
1194
1195         * doc/sdccman.lyx:
1196           fixed bug #1669175: Problem with space in output paths
1197           documented how to use paths with spaces for Windows users
1198
1199 2007-04-29 Borut Razem <borut.razem AT siol.net>
1200
1201         * Fixed svn:eol-style and svn:keywords properties
1202         * src/SDCCval.c: fixed bug
1203           #1592871: Segfault with "large" const arrays of characters
1204           replaced recursion with iteration
1205         * Removed svn:executable property from non-executable files
1206
1207 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
1208
1209         * src/mcs51/gen.c (genRet): fixed bug 1707003
1210
1211 2007-04-27 Raphael Neider <rneider AT web.de>
1212
1213         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
1214           createReachingDefinitions,assignValnums,pic16_destructDF,
1215           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
1216           prevent NULL pointer dereferences
1217         * device/lib/pic/libdev/pic16f886.c,
1218         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
1219           prevent building them, gputils do not really support them yet
1220
1221 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1222
1223         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
1224           helps printf_small. 32 bytes more __idata mem.
1225
1226 2007-04-27 Raphael Neider <rneider AT web.de>
1227
1228         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
1229           return early when pb or pb->pcHead is NULL (patch #1708427)
1230         * src/regression/empty.c,
1231         * src/regression/Makefile: added test with empty functions
1232         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
1233
1234 2007-04-27 Borut Razem <borut.razem AT siol.net>
1235
1236         * src/SDCCast.c: fixed feature request
1237           #1547512: Redundant strings linked when using sizeof("abc")
1238
1239 2007-04-23 Borut Razem <borut.razem AT siol.net>
1240
1241         * doc/sdccman.lyx, src/SDCCmain.c:
1242           peep-hole comments are generated only if --fverbose-asm option is
1243           specified and --no-peep-comments is not, as proposed by Frieder.
1244         * support/regression/Makefile.in: compile regression tests with
1245           --fverbose-asm option so one can "grep" whether a new (or an old)
1246           peephole is (still) applied; requested by Frieder.
1247
1248 2007-04-23 Kevin Buettner <kevin AT buettner.to>
1249
1250         * device/include/pic/pic16f886.h,
1251         * device/include/pic/pic16f887.h,
1252         * device/lib/pic/libdev/pic16f886.c,
1253         * device/lib/pic/libdev/pic16f887.c,
1254         * device/include/pic/pic14devices.txt,
1255         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
1256
1257 2007-04-23 Kevin Buettner <kevin AT buettner.to>
1258
1259         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
1260           fixes #1704666
1261
1262 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1263
1264         * device/lib/_memset.c: assembler version for mcs51
1265
1266 2007-04-22 Borut Razem <borut.razem AT siol.net>
1267
1268         * support/scripts/listerr.c: program to create the list of errors and
1269           warnings list from - added
1270         * doc/sdccman.lyx: removed the note
1271           "For list of warnings and corresponding codes, see err_warn.txt"
1272         * src/SDCCsymt.c: fixed bug #1699804:
1273           Bug with some uses of sizeof(static local array) (MCS51)
1274         * support/regression/tests/bug-1699804.c: added
1275
1276 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
1277
1278         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
1279           (main): added option -i,
1280           (asmbl, case S_INCL): use search_path_fopen,
1281           mostly from patch 1579668 by Peter Miller, thanks
1282         * src/z80/main.c: fixed typo --callee-saves-bc
1283         * device/include/mcs51/compiler.h: added sfrword for Tasking
1284
1285 2007-04-20 Borut Razem <borut.razem AT siol.net>
1286
1287         * src/z80/main.c: replaced reserved keyword asm with asmblr
1288
1289 2007-04-19 Borut Razem <borut.razem AT siol.net>
1290
1291         * src/port.h: use const pointers to strings
1292         * src/SDCCargs.h: declared getStringArg() and getIntArg()
1293         * src/pic16/main.c: include SDCCargs.h
1294         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
1295           const char, since the strings are dynamically allocated
1296         * src/SDCCmain.c: options.code_seg and options.const_seg are
1297           dynamically allocated; check port specific command line options
1298           before the general ones
1299         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
1300
1301 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
1302
1303         * device/include/ds400rom.h,
1304         * device/lib/ds390/lcd390.c,
1305         * device/lib/ds390/memcpyx.c,
1306         * device/lib/ds390/rtc390.c,
1307         * device/lib/ds400/ds400rom.c,
1308         * device/lib/ds400/memcpyx.c,
1309         * device/lib/hc08/_ret.c: more replacements of keywords with their
1310           double underscore equivalents
1311         * device/lib/ds390/Makefile.in,
1312         * device/lib/ds400/Makefile.in,
1313         * device/lib/gbz80/Makefile.in,
1314         * device/lib/hc08/Makefile.in,
1315         * device/lib/mcs51/Makefile.in,
1316         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
1317
1318 2007-04-17 Borut Razem <borut.razem AT siol.net>
1319
1320         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
1321           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
1322           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
1323           to --fverbose-asm, to be gcc'ish
1324
1325 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
1326
1327         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
1328
1329 2007-04-17 Borut Razem <borut.razem AT siol.net>
1330
1331         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
1332         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
1333           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
1334           with their double underscore equivalent
1335
1336 2007-04-14 Borut Razem <borut.razem AT siol.net>
1337
1338         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
1339           source"
1340
1341 2007-04-13 Borut Razem <borut.razem AT siol.net>
1342
1343         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
1344           C99 standard
1345         * device/examples/serialcomm/windows/serial.[ch],
1346           device/examples/serialcomm/windows/test_serialcomm.cpp:
1347           updated by Bela Torok
1348         * device/examples/serialcomm/windows/serialcomm.dsw,
1349           device/examples/serialcomm/windows/serialcomm.dsp: added
1350
1351 2007-04-13 Jan Waclawek <wek AT efton.sk>
1352
1353         * doc/sdccman.lyx: additions and changes at various places
1354           (submitted as #1697136).
1355           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
1356
1357 2007-04-10 Borut Razem <borut.razem AT siol.net>
1358
1359         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
1360           LyX file format changed to 245
1361         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
1362           "FreeWare" replaced with "free open source"
1363
1364 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
1365
1366         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
1367
1368 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
1369
1370         * device/include/pic16/pic18fregs.h,
1371         * device/lib/_bp.c,
1372         * device/lib/_decdptr.c,
1373         * device/lib/_divsint.c,
1374         * device/lib/_divslong.c,
1375         * device/lib/_divuint.c,
1376         * device/lib/_divulong.c,
1377         * device/lib/_fs2schar.c,
1378         * device/lib/_fs2sint.c,
1379         * device/lib/_fs2slong.c,
1380         * device/lib/_fs2uchar.c,
1381         * device/lib/_fs2uint.c,
1382         * device/lib/_fs2ulong.c,
1383         * device/lib/_fsadd.c,
1384         * device/lib/_fscmp.c,
1385         * device/lib/_fsdiv.c,
1386         * device/lib/_fseq.c,
1387         * device/lib/_fsget1arg.c,
1388         * device/lib/_fsget2args.c,
1389         * device/lib/_fsgt.c,
1390         * device/lib/_fslt.c,
1391         * device/lib/_fsmul.c,
1392         * device/lib/_fsneq.c,
1393         * device/lib/_fsnormalize.c,
1394         * device/lib/_fsreturnval.c,
1395         * device/lib/_fsrshift.c,
1396         * device/lib/_fssub.c,
1397         * device/lib/_fsswapargs.c,
1398         * device/lib/_gptrget.c,
1399         * device/lib/_gptrgetc.c,
1400         * device/lib/_gptrput.c,
1401         * device/lib/_logexpf.c,
1402         * device/lib/_modsint.c,
1403         * device/lib/_modslong.c,
1404         * device/lib/_moduint.c,
1405         * device/lib/_modulong.c,
1406         * device/lib/_mulint.c,
1407         * device/lib/_mullong.c,
1408         * device/lib/_schar2fs.c,
1409         * device/lib/_ser.c,
1410         * device/lib/_setjmp.c,
1411         * device/lib/_sint2fs.c,
1412         * device/lib/_slong2fs.c,
1413         * device/lib/_spx.c,
1414         * device/lib/_uchar2fs.c,
1415         * device/lib/_uint2fs.c,
1416         * device/lib/_ulong2fs.c,
1417         * device/lib/asincosf.c,
1418         * device/lib/atanf.c,
1419         * device/lib/calloc.c,
1420         * device/lib/ds390/tinibios.c,
1421         * device/lib/ds400/tinibios.c,
1422         * device/lib/expf.c,
1423         * device/lib/free.c,
1424         * device/lib/hc08/_mulint.c,
1425         * device/lib/logf.c,
1426         * device/lib/malloc.c,
1427         * device/lib/printf_fast.c,
1428         * device/lib/printf_tiny.c,
1429         * device/lib/printfl.c,
1430         * device/lib/realloc.c,
1431         * device/lib/ser_ir.c,
1432         * device/lib/serial.c,
1433         * support/regression/tests/libmullong.c: replaced all special keywords
1434           with their double underscore equivalent
1435         * support/regression/ports/mcs51-xstack-auto/spec.mk,
1436         * device/lib/Makefile.in: compile libs with --std-c99 instead of
1437           --std-sdcc99
1438         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
1439           (genRet): if the bit-symbol is ruonly it already is in the carry
1440         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
1441         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
1442         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
1443           type UCHAR if dest is not bit
1444
1445 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
1446
1447         * device/include/math.h,
1448         * device/lib/cotf.c,
1449         * device/lib/expf.c,
1450         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
1451
1452 2007-04-01 Borut Razem <borut.razem AT siol.net>
1453
1454         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
1455           fixed bug #1692042: input buffer overflow...scanner uses REJECT
1456         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
1457           gcc_unreachable() called internal_error()...
1458
1459 2007-03-30 Raphael Neider <rneider AT web.de>
1460
1461         * src/pic/ralloc.c (isData): suppress garbage debug output
1462
1463 2007-03-28 Borut Razem <borut.razem AT siol.net>
1464
1465         * doc/sdccman.lyx:
1466           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
1467           is developed, built and used worldwide, and the word "night" doesn't
1468           make any sense.
1469
1470 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
1471
1472         * device/include/mcs51/C8051F360.h: new, added
1473         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
1474
1475 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1476
1477         * src/SDCC.y (declaration_specifiers, function_specifier),
1478         * support/Util/SDCCerr.c,
1479         * support/Util/SDCCerr.h,
1480         * src/SDCCsymt.h,
1481         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
1482           inline keyword
1483         * src/SDCCmem.c (deallocParms),
1484         * src/SDCCast.c: support for function inlining, not quite complete
1485         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
1486           'restrict' qualifier
1487
1488 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
1489
1490         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
1491           (saveRBank, unsaveRBank): don't save bits,
1492           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
1493         * support/regression/tests/bug1535242.c: new, added
1494         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
1495           thanks Alexey Shamrin <shamrin AT gmail.com>,
1496           made assert.h header ANSI compliant (added a check for NDEBUG macro,
1497           removed header guard)
1498         * .version,
1499         * sdcc.spec: bumped version to 2.6.5
1500         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
1501
1502 2007-03-22 Borut Razem <borut.razem AT siol.net>
1503
1504         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
1505           fixed bug #1653671: sdcdb integration into ddd is broken
1506
1507 2007-03-22 Raphael Neider <rneider AT web.de>
1508
1509         * src/pic/gen.c (popGetExternal): augmented to also create references
1510           to external variables (not only labels),
1511           (genCall): comment on plan to reduce PAGESEL overhead,
1512           (genFunction, genEndFunction): also save/restore FSR around interrupt
1513           handling code, removed lots of unused code
1514           (genDivOneByte): release acquired temp register
1515         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
1516           of popGetExternal
1517         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
1518           for registers that need to be saved during interrupts (FSR, STATUS,
1519           PCLATH; W needs special handling), currently only FSR is used
1520
1521 2007-03-22 Raphael Neider <rneider AT web.de>
1522
1523         * device/include/pic/pic14devices.txt: 16f688 has only one config word
1524
1525 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1526
1527         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
1528
1529 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
1530
1531         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
1532
1533 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
1534
1535         * as/link/aslink.h: added LKOBJEXT
1536         * as/link/hc08/link_hc08.dsp,
1537         * as/link/hc08/Makefile.bcc,
1538         * as/link/hc08/Makefile.in,
1539         * as/link/mcs51/aslink.dsp,
1540         * as/link/mcs51/Makefile.bcc,
1541         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
1542         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
1543         * as/link/lkaomf51.c: merged and moved
1544         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
1545         * as/link/z80/lkdata.c,
1546         * as/link/lkdata.c: merged and moved
1547         * as/link/hc08/lkmain.c,
1548         * as/link/mcs51/lkmain.c: cosmetic changes
1549         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
1550         * as/link/lklex.c: use LKOBJEXT
1551         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
1552           ANSI-fied functions, removed bubble-sorts
1553         * as/link/z80/lksym.c           as/link/lksym.c: merged,
1554           ANSI-fied functions
1555         * as/link/z80/linkgbz80.dsp,
1556         * as/link/z80/linkz80.dsp,
1557         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
1558           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
1559         * as/link/z80/lkhead.c,
1560         * as/link/z80/lklex.c: deleted
1561         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
1562         * as/link/z80/lkmain.c: added copyfile()
1563
1564 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1565
1566         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
1567
1568 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1569
1570         * device/lib/_strlen.c: assembler version for mcs51
1571
1572 2007-03-13 Raphael Neider <rneider AT web.de>
1573
1574         * device/include/pic16/pic18f2221.h,
1575         * device/include/pic16/pic18f2321.h,
1576         * device/include/pic16/pic18f2331.h,
1577         * device/include/pic16/pic18f4221.h,
1578         * device/include/pic16/pic18f4321.h,
1579         * device/include/pic16/pic18f4331.h: fixed config byte location names
1580         * support/scripts/inc2h-pic16.pl: removed debug output, emit
1581           consistently named config byte locations
1582
1583 2007-03-13 Borut Razem <borut.razem AT siol.net>
1584
1585         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
1586           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
1587           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
1588           as/link/z80/Makefile.in, as/z80/Makefile.in:
1589           introduced LDFLAGS
1590
1591 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1592
1593         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
1594         * device/lib/printf_large.c: pointer was converted to generic
1595         pointer for mcs51 models other than model-small (Maarten noticed)
1596
1597 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1598
1599         * device/include/mcs51/ADuC84x.h: Added.
1600
1601 2007-03-10 Borut Razem <borut.razem AT siol.net>
1602
1603         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
1604           fixed RFE #1624219: double backslashes in filenames;
1605           functions hexEscape(), octalEscape() and copyStr() moved from
1606           SDCCval.c to SDCCutil.c and made them glovbally available
1607
1608 2007-03-09 Borut Razem <borut.razem AT siol.net>
1609
1610         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
1611           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
1612           1673361: Missaligned comments in output files
1613
1614 2007-03-09 Raphael Neider <rneider AT web.de>
1615
1616         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
1617
1618 2007-03-09 Raphael Neider <rneider AT web.de>
1619
1620         * src/pic/gen.c,
1621         * src/pic/glue.c,
1622         * src/pic/ralloc.c: suppress undesired debug output
1623         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
1624
1625 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1626
1627         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
1628
1629 2007-03-07 Borut Razem <borut.razem AT siol.net>
1630
1631         * device/lib/pic16/libdev/pic18f[24][34]31.c:
1632           search include files in the current directory
1633
1634 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
1635
1636         * src/SDCCglue.c (emitMaps, glue),
1637         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
1638           absolute xdata
1639         * support/regression/tests/absolute.c: added xdata test
1640
1641 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
1642
1643         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
1644           added condition to macro, fixes bug 1666080
1645
1646 2007-03-02 Raphael Neider <rneider AT web.de>
1647
1648         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
1649
1650 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1651
1652         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
1653         be cleared. Unconditionally set __XPAGE
1654         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
1655
1656 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1657
1658         * src/SDCCglobl.h,
1659         * src/SDCCmain.c,
1660         * src/mcs51/gen.c,
1661         * src/mcs51/rtrack.c,
1662         * src/ds390/gen.c,
1663         * doc/sdccman.lyx: added --no-gen-comments
1664         * src/mcs51/peeph.def: added 192.b, disabled 185
1665
1666 2007-02-25 Raphael Neider <rneider AT web.de>
1667
1668         * src/pic16/gen.c (genCast): fixed typo
1669         * device/lib/pic16/Makefile.subdir: only install existing files
1670         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
1671
1672 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1673
1674         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
1675         * device/lib/mcs51/crtclear.asm,
1676         * device/lib/mcs51/crtxclear.asm: renumbered labels
1677         * device/lib/mcs51/Makefile.in: added crtcall.asm
1678         * doc/sdccman.lyx: documented mcs51 crt* library startup code
1679         * src/mcs51/gen.c (movc): removed,
1680           (aopGet, genPlusBits): clear a after loading the carry (possibly from
1681             acc.x or psw.x),
1682           (toCarry, genSend, genRet): added function toCarry,
1683           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
1684           (assignBit, genAssign, genCast): added function assignBit
1685         * src/mcs51/Makefile.bcc: added rtrack.c
1686         * src/mcs51/ralloc.h: made valueKnown a bitfield
1687         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
1688           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
1689           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
1690         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
1691         * src/z80/gen.c: added AOP_IS_PAIRPTR,
1692           (_pop): only pop valid pairs, see gencjneshort,
1693           (gencjneshort): return pair that still needs to be popped, restructured,
1694           (gencjne, genCmpEq): call _pop
1695
1696 2007-02-23 Raphael Neider <rneider AT web.de>
1697
1698         * device/include/pic/pic14devices.txt: 16f684 has only one config word
1699
1700 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1701
1702         * device/include/mcs51/P89LPC925.h: Added.
1703
1704 2007-02-18 Raphael Neider <rneider AT web.de>
1705
1706         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
1707
1708 2007-02-17 Borut Razem <borut.razem AT siol.net>
1709
1710         * support/cpp2/directives.c, support/cpp2/version.c:
1711           synchronized with GCC CPP 4.1.2
1712
1713 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1714
1715         * src/mcs51/rtrack.h,
1716         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
1717           by checking the strings passed by emitcode() to the assembler.
1718           Feel free to change. This in part addresses RFE #482179.
1719           Set environment variable SDCC_RTRACK to enable.
1720         * src/mcs51/gen.c: inserted hooks
1721         * src/mcs51/ralloc.h: added two members to struct regs
1722         * support/regression/tests/regtrack.c: added
1723
1724 2007-02-14 Borut Razem <borut.razem AT siol.net>
1725
1726         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
1727         * Makefile.in: applied patch from Makefile related part of
1728           #1469393: Compiler does not initialize static data
1729
1730 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
1731
1732         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
1733           for better fix of bug 1273984, compiles pic16 rand.c
1734
1735 2007-02-12 Borut Razem <borut.razem AT siol.net>
1736
1737         * src/pic16/main.c: fixed pic16 standard library directory bug
1738
1739 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
1740
1741         * src/hc08/gen.c (genSwap): fix swap regression test
1742
1743 2007-02-10 Borut Razem <borut.razem AT siol.net>
1744
1745         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
1746           with same scope
1747         * support/regression/tests/bug-1654060.c: added regression test for
1748           #1654060
1749
1750 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
1751
1752         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
1753         bit moves in return statement
1754
1755 2007-02-09 Borut Razem <borut.razem AT siol.net>
1756
1757         * src/SDCC.y: fixed bug #1654060 typedef within function causes
1758           syntax error
1759
1760 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
1761
1762         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
1763         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
1764
1765 2007-02-07 Raphael Neider <rneider AT web.de>
1766
1767         * src/pic16/devices.inc,
1768         * device/include/pic16/pic18fregs.h,
1769         * device/include/pic16/pic18f[24][34]31.h,
1770         * device/lib/pic16/libdev/pic18f[24][34]31.c,
1771         * device/lib/pic16/pics.all: added 18f[24][34]31 family
1772         * device/lib/pic16/libio/i2c.ignore: do not build i2c
1773
1774 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
1775
1776         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
1777           can this have lived here for so many years?
1778         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
1779           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
1780         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
1781
1782 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
1783
1784         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
1785         appended by loop induction must be at the very end of the eBBlock
1786
1787 2007-02-05 Kevin Vigor
1788
1789         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
1790
1791 2007-02-05 Borut Razem <borut.razem AT siol.net>
1792
1793         * support/regression/fwk/lib/timeout.c: native WIN32 port,
1794           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
1795
1796 2007-02-03 Borut Razem <borut.razem AT siol.net>
1797
1798         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
1799           applied patch #1646602 option to set default signedness of char to
1800           unsigned, added -funsigned-char command line option,
1801           thanks to Gunther Jehle
1802         * device/lib/Makefile.in: added the -f option to rm so it doesn't
1803           prompt for file deletion a few hundred times (especially the
1804           subversion files, which have ro permissions so it asks for
1805           confirmation), thanks to Simon McAuliffe;
1806           added {} + option to find in order to remove multiple files from a
1807           single rm commad
1808
1809 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1810
1811         * device/include/mcs51/SST89x5xRDx.h: Added.
1812
1813 2007-02-02 Raphael Neider <rneider AT web.de>
1814
1815         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
1816         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
1817
1818 2007-02-01 Raphael Neider <rneider AT web.de>
1819
1820         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
1821           config words again
1822
1823 2007-01-31 Borut Razem <borut.razem AT siol.net>
1824
1825         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
1826           if compiled with GCC. Thanks to Raphael Neider
1827
1828 2007-01-31 Raphael Neider <rneider AT web.de>
1829
1830         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
1831             operand names, handles name and (name + n) for all n,
1832           (sameBank): restructured, also check bank allocation policy,
1833         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
1834           (pic14_operandsAllocatedInSameBank): check whether to operands
1835             will be allocated into the same bank (i.e., section) to reduce
1836             BANKSEL overhead, queried from pcode.c:sameBank,
1837           (pic14printLocals): reintroduced clustering registers into a single
1838             section: all compiler generated symbols will now reside in one
1839             bank (per file), reducing BANKSEL overhead and code size,
1840           (showAllMemmaps): use local dbuf where possible
1841
1842 2007-01-29 Raphael Neider <rneider AT web.de>
1843
1844         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
1845           (call_libraryfunc): retrieve/create symbol and mark as used,
1846           (genFunction): mark defined functions as non-extern and add again
1847            to code memmap for later output
1848         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
1849           (pic14printLocals): reworked for new symbol emission,
1850           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
1851           showAllMemmaps): reworked symbol output using dbufs, added handling
1852             of string literals (still incomplete),
1853           (picglue): removed symbol emission, moved into showAllMemmaps,
1854           (emitSymbolSet): new workhorse for symbol output,
1855           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
1856
1857 2007-01-29 Borut Razem <borut.razem AT siol.net>
1858
1859         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
1860           component contains the extension separator.
1861
1862 2007-01-28 Borut Razem <borut.razem AT siol.net>
1863
1864         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
1865           on WIN32
1866         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
1867           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
1868           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
1869           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
1870           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
1871           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
1872           src/z80/gen.c, support/Util/MySystem.c:
1873           accept slash and backslash as directory separator on WIN32 and
1874           Cygwin ports
1875
1876 2007-01-28 Raphael Neider <rneider AT web.de>
1877
1878         * src/pic16/devices.inc,
1879         * device/include/pic16/pic18f[24][23]21.h,
1880         * device/include/pic16/pic18fregs.h,
1881         * device/lib/pic16/libdev/pic18f[24][23]21.c,
1882         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
1883         * device/lib/pic16/libio/adc.ignore,
1884         * device/lib/pic16/libio/i2c.ignore,
1885         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
1886           family, as gputils do not yet support the devices
1887         * device/lib/pic16/Makefile.subdir: ignore errors on install
1888         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
1889           headers and libraries from gputils .inc files
1890
1891 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
1892
1893         * doc/sdccman.lyx: add printf_fast_f precision limitation note
1894
1895 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
1896
1897         * doc/sdccman.lyx: add printf benchmarks
1898
1899 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
1900
1901         * device/lib/printf_fast.c: fix %c, char promoted to int
1902         * device/lib/printf_tiny.c: fix %c, char promoted to int
1903
1904 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
1905
1906         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
1907
1908 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1909
1910         * support/regression/tests/swap.c: 64 bit hosts failed
1911         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
1912
1913 2007-01-25 Raphael Neider <rneider AT web.de>
1914
1915         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
1916           based on absolute register address, patch by Alex Blond
1917
1918 2007-01-22 Raphael Neider <rneider AT web.de>
1919
1920         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
1921           emitted, do not emit them again...
1922
1923 2007-01-22 Raphael Neider <rneider AT web.de>
1924
1925         * src/regression/bank1.c, src/regression/compare6.c,
1926           src/regression/add.c: cosmetic changes
1927         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
1928         * src/pic/gen.c: fixed global zero and one,
1929           (aopForSym): removed unued code,
1930           (aopGet): assert aop is defined, check and use `index' of
1931             pCodeImmd operands (fixes #1630908),
1932         * src/pic/pcode.c (get_op): added output of generic pointer tag,
1933           (register_reassign): prevent accidental register unification,
1934           (ReuseReg): cosmetic changes (also above)
1935         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
1936           pic14emitStaticSeg): do not emit initialized data,
1937           (printIval*): replaced with working versions,
1938           (pic14createInterruptVect,picglue): use idata for initialized data,
1939             now init data should work in all modules (not only main()),
1940         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
1941
1942 2007-01-21 Borut Razem <borut.razem AT siol.net>
1943
1944         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
1945           use -fPIC or -fpic if they are supported and not ignored
1946         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
1947         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
1948
1949 2007-01-20 Borut Razem <borut.razem AT siol.net>
1950
1951         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
1952           implemented RFE #1470316: allow "$" in variable names
1953
1954 2007-01-20 Raphael Neider <rneider AT web.de>
1955
1956         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
1957
1958 2007-01-20 Raphael Neider <rneider AT web.de>
1959
1960         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
1961         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
1962         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
1963         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
1964           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
1965         * device/lib/pic/libdev/pic*.c,
1966         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
1967         * device/lib/pic/libdev/Makefile.in: show progress
1968
1969 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
1970
1971         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
1972         * support/scripts/sdcc_cygwin_mingw32,
1973         * support/scripts/sdcc_mingw32,
1974         * support/scripts/build.mak: replaced --datadir by --datarootdir for
1975         conformance with autoconf 2.6
1976
1977 2007-01-19 Raphael Neider <rneider AT web.de>
1978
1979         * src/pic/device.c (register_map): fixed list construction
1980         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
1981           (genMod): removed case for genModbits,
1982           (genModbits): removed as now unused/unimplemented
1983         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
1984
1985 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1986
1987         * support/regression/tests/swap.c: added in response to #1638622
1988         * doc/sdccman.lyx: synced version, minor changes
1989
1990 2007-01-18 Borut Razem <borut.razem AT siol.net>
1991
1992         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
1993           thanks to Gunther Jehle
1994         * src/asm.c: don't die if the file drfined in #line couldn't be opened
1995         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
1996           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
1997           use filename in lineno instead.
1998         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
1999           print the file name in ast_print()
2000
2001 2007-01-18 Borut Razem <borut.razem AT siol.net>
2002
2003         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
2004           defined in MSVC
2005         * src/SDCC.lex: stringLiteral() returns const char pointer,
2006           EOF detection in stringLiteral(), fixed asmbuf memory leak,
2007           fixed column counting
2008         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
2009           accept const char pointer as parameter
2010         * src/SDCCdwarf2.c: corrected buffer size
2011
2012 2007-01-17 Borut Razem <borut.razem AT siol.net>
2013
2014         * support/Util/dbuf_string.c: fixed for amd64
2015
2016 2007-01-15 Borut Razem <borut.razem AT siol.net>
2017
2018         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
2019           removed terminal symbol ELIPSIS, since it was never generated by the
2020           lexer and it was wrongly used in parameter_identifier_list rule
2021
2022 2007-01-15 Raphael Neider <rneider AT web.de>
2023
2024         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
2025             code page and data banking description
2026         * src/pic/genarith.c,
2027         * src/pic/gen.h: removed bit arithmetic functions,
2028             updated exit(1) to exit(EXIT_FAILURE)
2029         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
2030         * device/include/pic16/pic18f2455.h,
2031         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
2032             TRISD and TRISE, fixed/added some bit names
2033         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
2034         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
2035             updated pic18f2455.{c,h} instead of duplicating them
2036
2037 2007-01-14 Borut Razem <borut.razem AT siol.net>
2038
2039         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
2040           Cannot debug files that contain spaces in the path name
2041           by converting spaces in asm file name to underscores
2042
2043 2007-01-13 Borut Razem <borut.razem AT siol.net>
2044
2045         * doc/sdccman.lyx: fixed format errors
2046
2047 2007-01-10 Borut Razem <borut.razem AT siol.net>
2048
2049         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
2050           codeseg/constseg #pragma fail
2051         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
2052         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
2053           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
2054           suppoprt/cpp2/sdcpp.[ch]: house cleaning
2055
2056 2007-01-09 Borut Razem <borut.razem AT siol.net>
2057
2058         * get rid of diagnistic.[ch], pretty-print.[ch],
2059           c-pretty-print.[ch], ... used just for error, warning, ...
2060           message formatting
2061         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
2062           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
2063           suppoprt/cpp2/pretty-print.[ch]:
2064           removed
2065         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
2066           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
2067           suppoprt/cpp2/sdcpp.dsp:
2068           changed
2069
2070 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
2071
2072         * device/lib/printf_large.c (output_float): removed recursion,
2073           use smaller buffer on stack for mcs51,
2074           fixed bug printing 1.96
2075         * support/regression/tests/snprintf.c: added test
2076
2077 2007-01-07 Borut Razem <borut.razem AT siol.net>
2078
2079         * use dynamic memory buffers instead temporary files
2080         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
2081           added
2082         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
2083           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
2084           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
2085           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
2086           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
2087           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
2088           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
2089           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
2090           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
2091           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
2092           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
2093           support/Util/dbuf.c, support/Util/dbuf.h:
2094           modified
2095         * .version, sdcc.spec: bumped version to 2.6.4
2096
2097 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
2098
2099         * src/port.h: added TARGET_Z80_LIKE macro
2100         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
2101           output PSEG location if --xram-loc or --xstack-loc was used
2102         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
2103
2104 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
2105
2106         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
2107         * as/as_z80.dsp,   as/z80/as_z80.dsp,
2108         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
2109         * sdcc.dsw: moved project files into subdir
2110         * as/hc08/as_hc08.dsp,
2111         * as/hc08/Makefile.bcc,
2112         * as/hc08/Makefile.in,
2113         * as/mcs51/Makefile.bcc,
2114         * as/mcs51/Makefile.in,
2115         * as/z80/Makefile.bcc,
2116         * as/z80/Makefile.in,
2117         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
2118         * as/hc08/asm.h,
2119         * as/mcs51/asm.h,
2120         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
2121         * as/hc08/asmain.c,
2122         * as/hc08/assym.c,
2123         * as/mcs51/asmain.c,
2124         * as/mcs51/assym.c,
2125         * as/z80/assym.c: removed include "strcmpi.h"
2126         * as/hc08/strcmpi.c,
2127         * as/hc08/strcmpi.h,
2128         * as/mcs51/strcmpi.c,
2129         * as/mcs51/strcmpi.h,
2130         * support/Util/strcmpi.c,
2131         * support/Util/strcmpi.h: removed files
2132         * as/strcmpi.c: added as_strncmpi()
2133
2134 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2135
2136         * sdcc.dsw: Added some dependencies on project config.dsp
2137
2138 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
2139
2140         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
2141           with [di]ram_start to fix a regresion
2142
2143 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
2144
2145         * configure.in: added missing mcs51 in status output
2146         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
2147         directory
2148         * debugger/mcs51/clean.mk (distclean): remove config.h
2149         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
2150         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
2151         options.h, s-options-h and options.c
2152         * support/cpp2/clean.mk: unused, removed
2153         * Makefile.common.in,
2154         * main_in.mk,
2155         * as/Makefile.in,
2156         * as/hc08/Makefile.in,
2157         * as/hc08/clean.mk,
2158         * as/mcs51/Makefile.in,
2159         * as/mcs51/clean.mk,
2160         * as/z80/clean.mk,
2161         * as/z80/conf.mk,
2162         * as/z80/Makefile.in,
2163         * as/z80/clean.mk,
2164         * as/link/Makefile.in,
2165         * as/link/hc08/Makefile.in,
2166         * as/link/hc08/clean.mk,
2167         * as/link/mcs51/Makefile.in,
2168         * as/link/mcs51/clean.mk,
2169         * as/link/z80/Makefile.in,
2170         * as/link/z80/clean.mk,
2171         * as/link/z80/conf.mk,
2172         * debugger/mcs51/Makefile.in,
2173         * debugger/mcs51/clean.mk,
2174         * device/include/Makefile.in,
2175         * device/lib/Makefile.in,
2176         * device/lib/mcs51/Makefile.in,
2177         * device/lib/pic/Makefile.in,
2178         * device/lib/pic/Makefile.common.in,
2179         * device/lib/pic/Makefile.subdir,
2180         * device/lib/pic/Makefile.rules,
2181         * device/lib/pic16/libio/Makefile.in,
2182         * device/lib/pic16/Makefile.subdir,
2183         * device/lib/pic16/libdev/Makefile.in,
2184         * device/lib/pic16/Makefile.rules,
2185         * device/lib/pic16/Makefile.common.in,
2186         * sim/ucsim/avr.src/Makefile.in,
2187         * sim/ucsim/main_in.mk,
2188         * sim/ucsim/cmd.src/Makefile.in,
2189         * sim/ucsim/doc/Makefile.in,
2190         * sim/ucsim/gui.src/Makefile.in,
2191         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
2192         * sim/ucsim/gui.src/serio.src/Makefile.in,
2193         * sim/ucsim/hc08.src/Makefile.in,
2194         * sim/ucsim/libltdl/Makefile.in,
2195         * sim/ucsim/s51.src/Makefile.in,
2196         * sim/ucsim/sim.src/Makefile.in,
2197         * sim/ucsim/sim.src/conf.mk,
2198         * sim/ucsim/xa.src/Makefile.in,
2199         * sim/ucsim/z80.src/Makefile.in,
2200         * src/Makefile.in,
2201         * src/clean.mk,
2202         * src/port.mk,
2203         * support/cpp2/Makefile.in,
2204         * support/librarian/Makefile.in,
2205         * support/librarian/clean.mk,
2206         * support/makebin/Makefile.in,
2207         * support/makebin/clean.mk,
2208         * support/packihx/Makefile.in,
2209         * support/regression/Makefile.in,
2210         * support/regression/ports/ds390/spec.mk,
2211         * support/regression/ports/gbz80/spec.mk,
2212         * support/regression/ports/hc08/spec.mk,
2213         * support/regression/ports/mcs51/spec.mk,
2214         * support/regression/ports/mcs51-large/spec.mk,
2215         * support/regression/ports/mcs51-medium/spec.mk,
2216         * support/regression/ports/mcs51-xstack-auto/spec.mk,
2217         * support/regression/ports/pic14/spec.mk,
2218         * support/regression/ports/pic16/spec.mk,
2219         * support/regression/ports/mcs51-stack-auto/spec.mk,
2220         * support/regression/ports/ucz80/spec.mk,
2221         * support/regression/ports/xa51/spec.mk,
2222         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
2223         adding a slash after $(top_builddir) and/or adding @datarootdir@
2224         * configure.in,
2225         * debugger/mcs51/configure.in,
2226         * device/lib/pic/configure.in,
2227         * device/lib/pic16/configure.in,
2228         * sim/ucsim/configure.in,
2229         * support/cpp2/configure.in,
2230         * support/packihx/configure.in: changed AC_PREREQ to 2.60
2231         * configure,
2232         * debugger/mcs51/configure,
2233         * device/lib/pic/configure,
2234         * device/lib/pic16/configure,
2235         * sim/ucsim/configure,
2236         * support/cpp2/configure,
2237         * support/packihx/configure: generated with autoconf 2.60
2238
2239 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
2240
2241         * as/link/hc08/lkihx.c (newArea),
2242         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
2243
2244 2007-01-02 Borut Razem <borut.razem AT siol.net>
2245
2246         * doc/sdccman.lyx: documented #pragma sdcc_hash
2247         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
2248           initialized to 0
2249         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
2250
2251 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
2252
2253         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
2254         empty 'while'-loop to work correctly, see regression test 'while.c'
2255         * support/regression/tests/while.c: added
2256
2257 2007-01-01 Borut Razem <borut.razem AT siol.net>
2258
2259         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
2260           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
2261           support/cpp2/libcpp/sdcpp.c:
2262           sdcpp specific pragma/directive/option handling moved to sdcpp.c
2263         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
2264         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
2265
2266 2006-12-31 Borut Razem <borut.razem AT siol.net>
2267
2268         * SDCPP synchronized with GCC CPP release version 4.1.1,
2269           currently the latest release:
2270         * support/cpp2/libcpp, support/cpp2/libcpp/include,
2271           support/cpp2/libcpp/include/cpp-id-data.h
2272           support/cpp2/libiberty/fopen_unlocked.c
2273           support/cpp2/libiberty/md5.c
2274           support/cpp2/md5.h
2275           support/cpp2/opt-functions.awk
2276           support/cpp2/opt-gather.awk
2277           support/cpp2/optc-gen.awk
2278           support/cpp2/opth-gen.awk:
2279           added
2280         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
2281           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2282           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
2283           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
2284           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
2285           support/cpp2/diagnostic.h, support/cpp2/except.h,
2286           support/cpp2/hwint.h, support/cpp2/input.h,
2287           support/cpp2/intl.h, support/cpp2/move-if-change,
2288           support/cpp2/opts.c, support/cpp2/opts.h,
2289           support/cpp2/output.h, support/cpp2/prefix.c,
2290           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
2291           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
2292           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
2293           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
2294           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
2295           support/cpp2/version.c:
2296           modified
2297         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
2298           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
2299           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
2300           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
2301           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
2302           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
2303           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
2304           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
2305           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
2306           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
2307           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
2308           moved
2309         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
2310           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
2311           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
2312           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
2313           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
2314           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
2315           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
2316           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
2317           support/cpp2/hashtable.h, support/cpp2/line-map.c,
2318           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
2319           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
2320           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
2321           support/cpp2/system.h:
2322           deleted / moved
2323
2324 2006-12-31 Borut Razem <borut.razem AT siol.net>
2325
2326         * configure.in, configure: fixed bug #1538756: configure dies if bison
2327           and flex are not installed, 2nd try
2328
2329 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
2330
2331         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
2332         400.x for better code in RFE 899102
2333
2334 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
2335
2336         * src/SDCCpeeph.c (deadMove),
2337         * src/port.h,
2338         * src/mcs51/peep.h: renamed 'op' by 'reg'
2339         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
2340         (scan4op): small change for removeDeadMove(), added support for
2341         'callee saves' and/or PACLL function calls,
2342         (removeDeadMove): added, removes superflous 'mov r%1,%2',
2343         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
2344         left in new dispatcher mcs51DeadMove()
2345         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
2346         removeDeadMove()
2347         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
2348
2349 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2350
2351         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
2352           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
2353
2354 2006-12-30 Borut Razem <borut.razem AT siol.net>
2355
2356         * support/cpp2/spacs.h: deleted from svn
2357         * configure.in, configure: fixed bug #1538756: configure dies if bison
2358           and flex are not installed
2359
2360 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
2361
2362         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
2363           with this z80 passes printf float test when enabled
2364         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
2365
2366 2006-12-28 Borut Razem <borut.razem AT siol.net>
2367
2368         * support/cpp2/config.in, support/cpp2/configure.in,
2369           support/cpp2/configure, support/cpp2/Makefile.in:
2370           fix for the solaris build
2371
2372 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2373
2374         * src/SDCC.y (type_specifier2, pointer),
2375         * src/SDCCsymt.h,
2376         * src/SDCCsymt.c (mergeSpec, checkSClass),
2377         * support/Util/SDCCerr.c,
2378         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
2379         * support/valdiag/valdiag.py: Allow test cases to specify
2380           required language standard
2381         * support/valdiag/tests/restrict.c: New file to test restrict keyword
2382         * support/valdiag/tests/tentdecl.c: Supress empty source file error
2383
2384 2006-12-27 Borut Razem <borut.razem AT siol.net>
2385
2386         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
2387         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
2388           mbchar removed
2389         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
2390           fixed for borland C
2391         * support/cpp2/libiberty/Makefile.bcc: updated
2392         * src/pic16/main.c: fixed #pragma udata handling
2393         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
2394
2395 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
2396
2397         * src/SDCCpeeph.c: made labelHashEntry global,
2398         made pcDistance, FBYNAME static,
2399         (pcDistance): made static, use isComment and isLabel,
2400         (deadMove): added,
2401         (getLabelRef): added, extracted from labelRefCount(),
2402         (labelRefCount): use new getLabelRef(),
2403         (callFuncByName): made static, added deadMove,
2404         use isComment and isLabel,
2405         (newPeepRule): made static, set isLabel,
2406         (isLabelDefinition): added parameter isPeepRule to allow '%' in
2407         labels from peephole rules,
2408         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
2409         when isComment or isLabel is set
2410         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
2411         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
2412         to make them global
2413         * src/mcs51/peep.h: added
2414         * src/mcs51/peep.c: added, implements mcs51DeadMove()
2415         * src/port.h: added peep->deadMove to port structure
2416         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
2417         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
2418         deadMove, finally removed no. 1 and 2
2419         * src/mcs51/gen.c,
2420         * src/pic/gen.c,
2421         * src/z80/gen.c,
2422         * src/z80/ralloc.c,
2423         * src/pic16/gen.c,
2424         * src/ds390/gen.c,
2425         * src/hc08/gen.c: mark lines with isComment or isLabel
2426         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
2427         * .version,
2428         * sdcc.spec: bumped version to 2.6.3
2429
2430 2006-12-26 Borut Razem <borut.razem AT siol.net>
2431
2432         * support/cpp2/Makefile.in: added dependency on options.h
2433         * configure: regenerated
2434         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
2435         * support/cpp2/Makefile.in: added vasprintf.c
2436
2437 2006-12-25 Borut Razem <borut.razem AT siol.net>
2438
2439         * SDCPP synchronized with GCC CPP release version 3.4.6,
2440           the latest release before 4.x:
2441         * support/cpp2/Makefile.in, support/cpp2/config.h,
2442           support/cpp2/configure, support/cpp2/configure.in,
2443           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
2444           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
2445           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
2446           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
2447           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
2448           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
2449           support/cpp2/cpptrad.c, support/cpp2/except.h,
2450           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
2451           support/cpp2/hwint.h, support/cpp2/intl.h,
2452           support/cpp2/line-map.c, support/cpp2/line-map.h,
2453           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
2454           support/cpp2/output.h, support/cpp2/prefix.c,
2455           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
2456           support/cpp2/system.h, support/cpp2/version.c:
2457           modified
2458         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2459           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
2460           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
2461           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
2462           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
2463           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
2464           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
2465           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
2466           support/cpp2/move-if-change, support/cpp2/opts.c,
2467           support/cpp2/opts.h, support/cpp2/opts.sh,
2468           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
2469           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
2470           support/cpp2/win32, support/cpp2/win32/dirent.c,
2471           support/cpp2/win32/dirent.h:
2472           added
2473         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
2474         * support/cpp2/sdcpp.h: renamed from sdcc.h
2475         * sdcppinit.c: deleted
2476
2477 2006-12-23 Borut Razem <borut.razem AT siol.net>
2478
2479         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
2480           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
2481           preproc.c: an other try to fix bug #982435: introduced
2482           -pedantic-parse-number command line option and pedantic_parse_number
2483           pragma
2484
2485 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
2486
2487         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
2488            BSEG handling,
2489           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
2490            corrected overlayed areax addresses, warn about memory overlaps
2491         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
2492         * src/avr/main.c,
2493         * src/ds390/main.c,
2494         * src/hc08/main.c,
2495         * src/mcs51/main.c,
2496         * src/pic16/main.c,
2497         * src/pic/main.c,
2498         * src/xa51/main.c,
2499         * src/z80/main.c,
2500         * src/port.h: added xabs_name and iabs_name
2501         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
2502           (glue, emitMaps): create and emit maps d_abs and i_abs
2503         * src/SDCCglue.h: cosmetic changes
2504         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
2505         * src/SDCCmem.h,
2506         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
2507           (allocDefault): put absolute, initialized globals in them
2508         * support/regression/tests/absolute.c: added absolute bdata test
2509         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
2510
2511 2006-12-20 Borut Razem <borut.razem AT siol.net>
2512
2513         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
2514         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
2515           added regression test for bug #982435
2516
2517 2006-12-18 Borut Razem <borut.razem AT siol.net>
2518
2519         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
2520         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
2521           small cosmetic changes
2522         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
2523         * support/regression/tests/bug-1351710.c: added regression test
2524
2525 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2526
2527         * doc/sdccman.lyx: added the long missed iCode table
2528           "<where is figure II?>", added links to wiki
2529
2530 2006-12-17 Borut Razem <borut.razem AT siol.net>
2531
2532         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
2533           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
2534           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
2535           unified table driven pragma handling, pragma argument type checking
2536         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
2537           current one - version 1.1.3
2538         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
2539
2540 2006-12-13 Raphael Neider <rneider AT web.de>
2541
2542         * src/pic/device.h: removed AssignedMemory structure and macros
2543         * src/pic/device.c: removed global finalMapping (linker assigns
2544             memory locations),
2545           (register_map): add SFRs to remembered memRanges
2546           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
2547           assignFixedRegisters,assignRelocatableRegisters): removed,
2548           (setMaxRAM,validAddress): adapted accordingly,
2549           (pic14_hasSharebank,pic14_getSharedStack): only report and use
2550             reasonably sized sharebanks,
2551         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
2552           (allDefsOutOfRange): removed unused code,
2553         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
2554             handling
2555         * src/pic/pcode.c (register_reassign): removed recursion warning,
2556             fired far too often,
2557         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
2558             to use existing pic14_stringInSet() to avoid duplicate symbols,
2559             tidied up the code a bit,
2560           (pic14printLocals): added in symmetry to printExterns, replaces
2561             writeUsedRegs more or less,
2562           (picglue): call new pic14_printLocals(),
2563         * device/include/pic/pic*.h: removed #pragma memmap directives,
2564             information gathered from include/pic/pic14devices.txt
2565         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
2566
2567 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
2568
2569         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
2570
2571 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2572
2573         * device/include/mcs51/cc2430.h: fixed missing ';'
2574
2575 2006-12-10 Raphael Neider <rneider AT web.de>
2576
2577         * device/lib/pic16/libc/stdio/vfprintf.c,
2578         * device/lib/pic16/libc/stdio/printf_small.c,
2579         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
2580           char arguments, as char varargs are cast to int by the caller,
2581           hopefully fixes #1604915 (other device libraries are still affected)
2582
2583 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2584
2585         * src/mcs51/ralloc.c (packRegsForAssign),
2586         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
2587
2588 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
2589
2590         * device/include/malloc.h: removed init_dynamic_memory
2591         * device/lib/malloc.c: made init_dynamic_memory static and automatically
2592           call it once from malloc. Also use _sdcc_heap[] from _heap.c
2593         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
2594         * device/lib/libsdcc.lib,
2595         * device/lib/Makefile.in,
2596         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
2597         * doc/sdccman.lyx: documented use of new _heap.c
2598         * support/regression/tests/malloc.c: removed init_dynamic_memory
2599         * src/cdbFile.c(spacesToUnderscores): new function,
2600           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
2601           1068030
2602         * device/include/tinibios.h: removed defines for putchar and getchar
2603         * device/lib/ds390/Makefile.in: added putchar.c
2604         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
2605
2606 2006-12-09 Borut Razem <borut.razem AT siol.net>
2607
2608         * support/cpp2/sdcc.h: prevent multiple inclusion
2609         * support/cpp2/options.h: deleted
2610
2611 2006-12-08 Borut Razem <borut.razem AT siol.net>
2612
2613         * support/cpp2/sdcc.h: removed x*alloc() macros
2614         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
2615         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
2616           support/cpp2/sdcpp.sdc: x*alloc files added to the project
2617         * support/cpp2/system.h: moved #include "sdcc.h"
2618         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
2619           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
2620           added
2621         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
2622           -funsigned-char options
2623         * support/cpp2/sdcppmain.c: fixed bug 1611411
2624
2625 2006-12-07 Borut Razem <borut.razem AT siol.net>
2626
2627         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
2628           directive
2629
2630 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
2631
2632         * src/SDCCsymt.c (addDecl): fixed bug 1609244
2633         * src/SDCCmain.c (linkEdit): fixed bug 1609279
2634         * doc/sdccman.lyx,
2635         * .version: bumped to 2.6.2 because a) it's been a while
2636           b) the linker sources have moved c) the preprocessor is upgraded
2637
2638 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2639
2640         * support/regression/tests/snprintf.c: some checks
2641         * lib/src/printf_large.c: %bc: read char instead of int from stack
2642
2643 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
2644
2645         * device/include/mcs51/cc2430.h: inserted _XPAGE
2646
2647 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2648
2649         * device/include/mcs51/cc2430.h: added
2650
2651 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
2652
2653         * device/include/asm/default/features.h,
2654         * device/include/asm/ds390/features.h,
2655         * device/include/mcs51/at89s53.h,
2656         * device/include/ser.h,
2657         * device/include/ser_ir.h,
2658         * device/include/serial.h: changed keywords to double underscore variants,
2659           fixes bug 1590261 some more, thanks Steven Borley
2660
2661 2006-12-01 Raphael Neider <rneider AT web.de>
2662
2663         * src/pic/pcode.c (register_reassign): do not crash on recursive code
2664           but emit warning (recursion is not supported for pic14)
2665
2666 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2667
2668         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
2669         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
2670
2671 2006-11-30 Raphael Neider <rneider AT web.de>
2672
2673         * src/pic/device.c (dump_sfr): always emit symbols
2674         * src/pic/glue.c (pic14printPublics): fixed typo
2675
2676 2006-11-30 Raphael Neider <rneider AT web.de>
2677
2678         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
2679           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
2680           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
2681            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
2682            a sharebank, use a non-shared bank for the stack if none available
2683         * src/pic/device.h (struct memRange): added linked list next field,
2684           added prototypes for above functions
2685         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
2686           (typeRegWithIdx): accept fixed and unfixed stack registers
2687         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
2688           the stack, handle shared and banked stack (except for WSAVE),
2689           (insertBankSel): removed useless optimization (will never fire),
2690           (FixRegisterBanking): added optimization for devices with only one
2691           possibly aliased bank of memory, like 16f84
2692         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
2693           devices have no SHAREBANK in the linker script
2694         * device/include/pic/pic14devices.txt: documented memmap
2695         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
2696
2697 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2698
2699         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
2700           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
2701           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
2702           genhc08Code): switched most of the D (debug) macros to DD (detailed
2703           debug) macros to better control clutter in the generated .asm file.
2704         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
2705           genRightShift): fixed bug with non-constant bit shift stored to
2706           a volatile result (SF Open Discussion forum thread #1616749).
2707           Single byte case is not yet optimized.
2708
2709 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
2710
2711         * device/include/asm/mcs51/features.h,
2712         * device/include/malloc.h,
2713         * device/include/stdio.h: changed keywords to double underscore variants,
2714           fixes bug 1590261
2715
2716 2006-11-27 Borut Razem <borut.razem AT siol.net>
2717
2718         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
2719           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
2720           support/cpp2/output.h, support/cpp2/cppinit.c,
2721           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
2722           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
2723           support/cpp2/cppdefault.c, support/cpp2/system.h,
2724           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
2725           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
2726           support/cpp2/prefix.c, support/cpp2/except.h,
2727           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
2728           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
2729           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
2730           support/cpp2/version.c, support/cpp2/cppmain.c,
2731           support/cpp2/version.h, support/cpp2/hashtable.c,
2732           support/cpp2/cpperror.c:
2733           synchronized with GCC CPP release version 3.3.6,
2734           the latest where cppmain.c still exists.
2735         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
2736           support/cpp2/sdcppinit.c: added
2737
2738 2006-11-27 Borut Razem <borut.razem AT siol.net>
2739
2740         * support/cpp2/cpplex.c:
2741           fixed _asm ... _endasm handling bug, introduce with GCC CPP
2742           synchronization
2743         * support/cpp2/cpplib.c: removed definitions of unused variables
2744
2745 2006-11-26 Borut Razem <borut.razem AT siol.net>
2746
2747         * support/cpp2/libiberty.h: commented out x*alloc() declarations
2748           since they are redefined by macros in support/cpp2/sdcc.h
2749         * support/cpp2/sdcc.h: x*alloc macro redefinition
2750
2751 2006-11-25 Borut Razem <borut.razem AT siol.net>
2752
2753         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
2754           support/cpp2/configure, support/cpp2/Makefile.in,
2755           support/cpp2/cppfiles.c, support/cpp2/output.h,
2756           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
2757           support/cpp2/config.h, support/cpp2/cpplib.h,
2758           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
2759           support/cpp2/cppdefault.c, support/cpp2/config.in,
2760           support/cpp2/system.h, support/cpp2/cpplex.c,
2761           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
2762           support/cpp2/cppdefault.h, support/cpp2/prefix.c
2763           support/cpp2/hwint.h, support/cpp2/mbchar.h,
2764           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
2765           support/cpp2/configure.in, support/cpp2/intl.h,
2766           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
2767           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
2768           support/cpp2/version.c, support/cpp2/cppmain.c,
2769           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
2770           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
2771           support/cpp2/cpperror.c,
2772           support/cpp2/libiberty/safe-ctype.c,
2773           support/cpp2/libiberty/safe-ctype.h,
2774           support/cpp2/libiberty/splay-tree.c,
2775           support/cpp2/libiberty/obstack.c,
2776           support/cpp2/libiberty/lbasename.c,
2777           support/cpp2/libiberty/splay-tree.h,
2778           support/cpp2/libiberty/obstack.h:
2779           synchronized with GCC CPP release version 3.2.3,
2780           the latest before integration of cpp into gcc
2781         * support/cpp2/except.h, support/cpp2/line-map.c,
2782           support/cpp2/line-map.h,
2783           support/cpp2/libiberty/hex.c,
2784           support/cpp2/libiberty/concat.c,
2785           support/cpp2/libiberty/filenames.h: added
2786         * support/cpp2/intl.c: deleted
2787
2788 2006-11-24 Borut Razem <borut.razem AT siol.net>
2789
2790         * src/SDCC.y: enabled compilation of empty source file
2791         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
2792           "ISO C forbids an empty source file"
2793         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
2794           if all the code is ifdefed out.
2795
2796 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2797
2798         * src/hc08/gen.c (genPcall): fix for bug #1601032
2799
2800 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
2801
2802         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
2803         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
2804         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
2805         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
2806         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
2807         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
2808         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
2809         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
2810         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
2811         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
2812         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
2813         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
2814         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
2815         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
2816         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
2817           Renamed to all upper case as per the standard set by SiLabs
2818
2819 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
2820
2821         * device/include/mcs51/C8051F520.h: new, added
2822         * device/include/mcs51/compiler.h: added link about predefined macros
2823
2824 2006-11-23 Raphael Neider <rneider AT web.de>
2825
2826         * src/regression/Makefile: add -L path to fresh library
2827         * src/regression/simulate: emphasize FAILED output
2828         * src/regression/create_stc: output _failures from gpsim
2829         * src/regression/compare4.c,
2830         * src/regression/rotate6.c: fixed char literals,
2831           all compile, all run =8-D
2832
2833         * src/pic/pcode.h: added isPCASMDIR macro
2834         * src/pic/gen.c (genAnd): fixed bit offset
2835         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
2836           packBits): unified register numbering schemes,
2837           (newReg): do not insert stack registers into hash table,
2838           (initStack): unpinned pseudo stack, simplified,
2839           (typeRegWithIdx): fixed retrieval of stack registers,
2840         * src/pic/pcode.c (addpCodeComment,sameBank): added,
2841           (pCodeReplace): removed invalid assertion,
2842           (insertPCodeInstruction): fixed newly added labels,
2843           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
2844           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
2845           DumpFlow): removed unsed (broken?) code,
2846           (insertBankSel): prevent STATUS from being BANKSELed,
2847           (FixRegisterBanking): rewritten from scratch, implemented generic
2848             optimizations (suppress BANKSELs to same register and to registers
2849             present in all banks),
2850           (AnalyzeBanking): update flow after BANKSELection
2851
2852         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
2853             sharebank, let linker place it, mark STKxx symbols as emitted
2854
2855 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2856
2857         * src/regression/arrays.c,
2858         * src/regression/bank1.c,
2859         * src/regression/bool2.c,
2860         * src/regression/compare7.c,
2861         * src/regression/compare8.c,
2862         * src/regression/compare9.c,
2863         * src/regression/compare10.c,
2864         * src/regression/configword.c,
2865         * src/regression/for.c,
2866         * src/regression/mult1.c,
2867         * src/regression/pointer1.c,
2868         * src/regression/rotate6.c,
2869         * src/regression/string1.c,
2870         * src/regression/struct1.c,
2871         * src/regression/Makefile: make PIC14 regression tests run again
2872           (3 fail, 6 won't compile)
2873
2874 2006-11-21 Raphael Neider <rneider AT web.de>
2875
2876         * device/include/pic16/pic18f4550.h,
2877         * device/include/pic16/pic18f4455.h,
2878         * device/lib/pic16/libdev/pic18f4550.c,
2879         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
2880         * configure.in: removed superfluous closing bracket
2881
2882 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2883
2884         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
2885           always positive.
2886
2887 2006-11-21 Raphael Neider <rneider AT web.de>
2888
2889         * src/pic/device.{c,h}: added pic14_getPIC()
2890         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
2891           (genAnd): added PIC code for one case, fixes #1597044
2892         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
2893           SFRs that are present in all banks (e.g., STATUS)
2894
2895 2006-11-20 Raphael Neider <rneider AT web.de>
2896
2897         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
2898           INCFSZ/INCFSZW and declared them as changing Z bit,
2899           (insertPCodeInstruction): correctly invert the above instructions,
2900           fixes #1599333,
2901           (DoBankSelect): don't panic on po_immediates
2902
2903 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
2904
2905         * as/link/aslink.h,
2906         * as/link/mcs51/lkihx.c (newArea),
2907         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
2908         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
2909
2910 2006-11-11 Raphael Neider <rneider AT web.de>
2911
2912         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
2913           bitfield symbols, fixes #1579535 (once more...).
2914
2915 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2916
2917         * support/regression/generate-cases.py,
2918         * support/regression/fwk/include/testfwk.h,
2919         * support/regression/fwk/lib/testfwk.c: used code pointers,
2920           (about 50kByte less code generated for mcs51)
2921
2922 2006-11-06 Borut Razem <borut.razem AT siol.net>
2923
2924         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
2925           debugger/mcs51/configure: fixed failed check because the function
2926           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
2927           who submitted the patch for gpsim.
2928         * debugger/mcs51/configure.in: removed the result message
2929         * debugger/mcs51/Makefile.in: fixed the config.status warning
2930           "... seems to ignore the --datarootdir setting"
2931
2932 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
2933
2934         * device/include/mcs51/c8051f020.h,
2935         * device/include/mcs51/c8051f040.h,
2936         * device/include/mcs51/c8051f060.h,
2937         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
2938         * src/z80/gen.c (gencjneshort),
2939         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
2940
2941 2006-10-31 Borut Razem <borut.razem AT siol.net>
2942
2943         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
2944           debugger/mcs51/configure: get readline version
2945
2946 2006-10-30 Borut Razem <borut.razem AT siol.net>
2947
2948         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
2949         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
2950           debugger/mcs51/configure: locate readline even when cross compiling
2951         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
2952
2953 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2954
2955         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
2956           serial port.
2957
2958 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
2959
2960         * device/include/malloc.h,
2961         * device/lib/calloc.c,
2962         * device/lib/free.c,
2963         * device/lib/malloc.c,
2964         * device/lib/realloc.c: moved definition of struct into sources
2965         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
2966
2967 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
2968
2969         * as/asx8051.dsp: corrected output directories
2970         * as/link/hc08: new directory for hc08 linker
2971         * as/hc08/aslink.h,             as/link/aslink.h,
2972         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
2973         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
2974         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
2975         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
2976         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
2977         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
2978         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
2979         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
2980         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
2981         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
2982         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
2983         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
2984         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
2985         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
2986         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
2987         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
2988         * as/link/hc08/conf.mk,
2989         * configure,
2990         * configure.in,
2991         * Makefile.in,
2992         * sdcc.dsw: moved hc08 linker to as/link/hc08
2993         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
2994         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
2995         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
2996         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
2997         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
2998         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
2999         * as/link/mcs51/aslink.dsp,
3000         * as/link/mcs51/Makefile.in: factored out the common files
3001         * as/hc08/lkstore.c: deleted, use the one already in as/link/
3002         * as/clean.mk: extra cleaning common files
3003         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
3004         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
3005         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
3006
3007 2006-10-29 Raphael Neider <rneider AT web.de>
3008
3009         * src/pic/ralloc.c (newReg): create aliases for registers with
3010           multiple names to fix #1579535 and #1584001,
3011           (regWithIdx,dirregWithName): resolve aliases on lookup
3012         * src/pic/pcode.c (DoBankSelect): die with error message on failing
3013           bankselect
3014         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
3015           to prevent build errors on small devices
3016
3017 2006-10-28 Raphael Neider <rneider AT web.de>
3018
3019         * src/pic/gen.c (genFunction,genCall): drop "same code page"
3020           assumption within interrupt handlers, fixes #1584940
3021         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
3022           "emitted" to avoid emitting them again in udata
3023
3024 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3025
3026         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
3027         Removed.
3028
3029 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3030
3031         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
3032         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
3033         on/off CR to CRLF conversion.
3034
3035 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3036
3037         * doc/sdccman.lyx: updated IRQ section
3038
3039 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3040
3041         * device/lib/serial_io.c: removed
3042         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
3043         replacements for serial_io.c
3044
3045 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
3046
3047         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
3048
3049 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3050
3051         * device/lib/serial_io.c: Default putchar() and getchar() for
3052           mcs51 uses serial port.
3053
3054 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
3055
3056         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
3057
3058 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3059
3060         * support/regression/ports/mcs51/support.c: smaller
3061         _sdcc_external_startup()
3062         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
3063
3064 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
3065
3066         * device/lib/gbz80/crt0.s,
3067         * device/lib/gbz80/crt0_rle.s,
3068         * device/lib/gbz80/div.s,
3069         * device/lib/gbz80/fstubs.s,
3070         * device/lib/gbz80/heap.s,
3071         * device/lib/gbz80/mul.s,
3072         * device/lib/gbz80/putchar.s,
3073         * device/lib/gbz80/stubs.s,
3074         * device/lib/z80/crt0.s,
3075         * device/lib/z80/crt0_rle.s,
3076         * device/lib/z80/div.s,
3077         * device/lib/z80/fstubs.s,
3078         * device/lib/z80/heap.s,
3079         * device/lib/z80/mul.s,
3080         * device/lib/z80/putchar.s,
3081         * device/lib/z80/stubs.s: reverted, I was mistaken
3082
3083 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3084
3085         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
3086         * support/regression/ports/mcs51/support.c: removed race
3087         condition on TI in _putchar allowing to use serial port mode 0
3088
3089 2006-10-20 Borut Razem <borut.razem AT siol.net>
3090
3091         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
3092
3093 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
3094
3095         * device/lib/gbz80/crt0.s,
3096         * device/lib/gbz80/crt0_rle.s,
3097         * device/lib/gbz80/div.s,
3098         * device/lib/gbz80/fstubs.s,
3099         * device/lib/gbz80/heap.s,
3100         * device/lib/gbz80/mul.s,
3101         * device/lib/gbz80/putchar.s,
3102         * device/lib/gbz80/stubs.s,
3103         * device/lib/z80/crt0.s,
3104         * device/lib/z80/crt0_rle.s,
3105         * device/lib/z80/div.s,
3106         * device/lib/z80/fstubs.s,
3107         * device/lib/z80/heap.s,
3108         * device/lib/z80/mul.s,
3109         * device/lib/z80/putchar.s,
3110         * device/lib/z80/stubs.s: removed all leading underscores from area names
3111
3112 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
3113
3114         * support/regression/ports/mcs51/support.c: use highest baudrate so the
3115           regression tests are not waiting in the simulator for simulated
3116           transmission of debug output
3117
3118 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3119
3120         * device/lib/printf_large.c: slightly smaller
3121         * doc/sdccman.lyx: do not use spaces within html links
3122
3123 2006-10-16 Borut Razem <borut.razem AT siol.net>
3124
3125         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
3126           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
3127           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
3128           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
3129           debugger/mcs51/configure:
3130           [ 1185668 ] add gnu readline support to sdcdb - enabled
3131
3132 2006-10-16 Raphael Neider <rneider AT web.de>
3133
3134         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
3135           fixes #1577882, removes close to all banking optimizations
3136
3137 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
3138
3139         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
3140           variables in code memory
3141         * support/regression/tests/absolute.c: added test for this
3142
3143 2006-10-15 Raphael Neider <rneider AT web.de>
3144
3145         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
3146           devices,
3147           (BankSelect): emit BANKSEL before touching linker-placed regs,
3148           fixes #1570934
3149
3150 2006-10-10 Raphael Neider <rneider AT web.de>
3151
3152         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
3153         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
3154         * src/pic/main.c (_pic14_parseOptions),
3155         * src/pic/main.h: mostly reverted to previous state, now use results
3156             from SDCCmain.c's argument parsing
3157
3158 2006-10-10 Borut Razem <borut.razem AT siol.net>
3159
3160         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
3161           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
3162           [ 1185668 ] add gnu readline support to sdcdb -
3163           prepared for READLINE, not enabled yet,
3164           thanks to <tal.bav AT gmail.com>
3165
3166 2006-10-10 Raphael Neider <rneider AT web.de>
3167
3168         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
3169         * src/pic16/devices.inc,
3170         * device/include/pic16 (pic18f[24]620.h),
3171         * device/include/pic18fregs.h,
3172         * device/lib/pic16/pics.all,
3173         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
3174             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
3175             Gary Plumbridge and Anton Strobl
3176
3177 2006-10-10 Raphael Neider <rneider AT web.de>
3178
3179         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
3180           --stack-siz=NUM options to configure the argument passing stack
3181         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
3182         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
3183           (pic14_getSharebankSize): obey --stack-siz=NUM,
3184           (pic14_getSharebankAddress): obey --stack-loc=NUM
3185
3186 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3187
3188         * doc/sdccman.lyx: added to the manual
3189         * doc/figures/ddd_example.png: added (neither pdflatex nor
3190         most browsers seem to like the .eps file)
3191
3192 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
3193
3194         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
3195         to /tmp and /var/tmp acc. LSB
3196         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
3197         RESULT_TYPE_IFX
3198         * support/regression/tests/onebyte.c: added test
3199
3200 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3201
3202         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
3203
3204 2006-10-05 Borut Razem <borut.razem AT siol.net>
3205
3206         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
3207           thanks to dfulab:
3208           - sdcc.dsw: changed property eol-style to CRLF
3209           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
3210
3211 2006-10-04 Raphael Neider <rneider AT web.de>
3212
3213         * device/include/pic/{pic16f84.h,pic16f84a.h},
3214         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
3215           from patch #1522504, thanks to Robas Teodor
3216
3217 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
3218
3219         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
3220           fixes bug 1566015
3221
3222 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
3223
3224         * src/pic16/glue.c (pic16emitMaps),
3225         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
3226         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
3227         * device/lib/pic16/libc/string/memcpypgm2ram.c,
3228         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
3229           Philipp Krause
3230         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
3231         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
3232
3233 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3234
3235         * support/librarian/sdcclib.c: Added option -l.
3236         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
3237           usage totals.
3238         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
3239           using Windows command prompt.
3240
3241 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
3242
3243         * device/lib/libsdcc.lib: added module rand
3244         * src/ds390/ralloc.c (rematStr),
3245         * src/hc08/ralloc.c (rematStr),
3246         * src/mcs51/ralloc.c (rematStr),
3247         * src/z80/ralloc.c (rematStr): made output more consistent
3248         * src/mcs51/gen.c: cosmetic changes
3249
3250 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
3251
3252         * src/port.h: added mem.cabs_name to PORT
3253         * src/ds390/main.c,
3254         * src/hc08/main.c,
3255         * src/mcs51/main.c,
3256         * src/pic16/main.c,
3257         * src/pic/main.c,
3258         * src/xa51/main.c,
3259         * src/z80/main.c: added cabs_name initializers
3260         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
3261           constants
3262           (emitMaps): emit absolutes in code memory into cabs_name
3263         * src/SDCCmem.c,
3264         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
3265         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
3266         * support/regression/fwk/include/testfwk.h: added define for at
3267         * support/regression/tests/absolute.c: added, new
3268
3269 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
3270
3271         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
3272           optimizations, see also patch 887161 by Stas Sergeev
3273         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
3274           to be necessary anymore,
3275           (102, 103, 104, 127): renamed all occurances of bp to _bp
3276
3277 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
3278
3279         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
3280           thanks Weston T. Schmidt for patch 1555221
3281         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
3282         * src/SDCCicode.c(geniCodeMultiply): small optimization
3283
3284 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
3285
3286         * device/include/stdlib.h: added rand prototypes
3287         * device/lib/rand.c: new, added
3288         * device/lib/Makefile.in: added rand.c
3289         * src/z80/peeph.def,
3290         * src/z80/peeph-gbz80.def,
3291         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
3292
3293 2006-09-20 Raphael Neider <rneider AT web.de>
3294
3295         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
3296
3297 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
3298
3299         * as/link/aslink.h: cosmetic changes
3300         * as/link/mcs51/Makefile.in,
3301         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
3302
3303 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
3304
3305         * as/link/aslink.h,
3306         * as/link/mcs51/aslink.h,
3307         * as/link/z80/aslink.h: merged and moved to as/link/
3308         * as/link/lkstore.c,
3309         * as/link/mcs51/lkstore.c: moved to as/link/
3310         * as/link/clean.mk: remove *.o
3311         * as/link/mcs51/alloc.h: deleted
3312         * as/link/mcs51/lkarea.c: added lnksect prototype
3313         * as/link/mcs51/lkdata.c,
3314         * as/link/mcs51/lklex.c,
3315         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
3316         * as/link/mcs51/lkmem.c,
3317         * as/link/mcs51/lknoice.c: removed include strcmpi.h
3318         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
3319         * as/link/mcs51/aslink.dsp,
3320         * as/link/mcs51/Makefile.aslink,
3321         * as/link/mcs51/Makefile.bcc,
3322         * as/link/mcs51/Makefile.in: updated for moved files
3323         * as/link/z80/lkarea.c,
3324         * as/link/z80/lkhead.c,
3325         * as/link/z80/lklex.c,
3326         * as/link/z80/lklibr.c,
3327         * as/link/z80/lklist.c,
3328         * as/link/z80/lkmain.c,
3329         * as/link/z80/lkrloc.c,
3330         * as/link/z80/lksym.c: synced with mcs51
3331         * as/link/z80/lkdata.c,
3332         * as/link/z80/lkeval.c,
3333         * as/link/z80/lkihx.c,
3334         * as/link/z80/lks19.c: cosmetic changes
3335         * as/link/z80/Makefile.in,
3336         * as/link/z80/linkgbz80.dsp,
3337         * as/link/z80/linkz80.dsp: updated for moved files
3338
3339 2006-09-16 Borut Razem <borut.razem AT siol.net>
3340
3341         * debugger/mcs51/sdcdb.c: partially fixed
3342           [ 1203664 ] sdcdb fails to open files w. two "." periods
3343         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
3344           debugger/mcs51/symtab.h: fixed indenting
3345         * configure.in, configure: up to date with latest Maarten's changes
3346
3347 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
3348
3349         as/link/mcs51
3350         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
3351         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
3352         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
3353         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
3354         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
3355         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
3356         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
3357         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
3358         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
3359         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
3360         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
3361         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
3362         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
3363         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
3364         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
3365         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
3366         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
3367         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
3368         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
3369         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
3370         as/link/mcs51/alloc.h,
3371         as/link/mcs51/clean.mk,
3372         as/link/mcs51/conf.mk,
3373         as/link/mcs51/Makefile.bcc,
3374         as/link/mcs51/Makefile.in,
3375         as/link/mcs51/readme.390,
3376         as/link/mcs51/strcmpi.c,
3377         as/link/mcs51/strcmpi.h,
3378         as/mcs51/clean.mk,
3379         as/mcs51/Makefile.bcc,
3380         as/mcs51/Makefile.in,
3381         configure,
3382         Makefile.in,
3383         sdcc.dsw: moved mcs51 linker to as/link/mcs51
3384
3385 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
3386
3387         * as/link,
3388         * as/link/Makefile.in,
3389         * as/link/z80/linkgbz80.dsp,
3390         * as/link/z80/linkz80.dsp,
3391         * configure,
3392         * link,
3393         * link/clean.mk,
3394         * link/Makefile.in,
3395         * link/README,
3396         * link/z80,
3397         * link/z80/aslink.h,
3398         * link/z80/clean.mk,
3399         * link/z80/conf.mk,
3400         * link/z80/linkgbz80.dsp,
3401         * link/z80/linkz80.dsp,
3402         * link/z80/lkarea.c,
3403         * link/z80/lkdata.c,
3404         * link/z80/lkeval.c,
3405         * link/z80/lkgb.c,
3406         * link/z80/lkgg.c,
3407         * link/z80/lkhead.c,
3408         * link/z80/lkihx.c,
3409         * link/z80/lklex.c,
3410         * link/z80/lklibr.c,
3411         * link/z80/lklist.c,
3412         * link/z80/lkmain.c,
3413         * link/z80/lkrloc.c,
3414         * link/z80/lks19.c,
3415         * link/z80/lksym.c,
3416         * link/z80/Makefile.in,
3417         * Makefile.in,
3418         * sdcc.dsw: moved link/ to as/link/
3419
3420 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
3421
3422         * as/mcs51/i51mch.c (machine): fixed warning
3423
3424 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
3425
3426         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
3427
3428 2006-09-09 Borut Razem <borut.razem AT siol.net>
3429
3430         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
3431           sdcdb WIN32 native port
3432         * src/clean.mk: fixed
3433
3434 2006-09-08 Borut Razem <borut.razem AT siol.net>
3435
3436         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
3437
3438 2006-09-08 Raphael Neider <rneider AT web.de>
3439
3440         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
3441         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
3442             to gplink to disable processor mismatch warning and to allow
3443             the use of devices with only aliased (shared) memory banks,
3444           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
3445
3446 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3447
3448         * doc/sdccman.lyx: Some re-formating plus example on using
3449           #pragma preproc_asm +/-
3450
3451 2006-09-07 Borut Razem <borut.razem AT siol.net>
3452
3453         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
3454           section
3455
3456 2006-09-06 Borut Razem <borut.razem AT siol.net>
3457
3458         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
3459           line at sdcc.nsi:153
3460         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
3461
3462 2006-09-05 Borut Razem <borut.razem AT siol.net>
3463
3464         * configure.in, configure: support for winsock2
3465         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
3466           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
3467           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
3468           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
3469           debugger/mcs51/symtab.h: sdcdb WIN32 native port
3470
3471 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
3472
3473         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
3474           and OP_DEFS
3475         * support/regression/tests/bug1551947.c: new, added
3476         * src/SDCCsymt.h: strings are char* not byte*
3477
3478 2006-09-05 Raphael Neider <rneider AT web.de>
3479
3480         * device/lib/pic16/libdev/pic18f4550.c,
3481           device/include/pic16/pic18f4550.h: added PORTD/TRISD
3482             declarations/definitions from patch #1520949
3483
3484 2006-09-05 Raphael Neider <rneider AT web.de>
3485
3486         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
3487           byte-aligned bitfields, fixes #1539278
3488
3489 2006-09-05 Raphael Neider <rneider AT web.de>
3490
3491         * src/pic/gen.c (genReceive): skip unreferenced arguments,
3492           fixes #1544120
3493
3494 2006-09-04 Borut Razem <borut.razem AT siol.net>
3495
3496         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
3497         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
3498           -mno-cygwin is a part of the compiler name
3499         * support/scripts/sdcc_mingw32: don't disable ucsim
3500
3501 2006-09-03 Borut Razem <borut.razem AT siol.net>
3502
3503         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
3504         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
3505
3506 2006-09-03 Raphael Neider <rneider AT web.de>
3507
3508         * src/pic/ralloc.c,
3509         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
3510           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
3511           fixes #1550049
3512
3513 2006-09-01 Borut Razem <borut.razem AT siol.net>
3514
3515         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
3516           to make ppc-osx happy
3517
3518 2006-08-31 Borut Razem <borut.razem AT siol.net>
3519
3520         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
3521         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
3522         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
3523         * support/regression/ports/ds390/spec.mk,
3524           support/regression/ports/mcs51/spec.mk,
3525           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
3526           To run regression tests in mingw environment:
3527           make DEV_NULL=NUL CC=gcc
3528
3529 2006-08-30 Borut Razem <borut.razem AT siol.net>
3530
3531         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
3532           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
3533           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
3534           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
3535           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
3536           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
3537           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
3538           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
3539           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
3540           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
3541           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
3542           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
3543           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
3544           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
3545           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
3546           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
3547           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
3548           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
3549           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
3550           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
3551           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
3552           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
3553           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
3554           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
3555           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
3556           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
3557           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
3558           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
3559           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
3560           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
3561           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
3562           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
3563           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
3564           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
3565           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
3566           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
3567           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
3568           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
3569           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
3570           ucsim WIN32 native port
3571
3572 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3573
3574         * doc/sdccman.lyx: added note on dynamic memory heap initialization
3575
3576 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
3577
3578         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
3579         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
3580
3581 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
3582
3583         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
3584         * support/regression/tests/bug1546986.c: new, added
3585         * as/mcs51/.cvsignore,
3586         * debugger/mcs51/.cvsignore,
3587         * src/.cvsignore: deleted
3588
3589 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3590
3591         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
3592           definitions)
3593
3594 2006-08-20 Borut Razem <borut.razem AT siol.net>
3595
3596         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
3597           removed cl_listen_console::match(), cl_console::match(),
3598           restructured cl_commander::proc_input()
3599
3600 2006-08-16 Borut Razem <borut.razem AT siol.net>
3601
3602         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
3603           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
3604           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
3605
3606 2006-08-14 Borut Razem <borut.razem AT siol.net>
3607
3608         * support/regression/Makefile.in,
3609           support/regression/ports/pic14/gpsim.cmd,
3610           support/regression/ports/pic14/spec.mk,
3611           support/regression/ports/pic14/support.c:
3612           added pic14 regression test
3613
3614 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
3615
3616         * as/doc/asxhtm.html: documented changed ABS behaviour
3617         * as/doc/README: fixed some typos
3618
3619 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
3620
3621         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
3622           not defined on host
3623
3624 2006-08-12 Borut Razem <borut.razem AT siol.net>
3625
3626         * support/regression/fwk/include/testfwk.h,
3627           support/regression/fwk/lib/testfwk.c,
3628           support/regression/generate-cases.py,
3629           support/regression/Makefile.in:
3630           regression test framework does not depend on function pointers and
3631           variable arguments
3632
3633 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
3634
3635         * device/include/stddef.h: c temporary hack to fix bug 1518273
3636
3637 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3638
3639         * device/include/mcs51/cc2510fx.h: added
3640         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
3641           to projects.
3642
3643 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
3644
3645         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
3646         * as/z80/Makefile.in: added strcmpi.c
3647         * as/z80/z80adr.c: added upper case registers and lower case conditionals
3648         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
3649
3650 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
3651
3652         * device/lib/gbz80/asm_strings.s,
3653         * device/lib/gbz80/crt0_rle.s,
3654         * device/lib/gbz80/div.s,
3655         * device/lib/gbz80/mul.s,
3656         * device/lib/gbz80/shift.s,
3657         * device/lib/z80/asm_strings.s,
3658         * device/lib/z80/crt0_rle.s,
3659         * device/lib/z80/div.s,
3660         * device/lib/z80/mul.s,
3661         * device/lib/z80/shift.s: changed to all lower case menmonics except the
3662           flags which are all upper case
3663
3664 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
3665
3666         * as/z80/asm.h: made CASE_SENSITIVE 1
3667         * link/z80/aslink.h: made CASE_SENSITIVE 1
3668         * src/z80/gen.c (throughout): made all conditionals upper case
3669         * support/regression/tests/bug1503067.c: new
3670
3671 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
3672
3673         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
3674           (shiftIntoPair): added case 2 for PAIR_IY,
3675           (setupToPreserveCarry): replaced parameters with iCode and check if
3676            PAIR_DE is in use to fix bug 1399290,
3677           (genPlus, genMinus): updated call to setupToPreserveCarry
3678         * support/regression/tests/bug1399290.c: new
3679
3680 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
3681
3682         * device/lib/Makefile.in (Z80SOURCES): enabled float support
3683         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
3684         * src/ds390/gen.c (shiftRLong),
3685         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
3686         * src/mcs51/gen.c (sameReg): changed to sameByte,
3687           (xch_a_aopGet): new,
3688           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
3689            shiftRLong): fixed bug 1533966
3690         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
3691           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
3692         * support/regression/Makefile.in: disabled z80, enabled ucz80
3693         * support/regression/tests/float_trans.c: enabled test for z80 and host
3694         * support/regression/tests/shifts2.c: new, for testing bug 1533966
3695
3696 2006-08-01 Borut Razem <borut.razem AT siol.net>
3697
3698         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
3699           comparison is always false due to limited range of data type
3700           on PPC64 machine (openpower-linux1) where "char = unsigned char"
3701
3702 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
3703
3704         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
3705         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
3706         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
3707         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
3708
3709 2006-07-31 Borut Razem <borut.razem AT siol.net>
3710
3711         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
3712           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
3713           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
3714           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
3715           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
3716           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
3717           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
3718           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
3719           enable ucsim mingw compilation. Serial port is disabled,
3720           since it uses termios.h API, which is not available on native
3721           WIN32
3722
3723 2006-07-31 Borut Razem <borut.razem AT siol.net>
3724
3725         * Small Device C Compiler 2.6.0 released
3726         * support/scripts/sdcc.nsi: added FULL_DOC option
3727         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
3728
3729 2006-07-28 Borut Razem <borut.razem AT siol.net>
3730
3731         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
3732         * doc/INSTALL.txt: updated
3733
3734 2006-07-27 Borut Razem <borut.razem AT siol.net>
3735
3736         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
3737           device/lib/pic/libdev/Makefile.in: fixed bug
3738           [ 1438354 ] pic libsdcc: distclean doesn't work
3739         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
3740           device/lib/pic16/libio/Makefile.in: fixed bug
3741           [ 1438344 ] pic16 lib: clean doesn't work properly
3742         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
3743
3744 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
3745
3746         * device/lib/pic/libsdcc/fsdiv.c,
3747         * device/lib/pic/libsdcc/fsmul.c,
3748         * device/lib/pic16/libsdcc/float/fsdiv.c,
3749         * device/lib/pic16/libsdcc/float/fsmul.c,
3750         * device/lib/_fsdiv.c,
3751         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
3752         * support/regression/tests/bug1520966.c: added
3753         * doc/knownbugs.html: removed [ 1520966 ] from the list
3754
3755 2006-07-25 Borut Razem <borut.razem AT siol.net>
3756
3757         * configure.in, configure, sdccconf_in.h: fixed bug
3758           [ 1519095 ] regression test onebyte.c fails on ppc64 host
3759         * doc/knownbugs.html: removed [ 1519095 ] from the list
3760
3761 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
3762
3763         * doc/knownbugs.html: added, contains list of known bugs at release
3764         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
3765
3766 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
3767
3768         * device/include/mcs51/compiler.h: added SFRX for xdata based special
3769           function registers and corrected defaults with additional warning
3770         * device/lib/malloc.c: cosmetic changes
3771         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
3772         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
3773           (fillGaps): and used it
3774
3775 2006-07-20 Raphael Neider <rneider AT web.de>
3776
3777         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
3778           output unless SDCCPICDEBUG is set
3779         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
3780           output if SILENT is set
3781
3782 2006-07-11 Borut Razem <borut.razem AT siol.net>
3783
3784         * doc/README.txt: updated
3785
3786 2006-07-10 Borut Razem <borut.razem AT siol.net>
3787
3788         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
3789           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
3790           in WIN32 installation
3791         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
3792           release candidate 1
3793
3794 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
3795
3796         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
3797         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
3798
3799 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
3800
3801         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
3802
3803 2006-07-06 Borut Razem <borut.razem AT siol.net>
3804
3805         * support/regression/tests/bitfields.c:
3806           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
3807         * support/regression/tests/constantRange.c:
3808           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
3809
3810 2006-07-04 Borut Razem <borut.razem AT siol.net>
3811
3812         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
3813           src/port.mk,
3814           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
3815           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
3816           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
3817           reverted changes from 2006-07-03
3818         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
3819         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
3820           added CPPFLAGS, used by the host port
3821
3822 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
3823
3824         * support/regression/valdiag/tests/switch.c,
3825         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
3826         * support/regression/tests/libmullong.c: fixed for host
3827         * support/regression/ports/host/spec.mk: disable all warnings for host,
3828         SDCC runs with --less-pedantic too
3829
3830 2006-07-03 Borut Razem <borut.razem AT siol.net>
3831
3832         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
3833           defined CPPFLAGS
3834         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
3835         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
3836           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
3837           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
3838           include ../port.mk
3839         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
3840           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
3841           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
3842           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
3843
3844 2006-07-02 Raphael Neider <rneider AT web.de>
3845
3846         * src/pic16/devices.inc,
3847         * device/include/pic16/pic18fregs.h,
3848         * device/include/pic16/pic18f4550.h,
3849         * device/lib/pic16/pics.all,
3850         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
3851
3852 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
3853
3854         * as/hc08/lkaomf51.c (OutputName),
3855         * as/mcs51/lkaomf51.c (OutputName),
3856         * as/z80/asmain.c (asmbl),
3857         * src/ds390/main.c (asmLineNodeFromLineNode),
3858         * src/hc08/ralloc.c (hc08_assignRegisters),
3859         * src/mcs51/main.c (asmLineNodeFromLineNode),
3860         * src/xa51/ralloc.c (checkRegMask),
3861         * src/xa51/gen.c (emitcode),
3862         * src/z80/gen.c (_emit2),
3863         * src/SDCCast.c (searchLitOp),
3864         * src/SDCCglobl.h,
3865         * support/packihx/packihx.c,
3866         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
3867         * src/ds390/gen.c (aopPutUsesAcc),
3868         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
3869         * support/regression/tests/libmullong.c (mullong_wrapper),
3870         * src/SDCCsymt.c (powof2),
3871         * src/SDCCast.c,
3872         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
3873         * src/SDCCsymt.h: added TYPE_TARGET_*
3874         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
3875         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
3876         SDCCast because 1) header problems 2) this is the right place
3877         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
3878         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
3879         prototype
3880
3881 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
3882
3883         * src/SDCCicode.h: removed buggy semicolon in unused macro
3884         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
3885         search for previous definiton of auto symbols too,
3886         (findPrevUse): fixed logic of emitWarnings
3887
3888 2006-06-26 Raphael Neider <rneider AT web.de>
3889
3890         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
3891           PCLATH and PCLATU on interrupts, potentially fixes #1505141
3892
3893 2006-06-25 Raphael Neider <rneider AT web.de>
3894
3895         * device/lib/pic/libm: NEW, added math library functions
3896         * device/lib/pic/libsdcc: NEW; added float support functions
3897         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
3898         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
3899           NEW, added math related headers
3900         * device/include/asm/pic/features.h: NEW
3901         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
3902           (popGet): allow larger offsets for AOP_PCODE,
3903           (genDataPointerSet): handle literals explicitly, more debug output,
3904           (genAssign): fixed for float using aopLiteral ;-)
3905         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
3906           GOTO initialisation routine
3907         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
3908           flag on registers, fixes #1469043 (local variables do not work)
3909         * src/pic/main.c (_pic14_do_link),
3910         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
3911           available
3912
3913 2006-06-25 Borut Razem <borut.razem AT siol.net>
3914
3915         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
3916           characters printed (not including the trailing '\0' used to end
3917           output to strings). Problem detected in regression test bug-927659.c.
3918           NOTE: printf() family functions should return int instead
3919           unsigned int!
3920         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
3921           specifier are printed as themselves
3922         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
3923           support flags, width and precision specifiers
3924
3925 2006-06-24 Borut Razem <borut.razem AT siol.net>
3926
3927         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
3928           to the list of sdcc tagrets not supporting bit type
3929         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
3930           testfor pic16 due to bug:
3931           [ 1511794 ] pic16: regression test bug-895992.c fails
3932
3933 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
3934
3935         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
3936         * src/SDCCglue.c (initPointer), fixed bug 1496419
3937         * support/regression/tests/bug1496419.c: new, added
3938
3939 2006-06-22 Borut Razem <borut.razem AT siol.net>
3940
3941         * support/regression/ports/pic16/support.c: use gpsim usart module from
3942           libgpsim_modules library
3943
3944 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3945
3946         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
3947         IP0H to IPH0.
3948
3949 2006-06-19 Raphael Neider <rneider AT web.de>
3950
3951         * src/pic/glue.h,src/pic16/glue.h: added prototypes
3952         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
3953           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
3954           (pic14printExterns,pic14printPublics,pic16printPublics,
3955           pic16_printExterns): use new functions to emit symbols
3956           (picglue,pic16glue): emit publics before emitting externs
3957         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
3958           locally defined functions to avoid bug #1443651
3959         * support/regression/tests/bug-716242.c: removed pic16 workaround
3960         * support/regression/ports/pic16/spec.mk: ignore errors during build
3961
3962 2006-06-19 Raphael Neider <rneider AT web.de>
3963
3964         * src/pic/glue.h: added pic14aopLiteral prototype
3965         * src/pic/glue.c (pic14aopLiteral): return unsigned int
3966         * src/pic/gen.c: removed stdint.h dependency
3967           (aopGet): use Safe_strdup()
3968           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
3969           (genDataPointerSet): use pic14aopLiteral()
3970         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
3971           for pic16; thanks to Bernhard and Maarten
3972
3973 2006-06-18 Borut Razem <borut.razem AT siol.net>
3974
3975         * support/regression/tests/structflexarray.c: flexible array members
3976           not supported by gcc < 3
3977         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
3978           GUI tool by default
3979         * src/pic/gen.c: don't include [p]strdin.h on solaris
3980         * support/Util/pstdint.h: addad svn attributes
3981         * support/regression/tests/constantRange.c,
3982           support/regression/tests/rotate.c: include inttypes.h instead
3983           stdint.h on solaris, addad svn attributes
3984
3985 2006-06-18 Raphael Neider <rneider AT web.de>
3986
3987         * src/SDCCsymt.c (initCSupport): change return type of divschar to
3988           int for PIC16
3989         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
3990           (pic16_genMinusBits): simplified sign-extension
3991           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
3992             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
3993             adjusted to correctly handle mixed-signed operands, disabled
3994             now unused multiplciation routines
3995         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
3996           (assignResultValue): added argument denoting the size of the result
3997             as returned by the function (fixes upcasts in assigning from
3998             function calls: char foo(); int i = foo();)
3999           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
4000             function result to assignResultValue
4001           (genMult): disabled inlined multiplication code
4002           (genDiv): augmented to also handle the modulus operator, fixed to
4003             handle mixed-signed operands correctly
4004           (genMod): simply call genDiv, disabled unused code
4005           (genAssign): fixed missing (sign-)extension on result
4006         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
4007             valid char operands, allow signed operands for native code, added
4008             division and modulo operator handling
4009         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
4010
4011         As a consequence, onebyte.c (if split into two files) and muldiv.c
4012         pass regression tests.
4013
4014 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4015
4016         * doc/Makefile.in: two runs of makeindex seem needed to get
4017         correct page references in the index of sdccman.pdf
4018         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
4019
4020 2006-06-17 Borut Razem <borut.razem AT siol.net>
4021
4022         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
4023
4024 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4025
4026         * doc/sdccman.lyx: updated, added (porting source code, debugging),
4027         mentioned ec2drv and paulmon
4028
4029 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
4030
4031         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
4032           consecutive abs areas
4033           (find_empty_space, allocate_space): added map to handle codemap or
4034            xdatamap,
4035           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
4036            absolute idata and xdata
4037         * as/mcs51/lkmem.c (summary2): updated legend
4038
4039 2006-06-16 Raphael Neider <rneider AT web.de>
4040
4041         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
4042
4043 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
4044
4045         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
4046           1208515
4047         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
4048
4049 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
4050
4051         * src/port.h (struct PORT): added field gp_tags, to hold the tag
4052         value of generic pointers,
4053         * src/avr/main.c,
4054           src/ds390/main.c,
4055           src/hc08/main.c,
4056           src/izt/i186.c,
4057           src/izt/tlcs900h.c,
4058           src/mcs51/main.c,
4059           src/pic/main.c,
4060           src/pic16/main.c,
4061           src/xa51/main.c,
4062           src/z80/main.c: PORT structure, added elements for gp_tags field,
4063         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
4064         fields in the PORT structure of each port,
4065         * src/SDCCast.c (decorateType): allow processing of generic pointers
4066         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
4067         S_FIXED symbols
4068
4069 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
4070
4071         * link/z80/lkgb.c,
4072         * link/z80/lkgg.c,
4073         * src/pic16/gen.c,
4074         * src/pic16/main.c,
4075         * src/pic16/pcode.c,
4076         * src/pic/main.c,
4077         * src/pic/pcoderegs.c,
4078         * src/SDCCicode.c,
4079         * src/SDCCmain.c,
4080         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
4081           bug 1504689 on minGW
4082
4083 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4084
4085         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
4086
4087 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
4088
4089         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
4090
4091 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
4092
4093         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
4094           for optimization
4095
4096 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
4097
4098         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
4099         to a char variable. Fixed bug #1504211
4100         * device/include/pic16/adc.h,
4101         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
4102         and fixed bug #1364390
4103
4104 2006-06-10 Borut Razem <borut.razem AT siol.net>
4105
4106         * CVSROOT: removed the CVS left-over
4107
4108 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
4109
4110         * as/hc08/asmain.c (asexit),
4111         * as/hc08/lkmain.c (lkexit),
4112         * as/mcs51/asmain.c (asexit),
4113         * as/mcs51/lkmain.c (lkexit),
4114         * src/SDCCglue.c (DEFSETFUNC),
4115         * src/SDCCmain.c (linkEdit, assemble),
4116         * support/librarian/sdcclib.c (AddRel),
4117           replaced unlink() by standard C remove()
4118         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
4119         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
4120           gatherImplicitVariables): new, added to fix bug 608752,
4121           (createFunction): added gatherImplicitVariables()
4122         * src/SDCCast.h: added createRMW prototype
4123         * src/SDCCsymt.h (struct symbol): added infertype
4124         * support/regression/tests/bug608752.c: new, added
4125
4126 2006-06-10 Raphael Neider <rneider AT web.de>
4127
4128         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
4129           multibyte dummy reads (fixes #1503234)
4130
4131 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
4132
4133         * device/include/mcs51/compiler.h: new, added header file to enable
4134           creating common sfr definition header files for different compilers
4135
4136 2006-06-05 Raphael Neider <rneider AT web.de>
4137
4138         * src/pic16/{pcode.h,genarith.c}:
4139           introduced pCodeOp combining any two pCodeOps (previously only
4140           two register operands could be combined), removed pcop2 from
4141           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
4142         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
4143         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
4144           rewritten to use new PO_TWO_OPS
4145         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
4146         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
4147           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
4148           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
4149           (pic16_get_op): embraced return arg to allow #define return(x),
4150             added new case for combined opcodes
4151           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
4152           (pic16_pCode2str,pic16_getRegFrompCodeOp,
4153            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
4154
4155 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
4156
4157         * src/SDCCval.c (checkConstantRange): added
4158         * src/SDCCval.h: added checkConstantRange
4159         * support/Util/SDCCerr.c,
4160         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
4161         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
4162         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
4163         * src/SDCCast.c (decorateType): added checkConstantRange,
4164         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
4165         can be emitted with the correct always true/false warning,
4166         added optimization for double '!';
4167         result of decorateType() must be assigned back to the tree, because
4168         decorateType() can change the tree
4169         * src/SDCCicode.c (geniCodeLogic),
4170         (geniCodeAssign): replaced new checkConstantRange, added warnings,
4171         (checkConstantRange): removed, it was only a fragment which never
4172         emitted a warning
4173         * src/SDCCsymt.c (computeType): fixed promotion for
4174         "-1 < (unsigned bit) b"
4175         * src/pic/ralloc.c (packRegsForAssign),
4176         * src/pic16/ralloc.c (packRegsForAssign),
4177         * src/hc08/ralloc.c (packRegsForAssign),
4178         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
4179         from mcs51
4180         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
4181         * support/regression/tests/constantRange.c: added
4182         * support/valdiag/tests/constantRange.c: added
4183         * support/valdiag/valdiag.py: added -DPORT_HOST=1
4184
4185 2006-06-02 Borut Razem <borut.razem AT siol.net>
4186
4187         * support/regression/ports/pic16/support.c: increase stack size
4188           to 255 bytes
4189         * support/regression/Makefile.in: sort tests by name so that the
4190           resutlts can be compared on different machines / platforms
4191
4192 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
4193
4194         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
4195         * src/ds390/gen.c (emitLabel): new, added,
4196           (genDjnz): fixed stack overflow bug,
4197           (throughout): cosmetic changes to sync with mcs51/gen.c,
4198           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
4199         * src/mcs51/gen.c (genEndFunction): small optimization,
4200           (throughout): cosmetic changes to sync with ds390/gen.c
4201
4202 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
4203
4204         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
4205           (_print_format): fixed printing pointers
4206         * src/mcs51/gen.c (emitLabel, movb): new, added,
4207           (genAssign): small optimization,
4208           (genDjnz): fixed stack overflow bug,
4209           (throughout): replaced sprintf with SNPRINTF,
4210           replaced mcs51_regWithIdx with REG_WITH_INDEX,
4211           replaced emitcode("mov", "b,...") with MOVB(...),
4212           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
4213           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
4214         * src/mcs51/peeph.def: added rules 140 and 264
4215         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
4216           so they may get optimized into registers
4217
4218 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
4219
4220         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
4221           immediately when encountered,
4222           (printUsage): always use stderr even on windows
4223
4224 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
4225
4226         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
4227         (processParms): fixed bug #1247551
4228         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
4229         parseCmdLine, main): print '--version' to stdout,
4230         print 'help' to stdout if --help is given,
4231         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
4232         arguments are given; fixed --help
4233
4234 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
4235
4236         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
4237         * support/regression/tests/bug-1493710.c: added
4238
4239 2006-05-27 Borut Razem <borut.razem AT siol.net>
4240
4241         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
4242           static instead auto
4243         * support/regression/ports/pic16/support.c: increase stack size
4244           from default 64 bytes to 128 bytes
4245         * support/regression/tests/staticinit.c,
4246           support/regression/tests/float.c: regression tests fully enabled
4247           for pic16 port by putting the initialized data arrays into the code
4248           section
4249         * support/regression/ports/pic16/spec.mk: don't link default libraries.
4250           This was changed by mistake in the previous version.
4251
4252 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
4253
4254         * src/pic16/gen.c (genFunction, genEndFunction): some
4255         beautifications, fixed bug with falsely restoring FSR2 in large
4256         stack model, thanks to Beau E. Cox for reporting the bug
4257
4258 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
4259
4260         * debugger/mcs51/break.c,
4261         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
4262           use %p to print pointers, made address variables unsigned
4263         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
4264         * debugger/mcs51/symtab.c (parseSymbol): must return something
4265         * src/mcs51/gen.c (aopForSym): small optimization,
4266            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
4267           (freeAsmop): added missing break,
4268           (aopPut): removed parameter bvolatile, determine it inside the function,
4269           (saveRegisters, unsaveRegisters): small optimization,
4270           (genIpush): removed pointless check,
4271           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
4272           replaced sprintf with SNPRINTF,
4273           replaced strcpy with strncpyz,
4274           updated aopPut calls,
4275           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
4276         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
4277
4278 2006-05-24 Borut Razem <borut.razem AT siol.net>
4279
4280         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
4281           modification of test for the pic16 port, put the array to the code
4282           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
4283
4284 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4285
4286         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
4287         * support/Util/pstdint.h: added
4288
4289 2006-05-22 Borut Razem <borut.razem AT siol.net>
4290
4291         * src/regression/Makefile: removed bool2.c test, added -q linker option
4292         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
4293           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
4294           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
4295           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
4296           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
4297           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
4298           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
4299           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
4300           define SUPPORT_BIT_TYPES 0, removed unused bit variables
4301
4302 2006-05-22 Raphael Neider <rneider AT web.de>
4303
4304         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
4305           bug #1492360 (problematic due to generic pointers, see code)
4306
4307 2006-05-22 Borut Razem <borut.razem AT siol.net>
4308
4309         * support/regression/ports/pic16/specs.mk: removed stack size linker
4310           directive
4311         * support/regression/tests/array.c,
4312           support/regression/tests/bitopcse.c,
4313           support/regression/tests/bug-908454.c,
4314           support/regression/tests/malloc.c: modified for pic16 regression test
4315         * support/regression/tests/bitfields.c:
4316           pic16 - excluded bitfileds of size > 8
4317         * support/regression/tests/bp.c: pic16 - reduced data size
4318         * support/regression/tests/bug-221100.c: pic16 - reduced data size
4319         * support/regression/tests/bug-460010.c:
4320           pic16 - used the absolute address the fits in memory
4321         * support/regression/tests/bug-716242.c:
4322           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
4323         * support/regression/tests/float.c:
4324           pic16 - excluded - data size too big
4325         * support/regression/tests/onebyte.c:
4326           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
4327         * support/regression/tests/shifts.c:
4328           pic16 - function names probably have to differ in first X characters
4329           (gpasm limitation?)
4330         * support/regression/tests/staticinit.c:
4331           pic16 - excluded some tests due error: no target memory available for
4332           section ".idata"
4333
4334 2006-05-22 Borut Razem <borut.razem AT siol.net>
4335
4336         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
4337           second try. Thanks Stas Sergeev once more.
4338
4339 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
4340
4341         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
4342           (genLeftShift, genRightShift): fixed bug 1491627
4343         * src/hc08/peeph.def (rules 7, 8.x): added
4344         * support/regression/tests/shifts.c (ShiftLeftByParam,
4345           ShiftRightByParam, testShiftByParam): added to test variable shifting
4346
4347 2006-05-20 Raphael Neider <rneider AT web.de>
4348
4349         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
4350         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
4351           (allocReg): add only new registers to dynAllocRegs,
4352           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
4353             #1489055, #1445850, and probably #1483693
4354
4355 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
4356
4357         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
4358         bug in for-loop that didn't emit the last of CONFIG and ID registers
4359
4360 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
4361
4362         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
4363           with offset
4364         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
4365           1489016, 1434401 and 1490124
4366         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
4367           1489016, 1434401 and 1490124
4368
4369 2006-05-17 Borut Razem <borut.razem AT siol.net>
4370
4371         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
4372           thanks Stas Sergeev
4373
4374 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
4375
4376         * device/include/mcs51/P89c51RD2.h,
4377         * device/include/mcs51/P89LPC901.h,
4378         * device/include/mcs51/P89LPC922.h,
4379         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
4380
4381 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
4382
4383         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
4384         to fix missing stack pragma in compiled binary object file,
4385
4386 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
4387
4388         * support/packihx/configure.in,
4389         * support/packihx/configure: removed warning, autoconf >= 2.5x can
4390         determine sizeof basic types even while cross compiling
4391
4392 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
4393
4394         * src/avr/gen.c (aopop),
4395         * src/ds390/gen.c (aopOp),
4396         * src/hc08/gen.c (aopOp),
4397         * src/mcs51/gen.c (aopop),
4398         * src/pic16/gen.c (pic16_aopOp),
4399         * src/pic/gen.c (aopOp),
4400         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
4401         if size of operand is smaller than spill location
4402
4403 2006-05-12 Borut Razem <borut.razem AT siol.net>
4404
4405         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
4406           have to have CR/LF line endings even if they are checked out on *nix
4407           or on WIN32 in cygwin binmode
4408
4409 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
4410
4411         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
4412         * device/include/ds80c390.h: added sfr16 definitions
4413         * src/ds390/gen.c,
4414         * src/ds390/gen.h,
4415         * src/ds390/main.c,
4416         * src/ds390/ralloc.c,
4417         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
4418           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
4419           bit returning functions
4420         * support/regression/tests/sfr16.c: enabled test on ds390
4421
4422 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4423
4424         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
4425         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
4426
4427 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
4428
4429         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
4430         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
4431           (cl_address_space constructor): removed expensive initialization,
4432           (cl_address_space::get_cell): extended for late initialization,
4433           (cl_address_space::*): use late initialization,
4434           (cl_address_decoder::activate): removed expensive initialization,
4435           This reduced regression test running time by 25%
4436
4437 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
4438
4439         * packihx/,
4440         * configure.in,
4441         * configure,
4442         * sdcc.dsw,
4443         * Makefile.bcc,
4444         * Makefile.in,
4445         * support/packihx/Makefile.in,
4446         * support/packihx/clean.mk,
4447         * support/packihx/Makefile.bcc,
4448         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
4449
4450 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4451
4452         * src/SDCCval.c (valNot): fix for regression test failure
4453           of not.c on big endian hosts
4454
4455 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
4456
4457         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
4458
4459 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4460
4461         * device/lib/mcs51/Makefile.in: changed string comparison operator
4462           to = for POSIX compliance; == is bash extension
4463
4464 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
4465
4466         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
4467           kosmonaut_pirx
4468
4469 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
4470
4471         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
4472         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
4473         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
4474         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
4475         bug report #1478657,
4476
4477 2006-05-05 Borut Razem <borut.razem AT siol.net>
4478
4479         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
4480           making the html
4481
4482 2006-05-02 Borut Razem <borut.razem AT siol.net>
4483
4484         * doc/Makefile.in: removed *.ind dependency since there is no rule to
4485           create *.ind, which made make to fail if invoked with -j 2
4486
4487 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
4488
4489         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
4490           Hubert Sack for patch 1479782
4491
4492 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
4493
4494         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
4495
4496 2006-05-01 Raphael Neider <rneider AT web.de>
4497
4498         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
4499           (create_pic): store only prefix-free device name,
4500           (init_pic): check for device names with "16" prefix,
4501           (list_valid_pics),
4502         * src/pic/device.h (struct PIC_device),
4503         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
4504             stored device name,
4505         * device/include/pic/pic12f{635,675,629,683}.h,
4506         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
4507         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
4508         * device/include/pic/pic16f505.h,
4509         * device/lib/pic/libdev/pic16f505.c: removed
4510         * device/include/pic/pic14devices.txt: added support for pic12f
4511             devices, removed unsupported non 16-bit devices
4512             [above changes provided by patch from Zik Saleeba]
4513         * src/pic/*, src/pic16/*, device/include/pic16/*,
4514           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
4515
4516 2006-05-01 Borut Razem <borut.razem AT siol.net>
4517
4518         * configure.in, configure, doc/Makefile.in:
4519           sync with nightly build makefile - latex, dvipdf and dvips
4520           not needed any more
4521
4522 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
4523
4524         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
4525         in the library source
4526
4527 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
4528
4529         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
4530
4531 2006-04-28 Raphael Neider <rneider AT web.de>
4532
4533         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
4534         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
4535           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
4536         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
4537
4538 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
4539
4540         * device/lib/pic/libdev/Makefile.in,
4541         * device/lib/hc08/Makefile.in,
4542         * device/lib/gbz80/Makefile.in,
4543         * device/lib/z80/Makefile.in,
4544         * device/lib/ds390/Makefile.in,
4545         * device/lib/ds400/Makefile.in: added srcdir to include search path,
4546         thanks to Borut for the bug report
4547         * configure.in,
4548         * configure: always create doc/Makefile independent from --enable-doc
4549         * Makefile.in: always install from directory doc independent from
4550         --enable-doc
4551         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
4552         removed
4553         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
4554         * doc/Makefile.in: install *.txt if present
4555         * device/include/Makefile.in (install): added installation of pic/*.inc
4556         and pic/*.txt files again, they were erroneously removed
4557
4558 2006-04-28 Raphael Neider <rneider AT web.de>
4559
4560         * src/pic/{gen.c,main.h,pcode.c},
4561         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
4562             concerning signedness with casts
4563
4564 2006-04-28 Raphael Neider <rneider AT web.de>
4565
4566         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
4567             definition of an interrupt handler,
4568         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
4569             interrupt handler stuff from picglue() to separate routine,
4570           (picglue): enabled definition of intr handlers in files w/o main()
4571
4572 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
4573
4574         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
4575           compilation with MSVC 2005 Express Edition (VC8)
4576
4577 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
4578
4579         * device/lib/Makefile: fixed build of gbz80 lib
4580
4581 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
4582
4583         * support/regression/tests/bug-460010.c,
4584         * support/regression/tests/bug-524691.c,
4585         * support/regression/tests/bug-716242.c: removed conditional defines
4586           that are already in testfwk.h
4587
4588 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
4589
4590         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
4591           (AccAXRsh1): added, shift right by 1,
4592           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
4593            AccAXLrl1
4594         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
4595
4596 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
4597
4598         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
4599         remove cast to same type
4600         * src/SDCCast.c (decorateType): fix for RFE 1475742,
4601         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
4602         * as/z80/Makefile,
4603         * link/z80/Makefile: removed, they have moved to
4604         Makefile.in files
4605         * configure,
4606         * configure.in: replaced duplicate message about ucsim by missing sdcpp
4607         * install-sh: fix bug #1204398 by setting umask 0022
4608         * device/lib/Makefile: separate build of z80 and gbz80 lib
4609
4610 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
4611
4612         Enabled VPATH feature: changed nearly all Makefiles (149 files).
4613         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
4614
4615         One basic decision: e.g. src/clean.mk includes further files. In order
4616         to make this work there are two solutions:
4617         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
4618           run configure on them. This way they can use
4619           'include $(srcdir)/port-clean.mk'
4620         - always include clean.mk by the Makefile at the same level. To avoid
4621           that `make clean` tries to include and build Makefile.dep the
4622           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
4623           implemented, because now even `make uninstall` doesn't create
4624           Makefile.in. clean.mk could be eliminated by pasting it in
4625           Makefile.in.
4626
4627         * debugger/mcs51/Makefile.in: build own objects from library sources
4628         (SLIB, SDCC) in current directory
4629
4630         * configure, configure.in: renamed --disable-device-lib-build in
4631         --disable-device-lib; added --enable-doc, the required tools are
4632         searched by configure; added result message; the toolchain for the
4633         belonging ports are now only built, if the port is enabled.
4634
4635         * support/regression/*: all output is written in directory gen, because
4636         the fwk and ports directories don't livet in the build tree using vpath
4637
4638         * doc/sdccman.lyx: renamed --disable-device-lib-build to
4639         --disable-device-lib, added --enable-doc, added section VPATH
4640
4641         * sim/ucsim/configure.in,
4642         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
4643         z80 are enabled by default
4644
4645 2006-04-24 Raphael Neider <rneider AT web.de>
4646
4647         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
4648             to config word, "pic14_"-prefixed some extern functions
4649           (pic14_emitConfigWord): emit __config directive(s) if assignment to
4650             config word has been found
4651         * src/pic/device.h: added prototypes
4652         * src/pic/pcode.c: added "pic14_"-prefix where needed
4653         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
4654             fixup
4655         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
4656             words,
4657           (pic14emitRegularMap): ignore config words,
4658           (pic14createInterruptVect): moved generating __config directives away
4659           (picglue): have __config directives emitted
4660
4661 2006-04-24 Borut Razem <borut.razem AT siol.net>
4662
4663         * doc/Makefile: sync with nightly build makefile
4664
4665 2006-04-24 Raphael Neider <rneider AT web.de>
4666
4667         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
4668             registers that have not been assigned proper liveranges,
4669             fixes #1469504 and #1474602,
4670           (pCodeRegOptimizeRegUsage): fixed typo in comment
4671
4672 2006-04-24 Borut Razem <borut.razem AT siol.net>
4673
4674         * device/examples/main8051.c: deleted - it was removed from CVS
4675           24.mar.2000 and after that modified 18.feb.2001, so it reappered
4676           after the transition to Subversion
4677         * src/SDCCalloc.h: deleted - it was removed  from CVS
4678           3.feb.2001 and after that modified 18.feb.2001, so it reappered
4679           after the transition to Subversion
4680         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
4681           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
4682           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
4683           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
4684
4685 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
4686
4687         * as/asx8051.dsp: added mcs51/strcmpi.h
4688         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
4689         * as/hc08/aslink.h: updated lnksect prototype
4690         * as/hc08/asm.h,
4691         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
4692         * as/hc08/asmain.c,
4693         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
4694           (newdot): handle A_ABS
4695         * as/hc08/asout.c,
4696         * as/mcs51/asout.c (outarea): output address
4697         * as/hc08/lkaomf51.c,
4698         * as/mcs51/lkaomf51.c: disabled unused array UsageType
4699         * as/hc08/m08pst.c,
4700         * as/mcs51/i51pst.c,
4701         * as/z80/z80pst.c: "ABS" is not A_OVR
4702         * as/hc08/lkarea.c (newarea): read a_addr,
4703           (lnkarea): added codemap array, sort absolute areas to the front,
4704            combine all GSINITx/GSFINAL,
4705           (find_empty_space, allocate_space): new functions,
4706           (lnksect): return next address, handle absolute sections
4707         * as/mcs51/lkarea.c (newarea): read a_addr,
4708           lnksect2 prototype changed,
4709           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
4710           (find_empty_space, allocate_space): new, factored out of lnksect2,
4711           (lnksect2): return next address, handle absolute sections
4712         * as/hc08/lkhead.c,
4713         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
4714         * as/hc08/lklibr.c (addfile, fndsym),
4715         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
4716           index out of range and detect both '\' and '/'
4717         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
4718         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
4719           regression tests (ds390 cannot return bool yet)
4720         * doc/sdccman.lyx: changed version number, document changed --no-peep,
4721           document critical interrupts on z80, document changed SDCC define
4722         * src/asm.c (_asxxxx_mapping): fixed .org directive,
4723           (_a390_mapping): added .org directive
4724         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
4725           (genMultOneByte): fixed warnings
4726         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
4727           ones
4728         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
4729         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
4730           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
4731         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
4732         * src/pic16/main.c: removed newReg prototype
4733         * src/pic16/pcode.c,
4734         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
4735           warnings
4736         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
4737           ones
4738         * src/pic16/ralloc.c
4739         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
4740           to fix warnings
4741         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
4742           from short to PIC_OPTYPE
4743         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
4744         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
4745           optype from short to PIC_OPTYPE
4746         * src/port.h: made int_size unsigned to fix warnings
4747         * src/SDCC.y: fixed warning on MSVC
4748         * src/SDCCicode.c (getArraySizePtr): return unsigned int
4749         * src/SDCCopt.c (convertToFcall): fixed warnings
4750         * src/SDCCsymt.h: removed double prototype for genSymName
4751         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
4752           offset int to fix warnings
4753
4754 2006-04-22 Borut Razem <borut.razem AT siol.net>
4755
4756         * doc/sdccman.lyx, */Makefile, */Makefile.in:
4757           references to CVS replaced with Subversion
4758
4759 2006-04-21 Borut Razem <borut.razem AT siol.net>
4760
4761         * doc/sdccman.lyx, */Makefile, */Makefile.in:
4762           references to CVS replaced with Subversion
4763
4764 2006-04-19 Borut Razem <borut.razem AT siol.net>
4765
4766         * src/version.awk: adapted for svn
4767         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
4768           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
4769           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
4770           /binutils-avr/etc/*.vi, *.jin: removed all properties
4771           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
4772
4773 2006-04-19 Borut Razem <borut.razem AT siol.net>
4774
4775         * CVS to Subversion migration completed
4776
4777 2006-04-18 Borut Razem <borut.razem AT siol.net>
4778
4779         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
4780           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
4781
4782 2006-04-17 Borut Razem <borut.razem AT siol.net>
4783
4784         * device/include/Makefile.in: added pic/*.inc to the installation
4785
4786 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
4787
4788         * support/regression/collate-results.py: fixed output in case of
4789         a valdiag error
4790         * support/regression/generate-cases.py: fixed splitting of pathnames
4791         with dots
4792         * as/hc08/lklibr.c (addfile),
4793         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
4794
4795 2006-04-11 Raphael Neider <rneider AT web.de>
4796
4797         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
4798         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
4799         * src/pic16/pcode.c (assignValnums): fixed #1460578
4800
4801 2006-04-11 Raphael Neider <rneider AT web.de>
4802
4803         * device/lib/pic/libdev/*.c,
4804         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
4805           fixes #1468739, enables compilation in --std-c99 mode
4806         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
4807
4808 2006-04-11 Raphael Neider <rneider AT web.de>
4809
4810         * src/pic/device.c (find_device): removed debug output
4811           (list_valid_pics): enabled verbose listing of supported devices
4812         * device/include/stdbool.h: define bool as char for pic14/16 as well
4813
4814 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4815
4816         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
4817
4818 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
4819
4820         * .version: bumped version to 2.5.6
4821         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
4822
4823 2006-04-06 Raphael Neider <rneider AT web.de>
4824
4825         * .version: bumped version to 2.5.6 (pic14 ABI changed)
4826         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
4827         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
4828           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
4829             pic14_constructAbsMap
4830           (pic14printPublics): declare absolute global symbols as global
4831           (pic14createInterruptVect),
4832         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
4833           (newReg): assume new registers unused, use correct name in
4834             hashtable (reg->name instead of name), more debugLog output
4835         * src/pic/device.h (PIC_device): added fields for verbose output
4836         * src/pic/device.c: moved device definition to pic14devices.txt,
4837             added routines for runtime parsing of pic14devices.txt,
4838             added support for second config word
4839         * src/pic/main.c (_process_pragma): removed #pragma maxram,
4840           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
4841           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
4842           (_pic14_parseOptions): moved pCodeInitRegisters here
4843           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
4844         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
4845           (pCodeInitRegisters): rewrapped comments, perpared new approach to
4846             handling the pseudo stack
4847         * device/lib/Makefile.in: ignore failures in objects-pic16,
4848         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
4849         * device/lib/pic/NEWS: document new dependency on picXXX.lib
4850         * device/lib/pic/Makefile.subdir,
4851         * device/lib/pic16/Makefile.subdir: improved clean rules
4852         * device/lib/pic/libdev/: NEW, pic14 device libraries
4853         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
4854         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
4855         * device/include/Makefile.in: create subdir and install pic14 headers
4856         * device/include/pic/p16f_common.inc: removed unused declarations
4857         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
4858             PICs from inc2h.pl v1.6,
4859             replaced BIT_AT macros with struct declarations
4860         * device/include/pic/pic14devices.txt: definition of supported devices,
4861             all above improvements contributed by Zik Saleeba, thanks
4862         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
4863         * support/scripts/sdcc.nsi: also install pic14 device libraries and
4864             headers
4865
4866 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
4867
4868         * device/include/mcs51/c8051f410.h: added interrupt numbers,
4869         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
4870           thanks to Charles Olds
4871
4872 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4873
4874         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
4875
4876 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
4877
4878         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
4879         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
4880         * support/regression/bug1464657.c: added, new test
4881
4882 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
4883
4884         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
4885           version number
4886
4887 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
4888
4889         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
4890           --no-peep and --peep-file <file> are used don't use default rules but
4891           do use the <file>
4892
4893 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
4894
4895         * src/mcs51/gen.c (genCall): fixed bug 1457608
4896
4897 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4898
4899         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
4900         changes seem to cause (trigger?) problems with the build system.
4901
4902 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
4903
4904         * src/SDCCpeeph.c (operandsLiteral): new, added,
4905           (callFuncByName): inserted operandsLiteral
4906         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
4907
4908 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4909
4910         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
4911         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
4912
4913 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
4914
4915         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
4916           implemented patch 1120823 Thanks to Willy De la Court (normal
4917           interrupts need an interrupt number now if they are made critical),
4918           and enabled nesting of critical functions though not for gbz80
4919           (genCritical, genEndCritical): added functions
4920           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
4921         * src/z80/mappings.i: added "ei" to all mappings
4922
4923 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4924
4925         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
4926         submitted by the Debian SDCC maintainer Aurelien Jarno:
4927         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
4928         archive with gcc 4.1 on mips and wrote the patch"
4929
4930 2006-03-16 Raphael Neider <rneider AT web.de>
4931
4932         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
4933           the left operand is shorter than the result (c* = lit-c* + int),
4934           fixes bug #1450796
4935         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
4936           OP_SYMBOL
4937
4938 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
4939
4940         * src/.version: increased version number to 2.5.5
4941         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
4942         linking is done manually in pic16 port's _linkEdit,
4943         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
4944         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
4945         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
4946         allocate asmop as AOP_ACC,
4947         (aopForRemat): added parameter 'bool result' in function declaration,
4948         (pic16_aopGet): return AOP_ACC when accessing WREG,
4949         (pic16_popGetTempReg): minor modification,
4950         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
4951         'pic16_allocWithIdx',
4952         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
4953         calling function in absolute addresses,
4954         (genAssign): take into account AOP_ACC asmop,
4955         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
4956         * src/pic16/pcoderegs.c: some debug functions and lines added,
4957         * src/pic16/ralloc.c (decodeRegType): added but commented out,
4958         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
4959         register too,
4960         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
4961         call to allocReg, not by manually allocating a new one,
4962         (pic16_assignRegisters): now before going through the register
4963         allocating functions mark all registers as free. This eliminates some
4964         side effects resulting from peephole parser done earlier in the backbone
4965
4966 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
4967
4968         * src/SDCCicode.c (geniCodeLogic),
4969         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
4970
4971 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
4972
4973         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
4974           (genSend): bugfix, do not allocate and free twice,
4975           (shiftRLong): handle partially overlapping aops
4976         * support/regression/tests/bitopcse.c: fixed warning redefined idata
4977
4978 2006-03-08 Borut Razem <borut.razem AT siol.net>
4979
4980         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
4981           for pic16
4982
4983 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
4984
4985         * support/regression/tests/bug1409955.c: new, added
4986         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
4987         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
4988           (aopForSym, aopOp): increment asmop.allocated if reused,
4989           (freeAsmop): decrement asmop.allocated and check for zero instead of
4990           using asmop.freed,
4991           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
4992           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
4993            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
4994            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
4995            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
4996            genSignedRightShift, genRightShift, genDataPointerGet,
4997            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
4998            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
4999             in reverse order from allocation,
5000           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
5001             added swappedLR to keep track
5002         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
5003           pdata & code for GCC, z80, gbz80 & hc08
5004         * support/regression/tests/zeropad.c: moved defines to testfwk.h
5005
5006 2006-03-08 Raphael Neider <rneider AT web.de>
5007
5008         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
5009
5010 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
5011
5012         * device/include/mcs51/c8051f410.h: new SiLabs mcu
5013         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
5014         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
5015
5016 2006-03-06 Borut Razem <borut.razem AT siol.net>
5017
5018         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
5019           made the linker quiet
5020
5021 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
5022
5023         * src/pic16/gen.c (genPcall): fixed bug #1443644
5024         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
5025         which dumps before the function entry point a data byte which represents
5026         the number of the local variables used by the specified function, added
5027         'xinst' for initial support for Extended Instruction Support,
5028         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
5029         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
5030         port->fun_prefix anymore (may change later),
5031         (genFunction, genEndFunction): do not store/restore local registers for
5032         _main (this should take care the --main-return command line option in
5033         the future),
5034         (genOr): removed some legacy pic-port instructions,
5035         * src/pic16/genarith.c (genAddLit): re-enabled old code because
5036         performing operations with SFR's causes data to be written more than
5037         once to each SFR. Perhaps SFRs should be handled in special cases...
5038         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
5039         pcode.h
5040         * src/pic16/main.c (_process_pragma): stack bound checking did not take
5041         into account for stack starting position,
5042         (struct OPTIONS pic16_optionsTable): added command line argument
5043         --extended or -y for Extended Instruction Support,
5044         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
5045         (deassignLRs): *** perhaps the most important change, old 'for' code
5046         (commented out for reference), didn't account for some registers which
5047         were left marked 'not free' after a pointer operation. The change
5048         reduces register usage a lot in some cases
5049
5050 2006-03-04 Borut Razem <borut.razem AT siol.net>
5051
5052         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
5053           _clean
5054         * support/regression/tests/bug-524697.c: decreased array size for
5055           mcs51 to fit into the internal RAM
5056         * support/regression/Makefile.in: a little bit more verbose
5057
5058 2006-03-03 Borut Razem <borut.razem AT siol.net>
5059
5060         * support/regression/fwk/lib/testfwk.c,
5061           support/regression/fwk/include/testfwk.h: introduced function
5062           _prints(), nonrecursive _printn(), call _initEmu() from main()
5063         * support/regression/ports/gbz80/support.asm,
5064           support/regression/ports/ucz80/support.asm,
5065           support/regression/ports/z80/support.asm,
5066           support/regression/ports/ds390/support.c,
5067           support/regression/ports/hc08/support.c,
5068           support/regression/ports/host/support.c,
5069           support/regression/ports/mcs51/support.c,
5070           support/regression/ports/xa51/support.c: added empty _initEmu()
5071           function
5072         * support/regression/ports/pic16/gpsim.cmd,
5073           support/regression/ports/pic16/spec.mk,
5074           support/regression/ports/pic16/support.c,
5075           support/regression/Makefile.in: added pic16 regression test
5076
5077 2006-03-01 Raphael Neider <rneider AT web.de>
5078
5079         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
5080           genConstPointerGet): use safe way of generating MOVFF to cover
5081             literals as well as registers, fixes bug #1440527
5082         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
5083             dereference
5084           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
5085             more correctly, fixes bug #1232186
5086           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
5087         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
5088             gplink guess the correct processor in more cases, applied patch
5089             from Till Riedel attached to and fixing bug #1436552
5090
5091 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5092
5093         * support/regression/tests/array.c: added, contains check for #1434401
5094         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
5095
5096 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
5097
5098         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
5099         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
5100         * device/include/mcs51/c8051f326.h,
5101         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
5102         * device/include/mcs51/c8051f000.h,
5103         * device/include/mcs51/c8051f018.h,
5104         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
5105           PCON_IDLE,PCON_STOP and added sfr16 definitions
5106
5107 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
5108
5109         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
5110           genGetWord): fixed bug 1409955
5111
5112 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
5113
5114         * device/include/hc08/mc68hc908gp32.h,
5115         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
5116
5117 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
5118
5119         * src/SDCCast.c (constExprValue): return NULL if not a value
5120         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
5121         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
5122         * support/regression/tests/bitfields.c: enabled signed bitfield for all
5123
5124 2006-02-13 Borut Razem <borut.razem AT siol.net>
5125
5126         * src/regression/ptrarg.c: added, fails due to bug #1430967
5127         * src/regression/Makefile: ptrarg.c added, ...
5128
5129 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
5130
5131         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
5132         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
5133
5134 2006-02-11 Borut Razem <borut.razem AT siol.net>
5135
5136         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
5137           print "Processor: xxx" message to stdout only if --verbose
5138
5139 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
5140
5141         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
5142         * support/regression/tests/bug1426356.c: added
5143         * support/regression/tests/bitfields.c: removed 2 tests
5144
5145 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
5146
5147         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
5148         * device/include/mcs51/c8051f330.h,
5149         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
5150           PCON_IDLE,PCON_STOP and added sfr16 definitions
5151         * device/lib/_divsint.c,
5152         * device/lib/_divuint.c,
5153         * device/lib/_divulong.c,
5154         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
5155           register bank bug for small stackauto
5156
5157 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
5158
5159         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
5160
5161 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
5162
5163         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
5164         * all.dsp: corrected several bin paths
5165         * device/include/mcs51/c8051f120.h,
5166         * device/include/mcs51/c8051f300.h,
5167         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
5168           to PCON_IDLE,PCON_STOP
5169         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
5170         * device/lib/printf_large.c (output_float): fixed bug 1388703
5171         * support/regression/tests/bug1057979.c: added test for bug 1388703
5172
5173 2006-02-08 Raphael Neider <rneider AT web.de>
5174
5175         * src/pic/pcode.c (pciTRIS): fixed typo,
5176           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
5177           (LinkFlow): fixed handling of flows that end in a call,
5178           (ReuseReg): perform safety check earlier
5179         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
5180             to work with flows at the beginning of a pBlock,
5181             fixes #1426557 (Symbol not previously defined),
5182           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
5183             usage information
5184           (RemoveUnusedRegisters): update register usage info
5185         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
5186             created, reuse existing ones instead
5187         * src/pic/gen.c (genPcall): fixed #1424719
5188
5189 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
5190
5191         * link/z80/lkmain.c,
5192         * link/z80/lklex.c,
5193         * link/z80/lkdata.c,
5194         * link/z80/aslink.h: fixed build on current cygwin:
5195         replaced getline() by lk_getline()
5196
5197 2006-02-01 Borut Razem <borut.razem AT siol.net>
5198
5199         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
5200           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
5201           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
5202           src/regression/bool1.c, src/regression/bool2.c,
5203           src/regression/bool3.c, src/regression/call1.c,
5204           src/regression/compare.c, src/regression/compare10.c,
5205           src/regression/compare2.c, src/regression/compare3.c,
5206           src/regression/compare4.c, src/regression/compare5.c,
5207           src/regression/compare6.c, src/regression/compare7.c,
5208           src/regression/compare8.c, src/regression/compare9.c,
5209           src/regression/configword.c, src/regression/for.c,
5210           src/regression/inline.c, src/regression/mult1.c,
5211           src/regression/nestfor.c, src/regression/or1.c,
5212           src/regression/pointer1.c, src/regression/ptrfunc.c,
5213           src/regression/rotate1.c, src/regression/rotate2.c,
5214           src/regression/rotate3.c, src/regression/rotate4.c,
5215           src/regression/rotate5.c, src/regression/rotate6.c,
5216           src/regression/rotate7.c, src/regression/string1.c,
5217           src/regression/struct1.c, src/regression/sub.c,
5218           src/regression/sub2.c, src/regression/switch1.c,
5219           src/regression/while.c, src/regression/xor.c,
5220           src/regression/create_stc, src/regression/simulate,
5221           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
5222           regression tests
5223         * src/regression/gpsim_assert.h: added
5224
5225 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
5226
5227         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
5228         ((void (code *) (void)) 0) ();
5229         * as/hc08/aslex.c,
5230         * as/hc08/aslink.h,
5231         * as/hc08/asm.h,
5232         * as/hc08/asmain.c,
5233         * as/hc08/lkdata.c,
5234         * as/hc08/lklex.c,
5235         * as/hc08/lkmain.c,
5236         * as/mcs51/aslex.c,
5237         * as/mcs51/aslink.h,
5238         * as/mcs51/asm.h,
5239         * as/mcs51/asmain.c,
5240         * as/mcs51/lkdata.c,
5241         * as/mcs51/lklex.c,
5242         * as/mcs51/lkmain.c,
5243         * as/z80/aslex.c,
5244         * as/z80/asm.h,
5245         * as/z80/asmain.c: fixed build on current cygwin:
5246         replaced getline() by as_getline()
5247
5248 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
5249
5250         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
5251         declarator in the symbol chain
5252         * src/SDCCsymt.h,
5253         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
5254         parameter list for function pointers
5255         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
5256         * support/regression/tests/bug-716242.c: added
5257
5258 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
5259
5260         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
5261         offset if possible
5262         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
5263
5264 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
5265
5266         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
5267         inifinitely recurseable, added static
5268         * support/regression/tests/bug-1408066.c: added
5269
5270 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
5271
5272         * src/SDCCicode.h,
5273         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
5274         renamed, added possibility to create "postLoopLbl"-labels
5275         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
5276         newiTempLoopHeaderLabel
5277         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
5278         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
5279         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
5280         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
5281         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
5282         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
5283         (basicInduction): fixed bug #136564, made static,
5284         (loopInduction): changed parameter of basicInduction, made static,
5285         (addPostLoopBlock): added
5286         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
5287         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
5288         findLoopEndSeq
5289         * support/regression/tests/bug-136564.c: added
5290         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
5291         --std-sdcc99 to LIBSDCCFLAGS
5292
5293 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
5294
5295         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
5296         while loop
5297         * support/regression/tests/bug-1406131.c: added
5298
5299 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
5300
5301         * src/SDCCast.c (decorateType): fix promotion of unary minus
5302         * src/SDCCsymt.c (computeType): beautified
5303         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
5304         (valUnaryPM, valComplement): fix sign and promotion,
5305         (valNot): ANSI: result type is int (SDCC: unsigned char)
5306         * support/regression/tests/uminus.c: speedup by removing superflous
5307         test case 'int'
5308         * support/regression/tests/onebyte.c: added promotion and signedness
5309         tests for unary minus
5310         * support/regressions/tests/bug-477927.c: disable warning about
5311         uninitialized variables
5312         * support/regression/tests/not.c: added
5313
5314 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
5315
5316         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
5317         * src/mcs51/gen.c (gen51Code): show final register usage after
5318         fillGaps in asm with --i-code-in-asm
5319         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
5320         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
5321         incUsed, rliveClear, adjustIChain): made static,
5322         (setFromRange): excluded because it's unused,
5323         (findPrevUseSym, markWholeLoop): added,
5324         (findPrevUse): rewritten; fixes bug 895992; now a complete search
5325         through all branches of predecessors enables sdcc to emit the warning
5326         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
5327         (rlivePoint): made static, added parameter emitWarnings which is only
5328         true during the first run out of two,
5329         (findRecursiveSucc, findRecursivePred): removed,
5330         (computeLiveRanges): made static, added parameter emitWarnings,
5331         (dumpIcRlive): added for debugging only
5332         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
5333         removed prototype of setFromRange()
5334         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
5335         in call of computeLiveRanges()
5336         * support/regression/tests/bug-895992.c: added
5337         * support/regression/tests/bug-971834.c: added
5338         * support/valdiag/tests/bug-895992.c: added
5339         * support/valdiag/tests/bug-971834.c: added
5340
5341 2005-12-18 Raphael Neider <rneider AT web.de>
5342
5343         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
5344           (genUnpackBits): improved code for direct operands,
5345           (genPackBits): improved code for literal assignment to bitfields
5346             and for direct destination operands (no FSR indirection),
5347             prevented redundant AND, fixes #1362800,
5348           (AccLsh): added parameter to disable masking of the result
5349         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
5350           skip instructions with side-effects (like incfsz),
5351           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
5352         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
5353         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
5354           fixes #1375263
5355
5356 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
5357
5358         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
5359         volatile variables as spill location
5360
5361 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
5362
5363         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
5364         replacing literals
5365         * support/regression/tests/bug-1376320.c: added
5366
5367 2005-12-08 Raphael Neider <rneider AT web.de>
5368
5369         * src/pic/device.c: renamed is_shared to pic14_is_shared
5370         * src/pic/gen.c (genIfx): re-enabled handling of sbits
5371         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
5372           (is_valid_identifier): added for above workaround
5373
5374 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
5375
5376         * device/lib/Makefile.in: fixed to enable port-specific-objects
5377         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
5378           char, thanks Hubert Sack
5379         * doc/sdccman.lyx: documented --xstack-loc,
5380           elaborated a bit more on interrupts and pitfalls,
5381           removed "setjmp/longjmp unsupported",
5382           documented some unsupported C99 features
5383         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
5384         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
5385           if, thanks Hubert Sack
5386         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
5387         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
5388           make make_library
5389         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
5390           regression tests can report resource usage (rfe 700441)
5391         * support/regression/collate-results.py: report resource usage
5392         * support/regression/ports/ds390/spec.mk,
5393         * support/regression/ports/hc08/spec.mk,
5394         * support/regression/ports/mcs51/spec.mk,
5395         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
5396         * support/regression/ports/ds390/uCsim.cmd,
5397         * support/regression/ports/hc08/uCsim.cmd,
5398         * support/regression/ports/mcs51/uCsim.cmd,
5399         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
5400         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
5401           library, use the default one
5402         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
5403           building the library
5404
5405 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
5406
5407         * config.dsp: added dependency on .version and configure_vc.awk
5408         * device/include/setjmp.h: updated for --stack-auto and --xstack
5409         * device/include/mcs51/at89c51snd1c.h: corrected line endings
5410         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
5411         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
5412         * device/lib/libsdcc.lib: added _setjmp
5413         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
5414           (decorateType): fixed bug 1372851,
5415           (optimizeGetHbit): fixed warning
5416         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
5417           array initialisation
5418         * support/regression/tests/bug1057979.c: added test for bug 1358192
5419         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
5420
5421 2005-12-03 Borut Razem <borut.razem AT siol.net>
5422
5423         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
5424           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
5425
5426 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
5427
5428         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
5429         createIval): implement symbol independant "flexible array member",
5430         (createIvalCharPtr): implemented flexible array initialisation with a
5431         string
5432         * src/SDCCsymt.c (copyStruct): removed,
5433         (getSize): fixed misleading comment,
5434         (getAllocSize): removed, the additional allocation size is now in
5435         sym->flexArrayLength,
5436         (checkStructFlexArray): new, syntax checks for flexible array members,
5437         (compStructSize): added syntax checks for "flexible array members"
5438         (copyStruct): removed,
5439         (copyLinkChain): removed inefficient fix for bug 770487
5440         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
5441         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
5442         symbol->flexArrayLength
5443         * src/SDCCerr.c,
5444         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
5445         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
5446         * support/regression/tests/structflexarray.c: added
5447         * support/valdiag/tests/structflexiblearray.c: added
5448
5449 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
5450
5451         * src/SDCCast.c (decorateType): fixed bug 1368489
5452         * support/Util/SDCCerr.c,
5453         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
5454
5455 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5456
5457         * device/include/mcs51/at89c51snd1c.h: added file submitted by
5458           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
5459
5460 2005-11-27 Borut Razem <borut.razem AT siol.net>
5461
5462         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
5463           support/cpp2/mkdeps.h: added command line option
5464           -obj-ext=<extension> to SDCPP to define object file externion, used
5465           for generation of make dependencies (-M)
5466         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
5467
5468 2005-11-26 Borut Razem <borut.razem AT siol.net>
5469
5470         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
5471           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
5472           added pic and pic16 libraries
5473
5474 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5475
5476         * device/include/float.h: Corrected typo in prototype of __fsgt
5477
5478 2005-11-25 Borut Razem <borut.razem AT siol.net>
5479
5480         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
5481           added creation of model-mcs51-stack-auto libraries
5482
5483 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
5484
5485         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
5486         and fields-list too
5487         * src/SDCCast.c (createIvalArray): removed obsolete comment
5488
5489 2005-11-24 Borut Razem <borut.razem AT siol.net>
5490
5491         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
5492           added missing device/lib/mcs51/crt*.asm sources
5493
5494 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
5495
5496         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
5497
5498 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
5499
5500         * device/lib/_fs2schar.c,
5501         * device/lib/_fs2sint.c,
5502         * device/lib/_fs2slong.c: optimized inline asm
5503
5504 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5505
5506         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
5507           Better handling of floats between -1.0 and 0.0.
5508
5509 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5510
5511         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
5512           (the missing "if"s prohibited removal of redundant labels)
5513
5514 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5515
5516         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
5517           Properly convert floats between -1.0 and 0.0 to long, int, and char
5518           types (max integer value of negative floats tends to zero).
5519         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
5520           Removed changes made so to work properly with floats between
5521           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
5522           and _fs2char.c
5523
5524 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
5525
5526         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
5527         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
5528         (genCast) cosmetic change
5529         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
5530         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
5531         from mcs51
5532         * support/regression/tests/bitfields (testSignedBitfields): added
5533
5534 2005-11-18 Borut Razem <borut.razem AT siol.net>
5535
5536         * sdcc/device/lib/Makefile.in: remove all unnecessary files
5537         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
5538           introduced SILENT option to make building of pic16 libraries less
5539
5540 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5541
5542         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
5543           Now they work properly with floats between -1.0 and 0.0
5544         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
5545
5546 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
5547
5548         * src/SDCCicode.c (printOperand): added missing else
5549
5550 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
5551
5552         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
5553         reformatted for better readability
5554         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
5555         signed bitfields
5556
5557 2005-11-17 Borut Razem <borut.razem AT siol.net>
5558
5559         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
5560           introduced SILENT option to make building of pic16 libraries less
5561           verbose - used for nightly snapshot build
5562         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
5563           available on Win32 platforms.
5564         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
5565           medium, large, pic and pic16
5566
5567 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5568
5569         * device/lib/printf_large.c: Temporary patch for bug 1358192:
5570           printf("%f"...) sets fraction to zero.
5571
5572 2005-11-16 Raphael Neider <rneider AT web.de>
5573
5574         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
5575           fixes #1357221
5576         * src/pic/gen.c (genIfx): implemented for CARRY bit
5577         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
5578           to generic pointers, fixes #1357332,
5579           (pic16_movLit2f): NEW,
5580           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
5581
5582 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
5583
5584         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
5585
5586 2005-11-11 Raphael Neider <rneider AT web.de>
5587
5588         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
5589         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
5590           compute pointer's type from operand,
5591           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
5592           improved single bit reads, fixes bug #1353379
5593
5594 2005-11-09 Borut Razem <borut.razem AT siol.net>
5595
5596         * support/scripts/sdcc.nsi: added lib/pic to the package
5597
5598 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
5599
5600         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
5601
5602 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
5603
5604         * support/regression/tests/bug1348008.c: added
5605         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
5606         * support/regression/tests/bug1337835.c: updated comment
5607
5608 2005-11-06 Borut Razem <borut.razem AT siol.net>
5609
5610         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
5611           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
5612           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
5613           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
5614           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
5615           dynamic construction of cl_error_class and derivates - 2.nd try
5616
5617 2005-11-05 Borut Razem <borut.razem AT siol.net>
5618
5619         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
5620           bug, which caused Bus Errors on sparc solaris
5621
5622 2005-11-04 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/cmdconf.cc: dynamic construction of cl_error_class
5629           and derivates to resolve the initialization problem on OSX
5630
5631 2005-11-02 Borut Razem <borut.razem AT siol.net>
5632
5633         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
5634           corrected typo - #include <winsock2.h>
5635
5636 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
5637
5638         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
5639           (_asxxxx_mapping): added org directive for future enhancements
5640
5641 2005-11-01 Borut Razem <borut.razem AT siol.net>
5642
5643         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
5644           enabled sockets on WIN32
5645         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
5646
5647 2005-10-31 Borut Razem <borut.razem AT siol.net>
5648
5649         * support/regression/generate-cases.py: escape backslashes in {testcase}:
5650           WIN32 backslash path delimiters should be escaped when used in C strings
5651         * support/regression/tests/bitfields.c: exclude failing assertions for
5652           __CYGWIN32__ and __MINGW32__ hosts
5653
5654 2005-10-30 Borut Razem <borut.razem AT siol.net>
5655
5656         * src/SDCCutil.c: corrected double comparison typo
5657
5658 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
5659
5660         * device/lib/medium/Makefile: added for new memory model medium
5661         * device/include/asm/mcs51/features.h: updated for medium/pdata
5662         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
5663           added Multiply & Accumulate sbit's and MAC0_PAGE define
5664         * device/include/mcs51/c8051f300.h: added sfr16 definitions
5665         * device/include/mcs51/c8051f310.h: added sfr16 definitions
5666         * device/lib/_mullong.c: update for medium model
5667         * device/lib/incl.mk: added medium model
5668         * doc/sdccman.lyx: documented medium model
5669         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
5670         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
5671         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
5672         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
5673           (allocParms): set SCLS and OCLS to pdata for medium model
5674         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
5675           for pdata,
5676           (powof2): return <0 if not power of 2
5677         * src/avr/gen.c (genBitWise): use updated powof2
5678         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
5679           (shiftR2Left2Result): small optimization in setup, save acc when storing,
5680           (shiftLLeftOrResult): use B if necessary
5681         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
5682         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
5683         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
5684         * support/regression/Makefile.in: added test-mcs51-medium
5685         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
5686
5687 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
5688
5689         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
5690         specifier unsigned
5691         * device/lib/time.c (mktime): fixed bug 1334315
5692
5693 2005-10-28 Raphael Neider <rneider AT web.de>
5694
5695         * device/include/pic/p16f_common.inc: added common declarations
5696         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
5697
5698 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
5699
5700         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
5701           (aopPutUsesAcc): added to predict accumulator use,
5702           (assignResultValue): save acc if necessary,
5703           (genMinusDec): store result if indirectly addressed,
5704           (genDivOneByte):  save acc if necessary,
5705           (movLeft2Result): bugfix if left already in acc,
5706           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
5707             attention to accumulator use (esp. pdata),
5708           (genReceive): receive pdata correctly
5709         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
5710         * src/SDCCicode.h: added isOperandInPagedSpace prototype
5711
5712 2005-10-27 Raphael Neider <rneider AT web.de>
5713
5714         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
5715
5716 2005-10-27 Raphael Neider <rneider AT web.de>
5717
5718         * .version: changed version to 2.5.4
5719         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
5720         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
5721           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
5722             arithmetics support routines
5723         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
5724         * device/lib/Makefile.in: also create installdir for pic
5725
5726         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
5727           pic14 port as well
5728         * src/pic/device.c (dump_sfr): rewritten to delegate register
5729           placement to the linker (use `extern sym' rather than sym EQU addr),
5730           (validAddress): fixed to check last specified address
5731         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
5732           (popGetLit): truncate literal value to 8 bit,
5733           (popGet): moved assert to more appropriate place
5734           (popGetExternal): create pCode operand from and mark the according
5735             symbol as being `extern'
5736           (popGetAddr): added sanity check on immediate's offset, provide
5737             GPOINTER tag on demand
5738           (aopPut): fixed for immediates,
5739           (mov2w_op): move operand's address or contents to WREG (depending on
5740             operand type), safer variant of mov2w,
5741           (movwf,call_libraryfunc): NEW, handy abbreviations,
5742           (get_argument_pcop,get_return_val_pcop,pass_argument,
5743           get_returnvalue): interface for accessing function parameters and
5744             return values,
5745           (assignResultValuei,genRet): use new parameter/return value interface
5746           (pic14_getDataSize): back to old version handling generic pointers,
5747           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
5748             provided implementation and/or fixed old one,
5749           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
5750             calls, removed legacy 8051 reference code
5751           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
5752           (loadSignToC): NEW, move the operands sign bit to CARRY,
5753           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
5754             genRightShiftSigned, accepts negative shift counts,
5755           (setup_fsr): load FSR and adjust IRP (indirect memory access),
5756           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
5757             generic pointers, __data pointers and __code pointers,
5758           (genUnpackBits,genPackBits): rewritten to work with generic pointers
5759             and signed bitfields, limit bitfields to 8 bit,
5760           (genDataPointerGet): fixed number of bytes read,
5761           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
5762           (genPointerGet,genPointerSet): fixed handling of __code pointers,
5763             pointers to constant data are no longer assumed to point to __code
5764             space, removed invalid pointer types,
5765           (bitpatternFromVal): retrieve the PICs representation of an integer
5766             or float literal,
5767           (genDataPointerSet): fixed assigning to po_immediate operands,
5768           (genGenPointerSet): implemented as library call,
5769           (genIfx): fixed incorrect condition,
5770           (genAddrOf): limit generic pointers' addresses to 2 bytes,
5771             provide GPOINTER tag according to destination's storage class,
5772           (genCast): added code to handle casting to generic pointers, added
5773             sign-/zero extension of the result
5774           (aop_isLitLike,op_isLitLike): fixed handling of immediates
5775         * src/pic/gen.h: added macros to access IRP bit in STATUS register
5776         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
5777           extend the result
5778         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
5779           address/register resides in the shared banks
5780           (emitSymbolToFile): improved to handle global and `pinned' symbols,
5781             put all variables into separate sections (have the linker arrange
5782             them)
5783           (picglue): put init code and interrupt handlers in separate sections
5784         * src/pic/main.c: added port specific options table, modified to PORT
5785           structure to make GPOINTERs 3 byte, added pic14_options
5786           (_pic14_do_link): private linking routine (update paths to libraries,
5787             add libsdcc.lib by default)
5788         * src/pic/main.h: declare pic14_options
5789         * src/pic/pcode.c: fixed instructions i/o relations,
5790           (RegCond): reverted to correct version,
5791           (newpCodeOpLit): truncate literals to 8 bit,
5792           (genericPrint): added debug output,
5793           (getRegFromInstruction): fixed for various operand types, simplified
5794           (BuildFlow): fixed broken handling of isntructions with labels
5795           (LinkFlow): start at last instruction in flow (skip trailing comments),
5796             pass the flow on to the next instruction after CALL
5797           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
5798           (insertPCodeInstruction): fixed inserting after a skip instruction,
5799           (DoBankSelect): fixed for labeled instructions
5800           (OptimizepBlock): honor --nopeep switch
5801           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
5802         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
5803         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
5804           (pCodeOptime2pCodes): allow disabling this optimization via
5805             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
5806             but is still buggy), started implementation of a dataflow based
5807             pCode optimization (CSE + dead code elimination)
5808           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
5809         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
5810           names are independant of the stack location and therefore portable across
5811           devices
5812
5813 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
5814
5815         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
5816           (selectSpil): fixed bug 1337835 by not spilling bit variables
5817         * support/regression/tests/bug1337835.c: added test for this bug
5818         * src/mcs51/peeph.def: restart after rule 3.c,
5819           addded rules 263.x to optimize loading constants
5820
5821 2005-10-26 Raphael Neider <rneider AT web.de>
5822
5823         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
5824         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
5825           (genAssign): emit warning when casting literals to generic pointer
5826             type, also applies when taking the address of a fixed variable,
5827           (genCast): improved casting to generic pointers
5828         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
5829           extern variables, added verbose error message
5830         * device/include/pic16/{string.h,errno.h}: added #pragma library c
5831
5832 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
5833
5834         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
5835         carry must be complemented too
5836         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
5837         could be emitted by genMinus
5838         * src/SDCCval.c (constVal): fixed bug 1305065
5839
5840 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
5841
5842         * src/SDCCast.c (addCast): added promotion for bit variables
5843         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
5844         promotion casts + optimisation
5845         (optimizeGetWord): fix warning 'i' might be used uninitialized
5846         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
5847         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
5848
5849 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
5850
5851         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
5852         all chars are promoted to int; promotion should be handled in SDCCast.c
5853
5854 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5855
5856         * device/lib/_strcmp.c: Fixed bug 1326457
5857
5858 2005-10-11 Raphael Neider <rneider AT web.de>
5859
5860         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
5861         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
5862
5863 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
5864
5865         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
5866         * support/regression/tests/sfr16.c: added test for the sfr32 bug
5867
5868 2005-10-04 Raphael Neider <rneider AT web.de>
5869
5870         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
5871           device/lib/pic16/pics.all: added pic18f1320
5872         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
5873
5874 2005-09-30 Raphael Neider <rneider AT web.de>
5875
5876         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
5877         * src/pic16/devices.inc: NEW, provides device descriptions
5878         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
5879
5880 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
5881
5882         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
5883           GETHBIT
5884
5885 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
5886
5887         * doc/sdccman.lyx: updated Highest Order Bit documentation,
5888           documented Any Order Bit, Higher Order Byte and Higher Order Word
5889         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
5890         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
5891           (optimizeGetAbit): new, to get any bit, not only the high bit,
5892           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
5893           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
5894           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
5895           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
5896             RIGHT_OP: also try GETBYTE, GETWORD optimization,
5897             GETABIT, GETBYTE, GETWORD: decorate them,
5898           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
5899           (ast_print): added GETABIT, GETBYTE, GETWORD
5900         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
5901         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
5902           (geniCodeBinary): new generic binary icode,
5903           (ast2iCode): added GETABIT, GETBYTE, GETWORD
5904         * src/port.h: updated comment for PORT.hasExtBitOp
5905         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
5906           (genGetByte): new, to get a single byte,
5907           (genGetWord): new, to get a word from a long,
5908           (gen51Code): added GETABIT, GETBYTE, GETWORD
5909         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
5910
5911 2005-09-23 Raphael Neider <rneider AT web.de>
5912
5913         * configure.in, configure: have device/lib/pic configured
5914         * device/lib/Makefile.in: added model-pic14
5915         * device/lib/clean.mk: added pic/ to clean rule
5916         * device/lib/pic: added rudimentary pic14 library providing support
5917           functions for multiplication/division/generic pointer access
5918         * src/SDCCopt.c (convilong): mark support functions as extern
5919           for pic14 port as well
5920         * src/pic/gen.c (genMult): added assertions,
5921           (genpic14Code): emit warning on unhandled iCodes
5922         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
5923         * src/pic/pcode.c (pCodeOpCopy),
5924         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
5925           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
5926           SFR_REGISTER}), made safe for future extensions
5927         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
5928           instructions even if preceeded by SKIP instructions (also remove
5929           them); removed unused code
5930         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
5931           prevents leaving parts of the structure uninitialized after copying
5932
5933 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
5934
5935         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
5936           ago by me
5937         * support/regression/tests/addsub.c: added test for the bug
5938
5939 2005-09-21 Raphael Neider <rneider AT web.de>
5940
5941         * device/include/pic16/pic18f1220.h,
5942           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
5943         * device/lib/pic16/Makefile.rules: added missing opening paren
5944         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
5945           are provided in genutils.c,
5946           (genUminusFloat,genUminus,genCmpEq): added asserts on different
5947           operand/result sizes,
5948           (genCmp): assert on NULL pointers first, then check deref'ed values
5949         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
5950           result size
5951
5952 2005-09-18 Raphael Neider <rneider AT web.de>
5953
5954         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
5955           as these are now unused,
5956           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
5957         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
5958           local, avoids uninitialized pointer dereference on r->name
5959         * src/pic16/ralloc.c (newReg): fixed indentation
5960
5961 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
5962
5963         * src/SDCCval.c (constVal): fixed bug 730366
5964         * support/Util/SDCCerr.c,
5965         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
5966
5967 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
5968
5969         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
5970
5971 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
5972
5973         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
5974
5975 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
5976
5977         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
5978           (hex2dec): made hex_digit unsigned char, removed ascii dependance
5979         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
5980           (hex2dec): made hex_digit unsigned char, removed ascii dependance
5981         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
5982         * packihx/packihx.c (hexDigit): made c unsigned char
5983         * as/mcs51/lklibr.c (fndsym),
5984         * link/z80/lkgb.c (gb),
5985         * link/z80/lklibr.c (fndsym),
5986         * link/z80/lkrloc.c (relr),
5987         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
5988         * src/SDCC.lex (checkCurrFile, process_pragma),
5989         * src/SDCCglue.c (spacesToUnderscores),
5990         * src/SDCCmain.c (setParseWithComma, processFile),
5991         * src/asm.c (tvsprintf, printCLine),
5992         * src/avr/gen.c (emitcode, aopPut),
5993         * src/ds390/gen.c (emitcode),
5994         * src/hc08/gen.c (emitcode, emitinline),
5995         * src/mcs51/gen.c (emitcode, genInline),
5996         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
5997           tokenizeLineNode),
5998         * src/pic/ralloc.c (debugLog),
5999         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
6000           tokenizeLineNode),
6001         * src/pic16/ralloc.c (debugLog),
6002         * src/z80/main.c (_process_pragma):
6003            made all ctype.h function calls safe
6004         * src/SDCCopt.c: include math.h for fabs
6005         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
6006           and used them throughout the code to make ctype.h function calls safe
6007         * src/ds390/main.c (asmLineNodeFromLineNode),
6008         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
6009         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
6010            unsigned char*
6011         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
6012           (newpCodeAsmDir): made ctype.h function calls safe
6013         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
6014           pic16_emitcode):  made lbp unsigned char*
6015         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
6016           (pic16_newpCodeAsmDir): made ctype.h function calls safe
6017         * src/xa51/gen.c (emitcode),
6018         * src/z80/gen.c (_emit2): made lbp unsigned char*
6019         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
6020            char*
6021
6022 2005-09-05 Raphael Neider <rneider AT web.de>
6023
6024         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
6025           access bank splitpoint
6026
6027 2005-09-05 Raphael Neider <rneider AT web.de>
6028
6029         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
6030
6031 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
6032
6033         * .version: changed to version 2.5.3
6034         * doc/sdccman.lyx: changed version to 2.5.3,
6035           documented --codeseg and --constseg and pragma codeseg and constseg,
6036           documented bit parameters (reentrant) and bit returning
6037         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
6038            currFunc->recvSize, but is this ok for all ports?
6039           (ast2iCode): result of ~ on unsigned char must be cast to int for
6040            bool to work
6041         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
6042           function pointers in bit space
6043         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
6044           (processFuncArgs): call port.reg_parm() with reentrancy info
6045         * src/port.h,
6046         * src/avr/main.c,
6047         * src/ds390/main.c,
6048         * src/hc08/main.c,
6049         * src/pic/main.c,
6050         * src/pic16/main.c,
6051         * src/xa51/main.c,
6052         * src/z80/main.c: port.reg_parm prototype extended with
6053           "bool reentrant" parameter
6054         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
6055           options.stackAuto for allocating bit register parameters
6056         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
6057           (genSend): set BitBankUsed if it is,
6058           (selectRegBank): factored out of genCall for use in genPcall,
6059           (genCall): removed redundant dtype assignmen, use selectRegBank,
6060           (genPcall): handle returning in Carry properly, save in F0 if needed,
6061           (genReceive): handle bit register parameters
6062         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
6063           (mcs51_assignRegisters): enable bit registers for all reentrant
6064            functions and don't set BitBankUsed unconditionally
6065         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
6066         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
6067         * support/regression/tests/funptrs.c: added tests for BOOL and for return
6068
6069 2005-08-27 Borut Razem <borut.razem AT siol.net>
6070
6071         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
6072         ppc-osx (Darwin) does not support -u option. It seems that it is
6073         supported only on Linux - GNU cp
6074
6075 2005-08-25 Borut Razem <borut.razem AT siol.net>
6076
6077         * sim/ucsim/gui.src/serio.src/Makefile.in,
6078           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
6079           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
6080           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
6081           install and strip, since the strip at /usr/ccs/bin should be used
6082           on solaris
6083
6084 2005-08-24 Borut Razem <borut.razem AT siol.net>
6085
6086         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
6087
6088 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
6089
6090         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
6091         ffffffffu
6092
6093 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
6094
6095         * as/mcs51/aslink.h: completed lkrloc.c prototypes
6096         * as/mcs51/lkmain.c (link_main): fixed warning
6097         * device/include/stdbool.h: ds390 has no advanced bit support yet
6098         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
6099         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
6100         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
6101           and updated their macros
6102         * src/SDCCval.c (constVal): updated comment for renamed b_long
6103
6104 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
6105
6106         * as/mcs51/asdata.c: changed ctype['['] to BINOP
6107         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
6108           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
6109           (oprio): set priority for '['
6110         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
6111            and adb_24_bit
6112         * as/mcs51/asm.h: added defines R_BIT and S_BIT
6113         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
6114         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
6115         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
6116           added overlayable BIT_BANK area
6117         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
6118           (summary2): explain 'T' in legenda
6119         * as/mcs51/lkrloc.c: replaced old K&R style,
6120           (relr): added R_BIT processing,
6121           (errmsg): added "Bit-addressable relocation error",
6122           (adb_bit): added for converting from byte- to bit-addressable space,
6123           (adb_24_bit): added for converting from byte- to bit-addressable space
6124         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
6125            used in reentrant functions now even as return value
6126         * device/lib/_gptrput.c (_gptrput): removed obsolete code
6127         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
6128           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
6129         * src/SDCCglobl.h: added indicator BitBankUsed
6130         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
6131            the bit registers b0-b7
6132         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
6133           (geniCodeCast): fixed bug 1263853,
6134           (geniCodeLogicAndOr): put result in bool or char,
6135           (geniCodeReceive): added parameter func for accessing the return type,
6136           (geniCodeFunctionBody): pass func to geniCodeReceive
6137         * src/SDCCmain.c: added indicator BitBankUsed
6138         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
6139         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
6140           (checkSClass): don't put automatic bool/bit on stack,
6141           (checkFunction): removed check on function cannot return bit
6142         * src/SDCCsymt.h: added newBoolLink prototype
6143         * src/mcs51/gen.c (rb1regs): added bit registers,
6144           (movc): created for assigning to carry,
6145           (pushReg, popReg): created for pushing registers,
6146           (sameRegs): check both AOP_REG and AOP_CRY types,
6147           (aopOp): handle bit registers,
6148           (aopPut): optimization no self-assign,
6149           (saveRegisters): push reg->base (bits) only once for bit registers,
6150            and use pushReg,
6151           (unsaveRegisters): pop reg->base only once and use popReg,
6152           (assignResultValue): added parameter func and return in carry for bits,
6153           (genIpush): optimization no reload in A if not changed,
6154           (genSend): bit parameters in reentrant functions are passed in bit
6155            registers by first assigning to bits in B, then save registers and
6156            copy B to bits,
6157           (genCall): handle returning in Carry properly, save it in F0 if needed,
6158           (genPcall): updated assignResultValue call, this is not safe yet for bit
6159            returning function !!!
6160           (genFunction): don't generate equ's for bit registers and use pushReg,
6161           (genEndFunction): take care of bit returning functions and use popReg,
6162           (genRet): return bit in Carry,
6163           (genIfx): optimize bit registers and other directly addressable bits,
6164           (genReceive): updated assignResultValue call
6165         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
6166           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
6167            registers when using stack-auto
6168         * src/mcs51/ralloc.c (_G): added allBitregs,
6169           (regs8051): added the bit registers,
6170           (createStackSpil): use macro IS_BIT,
6171           (getRegBit): added to allocate a bit register, else spill,
6172           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
6173           (updateRegUsage): factored out to ease stepping while debugging,
6174           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
6175            also allocate bit registers,
6176           (fillGaps): handle bit registers,
6177           (findAllBitregs): added to create bit vector with all bit registers,
6178           (mcs51_allBitregs): returns this bit vector,
6179           (mcs51_assignRegisters): when using stack-auto use bit registers for
6180            passing parameters and creating local variables
6181         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
6182
6183 2005-08-22 Borut Razem <borut.razem AT siol.net>
6184
6185         * device/lib/Makefile.in: replaced find option -or with -o
6186           to make it run on solaris
6187
6188 2005-08-22 Raphael Neider <rneider AT web.de>
6189
6190         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
6191           fixes #1265442 (crash on Solaris)
6192
6193 2005-08-20 Borut Razem <borut.razem AT siol.net>
6194
6195         * configure, configure.in: added tests for libsocket and libnsl libraries,
6196           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
6197           from support/regression/Makefile.in
6198         * support/regression/Makefile.in: added
6199         * device/lib/pic16/Makefile.common.in: force make to use bash shell
6200         * sim/ucsim/libtool: regenerated on sparc-solaris
6201         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
6202           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
6203           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
6204           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
6205           sparc-solaris, which doesn't use GNU ld linker
6206         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
6207         * as/Makefile: find on sparc-solaris does not support -maxdepth option
6208
6209 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
6210
6211         * src/mcs51/peeph.def: updated comments
6212
6213 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6214
6215         * device/lib/_gptrget.c,
6216         * device/lib/_gptrput.c: slightly shorter
6217         * doc/sdccman.lyx: incremented version
6218         * src/mcs51/peeph.def: moved peephole comments to the line of first
6219           change to better keep line correlation, reanimated 186.e
6220         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
6221
6222 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
6223
6224         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
6225           David Saxton with quotes around file name.
6226
6227 2005-08-15 Borut Razem <borut.razem AT siol.net>
6228
6229         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
6230           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
6231           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
6232           make tests run on x86_64 platform
6233
6234 2005-08-13 Raphael Neider <rneider AT web.de>
6235
6236         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
6237           as it might be executed DURING a build (parallel make is wonderful)
6238
6239 2005-08-13 Raphael Neider <rneider AT web.de>
6240
6241         * device/lib/Makefile.in (port-specific-objects-pic16):
6242           revert to cp $(PORT)/bin/*.* $(PORTDIR)
6243         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
6244           dependency
6245         * device/lib/pic16/Makefile.rules: build subdirs before creating
6246           the library, removed builddir rule, create $(builddir) early in
6247           recurse rule, use empty recurse rule for leaf directories
6248         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
6249           mkdir errors (race condition), removed duplicate suffix "hex"
6250           from clean rules
6251         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
6252         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
6253           prevents mkdir -p from aborting on Alpha
6254
6255 2005-08-12 Raphael Neider <rneider AT web.de>
6256
6257         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
6258           db-statements in order to allow for arrays of pointers in code
6259           sections to be placed without interspersed 0-padding, fixes
6260           bug #1256215
6261         * (emitStatistics): fixed division by zero for pic18f1220
6262         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
6263           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
6264         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
6265         * (pic16_pCodeConstString): keep track of already emitted string
6266           literals to prevent "duplicate definitions of symbol _str_NR"
6267         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
6268           debug message
6269         * device/lib/Makefile.in: ignore failing PIC16 library builds
6270         * device/lib/pic16/Makefile: do not build if gputils are missing
6271         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
6272
6273 2005-08-10 Raphael Neider <rneider AT web.de>
6274
6275         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
6276           my last commit)
6277
6278 2005-08-10 Raphael Neider <rneider AT web.de>
6279
6280         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
6281           Rokas' patch to add the new fixed point type "__fixed16x16"
6282         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
6283           functions for __fixed16x16 arithmetics
6284         * device/lib/pic16: reimplemented the build system to support
6285           a separate build directory, better handling of libio (create
6286           the library in a separate subdir for each architecture) and
6287           easier configuration (centralized in Makefile.common)
6288
6289 2005-08-07 Raphael Neider <rneider AT web.de>
6290
6291         * src/pic16/gen.c (genrshTwo): fixed sign extension
6292         * src/pic16/device.c: added pic18f2320, 4220 and 4320
6293         * device/include/pic16/pic18f2220.h: changed some bit definitions,
6294           added T0CONbits
6295         * device/include/pic16/pic18f4220.h: NEW, header for
6296           pic18f4220 and pic18f4320
6297         * device/include/pic16/pic18fregs.h: added new devices,
6298           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
6299         * device/include/pic16/signal.h: resolved name clashes
6300           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
6301           to also allow testing for interrupt enable bits, added
6302           comments on how to use the macros
6303         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
6304         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
6305           register definitions for the devices
6306         * device/lib/pic16/pics.all: added new devices
6307         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
6308           allocated memory
6309         * device/lib/pic16/libc/stdlib/memfree: do not count
6310           the block header as free memory
6311         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
6312           simplified and added missing end-of-blocklist-marker
6313           (reported by Peter Onion, fixes #1252814)
6314         * (_mergeHeapBlock): fixed loop condition
6315         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
6316           len==0, restructured code
6317         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
6318           up a bit, reduced bitfield accesses, prevent endless loops
6319           in case of heap corruption
6320         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
6321           "unreferenced arguments/must return a value" warnings
6322         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
6323           replaced BAUDREG with SPBRG
6324         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
6325           device/lib/pic16/debug/gstack/gstack.c: replaced
6326           _naked, _asm, _endasm with __naked, __asm, __endasm
6327
6328 2005-08-05 Raphael Neider <rneider AT web.de>
6329
6330         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
6331           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
6332
6333 2005-08-05 Borut Razem <borut.razem AT siol.net>
6334
6335         * device/lib/Makefile.in: added missing ';'
6336         * configure: removed ^M characters
6337
6338 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6339
6340         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
6341           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
6342           License
6343
6344 2005-08-04 Borut Razem <borut.razem AT siol.net>
6345
6346         * configure.in: pic16 libraries build 2nd try - enable running
6347           configure in device/lib/pic16
6348         * configure: regenerated from configure.in
6349         * device/lib/Makefile.in: create $(PORT)/bin directory
6350
6351 2005-08-03 Raphael Neider <rneider AT web.de>
6352
6353         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
6354           to get/set values via pointers
6355         * (genUnpackBits,genPackBits): changed detection of
6356           ptr->bitfield vs. sym.bitfield, fixed access via generic
6357           pointers, removed dead (wrong) code for multibyte bitfields
6358         * (genNearPointerGet, genGenPointerGet): removed useless code,
6359           fixed bitfield detection, fixes #1250594
6360         * (genNearPointerSet): removed useless code
6361         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
6362           and introduced macro pic16_emitpcode that conditionally emits
6363           the origin of the following pCode (useful for debugging SDCC)
6364         * src/pic16/pcode.c: changed (and disabled) some debug outputs
6365         * (createDefmap): fixed handling of LFSR for --optimize-df
6366
6367 2005-08-02 Borut Razem <borut.razem AT siol.net>
6368
6369         * device/lib/Makefile.in: pic16 libraries build enabled since
6370           gputils-0.13.2 are now localy installed at sourceforge's compile farm
6371
6372 2005-08-02 Raphael Neider <rneider AT web.de>
6373
6374         * src/pic16/gen.c (genPackBits): removed deprecated warning
6375         * (genGenPointerSet): fixed bitfield detection
6376
6377 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6378
6379         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
6380
6381 2005-07-31 Raphael Neider <rneider AT web.de>
6382
6383         * device/lib/pic16/libdev/pic18f458.c,
6384           device/include/pic16/pic18f458.h: added missing T0CONbits
6385
6386 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
6387
6388         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
6389
6390 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
6391
6392         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
6393
6394 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6395
6396         * device/include/mcs51/at89c51ed2.h: added.
6397
6398 2005-07-23 Raphael Neider <rneider AT web.de>
6399
6400         * src/pic/gen.h: added emitpcode macro for debugging
6401         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
6402           and replace by macro adding debug information on demand
6403         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
6404         * (gencjne): tried to fix; replaced with correct (slower) code
6405         * (gen{Unp,P}ackBits): fixed single bit access
6406         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
6407         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
6408           previous instruction
6409         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
6410           register has to be handled with care (forbidding movement
6411           of assignments/uses, removing assignments completely, ...)
6412         * (pCodeOptime2pCodes): make use of regIsSpecial
6413         * added lots of debugging output (commented out)
6414         * src/pic/rallloc.c (deassignLRs): prevent operand registers
6415           from being reused as result UNLESS it is known to work
6416
6417 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
6418
6419         * support/Util/dbuf.h: include <stddef.h> for size_t
6420         * .version: changed to version 2.5.2
6421
6422 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6423
6424         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
6425
6426 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6427
6428         * src/hc08/gen.c (genMinus): fixed bug #1241835,
6429           (genModOneByte): removed needless psha/pula
6430
6431 2005-07-22 Raphael Neider <rneider AT web.de>
6432
6433         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
6434           have PIC14 handled like PIC16, fixes broken pic14 linker calls
6435         * src/pic/gen.c (resolveIfx): do not "invent" labels
6436         * (genSkipc): changed to positive logic
6437         * (genSkipCond): removed as no longer needed
6438         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
6439           backport from PIC16
6440         * (genLeftShift): check operands are in different registers
6441         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
6442           INCF does not update CARRY...
6443         * src/pic/main.c: fixed _linkCmd
6444         * src/pic/pcode.c (unlinkpCode): added inactive code
6445         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
6446           alive (do not assign result and operand overlapping registers)
6447
6448 2005-07-22 Raphael Neider <rneider AT web.de>
6449
6450         * src/pic/device.c (dump_sfr): replaced register declaration with
6451           call to emitSymbolToFile() to avoid duplicate symbols
6452         * (assignRelocatableRegisters): do not declare external symbols
6453         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
6454           right (take size of type, not etype)
6455         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
6456         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
6457         * (packRegsForAccUse): disabled assignment of WREG as
6458           the result reg to prevent occurence of just fixed #1235003,
6459           fixes #1242954
6460         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
6461           symbols (avoids duplicate symbols in .asm file)
6462         * (pic14emitRegularMap): use emitSymbolToFile()
6463         * src/pic/gen.c (aopOp): fixed spillLocation handling
6464         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
6465         * (genDataPointerSet): removed unneccessary variables/output
6466
6467 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
6468
6469         * as/mcs51/lkarea.c: enlarged codemap for banked memory
6470         * device/lib/mcs51/crtbank.asm: added # to 0x0F
6471
6472 2005-07-21 Raphael Neider <rneider AT web.de>
6473
6474         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
6475           architecture cannot handle them efficiently, fixes bug #1235003
6476         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
6477           check for empty sets before using them (fixes bug #1232190)
6478
6479 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
6480
6481         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
6482           (lnksect2): generate warnings for memory overlap
6483         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
6484           constseg to set the name of these segments so you can instruct the linker
6485           to place them in banks
6486         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
6487         * src/SDCCglobl.h: added MODEL_HUGE to enum,
6488           added code_seg and const_seg to options
6489         * src/SDCCglue.c (emitMaps): use options.const_seg,
6490           (createInterruptVect): put interrupt vectors in segment HOME,
6491           (glue): put HOME before static segment and put the main glue in HOME,
6492           (glue): use options.code_seg
6493         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
6494         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
6495           these segments so you can instruct the linker to place them in banks
6496           (linkEdit): use code_loc for HOME segment which should be the first
6497           segment in code memory now
6498         * src/SDCCmem.c: fixed more stuff like bug 1238386
6499         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
6500           (changePointer): don't change function pointers to code pointers for
6501           banked functions,
6502           (compareType): added exceptional check for banked function pointers
6503         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
6504         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
6505           after static in code memory
6506         * src/mcs51/gen.c: added aopLiteralLong prototype,
6507           (aopForSym): use getSize for functions,
6508           (genCall): generate banked calls over one trampoline __sdcc_banked_call
6509           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
6510           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
6511           the segment,
6512           (genPcall): use call for literal function pointers and generate banked
6513           calls over the one trampoline so there's only one place for the user to
6514           modify according to his/hers hardware,
6515           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
6516           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
6517         * src/mcs51/main.c: added keyword banked,
6518           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
6519         * support/Util/SDCCerr.c,
6520         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
6521           needed for passing the bank and address to the trampoline
6522         * device/lib/mcs51/crtbank.asm: added for bankswitching
6523         * device/lib/mcs51/Makefile: added crtbank
6524
6525 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6526
6527         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
6528           for fields at offset 0 of a struct or union as reported
6529           on 2005-07-07 in the developer mailing list.
6530
6531 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
6532
6533         * src/SDCCmem.c: fixed bug 1238386
6534
6535 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6536
6537         * src/mcs51/peeph.def: added labelrefcounting for peepholes
6538           (patch #1144962), added peephole 300, enabled 259.x
6539         * doc/sdccman.lyx: removed screenshot and provided link instead
6540
6541 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6542
6543         * doc/sdccman.lyx: added section about debugging with ddd
6544         * doc/figures/ddd_example.eps: screenshot of debugging session
6545
6546 2005-07-04 Raphael Neider <rneider AT web.de>
6547
6548         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
6549           like CODE pointers, fixes #1115683
6550         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
6551           call, fixes bugs #1232211, #1228110,
6552           fixed wrong casts to pCodeFlow from pCodeInstructions
6553
6554 2005-07-04 Raphael Neider <rneider AT web.de>
6555
6556         * src/pic/gen.c (popGet): changed assert to allow for
6557           bit operands
6558         * (popGetAddr): changed signature to provide
6559           an additional index, patched all call sites
6560         * (genCmpEq): handle literal-like operands correctly
6561         * (genAddrOf): added sanity checks on __code/__data pointers
6562         * (genAssign): added handling of symbols from __code section
6563         * (gencjne): do not generate code for comparisons whose result
6564           is neither stored nor used, fixes bug #1171114
6565         * (AccLsh, AccRsh): operate on operand instead of WREG
6566         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
6567           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
6568           by known count
6569         * rewrote complete shift-by-literal logic, commented unused
6570           functions out
6571         * (genConstPointerGet): get multiple bytes (if result size > 1),
6572           fixed handling of non-immediate addresses
6573         * (genPointerGet): handle CODE pointers like CONST pointers
6574         * (genpic14Code): insert C-SRC lines as Cource-pCodes
6575         * ({aop,op}_isLitLike): NEW, single place to decide whether an
6576           operand is to be treated as a literal or not
6577         * (mov2w,genPcall,genCmpEq),
6578           src/pic/genarith.c: use aop_isLitLike() to decide between
6579           literal/register contents
6580         * (addSign): added missing offset
6581         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
6582           only emit comment in debug-mode,
6583           use {aop,op}_isLitLike throughout the file
6584         * src/pic/glue.c: fix initializers for pointers (work in progress)
6585         * src/pic/pcode.c (get_op): honor index on _const symbols
6586         * ({reset,dump}pCodeStatistics): NEW, estimate code size
6587         * (dumppBlock): added pCode size estimation
6588         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
6589           check for IS_SYMOP before OP_SYMBOL'ing
6590         * fixed indentation, compacted switch-statements
6591         * (allocReg): find free register and allocate it instead of
6592           allocating new registers all the time
6593         * (deassignLRs): prevent POINTER_GET's from being assigned the same
6594           registers as its operands (necessary only for multibyte GETs)
6595
6596 2005-07-01 Raphael Neider <rneider AT web.de>
6597
6598         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
6599           debugging .asm-output macros FENTRY + FEXIT
6600         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
6601           way... I wonder...
6602         * (emitpComment): NEW, printf to pCode
6603         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
6604           offset handling
6605         * (popGetAddr): NEW, variant of popGet to access an immediates
6606           high(er) bytes instead of the n'th byte of memory they reference,
6607           replaced popGet with popGetAddr where neccessary
6608         * (genDataPointerGet): reactivated and fixed implementation
6609         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
6610           accesses
6611         * (genDataPointerSet): fixed multibyte assignments
6612         * (genpic14Code): fixed --i-code-in-asm handling
6613         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
6614         * (genPlus): fixed index-out-of-bounds error
6615         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
6616         * src/pic/ralloc.c: added debugging output macro FENTRY2
6617         * (spillThis): fixed indentation, enbraced for-body for clarity
6618         * (rematStr): commented out as now unused
6619         * (regTypeNum): commented out special spill case (overwrites
6620           arbitrary values)
6621         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
6622
6623 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
6624
6625         * doc/sdccman.lyx: documented sfr16/sfr32,
6626           added example for using storage class with function pointers
6627         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
6628
6629 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
6630
6631         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
6632         * device/lib/_itoa.c,
6633         * device/lib/_ltoa.c: optimized codesize
6634         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
6635           but don't know how to suppress the double warning.
6636         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
6637         * support/Util/SDCCerr.c,
6638         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
6639
6640 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
6641
6642         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
6643           fixed old K&R prototypes
6644         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
6645         * device/lib/_gptrget.c,
6646         * device/lib/_gptrgetc.c,
6647         * device/lib/_gptrput.c: changed versions for new memory indicator values,
6648           also new versions for small generic pointers and banked generic pointers
6649         * src/port.h: added const_name
6650         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
6651         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
6652         * src/SDCCcse.c (findPrevIc): check all associative operators
6653         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
6654         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
6655         * src/SDCCmem.c: updated comments,
6656           set far-space to 0 for pdata, results in optimized code
6657         * src/SDCCmem.h: added macro CONST_NAME
6658         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
6659           moving the info into the highest bits, see also gptrget/gptrput
6660         * src/src.dsp: added sdcc.ico to project files
6661         * src/avr/gen.c (genCast): fixed bug 0x%d
6662         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
6663         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
6664           relation between ptr_type and DCL_TYPE,
6665           (genCast): fixed bug 0x%d
6666         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
6667           (CODE)" for const_name
6668         * src/hc08/gen.c (genCast): fixed bug 0x%d
6669         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
6670           (hc08_port): added "CONST (CODE)" for const_name
6671         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
6672           (aopForRemat, adjustArithmeticResult): disconnected direct relation
6673           between ptr_type and DCL_TYPE,
6674           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
6675           operand* and took AOP() inside function so sfr-ness can be checked,
6676           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
6677           new prototype,
6678           (genFunction, genEndFunction): optimized stack setup,
6679           (genMinus): optimized for literals with ending zeroes (in bytes),
6680           (genCast): fixed bug 0x%d
6681         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
6682           (mcs51_port): added "CONST (CODE)" for const_name
6683         * src/mcs51/peeph.def: made rule 226 more generic
6684         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
6685         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
6686         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
6687         * src/z80/main.c (z80_port): added NULL for const_name,
6688           (gbz80_port): added NULL for const_name
6689         * support/regression/tests/bug663539.c,
6690         * support/regression/tests/sfr16.c: new tests
6691
6692 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6693
6694         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
6695
6696 2005-06-24 Raphael Neider <rneider AT web.de>
6697
6698         * device/lib/pic16/libdev/pic18f[68][567]20.c:
6699           corrected typos...
6700         * device/include/pic16/signal.h: added USBIF
6701           and SIG_USB
6702
6703 2005-06-24 Raphael Neider <rneider AT web.de>
6704
6705         * device/lib/pic16/libdev/pic18f2455.c,
6706           device/include/pic16/pic18f2455.h: NEW
6707         * device/include/pic16/pic18fregs.h,
6708           device/lib/pic16/pics.all,
6709           src/pic16/device.c: added 18f2455
6710         * device/lib/pic16/libdev/pic18f[68][567]20.c,
6711           device/include/pic16/{pic18f[68][567].h,usart.h}:
6712           replaced MULTIPLE_USARTS define with more relaible
6713           compatibility sfrs (for USART access)
6714
6715 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
6716
6717         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
6718           and the output asm file line is printed on two lines.
6719
6720 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6721
6722         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
6723           BGT, BLE, BHI, and BLS instructions
6724         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
6725           genCmpEq): removed
6726         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
6727           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
6728           fixes bug #1216342
6729         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
6730
6731 2005-06-15 Raphael Neider <rneider AT web.de>
6732
6733         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
6734         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
6735         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
6736           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
6737           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
6738
6739 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6740
6741         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
6742           Marcel Telka in bug #1215704
6743
6744 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
6745
6746         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
6747           located in shared memory bank.
6748
6749 2005-05-31 Raphael Neider <rneider AT web.de>
6750
6751         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
6752           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
6753           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
6754
6755 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
6756
6757         * device/lib/_strncpy.c: fixed the fix
6758
6759 2005-05-26 Raphael Neider <rneider AT web.de>
6760
6761         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
6762           initializers with \0, bug #1208187
6763         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
6764           intializers with \0, bug #1208187
6765
6766 2005-05-26 Raphael Neider <rneider AT web.de>
6767
6768         * src/pic16/glue.c (pic16_printIvalChar): fixed string
6769           initializers with \0, bug #1208187
6770         * src/pic16/main.c (_process_pragma): added sanity checks
6771           for stack position and size, emit warnings when appropriate
6772
6773 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
6774
6775         * device/lib/_strncpy.c: fixed not filling with \0
6776
6777 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6778
6779         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
6780           createFunction),
6781         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
6782           compound_statement),
6783         * src/SDCCsymt.h,
6784         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
6785
6786 2005-05-24 Raphael Neider <rneider AT web.de>
6787
6788         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
6789
6790 2005-05-24 Raphael Neider <rneider AT web.de>
6791
6792         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
6793           TRISE definitions, closes bug #1162453
6794
6795 2005-05-22 Raphael Neider <rneider AT web.de>
6796
6797         * src/pic16/main.c (_process_pragma): check for missing
6798           arguments to pragmas code and udata
6799         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
6800           consistency fixes to match other headers (thanks to Jim Paris)
6801         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
6802
6803 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
6804
6805         * src/SDCCicode.c (isOperandEqual): fixed missing ;
6806
6807 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
6808
6809         * support/regression/tests/bug1198642.c: new test
6810         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
6811         * src/SDCCcse.c (findPrevIc): added comment, please have a look
6812         * support/scripts/resource.h,
6813         * support/scripts/resource.rc,
6814         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
6815         * support/scripts/sdcc.ico: added 32x32 icon
6816
6817 2005-05-18 Raphael Neider <rneider AT web.de>
6818
6819         * device/lib/pic16/libdev/pic18f*.c,
6820         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
6821           keywords to "__sfr" and "__at (X)"
6822         * device/include/pic16/pic18fregs.h: added pic18f4520
6823         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
6824           #1203088 (MPLAB compatibility)
6825
6826 2005-05-17 Raphael Neider <rneider AT web.de>
6827
6828         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
6829         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
6830         * device/lib/pic16/pics.all: added new devices
6831         * src/pic16/device.c: added support for pic18f4520
6832
6833 2005-05-16 Raphael Neider <rneider AT web.de>
6834         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
6835         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
6836         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
6837           convenience function for bit access
6838
6839 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
6840
6841         * device/lib/printf_large.c: fixed bug 1193299
6842         * support/regression/tests/bug1057979.c: added test %3.3s
6843
6844 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6845
6846         * device/include/mcs51/8051.h,
6847         * device/include/mcs51/8052.h: made parseable with lint
6848         * device/include/mcs51/lint.h: added include file for (sp)lint
6849         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
6850         * doc/cdbfileformat.lyx,
6851         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
6852
6853 2005-05-14 Raphael Neider <rneider AT web.de>
6854
6855         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
6856         * device/lib/pic16/libc/stdlib/itoa.c (new)
6857         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
6858         * device/lib/pic16/libio/Makefile: exclude subdir according to
6859           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
6860         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
6861         * src/pic16/gen.c (genFunction): prevent annoying warning
6862         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
6863           nameclashes on BeOS
6864         * support/cpp2/cppmain.c (cpp_output_string): new
6865         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
6866           fixes bug 1116802
6867
6868 2005-05-13 Borut Razem <borut.razem AT siol.net>
6869
6870         * src/SDCCmain.c (linkEdit): fixed bug 1195202
6871
6872 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6873
6874         * .version: changed to version 2.5.1; back to bleeding edge development
6875
6876 2005-05-11 Borut Razem <borut.razem AT siol.net>
6877
6878         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
6879           generate PDF version 1.3 documents
6880
6881 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6882
6883         * .version: changed to version 2.5.0
6884
6885 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6886
6887         * doc/sdccman.lyx: updated weblinks, index and smaller updates
6888
6889 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6890
6891         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
6892         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
6893         well as many smaller updates.
6894         * .version: changed to version 2.5.0-pre1
6895
6896 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6897
6898         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
6899
6900 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
6901
6902         * support/regression/tests/bug1185672.c: added
6903         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
6904           bug 1185672
6905         * src/mcs51/gen.c (genCall): added comments, made it look safer
6906         * src/mcs51/gen.c (genEndFunction): simplified
6907
6908 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
6909
6910         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
6911
6912 2005-04-14 Borut Razem <borut.razem AT siol.net>
6913
6914         * fixed bug 1045046 - SIGSEGV with really simple code?:
6915           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
6916           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
6917
6918 2005-04-14 Borut Razem <borut.razem AT siol.net>
6919
6920         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
6921           src/pic16/device.h: temporarily disabled experimental #inline pragma
6922           for 2.5.0 release
6923
6924 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
6925
6926         * device/include/z80/stdio.h,
6927         * device/include/z80/string.h: removed these highly incomplete files so
6928           SDCC can use the default ones in device/include/
6929
6930 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6931
6932         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
6933         gcc warning.
6934         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
6935         fix sdcpp warnings.
6936
6937 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
6938
6939         * device/include/malloc.h: removed redundant __reentrant prototypes
6940         * device/lib/_mullong.c: added working xstack variant in asm (C version
6941           doesn't pass regression tests)
6942         * device/lib/bpx.c: used __data and made bpx char for mcs51
6943         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
6944           (createFunction): fixed bug with xstackPtr
6945         * src/SDCCcse.c: corrected comments
6946         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
6947           (killDeadCode, eBBlockFromiCode): removed unused code
6948         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
6949           corrected comments
6950         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
6951           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
6952           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
6953           (genModOneByte): fixed warning in MSVC
6954         * src/mcs51/main.c (): added comments
6955         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
6956
6957 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
6958
6959         * src/SDCCmain.c (linkEdit): oops, changed one line too many
6960
6961 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
6962
6963         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
6964
6965 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
6966
6967         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
6968         characters arrays of larger size than the declared one.
6969
6970 2005-04-10 Borut Razem <borut.razem AT siol.net>
6971
6972         * src/pic/gen.c (genInline),
6973           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
6974           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
6975           (findNextInstruction), (findPrevInstruction),
6976           (findInstructionUsingLabel),
6977           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
6978         * src/pic/pcode.c (findLabel): added missing '\n'
6979         * src/src.dsp: added SDCCdwarf2.c to the project
6980
6981 2005-04-09 Borut Razem <borut.razem AT siol.net>
6982
6983         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
6984
6985 2005-04-08 Raphael Neider <rneider AT web.de>
6986
6987         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
6988           into the chain after a given one) and mergeDefmapSymbols (combine
6989           defmap entries for each symbol per pcode)
6990         * (createDefmap): have defmap entries merged in the end
6991         * (defmapReplaceSymRef): split defmap entries covering two accesses to
6992           a symbol before replacing one access type's symbol, merge symbols in
6993           the end (replacement symbol might already have an entry)
6994         * (assignValnums): keep reference to written WREG intact
6995
6996 2005-04-08 Raphael Neider <rneider AT web.de>
6997
6998         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
6999           Alpha)
7000
7001 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
7002
7003         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
7004         bytes
7005
7006 2005-04-07 Raphael Neider <rneider AT web.de>
7007
7008         * device/include/pic16/usart.h: added compatibility defines for
7009           devices with more than one USART
7010         * device/include/pic16/pic18f[68][567]20.h: activated above defines
7011
7012 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7013
7014         * device/lib/Makefile.in: updated for port specific include
7015
7016 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7017
7018         * support/regression/ports/mcs51/spec.mk: added mcs51 include
7019
7020 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7021
7022         * device/include/8051.h,
7023         * device/include/8052.h,
7024         * device/include/at89S8252.h,
7025         * device/include/at89c55.h,
7026         * device/include/at89x051.h,
7027         * device/include/at89x51.h,
7028         * device/include/at89x52.h,
7029         * device/include/mcs51reg.h,
7030         * device/include/reg51.h,
7031         * device/include/reg764.h,
7032         * device/include/regc515c.h,
7033         * device/include/sab80515.h: (re)moved these 12 files
7034         * device/include/mcs51/8051.h,
7035         * device/include/mcs51/8052.h,
7036         * device/include/mcs51/at89S8252.h,
7037         * device/include/mcs51/at89c55.h,
7038         * device/include/mcs51/at89x051.h,
7039         * device/include/mcs51/at89x51.h,
7040         * device/include/mcs51/at89x52.h,
7041         * device/include/mcs51/mcs51reg.h,
7042         * device/include/mcs51/reg51.h,
7043         * device/include/mcs51/reg764.h,
7044         * device/include/mcs51/regc515c.h,
7045         * device/include/mcs51/sab80515.h: and added them here
7046
7047 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
7048
7049         * device/include/stdarg.h: changed SDCC specific keywords to double
7050           underlined form.
7051         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
7052           mcs51 and ds390.
7053         * device/include/hc08/mc68hc908gp32.h,
7054         * device/include/hc08/mc68hc908jb8.h,
7055         * device/include/hc08/mc68hc908jkjl.h,
7056         * device/include/hc08/mc68hc908qy.h: fixed comments
7057         * device/include/mcs51/README: updated
7058         * device/include/mcs51/c8051f120.h: added PINRSF
7059         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
7060         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
7061           amidst code. Also inline is not supported.
7062
7063 2005-04-06 Raphael Neider <rneider AT web.de>
7064
7065         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
7066         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
7067           callers stack/frame pointers
7068
7069 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
7070
7071         * device/include/pic16/usart.h: added, missing in previous commit,
7072         * device/include/pic16/adc.h: fixed typo,
7073         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
7074         commit,
7075         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
7076         <p18fxxx.inc>
7077         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
7078         uninitialized because a bug appears with gplink
7079         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
7080         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
7081         complains for unrecognised option
7082
7083 2005-04-05 Raphael Neider <rneider AT web.de>
7084
7085         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
7086           structs as well (using memcpy)
7087         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
7088           on ISRs (GOTO has no label)
7089         * src/pic16/device.h: added OF_OPTIMIZE_DF
7090         * src/pic16/main.c: added compiler switch --optimize-df to enable the
7091           new data flow analysis/optimization
7092         * src/pic16/pcode.c: added (prototypes for and implementation of)
7093           dataflow analysis functions, fixed pCodeInstructions' inCond and
7094           outCond values, made RCALL a branch instruction
7095         * (pic16_unlinkpCode): keep C line if possible
7096         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
7097           C line moved if possible
7098         * (pic16_getRegFrompCodeOp): NEW, improved version of...
7099         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
7100           to use new pic16_getRegFrompCodeOp (works for more SFRs)
7101         * (pic16_BuildFlow): fixed skip instructions with label (did not start
7102           new flow)
7103         * (pic16_getJumptabpCode): NEW, needed in...
7104         * (LinkFlow): fixed handling of jumptables, calls and conditional
7105           branches
7106         * (pic16_InsertCommentAfter): NEW
7107         * (pic16_pCodeReplace): made verbose and flow preserving
7108         * (AnalyzeFlow): added call to data flow analysis
7109         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
7110         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
7111         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
7112
7113 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7114
7115         * src/SDCCast.c (decorateType): fixed bug #1105626
7116
7117 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
7118
7119         * device/include/asm/pic16/features.h,
7120         * pic18f*.h headers,
7121         * device/include/pic16/adc.h,
7122         * device/include/pic16/delay.h,
7123         * device/include/pic16/i2c.h,
7124         * device/include/pic16/malloc.h,
7125         * device/include/pic16/stdio.h,
7126         * device/include/pic16/stdlib.h,
7127         * device/include/pic16/string.h,
7128         * device/lib/pic16/libc/stdio/printf_tiny.c,
7129         * device/lib/pic16/libc/stdio/printf_small.c,
7130         * device/lib/pic16/libc/stdio/strmgpsim.c,
7131         * device/lib/pic16/libc/stdio/strmmssp.c,
7132         * device/lib/pic16/libc/stdio/strmusart.c,
7133         * device/lib/pic16/libc/stdio/vfprintf.c,
7134         * device/lib/pic16/libc/stdlib/ltoa.c,
7135         * device/lib/pic16/libc/stdlib/putchar.c,
7136         * device/lib/pic16/libc/stdlib/x_ftoa.c,
7137         * device/lib/pic16/libc/stdlib/memchrpgm.c,
7138         * device/lib/pic16/libc/stdlib/memchrram.c,
7139         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
7140         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
7141         * device/lib/pic16/libio/adc/adcbusy.c,
7142         * device/lib/pic16/libio/adc/adcread.c,
7143         * device/lib/pic16/libio/adc/adcsetch.c,
7144         * device/lib/pic16/libio/usart/ubaud.c,
7145         * device/lib/pic16/libio/usart/ubusy.c,
7146         * device/lib/pic16/libio/usart/udrdy.c,
7147         * device/lib/pic16/libio/usart/uopen.c,
7148         * device/lib/pic16/libio/usart/uputc.c,
7149         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
7150         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
7151         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
7152         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
7153         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
7154         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
7155         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
7156         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
7157         specific keywords to double underlined form,
7158         * device/lib/pic16/libc/Makefile.rules,
7159         * device/lib/pic16/libsdcc/Makefile.rules,
7160         * device/lib/pic16/libm/Makefile,
7161         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
7162         to compile with C standard set in Makefile.common
7163         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
7164         rand.c and crc.c in compilation process,
7165         * device/lib/pic16/libsdcc/int/divuint.c,
7166         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
7167         `c' from signed to unsigned,
7168         * device/lib/pic16/startup/crt0.c,
7169         * device/lib/pic16/startup/crt0i.c,
7170         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
7171         keywords to double underlined form, bug fixes in _do_cinit function
7172         which prevented the correct initialization of the .idata segment,
7173         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
7174         core to enter a infinite loop
7175         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
7176
7177 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7178
7179         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
7180
7181 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7182
7183         * device/include/Makefile.in: add support for hc08 subdirectory
7184         * device/include/hc08/: new subdirectory
7185         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
7186         Lucas Loizaga, thanks!
7187         * device/include/hc08/mc68hc908qy.h,
7188         * device/include/hc08/mc68hc908gp32.h,
7189         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
7190         their own directory. Changed internal macro names to use the compiler
7191         reserved namespace. Changed SDCC specific keywords to double
7192         underlined form.
7193         * device/include/math.h,
7194         * device/include/malloc.h,
7195         * device/include/stdarg.h,
7196         * device/include/stdbool.h
7197         * device/include/string.h,
7198         * device/include/tinibios.h,
7199         * device/include/ds400rom.h,
7200         * device/include/8051.h,
7201         * device/include/8052.h,
7202         * device/include/80c51xa.h,
7203         * device/include/at89c55.h,
7204         * device/include/at89S8252.h,
7205         * device/include/at89x51.h,
7206         * device/include/at89x52.h,
7207         * device/include/ds80c390.h,
7208         * device/include/reg764.h,
7209         * device/include/regc515c.h,
7210         * device/include/sab80515.h,
7211         * device/include/mcs51/c8051f000.h,
7212         * device/include/mcs51/c8051f018.h,
7213         * device/include/mcs51/c8051f020.h,
7214         * device/include/mcs51/c8051f040.h,
7215         * device/include/mcs51/c8051f060.h,
7216         * device/include/mcs51/c8051f120.h,
7217         * device/include/mcs51/c8051f300.h,
7218         * device/include/mcs51/c8051f310.h,
7219         * device/include/mcs51/c8051f320.h,
7220         * device/include/mcs51/c8051f330.h,
7221         * device/include/mcs51/c8051f350.h,
7222         * device/include/z180.h: Changed SDCC specific keywords to double
7223         underlined form.
7224
7225 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
7226
7227         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
7228         18F4455,
7229         * (pic16_assignConfigWordValue): disable testing of configuration
7230         register value with config mask,
7231         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
7232         function with port->fun_prefix,
7233         * (genFunction): when generating a naked interrupt function never
7234         create an absolute segment placed in interrupt vector address, place
7235         the actual interrupt function at IVA instead, when an interrupt
7236         function is generated with unspecified interrupt then do not create
7237         the absolute section,
7238         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
7239         code for generating a call to generic pointer get/put function with
7240         a call to function pic16_callGenericPointer(),
7241         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
7242         the call to the generic pointer get/put functions with prefixing the
7243         function name with port->fun_prefix,
7244         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
7245         * src/pic16/main.c (_process_pragma): prefix function with
7246         port->fun_prefix,
7247         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
7248         calling assembler, old 18Fxxxx macro is deprecated,
7249         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
7250         PC_ASMDIR in while condition,
7251         * (findInstruction): add PC_ASMDIR in while condition,
7252         * (buildCallTree): prefix main with port->fun_prefix,
7253         * (pic16_pCode2str): fixed bug that didn't emit the memory access
7254         identifier for variable with banked access in instructions BTFSS,
7255         BTFSC, BCF, BSF, BTG
7256         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
7257         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
7258         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
7259         perform optimization when enviroment variable NO_REG_OPT is set,
7260         * (insideLRBlock): NEW, return 1 if register is inside an
7261         INF_LOCALREGS block,
7262         * (RemoveRegFromLRBlock): remove a register that is completely
7263         eliminated by register optimization, but it is still left in local
7264         register store/restore in/from stack block,
7265         * (Remove2pcodes): after removing register, check to see if it
7266         should be removed from local register store/restore in/from stack
7267         block,
7268         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
7269         DUMMY_READ_VOLATILE,
7270
7271         * device/include/pic16/adc.h: minor prototype modifications and
7272         update,
7273         * device/include/pic16/malloc.h: added GPL notice various
7274         modifications,
7275         * device/include/pic16/stdint.h: NEW, standard header for ints
7276         * device/include/pic16/delay.h: NEW, header for delay functions,
7277         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
7278         delay1mtcy,
7279         * device/include/pic16/signal.h: NEW, header providing helper macros
7280         for implementing signal handlers,
7281         * device/include/pic16/stdio.h: added prototypes for functions,
7282         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
7283         prototypes for stdin and stdout, added macro PUTCHAR to
7284         automatically implement putchar function prototype,
7285         * device/include/pic16/usart.h: modified and updated USART library,
7286         * device/lib/pic16/libio/adc/,
7287         * device/lib/pic16/libio/i2c: some modifications to improve library
7288         performance,
7289         * device/lib/pic16/libc/stdio/: modifications for the new printf*
7290         family of functions,
7291         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
7292         family of functions and other sources,
7293         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
7294         of the PIC18Fxx[28] devices,
7295         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
7296         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
7297         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
7298         _do_cinit function, because the previous failed when local variables
7299         where not placed in the same memory bank,
7300         * device/lib/pic16/libsdcc/char/: various modifications to improve
7301         library performance,
7302         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
7303         information on the new functions of the c library and more...
7304
7305 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7306
7307         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
7308
7309 2005-03-26 Raphael Neider <rneider AT web.de>
7310
7311         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
7312           if condition == CARRY)
7313         * (genCmp): adapted to new genSkipc semantics
7314         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
7315           on rIfx (genCmp was broken)
7316
7317 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7318
7319         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
7320         * src/z80/main.c (_keywords[]),
7321         * src/SDCCglobal.h (struct options),
7322         * src/SDCC.y,
7323         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
7324         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
7325         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
7326         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
7327         always available in leading double underscore form. The C99 support is
7328         mostly missing, but it's a start.
7329         * support/regression/tests/bug-227710.c: fixed nonconforming use of
7330         reserved identifier "__data".
7331
7332 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
7333
7334         * src/mcs51/peeph.def: fixed bug 1170013
7335
7336 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
7337
7338         * device/include/mcs51reg.h: fixed bug 842007
7339
7340 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7341
7342         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
7343         last time.
7344
7345 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7346
7347         * src/port.h (struct PORT),
7348         * src/avr/ralloc.c (avr_assignRegisters),
7349         * src/avr/main.c,
7350         * src/ds390/ralloc.c (ds390_assignRegisters),
7351         * src/ds390/main.c,
7352         * src/hc08/ralloc.c (hc08_assignRegisters),
7353         * src/hc08/main.c,
7354         * src/mcs51/ralloc.c (mcs51_assignRegisters),
7355         * src/mcs51/main.c,
7356         * src/pic/ralloc.c (pic14_assignRegisters),
7357         * src/pic/main.c,
7358         * src/pic16/ralloc.c (pic16_assignRegisters),
7359         * src/pic16/main.c,
7360         * src/xa51/ralloc.c (xa51_assignRegisters),
7361         * src/xa51/main.c,
7362         * src/z80/ralloc.c (z80_assignRegisters),
7363         * src/z80/ralloc.h,
7364         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
7365         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
7366         * src/SDCCcse.h,
7367         * src/SDCCdflow.c (computeDataFlow),
7368         * src/SDCCdflow.h,
7369         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
7370         * src/SDCCloop.h,
7371         * src/SDCCcflow.c (*),
7372         * src/SDCCcflow.h,
7373         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
7374         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
7375         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
7376         immedDom() returning wrong block; probably fixes bug #1160833)
7377
7378 2005-03-20 Borut Razem <borut.razem AT siol.net>
7379
7380         * support/scripts/inc2h.pl: WIN32 port
7381
7382 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
7383
7384         * device/lib/makefile.in: added abs.c and labs.c
7385
7386 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
7387
7388         * device/include/stdint.h: added
7389         * device/lib/abs.c: added
7390         * device/lib/labs.c: added
7391         * device/include/stdlib.h: added abs() and labs() prototypes
7392         * device/lib/libsdcc.lib: added abs and labs
7393         * device/include/float.h,
7394         * device/lib/_fsmul.c,
7395         * device/lib/printf_fast.c,
7396         * device/lib/printf_tiny.c: updated comments
7397
7398 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7399
7400         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
7401         bug #1164313
7402
7403 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7404
7405         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
7406         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
7407
7408 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
7409
7410         * device/lib/printf_large.c: removed inline assembly for portability and
7411           readability. Use printf_fast if speed or size are more important.
7412         * src/pic16/gen.c: removed conditions around use of DEBUGpc
7413         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
7414
7415 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
7416
7417         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
7418         prevent compiler warning
7419
7420 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
7421
7422         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
7423         moved to level 0 and declared as static. Also they are explicit
7424         placed in access bank. This was necessery because some times they
7425         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
7426         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
7427         optimizations. Currently only compare to unsigned char is implemented,
7428         * src/pic16/gen.c: added fReturnIdx array,
7429         * (struct resolvedIfx) is moved to gen.h and made public,
7430         * (struct _G): added sregsAlloc and sregsAllocSet fields,
7431         * (aopForSym): added an optimization to directly store in stack of
7432         the operand of a SEND iCode,
7433         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
7434         but as registers instead (AOP_REG) using the fReturnIdx array,
7435         * (pic16_freeAsmop): remove the freed register from the
7436         _G.sregsAlloc field,
7437         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
7438         a compare of 'WREG',
7439         * (pic16_popGetTempRegCond): changed function prototype, now
7440         function takes also a bitVector argument v which holds the current
7441         set of registers that are allocated for stack access by aopForSym,
7442         registers allocated in aopForSym for accessing stack symbols are not
7443         any more part of the functions usedRegs field,
7444         * (genCall): some times aopOp is called for a stack variable to be
7445         send, aopForSym might perform the push, if this is true make sure
7446         that genCall doesn't push the variable twice by testing _G.resDirect,
7447         * (genFunction): changed testing for unspecified interrupt number
7448         from 256 to INTNO_UNSPEC,
7449         * modified selection scheme of frame pointer generation. Previously
7450         if function did use local registers a frame pointer was generated,
7451         now a frame pointer is generated only if function has arguments
7452         (that need PLUSW2 register access), or has stack arguments, or the
7453         compiler is not instructed to omit the frame pointer,
7454         * (genEndFunction): before restoring local registers that were saved
7455         in the function preamble, also restore the registers that *might*
7456         have been allocated for stack access,
7457         * (genRet): removed some old comments,
7458         * (genCmp, the active (RN's) version): added a call to the
7459         pic16_genCmp_special function to perform the compare with a more
7460         robust and optimized way,
7461         * (genInline): a feature has been added in inline code generation,
7462         which allows a wildcard variable substitution when writing inline
7463         assembly. Code is incomplete and experimental therefore undocumented,
7464         * (genCast): changed order of aopOp for result and right to allow
7465         aopForSym to directly load the result if possible,
7466         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
7467         perform an optimized compare on some selected special occasions,
7468         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
7469         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
7470         generate an IVT any more,
7471         * src/pic16/main.c (pic16_optionsTable): added command line option
7472         --optimize-cmp,
7473         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
7474         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
7475         macros,
7476         * src/pic16/NOTES: Raphael Neider added in list of active developers
7477         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
7478         jumptable_end to prevent bug #,
7479         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
7480         inCond and outCond fields,
7481         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
7482         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
7483         turn off register spilling,
7484         * (packRegsForOneUse): synced with other ports' versions although it
7485         is not used currently,
7486         * (pic16_packRegisters): added an optimization while reading
7487         structure bitfields, some registers may be saved (malloc code is
7488         decreased by 80 bytes)
7489
7490 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
7491
7492         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
7493         left is a bitfield, if yes, then don't optimize assignment. Perhaps
7494         this can be optimized more?
7495
7496 2005-03-10 Raphael Neider <rneider AT web.de>
7497
7498         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
7499           genNearPointerGet): (hopefully) fixed access to bitfields via
7500           pointers (p->bitN = x; and x = p->bitN; failed)
7501
7502 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
7503
7504         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
7505
7506 2005-03-09 Raphael Neider <rneider AT web.de>
7507
7508         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
7509
7510 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
7511
7512         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
7513         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
7514           (regTypeNum): set REG_BIT type if necessary
7515         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
7516         * support/regression/tests/critical.c: check bug 1144613
7517
7518 2005-03-02 Raphael Neider <rneider AT web.de>
7519
7520         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
7521
7522 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7523
7524         * src/avr/ralloc.c (serialRegAssign),
7525         * src/ds390/ralloc.c (serialRegAssign),
7526         * src/hc08/ralloc.c (serialRegAssign),
7527         * src/mcs51/ralloc.c (serialRegAssign),
7528         * src/pic/ralloc.c (serialRegAssign),
7529         * src/pic16/ralloc.c (serialRegAssign),
7530         * src/xa51/ralloc.c (serialRegAssign),
7531         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
7532
7533 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
7534
7535         * src/SDCCast.c (decorateType): fixed bug 1124787
7536
7537 2005-02-20 Hubert Sack <sack AT digiplan.de>
7538         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7539
7540         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
7541         patch #1121755
7542
7543 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7544
7545         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
7546         to keep the correct label reference count when adding/removing references
7547         to labels. A peephole file using this is appended to patch #1144962.
7548
7549 2005-02-14 Raphael Neider <rneider AT web.de>
7550
7551         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
7552         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
7553         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
7554           retrievals of result operand's value on assignment
7555
7556 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
7557
7558         * device/include/pic16/string.h: modified prototype for memccpy()
7559         to memccpy(void *, void *, char, size_t)
7560         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
7561         check whether to omit frame pointer or not,
7562         * (genInline): convert all occurences of "\n" to LF in inline
7563         assembler blocks, this helps formatting the inline text,
7564         * (pic16_loadFSR0): modified prototype,
7565         * (genNearPointerGet, genNearPointerSet): reorganization of code,
7566         removed some 8051 legacy code,
7567         * (genPackBits): enabled handling bitfields exceeding one byte in size,
7568         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
7569         before allocating temporary registers in functions,
7570
7571 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
7572
7573         * support/regression/tests/bitvars.c: corrected the "fix"
7574
7575 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
7576
7577         * support/regression/tests/bitvars.c,
7578         * support/regression/tests/bitwise.c,
7579         * support/regression/tests/rotate.c: "fixed" problems on Alpha
7580
7581 2005-02-10 Raphael Neider <rneider AT web.de>
7582
7583         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
7584           different size for Alpha
7585         * src/pic16/gen.c (genCmpEq) : improved compare with 0
7586
7587 2005-02-09 Raphael Neider <rneider AT web.de>
7588
7589         * src/SDCC.lex(doPragma) : save and restore warning options as well
7590           (also added new stack plus clone- and copyAndFreeSDCCERRG())
7591         * have #pragma less_pedantic set the errorlevel to WARNING
7592           (fixes #1117001)
7593         * (cloneOptimize) : fixed wrong malloc's size
7594         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
7595           facilitate correct handling of #pragma (save|restore)
7596
7597 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
7598
7599         * src/mcs51/gen.c: removed non-standard C nameless struct/union
7600
7601 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
7602
7603         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
7604
7605 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
7606
7607         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
7608
7609 2005-02-02 Raphael Neider <rneider AT web.de>
7610
7611         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
7612         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
7613         * (pic16_storeForReturn): fixed to allow returning function pointers
7614         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
7615         * device/include/pic16/{stddef.h,stdbool.h}: added
7616
7617 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
7618
7619         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
7620
7621 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
7622
7623         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
7624         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
7625          appeared to be required
7626
7627 2005-01-31 Borut Razem <borut.razem AT siol.net>
7628
7629         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
7630           include/mcs51 and include/z80 directories to the package
7631
7632 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7633
7634         * src/hc08/gen.c (genFunction): fixed bug #1112752
7635
7636 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7637
7638         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
7639
7640 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7641
7642         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
7643
7644 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
7645
7646         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
7647
7648 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
7649
7650         * device/include/c8051fxxx.h: removed these 6 files
7651         * device/include/mcs51/c8051fxxx.h: added these 11 new files
7652
7653 2005-01-26 Raphael Neider <rneider AT web.de>
7654
7655         * src/pic16/gen.c (genAssign): fixed assignment from longs
7656           in codespace (were cut to three bytes)
7657         * (genDummyRead): implemented (except for CODESPACE...),
7658           fixed bug #1108575
7659         * src/pic16/glue.c (emitStatistics): beautified
7660         * device/lib/pic16/libm/Makefile: added include path
7661
7662 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7663
7664         * src/z80/gen.c (aopPut): fixed bug #1103902
7665
7666 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7667
7668         * device/lib/expf.c: fixed bug #1095792
7669
7670 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
7671
7672         * device/lib/pic16/libm: added Math library sources
7673
7674 2005-01-24 Raphael Neider <rneider AT web.de>
7675
7676         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
7677           to enable upcast to pCodeOpReg2 (there is no type tag to
7678           differenciate the two and pic16_popGet2p cast into PCOR2)
7679         * src/pic16/main.c (_process_pragma): fixed another malloc bug
7680           (sizeof(sectNames) changed to sizeof(sectName))
7681           Both patches fix segfaults under MinGW.
7682
7683 2005-01-23 Raphael Neider <rneider AT web.de>
7684
7685         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
7686           Safe_[mc]?alloc()'ed variables
7687         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
7688           of (byte sized) temporaries (assign them to WREG for now)
7689         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
7690           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
7691           this might fix SIGSEGVs on MinGW...
7692         * src/SDCCopt.c (killDeadCode): restored original behaviour
7693           (volatile operands might get thrown away though)
7694
7695 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
7696
7697         * src/pic16/gen.c: fixed bug #1106975,
7698         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
7699         pointer update, INTCON is saved, global interrupts are disabled and
7700         restored after updateing TOS.
7701         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
7702         * added function attribute 'shadowregs' to take advantage of shadow
7703         registers,
7704         * added function attribute 'wparam' as an alternative to the wparam
7705         pragma,
7706         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
7707         user declares a non-ISR function as 'shadowregs',
7708         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
7709
7710 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
7711
7712         * .version: bumped version number to 2.4.8
7713         * device/lib/pic16/pics.all: list of PIC18F devices supported by
7714         pic16 port,
7715         * device/lib/pic16/libio/i2c/: I2C module support library,
7716         * device/include/pic16/i2c.h: I2C support library header,
7717         * device/lib/pic16/libc/stdio/: standard IO support sources,
7718         * (printf_small.c): printf_small() source, supports float print,
7719         * (printf_tiny.c): printf_tiny() source, does not support floats,
7720         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
7721         enable global optimizations for entire library source, other
7722         Makefiles in the source tree are also modified to reflect this,
7723         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
7724         function,
7725         * doc/sdccman.lyx: updated to reflect new changes,
7726         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
7727         sym->onStack if-case,
7728         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
7729         sbit, idata, _idata, xdata, _xdata,
7730         * added pragma library, to link an external library, (see doc),
7731         * removed command line options, --pomit-config-words, --pomit-ivt,
7732         --pleave-reset-vector,
7733         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
7734         when calling assembler to reflect memory model used, also define
7735         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
7736         reflect stack model used,
7737         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
7738         on stack return NULL,
7739
7740 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
7741
7742         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
7743           of the operands is volatile. Fixes #1020220
7744
7745 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
7746
7747         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
7748         * (OptimizeRegUsage): make sure that there is really no other flow where
7749           the first pCode is used
7750
7751 2005-01-22 Raphael Neider <rneider AT web.de>
7752
7753         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
7754           to fix #1106967 (pCode->seq are not set up correctly)
7755
7756 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7757
7758         * src/SDCCglue.c (glue): make sure code area is declared before the
7759         static initialization area.
7760
7761 2005-01-21 Raphael Neider <rneider AT web.de>
7762
7763         * device/lib/Makefile.in: fixed test for pic16 install dir
7764         * device/lib/pic16/*/Makefile*: modified compile flags to enable
7765           optimizations
7766         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
7767           added --optimize-goto compiler switch and pragma wparam documentation
7768         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
7769         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
7770           and PRODH closing bug #1071770 (peephole optimizer)
7771
7772 2005-01-19 Raphael Neider <rneider AT web.de>
7773
7774         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
7775           cmdLine buffers (used when calling sdcpp...) are large enough
7776           (MAX_PATH=256 truncates arguments leading to system halts when
7777           used in MinGW...)
7778         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
7779         * (genUminus): rewritten to for efficiency
7780         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
7781           used uninitialized in some cases)
7782         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
7783           copy the third byte from the int -- now assumes 0x80 (data memory)
7784         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
7785           operands (genAddLit expects the iCode's operands to swapped as
7786           well), fixed leftover bytes (crashed for short left operands)
7787         * (pic16_genMinusDec): performance improvements, removed false
7788           PIC14 emitSKPNCs
7789         * (pic16_genMinus): fixed to cope with differently sized operands
7790         * src/pic16/glue.c (pic16_glue): added new banksel optimization
7791           for --obanksel > 1
7792         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
7793         * src/pic16/graph.[ch]: implementation of directed graphs, used by
7794           new banksel optimization
7795         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
7796           analysis for temporary registers (segfaults...)
7797         * src/pic16/peeph.def: added rule
7798
7799 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
7800
7801         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
7802         which converts a float number to its ASCII representation
7803         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
7804         functions to convert the fractional and integer part of a float to ASCII,
7805         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
7806         realloc.c): added _MALLOC_SPEC to explicit place variables in data
7807         ram
7808         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
7809         _STATMEM macros,
7810         * device/include/pic16/adc.h: added GPL info,
7811         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
7812         a pCodeOp as tested operand,
7813         * (genNearPointerGet): optimized bit testing, does not use
7814         intermediate register for bit value, test directly instead with
7815         BTFSS, BTFSC, works only for single bits,
7816         * (genpic16Code): dump the name of the iCode in the asm,
7817         * src/pic16/ralloc.c (decodeOp): removed static declaration and
7818         renamed to pic16_decodeOp,
7819         * (serialRegAssign): do not allocate a temporary register for iCode
7820         sequences that test a single bit for 1/0
7821
7822 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
7823
7824         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
7825         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
7826         access stack and frame pointers. They are initially assigned to
7827         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
7828         accessing SFRs. Updated all occurences of modification of stack or
7829         frame pointer in gen.c and pcode.c,
7830         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
7831         assigning of a literal value to pointers,
7832         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
7833         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
7834         selected
7835
7836 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
7837
7838         * doc/sdccman.lyx: update documentation about stack pragma, added
7839         some info for stack memory models
7840
7841 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7842
7843         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
7844
7845 2005-01-08 Raphael Neider <rneider AT web.de>
7846
7847         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
7848           udata sections to fix bug #1097823
7849
7850 2005-01-05 Raphael Neider <rneider AT web.de>
7851
7852         * src/pic16/gen.c (genGenericShift): added handling of differently
7853           sized left operand and result
7854
7855 2005-01-04 Raphael Neider <rneider AT web.de>
7856
7857         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
7858         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
7859           to hold the condition bit)
7860         * added new version of genCmp (old code available via #define)
7861         * added new version of genShiftLeft/genShiftRight in a generic
7862           way, now supports shifting by negative values
7863         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
7864           shiftCount (expected by genGenericShift)
7865         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
7866         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
7867           dump
7868         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
7869           is an invalid literal too...)
7870
7871 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
7872
7873         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
7874         from Raphael Neider,
7875         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
7876         for 8-bit literals. This fixes some literal operands which are sign
7877         extended to 16-bits ints when instruction needs only 8-bits.
7878
7879 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
7880
7881         * device/lib/logf.c: added mcs51 assembly version
7882         * device/lib/expf.c: added mcs51 assembly version
7883         * device/lib/_logexpf.c: new shared asm code for expf and logf
7884         * device/include/math.h: add defines for assembly math library
7885         * device/lib/Makefile.in: build new _logexpf.c
7886         * device/lib/libfloat.lib: use new _logexpf.c
7887
7888 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
7889
7890         * src/pic/device.c
7891         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
7892           device types which have less than 0x7f registers.
7893
7894 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
7895
7896         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
7897
7898 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
7899
7900         * device/lib/printf_fast.c: only build on supported arch.
7901         * device/lib/printf_tiny.c: only build on supported arch.
7902         * device/lib/printf_fast_f.c: only build if asm float lib
7903         * device/lib/_fsget1arg.c: only build if asm float lib
7904         * device/lib/_fsget2args.c: only build if asm float lib
7905         * device/lib/_fsnormalize.c: only build if asm float lib
7906         * device/lib/_fsreturnval.c: only build if asm float lib
7907         * device/lib/_fsrshift.c: only build if asm float lib
7908         * device/lib/_fsswapargs.c: only build if asm float lib
7909         * device/include/stdio.h: don't provide print_fast,
7910           print_fast_f, print_tiny prototypes if --xstack used
7911
7912 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
7913
7914         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
7915         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
7916           to the SOURCES
7917
7918 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
7919
7920         * device/lib/printf_fast_f.c: same as printf_fast, but
7921           with floating point enabled
7922         * device/lib/printf_fast.c: minor tweaks
7923         * device/include/stdio.h: add printf_fast_f
7924
7925 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
7926
7927         * src/SDCCmain.c: make --float-reent default for mcs51
7928         * device/lib/_fsadd.c: added mcs51 assembly version
7929         * device/lib/_fssub.c: added mcs51 assembly version
7930         * device/lib/_fsmul.c: added mcs51 assembly version
7931         * device/lib/_fsdiv.c: added mcs51 assembly version
7932         * device/lib/_fseq.c: added mcs51 assembly version
7933         * device/lib/_fsneq.c: added mcs51 assembly version
7934         * device/lib/_fsgt.c: added mcs51 assembly version
7935         * device/lib/_fslt.c: added mcs51 assembly version
7936         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
7937         * device/lib/Makefile.in: add _fscmp to build
7938         * device/lib/libfloat.lib: add _fscmp to build
7939
7940 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
7941
7942         * device/lib/_fs2slong.c: added mcs51 assembly version
7943         * device/lib/_fs2sint.c: added mcs51 assembly version
7944         * device/lib/_fs2schar.c: added mcs51 assembly version
7945         * device/lib/_fs2ulong.c: added mcs51 assembly version
7946         * device/lib/_fs2uint.c: added mcs51 assembly version
7947         * device/lib/_fs2uchar.c: added mcs51 assembly version
7948         * device/lib/_slong2fs.c: added mcs51 assembly version
7949         * device/lib/_sint2fs.c: added mcs51 assembly version
7950         * device/lib/_schar2fs.c: added mcs51 assembly version
7951         * device/lib/_ulong2fs.c: added mcs51 assembly version
7952         * device/lib/_uint2fs.c: added mcs51 assembly version
7953         * device/lib/_uchar2fs.c: added mcs51 assembly version
7954         * device/include/float.h: added #define to select asm vs c
7955
7956 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
7957
7958         * device/lib/printf_fast.c: improvements to float output
7959         * device/include/float.h: add defines for assembly float library
7960         * device/lib/_fsget1arg.c: receive 1 float arg
7961         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
7962         * device/lib/_fsnormalize.c: normalize a float
7963         * device/lib/_fsreturnval.c: return float, various helper routines
7964         * device/lib/_fsrshift.c: right shift a float's mantissa
7965         * device/lib/_fsswapargs.c: swap 2 floats
7966         * device/lib/Makefile.in: build these 6 new files for mcs51
7967         * device/lib/libfloat.lib: add these 6 files to the library
7968
7969 2004-12-26 Borut Razem <borut.razem AT siol.net>
7970
7971         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
7972           built by gcc 3.4.2
7973
7974 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
7975
7976         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
7977           and fully reentrant and register bank neutral.
7978         * device/lib/printf_fast.c: added float (not enabled by default),
7979           added compact/slower integer (also not enabled by default),
7980           improved size/speed of fast integer code, other minor changes
7981         * device/include/stdio.h, device/lib/Makefile.in,
7982           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
7983
7984 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
7985
7986         * src/pic16/pcode.c: declaring variables other than at the start of a
7987           block is not supported in C by VC6.
7988
7989 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
7990
7991         * applied a previous patch from Raphael Neider that wasn't included
7992         in the previous commits, which fixes infinite loops within jumptable
7993         improvements,
7994         * made some fixes that previous patches introduced
7995
7996 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
7997
7998         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
7999         that fixes an issue with AOP_PCODE asmop's offset,
8000         * (pic16_popCopyReg): update instance field too,
8001         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
8002         function of pic port,
8003         * (genCmp, genAnd, genAssign),
8004         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
8005
8006 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
8007
8008         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
8009         variables initial values to idata section,
8010         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
8011         variables in some functions. This utilizes parmBytes field of iCode
8012         structure to hold the offset of the variable in stack. (might be
8013         able to use the stack field too?)
8014         * applied patch from Raphael Neider # ### , # ###
8015         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
8016         variable initial values in idata section,
8017         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
8018         for static variables with initial value
8019         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
8020         applied fix in while loop from Raphael Neider.
8021
8022 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
8023
8024         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
8025         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
8026         * src/ds390/ralloc.c (serialRegAssign): spill bits
8027         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
8028         * support/Util/SDCCerr.c,
8029         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
8030         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
8031         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
8032
8033 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
8034
8035         * device/include/sdcc-lib.h: inserted LGPL, added includes
8036           asm/ds390/features.h and asm/mcs51/features.h
8037         * device/include/asm/default/features.h,
8038         * device/include/asm/gbz80/features.h,
8039         * device/include/asm/z80/features.h: added empty _AUTOMEM
8040           and _STATMEM
8041         * device/include/asm/ds390/features.h,
8042         * device/include/asm/mcs51/features.h: added files with defines for
8043           _AUTOMEM and _STATMEM indicating automatic and static storage class
8044         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
8045         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
8046         * src/SDCCicode.c (geniCodeCast),
8047         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
8048         * src/SDCCloop.c (loopInduction): removed unused variable lr
8049         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
8050           to convertToFcall to include char modulo (RFE 1065037), added check
8051           if left operand is unsigned and use abs of literal value
8052         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
8053           as it doesn't work after conversion from peephole.def to peephole.rul
8054         * src/mcs51/gen.c (toBoolean): added check for size,
8055           (genModOneByte): optimized code for signed char modulo a literal
8056           power of 2 (thanks to Hubert Sack),
8057           (genRRC): removed unnecessary "clr c",
8058           (genRLC): replaced "add a,acc" with cheaper "rlc a"
8059         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
8060           jump optimization,
8061           swapped rules 256.c and 256.d,
8062           extended 256.d by using new multiple checks (thanks Erik),
8063           added rules 256.e and 256.f,
8064           updated rule 261.a and 261.b to new generated code
8065         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
8066
8067 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8068
8069         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
8070           induction related bugs, including first part of bug #1074377
8071
8072 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
8073
8074         * applied patch from bug-report #1076292,
8075         * applied patches for genAnd and Goto-optimizations for Raphael
8076         Neider,
8077         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
8078         dump a less iCode information,
8079         * src/pic16/device.h (pic16_options_t): added field debgen,
8080         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
8081         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
8082         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
8083         puclic,
8084         * (various functions): added macros FENTRY and FENTRY2 to functions,
8085         to emit function prologue,
8086         * (various functions): fixed indentation,
8087         * (genNearPointerGet): fixed loading of FSR0,
8088         * (genPackBits): applied patch from Raphael Neider to fix updating
8089         of FSR0 and touching only the modified bits,
8090         * src/pic16/genarith.c (various functions): added macros FENTRY to
8091         emit function prologue in comments,
8092         * src/pic16/pcode.h: added functions debugf2, debugf3,
8093         * src/pic16/ralloc.c: partial fix for packForPush caused
8094         segmentation fault,
8095
8096 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8097
8098         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
8099           <stsp AT users.sourceforge.net> with reversed byte order
8100         * support/regression/tests/rotate.c: added (ds390 skips some tests)
8101
8102 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8103
8104         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
8105           bug #1074377
8106         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
8107         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
8108
8109 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
8110
8111         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
8112
8113 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8114
8115         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
8116           conditions,
8117           (setFromConditionArgs): friendly operand parser for peephole rules,
8118           (operandBaseName, operandsNotRelated): new peephole condition
8119           "operandsNotRelated" -- similar to "operandsNotSame", but takes
8120           architecture specific register naming into account, handles n-way
8121           comparisons, and supports quoted literals
8122         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
8123
8124 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8125
8126         * src/mcs51/peeph.def: fixed bug #1076940
8127
8128 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
8129
8130         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
8131
8132 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8133
8134         Adding support for replacing ljmps with sjmps in jumptables
8135         generated for switch statements. For now you need to set the
8136         environment variable SDCC_SJMP_JUMPTABLE to enable this.
8137         Now 4 algorithms for mcs51 jumptable generation are used:
8138         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
8139         addresses loaded pc-relative for up to 112 cases and stack-pushing
8140         target addresses loaded with offset from dptr for up to 256 cases.
8141
8142         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
8143         * src/mcs51/main.c: adapted constants for switch table generation
8144         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
8145
8146 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
8147
8148         * device/lib/printf_large.c (_print_format): fixed bug 1073386
8149         * support/regression/tests/bug1057979.c: added test for bug 1073386
8150
8151 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
8152
8153         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
8154         compilers
8155
8156 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
8157
8158         * src/pic16/device.h,
8159         * src/pic16/genarith.c,
8160         * src/pic16/glue.c,
8161         * src/pic16/main.c,
8162         * src/pic16/pcode.c: applied patches #1068154 and #1070213
8163
8164 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
8165
8166         Large cummulative patch for pic16 port.
8167         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
8168         to call when a stack overflow occurs,
8169         * (malloc.h): added CVS Id tag,
8170         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
8171         variable,
8172         * added libc directory. The current version of LibC contains string
8173         functions, ctype functions and macros and some functions of the
8174         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
8175         be extensively tested in the future. Standard disclaimer here.
8176         Library is not automatically build yet. But one can build it by
8177         invoking 'make' inside the libc directory.
8178         * added ADC library under libio. Preliminary version yet.
8179
8180         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
8181         * src/pic16/gen.c (aopForRemat): asmop size is filled by
8182         aopForRemat() now and not by pic16_aopOp(),
8183         * (pic16_popGetTempReg): removed warning messgae when allocating
8184         temporary registers, its a buggy feature and will be removed,
8185         * (pic16_popGet): set register instance field in AOP_CRY,
8186         * (pic16_outBitC): fixed for results in size greater than 1,
8187         * (genUminusFloat): fixed for pic16, ported code from mcs51,
8188         * (pic16_storeForReturn): optimized return of 0,
8189         * (genCmp): experimental code for new genCmp which uses PIC18's
8190         special compare&skip instructions. Initial tests fail some times
8191         with variables grater than 1 byte in size, so new code is disabled,
8192         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
8193         a single bit,
8194         * (genCast): began a fix to optimize the casting of a bit to another
8195         bit, now assigning a bitfield to another bitfield will fail, sorry,
8196         * src/pic16/main.c: disabled the use of lr-support feature,
8197         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
8198         * added some function prototypes, added function _debugf prototype,
8199         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
8200         bits with offset (case PO_GPR_BIT),
8201         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
8202         command line,
8203         * (isBankInstruction): modified to return 0 for no banking instruction,
8204         and 1 for banking instruction,
8205         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
8206         caused stop processing pCodes after a inline assembly block,
8207         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
8208         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
8209         registers when it shouldn't,
8210         * src/pic16/ralloc.c (allocReg): add preliminary support for
8211         supporting a limited set of temporary registers,
8212
8213 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8214
8215         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
8216           genDataPointerSet): ensure assignments always copy in MSB to LSB
8217           order,
8218           (loadRegFromAop): recognize CLRH optimization,
8219           (genFunction): optimize RECEIVE iCodes in reentrant functions
8220
8221 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8222
8223         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
8224           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
8225           selected.
8226         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
8227         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
8228           contiguous with data
8229
8230 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8231
8232         * device/lib/_gptrget.c (_gptrget),
8233         * device/lib/_gptrgetc.c (_gptrgetc),
8234         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
8235           instead of sjmp to ret
8236         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
8237           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
8238
8239 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
8240
8241         * .version: bumped version to 2.4.7
8242         * device/lib/_gptrget.c (_gptrget): is now _naked
8243         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
8244         * device/lib/_gptrput.c (_gptrput): is now _naked
8245         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
8246           (createFunction): fixed xstack
8247         * src/SDCCglue.c (emitMaps): set allocation required for bit area
8248         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
8249           or bit either,
8250           (geniCodeCritical): store original interrupt state in an iTemp bit
8251           var unless stack-auto
8252         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
8253         * src/SDCCmain.c (setIncludePath): added include/target to search path
8254         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
8255         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
8256           prototype,
8257           (processFuncArgs): put bit vars in bit area
8258         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
8259           unsaveRBank): fixed xstack,
8260           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
8261           (genFunction, genEndFunction): fixed xstack,
8262           (genAssign): optimization don't walk backwards through mem
8263         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
8264         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
8265         * support/regression/Makefile: also make library (for stack-auto) when
8266           making "all" and added "test-mcs51-xstack-auto"
8267         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
8268         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
8269         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
8270         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
8271         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
8272           make-library by MAKE_LIBRARY
8273         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
8274           regression tests for xstack
8275         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
8276         * support/regression/tests/critical.c: test for critical on mcs51
8277
8278 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8279
8280         * support/regression/ports/ucz80/spec.mk: use include and lib files from
8281           built version of sdcc instead of installed version
8282
8283 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
8284
8285         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
8286         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
8287           vprintf.c now
8288         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
8289         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
8290           WARNING: remove device/lib/build/z80/printf.o by hand when
8291           updating from previous build!
8292         * device/lib/z80/printf.c: updated comment
8293         * support/regression/tests/bug1057979.c: test all ports now
8294         * support/regression/tests/bug1065458.c: file added
8295
8296 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8297
8298         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
8299           *_start and *_end symbols for static functions
8300
8301 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
8302
8303         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
8304           and search crt0.o in all library paths,
8305           (setIncludePath): proper handling of --nostdinc,
8306           (setLibPath): proper handling of --nostdlib
8307         * support/regression/Makefile,
8308         * support/regression/ports/ds390/spec.mk,
8309         * support/regression/ports/gbz80/spec.mk,
8310         * support/regression/ports/hc08/spec.mk,
8311         * support/regression/ports/mcs51/spec.mk,
8312         * support/regression/ports/mcs51-large/spec.mk,
8313         * support/regression/ports/mcs51-stack-auto/spec.mk,
8314         * support/regression/ports/z80/spec.mk: use include and lib files from
8315           built version of sdcc instead of installed version
8316         * doc/sdccman.lyx: fixed typo in --nostdinc
8317
8318 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
8319
8320         * src/pic/pcode.c,
8321         * src/pic/device.c,
8322         * src/pic/ralloc.c,
8323         * src/pic/gen.c : added support to generate code for struct bit fields.
8324
8325 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
8326
8327         * as/xa51/xa_version.h,
8328         * device/include/errno.h,
8329         * device/include/regc515c.h,
8330         * device/lib/_itoa.c,
8331         * device/lib/_ltoa.c,
8332         * device/lib/ser_ir_cts_rts.c,
8333         * sim/ucsim/xa.src/glob.cc,
8334         * sim/ucsim/xa.src/inst_gen.cc,
8335         * sim/ucsim/xa.src/xa_bit.cc,
8336         * sim/ucsim/xa.src/xa_sfr.cc,
8337         * sim/ucsim/z80.src/inst_dd.cc,
8338         * sim/ucsim/z80.src/inst_fdcb.cc,
8339         * support/scripts/keil2sdcc.pl,
8340         * src/pic16/pic16.dsp,
8341         * src/pic16/pic16a.dsp: corrected cvs line endings
8342         * device/lib/printf_large.c: fixed bug 1057979
8343         * src/pic16/gen.c: fixed non-C standard code
8344         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
8345         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
8346         * support/regression/ports/mcs51/support.c: reload T1 asap
8347         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
8348           pdata use and clear idata startup behaviour
8349         * support/regression/tests/bug1057979.c: added
8350
8351 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
8352
8353         * device/examples/ds390/ow390/ad26.h,
8354         * device/examples/ds390/ow390/cnt1d.h,
8355         * device/examples/ds390/ow390/crcutil.c,
8356         * device/examples/ds390/ow390/ownet.h,
8357         * device/examples/ds390/ow390/owsesu.c,
8358         * device/examples/ds390/ow390/swt12.h,
8359         * device/examples/ds390/ow390/swtoper.c,
8360         * device/examples/ds390/ow390/temp10.h,
8361         * device/examples/ds390/ow390/thermodl.c,
8362         * device/examples/ds390/tinitalk/tinitalk.dsp,
8363         * device/examples/ds390/tinitalk/tinitalk.dsw,
8364         * device/examples/mcs51/clock/hw.h,
8365         * device/examples/mcs51/simple2/go.bat,
8366         * device/examples/serialcomm/windows/serial.h,
8367         * device/examples/xa51/dummy.c,
8368         * device/examples/xa51/hello.c,
8369         * device/include/80c51xa.h,
8370         * device/include/at89x051.h: corrected cvs line endings
8371
8372 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
8373
8374         * src/pic16/main.c (options): added command line --gstack, to trace
8375         stack over/under flows,
8376         * added pragma 'wparam' to allow passing first byte of function
8377         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
8378         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
8379         call to __gstack_test function and sets up the symbol as extern,
8380         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
8381         * popaop): added call to pic16_testStackOverflow,
8382         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
8383         wparamList list,
8384         * (genCall, genPcall): now all parameters are passed via stack
8385         except in functions that are pass to wparam pragma in which WREG is
8386         used too,
8387         * (genPcall): REENTRANT flag is checked to see if variable prototype
8388         contains reentrant keyword, don't call a non-reentrant function, via
8389         a reentrant function pointer or vice versa, functions are never
8390         passed via WREG,
8391         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
8392         D.Winkler,
8393         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
8394         SIGSEGV when accessing a NULL register stucture,
8395         * (pic16_printGPointerType): modified to handle UPPER modifier for
8396         function initializers, changed prototype of function to simpler one,
8397         * (pic16_printIvalFuncPtr): check to see if function is already
8398         added in externs list,
8399         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
8400         optimized a move from W to SFR with a move to the same register
8401         later after a CALL,
8402         * device/lib/pic16/debug: NEW directory, contains debug features
8403         which are enabled when linking with libdebug.lib, currently command
8404         line option --gstack enables stack pointer tracing for over/under
8405         flow, corresponding sources are in debug/gstack
8406
8407 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
8408
8409         * doc/sdccman.lyx: updated SDCC version,
8410         * (PIC16 port): update list of command line options,
8411         * src/pic16/device.h (structure pic16_options_t): added field gstack
8412         to enable stack overflow tracing on push/pops,
8413         * src/pic16/device.c (statistics structure): added statistics
8414         structure,
8415         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
8416         pic16_dump_int_registers): increase statistics counters for each
8417         * variable which is encountered
8418         * (pic16_dump_usection): emit each .udata variable to its own udata
8419         section,
8420         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
8421         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
8422         parameters via stack, otherwise use old scheme,
8423         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
8424         assembler output file,
8425         * src/pic16/main.c: added command line options --gstack to enable
8426         push/pop tracing for stack overflow,
8427         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
8428         instructions): added size of each instruction,
8429         * (pic16_countInstruction): estimate size of instructions in
8430         the_pFile list, inline assembly blocks are not counted,
8431         * (pic16_FixRegisterBanking): trace previous register usage, when
8432         banksel optimizations is greater than 0, don't emit a redudant
8433         banksel directive,
8434
8435 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
8436
8437         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
8438         * src/pic16/ralloc.c : applied same fix for pic16.
8439         * src/pic/gen.c : tidied it up a little.
8440
8441 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8442
8443         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
8444         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
8445
8446 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8447
8448         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
8449
8450 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8451
8452         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
8453         non-reentrant function __modsint in the interrupt function (thus
8454         corrupting math operations during serial I/O)
8455         * device/lib/ser_ir.c: as above, changed buffersize
8456         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
8457         256.c,d for zeroing
8458         * doc/Makefile: added option -t for rsync
8459
8460 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8461
8462         * src/SDCCast.h (struct ast),
8463         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
8464
8465 2004-10-20 Borut Razem <borut.razem AT siol.net>
8466
8467         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
8468         package
8469
8470 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
8471
8472         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
8473         makefile targets,
8474         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
8475         support functions to replace long sequences of MOVFF's from access
8476         bank registers to stack and vice versa,
8477         * src/pic16/device.h: added new field opt_flags, where optimization
8478         flags can be set to enable certain features,
8479         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
8480         * pBlock, (genFunction, genEndFunction): surroung loop for
8481         saving/loading used registers in stack with PC_INFO pCodes,
8482         INF_LREGS. Code in between can then be optimized by pCode optimizer
8483         to support function calls,
8484         * (genDataPointerSet): fixed bug which loaded float fields in
8485         structures with corrupt data,
8486         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
8487         in a standard way debug info on stderr. Feature used for developing
8488         and debugging only,
8489         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
8490         obsolete chunks of code,
8491         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
8492         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
8493         * pic16/src/pcode.c (pic16_newpCodeInfo,
8494         * (pic16_newpCodeOpLocalRegs),
8495         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
8496         feature,
8497         * (pic16_pCodeConstString): printing of the initial value of a
8498         symbol as a comment is inhibited since parsing was already done by
8499         copyStr and output is corrupt,
8500         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
8501
8502 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8503
8504         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
8505
8506 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
8507
8508         * as/mcs51/lkarea.c: removed old K&R style,
8509           (lnksect): changed check on boundary error,
8510           (lnksect2): changed check on boundary error,
8511           (lnksect2): extend XSTK to end of page if size = 1
8512         * as/mcs51/lkmain.c: removed old K&R style,
8513           (Areas51): create l_IRAM symbol
8514         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
8515         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
8516           model-mcs51-stack-auto, added model-mcs51-xstack-auto
8517         * device/lib/_mullong.c: added version to be compiled with xstack
8518         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
8519         * device/lib/mcs51/crtxclear.asm: clear pdata as well
8520         * device/lib/mcs51/crtxstack.asm: fixed comment
8521         * src/SDCCglue.c: maxInterrupts defaults to 0,
8522           (emitMaps): added pdata,
8523           (createInterruptVect): (re)moved default,
8524           (glue): added pdata,
8525           (glue): moved __start__xstack to XSTK with default size 1
8526         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
8527           and options.float_rent when options.stackAuto is set,
8528           (linkEdit): only write XDATA_NAME if provided on command line
8529         * src/SDCCmem.h,
8530         * src/SDCCmem.c: added pdata
8531         * src/port.h: added pdata_name to PORT
8532         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
8533           (saveRegisters, unsaveRegisters): removed usage of B,
8534           (genMinus): fixed accumulator clash,
8535           (genJumpTab): added comment, this needs another look
8536         * src/mcs51/gen.c: added check for "B in use" paranoia,
8537           added pushB() and popB()
8538         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
8539           chance
8540         * src/avr/main.c,
8541         * src/ds390/main.c,
8542         * src/hc08/main.c,
8543         * src/mcs51/main.c,
8544         * src/pic/main.c,
8545         * src/pic16/main.c,
8546         * src/xa51/main.c,
8547         * src/z80/main.c: (reset_regparms) made void parameter explicit and
8548           added PSEG (PAG,XDATA) or NULL to port specifier
8549         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
8550         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
8551           (_mcs51_genInitStartup): removed __start__xstack equ,
8552           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
8553         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
8554         * src/z80/gen.c (_rleAppend): fixed warnings
8555         * support/regression/tests/zeropad.c: added pdata test
8556         * .version: bumped to 2.4.6
8557
8558 2004-10-17 Borut Razem <borut.razem AT siol.net>
8559
8560         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
8561         as a part of nightly build
8562
8563 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
8564
8565         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
8566         WREG holds the first byte function parameters,
8567         * (aopForSym): take special case for symbols which are in FARSPACE
8568         but in CODESPACE too,
8569         * (assignResultValue): modified to take into account _G.useWreg,
8570         * (genCall): don't use wreg for parameter passing when function is
8571         declared as reentrant, too, added optimization INCF to stack
8572         pointer when stack parameter count is 1,
8573         * (genFunction, genEndFunction): refurnished and fixed to not using
8574         wreg for passing parameters when function has varargs or is
8575         reentrant, fixed bug with symbol name compare for generating
8576         functions in absolute address,
8577         * (pic16_storeForReturn): refurnished,
8578         * (genCmp): began writing a new version of the function, not ready
8579         yet, therefore it is disabled,
8580         * (genAssign): do not read code memory when assigning a function to
8581         a pointer function,
8582         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
8583         array of characters, not pointer,
8584         * (pic16initialComments): in debug mode emit an .ident directive for
8585         the assembler,
8586         * (_process_pragma): emit a new warning type (internal to pic16)
8587         when setting stack to default length, emit a similar warning when
8588         placing a function at absolute address and address is not word aligned
8589         * (_pic16_parseOptions): added 'return TRUE' statement,
8590         * (_pic16_linkEdit): if compiling a source, then add the source's
8591         file object, first in the list of objects to link,
8592
8593 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
8594
8595         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
8596         * src/pic/main.c : removed VC warning.
8597         * src/pic/gen.c : changed comment.
8598
8599 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
8600
8601         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
8602         reference to a deprecated symbol _GPTRREG was causing failure to
8603         link. Thanks G. M. Gallant for the info.
8604
8605 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
8606
8607         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
8608         comments for Bugs item #954788.
8609
8610 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
8611
8612         * src/pic16/device.c (pic16_dump_gsection,
8613         * pic16_groupRegistersInSection): handle symbols declared to be in
8614         access bank differently,
8615         * src/pic16/gen.c (struct _G): added field resDirect,
8616         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
8617         send values read from stack directly to result and don't allocate
8618         temporary values,
8619         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
8620         same registers,
8621         * (pic16_sameRegsOfs): NEW,
8622         * (freeAsmop): if _G.resDirect is set then do not mark registers as
8623         free because they were not allocated from temporary pool,
8624         * pic16_popRegFromString): workaround to fix a problem with
8625         allocating variables twice or never,
8626         * (genGenPointerGet): using PRODL instead of FSR0H,
8627         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
8628         instead of FSR0H,
8629         * (genAssign): take advantage of the _G.resDirect flag,
8630         * (genCast): around line 11844, use mov2f instead of directly
8631         MOVFF'ing between operands to account for literal values,
8632         * src/pic16/genutils.c: some new debug functions for gpsim have been
8633         added,
8634         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
8635         float with integer part only,
8636         * src/pic16/main.c (_process_pragma): handle pragma udata access to
8637         place variables in access bank
8638         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
8639         updated sources to reflect recent changes in gen.c
8640
8641 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
8642
8643         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
8644         sources that searched for headers in installation path, now the
8645         device/include/pic16 is used,
8646         * src/pic16/glue.c (pic16glue),
8647         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
8648         .line directives if not in debug mode, this suppresses assembler's
8649         warnings for ignored directives
8650
8651 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
8652
8653         * src/port.h: made reset_regparms prototype void parameter explicit.
8654         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
8655         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
8656         * doc/sdccman.lyx: documented warning disabling and how to use
8657           printf_large to make it print floats.
8658         * device/include/stdbool.h: NEW
8659         * device/lib/_atof.c,
8660         * device/lib/_divuint.c,
8661         * device/lib/_divulong.c,
8662         * device/lib/expf.c,
8663         * device/lib/printf_large.c,
8664         * device/lib/sincosf.c,
8665         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
8666         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
8667           a completely reentrant lib.
8668
8669 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
8670
8671         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
8672         * device/include/pic16/stdio.h: fixed bug with colon
8673
8674 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
8675
8676         * device/include/pic16/stdio.h,
8677         * device/include/pic16/stdlib.h,
8678         * device/include/pic16/math.h: NEW
8679         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
8680         declared as _naked to reduce overhead
8681         * device/lib/Makefile.in (target port-specific-objects-pic16):
8682         changed * to *.* so to ignore the CVS directory,
8683         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
8684         stacked variables back in stack,
8685         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
8686         corruption
8687
8688 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
8689
8690         * .version: bumped version number to 2.4.5
8691         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
8692         * support/Util/SDCCerr.c (messages structure): added entry for
8693         W_POSSBUG2
8694
8695         Large cumulative patch for pic16 port and libraries.
8696         * device/include/pic16/sdcc-lib.h,
8697         * device/include/pic16/stdarg.h,
8698         * device/include/asm/pic16/features.h,
8699         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
8700         * device/include/pic16/float.h: changes reentrant keyword with
8701         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
8702         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
8703         updated target build-libraries to include objects from gptr,
8704         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
8705         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
8706         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
8707         all function headings,
8708         * src/SDCCmain.c: added global parameter userIncDirsSet,
8709         * (parseCmdLine): when option -I is encountered add directory to
8710         userIncDirsSet too,
8711         * src/version.awk: added space between control and long,
8712         * src/pic16/NOTES: added some notes for the port,
8713         * src/pic16/gen.c: added prototype for mov2fp function,
8714         * (fReturnpic16[]): properly named return value registers,
8715         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
8716         * (aopForSym): added code to handle symbols with onStack flag set,
8717         symbols onStack are allocated PTRSIZE bytes,
8718         * (aopFreeAsmop): handles special case where asmops are stack objects,
8719         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
8720         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
8721         added argument lock to trace flaws in allocating temporary registers
8722         when developing port,
8723         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
8724         * (pic16_popRegFromString): reenabled allocating a direct register
8725         from string,
8726         * (assignResultValue): various beautifications,
8727         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
8728         referenced function argument,
8729         * (genIpush): reenabled to allow stacked arguments, handles only
8730         ic->parmPush iCodes,
8731         * (genCall, genPcall): major changes to allow for variable argument
8732         functions, fixed a bug with falsely restoring stack pointer after
8733         returning from call,
8734         * (genFunction): pending code for critical function,
8735         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
8736         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
8737         * (genNearPointerGet): fixed bug with indirect reading, was always
8738         reading from INDF0
8739         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
8740         pointers,
8741         * (genAddrOf): rewrote code to take address of a stacked function parameter
8742         * (genCast): fixed casting to generic pointer type,
8743         * src/pic16/gen.h: added AOP_STA,
8744         * (struct asmop): added field stk,
8745         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
8746         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
8747         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
8748         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
8749         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
8750         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
8751         generic pointers,
8752         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
8753         and library paths,
8754         * (pic16_port structure): generic pointer size is set to 3,
8755         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
8756         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
8757         compiler warning,
8758         * src/pic16/ralloc.c (allocReg): prevent allocating register when
8759         operand is an iTemp,
8760
8761 2004-09-24 Martin Helmling <mh AT octo-soft.de>
8762
8763         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
8764         * debugger/mcs51/simi.c: addapt new syntax of s51
8765
8766 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
8767
8768         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
8769         * src/pic16/pcode.c: commented out some calls to free() in order to
8770         fix bug #989576,
8771
8772 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8773
8774         * src/SDCCicode.h,
8775         * src/SDCCicode.c (isiCodeInFunctionCall),
8776         * src/avr/ralloc.c (selectSpil),
8777         * src/pic/ralloc.c (selectSpil),
8778         * src/pic16/ralloc.c (selectSpil),
8779         * src/ds390/ralloc.c (selectSpil),
8780         * src/hc08/ralloc.c (selectSpil),
8781         * src/xa51/ralloc.c (selectSpil),
8782         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
8783         stack in the middle of a function call sequence (fixes bug #1020268)
8784         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
8785         costs associated with the minimum switch case.
8786
8787 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8788
8789         * src/SDCC.lex: fixed bug #1030549
8790
8791 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8792
8793         * src/SDCCcse.h (struct cseDef),
8794         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
8795         over a function call if the CSE is derived from a symbol whose
8796         address has been taken (fixes bug #1029883)
8797         * support/regression/tests/bug-1029883: a new regression test for
8798         this bug
8799
8800 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8801
8802         * src/hc08/gen.c (emitinline): fixed bug #1029778
8803         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
8804         to a cast object is no longer a syntax error ("fixes" bug #1030006,
8805         and starts toward RFE #905167)
8806
8807 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
8808
8809         * src/pic16/gen.c (mov2f): New function to move an operand to
8810         another without considering if it is a literal or a register,
8811         * (pic16_sameRegs): don't check if they are both AOP_REG,
8812         * (AccRsh): removed andmask=0 lines,
8813         * (genLeftShift): duplicated to be improved in future versions,
8814         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
8815         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
8816         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
8817         * (pic16initMnemonics): added initialization for POC_INFSNZW,
8818         * (insertBankSwitch): fixed inserting banksel directives algorithm
8819         for instructions that follow a skip instruction, this fixes a report
8820         for broken subtraction code generation,
8821         * src/pic16/ralloc.c (deassignLRs): do not free register if current
8822         iCode is a left op, just in case result and right share the same
8823         registers
8824
8825 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8826
8827         * src/hc08/main.c,
8828         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
8829         preservation of HX
8830         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
8831         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
8832         on 2004-09-12; it was buggy
8833
8834 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
8835
8836         * src/SDCCsymt.h: removed RESULT_CHECK
8837         * src/SDCCast.c,
8838         * src/SDCCglue.c,
8839         * src/SDCCval.c,
8840         * src/pic/glue.c,
8841         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
8842
8843 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
8844
8845         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
8846         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
8847         configuration values no more rejected by compiler, they are assigned
8848         to configuration registers with a warning message instead,
8849         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
8850         the for-loop so last conf register is emitted too,
8851         * (_pic16_initPaths): link library libsdcc.lib by default,
8852         * (_hasNativeMulFor): modified test for multiplication according to
8853         Raphael Neider's remarks. Integer multiplication is also done with
8854         support functions,
8855         * device/include/pic16/pic18fregs.h: corrected type error in while
8856         testing and including 18f6720 header file
8857
8858 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
8859
8860         * src/pic16/device.h (pic16_options): removed field use_crt,
8861         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
8862         until an optimization to handle single bits is added,
8863         * (pic16_loadFSR0): moved before genUnpackBits,
8864         * (genAnd): some white lines removed,
8865         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
8866         leave_reset flags in pic16_options when using crt modules,
8867
8868 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
8869
8870         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
8871           for bugs 898889 & 979599. Also used some safer print instructions.
8872
8873 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
8874
8875         * src/pic16/device.h (pic16_options_t): added field use_crt,
8876         crt_name, no_crt,
8877         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
8878         catch a probable future bug,
8879         * src/pic16/gen.c: aopIdx function commented out,
8880         * (genAssign): commented out old code which used aopIdx,
8881         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
8882         code, added if conditionals to take into account the --use-crt
8883         command line options,
8884         * src/pic16/main.c (pic16_optionsTable): added new command line
8885         options, --use-crt= and --no-crt,
8886         * (_pic16_linkEdit): now the proper crt object is added in the
8887         linker command line except than when --no-crt is specified,
8888         * src/pic16/pcode.c,
8889         * src/pic16/pcode.h: added some structures and functions for a new
8890         optimization scheme to compansate for instruction overhead between
8891         same iCodes, this scheme is currently under development and is not
8892         working in any way,
8893         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
8894         to && operator,
8895         * device/lib/pic16/startup/crt0i.c,
8896         * device/lib/pic16/startup/crt0iz.c: added global char variable
8897         __uflags to force the generation of an idata section
8898
8899 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
8900
8901         * doc/Makefile,
8902         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
8903         * doc/sdccman.lyx: updated sdcc version to 2.4.4
8904
8905 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8906
8907         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
8908         Frieder) and clarified the default code optimization mode
8909
8910 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8911
8912         * src/SDCC.lex (doPragma, process_pragma),
8913         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
8914         "opt_code_size", and "opt_code_balanced"
8915         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
8916         regrouped options by category, added support for category headers
8917         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
8918         and "--opt-code-size"
8919         * doc/sdccman.lyx: documented these new options and pragmas
8920         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
8921         preference into account
8922
8923 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
8924
8925         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
8926           geniCodePreDec): Fixed bug 904237 by generating a warning
8927         * src/SDCCerr.h,
8928         * src/SDCCerr.c: added warning W_SIZEOF_VOID
8929
8930 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
8931
8932         * src/pic/device.c : When no max ram set validate full memory range.
8933         * src/pic/pcode.c,
8934         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
8935
8936 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
8937
8938         * device/lib/_gptrget.c,
8939         * device/lib/_gptrput.c: updated comment
8940         * device/lib/calloc.c,
8941         * device/lib/free.c,
8942         * device/lib/malloc.c,
8943         * device/lib/realloc.c: added LGPL, made them reentrant-safe
8944         * src/SDCCcse.c (cseBBlock),
8945         * src/SDCCicode.c (printOperand, geniCodeArray),
8946         * src/SDCCicode.h (struct operand): fixed bug 868103
8947         * support/regression/tests/bug-868103.c: added
8948         * src/SDCCast.c (searchLitOp),
8949         * src/SDCCcse.h (struct cseDef),
8950         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
8951         * src/SDCCicode.h (struct operand),
8952         * src/SDCCsymt.h (struct sym_link),
8953         * src/avr/gen.c (hasInc),
8954         * src/ds390/gen.c (hasInc),
8955         * src/hc08/gen.c (genPlusIncr, hasInc),
8956         * src/mcs51/gen.c (hasInc),
8957         * src/pic16/glue.c (pic16_printIvalChar),
8958         * src/pic16/ralloc.c (regWithIdx),
8959         * src/xa51/gen.c (hasInc) : removed warnings
8960         * src/SDCCast.c (createBlock): added comment ???
8961         * src/hc08/ralloc.c: updated comments
8962
8963 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8964
8965         * doc/sdccman.lyx: updated section on switch statements, added
8966         section about semaphore locking
8967         * doc/Makefile: added option -info for latex2html
8968         * device/lib/_gptrget.c,
8969         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
8970
8971 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
8972
8973         * src/pic/device.h,
8974         * src/pic/device.c,
8975         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
8976          maxram is less than 0x100.
8977
8978 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
8979
8980         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
8981
8982 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8983
8984         * src/port.h,
8985         * src/mcs51/main.c,
8986         * src/ds390/main.c,
8987         * src/z80/main.c,
8988         * src/hc08/main.c,
8989         * src/pic/main.c,
8990         * src/pic16/main.c,
8991         * src/avr/main.c,
8992         * src/xa51/main.c
8993         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
8994         a jump table is the best form for a switch statement, including
8995         automatic insertion of missing cases to make the case range
8996         continuous. Developed in collaboration with Frieder Ferlemann.
8997
8998 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8999
9000         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
9001         accumulator result if it needs sign extension
9002
9003 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9004
9005         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
9006
9007 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9008
9009         * device/lib/gbz80/printf.c,
9010         * device/lib/z80/printf.c: removed define for NULL
9011
9012 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9013
9014         * as/xa51/xa_link.c,
9015         * device/examples/ds390/ow390/ad26.c,
9016         * device/examples/ds390/ow390/cnt1d.c,
9017         * device/examples/ds390/ow390/counter.c,
9018         * device/examples/ds390/ow390/ds2480.h,
9019         * device/examples/ds390/ow390/ds2480ut.c,
9020         * device/examples/ds390/ow390/findtype.c,
9021         * device/examples/ds390/ow390/gethumd.c,
9022         * device/examples/ds390/ow390/owllu.c,
9023         * device/examples/ds390/ow390/ownetu.c,
9024         * device/examples/ds390/ow390/swt12.c,
9025         * device/examples/ds390/ow390/swtloop.c,
9026         * device/examples/ds390/ow390/temp.c,
9027         * device/examples/ds390/ow390/temp10.c,
9028         * device/examples/ds390/ow390/thermo21.c,
9029         * device/examples/ds390/ow390/tinilnk.c,
9030         * device/examples/ds390/ow390/tstfind.c,
9031         * device/examples/serialcomm/windows/serial.cpp,
9032         * device/examples/serialcomm/windows/test_serialcomm.cpp,
9033         * device/include/reg51.h: fixed line endings for cvs
9034
9035 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9036
9037         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
9038         packRegsForAccUse, packRegisters): new accumulator register
9039         packing algorithm
9040         * support/regression/ports/hc08/support.c (_putchar): suppress
9041         warning of unused variable
9042         * src/SDCCicode.c: added SWAP entry to codeTable
9043
9044 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
9045
9046         * device/lib/sprintf.c: forgot to add this file before previous commit
9047
9048 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
9049
9050         * src/pic16/gen.c (genPackBits): added operand right in function
9051         parameters, load result directly if p_type is POINTER (that is
9052         called by genNearPointerSet)
9053         * (genUnPackBits): added operand left in function parameters,
9054         * (genNearPointerGet, genNearPointerSet): prevent the loading of
9055         FSR0 if accessing bitfields,
9056
9057 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
9058
9059         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
9060           _print_format; updated printf, sprintf, vsprintf
9061         * device/include/asm/default/features.h: corrected comment/define
9062         * device/lib/Makefile.in: added sprintf.c
9063         * device/lib/libsdcc.lib: added sprintf module
9064         * device/lib/printf_large.c,
9065         * device/lib/vprintf.c,
9066         * device/lib/sprintf.c: totally refactored printf_large and vprintf
9067           into these 3 files
9068         * support/regression/Makefile: changed ALL_PORTS into a usefull default
9069         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
9070         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
9071           hc08 test
9072         * support/regression/tests/zeropad.c: define idata as data for hc08
9073
9074 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9075
9076         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
9077         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
9078         labels are referenced at least once (even if a reference is not found)
9079         * src/hc08/gen.c (emitcode): set isComment flag for comments
9080         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
9081         loads), rules 6a..6b (optimize jumps to return)
9082
9083 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9084
9085         * device/lib/acosf.c (acosf),
9086         * device/lib/asinf.c (asinf),
9087         * device/lib/atanf.c (atanf),
9088         * device/lib/ceilf.c (ceilf),
9089         * device/lib/cosf.c (cosf),
9090         * device/lib/coshf.c (coshf),
9091         * device/lib/cotf.c (cotf),
9092         * device/lib/fabsf.c (fabsf),
9093         * device/lib/floorf.c (floorf),
9094         * device/lib/log10f.c (log10f),
9095         * device/lib/logf.c (logf),
9096         * device/lib/sinf.c (sinf),
9097         * device/lib/sinhf.c (sinhf),
9098         * device/lib/sqrtf.c (sqrtf),
9099         * device/lib/tanf.c (tanf),
9100         * device/lib/tanhf.c (tanhf),
9101         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
9102         replaced all instances of "reentrant" in the library functions
9103         defined in math.h with this macro.
9104         * support/regression/tests/float_trans.c: reenabled test for hc08
9105
9106 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
9107
9108         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
9109         erroneously deleted
9110
9111 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9112
9113         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
9114         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
9115         multi-byte volatile operands are used
9116         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
9117         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
9118         initialization to area GSINIT0 so that it would always precede
9119         any static initializers in GSINIT
9120         * support/regression/tests/zeropad.c: fixed idata define for hc08
9121         * support/regression/tests/bug-927659.c,
9122         * support/regression/tests/float_trans.c: disabled tests for hc08
9123         pending missing library routines
9124         * .version: increased version number to 2.4.4 - hc08 port now passes
9125         regression tests
9126
9127
9128 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
9129
9130         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
9131         * Makefile.common.in,
9132         * as/Makefile,
9133         * as/hc08/Makefile.in,
9134         * as/mcs51/Makefile.in,
9135         * as/z80/Makefile.in,
9136         * debugger/mcs51/Makefile.in,
9137         * device/include/Makefile.in,
9138         * device/lib/Makefile.in,
9139         * doc/Makefile,
9140         * link/Makefile,
9141         * link/z80/Makefile.in,
9142         * packihx/Makefile.in,
9143         * sim/ucsim/main_in.mk,
9144         * sim/ucsim/avr.src/Makefile.in,
9145         * sim/ucsim/doc/Makefile.in,
9146         * sim/ucsim/gui.src/serio.src/Makefile.in,
9147         * sim/ucsim/hc08.src/Makefile.in,
9148         * sim/ucsim/s51.src/Makefile.in,
9149         * sim/ucsim/xa.src/Makefile.in,
9150         * sim/ucsim/z80.src/Makefile.in,
9151         * src/Makefile.in,
9152         * support/cpp2/Makefile.in,
9153         * support/librarian/Makefile,
9154         * support/makebin/Makefile: added DESTDIR to the install path proposed
9155         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
9156         * doc/sdccman.lyx: added DESTDIR documentation
9157
9158 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
9159
9160         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
9161         instruction for interrupt handlers, use fast returns when returning
9162         from high priority interrupts
9163
9164 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9165
9166         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
9167         code generation
9168         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
9169         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
9170         bugs, ported much of Bernhard's code from mcs51
9171         * src/mcs51/gen.c (genSend),
9172         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
9173         than one when calling a reentrant function
9174         * device/lib/_mullong.c: defined an alternate struct layout for big
9175         endian ports (hc08)
9176
9177 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9178
9179         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
9180         test
9181
9182 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9183
9184         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
9185         are sane and complete before asking the port its prefered parameter
9186         passing method (fixes bug #1017633)
9187         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
9188         and _ret3
9189
9190 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9191
9192         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
9193         problem in bitfields >= 8 bits.
9194
9195 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9196
9197         * src/SDCCsymt.c: undid changes that were not meant to be committed
9198
9199 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9200
9201         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
9202
9203 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9204
9205         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
9206           copied and wrong bit got inverted
9207
9208 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9209
9210         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
9211         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
9212         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
9213         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
9214         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
9215         assignments to bitfields at known addresses
9216         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
9217         reads from bitfields at known addresses
9218         * src/hc08/ralloc.c (packRegisters),
9219         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
9220         genhc08Code): optimize pointer get values used as conditionals
9221         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
9222         and branch
9223
9224 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9225
9226         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
9227         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
9228         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
9229         as conditionals
9230
9231 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9232
9233         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
9234
9235 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9236
9237         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
9238         related problems
9239
9240 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
9241
9242         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
9243
9244 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9245
9246         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
9247         mcs51 port
9248
9249 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
9250
9251         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
9252
9253 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9254
9255         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
9256         cases use more compact code.
9257
9258 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
9259
9260         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
9261
9262 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9263
9264         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
9265
9266 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9267
9268         * src/SDCCsymt.h,
9269         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
9270         parameter of changePointer() from symbol* to sym_link*
9271         * src/SDCCast.c (decorateType): call changePointer() for CAST op
9272         * src/SDCCsymt.c (compareType): void* type is castable to other
9273         pointers, but not necesarily an exact match.
9274         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
9275         is no longer blindly treated as an exact match.
9276         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
9277
9278 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
9279
9280         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
9281
9282 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
9283
9284         * src/pic/gen.c,
9285         * src/pic/pcode.c,
9286         * src/pic/ralloc.h,
9287         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
9288
9289 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
9290
9291         * src/pic/device.c,
9292         * src/pic/device.h,
9293         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
9294
9295 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9296
9297         * src/mcs51/gen.c (emitcode): fixed bug #992819
9298
9299 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
9300
9301         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
9302           there's no need to make it worse
9303
9304 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9305
9306         * src/mcs51/ralloc.c (deassignLR),
9307         * src/ds390/ralloc.c (deassignLR),
9308         * src/hc08/ralloc.c (deassignLR),
9309         * src/z80/ralloc.c (deassignLR),
9310         * src/pic/ralloc.c (deassignLR),
9311         * src/pic16/ralloc.c (deassignLR),
9312         * src/avr/ralloc.c (deassignLR),
9313         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
9314         rlivePoint): fixed another part of bug #971834
9315
9316 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9317
9318         * src/z80/main.c: enabled "critical" keyword
9319         * src/z80/mappings.i,
9320         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
9321         functions (fixes bug #979646)
9322         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
9323
9324 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9325
9326         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
9327           such as c:\mydir.
9328
9329 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
9330
9331         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
9332           doesn't disable too much optimizations
9333
9334 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
9335
9336         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
9337
9338 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
9339
9340         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
9341
9342 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
9343
9344         * src/pic/gen.c tidied up tabs
9345         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
9346         * src/pic/main.c tidied up tabs
9347         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
9348         * src/pic/pcoderegs.c tidied up tabs
9349         * src/pic/ralloc.c tidied up tabs
9350
9351 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
9352
9353         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
9354         to S_FIXED for pic16 port and when symbol is not in level 0,
9355         allocate for S_REGISTER storage class and pic16 port, too,
9356         * src/pic16/device.h: prototype for checkSym,
9357         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
9358         * (pic16_assignConfigWordValue): test the value and the mask to
9359         validate that the value is suitable for the configuration word,
9360         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
9361         collect extern declared symbols, don't emit symbol twice, check
9362         first if symbol is in publics set first,
9363         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
9364         * added command line '--fstack' which enables an experimental
9365         feature for stack access, too buggy to be used yet...
9366         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
9367         * (pic16_allocDirReg): when register has storage class S_REGISTER
9368         allocate in pic16_dynAccessRegs,
9369         * device/include/pic16/pic18f????.h: modified configuration word
9370         naming convention, words started as CONFIG0H but should be CONFIG1H
9371
9372 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
9373
9374         * device/include/mcs51reg.h: fixed bug 970993
9375
9376 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
9377
9378         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
9379         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
9380         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
9381         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
9382         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
9383         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
9384           error/warning numbers,
9385           added function setWarningDisabled()
9386         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
9387         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
9388           _memcmp.c _memmove.c calloc.c realloc.c free.c
9389         * support/regression/tests/malloc.c: added tests for new functionality
9390         * support/regression/tests/zeropad.c: added tests for truncated initializers
9391           and initialized char arrays starting with '\x0'
9392         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
9393
9394 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
9395
9396         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
9397
9398 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9399
9400         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
9401         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
9402         peephole 177.e. Thanks to anonymous
9403
9404 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
9405
9406         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
9407         function isn't used in the source but referenced as a
9408         variable initializer then declare it as extern in .asm file
9409
9410 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
9411
9412         * .version: increased version number to 2.4.3
9413
9414         Adding version extension according to ChangeLog CVS revision
9415         * src/Makefile.in (target all): added dependency 'version.h'
9416         * (rule version.h): added rule to create version.h from ChangeLog,
9417         * (rule dep): added dependency version.h,
9418         * src/version.awk: AWK script to create version.h
9419         * src/SDCCdwarf2.c (dwWriteModule),
9420         * src/SDCCglue.c (initialComments),
9421         * src/SDCCmain.c (printVersionInfo): modified to write after
9422         version string the version extension number,
9423         * src/SDCCutil.c: included "version.h"
9424         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
9425         number,
9426         * src/SDCCutil.h: added prototype for getBuildNumber
9427
9428         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
9429         includeDirsSet, too,
9430         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
9431         const char [] is found in function prototype...
9432
9433         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
9434         moving to WREG with source is already in WREG,
9435         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
9436         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
9437         * (aopForSym): stack'ed symbols are partially supported, added
9438         if-clause to support symbols in FARSPACE,
9439         * (sameRegs): added test for AOP_ACC to see if registers are same,
9440         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
9441         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
9442         * (pic16_popRegFromString): will not allocate a new register if it
9443         doesn't find one by name, bug may have introduced...
9444         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
9445         * (genIpush): revived to use pic16 port's stack,
9446         * (genAddrOf): added incomplete case for stack'ed operand,
9447         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
9448         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
9449         can handle multibyte operands,
9450         * src/pic16/glue.c (pic16_printIval*): some debug info added,
9451         * (pic16initialComments): added message for MPLAB compatibility
9452         mode enabled,
9453         * src/pic16/main.h: prototype for pic16_mplab_comp,
9454         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
9455         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
9456         * (_pic16_linkEdit): NEW, handles link stage, transferred here
9457         because of increased complexity of procedure,
9458         * (_process_pragma): stack pragma changed to format 'stack pos len',
9459         emit symbol '_stack_end' to conform with gplink,
9460         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
9461         to search for register,
9462         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
9463         PO_GPR_REGISTER,
9464         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
9465         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
9466         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
9467         case for PO_GPR_REGISTER,
9468         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
9469         dies, the new era is ahead !...
9470         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
9471         pic16_dynInternalRegs,
9472         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
9473         * (pic16_allocDirReg): minor optimizations and bug fixes,
9474         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
9475
9476         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
9477         load stack and frame pointer with address of 'stack_end' symbol
9478
9479 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
9480
9481         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
9482         without source code but only variable initializers
9483
9484 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
9485
9486         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
9487         external are not declared as extern to reduce overhead while linking
9488
9489 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
9490
9491         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
9492
9493 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
9494
9495         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
9496           Yee Keat for the patch
9497         * src/SDCCast.c (decorateType): fixed bug #979599
9498         * src/ds390/gen.h: removed local fReturnSizeDS390
9499         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
9500         * src/ds390/gen.c (genAnd, genOr, genXor),
9501         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
9502
9503 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
9504
9505         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
9506         add relFilesSet to $3, manipulate $2 to handle linking of object
9507         files without source files in command line,
9508         * device/include/pic16 (all headers): added ID location macros,
9509         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
9510         entries for ID location bytes,
9511         * (pic16_assignIdByteValue): NEW,
9512         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
9513         added field dumpcalltree to pic16_options_t,
9514         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
9515         is used instead of pic16_Gstack_base_addr, check if (ifx) before
9516         emitting rFalseIfx label after check_carry label,
9517         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
9518         pic16_emitDIRegs), NEW
9519         * (pic16glue): dump .calltree file when option --calltree found,
9520         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
9521         * (_pic16_genAssemblerPreamble): emit ID locations after
9522         configuration registers,
9523         * (pic16_linkCmd): modifications of the link command,
9524         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
9525         * (pic16_pCodeInitRegisters): don't init stack registers,
9526         * (pic16_findPrevInstruction): fixed bug,
9527         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
9528         bug with immediate registers,
9529         * (buildCallTree): traces stack push and pop,
9530         * (pct2): dump also stack usage for each function,
9531         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
9532         * (pic16_allocDirReg): various modifications,
9533         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
9534         fixed to 1,
9535
9536 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
9537
9538         * src/pic16/pcode.c: removed buggy double colon
9539
9540 2004-07-01 Borut Razem <borut.razem AT siol.net>
9541
9542         * support/scripts/sdcc.nsi: added include/pic16 to setup
9543
9544 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
9545
9546         * device/lib/Makefile.in: fixed bug in target objects-pic16,
9547         * device/lib/pic16/Makefile: prefixed with dash (-) command under
9548         target 'clean',
9549         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
9550         specific command line arguments. Also added sample lkr script
9551         for placing a variable at a specific memory bank.
9552         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
9553         at a specific memory bank,
9554         * (pic16_dump_isection): fixed bug which caused string literals to
9555         be omitted when dumping idata section,
9556         * (pic16_groupRegistersInSection): added code to handle registers
9557         in specific memory banks,
9558         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
9559         public, all references are renamed too,
9560         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
9561         AOP_DPTR2,
9562         * (pic16_storeForReturn): added case to handle when dest is WREG,
9563         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
9564         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
9565         pic16_rel_udata, check to see if that register is marked as being
9566         a member of a specific memory bank,
9567         * (pic16_printIvalCharPtr): added code to add string literals either
9568         to code or the idata sections,
9569         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
9570         also accept the 'udata' pragma,
9571         * src/pic16/main.h: new structure types sectName and sectSym
9572         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
9573         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
9574         * (pic16_findPrevInstruction): fixed, it returned nothing,
9575         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
9576         instruction combinations,
9577         * (pic16_FixRegisterBanking): heavily reorganised,
9578         * (pic16_AnalyzeBanking): if generating banksel directives is
9579         disabled, then don't call FixRegisterBanking at all,
9580         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
9581         completely removed,
9582         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
9583
9584 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
9585
9586         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
9587         Phuah Yee Keat <yk.phuah AT nestac.com>
9588
9589 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
9590
9591         * src/pic16/glue.c (pic16createInterruptVect): function now emits
9592         correctly the IVT even if it is relocated to some other location
9593
9594 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
9595
9596         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
9597         * device/include/pic16/pic18f2220.h: NEW,
9598         * device/lib/pic16/libdev/pic18f2220.c: NEW,
9599         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
9600         * src/pic16/device.c (struct Pics16): added info for 18f2220,
9601         * src/pic16/device.h (struct pic16_options): added ivt_loc and
9602         nodefaultlibs, ivt_loc is the location of the interrupt vector
9603         table, and nodefaultlibs signs that default libraries should not be
9604         linked in link stage,
9605         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
9606         according to --ivt-loc argument,
9607         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
9608         when pragma stack is found,
9609
9610 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9611
9612         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
9613         256 (range check), 257 (do while), 258.a-f (bit banging
9614         f.e. on 3-wire SPI bus)
9615
9616 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9617
9618         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
9619         variables used exclusively within a loop
9620
9621 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
9622
9623         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
9624
9625 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9626
9627         * src/SDCClrange.c (computeClash): fixed bug #971834
9628
9629 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9630
9631         * src/mcs51/gen.c (genCmp): fixed bug #975903
9632         * src/hc08/gen.c (operandsEqu),
9633         * src/ds390/gen.c (operandsEqu),
9634         * src/z80/gen.c (operandsEqu),
9635         * src/pic/gen.c (operandsEqu),
9636         * src/pic16/gen.c (operandsEqu),
9637         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
9638         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
9639
9640 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9641
9642         * src/SDCCcse.c (cseBBlock): fixed bug #966963
9643
9644 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
9645
9646         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
9647         default case in switch statement,
9648         * glue.c (pic16_initPointer): expr is initialised via decoarteType
9649         to eliminate problem with initialisation of pointers, but problem
9650         still exists,
9651         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
9652         * (emitStaticSegment): removed various lines emitting debug info,
9653         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
9654         added processor registers for utilizing EEPROM,
9655         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
9656         configurable and set 8
9657
9658 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
9659
9660         * .version: increased version number to 2.4.2,
9661
9662         Cumulative patch for pic16 port
9663         * src/pic16/device.c: changed scheme to dump initial values for
9664         variables in idata segment, all print_idata* functions were removed,
9665         now the pic16_printIval* will be called,
9666         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
9667         * _pic16_printPointerType, pic16_printPointerType,
9668         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
9669         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
9670         NEW, similar to the respective functions in SDCCglue.c,
9671         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
9672         way, emitting hex bytes,
9673         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
9674
9675 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9676
9677         * src/avr/ralloc.c (serialRegAssign),
9678         * src/xa51/ralloc.c (serialRegAssign),
9679         * src/pic/ralloc.c (serialRegAssign),
9680         * src/pic16/ralloc.c (serialRegAssign),
9681         * src/hc08/ralloc.c (serialRegAssign),
9682         * src/z80/ralloc.c (serialRegAssign),
9683         * src/ds390/ralloc.c (serialRegAssign),
9684         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
9685
9686 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9687
9688         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
9689         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
9690
9691 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
9692
9693         Cumulative patch for pic16 port:
9694         * src/pic16/device.h (typedef PIC16_device) modified fields for
9695         defining microcontrollers,
9696         * src/pic16/device.c: added new info for all devices in Pics16 array,
9697         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
9698         to be optimised out by the pCode optimiser,
9699         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
9700         specially, bug reported by G.M. Gallant,
9701         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
9702         as force'd so that cannot be optimised out by pCode optimiser,
9703         * src/pic16/pcode.c,
9704         * src/pic16/pcodepeeph.c,
9705         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
9706         they are disabled by default, but can be enabled explicit with
9707         command argument --denable-peeps, for testing,
9708         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
9709         --pomit-ivt in COMPILE_FLAGS
9710
9711 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
9712
9713         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
9714           compilation on MSVC
9715
9716 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
9717
9718         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
9719
9720 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9721
9722         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
9723         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
9724
9725 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
9726
9727         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
9728         would only assign 0x300001 register.
9729
9730 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
9731
9732         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
9733         in COMPILE_FLAGS. Thanks to G. Gallant for report.
9734
9735 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9736
9737         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
9738         for ds80c400
9739         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
9740         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
9741         added peephole 254 (left shift), 255 (jump table)
9742
9743 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
9744
9745         * device/lib/Makefile.in: removed comment line with model-pic16,
9746         * (target port-specific-objects-pic16): the libraries and objects
9747         are copied to the build directory form the device/lib/pic16/bin
9748         directory
9749
9750         Cumulative patch concerning pic16 port:
9751         * library directory has been re-organized,
9752         * added support for PIC18F1220,
9753         * added headers and library sources for chips 18f1220,18f6520,
9754         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
9755
9756         * configuration registers setting has changed, now each supported
9757         device has a complete description of the registers it uses,
9758         * all initialisations are moved to idata sections, these section
9759         can be absolute or relocatable,
9760         * fixed initialisation of codespace variables,
9761         * fixed warning about PCLATU and gpsim,
9762         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
9763         * (genAssign): use table reads when assigning from variables in codespace,
9764         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
9765         char/int variables placed in codespace,
9766         * (pic16_emitConfigRegs): NEW, emits a list with configuration
9767         registers set in .asm file, no need for --pomit-config-words anymore,
9768         * (pic16glue): some 8051 legacy segments are commented out
9769         (to be removed completely),
9770         * added support for alternative assembler and linker with --asm=
9771         and --link= command line arguments,
9772         * peepholes are disabled automatically in the port, no need to
9773         specify on command line,
9774         * port supports natively char/int/long multiplication, but converts
9775         all divisions to support functions,
9776         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
9777         to the file set in variable $2,
9778         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
9779         strings in ASCII format and not in hex,
9780         * ralloc.c (serialRegAssign): added a triplet of conditional calls
9781         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
9782         allocate proper register if iCodes aren't temporary,
9783
9784 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
9785
9786         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
9787
9788 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
9789
9790         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
9791         is commented out
9792
9793 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9794
9795         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
9796         computed address is reused
9797         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
9798         multi-byte bitfields
9799
9800 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
9801
9802         * src/z80/gen.c: (genArrayInit): must check for pointers too
9803
9804 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
9805
9806         * support/regression/tests/zeropad.c: never meant to commit the
9807           nestedstruct test: removed, added check for GCC version
9808
9809 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
9810
9811         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
9812         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
9813         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
9814           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
9815           bugs 928906 and 954082 half-empty initializers
9816         * src/SDCCsymt.h,
9817         * src/SDCCsymt.c (getAllocSize): added for above fix
9818         * src/z80/gen.c (genArrayInit): fixed bug 741044
9819         * support/regression/tests/zeropad.c: added tests
9820
9821 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
9822
9823         * src/pic16/device.c (pic16_dump_section): corrected bug which
9824         caused some symbols of the libraries to be misplaced
9825
9826 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
9827
9828         * src/pic16/glue.c,
9829         * src/pic16/ralloc.h,
9830         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
9831         to fix conflict with pic port
9832
9833 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
9834
9835         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
9836         externs configuration variables,
9837         * src/pic16/ralloc.h,
9838         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
9839         prototype in header, commented out some debug messages
9840
9841 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
9842
9843         * src/pic16/glue.c,
9844         * src/pic16/main.c,
9845         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
9846         for gpasm COFF object generation. Thanks to D. Hawkins for
9847         his patch info
9848
9849 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9850
9851         * src/ds390/main.c,
9852         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
9853         Brock for spotting this)
9854         * src/ds390/gen.c (genEndFunction),
9855         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
9856         interrupt handler and critical. Disable push/pop optimizations when
9857         peephole optimizations disabled.
9858
9859 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
9860
9861         Updated pic16 library sources and headers.
9862         * device/lib/pic16/pic18f*/ ,
9863         * device/include/pic16/*.h: modified to handle structured SFR
9864         definitions
9865
9866 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
9867
9868         * src/port.h (PORT structure): added hook initPaths, now each
9869         port can declare its own default search paths,
9870         which can been seen with the --print-search-dirs option,
9871         see pic16 port for example,
9872         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
9873         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
9874         * (doPrintSearchDirs): NEW, replaces in a central manner the
9875         printing of search dirs which was split in set*Paths functions,
9876         * (main): added call to port->initPaths and doPrintSearchDirs,
9877         * src/avr/main.c,
9878         * src/ds390/main.c,
9879         * src/hc08/main.c,
9880         * src/izt/i186.c,
9881         * src/izt/tlcs900h.c,
9882         * src/mcs51/main.c,
9883         * src/pic/main.c,
9884         * src/pic16/main.c: modified port structures to reflect addition of
9885         initPaths hook,
9886
9887         * src/pic16/device.c (regCompare): registers are finally sorted by name,
9888         * (pic16_dump_section): for registers in same address reserve memory once,
9889         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
9890         to no_banksel,
9891         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
9892         result is greater in size than right or left,
9893         * (pic16_genUMult8X8_8): there are some cases where the result can
9894         be 16 bits size, so handle these,
9895         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
9896         * (pic16_outBitC): modified to emit pcodes,
9897         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
9898         or not,
9899         * (genDivOneByte): implemented algorithm to divide 8-bits,
9900         * (genCmp): uncommented goto, but issues still exist,
9901         * (genAnd): fixed a bug with variables >8bits,
9902         * (genPackBits): optimization added that uses BCF/BSF to change a
9903         single bit,
9904         * (genAssign): fixed bug when assigning floating point literals,
9905         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
9906         __sdcc_gsinit_startup label,
9907         * src/pic16/main.c (_pic16_init): removed search directory
9908         initialisations,
9909         * (_pic16_initPaths): NEW, used to initialise search directories,
9910         * (_hasNativeMulFor): support functions for all except char/int
9911         multiplication, and char division,
9912         * (PIC16_port struct): modified entry for native mul support,
9913         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
9914         no_banksel option,
9915         * (buildCallTree): call to register_usage is ifdef'ed out,
9916
9917 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9918
9919         * device/include/string.h: applied Stas Sergeev's patch to make this
9920         header file compatible with the preprocessor -Wundef option
9921         * src/SDCCmain.c (main): abort compilation if preprocessor reports
9922         failure (fixes bug #941458)
9923
9924 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9925
9926         * src/SDCCopt.c (killDeadCode): fixed bug #907733
9927         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
9928         that the variable, not the function, should be static
9929         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
9930         to be consistent with non-literal case
9931
9932 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9933
9934         * src/SDCCast.c (isConformingBody): fixed bug #949967
9935         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
9936         convilong): fixed bug #952086
9937
9938 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9939
9940         * src/SDCCmem.c (allocVariables): fixed bug #955321
9941
9942 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9943
9944         * src/hc08/main.c (_hc08_genAssemblerEnd),
9945         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
9946         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
9947         completely eliminated the use of a temporary file
9948         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
9949         when more than one file linked
9950         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
9951
9952 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9953
9954         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
9955         which fixes bug #543481
9956         * support/regression/tests/bug-751703.c: fixed comments left from a
9957         cut and paste error
9958         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
9959         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
9960         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
9961         scopes
9962         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
9963         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
9964         are now changed to underscores in moduleName
9965
9966 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9967
9968         * as/mcs51/lkmem.c: better fix for bug #954173
9969
9970 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
9971         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9972
9973         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
9974         * device/include/c8051f000.h,
9975         * device/include/c8051f120.h,
9976         * device/include/c8051f300.h,
9977         * device/include/c8051f310.h,
9978         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
9979         PWM16) and detab'ed
9980
9981 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9982
9983         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
9984         and mailing lists, doc'ed --no-peep-comments, removed reference
9985         to knoppix (newest version has no LyX/LaTeX), other minor changes
9986         * src/SDCCglue.c (glue): save 2 bytes stack space with
9987         option --main-return. The ljmp could probably be avoided too
9988
9989 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9990
9991         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
9992
9993 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9994
9995         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
9996         * src/SDCCopt.c (isLocalWithoutDef),
9997         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
9998         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
9999         (credit to Maarten Brock for patch #949363, on which this is based)
10000         * support/regression/tests/bug-751703.c: some test cases of extern used
10001         within inner scopes.
10002
10003 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10004
10005         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
10006         SPEC_STRUCT
10007         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
10008         struct definitions
10009         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
10010         dwWriteLabel): fix to create valid debugger symbols even when
10011         the module name has non-alphanumeric symbols in it
10012         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
10013         when a variable's allocation has been optimized away
10014
10015
10016 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10017
10018         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
10019         * src/hc08/main.c,
10020         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
10021         * src/mcs51/main.c,
10022         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
10023         * src/ds390/main.c,
10024         * src/z80/gen.c (z80_emitDebuggerSymbol),
10025         * src/z80/main.c,
10026         * src/pic/gen.c (pic14_emitDebuggerSymbol),
10027         * src/pic/main.c,
10028         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
10029         * src/pic16/main.c,
10030         * src/avr/gen.c (avr_emitDebuggerSymbol),
10031         * src/avr/main.c,
10032         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
10033         * src/xa51/main.c,
10034         * src/SDCCdebug.c (emitDebuggerSymbol),
10035         * src/SDCCdebug.h,
10036         * src/port.h: added a debugger struct to the port struct. Added a
10037         callback for defining debugger symbols
10038
10039         * src/SDCCast.c (createLabel),
10040         * src/SDCC.y (labeled_statement): mark all compiler generated labels
10041         with isitmp = 1
10042         * src/SDCCicode.h,
10043         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
10044         iCode back to the ast for the function
10045
10046         * src/hc08/ralloc.c (hc08_assignRegisters),
10047         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
10048         unneeded fields from the regs struct.
10049         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
10050         pushReg() & pullReg() functions instead of emitcode()
10051
10052         * src/hc08/gen.c (genLabel, genhc08Code),
10053         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
10054
10055         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
10056         debugger hooks
10057
10058         * src/hc08/gen.c (genEndFunction, genhc08Code),
10059         * src/hc08/gen.h,
10060         * src/mcs51/gen.c (genEndFunction, gen51Code),
10061         * src/mcs51/gen.h,
10062         * src/ds390/gen.c (genEndFunction, gen390Code),
10063         * src/ds390/gen.h,
10064         * src/z80/gen.c (genEndFunction, genZ80Code),
10065         * src/z80/gen.h,
10066         * src/z80/z80.h,
10067         * src/pic/gen.c (genEndFunction, genpic14Code),
10068         * src/pic/gen.h,
10069         * src/pic16/gen.c (genEndFunction, genpic16Code),
10070         * src/pic16/gen.h,
10071         * src/avr/gen.c (genEndFunction, genAVRCode),
10072         * src/avr/gen.h,
10073         * src/xa51/gen.c (genEndFunction, genXA51Code),
10074         * src/xa51/gen.h,
10075         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
10076         specific code to cdbFile.c and out of the backend code generators
10077
10078         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
10079         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
10080         starting address is now 0
10081
10082         * as/hc08/asm.h,
10083         * as/hc08/m08pst.c,
10084         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
10085         assembler directive for DWARF support
10086         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
10087
10088         * src/src.dsp,
10089         * src/Makefile.in,
10090         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
10091
10092 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10093
10094         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
10095         and inappropriate peephole optimization in jump tables
10096
10097 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10098
10099         * as/hc08/m08pst.c,
10100         * src/SDCCglue.c: sdccopt works for the hc08 port now
10101
10102 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
10103
10104         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
10105
10106 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10107
10108         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
10109
10110 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10111
10112         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
10113         rules
10114         * src/SDCCmain.c,
10115         * src/SDCCglobl.h,
10116         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
10117         comments from the peephole optimizer replacement rules
10118         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
10119         symbols
10120         * src/SDCCcse.c (updateSpillLocation),
10121         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
10122         equivalents
10123         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
10124         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
10125         objects far pointers
10126
10127 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10128
10129         * src/SDCCsymt.h: a missing part of my last change
10130         * src/pic/ralloc.c (regTypeNum),
10131         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
10132
10133 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10134
10135         * src/SDCCicode.h,
10136         * src/SDCCicode.c (aggrToPtrDclType),
10137         * src/SDCCptropt.h,
10138         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
10139         ptrPseudoSymConvert),
10140         * src/pic/ralloc.c (regTypeNum),
10141         * src/pic16/ralloc.c (regTypeNum),
10142         * src/hc08/ralloc.c (regTypeNum),
10143         * src/ds390/ralloc.c (regTypeNum),
10144         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
10145         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
10146
10147 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10148
10149         * link/z80/lkmain.c (afile),
10150         * as/hc08/lkmain.c (afile),
10151         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
10152         prevent a pointer problem when a filename has no directory and
10153         no extension specified.
10154
10155 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10156
10157         * link/z80/lkmain.c (afile): allow periods in directory names
10158         * link/z80/lkmain.c (afile),
10159         * as/mcs51/lkmain.c (afile),
10160         * as/hc08/lkmain.c (afile): allow linker script file to have an
10161         extension other than ".lnk"
10162         * link/z80/lklex.c (getfid),
10163         * link/z80/lkmain.c (parse),
10164         * as/mcs51/lklex.c (getfid),
10165         * as/mcs51/lkmain.c (parse),
10166         * as/hc08/lklex.c (getfid),
10167         * as/hc08/lkmain.c (parse): Support comments in the linker script
10168         file on lines by themselves and after filenames
10169
10170 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10171
10172         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
10173
10174 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10175
10176         * src/z80/peeph-z80.def: removed some peephole rules that don't
10177         work with multibyte arithmetic (fixed bug #937126)
10178         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
10179         to registers and not global variables
10180         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
10181         geniCodePreInc, geniCodePostDec, geniCodePreDec,
10182         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
10183         checking for assignments not internally generated (fixed bug #931895)
10184         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
10185         structure member (fixed bug #930072)
10186
10187 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10188
10189         * src/SDCCmain.c (linkEdit),
10190         * src/hc08/main.c (_hc08_parseOptions),
10191         * as/hc08/Makefile.in,
10192         * as/hc08/aslink.h,
10193         * as/hc08/asm.h,
10194         * as/hc08/m08pst.c,
10195         * as/hc08/lkrloc.c (relr, rele),
10196         * as/hc08/lkarea.c (lnkarea)
10197         * as/hc08/lkmain.c (afile, parse),
10198         * as/hc08/lkelf.c: support for ELF output
10199         * as/hc08/lks19.c (s19),
10200         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
10201
10202 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10203
10204         * as/mcs51/lkihx.c: Fixed bug #899105.
10205
10206 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10207
10208         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
10209         .dsp files from Unix to DOS.
10210
10211 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10212
10213         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
10214         function pointers; we have been compliant for several months now.
10215         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
10216         change that was accidently commented out
10217         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
10218         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
10219         bug #922319
10220
10221 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10222
10223         * src/hc08/gen.c: output of all of the internal debugging information
10224         is now controlled by the D() macro; it is disabled by default
10225
10226 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10227
10228         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
10229         harder to keep the same registers during a CAST iCode
10230         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
10231         long via int can be done in a single cast, if the signedness is
10232         correct.
10233         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
10234         putchar() in tinibios.c in ds390's library
10235
10236 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
10237
10238         * src/SDCCast.c (decorateType): fixed bug #898889,
10239         cast result of a literal complement too
10240         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
10241         fixed check for bitfields
10242
10243 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
10244
10245         * src/SDCCicode.c (geniCodeLogic): made it static,
10246         (geniCodeLogicAndOr): added in order to fix bug #905492,
10247         (ast2iCode): fixed bug #905492
10248         * support/regression/tests/bug-905492.c: added
10249         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
10250         (processParms): fixed bug #927659: don't copy parms, this will clear
10251         decorated flag
10252         * support/regression/tests/bug-927659.c: added
10253
10254 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
10255
10256         * src/SDCCast.c (addCast): don't cast float to char
10257         * device/lib/libsdcc.lib: added _memmove
10258
10259 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
10260
10261         * device/lib/large/Makefile: fixed parallel execution by
10262         replacing `make` by `$(MAKE)`
10263
10264 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10265
10266         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
10267         offsets (fixes bug #923936)
10268
10269 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
10270
10271         * device/lib/small/Makefile: fixed parallel execution by
10272         replacing `make` by `$(MAKE)`
10273
10274 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
10275
10276         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
10277
10278 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
10279
10280         * src/pic/gen.c (genCpl): multi-byte complements were not working.
10281         * src/regression/Makefile: Regression test was not running.
10282
10283 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
10284
10285         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
10286         complement if possible
10287         * src/SDCCval.c (valComplement),
10288         * src/SDCCicode.c (operandOperation): fixed complement of literal
10289         * support/regression/tests/onebyte.c (testComplement): added
10290
10291 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
10292
10293         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
10294         return an optimized tree; actually replace actParm with the new tree
10295         * src/SDCCast.h: added some parantheses to remove side effects
10296         * support/regression/tests/bug-920866.c
10297
10298 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
10299         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
10300         Bit operands were not being handled properly in the pic14 port.
10301         (now src/regression/add.c passes again).
10302
10303 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10304
10305         * src/SDCC.y (labeled_statement): case and default no longer require
10306         a following statement (RFE #893037)
10307
10308 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10309
10310         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
10311         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
10312         disabled (fixes bug #916294)
10313         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
10314         "mov a,acc"; patch provided by Lenny Story
10315         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
10316
10317 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10318
10319         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
10320         functions
10321         * src/ds390/gen.c (genFunction, genEndFunction),
10322         * src/ds390/ralloc.c (ds390_assignRegisters),
10323         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
10324         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
10325         pushed if there are parameters passed on the stack. Also, a cleaner
10326         way to decide if r0/r1 should be pushed/popped. (Together they fix
10327         bug #918693)
10328
10329 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10330
10331         * doc/sdccman.lyx,
10332         * device/lib/mcs51/crtpagesfr.asm,
10333         * device/lib/mcs51/crtxinit.asm,
10334         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
10335         to avoid confusion with Si Lab's SFRPAGE register.
10336
10337 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10338
10339         * src/SDCCglue.c (emitMaps): allow public sfr variables
10340         * src/SDCCglue.c (initialComments): include compiler build date
10341         with compiler version and put the timestamp of the generated
10342         assembly file on a serperate line to be less confusing.
10343         * src/port.h: added genInitStartup hook
10344         * src/avr/main.c,
10345         * src/ds390/main.c,
10346         * src/hc08/main.c,
10347         * src/pic/main.c,
10348         * src/pic16/main.c,
10349         * src/xa51/main.c,
10350         * src/z80/main.c: genInitStartup initialize as NULL (default to
10351         historical behaviour)
10352         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
10353         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
10354         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
10355         library instead of hard coding it into the compiler.
10356         * support/regression/ports/mcs51-stack-auto/spec.mk,
10357         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
10358         * device/lib/mcs51/Makefile,
10359         * device/lib/small/Makefile,
10360         * device/lib/large/Makefile,
10361         * device/lib/mcs51/crtpagesfr.asm,
10362         * device/lib/mcs51/crtstart.asm,
10363         * device/lib/mcs51/crtxclear.asm,
10364         * device/lib/mcs51/crtxinit.asm,
10365         * device/lib/mcs51/crtclear.asm,
10366         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
10367         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
10368         and into user configurable files.
10369         * device/lib/clean.mk: clean mcs51 directory too
10370         * support/regression/tests/longlit.c: added static to T1 declaration
10371         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
10372         accesses in the initialization code
10373
10374 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10375
10376         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
10377         OSCTRIMVAL as noted in bug #916008
10378
10379 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10380
10381         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
10382         in loops with multiple exits (reported as incorrect registers
10383         used by Martin Helmling in Sdcc-user list)
10384
10385 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10386
10387         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
10388         made ds390 register extensions look less like error messages
10389
10390 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10391
10392         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
10393         reported by Adam Wozniak in Sdcc-user list
10394
10395 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
10396
10397         * src/SDCCast.c (decorateType): fixed with bug and promotion in
10398         arithmetic optimizations, added debug output
10399
10400 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
10401
10402         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
10403         * sdcc.spec: updated and split sdcc into 3 rpms
10404         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
10405         needed for literals of LEFT_OP and '+'
10406         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
10407         introduced RESULT_TYPE_NOPROM
10408         (geniCodeMultiply): fixed logic for decision if mul is optimized to
10409         left shift
10410         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
10411         limited promotion to int only for '*'
10412         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
10413
10414 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
10415
10416         * src/pic16/gen.c (genSkip),
10417         (genc16bit2lit), (gencjneshort): commented out
10418         (is_LitOp): new helper function, checks operand type
10419         (genCmpEq): rewritten
10420
10421 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
10422
10423         * support/regression/tests/bug-908454.c: added
10424
10425 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
10426
10427         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
10428         * src/SDCCicode.c (usualBinaryConversions): op needs int type
10429         (geniCodeCast): cosmetic, don't preserve bit storage class
10430         (geniCodeLeftShift): added promotion
10431         (geniCodeLogic): fixed regression
10432         * src/SDCCsymt.c (computeTypeOr): accept bits too
10433         (compareType): 2nd part of fix for bug #908454, needed for bitfields
10434
10435 2004-03-07  Borut Razem <borut.razem AT siol.net>
10436
10437         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
10438
10439 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
10440
10441         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
10442         version of pic16_genPackRegisters which does not check if ic is a
10443         CAST operator,
10444         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
10445         function cause string1.c regression test fails
10446
10447 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
10448
10449         * sim/ucsim/configure.in,
10450         * sim/ucsim/configure,
10451         * sim/ucsim/doc/Makefile.in: use docdir
10452         * src/SDCC.y: fixed sbit atrributes
10453         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
10454         * src/SDCCast.c (decorateType): |^& need special promotion handling
10455         * src/SDCCast.h,
10456         * src/SDCCsymt.h: moved definition of RESULT_TYPE
10457         * src/SDCCsymt.h (computeType),
10458         * src/SDCCicode.c: computeType() needs op
10459         * src/SDCCsymt.c (checkTypeSanity),
10460         * doc/sddman.lyx: "plain" bitfields are unsigned
10461         * src/SDCCsymt.c (computeTypeOr): added
10462         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
10463         |^& ops
10464         * src/SDCCval.c (val*): computeType() needs op
10465         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
10466         * support/regression/tests/onebyte.c: added tests for |^&
10467
10468 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
10469
10470         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
10471         for writing icode into asm output.
10472
10473 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
10474
10475         * src/pic16/device.c: added some debug lines enabled
10476         with macro DEBUG_CHECK,
10477         * src/pic16/genarith.c: more debug in genPlus,
10478         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
10479         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
10480         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
10481         * (aopForSym): onStack symbols are re-placed in data memspace,
10482         and onStack flag is cleared,
10483         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
10484         copy temporary pcodeop,
10485         * (genPcall): added warning for not updating PCLATU,
10486         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
10487         always true for pic16 port,
10488         * (genMultOneWord): NEW, supports integer multiplication,
10489         * (genMult): modified to call genMultOneWord,
10490         * (ifxForOp): added warning when return NULL,
10491         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
10492         flag is set before call to operandFromSymbol for implicit
10493         added structures,
10494         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
10495         options.intlong_rent are set by default,
10496         * (_hasNativeMulFor): modified to allow port generation of integer
10497         multiplication,
10498         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
10499         set regtype to REG_SFR for all registers, restricting seting the
10500         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
10501
10502 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10503
10504         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
10505         more than 500 times in the regression tests
10506
10507 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10508
10509         * support/Util/SDCCerr.h,
10510         * support/Util/SDCCerr.c,
10511         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
10512         enumerator_list),
10513         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
10514         for symbol conflicts.
10515         * support/valdiags/tests/enum.c,
10516         * support/valdiags/tests/tentdecl.c,
10517         * support/valdiags/tests/struct.c: expect possible error messages
10518         referring to original symbol definitions.
10519         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
10520         * src/SDCCsymt.h,
10521         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
10522
10523 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
10524
10525         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
10526
10527 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
10528
10529         * src/pic16/ralloc.c (newReg): fixed bug #908929
10530
10531 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10532
10533         * src/ds390/gen.c: added missing #include "main.h"
10534
10535 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
10536
10537         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
10538         checking if symbol is already in set,
10539         * src/pic16/device.h: prototype for checkAddSym,
10540         * src/pic16/gen.c: (_G): added entry interruptvector,
10541         * (assignResultValue): removed some commented out lines,
10542         * (genFunction): check for ISR via sym->type, absolute section for
10543         interrupt code is created via a new pBlock, the goto instruction is
10544         placed now correctly at the interrupt vector position, changed all
10545         references from ivec to _G.interruptvector,
10546         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
10547         is the interrupt is a high priority one, same for return from ISR,
10548         * src/pic16/glue.c: changed all calls of addSetHead for publics and
10549         externs to calls of checkAddSym,
10550         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
10551         pic16_pcode_verbose flag is set,
10552         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
10553         * src/pic16/pcoderegs.c: message about how many registers are saved
10554         will only be emitted if pic16_pcode_verbose flag is set,
10555
10556 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10557
10558         * src/ds390/ralloc.h,
10559         * src/ds390/ralloc.c (ds390_regWithIdx),
10560         * src/ds390/gen.c (emitcode),
10561         * src/ds390/main.h,
10562         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
10563         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
10564         ds390operandCompare, getRegsRead, getRegsWritten,
10565         initializeAsmLineNode): customized instruction size calculation for
10566         ds390, started basis for some register optimizations
10567         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
10568         corresponding assembly output
10569         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
10570         missing push/pop of r0/r1. Optimized push/pops
10571
10572 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10573
10574         * src/mcs51/main.c (instructionSize): fixed ACALL size
10575         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
10576
10577 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
10578
10579         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
10580         the sorting of rlist with NULL elements
10581         * (print_idataType, print_idata): NEW to create idata sections
10582         * src/pic16/device.h: idataSymSet new variable
10583         * src/pic16/gen.c (genFunction): fixed some bugs in string
10584         comparing, improved the absolute section creation for ISRs,
10585         added FSR0L/FSR0H in registers that are saved in an ISR,
10586         * (genInline): fixed the processing of inline snippets,
10587         now they undergo no process by the peephole optimizer
10588         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
10589         are placed in idataSymSet,
10590         * (pic16emitStaticSeg): extern symbols are added in externs,
10591         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
10592         switching when aboslute variables are placed in access bank memory
10593         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
10594         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
10595         commented out with #if,
10596         * (pic16_packRegisters): reintroduce the check for CAST because some
10597         symbols are not correctly handled,
10598         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
10599         pCodeInstruction instead of pCode,
10600         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
10601         pCodeAsmDir definition,
10602         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
10603         directive, then the argument directive is emitted without the leading
10604         tab, hack for inline labels which must be in the first column,
10605         * (compareLabel,pic16_findNextInstruction),
10606         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
10607         * (insertBankSwitch): modified for the new pCodeAsmDir,
10608
10609 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
10610         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
10611
10612         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
10613         instance,
10614         * (pushSide): commented out with #if,
10615         * (assignResultValue): fixed some typos in saving
10616         registers,
10617         * (genPcall): FIXED and sync'ed with genCall,
10618         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
10619         * (genNearPointerGet): fixed to handle some more cases,
10620         implementation scheme via table reads,
10621         * (genConstPointerGet): modified to access code memory correct,
10622         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
10623         and improved to handle some cases
10624         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
10625         instead of "RETLW" for init data
10626         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
10627         not IN_DIRSPACE, work around to reduce bank switching when aboslute
10628         variables are placed in access bank memory (<0x80 and >=0xf80),
10629         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
10630         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
10631         TBLWT_POSTDEC,TBLWT_PREINC
10632         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
10633         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
10634         directives
10635         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
10636         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
10637         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
10638         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
10639
10640 2004-02-29  Borut Razem <borut.razem AT siol.net>
10641
10642         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
10643         support/Util/findme.h, support/Util/system.h: enhance binary relative
10644         search for lib and include by using findProgramPath()
10645
10646 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10647
10648         * src/SDCCpeeph.h,
10649         * src/SDCCpeeph.c (pcDistance),
10650         * src/port.h,
10651         * src/mcs51/ralloc.h,
10652         * src/mcs51/ralloc.c (mcs51_regWithIdx),
10653         * src/mcs51/main.h,
10654         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
10655         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
10656         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
10657         size calculation port specific, started basis for some register
10658         optimizations
10659         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
10660         missing push/pop of r0/r1. Optimized push/pops
10661         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
10662         * device/lib/_modsint.c (_modsint),
10663         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
10664         and stack version so regression tests pass
10665
10666 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
10667
10668         * src/Makefile.in (dep): include SLIBOBJS in dependency check
10669         * src/SDCCast.c (decorateType): catch another small optimization
10670         with '?' operator
10671         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
10672         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
10673         modified to finally use computeType() all over SDCC,
10674         see Feature Request #877103
10675         * src/SDCCval.h: cosmetic
10676         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
10677         valCompare(); regression tested in muldiv.c
10678         * support/regression/tests/muldiv.c (testMod): mod sign follows
10679         dividend only
10680
10681 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
10682
10683         * src/SDCCast.c (decorateType): fixed bug #902362
10684         * doc/INSTALL.txt: fixed install instructions for win32
10685
10686 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
10687
10688         * device/include/Makefile.in (install): fixed by replacing spaces
10689         by tabs
10690         * doc/README.txt,
10691         * doc/INSTALL.txt: updated for release
10692         * doc/sdccman.lyx: added warning for --xstack being buggy
10693
10694 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
10695
10696         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
10697         to eliminate build warnings.
10698         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
10699
10700 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
10701            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
10702
10703         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
10704         removed -penable-stack, added comment for stack pragma, added
10705         warning for not initializing the stack/frame registers, removed
10706         comment at interrupts section
10707
10708         Stack is made permanent, there is no ability to disable stack usage.
10709         * src/pic16/device.h,
10710         * src/pic16/device.c: removed all references to USE_STACK macro,
10711         * src/pic16/device.c (pic16_dump_section): when no elements in
10712         rlist, free rlist before return,
10713         * (pic16_dump_int_registers): NEW, internal registers are a new set
10714         of general purpose registers reused by each function,
10715         * (checkAddReg): returns 1 if registers is added to set,
10716         * (pic16_groupRegistersInSection): when a registers is of type
10717         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
10718         * src/pic16/device.h: memRange and Assigned Memory are deleted,
10719         SRCASECMP macro is moved here from device.c
10720         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
10721         PO_PCLATU, PO_PRODL, PO_PRODH,
10722         * (pic16_pCodeOpType, genMinus,
10723         changed compares to "a" register, with AOP_ACC,
10724         * (pic16_genPlus): fixed some bugs and indented properly,
10725         * (pic16_addSign): changed size to size+offset in the MOVWF
10726         instruction,
10727         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
10728         multiply 8-bit operand by literal, result is 8-bit,
10729         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
10730         multiply 2 8-bit operand, result is 8-bit,
10731         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
10732         genUMult8X*_16,
10733         * src/pic16/gen.c: changed accUse to contain WREG only,
10734         * (pic16_emitcomment): renamed to pic16_emitpcomment,
10735         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
10736         true, do not use immediate addressing any more unless sym is a
10737         pointer in codespace,
10738         * (aopForRemat): do not use immediate addressing when symbol not in
10739         codespace and when symbol's address is requested,
10740         * (aopOp): for-loop in if(sym->accUse) is modified for the new
10741         accUse size (= 1),
10742         * (aopGet): added case for AOP_ACC and don't return "accumulator
10743         bug" but WREG instead,
10744         * (popGetTempReg): pushes contents of temporary register in stack,
10745         * (popReleaseTempReg): pops contents of temporary register from
10746         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
10747         * (pic16_popGet): separated case AOP_ACC to return register WREG
10748         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
10749         or PO_IMMEDIATE and initializes their instance/offset appropriately,
10750         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
10751         the use of immediate pointers to certain cases only.
10752
10753         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
10754         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
10755         * (assignResultValue, genCall, genRet): modified to use the new
10756         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
10757         genPcall is still broken,
10758         * (genFunction): added code to create 'A' type pBlocks when
10759         interrupt functions are generated, code not extensively tested yet,
10760         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
10761         * (genEndFunction): modified so ISRs pop stored registers from stack,
10762         * (genMultOneByte): cleanup,
10763         * (AccRsh): added flag andmask, to and result with appropriate mask,
10764         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
10765         * (genDataPointerGet): fixed and reenabled its use,
10766         * (genNearDataPointerGet): bugs fixed,
10767         * (genDataPointerSet): bugs fixed,
10768         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
10769         pic16_DumpSymbol, pic16_DumpOp,
10770         * src/pic16/genutils.h: function prototypes for the above functions,
10771         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
10772         pointers,
10773         * (pic16emitRegularMap): many many many improvements, but needs a
10774         major cleanup,
10775         * src/pic16/main.c: enable_stack in pic16_options is removed,
10776         * (_pic16_parseOptions): removed command line options -penable-stack,
10777         * (_process_pragma): emit stack symbol only when stack pragma is
10778         processed,
10779         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
10780         redirected to FSR0L/FSR0H pair,
10781         * (pic16_get_op, pic16_get_op2): modifications and improvements,
10782         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
10783         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
10784         for immediates,
10785         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
10786         * (dumpPicOptype): NEW,
10787         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
10788         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
10789         with movff instruction,
10790         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
10791         added pic16_int_regs, some packRegsFor* functions are commented out,
10792         because produce errors,
10793         * src/pic16/NOTES: minor modifications
10794
10795 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10796
10797         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
10798         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
10799         --pack-iram.
10800         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
10801         * as/mcs51/lkaomf51.c: fixed bug #895763
10802
10803 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
10804
10805         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
10806
10807 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10808
10809         * doc/sdccman.lyx: added details about the HC08 storage classes and
10810         interrupts, fixed the register usage info for z80 & gbz80
10811
10812 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
10813
10814         * doc/sdccman.lyx: added more pic16 port documentation
10815         * device/include/pic16/: added header pic18fregs.h
10816
10817 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
10818
10819         * doc/sdccman.lyx: added Vangelis' contribution
10820
10821 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10822
10823         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
10824         extend to the next CALL or PCALL, not just to the next CALL.
10825
10826 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
10827
10828         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
10829
10830 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10831
10832         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
10833         bug #895752 and a better fix for bug #716790
10834
10835 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10836
10837         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
10838
10839 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10840
10841         * doc/sdccman.lyx: minor changes, minor changed
10842
10843 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
10844
10845         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
10846         which can't handle SDCC_NEWONEBYTEOPS,
10847         (geniCodeMultiply): removed conversion from mult to shift for pic14
10848         and pic16
10849
10850 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10851
10852         * src/hc08/gen.h,
10853         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
10854         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
10855         thus fixing bug #895406
10856
10857 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
10858
10859         * device/lib/_modsint.c,
10860         * device/lib/_modslong.c: sign follows divisor only
10861         * src/hc08/gen.c (genMultOneByte): if result size is 1,
10862         signs or signedness can be ignored
10863         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
10864         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
10865         added optimization for IFX,
10866         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
10867         arguments;
10868         reenabled optimization for IFX, which was removed on 2004-01-11
10869         * src/SDCCast.h: added return type IFX
10870         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
10871         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
10872         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
10873         SDCC_OLDONEBYTEOPS selects the old behaviour
10874         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
10875         changed again and commented promotion rule
10876         * src/SDCCval.c (valDiv): promotion no longer necessary
10877         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
10878         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
10879         rewritten
10880         * support/regression/tests/onebyte.c: added
10881
10882 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
10883
10884         * gen.c (genInline): reverted to old code for assemnling inline
10885         code because of bug reported James Chadd
10886
10887 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
10888
10889         * ralloc.h: missing declarations from previous patch,
10890         seems that patch for ralloc.h was never applied, fixed
10891
10892 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
10893            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
10894
10895         * pcode.c,
10896         * pcode.h,
10897         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
10898         indirect addressing. Marked FSR0 as deprecated
10899         * gen.c (pointerCode): commented out, not needed now
10900         (pic16_popGet2p): new MOVFF helper function
10901         (genGenPointerGet),
10902         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
10903         (shiftRLong): removed duplicate debugging info
10904
10905 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10906
10907         * src/ds390/gen.c (genNearPointerGet),
10908         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
10909         optimization with bits, but not bitfields.
10910         * src/ds390/ralloc.c (packRegisters),
10911         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
10912
10913 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
10914
10915         * src/SDCCcse.c (algebraicOpts): copy operands before modification
10916
10917 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10918
10919         * src/SDCCsymt.h,
10920         * src/SDCCicode.c (operandFromSymbol),
10921         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
10922         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
10923         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
10924         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
10925         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
10926         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
10927         bug #892038
10928         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
10929         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
10930         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
10931         * src/SDCCsymt.c (newSymbol),
10932         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
10933         enumerator_list),
10934         * src/SDCCval.h,
10935         * src/SDCCval.c (newiList): fixed bug #885705
10936
10937 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10938
10939         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
10940         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
10941
10942 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10943
10944         * device/include/c8051f120.h,
10945         * device/include/c8051f300.h,
10946         * device/include/c8051f310.h: added/updated header files for Silicon
10947         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
10948         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
10949         in new section Submitting patches
10950
10951 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10952
10953         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
10954         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10955         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10956         genGenPointerSet),
10957         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
10958         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10959         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10960         genGenPointerSet),
10961         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
10962         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10963         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10964         genGenPointerSet),
10965         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
10966         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10967         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10968         genGenPointerSet): fixed bug #892400
10969         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
10970         to eliminate build warnings.
10971         * src/SDCCast.c (processParms),
10972         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
10973         fixed bug 751859
10974         * support/valdiag/valdiag.py: added GCC to the list of defines active
10975         when compiling with gcc
10976
10977 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10978
10979         * support/Util/SDCCerr.h,
10980         * support/Util/SDCCerr.c,
10981         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
10982         with an incomplete type (fixed bug #883734)
10983         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
10984
10985 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10986
10987         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
10988
10989 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10990
10991         * src/SDCCast.c (decorateType),
10992         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
10993         function pointer implementation
10994         * support/regression/tests/funptrs.c: added tests to verify both forms
10995         of function pointers work correctly. Added tests to verify parameters
10996         are passed in the correct order.
10997
10998 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
10999
11000         * device.c (regCompare): registers are sorted by ascending
11001         address and increasing size,
11002         * main.c (_pic16_finaliseOptions): removed the declaration
11003         of compiler macro MCU. Now a macro of the format pic18fxxxx
11004         will be defined from the command line
11005
11006 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11007             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
11008
11009         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
11010         PCOP_RLCF was overwritten!
11011         * gen.c (genSkip): commented out calls to pic16_emitcode,
11012         * (genCmpEQ): fixed "long" compares, only high word did get compared,
11013         * (genlshTwo),
11014         * (genRRC): added debugging info,
11015         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
11016         overwritten while shifting,
11017         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
11018         overwritten while shifting,
11019         * (AccLsh),
11020         * (AccRsh),
11021         * (shiftLLeftOrResult),
11022         * (shiftRLeftOrResult),
11023         * (shiftRLong),
11024         * (shiftLLong): Implemented with pic16_emitpcode
11025         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
11026         * (genLeftShift): Fixed bug, operand for shift by variable always
11027         was "and"ed with 0x0f,
11028         * (genLeftShiftLiteral),
11029         * (genrshTwo),
11030         * (genRightShiftLiteral): added debugging info,
11031         * (genrshFour): added comment,
11032         * (genRightShift): determined signedness from operand "left"
11033         instead of "result"
11034
11035 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11036
11037         * src/SDCCicode.c (geniCodeParms),
11038         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
11039         function pointers, fixed function pointer bugs #861242 and #861896
11040
11041 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11042
11043         * device/include/c8051f000.h,
11044         * device/include/c8051f120.h,
11045         * device/include/c8051f300.h: added header files for Silicon
11046         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
11047
11048 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
11049
11050         * src/SDCCast.c (processParams): added new type flow and restructured
11051         (gatherAutoInit): added new type flow
11052         (addCast): cosmetic changes
11053         (getLeftResultType): added new type flow for array indices, patch
11054         provided by Stas, see FR #877103
11055         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
11056         array index patch by Stas
11057         * src/SDCCast.h: added prototype getResultTypeFromType()
11058         * src/SDCCval.h,
11059         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
11060         * src/pic/glue.c (pic14emitStaticSeg),
11061         * src/pic16/glue.c (pic16emitStaticSeg),
11062         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
11063         for initialization of symbols
11064         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
11065         * support/Util/SDCCerr.h:
11066         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
11067         * .version: bumped version number to 2.3.8
11068         * device/include/Makefile.in (install),
11069         * doc/Makefile (install): changed to 'rm `find ...`' construct to
11070         avoid warnings
11071
11072 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
11073
11074         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
11075         Slade Rich fixed an optimization bug
11076         * src/pic/pcodepeep.c,
11077         * src/pic/pcoderegs.c
11078         * doc/Makefile (install): added test for directory
11079
11080 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11081
11082         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
11083         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
11084         * src/pic/ralloc.c (getRegPtr, getRegGpr),
11085         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
11086         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
11087         * as/mcs51/asexpr.c (term),
11088         * as/hc08/asexpr.c (term): fixed bug #887146
11089
11090 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11091
11092         * src/z80/gen.c (genMult): handle single byte result product
11093         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
11094         DUMMY_READ_VOLATILE (fixed bug #886367)
11095
11096 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
11097
11098         * support/regression/tests/libmullong.c: fixed logic, on little endian
11099         hosts we ended without a mullong_wrapper()
11100
11101 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11102
11103         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
11104         virus/worm forged address usage.
11105
11106 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
11107
11108         Fixed promotion, it should be done on AST level:
11109         * src/SDCCast.c (addCast): added promotion to int
11110         (decorateType): updated call to upCast()
11111         * src/SDCCicode.c (geniCodeLeftShift): removed call to
11112         usualUnaryConversions()
11113
11114 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
11115
11116         * support/regression/tests/literalop.c (mulWrapper): Added a
11117         wrapper to remove integer overflow warnings.
11118
11119         * support/regression/tests/float_trans.c: Made work on host.
11120
11121         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
11122         location of sz80.
11123
11124         * support/regression/generate-cases.py (main): Changed from inline
11125         to a main method.
11126
11127         * doc/Makefile (install): Changed to depth first to get rid of
11128         missing directory install warning.
11129
11130         * as/Makefile (install-doc): Made work on Mac.
11131
11132 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
11133
11134         * src/SDCCast.c: added an additional type flow in decorateType() of
11135         opposite direction, see feature request #860006; it's enabled at runtime
11136         by setting the environment variable SDCC_NEWTYPEFLOW
11137         * src/SDCCast.h: changed prototype of decorateType()
11138         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
11139         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
11140         'char' to 'int' can be omitted, if both operands are 'unsigned char';
11141         see feature request #877103
11142         * src/SDCCval.c: updated call of decorateType()
11143         (valBitwise): fixed bug #882876
11144         (valMinus): added promotion
11145         (valLogicAndOr): result is unsigned
11146         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
11147         * src/SDCCsymt.c (computeType),
11148         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
11149         must not cause an unsigned operation
11150         * src/pic/glue (pic14emitRegularMap),
11151         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
11152
11153 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
11154
11155         * src/pic/pcode.c (PCodeID): commented out left over debug code
11156
11157 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
11158
11159         * support/valdiag/tests/overflow.c: added shift tests
11160         * src/pic/device.c,
11161         * src/pic/gen.c,
11162         * src/pic/gen.h,
11163         * src/pic/glue.c,
11164         * src/pic/main.c,
11165         * src/pic/pcode.c,
11166         * src/pic/pcode.h,
11167         * src/pic/pcodepeep.c,
11168         * src/pic/pcoderegs.c,
11169         * src/pic/ralloc.c,
11170         * src/pic/ralloc.h: applied patch from Slade Rich;
11171         added support for multiple code pages and multiple RAM banks on the
11172         PIC 14 port. The ASM files now no longer simply assume all the
11173         code / RAM are in the same page / bank. This means the linker can
11174         safely allocate code/RAM of separate ASM files to different pages/banks.
11175         * doc/sdccman.lyx: added Slade's tips
11176         * src/mcs51/peeph.def: fixed bug #880768
11177
11178 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11179
11180         * src/hc08/ralloc.c (rematStr): fixed bug #879282
11181         * src/SDCCast.c (decorateType): fixed bug #880197
11182
11183 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
11184
11185         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
11186         getopt.h.
11187
11188         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
11189         strtof is not part of C89 and isn't included with Mac OS X.
11190
11191 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11192
11193         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
11194         shiftL2Left2Result): fixed bug #879326
11195         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
11196         (genMultOneByte): fixed bug in signed vs unsigned multiplication
11197         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
11198         address fetch for clr instruction
11199         * device/lib/hc08/_mulint.c: created optimized assembly version
11200         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
11201
11202 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
11203
11204         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
11205         proposed in FR #877103
11206
11207 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
11208
11209         * src/SDCCval.c (cheapestVal): added missing checks
11210         * src/SDCCicode.c (usualBinaryConversions): fixed condition
11211         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
11212
11213 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
11214
11215         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
11216         equal operands
11217
11218 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
11219
11220         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
11221         loaded with the linker search paths (-L arguments) and the libraries
11222         to be linked with the current source (-l arguments). Changes
11223         currently will affect only the pic16 port.
11224         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
11225         include path the port specific paths and port specific libraries,
11226         * gplink command now contains the $3 argument,
11227         * src/pic16/device.h,
11228         * src/pic16/device.c,: structure PIC_device is made public and
11229         renamed to PIC16_device, the same for variable Pics which is renamed
11230         to Pics16. Updated all references to them.
11231         * src/pic16/glue.c (pic16glue): corrected bug with code
11232         initialization which bypassed the variable initializations block.
11233
11234         * device/lib/pic16/Makefile.rules: removed --penable-stack from
11235         COMPILE_FLAGS and added the --nostdinc option
11236
11237 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11238
11239         * device/include/mc68hc908jb8.h: Register defs for another member
11240         of the hc08 family. Contributed by Bjorn Bringert - thanks!
11241
11242 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
11243
11244         Documenting changes from previous commits.
11245         * configure.in (version 1.56),
11246         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
11247         when generating output files to configure the pic16 library,
11248         but now I've commented it out, since gputils aren't installed in the
11249         SF compile farm, so library won't compile
11250
11251         * device/lib/Makefile.in (version 1.56): initially I've added in
11252         target 'all' the prerequestive 'model-pic16' so it compiled the
11253         pic16 library, but now I've commented it out for the same reasons
11254         above,
11255         * added targets 'model-pic16' and 'objects-pic16' to compile the
11256         library
11257         * added target 'port-specific-objects-pic16' to handle the
11258         generated libraries and copy them into the build/ directory
11259         * added target 'clean-intermediate-pic16' to clean intermediate
11260         files into pic16 directory
11261         * in target 'installdirs' added line to create directory pic16 in
11262         the installation path
11263
11264         * device/include/Makefile.in (version 1.11): in target 'install'
11265         added lines to copy all header files to installation path,
11266         * in target 'installdirs' added line create directory for pic16
11267         headers in the installation path
11268
11269 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
11270
11271         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
11272          a function call
11273
11274 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
11275
11276         * configure,
11277         * device/lib/configure.in,
11278         * device/lib/configure: fixed for autoconf 2.57
11279
11280 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11281
11282         * src/z80/main.c (_parseOptions): fixed the portmode= command line
11283         option so that it actually works. Made it specific to the z80, since
11284         the gbz80 doesn't have these kinds of I/O ports.
11285
11286 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11287
11288         * device/include/z180.h,
11289         * device/lib/_memcpy.c,
11290         * device/lib/_memmove.c,
11291         * device/lib/_mulint.c,
11292         * device/lib/ser_ir.c,
11293         * device/lib/ser_ir_cts_rts.c,
11294         * device/lib/_strcmp.c,
11295         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
11296         * src/z80/main.c (_process_pragma): add support for pragmas bank and
11297         portmode; added deprecation warning for bank= and protmode= forms.
11298         Also, guard against buffer overflow.
11299         * src/z80/gen.c (aopGet): generate better code for sfr banked read
11300
11301 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11302
11303         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
11304         changed interrupt vector table generation to only emit declared vectors.
11305         * device/include/Makefile.in: added missing backslash
11306         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
11307
11308 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
11309
11310         Mainly changes to support compilation of the device libraries
11311         * src/pic16/device.c: stack is allocated via symbol and not
11312         via literal number. The symbol is placed in the corresponding
11313         position of the data ram
11314         * (pic16_dump_section): relocatable and absolute uninitialized
11315         data are now emitted in sorted order to reduce section naming,
11316         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
11317         weren't marked as being in the access bank,
11318
11319 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
11320
11321         Added portion of GNU PIC Library under the directory
11322         device/include/pic16 and device/lib/pic16. These files
11323         contain the declarations of SFRs for the PIC18Fxx2 devices.
11324         The directory is initialized via configure from toplevel.
11325
11326 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
11327
11328         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
11329         the spilllocations to be compared correctly
11330
11331 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
11332
11333         * src/SDCCast.c (decorateType): fixed bug introduced today
11334
11335 2004-01-12  Borut Razem <borut.razem AT siol.net>
11336
11337         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
11338         doc/sdccman.lyx: upper case pragmas are deprecated
11339
11340 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
11341
11342         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
11343         in simpler and even better code
11344
11345 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
11346
11347         * src/SDCCicode.c (operandOperation): fixed bug #874819
11348         * src/SDCCast.c (decorateType): fixed
11349         char foo (unsigned long ul) { return ul > 0; }
11350
11351 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11352
11353         * doc/sdccman.lyx: Moved and added some sections, small changes
11354         all over. Telling LaTeX to be less strict with word spacing
11355         to better keep the right margin. Changed some notes about
11356         maintainance of the ports in section 3.2.1 - is it OK like this?
11357
11358 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
11359
11360         SDCC source changes:
11361         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
11362         convilong): modified to inform the pic16 port that builtin functions
11363         are external
11364
11365         PIC16 PORT specific changes:
11366         * src/pic16/device.c pic16_dump_equates() added,
11367         processor registers declared internally by the port are emitted in
11368         the translation as equates,
11369         * src/pic16/gen.c: inline code is passed unprocessed to the
11370         translation,
11371         * (pic16_popGetLit2): fnuction modified to take second operand as
11372         pCodeOp pointer and not as literal,
11373         * (popRegFromIdx): prefixed with pic16_,
11374         * (pic16_popCombine2): modified to receive already allocated pCode
11375         operands,
11376         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
11377         * (genFunction): initializes local stack frame and pushes on stack
11378         all the registers used by this function,
11379         * (genEndFunction): restores all registers from stack and restores
11380         stack frame,
11381         * src/pic16/glue.c (pic16emitRegularMap): various changes and
11382         improvements,
11383         * (pic16glue): changed the program startup sequence,
11384         * added new dbName code 'A' for functions placed in absolute section
11385         * src/pic16/main.c: added function attribute _naked,
11386         * added pragma 'code' to place a fnuction at an absolute address,
11387         * added command line arguments --debug-ralloc and --pcode-verbose,
11388         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
11389         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
11390         * (pic16_newpCodeOpLit2): modified to take the second operand as
11391         pCodeOp pointer,
11392         * (pic16_printpBlock): modified to emit each function in a separate
11393         section,
11394         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
11395         UPPER for immediate operands,
11396         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
11397         instruction,
11398         * src/pic16/peeph.def: all peepholes with movff are commented out,
11399         because there is a problem in the pcode peep optimizer,
11400         * src/pic16/ralloc.c: the register allocator can now reuse local
11401         function symbols for another function. This saves register usage.
11402         * src/pic16/ralloc.h: added flag isLocal in structure regs,
11403
11404         Added file src/pic16/NOTES with information about program writing on
11405         the current port version.
11406
11407 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11408
11409         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
11410         and peephole 252 (array access)
11411
11412 2004-01-09  Borut Razem <borut.razem AT siol.net>
11413
11414         * src/SDCCmain.c : fixed #872250: -l command line defined library
11415           files are scanned before standard library files
11416
11417 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11418
11419         * src/SDCCast.c (decorateType): fixed bug #874046
11420
11421 2004-01-09  Borut Razem <borut.razem AT siol.net>
11422
11423         * support/scripts/sdcc.nsi: remove previous installation
11424
11425 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11426
11427         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
11428         bytes for last interrupt vector (mcs51)
11429         * sdcc.spec: fixed typo
11430
11431 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11432
11433         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
11434         gen51Code): more efficient parameter receive for --model-large
11435         ("bug" #845294)
11436
11437 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11438
11439         * src/ds390/main.c,
11440         * src/z80/main.c: added missed needLinkerScript flags (more than
11441         one port structure defined in these file)
11442         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
11443         bug #795325
11444
11445 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
11446
11447         * src/SDCCmain.c: removed various references to DEFAULT_PORT
11448         * src/port.h: added flag needLinkerScript in port->linker
11449         structure to inform whether to create a .lnk file or not,
11450         * src/avr/main.c,
11451         * src/ds390/main.c,
11452         * src/hc08/main.c,
11453         * src/mcs51/main.c,
11454         * src/pic/main.c,
11455         * src/pic16/main.c,
11456         * src/xa51/main.c,
11457         * src/z80/main.c: changed appropriately to configure
11458         needLinkerScript flag
11459         * src/pic/gen.c,
11460         * src/pic16/gen.c (genAddrOf): fixed bug #863624
11461         * src/pic/glue.c: added variable udata_section_name to
11462         override default uninitialized data segment definition for
11463         devices only with SHAREBANK memory (reported from Erik Epetrich)
11464         * (pic14emitOverlay): modified to emit a commented overlay segment
11465         directive when no overlay data exist
11466         * (picglue): modified to emit uninitialized data segment
11467         according to udata_section_name
11468         * src/pic/main.c (_pic14_parseOptions): added command line
11469         options --udata-section-name=[name] to override default
11470         udata definition name
11471         * modified _linkCmd and _asmCmd to include compiler passed
11472         arguments via -W option
11473         * src/pic16/main.c: added $l in _asmCmd, changed extension for
11474         object file from '.rel' to '.o' in port->linker structure,
11475         changed size of fptr from 2 to 3 in port structure
11476
11477 2004-01-07  Borut Razem <borut.razem AT siol.net>
11478
11479         * support/scripts/sdcc.nsi: update PATH
11480         * support/scripts/sdcc.ico: craeted
11481
11482 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
11483
11484         * device/include/Makefile.in: fix install
11485         * doc/Makefile: fix install
11486
11487 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11488
11489         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
11490         in bug #860505
11491         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
11492         how the function variable allocation summary is displayed; also
11493         include information about variables allocated to the overlay
11494         segment
11495
11496 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11497
11498         * as/mcs51/lkmain.c: Help about -Y option
11499         * as/mcs51/lkarea.c: Fixed gcc warnings
11500
11501 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
11502
11503         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
11504         fixed warning
11505         * support/valdiag/tests/overflow.c: added
11506         * src/SDCCast.c (decorateType),
11507         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
11508         LEFT_OP (left shift)
11509
11510 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11511
11512         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
11513         (default behaviour).
11514
11515 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11516
11517         A python script to validate compiler diagnostic messages. It can be
11518         used to verify that sdcc complains about bad c source code and
11519         gives a good location of the error.
11520         * support/valdiag/Makefile,
11521         * support/valdiag/valdiag.py,
11522         * support/valdiag/tests/*
11523
11524 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11525
11526         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
11527         * src/SDCCsymt.c (newEnumType),
11528         * src/SDCCsymt.h
11529         * support/Util/SDCCerr.c,
11530         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
11531         enum related bugs.
11532         * support/regression/tests/enum.c: added test for enum values that
11533         require at least 2 bytes of storage.
11534
11535 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
11536
11537         * src/common.h: added ifndef/define/endif macros
11538         around the header file.
11539         Bug reported from Jesus Calvino-Fraga
11540
11541 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
11542
11543         * sdcc.spec: updated
11544         * device/include/Makefile.in: don't install CVS directories
11545         * device/lib/Makefile.in: added removal of CVS directories after install
11546         * doc/Makefile: fixed install, added local_icons
11547         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
11548         * src/mcs51/gen.c (genRightShift): fixed bug #870788
11549         * src/ds390/gen.c (genRightShift): fixed bug #870788
11550         * src/SDCCast.c (decorateType): fixed bug #870781
11551
11552 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
11553
11554         PIC16 port related changes:
11555         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
11556         added variable stackPos,
11557
11558         * gen.c: genCall, assignResultValue: added support for
11559         pushing/retrieving function parameters to/from stack,
11560         genFunction,genEndFunction: setup stack frame for the
11561         generated function,
11562         genAddrOf: will be changed according to bug 863624
11563
11564         * added files genutils.c and genutils.h which contain gen*
11565         debugged and optimised functions extracted from gen.c
11566
11567         * glue.c: added variable 'externs' which holds extern symbols,
11568         pic16emitRegularMap: is modified to properly handle relocatable
11569          symbols under the new scheme,
11570         pic16createInterruptVect: is modified
11571         pic16printPublics: is modified to emit 'global' assembler directives,
11572         added pic16_printExterns to print extern symbols,
11573         pic16glue: initializes stack/frame pointer in the beginning of
11574         the assembly output. Temporary hack, will be corrected later,
11575         because gplink yet does not support stack and SDCC does not
11576         yet support a type of crt0.o object to create the final binary.
11577
11578         * Removed many lines that contain 8051 legacy code.
11579         * The code is finally placed under a 'code' directive.
11580         * Added port specific options.
11581
11582         * _process_pragma: simplified since now we do not need *special*
11583         include file to define SFR registers. But a separate header
11584         will be needed. This will be developed later.
11585         * _pic16_parseOptions: added, parses port specific options:
11586         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
11587         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
11588         --preplace-udata-with=
11589
11590         * _pic16_setDefaultOptions: modified to initialize section names,
11591         but hack is temporarly out of order since it needs improvement.
11592         * _pic16_genAssemblerPreamble: configuration words are emitted by
11593         their address instead of their name. This part is incomplete and
11594         supports only the 18Fxx2 devices. Other devices will emit an error
11595         during assembly since they do not contain the same set of config
11596         registers
11597         * _pic16_genIVT: is modified,
11598
11599         * pcode.c: added definitions for some hardware registers that are needed
11600         for stack support
11601         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
11602         All PCI entries are updated. Now LFSR is supported.
11603         * Removed pic16_pciTRIS is mentioned by mdubuc in source
11604         * added pic16_newpCodeOpLit2 to support instructions with
11605         two literal arguments
11606         * pic16_pCode2str: corrected code that emits assembler instructions
11607         with two literal operands and those that have an access bit modifier
11608         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
11609         this fixes a bug which caused some labels to be lost, when an
11610         assembler directive was added, i.e. banksel,
11611         * pic16_FixRegisterBanking: improved logic that causes the insertion
11612         of bank switching,
11613         * InlineFunction: functions that are called once, are not any more
11614         inlined. This can be a port option in the future,
11615
11616         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
11617
11618         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
11619         hold the corresponding uninitialized symbols,
11620         * pic16_allocProcessorRegister: registers have explicit marked the
11621         accessBank field,
11622         * pic16_allocInternalRegister: registers are explicit marked as
11623         not used,
11624         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
11625         processing list, so bit registers were lost,
11626         *
11627
11628         * ralloc.h: added field 'accessBank' and original symbol operand
11629         in register definition,
11630         * removed the field isMapped from register definition,
11631
11632         ** Several functions have been removed from various sources:
11633         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
11634         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
11635         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
11636         pic16_assignRelocatableRegisters
11637
11638         ** others have been introduced:
11639         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
11640         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
11641
11642 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
11643
11644         * support/scripts/inc2h.pl: changed definition of BIT_AT
11645         to emit 'sbit at' instead of 'bit at'. This was a request.
11646
11647         PIC16 port related preliminary changes:
11648         * gen.c: prefixed function popRegFromString with
11649         pic16_ and all references to it corrected
11650         * pcode.c: all pic16_pc_* hardware registers prefixed
11651         with underscore (_),
11652         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
11653         * ralloc.c: newReg(): when register is REG_SFR then
11654         set address to rIdx,
11655         pic16_allocProcessorRegister(): marks register wasUsed=0
11656         pic16_writeUsedRegs(): added a call to assign processor
11657         registers via pic16_assignFixedRegisters
11658
11659 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11660
11661         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
11662         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
11663         variables in unused register banks.  Also the SSEG is placed
11664         wherever there is enough space for it, and IDATA can be anywhere
11665         in internal RAM.  For now compile using -Wl-Y[stack_size].
11666         The mem file is different for this option as well, since it
11667         makes no sense of talking about DSEG lenght.
11668
11669 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
11670
11671         * src/SDCClrange.c: fixed bug 869095 that caused segfault
11672         in certain cases, e.g. when ROM assignment, patch provided
11673         from Albert den Haan.
11674
11675 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
11676
11677         Many signedness and type propagation fixes:
11678         * src/SDCCicode.c: made geniCodeCast() static
11679         replaced SPEC_ by IS_ (cosmetic)
11680         (operandOperation): fixed div and mod operation
11681         (usualBinaryConversions): added support for promotion of char
11682         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
11683         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
11684         (geniCodeAdd): an array index will stay unsigned, even if promoted
11685         from char to int
11686         (geniCodeArray): ditto
11687         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
11688         * src/SDCCsymt.c (computeType): added more support for char;
11689         promotion of char is selectable by promoteCharToInt, fixed signedness
11690         for all cases
11691         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
11692         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
11693         * src/SDCCval (val*): replaced signedness calculation by
11694         computeType()
11695         rearranged if-branches (cosmetic)
11696         (valShift): added warning W_SHIFT_CHANGED
11697         (valCompare): fixed problem with different types
11698         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
11699         * support/regression/tests/literalop.c: added many cases
11700         * support/regression/tests/ast_constant_folding.c: changed finally to
11701         'unsigned int'
11702         * .version: new year, new version: 2.3.7
11703         * src/SDCCmain.c (main): applied patch #866468
11704         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
11705         provided by Scott Bronson
11706         * doc/sdccman.lyx: updated documentation for sdcdb
11707         updated and added chapter tips
11708
11709 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11710
11711         * src/SDCCsymt.h: missing from yesterday's commits
11712
11713 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11714
11715         * src/SDCC.y (struct_or_union_specifier),
11716         * support/Util/SDCCerr.c,
11717         * support/Util/SDCCerr.h: verify that struct & union tags are used
11718         as declared.
11719
11720 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11721
11722         * src/SDCCglobl.h: missing from yesterday's commits
11723
11724 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11725
11726         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
11727         sft_attributes, struct_declaration, parameter_declaration,
11728         type_name, start_block, declaration_list),
11729         * src/SDCC.lex (check_type): support redefinition of typedef names
11730
11731 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11732
11733         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
11734         aligned xdata arrays. Erik helped me with the if clause.
11735
11736 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11737
11738         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
11739         warning
11740
11741 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11742
11743         * src/SDCCast.h,
11744         * src/SDCCast.c (newAst_),
11745         * src/SDCCicode.h,
11746         * src/SDCCicode.c (ast2iCode, newiCode),
11747         * src/SDCCglobl.h,
11748         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
11749         expr, statement, expression_statement, selection_statement,
11750         iteration_statement, expr_opt, jump_statement): foundation for tracking
11751         sequence points
11752         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
11753         point code too)
11754
11755 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11756
11757         * support/Util/SDCCerr.c,
11758         * src/SDCCast.h,
11759         * src/SDCCast.c (createCase, createDefault, decorateType),
11760         * src/SDCClabel.c (labelUnreach),
11761         * src/SDCC.y (labeled_statement, jump_statement): More improvements
11762         to error messages.
11763         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
11764         (with thanks to Stas Sergeev)
11765         * device/include/time.h,
11766         * device/lib/time.c (CheckTime): suppress unreachable code warning
11767
11768 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11769
11770         * src/SDCCast.c (createIvalCharPtr),
11771         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
11772         bug #753752)
11773         * support/regression/tests/nullstring.c: tests for these two bugs
11774
11775 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11776
11777         * support/Util/SDCCerr.h,
11778         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
11779         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
11780         about storage class and 'at' used inside struct or union
11781         * src/SDCCBBlock.c (iCodeFromeBBlock),
11782         * src/SDCCcse.c (ifxOptimize),
11783         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
11784         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
11785         printIval, emitStaticSeg, emitOverlay),
11786         * src/SDCClabel.c (deleteIfx),
11787         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
11788         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
11789         gatherAutoInit, processParms),
11790         * support/Util/SDCCerr.h,
11791         * support/Util/SDCCerr.c (werrorfl): Support for better error location
11792         reporting for post-parse errors.
11793
11794 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11795
11796         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
11797         implicit casts via union; they don't work on big endian systems
11798         (possible fix for bug #861138)
11799
11800 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11801
11802         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
11803         * src/mcs51/main.c: fixed the fix for bug #737001
11804
11805 2003-12-15  Borut Razem <borut.razem AT siol.net>
11806
11807         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
11808
11809 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11810
11811         * support/makebin/makebin.c: put output in binary mode
11812
11813 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11814
11815         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
11816         xdata and data memory on startup. Set the environment variable
11817         SDCC_NOGENRAMCLEAR to disable this.
11818         * src/mcs51/peephole.def,
11819         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
11820         (allows non-interrupt and interrupt code to safely compete for a resource
11821         without the non-interrupt code having to disable interrupts)
11822
11823 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11824
11825         * src/SDCCicode.c (geniCodeAdd),
11826         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
11827         with valFromType if type might be a pointer and host is big endian).
11828         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
11829         types, not just integer types.
11830         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
11831         multiply defined with mismatching "at" address.
11832
11833 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11834
11835         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
11836         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
11837         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
11838         with embedded nulls (fixed bug #753752)
11839
11840 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11841
11842         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
11843         Apparently this did not see much testing (endless loop)
11844
11845 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11846
11847         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
11848
11849 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11850
11851         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
11852         gracefully handle NULL memmap pointers
11853
11854 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11855
11856         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
11857         instead of deleting the iCode when an operand is volatile
11858         * src/z80/gen.c (genDummyRead),
11859         * src/mcs51/gen.c (genDummyRead),
11860         * src/ds390/gen.c (genDummyRead),
11861         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
11862         not just IC_RIGHT
11863         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
11864         * src/SDCC.y: fixed bug #850420
11865
11866 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11867
11868         Applied z80 i/o port patch from Peter Townson and fixed some operators
11869         to better handle operands in A register.
11870         * device/include/z180.h
11871         * src/SDCC.y
11872         * src/SDCCglue.c
11873         * src/z80/gen.c
11874         * src/z80/gen.h
11875         * src/z80/main.c
11876         * src/z80/peeph-z80.def
11877         * src/z80/peeph.def
11878         * src/z80/z80.h
11879
11880 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11881
11882         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
11883
11884 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11885
11886         * device/lib/hc08/_mullong.c: Removed extra #endif
11887
11888 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11889
11890         * sim/ucsim/hc08.src/inst.cc,
11891         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
11892         carries from x to h
11893         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
11894         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
11895         * device/include/stdarg.h: fixed varargs for hc08
11896         * device/lib/Makefile.in,
11897         * device/lib/hc08/Makefile,
11898         * device/lib/hc08/_mulint.c,
11899         * device/lib/hc08/_mullong.c: fixed some endian problems
11900
11901 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11902
11903         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
11904         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
11905         * device/lib/_gptrget.c,
11906         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
11907
11908 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11909
11910         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
11911         * src/SDCCast.c (astErrors): fixed bug #846007
11912         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
11913
11914 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11915
11916         * src/SDCCast.c (decorateType): disabled a transformation I added in
11917         revision 1.188 (access to fields of a structure at an absolute address);
11918         it breaks with bitfields, extern declarations, and gcse analysis.
11919         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
11920         could be assigned through a pointer, so don't complain.
11921         * src/SDCCast.c (astErrors),
11922         * src/SDCCast.h,
11923         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
11924
11925 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
11926
11927         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
11928         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
11929         output of __config directives, since gpasm now supports them
11930         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
11931         pre-processor macro, i.e. -DMCU=p18f452
11932         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
11933         and modified to handle 'cast' icode similarly to '=' icode
11934         * src/pic16/device.h (typedef struct PIC_device): added field
11935         'extMIface' to indicate that chip has external memory interface
11936         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
11937         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
11938         18F8720
11939
11940 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11941
11942         * src/SDCC.y (pointer): fixed bug #846006
11943         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
11944         * src/SDCCast.c (decorateType): fixed bug #846009
11945         * src/ds390/peeph.def,
11946         * src/ds390/gen.c (genAnd, genOr),
11947         * src/mcs51/peeph.def,
11948         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
11949
11950 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11951
11952         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
11953         * src/SDCCdflow.c
11954         * src/SDCCcse.c
11955         * src/SDCCcse.h
11956         * src/SDCCBBlock.h
11957         * src/SDCCBBlock.c
11958
11959 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
11960
11961         fixed bug #845089
11962         * src/SDCCbitv.h,
11963         * src/SDCCbitv.c: added function to free a bitvector
11964         * src/SDCClrange.h,
11965         * src/SDCClrange.c: added function to recompute the liveranges
11966         * src/avr/ralloc.c,
11967         * src/ds390/ralloc.c,
11968         * src/hc08/ralloc.c,
11969         * src/mcs51/ralloc.c,
11970         * src/pic/ralloc.c,
11971         * src/pic16/ralloc.c,
11972         * src/xa51/ralloc.c,
11973         * src/z80/ralloc.c: recompute the liveranges after register packing
11974
11975 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
11976
11977         * src/SDCCloop.c (newInduction): fixed bug #845630
11978
11979 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11980
11981         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
11982         inadvertantly left behind from my 2003-11-12 change
11983
11984 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11985
11986         Updated headers I neglected to commit yesterday.
11987         * src/SDCClrange.h,
11988         * src/SDCCicode.h
11989
11990 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11991
11992         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
11993         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
11994         * src/SDCCopt.c (eBBlockFromiCode),
11995         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
11996         the creation of the key hash table from the sequencing so it can be used
11997         earlier (for some GCSE bug fixes still pending)
11998
11999 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12000
12001         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
12002         * support/regression/tests/addsub.c: testing genPlus shortcut
12003
12004 2003-11-15  Borut Razem <borut.razem AT siol.net>
12005
12006         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
12007
12008 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12009
12010         * src/SDCCcse.c (cseBBlock): fixed bug #527779
12011         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
12012         ordering is immaterial.
12013         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
12014
12015 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12016
12017         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
12018         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
12019         (SIGSEV) of bug #840381
12020         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
12021         unlink new file before rename if new and old filenames are the same)
12022
12023 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12024
12025         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
12026         uninitialized variables) for the mcs51. Set environment variable
12027         SDCC_GENRAMCLEAR to test.
12028         xdata initialization slightly shorter
12029
12030 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12031
12032         * src/SDCCsymt.h,
12033         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
12034         #838241 & 780691 (basicly the same bug)
12035         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
12036         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
12037
12038 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
12039
12040         * src/SDCCmain.c (linkEdit): "fix" #834252
12041
12042 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12043
12044         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
12045         * src/SDCCast.h,
12046         * src/SDCC.y: fixed bug #819403
12047
12048 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12049
12050         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
12051         the reentrant attribute.
12052         * src/hc08/gen.c (genPackBits): added missing stack readjustment
12053         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
12054         simulation
12055         * src/SDCCast.c (decorateType): fixed bug with storage class not being
12056         updated during pointer dereference; f.e. ~(((char *)1)*) was being
12057         erroneously reduced to a literal.
12058         * src/hc08/ralloc.c (packRegisters, rematStr),
12059         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
12060         some cases
12061
12062 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12063
12064         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
12065         * doc/sdccman.lyx: changed from 'article' to 'book'
12066         * doc/Makefile: readded test_suite_spec and cdbfileformat
12067
12068 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
12069
12070         * device/include/stdlib.h: include malloc.h to comply with ANSI
12071         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
12072
12073 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12074
12075         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
12076         * doc/clean.mk: also remove *.out files
12077         * doc/sdccman.lyx: some additions, larger top/bottom margins
12078
12079 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12080
12081         * src/SDCC.y: fixed bug #837365
12082         * support/regression/tests/bitopcse.c
12083         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
12084         a symbol (might be valop instead)
12085         * device/lib/Makefile.in: added errno.c to HC08SOURCES
12086         * device/lib/clean.mk: added hc08 to the cleaning list
12087
12088 2003-11-04  Borut Razem <borut.razem AT siol.net>
12089
12090         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
12091           made 2003-11-04
12092         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
12093           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
12094           malloc is declared in standard stdlib.h
12095
12096 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12097
12098         * device/lib/hc08/Makefile: need to clean .rel not .o files
12099         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
12100
12101 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12102
12103         * src/port.h,
12104         * src/hc08/main.c,
12105         * src/mcs51/main.c,
12106         * src/ds390/main.c,
12107         * src/z80/main.c,
12108         * src/avr/main.c,
12109         * src/pic/main.c,
12110         * src/pic16/main.c,
12111         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
12112         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
12113         tests (which uses the port's oclsExpense function)
12114         * src/SDCC.y,
12115         * src/SDCCast.c,
12116         * src/SDCCicode.c,
12117         * src/hc08/gen.c,
12118         * src/ds390/gen.c,
12119         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
12120
12121 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12122
12123         * src/SDCCcse.c (ifxOptimize),
12124         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
12125         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
12126         deleting the IFX iCode.
12127         * src/hc08/ralloc.c: reduced unneeded slocs
12128         * src/hc08/gen.c: fixed bug in asmopToBoolean
12129
12130 2003-11-04  Borut Razem <borut.razem AT siol.net>
12131
12132         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
12133           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
12134           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
12135           transferred to configure
12136
12137 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
12138
12139         Use headers defined in the C[++] standards:
12140         * sim/ucsim/gui.src/serio.src/fileio.cc
12141         * sim/ucsim/gui.src/serio.src/frontend.cc
12142         * sim/ucsim/gui.src/serio.src/main.cc
12143         * sim/ucsim/gui.src/serio.src/posix_signal.cc
12144         * support/Util/NewAlloc.c
12145         * as/hc08/lklibr.c
12146         * as/mcs51/lklibr.c
12147         * as/z80/aslist.c
12148         * as/z80/assym.c
12149
12150 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12151
12152         * Added MSVC projects for hc08 assembler and linker:
12153         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
12154         /as/hc08/link_hc08.dsp
12155
12156 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
12157
12158         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
12159
12160 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
12161
12162         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
12163
12164 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12165
12166         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
12167
12168 2003-10-31  Borut Razem <borut.razem AT siol.net>
12169
12170         * support/cpp2/cpplib.h,
12171           support/cpp2/cpplib.c,
12172           support/cpp2/cpplex.c,
12173           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
12174           to switch _asm block preprocessing on / off. Default is
12175           #pragma preproc_asm +
12176
12177 2003-10-31  Borut Razem <borut.razem AT siol.net>
12178
12179         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
12180           when outputting comment blocks (when executed with -C option) and
12181           _asm (SDCPP specific) blocks
12182
12183 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12184
12185         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
12186
12187 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
12188
12189         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
12190
12191 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
12192
12193         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
12194         * src/SDCCast.c (decorateType): fixed bug #832664
12195
12196 2003-10-31  Borut Razem <borut.razem AT siol.net>
12197
12198         * support/cpp2/cpplex.c: fixed for SDCPP:
12199           comments(when executed with -C option) and _asm blocks
12200           were included even if they where in skipped #if block.
12201           Applied solution from GCC cpp 3.3.2
12202
12203 2003-10-31  Borut Razem <borut.razem AT siol.net>
12204
12205         * src/SDCC.lex: sdcc now understands both formats:
12206           '# <line_number> <file_name>' and
12207           '#line <line_number> <file_name>'
12208         * support/cpp2/cppmain.c: sdcpp now generates the standard
12209           '# <line_number> <file_name>' instead of former
12210           '#line <line_number> <file_name>'
12211
12212 2003-10-30  Borut Razem <borut.razem AT siol.net>
12213
12214         * support/cpp2/cpphash.h,
12215         * support/cpp2/cpplib.h
12216         * support/cpp2/cpplex.c,
12217         * support/cpp2/cppmain.c,
12218         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
12219
12220 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12221
12222         Fixed a number of problems revealed by bug #827883.
12223         * src/SDCCloop.c (loopInvariants): Spill location of the
12224         result operand should be recomputed if extracted from
12225         a loop. Also, don't extract assignments of an iTemp
12226         from a literal.
12227         * src/SDCCast.c (isConformingBody): loop reversal should
12228         not occur if the control variable is involved with a
12229         relational operator.
12230
12231 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
12232
12233         * .version: bumped to 2.3.6 to reflect the big improvements
12234         made by Erik and Klaus. Thanks!
12235
12236 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
12237
12238         Replaced the livrange code.
12239         * src/SDCClrange.c: added new LR code
12240         * src/SDCCloop.c,
12241         * src/SDCCBBlock.h: removed remainig parts from old LR code
12242         * src/ds390/ralloc.c,
12243         * src/ds390/gen.c: minor fixes to make it work with new code
12244
12245 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12246
12247         * as/hc08/asm.h,
12248         * as/hc08/lkrloc.c,
12249         * src/hc08/gen.c,
12250         * src/hc08/ralloc.c: Fix various warnings related to the hc08
12251         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
12252         (tweaked fix for bug #818696)
12253
12254 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12255
12256         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
12257
12258 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12259
12260         * src/SDCCmain.c,
12261         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
12262         * src/mcs51/gen.c (gencjneshort),
12263         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
12264         more efficient (per Scott Bronson's suggestion)
12265
12266 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12267
12268         Extended the semantics of the critical keyword to include
12269         individual statements. See RFE #827755 and #799831
12270         * src/SDCC.y
12271         * src/SDCCicode.c
12272         * src/SDCCopt.c
12273         * src/SDCCast.c
12274         * support/Util/SDCCerr.c
12275         * support/Util/SDCCerr.h
12276         * src/mcs51/gen.c
12277         * src/ds390/gen.c
12278         * src/hc08/gen.c
12279
12280 2003-10-19  Borut Razem <borut.razem AT siol.net>
12281
12282         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
12283
12284 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12285
12286         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
12287         Fixed bug #818696
12288         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
12289         and predecrement operand is displayed
12290
12291 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
12292
12293         * src/SDCCval.c (valMinus): fixed bug #826041
12294
12295 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12296
12297         Some hc08 related updates that I missed earlier
12298         * sim/ucsim/stypes.h
12299         * support/regression/ports/hc08/spec.mk
12300
12301 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12302
12303         New target "hc08" for the Motorola 68hc08 family of micros
12304
12305         * configure
12306         * configure.in
12307         * Makefile
12308         * src/hc08/*
12309         * src/SDCCmain.c
12310         * src/port.h
12311         * sim/ucsim/hc08.src/*
12312         * sim/ucsim/configure.in
12313         * src/ucsim/configure
12314         * sim/ucsim/packages_in.mk
12315         * as/hc08/*
12316         * as/Makefile
12317         * device/include/mc68hc908qy.h
12318         * device/lib/hc08/*
12319         * device/lib/Makefile.in
12320         * support/regression/ports/hc08/*
12321         * support/regression/Makefile
12322
12323 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12324
12325         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
12326         regression test
12327         * src/ds390/gen.c (genCast): fixed bug #821957
12328
12329 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
12330
12331         * device/lib/logf.c: "fixed" overlay bug
12332         * support/regression/ports/host/spec.mk: added m library
12333         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
12334         * support/regression/tests/float_trans: added (for Eric)
12335
12336 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
12337
12338         * src/mcs51/gen.c (genCpl): fixed bug
12339         http://sf.net/mailarchive/message.php?msg_id=6263915
12340
12341 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
12342
12343         * src/SDCCast.c (decorateType): added extended constant folding
12344         * src/SDCCsymt.c (computeType): cleanup
12345         * src/SDCCval.c (valShift): minor optimization
12346         * support/regression/tests/ast_constant_folding.c: added
12347
12348 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12349
12350         * src/SDCCmain.c: removed some unintended changes
12351
12352 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12353
12354         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
12355         * src/z80/gen.c: fixed part of bug #817589
12356         * src/SDCCsymt.c (checkFunction): fixed bug #817895
12357
12358 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
12359
12360         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
12361         * src/SDCCcflow.c
12362         * src/SDCCcse.c
12363         * src/SDCCdflow.c
12364         * src/SDCClabel.c
12365         * src/SDCClrange.c
12366         * src/SDCCmem.c
12367         * src/SDCCopt.c
12368         * src/SDCCpeeph.c
12369         * src/SDCCset.c
12370         * src/avr/ralloc.c
12371         * src/ds390/ralloc.c
12372         * src/izt/ralloc.c
12373         * src/mcs51/ralloc.c
12374         * src/pic/ralloc.c
12375         * src/pic16/ralloc.c
12376         * src/xa51/ralloc.c
12377         * src/z80/ralloc.c
12378         * src/z80/gen.c: removed unused label "release:"
12379
12380 2003-10-06  Borut Razem <borut.razem AT siol.net>
12381
12382         * src/SDCC.lex: removed definition of unused variables
12383           save_optimize and save_options
12384
12385 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
12386
12387         * clean.mk: removed '=' in "-maxdepth=1"
12388         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
12389         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
12390
12391 2003-10-06  Borut Razem <borut.razem AT siol.net>
12392
12393         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
12394           my_unput() replaced by unput()
12395
12396 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
12397
12398         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
12399         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
12400         type-punned pointer will break strict-aliasing rules"
12401         Old LR behaviour is again default; Klaus' LR can be choosen by
12402         defining the environment variable LRKLAUS
12403         * src/SDCCBBlock.h
12404         * src/SDCCloop.c
12405         * src/SDCClrange.c
12406         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
12407         * clean.mk: fixed removal of files in bin/CVS/
12408         * device/lib/clean.mk: fixed removal of directories small and large
12409         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
12410         * src/SDCCicode.c,
12411         * src/SDCCval.c: removed superflous test for pedantic
12412
12413 2003-10-05  Borut Razem <borut.razem AT siol.net>
12414
12415         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
12416           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
12417           message "unmatched #pragma SAVE and #pragma RESTORE"
12418
12419 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12420
12421         * doc/sdccman.lyx: various additions and updates (interrupts, inline
12422           assembly, critical functions, atomic, nojtbound)
12423
12424 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
12425
12426         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
12427         * src/SDCCBBlock.h
12428         * src/SDCCloop.c
12429         * src/SDCCloop.h
12430         * src/SDCClrange.c
12431
12432 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12433
12434         * src/z80/gen.h,
12435         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
12436         * src/mcs51/gen.h
12437         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
12438         * src/ds390/gen.h
12439         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
12440         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
12441         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
12442
12443 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12444
12445         * src/z80/gen.c (genRet): fixed bug #524753
12446         * src/z80/gen.c (genCast): fixed internal error on cast from
12447         pointer to long
12448         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
12449         fix for bug #477835 to the z80
12450         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
12451         for tracking iCodes in the peephole optimizer for z80
12452
12453 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12454
12455         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
12456         the other part of bug #814548
12457         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
12458
12459 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
12460
12461         * src/SDCCcse.c: fixed part of bug #814548
12462
12463 2003-09-28  Borut Razem <borut.razem AT siol.net>
12464
12465         * src/asm.c: rewrite of printILine() to use temporary file instead
12466           a pipe
12467         * src/xa51/main.c: commented out declaration of int rewinds
12468
12469 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12470
12471         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
12472
12473 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12474
12475         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
12476         * src/asm.c (printILine): Fixed bug #811015
12477
12478 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12479
12480         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
12481         freeing.
12482
12483 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12484
12485         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
12486         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
12487         to correctly handle general case of AOP_PAIRPTR
12488         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
12489
12490 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12491
12492         * src/mcs51/ralloc.c (fillGaps),
12493         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
12494         register positioning bug)
12495
12496 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
12497
12498         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
12499
12500 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12501
12502         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
12503         genCodePointerGet, genGenPointerGet, genFarPointerSet,
12504         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
12505         (ralloc doesn't intentionally do this now, but perhaps later)
12506         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
12507         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
12508         register positioning bugs (Fixed bug #762602 and #795325)
12509         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
12510         (Fixed bug #808779)
12511         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
12512         lines that --i-code-in-asm generates
12513
12514 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12515
12516         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
12517         trying to fclose a FILE* that was already closed.
12518
12519 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12520
12521         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
12522         of const struct should be treated as if const themselves)
12523
12524 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
12525
12526         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
12527
12528 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12529
12530         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
12531         Unix (/n) and DOS (/r/n) line terminations.
12532
12533 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12534
12535         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
12536         bug #613775
12537
12538 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12539
12540         * src/mcs51/gen.c (genFunction, genEndFunction),
12541         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
12542         and restore of EA so that stack offsets to parameters are
12543         correct when using both critical and reentrant/stack-auto.
12544         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
12545         size (can be triggered in error if sloc is shared between
12546         different sized objects)
12547         * device/include/float.h: fixed macros to explicitly use
12548         unsigned long where needed
12549
12550 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
12551
12552         Feature req. 799831: added code to allow nesting of critical functions
12553         * src/mcs51/gen.c (genFunction, genEndFunction)
12554         * src/ds390/gen.c (genFunction, genEndFunction)
12555
12556 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12557
12558         * src/SDCCsymt.c (sclsFromPtr),
12559         * src/SDCCsymt.h,
12560         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
12561         support for standard C idiom of memory mapped variables; for
12562         example, *((xdata int*)0x1234) = 1 is now internally equivalent
12563         to xdata int at 0x1234 tempvar = 1.
12564         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
12565         provided by Akiya ISHIDA
12566
12567 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
12568
12569         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
12570         * src/SDCCval.c (constVal): added reduction from int to char
12571         * src/SDCCval.c (valMult, valDiv): fixed sign handling
12572         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
12573         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
12574         to ignore the sign
12575         * support/regression/tests/shifts.c: fixed
12576
12577 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12578
12579         * src/z80/gen.c (genXor): Fixed bug #805445
12580
12581 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12582
12583         Fixed bug #621531 (const & volatile confusion in the type chain).
12584         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
12585         refer to the const or volatile state of the pointer itself.
12586
12587         * src/SDCCast.c
12588         * src/SDCCglue.c
12589         * src/SDCCicode.c
12590         * src/SDCCsymt.c
12591         * src/SDCCval.c
12592         * src/SDCC.y
12593         * src/SDCCsymt.h
12594         * src/pic/gen.c
12595         * src/pic/ralloc.c
12596         * src/pic16/gen.c
12597         * src/pic16/ralloc.c
12598         * support/regression/tests/const.c
12599
12600 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12601
12602         When checking for duplicated modules, use absolute paths
12603         instead of relative paths.  Files changed:
12604
12605         * as/mcs51/lklib.c
12606         * link/z80/lklib.c
12607
12608 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12609
12610         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
12611
12612 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12613
12614         * device/include/string.h: added size_t typedef, changed
12615         prototypes to use size_t, eliminated separate reentrant and
12616         non-reentrant declarations, added _memmove declaration
12617         * device/lib/_memcpy.c: changed to use size_t instead of int,
12618         changed /4 to >>2 to avoid division library call
12619         * device/lib/_memcmp.c,
12620         * device/lib/_memset.c,
12621         * device/lib/_strncat.c,
12622         * device/lib/_strncpy.c,
12623         * device/lib/_strncmp.c: changed to use size_t instead of int
12624         * device/lib/_memmove.c: new file (fixed bug #772294)
12625         * device/lib/Makefile.in: added _memmove.c
12626         * device/lib/z80/asm_strings.s: fixed bug #772290
12627         * support/regression/tests/bitfields.c: attempt to fix host assertion
12628         failure on amd64-unknown-linux2.2
12629
12630 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12631
12632         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
12633         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
12634         * as/z80/asmain.c (main): fixed bug #801766
12635
12636 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
12637
12638         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
12639         compilers
12640
12641 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12642
12643         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
12644         reported in bug #800609
12645
12646 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
12647
12648         * Top header beautifications in src/pic16 directory:
12649           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
12650           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
12651           pcoderegs.h, ralloc.c, ralloc.h
12652         * main.c: added top header and GPL license notice
12653         * pcode.c: fixed the if-conditional warning
12654
12655 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
12656
12657         * device/lib/_mullong.c: replaced int by short for gcc
12658
12659 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12660
12661         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
12662         and JUMPTABLE iCodes properly now (worked by accident before)
12663         * src/mcs51/gen.c (leftRightUseAcc),
12664         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
12665         iCode properly now. Use getSize instead of nRegs since a & b
12666         aren't part of the nRegs tally.
12667
12668 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
12669
12670         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
12671         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
12672           before instructions that use the _STATUS register
12673
12674 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
12675
12676         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
12677         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
12678         fetching of the pointer
12679         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
12680         copied from genNearPointerSet()
12681         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
12682         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
12683         If they pop r0/r1 they must be called in the opposite order than aopOp().
12684         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
12685         (resp. --stack-auto), prepared for --xstack
12686
12687 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12688
12689         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
12690
12691 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
12692
12693         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
12694         these ports have their own __sdcc_external_start()
12695
12696 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
12697
12698         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
12699         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
12700         type for bits was changed. It resulted in bit variables becoming
12701         global, which is not permitted in PIC 14 assembly output.
12702
12703 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12704
12705         * doc/sdccman.lyx: various additions and updates. Rearranged sections
12706
12707 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12708
12709         Z80 and MCS51 linkers complaint if a public symbol is defined
12710         in more than one library module:
12711
12712         * as/mcs51/lklib.c
12713         * link/z80/lklib.c
12714         * as/mcs51/Makefile.in
12715
12716 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12717
12718         A few small changes that speed up the peephole optimizer.
12719
12720         * src/SDCCpeeph.c
12721
12722 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12723
12724         Try to make the peephole optimizer smarter by maintaining
12725         an association between the assembly source code and the
12726         iCodes that originated them. Put this information to use
12727         with a new peephole rule condition "notVolatile" so that
12728         the rules can be aggressive yet still safe.
12729
12730         * src/SDCCpeeph.c
12731         * src/SDCCpeeph.h
12732         * src/mcs51/gen.c
12733         * src/mcs51/peeph.def
12734
12735 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12736
12737         Fixed bug #741761
12738
12739         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
12740         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
12741         if the left or right operand symbols have the accuse flag set.
12742
12743 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12744
12745         Changed the type of the result of the ! (NOT) operator to char;
12746         previously it returned the same type as the source. This allows
12747         us to eliminate all the genFloatNot functions (all of its target
12748         implementations were very buggy) since !float can use the same
12749         code as !long now.
12750
12751         * src/SDCCicode.c (ast2iCode): ! returns char
12752         * src/mcs51/gen.c (genNot, genNotFloat),
12753         * src/ds390/gen.c (genNot, genNotFloat),
12754         * src/z80/gen.c (genNot, genNotFloat),
12755         * src/pic/gen.c (genNot, genNotFloat),
12756         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
12757
12758 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
12759
12760         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
12761         1. Interrupt would not compile properly. Ensure PCLATH register is saved
12762            during interrupts. Ensure WSAVE is located at a shared bank address.
12763         2. Fixed page selection in some places
12764         3. Fixed BTFSS/C to where necessary use registers directly and not simply
12765            the registers name strings.
12766         4. Fixed "signed / unsigned compare" compiler warnings.
12767         5. The PIC port manages its own allocation of the general purpose
12768            registers, but makes no attempt to reuse them. As a result when
12769            compiling it soon runs out of general purpose registers. Some
12770            additional code was added to the files pcode.c and device.c to walk
12771            through the function call tree and rename the registers so that they
12772            get reused.
12773
12774         * src/pic/device.c
12775         * src/pic/gen.c
12776         * src/pic/glue.c
12777         * src/pic/pcode.c
12778         * src/pic/pcode.h
12779         * src/pic/ralloc.c
12780         * src/pic/ralloc.h
12781         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
12782         genPlus() & genMinus() when the result is the same as left or right
12783
12784 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12785
12786         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
12787
12788 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12789
12790         Made bitfield a distinct type from bit so that bitfields
12791         convert as per ANSI C and bits retain their traditional
12792         boolean style behaviour. Implemented bitfield support in
12793         the z80 port.
12794
12795         * src/SDCCsymt.h,
12796         * src/SDCCsymt.c,
12797         * src/SDCCast.c,
12798         * src/cdbFile.c,
12799         * src/mcs51/gen.c,
12800         * src/ds390/gen.c: bit v bitfield split
12801         * src/z80/gen.c: New support for bitfields
12802         * support/regression/tests/bitfields.c: reenabled z80,
12803         added more tests
12804
12805 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12806
12807         Rules 246.x, 247.x relate to bitfields, the others speed up
12808         access to xdata mapped I/O devices.
12809
12810         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
12811
12812 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12813
12814         Cleaned up genPackBits and genUnpackBits and added two helper
12815         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
12816         for literal assignments in genPackBits (thanks to Frieder for
12817         reminding me).
12818
12819         * src/mcs51/gen.c
12820         * src/ds390/gen.c
12821
12822 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12823
12824         Fixed bug #748310 (pointer to function type mishandled when the
12825         function name is omitted). Also fixed a SIGSEGV when a function
12826         attribute (reentrant, etc) is used on a non-function or on a
12827         function but misplaced before the parameter list.
12828
12829         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
12830         bug #748310
12831         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
12832         * support/Util/SDCCerr.h,
12833         * support/Util/SDCCerr.c: Added func attr misuse error msg
12834
12835 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
12836
12837         Fixed bug #787649 by anonymous
12838         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
12839         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
12840
12841 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12842
12843         Fixed numerous bitfield problems.
12844
12845         * src/SDCC.y: More bitfield related error checking
12846         * src/SDCCsymt.h,
12847         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
12848         * support/Util/SDCCerr.h,
12849         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
12850         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
12851         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
12852         * support/regression/tests/bitfields.c: tests added
12853
12854 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12855
12856         Made the constant following the "interrupt" keyword optional. If
12857         omitted, the function will not automatically be given an entry
12858         in the interrupt vector table (similar to #pragma NOIV, but
12859         less syntacticly kludgy). The interrupt number is also now
12860         range checked. Also fixed a bug in the high order bit example
12861         in the manual.
12862
12863         * src/SDCC.y
12864         * src/SDCCmem.c
12865         * src/SDCCglue.c
12866         * src/SDCCsymt.h
12867         * support/Util/SDCCerr.c
12868         * support/Util/SDCCerr.h
12869         * doc/sdccman.lyx
12870
12871 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
12872
12873         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
12874         * src/SDCCicode.c (operandOperation): rewritten some ops
12875         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
12876         * src/SDCCsymt.c (computeType): literals are handled the same way as any
12877         other type
12878         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
12879         be re-activated by defining REDUCE_LITERALS)
12880         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
12881         unsigned, but are signed by default
12882         * src/SDCCval.c (constVal): rearranged
12883         * src/SDCCval.c (valMod): preliminary fix
12884         * src/SDCCval.c (valCastLiteral): use TYPE_* types
12885         * support/regression/literalop.c: added, work in progress
12886
12887 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12888
12889         Generate warnings for useless declarations like "char data;"
12890         that don't do what new users expect.
12891
12892         * src/SDCC.y
12893         * support/Util/SDCCerr.h
12894         * support/Util/SDCCerr.c
12895
12896 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
12897
12898         * src/SDCCval.c (valMult): fix overflow detection of negative int
12899
12900 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12901
12902         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
12903
12904         Changes to support big endian targets:
12905
12906         * src/ports.h
12907         * src/SDCCglue.c
12908         * src/avr/main.c
12909         * src/ds390/main.c
12910         * src/izt/i186.c
12911         * src/mcs51/main.c
12912         * src/pic/main.c
12913         * src/pic16/main.c
12914         * src/xa51/main.c
12915         * src/z80/main.c
12916
12917 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
12918
12919         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
12920         * device/lib/time.c: fixed warning "integer overflow in expression"
12921
12922 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
12923
12924         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
12925         * src/SDCCval.c (constVal): changed default to signed; hex and octal
12926         constants are unsigned; added recognition of "u" flag for unsigned
12927         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
12928         * src/SDCCval.c (valDiv, valMod): fixed signdness
12929         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
12930         signedness of modulo, left and right shift
12931         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
12932         * support/Util/SDCCerr.h: added warning W_INT_OVL
12933         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
12934         * src/SDCCast.c (ast_print): improved output of constants
12935
12936 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12937
12938         Fixed some warnings when building with MSVC:
12939
12940         * as/mcs51/asdata.c
12941         * as/z80/asdata.c
12942         * as/mcs51/asm.h
12943         * as/z80/asm.h
12944         * link/z80/aslink.h
12945         * link/z80/lkdata.c
12946         * link/z80/lkeval.c
12947         * link/z80/lkgb.c
12948         * link/z80/lkihx.c
12949         * link/z80/lks19.c
12950         * link/z80/lksym.c
12951         * support/cpp2/cpplib.c
12952         * src/ds390/gen.c
12953         * src/mcs51/gen.c
12954
12955 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
12956
12957         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
12958
12959 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12960
12961         * support/librarian/clean.mk: Do not remove Makefile.
12962         * support/librarian/Makefile: added.
12963
12964 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12965
12966         Added librarian to MSVC build:
12967         * all.dsp
12968         * sdcc.dsw
12969         * support/librarian/librarian.dsp
12970
12971         'configure' not needed for librarian, removed:
12972         * support/librarian/configure
12973         * support/librarian/configure.in
12974         * support/librarian/config_in.h
12975         * support/librarian/Makefile.in
12976
12977         Hopefully these ones built the librarian and the rest of sdcc properly:
12978         * Makefile
12979         * Makefile.common.in
12980
12981         Messed up 'configure', so revert to previous version:
12982         * configure
12983         * configure.in
12984
12985 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
12986
12987         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
12988         there, while the mantissa of a double is "only" 53 bits wide.
12989
12990 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12991
12992         Adding sdcclib to the build.  MSVC project coming soon.
12993         Files added/changed:
12994
12995         * support/librarian/clean.mk
12996         * support/librarian/configure
12997         * support/librarian/configure.in
12998         * support/librarian/config_in.h
12999         * support/librarian/Makefile.bcc
13000         * support/librarian/Makefile.in
13001         * support/librarian/sdcclib.c
13002         * Makefile.bcc
13003         * Makefile
13004         * Makefile.common.in
13005         * configure
13006         * configure.in
13007
13008 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13009
13010         Linker now complaints if linked modules have conflicting options, for
13011         example, one compiled using --model-large and another one compiled with
13012         --model-small.  The following files were modified:
13013
13014         * as/mcs51/asdata.c
13015         * as/mcs51/aslink.h
13016         * as/mcs51/asm.h
13017         * as/mcs51/asmain.c
13018         * as/mcs51/asout.c
13019         * as/mcs51/i51pst.c
13020         * as/mcs51/lkdata.c
13021         * as/mcs51/lklibr.c
13022         * as/mcs51/lkmain.c
13023         * as/z80/asdata.c
13024         * as/z80/asm.h
13025         * as/z80/asmain.c
13026         * as/z80/asout.c
13027         * as/z80/z80pst.c
13028         * link/z80/aslink.h
13029         * link/z80/lkdata.c
13030         * link/z80/lklibr.c
13031         * link/z80/lkmain.c
13032         * src/SDCCglue.c
13033
13034 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13035
13036         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
13037         as/mcs51/lklibr.c: Generate a warning when a library is not found.
13038
13039 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
13040
13041         * src/z80/mappings.i: fix _mul[us][int,long] entries
13042
13043 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13044
13045         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
13046
13047 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
13048
13049         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
13050         * support/regression/tests/bitopcse.c: added
13051         fixed warning:
13052         * src/avr/gen.c:
13053         * src/pic/gen.c:
13054         * src/pic16/gen.c:
13055         * src/z80/gen.c:
13056         * src/xa51/gen.c:
13057
13058 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13059
13060         added support for new library format to z80, gbz80 linkers:
13061         *link/z80/aslink.h
13062         *link/z80/lklex.c
13063         *link/z80/lklib.c
13064         *link/z80/lklist.c
13065
13066 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
13067
13068         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
13069         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
13070
13071 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
13072
13073         added DUMMY_READ_VOLATILE:
13074         * src/SDCC.y:
13075         * src/avr/gen.c:
13076         * src/xa51/gen.c:
13077         * src/z80/gen.c:
13078         * src/pic/gen.c:
13079         * src/pic16/gen.c:
13080         * src/mcs51/gen.c:
13081         * src/ds390/gen.c:
13082         * src/SDCCcse.c (algebraicOpts): many improvements
13083         * src/SDCCcse.h: removed algebraicOpts()
13084         * src/SDCCicode.c (picDummyRead): added
13085
13086 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13087
13088         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
13089         "Insufficient space in data memory".
13090
13091 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13092
13093         * src/mcs51/gen.c: fixed bug #771358
13094         * src/z80/gen.c: fixed bug #759087
13095
13096 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
13097
13098         * src/pic16/glue.c: minor cleanup by Vangelis
13099
13100 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13101
13102         * device/include/regc515c.h: fixed #758477
13103         * device/lib/_gptrget.c: saving some cycles in generic pointer get
13104         * device/lib/_gptrput.c: saved a few bytes
13105         * my tab spacing is 8, yours too?)
13106         * device/lib/_ser.c: process RX bytes earlier than TX bytes
13107         * device/lib/serial.c: process RX bytes earlier than TX bytes
13108         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
13109
13110 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13111
13112         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
13113
13114 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13115
13116     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
13117
13118 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
13119
13120         * device/lib/Makefile.in: bad fix, reverted to 1.43
13121
13122 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
13123
13124         * device/lib/Makefile.in: added missing z80 object files
13125
13126 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
13127
13128         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
13129         pic16 progress by Vangelis:
13130         * src/SDCCglobl.h:
13131         * src/SDCCmain.c:
13132         * src/pic/Makefile:
13133         * src/pic:
13134         * pic/Makefile:
13135         * pic16/device.c:
13136         * pic16/device.h:
13137         * pic16/gen.c:
13138         * pic16/gen.h:
13139         * pic16/genarith.c:
13140         * pic16/glue.c:
13141         * pic16/main.c:
13142         * pic16/pcode.c:
13143         * pic16/pcode.h:
13144         * pic16/pcodepeep.c:
13145         * pic16/peeph.def:
13146
13147 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13148
13149     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
13150
13151 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13152
13153     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
13154     added gbz80 build to MSVC project.
13155     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
13156     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
13157     from 8051 stuff and setup so it links using a .lnk file.
13158
13159 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13160
13161     * support/librarian/sdcclib.c: sdcc librarian.
13162     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
13163     with sdcclib.
13164
13165 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13166
13167     * as/mcs51/lkmain.c: properly handle extensions in function afile.
13168
13169 2003-07-02  Borut Razem <borut.razem AT siol.net>
13170
13171         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
13172         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
13173         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
13174         src/xa51/main.c, src/z80/main.c:
13175         virtualization of glue() function: each port has it's own glue function,
13176         which is accessed by do_glue function pointer in PORT.general structure
13177
13178 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
13179
13180         * DS800C400 fun, improved ROM interface and tinibios.
13181
13182 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
13183
13184         * More support for DS80C400. Now includes beginning of interface to ROM.
13185
13186 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
13187
13188         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
13189
13190 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13191
13192         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
13193
13194 2003-06-19  Borut Razem <borut.razem AT siol.net>
13195
13196         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
13197
13198 2003-06-19  Borut Razem <borut.razem AT siol.net>
13199
13200         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
13201         fixed Z80 port - crt0.o: cannot open.
13202
13203 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
13204
13205         * support/Util/MySystem.c (merge_command): revert bad fix
13206
13207 2003-06-18  Borut Razem <borut.razem AT siol.net>
13208
13209         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
13210
13211 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13212
13213         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
13214         option --use-stdout sends errors to stdout instead of stderr.
13215
13216 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
13217
13218         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
13219
13220 2003-06-15  Borut Razem <borut.razem AT siol.net>
13221
13222         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
13223         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
13224         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
13225         fixed width array of pointers replaced with sets;
13226         multiple include and lib paths ared transferred to preprocessor and linker
13227         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
13228         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
13229         fixed width array of pointers
13230         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
13231         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
13232         fixupPath(), getPathDifference()
13233         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
13234         fixed width array of pointers
13235
13236 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
13237
13238         * src/pic16/ralloc.c: fix warnings
13239         * src/pic16/pcode.c: fix warning
13240
13241 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
13242
13243          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
13244         know all the details, but essentially this set of changes enable
13245         the pic16 port to generate movff instructions and generate assembler
13246         directives,
13247         * src/SDCCmain.c:
13248         * src/pic16/gen.c:
13249         * src/pic16/glue.c:
13250         * src/pic16/pcode.c:
13251         * src/pic16/device.c:
13252         * src/pic16/main.c:
13253         * src/pic16/pcode.h:
13254         * src/pic16/pcoderegs.c:
13255         * src/pic16/ralloc.c:
13256         * src/pic16/ralloc.h:
13257
13258 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13259
13260         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
13261         added option --vc, so sdcc errors and warnings are compatible with
13262         Microsoft Visual Studio.
13263
13264 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13265
13266         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
13267           device/lib/libfloat.lib: added atof function.
13268
13269 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
13270
13271         * doc/sdccman.lyx: updated to Lyx 1.3
13272         * doc/cdbfileformat.lyx: updated to Lyx 1.3
13273         * doc/test_suite_spec.lyx: updated to Lyx 1.3
13274         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
13275
13276 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
13277
13278         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
13279
13280 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13281
13282         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
13283           additions to the "related tools/documentation" section
13284
13285 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
13286
13287         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
13288
13289 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
13290
13291         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
13292         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
13293
13294 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
13295
13296         * doc/sdccman.lyx: fix double dash and other minor things
13297         * doc/Makefile: fix double dash
13298
13299 2003-05-28  Karl Bongers(patches from Martin Helmling)
13300         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
13301           condition and ignore commands.
13302
13303 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13304
13305         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
13306           is in parts still quite out of date, I did changes as far as I felt makes sense
13307           for a non-native english speaker.
13308           Please feel free to add to the manual or to correct my changes.
13309         * doc/Makefile: undid touching the date of intermediate tex files.
13310
13311 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13312
13313         * doc/sdccman.lyx: Manual has an index now
13314
13315 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
13316
13317         Finalize muluint/mulsint and mululong/mulslong merging:
13318         * device/lib/_mulint.c
13319         * device/lib/_mullong.c
13320         * device/lib/gbz80/mul.s
13321         * device/lib/gbz80/stubs.s
13322         * device/lib/z80/mul.s
13323         * device/lib/z80/stubs.s
13324         * src/SDCCsymt.c (initCSupport)
13325
13326 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13327
13328         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
13329         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
13330           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
13331           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
13332           instead of /Zm500.
13333
13334 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13335
13336         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
13337           the regression tests I'm not brave enough to enable 245.b, 245.c
13338         * doc/sdccman.lyx: added latex preamble for hyperref package.
13339           Using pdflatex this will give you a hyperlinked pdf file with
13340           bookmarks. (prepend '%' before /usepackage if this breaks something)
13341
13342 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13343
13344          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
13345
13346 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
13347
13348         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
13349
13350 2003-05-21    <johan AT balder>
13351
13352         * src/SDCCglue.c (printIval): fixed bug #739934
13353
13354 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
13355
13356         Applied patch from bug 737905 (renamed yylineo to mylineno):
13357         * src/altlex.c
13358         * src/SDCCast.c
13359         * src/SDCglobl.h
13360         * src/SDCC.lex
13361         * src/SDCCsymt.c
13362         * src/SDCCval.c
13363         * src/pic16/pcode.c: Cleaned warnings
13364         * src/pic16/pcodeflow.c: Cleaned warnings
13365         * src/pic16/pcoderegs.c: Cleaned warnings
13366
13367 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
13368
13369         * src/pic16/pcode.c: Cleaned warnings
13370         * src/pic16/pcodepeep.c: Cleaned warnings
13371         * src/pic16/ralloc.c: Cleaned warnings
13372
13373 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
13374
13375         * doc/sdccman.lyx: fixed bug 739745
13376         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
13377
13378 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
13379
13380         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
13381         it can be defined with CFLAGS when running configure
13382         * src/SDCCmain.c: fixed compiling + linking with object files
13383
13384 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
13385
13386         * configure.in: configure for pic16 port,
13387             added --disable-pic16-port
13388         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
13389         * src/SDCCmain.c: linkOptions is changed to set *,
13390             added if/endif conditional macros to remove options help
13391             messages from optionsTable when a port is not configured, added
13392             support for the PIc16 port in the ports table, when executing
13393             the compiler with no port specified on command line, a default
13394             port is selected with the new macro DEFAULT_PORT which is
13395             defined in port.h, in setDefaultOptions() linkOptions is removed
13396             from initialization assignment, since now it is a set,
13397             parseCmdLine uses setParseWithComma for linkOptions, in
13398             linkEdit() linkOptions are accessed with new function indexSet()
13399             which returns the i'th item of a set variable. See SDCCset.c, in
13400             linkEdit() when calling buildCmdLine(), added linkOptions as
13401             last argument. Now users can pass arguments to gplink via the
13402             -Wl option, main() uses pic16glue() to glue up pic16 programs
13403         * src/SDCCpeeph.c: various changes to support pic16
13404         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
13405             return the i'th item of the set
13406         * src/SDCCset.h: added function prototype for indexSet()
13407         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
13408         * src/clean.mk: added pic16 in CLEANALLPORTS variable
13409         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
13410             added macro DEFAULT_PORT
13411         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
13412         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
13413             generated
13414         * src/pic16/glue.c: commented out some error producing lines
13415         * src/pic16/main.c: __config directives are commented out to stop
13416             gpasm complaining and test the linkage with gplink, _linkCmd and
13417             _asmCmd changed to be more gplink and gpasm friendly
13418         * src/pic16/peeph.def: peep rule 3 is commented out, since it
13419             produced an error when parsed, peep rule 12 is added to utilize
13420             movff, but it is commented out since the pCode does not support
13421             yet a command with 2 address arguments
13422
13423 2003-05-18    <johan AT balder>
13424
13425         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
13426         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
13427 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
13428
13429         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
13430   Added feature to script commands from file.
13431
13432 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
13433
13434         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
13435         * src/SDCCutil.c: include ctype.h for win32
13436
13437 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
13438
13439         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
13440
13441 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
13442
13443         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
13444   Fixed so you can set breakpoints prior to run, run does not stop
13445   on entry now.  Add tbreak.  Other enhancements and fixes for use
13446   with ddd.
13447
13448 2003-05-12  Borut Razem <borut.razem AT siol.net>
13449
13450         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
13451
13452 2003-05-11  Borut Razem <borut.razem AT siol.net>
13453
13454         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
13455         the path of bin directory, so that PATH is the only env. variable, which has to be set
13456         in case of standard installation.
13457         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
13458         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
13459         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
13460
13461 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
13462
13463         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
13464         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
13465         temp files are in the port dir; clean the gen/test directory when
13466         generating new test.c
13467         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
13468         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
13469         * support/regression/tests/zeropad.c: added
13470
13471 2003-05-09    <johan AT balder>
13472
13473         * src/SDCCglue.c: fixed bug #597940
13474
13475 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
13476
13477         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
13478   cache sfr, optimize next,step, fix off by one sourceline,
13479   support ddd list function.
13480         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
13481
13482 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
13483
13484         * support/regression/HTMLgen.py: added compare_s2f()
13485         * support/regression/Makefile: redo 1.27
13486         * support/regression/generate-cases.py: redo 1.5
13487
13488 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
13489
13490         * support/regression/tests/float.c: workaround 33 bit hex constant
13491         * support/regression/tests/simplefloat.c: fix division for host
13492
13493 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
13494
13495         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
13496         that tame's the PIC's over-aggressive optimizer.
13497
13498 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13499
13500          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
13501          support for MSVC.
13502
13503 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
13504
13505         Initial support for DS80C400. "Hello world" runs on TINIm400
13506         (with polled I/O).
13507
13508 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
13509
13510          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
13511          * Some notes on ddd usage added in debugger/README
13512          Martin Helmling adding more features and fixes for ddd GUI debugger.
13513          Code added for nexti, stepi, up, down, and other adjustments.
13514
13515 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
13516
13517         * src/pic/pCodepeep.c non-wildcard asmops are now handled
13518         * src/pic/peeph.def Added two rules to optimize carry manipulation
13519         * src/pic/* removed debug printfs
13520
13521 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
13522
13523         * debugger/mcs51/cmd.c: added header newalloc.h
13524
13525 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
13526
13527         * as/Makefile: new EXEEXT
13528         * as/z80/Makefile: remove trailing slash of BUILDIR
13529         * as/z80/clean.mk: new EXEEXT
13530         * Makefile.common.in: add to CFLAGS (and others), don't replace it
13531         * support/cpp2/Makefile.in: new EXEEXT
13532         * src/pic/glue.c (pic14emitRegularMap): fixed warning
13533
13534 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
13535
13536         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
13537         EXEEXT was introduced to fix all related problems with targets
13538         "clean", "install" and "uninstall"; a couple of further flaws
13539         especially with "clean" have been fixed too
13540         * as/mcs51/Makefile.in
13541         * as/mcs51/clean.mk
13542         * as/z80/Makefile
13543         * Makefile
13544         * clean.mk
13545         * debugger/mcs51/Makefile.in
13546         * debugger/mcs51/clean.mk
13547         * link/z80/Makefile
13548         * link/z80/Makefile.in
13549         * link/z80/clean.mk
13550         * link/Makefile
13551         * packihx/Makefile.in
13552         * packihx/clean.mk
13553         * sim/ucsim/Makefile
13554         * sim/ucsim/clean.mk
13555         * sim/ucsim/avr.src/Makefile.in
13556         * sim/ucsim/avr.src/clean.mk
13557         * sim/ucsim/s51.src/Makefile.in
13558         * sim/ucsim/s51.src/clean.mk
13559         * sim/ucsim/xa.src/Makefile.in
13560         * sim/ucsim/xa.src/clean.mk
13561         * sim/ucsim/z80.src/Makefile.in
13562         * sim/ucsim/z80.src/clean.mk
13563         * sim/ucsim/main_in.mk
13564         * sim/ucsim/packages_in.mk
13565         * sim/ucsim/gui.src/Makefile.in
13566         * sim/ucsim/gui.src/serio.src/Makefile.in
13567         * sim/ucsim/gui.src/serio.src/clean.mk
13568         * src/Makefile.in
13569         * src/clean.mk
13570         * support/cpp2/Makefile.in
13571         * support/cpp2/clean.mk
13572         * support/makebin/Makefile
13573         * support/makebin/clean.mk
13574         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
13575         * doc/sdccman.lyx: --program-suffix no longer needed
13576
13577 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
13578
13579          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
13580          Martin Helmling added support for ddd GUI debugger.
13581          Code added to display assembly, set variables, and other commands
13582          to interface to ddd.
13583
13584 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
13585
13586         * as/Makefile: fix target clean
13587         * as/clean.mk: fix target clean
13588         * as/z80/clean.mk: fix target clean
13589
13590 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
13591
13592         * Makefile.common.in: added  AT EXEEXT AT
13593         * configure.in: removed all mingw32 stuff
13594         * configure: rebuilt from configure.in
13595         * doc/sdccman.lyx: updated section "installation"
13596         * support/scripts/sdcc_mingw32: adapted to configure
13597         * support/scripts/sdcc_cygwin_mingw32: added
13598
13599 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
13600
13601         * src/pic Added object file support for the PIC port
13602         * src/pic Applied patch from Craig Franklin (this started the object file support)
13603         * src/regression Updated the PIC regression tests for object files
13604
13605 2003-04-20  Borut Razem <borut.razem AT siol.net>
13606
13607         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
13608           lklex.c: In function `getfid':
13609           lklex.c:203: warning: array subscript has type `char'
13610         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
13611           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
13612         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
13613           stack handling macros
13614
13615 2003-04-19  Borut Razem <borut.razem AT siol.net>
13616
13617         * "handling space characters in file path" task:
13618         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
13619         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
13620         * support/Util/MySystem.h: make it self-sufficient
13621         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
13622           src/z80/main.c, sdcc/as/mcs51/lklex.c:
13623           handling space characters in file path
13624         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
13625           (it will be used by assemblers, which have their own includes, e.g. gpasm)
13626         * support/Util/MySystem.c: handling space characters in executable's path
13627
13628 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
13629
13630         * as/z80/Makefile: fix permanent rebuild of z80
13631         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
13632         * support/regression/tests/bitfields.c: added Johan's bitfields.c
13633
13634 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
13635
13636         * src/SDCCopt.c: add special case optimization to replace modulo by
13637           a power of two with a bitwise AND.
13638
13639 2003-04-18    <johan AT balder>
13640
13641         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
13642
13643 2003-04-17    <johan AT balder>
13644
13645         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
13646         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
13647
13648 2003-04-13  Borut Razem <borut.razem AT siol.net>
13649
13650         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
13651         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
13652           fixed mingw problem in adl_NORMALIZE_PATH
13653
13654 2003-04-12  Borut Razem <borut.razem AT siol.net>
13655
13656         * fixed "#pragma SAVE/RESTORE can not be nested":
13657         * src/SDCC.lex: reworked pragma handling functions
13658         * sdcc/src/SDCCglobl.h: reworked stack handling macros
13659         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
13660
13661 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
13662
13663         * src/SDCCutil.c (pathEquivalent): defined but not used
13664         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
13665         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
13666         * configure: rebuilt from configure.in
13667         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
13668         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
13669         * device/include/Makefile.in: replace sdcc_datadir
13670         * device/lib/Makefile.in: replace sdcc_datadir
13671         * Makefile.common.in: add LDFLAGS from configure
13672         * packihx/Makefile.in: use LDFLAGS
13673         * src/Makefile.in: use LDFLAGS
13674         * support/cpp2/Makefile.in: add LDFLAGS from configure
13675         * support/makebin/Makefile: use LDFLAGS
13676         * .version: bumped version number to 2.3.5
13677
13678 2003-04-12  Borut Razem <borut.razem AT siol.net>
13679
13680         * completed "different paths" task:
13681         * src/SDCCmacro.c: fixed bug in handling quotes
13682         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
13683         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
13684
13685 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
13686
13687         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
13688
13689 2003-04-11 kevin Vigor <kevin AT vigor.nu>
13690
13691         * ds390/gen.c ds390/peeph.def: fix bug 706781
13692
13693 2003-04-11  Borut Razem <borut.razem AT siol.net>
13694
13695         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
13696
13697 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
13698
13699         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
13700         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
13701          set - this bit used to not be set...).
13702         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
13703           bad code in PIC Port
13704         * src/regression/and2.c added to test bug 609268
13705         * src/regression/Makefile added and2.c to regression test
13706
13707
13708 2003-04-08    <johan AT CP255758-A>
13709
13710         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
13711         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
13712         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
13713
13714 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
13715
13716         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
13717         fix bug #487815
13718         * support/cpp2/Makefile.in: fix bug #487815
13719         * configure: rebuilt from configure.in
13720         * Makefile.common.in: docdir changed, new path suffixes
13721         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
13722         * sdcc_vc_in.h: reflect changes from sdccconf.h
13723         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
13724         * src/SDCCutil.h: remove BINDIR hack
13725         * doc/sdccman.lyx: update new path hierarchy
13726
13727 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
13728
13729         * src/SDCCpeeph.c: added okToRemoveSLOC test
13730
13731 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
13732
13733         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
13734
13735 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
13736
13737         * src/SDCCpeeph.c: added labelIsReturnOnly test
13738         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
13739
13740 2003-04-05    <johan AT balder>
13741
13742         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
13743         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
13744         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
13745         * src/SDCCast.c: fixed a warning
13746         * src/SDCCast.h: fixed a warning
13747         * src/SDCCicode.c (operandFromAst): fixed a warning
13748
13749 2003-04-04    <johan AT balder>
13750
13751         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
13752         * src/SDCCast.c (decorateType): fixed bug #715076
13753         * src/SDCC.y: fixed bug #702907
13754
13755 2003-04-03    <johan AT balder>
13756
13757         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
13758         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
13759         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
13760         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
13761         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
13762
13763 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
13764
13765         * _decdptr.c: fix return values
13766         * _gptrget.c: fix return values
13767         * _gptrgetc.c: fix return values
13768         * _gptrput.c: fix return values
13769         * _mulint.c: fix return values
13770         * as/z80/Makefile: fix 'make -j' problem
13771
13772 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
13773
13774         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
13775         * configure.in: big cleanup, updated to autoconf 2.5x
13776         * configure: rebuilt from configure.in
13777         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
13778         * sdcc_vc_in.h: reflect changes from sdccconf.h
13779         * doc/Makefile: fixed a flaw in "make install"
13780
13781 2003-04-02    <johan AT balder>
13782
13783         * src/ds390/gen.c (genCmp): no comments
13784         * src/mcs51/gen.c (genCmp): no comments
13785         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
13786         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
13787
13788 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
13789
13790         * support/regression/generate-cases.py: place generated file in given sub directory
13791         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
13792         * support/regression/Makefile: improvements for 'make -j';
13793         side effect: it's simpler and faster now
13794
13795 2003-03-31  Borut Razem <borut.razem AT siol.net>
13796
13797         * src/z80/main.c: link-{port} and as-{port} defined without path
13798         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
13799
13800 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
13801
13802         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
13803
13804 2003-03-30  Borut Razem <borut.razem AT siol.net>
13805
13806         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
13807           changed type of list parameter to set
13808         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
13809         * src/port.h: changed type of do_assemble() parameter to set
13810         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
13811           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
13812           definition of "cppoutfilename" macro with NULL value in preProcess()
13813         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
13814         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
13815         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
13816           replaced with set *binPathSet
13817         * shash_add() deallocates the item, if allready exsists, before adding the new one
13818         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
13819
13820 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
13821
13822         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
13823           a nested for loop bug in the PIC port
13824         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
13825           for loops
13826
13827 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
13828
13829         * support/Util/dbuf.h: remove C++ stuff to make it portable
13830
13831 2003-03-28  Borut Razem <borut.razem AT siol.net>
13832
13833         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
13834           literal strings in stringLiteral()
13835         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
13836         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
13837           to the project
13838
13839 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
13840
13841         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
13842
13843 2003-03-26    <johan AT balder>
13844
13845         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
13846         * src/ds390/gen.c (saveRegisters): catched symbol abuse
13847         * src/SDCCast.c (decorateType): fixed " -v < 3"
13848
13849 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
13850
13851         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
13852         Added Lenny Story's debug infrastructure changes:
13853         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
13854         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
13855         * src/cdbFile.c: added
13856         * src/SDCCdebug.c: added
13857         * src/SDCCdebug.h: added
13858         * src/SDCCast.c (createFunction)
13859         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
13860         * src/SDCCmain.c (parseCmdLine, main)
13861         * src/SDCCmem.c (redoStackOffsets)
13862         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
13863         * src/SDCCsymt.h
13864         * src/common.h
13865         * src/avr/gen.c (genAVRCode)
13866         * src/ds390/gen.c (gen390Code)
13867         * src/mcs51/gen.c (gen51Code)
13868         * src/pic/gen.c (genpic14Code)
13869         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
13870         * src/xa51/gen.c (genXA51Code)
13871         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
13872
13873 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13874
13875         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
13876         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
13877
13878 2003-03-22    <johan AT balder>
13879
13880         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
13881
13882 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
13883
13884         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
13885         * doc/cdbfileformat.lyx: added, written by Lenny Story
13886         * doc/Makefile: added cdbfileformat.lyx
13887         * doc/clean.mk: added cdbfileformat.lyx
13888
13889 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
13890
13891         * src/mcs51/peeph.def: fix bug #705773
13892
13893 2003-03-20    <johan AT balder>
13894
13895         An sfr/sbit can have an "at #" AND an initializer
13896         * src/SDCCsymt.c (checkSClass):
13897         * src/SDCCmem.c (allocGlobal):
13898         * src/SDCCmem.c (allocLocal):
13899         * src/SDCCast.c (createBlock):
13900
13901 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
13902
13903         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
13904
13905 2003-03-16    <johan AT balder>
13906
13907         Undid the hackup of const and volatile, the problem is much bigger
13908         * src/SDCC.y:1.65
13909         * src/SDCCast.c:1.171
13910         * src/SDCCglue.c:1.138
13911         * src/SDCCicode.c:1.146
13912         * src/SDCCsymt.c:1.150
13913         * src/SDCCval.c:1.65
13914
13915 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
13916
13917         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
13918         * src/ds390/gen.c (genAddrOf): fixed bug #704087
13919
13920 2003-03-13    <johan AT balder>
13921
13922         Hackup const and volatile modifiers in type chains a bit:
13923         * src/SDCC.y:1.63
13924         * src/SDCCast.c:1.169
13925         * src/SDCCglue.c:1.136
13926         * src/SDCCicode.c:1.143
13927         * src/SDCCsymt.c1.146
13928         * src/SDCCsymt.h1.59
13929         * src/SDCCval.c:1.63
13930
13931 2003-03-12    <johan AT balder>
13932
13933         * src/SDCCBBlock.h: more LRH debugging junk
13934         * src/SDCCcflow.h: more LRH debugging junk
13935         * src/SDCCloop.c: more LRH debugging junk
13936         * src/SDCC.y (struct_declaration): fixed bug #697590
13937         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
13938         * src/ds390/gen.c (aopForRemat): fixed bug #700031
13939         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
13940
13941 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
13942         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
13943         test function names must now match exactly).
13944         * src/SDCCcse.c: added special case in findCheaperOp to allow
13945         extending a short integer. Makes less awful code for bug 700121 test case.
13946
13947 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13948
13949         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
13950         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
13951
13952 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
13953
13954         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
13955         actually called (operandsNotEqual() was called for all
13956         operandsNotEqualX tests).
13957
13958 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
13959
13960         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
13961         with shorter literals. Fixes bug 700121.
13962
13963 2003-03-11    <johan AT balder>
13964
13965         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
13966
13967 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
13968
13969         * src/SDCCloop.c (mergeRegions): an evil beast is dead
13970         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
13971
13972 2003-03-10  Borut Razem <borut.razem AT siol.net>
13973
13974         * src/SDCCmain.c: pipe preprocessor's output
13975         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
13976         * sdcc_vc_in.h: define pclose as _pclose for WIN32
13977         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
13978         which closes all pipes in pipeSet set
13979         * src/SDCCset.c: free deleted item in function deleteSetItem()
13980         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
13981         moved from z80 to src subproject
13982         * .version: increased version number to 2.3.4
13983
13984 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
13985
13986         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
13987         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
13988         * support/regression/ports/xa51/spec.mk: fix typo
13989
13990 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
13991
13992         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
13993
13994 2003-03-09  Borut Razem <borut.razem AT siol.net>
13995
13996         * src/SDCCmain.c: pipe preprocessor's output
13997         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
13998         * sdcc_vc_in.h: define pclose as _pclose for WIN32
13999         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
14000         which closes all pipes in pipeSet set
14001         * src/SDCCset.c: free deleted item in function deleteSetItem()
14002         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
14003         moved from z80 to src subproject
14004
14005 2003-03-09  Borut Razem <borut.razem AT siol.net>
14006
14007         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
14008         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
14009         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
14010         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
14011         * src/SDCCglobl.h: unification of WIN32 native definitions
14012
14013 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14014
14015         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
14016
14017 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
14018
14019         * src/configure.in:   check for endianess (even while cross-compiling)
14020         * src/configure:      check for endianess (even while cross-compiling)
14021         * src/configure_in.h: check for endianess (even while cross-compiling)
14022         * src/avr/gen.c:        remove old endianess stuff
14023         * src/mcs51/gen.c:      remove old endianess stuff
14024         * src/ds390/gen.c:      remove old endianess stuff
14025         * src/pic/gen.c:        remove old endianess stuff
14026         * src/pic/genarith.c:   remove old endianess stuff
14027         * src/pic/glue.c:       fix endianess check
14028         * src/pic16/gen.c:      remove old endianess stuff
14029         * src/pic16/genarith.c: remove old endianess stuff
14030         * src/pic16/glue.c:     fix endianess check
14031         * src/xa51/gen.c:       remove old endianess stuff
14032         * src/z80/gen.c:        fix endianess check
14033         * src/SDCCglue.c:       fix endianess check
14034         * src/ds390/peeph.def: fix bug 700036
14035
14036 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
14037
14038         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
14039         * src/configure: find appropriate data-types on host for SDCC's int and long
14040         * src/configure.in: find appropriate data-types on host for SDCC's int and long
14041         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
14042         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
14043
14044 2003-03-07    <johan AT balder>
14045
14046         Just a big NOOP:
14047                 some minor cleanups before the big shot
14048                 OP_DEFS and OP_USES now use Kevin's protection
14049                 new option --nolabelopt
14050
14051         * src/SDCCBBlock.c:
14052         * src/SDCCast.c,:
14053         * src/SDCCcflow.c:
14054         * src/SDCCcse.c:
14055         * src/SDCCicode.c:
14056         * src/SDCCicode.h:
14057         * src/SDCClabel.c:
14058         * src/SDCCloop.c:
14059         * src/SDCCmain.c:
14060         * src/ds390/ralloc.c:
14061         * src/mcs51/ralloc.c:
14062         * src/pic/ralloc.c:
14063         * src/xa51/ralloc.c:
14064         * src/z80/ralloc.c:
14065
14066 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
14067
14068         * src/pic/pcode.c (get_op): fix 64 bit warnings
14069         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
14070         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
14071         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
14072         * support/regression/tests/malloc.c: fix 64 bit warnings
14073
14074 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
14075
14076         * src/mcs51/gen.c (genMinus): fixed bug 696436
14077
14078 2003-03-02  Borut Razem <borut.razem AT siol.net>
14079
14080         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
14081
14082 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
14083
14084         * configure.in: test for mkstemp
14085         * sdccconf_in.h: add HAVE_MKSTEMP
14086
14087 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
14088
14089         * device/include/ctype.h: removed warning while using --stack-auto
14090         * device/include/malloc.h: removed warning while using --stack-auto
14091         * device/include/string.h: removed warning while using --stack-auto
14092
14093 2003-02-23  Borut Razem <borut.razem AT siol.net>
14094
14095         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
14096         because NDEBUG is defined (see man assert)
14097         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
14098
14099 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14100
14101         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
14102         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
14103
14104 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14105
14106         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
14107         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
14108
14109 2003-02-18    <johan AT balder>
14110
14111         * as/mcs51/asmain.c (asmbl): module can start with a digit
14112         * as/z80/asmain.c (asmbl): module can start with a digit
14113
14114 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
14115
14116         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
14117         * src/asm.c: fix pipe() for Mingw32
14118
14119 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
14120
14121         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
14122         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
14123         make -V work again; --c1mode reads now from stdin
14124         * doc/sdccman.lyx: added --c1mode
14125         * support/Util/SDCCerr.c: new messages for c1 mode
14126         * support/Util/SDCCerr.h: new messages for c1 mode
14127         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
14128
14129 2003-02-15    <johan AT balder>
14130
14131         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
14132
14133 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
14134
14135         * doc/sdccman.lyx: Environment variables, -o and other minor things
14136
14137 2003-02-14    <johan AT balder>
14138
14139         * src/xa51/main.c: before anyone really tries to use it :)
14140
14141         * Install doc's in share/sdcc/doc
14142         * removed some obsolete files
14143         * Do a proper make distclean and uninstall
14144         M Makefile.common.in
14145         R sdccbuild.sh
14146         M as/Makefile
14147         M device/include/Makefile.in
14148         M device/lib/Makefile.in
14149         M doc/sdccman.lyx
14150         M link/Makefile
14151         M sim/ucsim/doc/Makefile.in
14152         M src/clean.mk
14153         R src/avr/peeph.rul
14154         R src/xa51/peeph.rul
14155         M support/cpp2/Makefile.in
14156         M support/makebin/Makefile
14157
14158
14159 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
14160
14161         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
14162
14163 2003-02-10  Borut Razem <borut.razem AT siol.net>
14164
14165         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
14166         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
14167         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
14168         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
14169         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
14170         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
14171         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
14172         src/z80/Makefile.bcc: Borland Makefile cleanup
14173         * as/z80/Makefile.bcc: Added Borland Makefile
14174         * support/cpp2/borland.h: Removed
14175
14176 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
14177
14178         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
14179         * src/SDCC.lex: new pragma NOIV
14180         * src/SDCCglobl.h: new pragma NOIV
14181         * src/SDCCmem.c: new pragma NOIV
14182
14183 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
14184
14185         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
14186
14187 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
14188
14189         * src/SDCCmain.c: signal handling is switched off by --debug
14190         * doc/Makefile: small fix for install; use clean.mk again
14191         * doc/clean.mk: clean *.pdf and *.html too
14192
14193 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
14194
14195         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
14196         * device/lib/printfl.c: fix a ds390 bug by making it portable
14197         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
14198         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
14199         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
14200         * debugger/mcs51/cmd.c: converted multi-line string literals
14201         * sim/ucsim/globals.cc: converted multi-line string literals
14202         * src/SDCCmain.c: introduced signal handler to remove temp files
14203         * doc/Makefile: small tweaks, implement clean
14204         * doc: removed generated files
14205
14206 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14207
14208         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
14209         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
14210         Address Record is not correctly generated for DS390."
14211
14212 2003-02-02  Borut Razem <borut.razem AT siol.net>
14213
14214         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
14215         * as/mcs51/asm.h: fixed compilation with Borland C
14216         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
14217         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
14218         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
14219         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
14220         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
14221         src/z80/Makefile.bcc: delete $(LIB) only if exist
14222         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
14223
14224 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
14225
14226         * device/include/malloc.h: introduced NULL
14227         * device/include/string.h: introduced NULL
14228         * device/include/stdlib.h: introduced NULL
14229         * device/lib/_memcpy.c: removed NULL
14230         * device/lib/_strcat.c: removed NULL
14231         * device/lib/_strchr.c: removed NULL
14232         * device/lib/_strcmp.c: removed NULL
14233         * device/lib/_strcpy.c: removed NULL
14234         * device/lib/_strcspn.c: removed NULL
14235         * device/lib/_strlen.c: removed NULL
14236         * device/lib/_strncat.c: removed NULL
14237         * device/lib/_strncmp.c: removed NULL
14238         * device/lib/_strncpy.c: removed NULL
14239         * device/lib/_strpbrk.c: removed NULL
14240         * device/lib/_strrchr.c: removed NULL
14241         * device/lib/_strspn.c: removed NULL
14242         * device/lib/_strstr.c: removed NULL
14243         * device/lib/_strtok.c: removed NULL
14244         * device/lib/malloc.c: removed NULL, include own header
14245
14246 2003-02-02    <johan AT balder>
14247
14248         * 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
14249         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
14250         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
14251         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
14252         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
14253         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
14254
14255 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14256
14257         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
14258         area 'DATA'"
14259
14260 2003-02-01    <johan AT balder>
14261
14262         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
14263
14264 2003-01-31    <johan AT CP255758-A>
14265
14266         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
14267
14268 2003-01-30    <johan AT balder>
14269
14270         * src/SDCCBBlock.c: automatic bug detection
14271         * src/SDCCicode.c: automatic bug detection
14272
14273 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14274
14275         * src/SDCCglobl.h:   now --xram-size 0 works
14276         * src/SDCCmain.c:    now --xram-size 0 works
14277
14278 2003-01-29    <johan AT balder>
14279
14280         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
14281
14282 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14283
14284         * as/mcs51/aslink.h: Added options --xram-size and --code-size
14285         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
14286         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
14287         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
14288         * src/SDCCglobl.h:   Added options --xram-size and --code-size
14289         * src/SDCCmain.c:    Added options --xram-size and --code-size
14290
14291 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
14292
14293         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
14294         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
14295
14296 2003-01-27    <johan AT balder>
14297
14298         * src/SDCC.y: fixed bug #613764
14299
14300 2003-01-26    <johan AT balder>
14301
14302         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
14303         * src/SDCCsymt.h: fixed bug #673374
14304         * src/SDCCglue.c: fixed bug #661910
14305         * src/SDCCast.c: fixed bug #458099 and 673374
14306
14307 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
14308
14309         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
14310         * as/mcs51/strcmpi.h: added
14311         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
14312         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
14313         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
14314         * as/mcs51/assym.c: strcmpi -> as_strcmpi
14315         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
14316         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
14317         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
14318         * as/mcs51/Makefile.aslink: new module strcmpi
14319         * as/mcs51/Makefile.asx8051: new module strcmpi
14320         * as/mcs51/Makefil.bcc: new module strcmpi
14321         * as/mcs51/Makefile.in: new module strcmpi
14322         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
14323
14324 2003-01-26    <johan AT balder>
14325
14326         * src/SDCCglue.c: reverted back to 1.124
14327         * src/SDCCast.c: reverted back to 1.156
14328         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
14329
14330 2003-01-25    <johan AT balder>
14331
14332         * src/SDCCglue.c: A better fix for bug #661910
14333         * src/SDCCast.c: A better fix for bug #661910
14334         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
14335
14336 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
14337
14338         * src/Makefile.in: remove spawn.o
14339         * src/SDCCmain.c: remove spawn.h
14340         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
14341         * src/spawn.c: removed
14342         * src/spawn.h: removed
14343         * support/regression/ports/ds390/spec.mk: link with -r
14344
14345 2003-01-24    <johan AT CP255758-A>
14346
14347         * src/ds390/gen.c (aopOp): fixed bug #667458
14348         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
14349         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
14350         (createIvalCharPtr): an ival doesn't always have a storage class anymore
14351
14352 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
14353
14354         * src/mcs51/peeph.def: better assembler identation by Frieder
14355         * src/mcs51/gen.c: better assembler identation by Frieder
14356
14357 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
14358
14359         * as/z80/string.h: removed for gcc 3.2
14360         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
14361         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
14362
14363 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
14364
14365         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
14366         * src/SDCCpeeph.c (replaceRule): fix bug #663503
14367         * support/regression/Makefile: separate temp files for ports
14368         * support/regression/generate-cases.py: separate temp files for ports
14369         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
14370         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
14371
14372 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
14373
14374         * moved tinitalk to device/examples/ds390
14375
14376 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
14377
14378         * as/mcs51/lkmem.c: rflag is for DS390
14379         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
14380         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
14381                          (linkEdit): move mem- and map-files the same way as ihx-files
14382         * src/z80/main.c (_setDefaultOptions): removed --generic
14383         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
14384         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
14385         * src/pic/glue.c (picglue): --c1mode works again
14386         * src/pic16/glue.c (pic16glue): --c1mode works again
14387         * src/asm.c (printCLine): fix #660034
14388
14389 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
14390
14391         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
14392         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
14393         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
14394         * as/mcs51/lkmem (summary): better fix for sp problem
14395         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
14396         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
14397         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
14398                                               remove --stack-after-data
14399
14400 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
14401
14402         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
14403         * src/SDCCutil.c (join): ugly bug: missing '\0'
14404         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
14405
14406 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
14407
14408         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
14409         * src/port.h: typo
14410         * src/pic/main.c (_asmCmd): gpasm supports -o
14411         * src/z80/main.c: more general macros
14412         * device/lib/Makefile.in: remove intermediate files
14413
14414 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
14415
14416         * .version: Bumped version number to 2.3.3
14417         * src/SDCCBBlock.c: new option -o
14418         * src/SDCCglobl.h: new option -o
14419         * src/SDCCglue.c: new option -o
14420         * src/SDCCmain.c: new option -o
14421         * src/asm.c: new option -o
14422         * src/ds390/main.c: new option -o
14423         * src/pic/glue.c: new option -o
14424         * src/pic/pcode.c: new option -o
14425         * src/pic/ralloc.c: new option -o
14426         * src/pic16/glue.c: new option -o
14427         * src/pic16/pcode.c: new option -o
14428         * src/pic16/ralloc.c: new option -o
14429         * src/z80/main.c: new option -o
14430         * device/lib/Makefile.in: use -o
14431         * support/regression/ports/ds390/spec.mk: use -o
14432         * support/regression/ports/gbz80/spec.mk: use -o
14433         * support/regression/ports/mcs51/spec.mk: use -o
14434         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
14435         * support/regression/ports/z80/spec.mk: use -o
14436         * support/regression/ports/ucz80/spec.mk: use -o
14437         * support/regression/ports/xa51/spec.mk: use -o
14438         * support/regression/fwk/lib/timeout.c: fix usage string
14439
14440 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
14441         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
14442
14443 2003-01-07    <johan AT balder>
14444
14445         * src/SDCCast.c (decorateType): fixed bug #600035
14446
14447 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
14448         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
14449         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
14450         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
14451         * src/pic/pcode.c: outcommented unused variable to remove warnings
14452         * src/pic/ralloc.c: outcommented unused variable to remove warnings
14453
14454 2003-01-06    <karl AT turbobit.com>
14455         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
14456    regression tests.
14457
14458 2003-01-06    <johan AT balder>
14459
14460         * src/SDCCicode.c: fixed array add
14461
14462 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
14463         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
14464         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
14465
14466 2003-01-04    <johan AT balder>
14467
14468         * src/SDCCval.c (getNelements): fixed the initialized array of structures
14469
14470 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14471         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
14472
14473 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
14474         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
14475         * support/regression/tests/bug-524697.c: fit mem usage into 8032
14476
14477 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
14478         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
14479
14480 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
14481         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
14482
14483 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
14484         * src/mcs51/main.c: removed {bindir}{sep} from aslink
14485
14486 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14487
14488     * in /sdcc/as/mcs51/ changed these files in order to create an
14489     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
14490     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
14491     following files to include the previous two files: aslink.dsp,
14492     Makefile.aslink, Makefile.bcc, and Makefile.in.
14493
14494     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
14495     .adb instead of .cdb
14496
14497 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14498
14499         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
14500         value from option --iram-size.
14501
14502 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14503
14504         * /sdcc/as/mcs51/lklist.c: added boundary check before using
14505         dram[] array.
14506
14507 2002-09-18    <wiml AT hhhh.org>
14508
14509         * SDCClrange.h: exposed setFromRange() and setToRange()
14510         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
14511           packRegsForAccUse() (bug 542397)
14512         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
14513           multiple times and emitting the fetch operations more than once
14514           added aopGetUsesAcc() function to allow binary operators to
14515           fetch their operands in the correct order; made genMinus() emit
14516           compact code for X = LITERAL - Y
14517
14518 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14519         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
14520         sprintf() in line 1267.
14521
14522 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14523         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
14524         like ports.
14525
14526 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14527         Changes to aslink (All the changes are marked with 'JCF'):
14528
14529         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
14530         summary().
14531
14532         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
14533         area BSEG.  Also moves, if possible, the DATA area down into the internal
14534         ram so more space is available.
14535
14536         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
14537         sflag.
14538
14539         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
14540         not bytes.  Function summary() which creates a memory usage summary
14541         file with extension .mem.  Reports of overlaping stack and small stack
14542         size.  If the space for the stack is less than 16 bytes aslink trows a
14543         warning.
14544
14545         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
14546         the 8051.  Option 'y' for memory summary output file.
14547
14548         Changes to sdcc (All the changes are marked with 'JCF'):
14549
14550         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
14551
14552         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
14553         overlaying area for it (uses RegBankUsed[4]).
14554
14555         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
14556         bank zero as used by default.  By default aslink locates the stack
14557         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
14558         the creation of the .mem file.  Delegates the allocation of data area
14559         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
14560         the begining of the stack area to aslink.
14561
14562         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
14563         glue() in SDCCglue.c creates an area for it.
14564
14565 2002-09-03  Borut Razem <borut.razem AT siol.net>
14566         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
14567         sdcc/src/pic/glue.c:
14568         introduced atexit() handler for teporay files removal in case of
14569         errors, assertions, ...
14570
14571 2002-08-29  Borut Razem <borut.razem AT siol.net>
14572         * sdcc/support/cpp2/auto-host_vc_in.h:
14573         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
14574         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
14575         Maybe there is a similar problem with BORLANDC? It should be checked!
14576
14577         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
14578         corrected improper use of assert: the assignment to clr variable was done inside the assert.
14579         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
14580         was not executed, and the compiler (cl) launched a warning:
14581         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
14582
14583 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
14584         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
14585
14586 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
14587         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
14588
14589         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
14590           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
14591           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
14592           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
14593           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
14594           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
14595           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
14596         - added Release configuration in VS projects
14597         - review of compiler an linker options
14598         - VC .exe files are generated in bin_vc directory, not to interfere
14599           with binaries generated from other projects (cygwin, mingw, bcc ...)
14600
14601         * sdcc/src/yacc.dsp: added
14602
14603         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
14604         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
14605         and insert the version number definitions from .version
14606
14607         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
14608
14609         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
14610         added - genarate auto-host.h using auto-host_vc_in.h as template
14611
14612         * sdcc/sdcc_vc.h,
14613         removed from CVS, generated automatically
14614
14615 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
14616         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
14617
14618 2002-08-11  Borut Razem <borut.razem AT siol.net>
14619         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
14620
14621 2002-08-10  Borut Razem <borut.razem AT siol.net>
14622         * src/SDCCmain.c (main):
14623         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
14624         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
14625         The consequence was that some temporary files were not removed.
14626
14627         * src/SDCCglue.c:
14628         unification of code in functions tempfilename() and tempfile():
14629         function tempnam() is defined in Visual Studio 6.0 and .NET
14630
14631         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
14632
14633         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
14634           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
14635         - removed compiler command line option /WX: Treats all warnings as errors
14636         - update a list of source files, included into the project
14637
14638         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
14639           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
14640         changed project type to Generic Project so that can be correcly converted to VS.NET project
14641
14642         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
14643
14644         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
14645
14646         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
14647
14648         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
14649         added return 0 statements after assert() to make compiler happy
14650
14651         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
14652         added newline in the def file to keep MSC compiler satisfied
14653
14654         * sdcc/src/z80/gen.c:
14655         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
14656           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
14657         - solved MSC error in function aopDump()
14658
14659         * sdcc_vc.h: define PREFIX as "\\sdcc"
14660
14661 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
14662         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
14663
14664 2002-06-22  Scott Dattalo <scott AT dattalo.com>
14665         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
14666         - Rewrote the register banking algorithm.
14667         - Added pCode live-range analysis to registers (for now, only non-used and
14668         singly-used registers optimized away)
14669
14670         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
14671
14672         * 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.
14673
14674 2002-05-10  Scott Dattalo <scott AT dattalo.com>
14675         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
14676
14677 2002-04-22  Michael Hope  <michaelh AT vroom>
14678
14679         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
14680
14681         * configure.in (DD_COPT): Added include support required for gbdk.
14682
14683         * .version: Bumped version number just to increase it.
14684
14685         * src/SDCCmain.c: Added -nostdinc to the default options.
14686
14687 2002-04-15  Michael Hope  <michaelh AT vroom>
14688
14689         * device/lib/z80/printf.c (sprintf): Added.
14690
14691         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
14692
14693         * src/z80/peeph.def: Added transpose redundent load rule.
14694
14695         * src/z80/main.c: Added force callee saves for jaune.
14696
14697         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
14698
14699         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
14700
14701 2002-03-28  Johan Knol  <johan AT balder>
14702
14703         * src/SDCCval.c: fixed bug #532436
14704
14705 2002-03-14  Scott Dattalo <scott AT dattalo.com>
14706         * /src/port.h:
14707         Added "char *Processor" field to the port structure.
14708
14709         * /src/SDCCmain.c:
14710         Added -p option. Allows port dependent processor to be specified.
14711
14712         * all ports:
14713         Initialized the new field char *Processor field to NULL in all ports
14714
14715         * /src/pic/*:
14716         Compiler generated registers for interrupt context saving
14717         were not getting allocated.
14718
14719 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
14720
14721         * /src/SDCCast.c:
14722         Fixed left shift. Will promote the left side of a left shift
14723         if a) left shifting more than size of operand or b) when assigned
14724         to something size > size of left side
14725
14726 2002-03-14  Scott Dattalo <scott AT dattalo.com>
14727         * src/pic/*
14728         tons of changes. Register allocation has been
14729         rewritten. Added customization for the various PICs. Flow
14730         analysis is restructured. ...
14731
14732         * src/pic/device.h:
14733         Added
14734
14735         * src/pic/device.c:
14736         Added. device.c is a PIC port hack to accomodate variations
14737         in PIC devices.
14738
14739 2002-03-13  Michael Hope  <michaelh AT vroom>
14740
14741         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
14742
14743 2002-03-04  johanknol  <johanknol AT manik>
14744
14745         * /src/SDCCval.c: fixed
14746
14747         const unsigned char arr[][2] = { { 0, 1 } };
14748         t18.c:1: error: Initializer element is not constant
14749
14750 2002-03-04  bela  <bela AT manik>
14751
14752         * /device/include/mcs51reg.h:
14753         ds89c420 register definition update
14754
14755 2002-03-03    <johan AT FRIJA>
14756
14757         * support/Util/SDCCerr.c: did something, but don't no why anymore
14758
14759         * support/regression/tests/bug-524691.c: made it a little less shy
14760
14761         * src/SDCCast.c (decorateType): fixed bug #524697
14762
14763         * src/SDCCast.c: made some lineno improvements
14764
14765         * src/SDCCval.c (getNelements): changed warning to error
14766
14767         * src/SDCCglue.c (printIvalArray): changed warning to error
14768
14769         * src/SDCCicode.c: fixed a warning for mingw
14770
14771         * src/SDCCast.c (decorateType): fixed the << promotion for ops
14772
14773         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
14774
14775 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
14776
14777         * src/ds390/peeph.def:
14778         Added some more peephole rules
14779
14780         * src/ds390/gen.c: Various fixes & enhancements
14781
14782         * src/SDCClrange.c, src/SDCClrange.h:
14783         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
14784
14785         * src/ds390/ralloc.c:
14786         various fixes & enhancements (ds390) specific
14787
14788         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
14789         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
14790         from rallocs.
14791
14792         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
14793
14794 2002-03-02    <johan AT FRIJA>
14795
14796         * src/SDCCast.c (decorateType): fixed bug #524708
14797
14798         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
14799
14800         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
14801
14802 2002-03-01  Michael Hope  <michaelh AT vroom>
14803
14804         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
14805
14806         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
14807
14808 2002-03-01    <johan AT FRIJA>
14809
14810         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
14811
14812         * src/SDCCast.c (decorateType): fixed bug #524209
14813
14814         * src/SDCCval.c (valNot): fixed bug #524195
14815
14816 2002-02-26    <johan AT balder>
14817
14818         * src/xa51/gen.c: fixed a warning
14819
14820         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
14821
14822         * src/SDCCast.c (decorateType): fixed bug #522534
14823
14824 2002-02-23    <johan AT balder>
14825
14826         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
14827
14828 2002-02-22    <johan AT balder>
14829
14830         * src/SDCCast.c: fixed bug #514865
14831
14832         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
14833
14834 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
14835
14836         * sdcc/src/SDCCloop.c:
14837         Previous fix was not good. basic blocks that have "break" or "return" are
14838         not really partof a loop , but live ranges used in these blocks should
14839         be live thru the entire loop, so set partOfLoop but don't add them to
14840         loop region
14841
14842 2002-02-21    <johan AT FRIJA>
14843
14844         * src/SDCCcse.c: fixed bug #514308
14845
14846 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
14847
14848         * src/SDCCloop.c:
14849         Fixed BUG #519583. If a conditional block ended in a return/break
14850         statement inside a loop, it was not being considered part of the loop.
14851
14852         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
14853
14854 2002-02-10  Karl Bongers <karl AT turbobit.com>
14855
14856         * debugger/*:
14857         Fixed up SDCDB debugger somewhat.  Updated debugger/README
14858         with lots of comments and notes.
14859
14860         * device/examples/test2.c:
14861         Fix bug, "red" variable not being initialized(compiler complained).
14862
14863         * device/examples/Makefile, examples/test3.c:
14864         Add Makefile in device/examples folder, compiles test3.c
14865         for use as a multiple module SDCDB test case.
14866
14867         * sim/ucsim/cmd.src/cmdset.cc:
14868         Took out debug printfs in ucsim "next" command.
14869
14870         * sim/ucsim/xa.src:
14871         Karl and Johan start ucsim XA support.  Most dissassembly working,
14872         about 75% emulation done(plenty of work remaining).
14873
14874         * sim/ucsim/z80.src:
14875         Add Z80 support to ucsim, add test-ucz80 regression test,
14876         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
14877         Notice z80 compiler fails on examples/test3.c/crc code.
14878
14879 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
14880
14881         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
14882         Added support for --parms-in-bank1
14883
14884         * src/ds390/peeph.def:
14885         added a few more peephole optimzations
14886
14887         * src/ds390/main.c:
14888         1) added __builtin_inp & __builtin_outp used to read in data of given length
14889            from a memory mapped port
14890         2) added __builtin_memcmp
14891         3) added __builtin_swapw swap bytes of a short
14892
14893         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
14894         1) handle multiple send & receives from register bank1
14895         2) ralloc can now allocate DPTR1 to some liveRanges
14896
14897         * src/SDCCsymt.c, src/SDCCsymt.h:
14898         changes to handle multiple sends & receives
14899
14900         * src/SDCCptropt.h:
14901         added some pointer arithmetic optimization
14902
14903         * src/SDCCptropt.c:
14904         added some pointer arithmetic optimizations but not stable yet so not
14905         called from anywhere (will get this working shortly)
14906
14907         * src/SDCCopt.c: fixed for multiple sends & receives
14908
14909         * src/SDCCmain.c:
14910         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
14911         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
14912            set preprocessor defines (depending on options)
14913
14914         * src/SDCCicode.c, src/SDCCicode.h:
14915         changes made to handle multiple sends & receives
14916
14917         * src/SDCCglobl.h:
14918         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
14919
14920         * src/SDCCcse.c, src/SDCCcse.h:
14921         added function findbackward def (to be used in upcoming optimization)
14922
14923         * src/SDCCcflow.c, src/SDCCcflow.h:
14924         added function returnAtEnd - to determine if a basic block terminates with
14925         a RETURN iCode
14926
14927         * src/SDCCast.c, src/SDCCast.h:
14928         added option parms-in-bank1
14929
14930         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
14931         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
14932         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
14933         adjusted for --parms-in-bank1 option
14934
14935         * device/include/string.h:
14936         donot redefine "reentrant" keyword
14937
14938         * device/include/ds80c390.h: Added some more SFRs
14939
14940 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
14941
14942         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
14943
14944 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
14945
14946         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
14947
14948 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
14949
14950         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
14951
14952 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
14953
14954         * Added --xram-movc option
14955
14956 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
14957
14958         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
14959
14960 2002-01-11  Johan Knol
14961
14962         * Added math lib of Jesus Calvino-Fraga
14963
14964 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
14965
14966         * src/SDCCmain.c (processFile): fix processing of ../../src.c
14967         * support/regression/Makefile: new target test-mcs51-stack-auto
14968         * support/regression/ports/mcs51-stack-auto/spec.mk: added
14969
14970 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
14971
14972         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
14973
14974 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
14975
14976         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
14977
14978 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
14979
14980         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
14981
14982         * src/SDCCglue.h: add definition for printIvalChar()
14983
14984 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
14985
14986         * src/SDCCast.c: fix #498138 by Johan
14987
14988         * src/SDCCglue.c: fix #498138 by Johan
14989
14990 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
14991
14992         * support/regression/Makefile: fix clean
14993
14994         * support/regression/ports/ds390/support.c: fix transmission of last character
14995
14996 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
14997
14998         * /sdcc/src/ds390/gen.c:
14999         a) improved computing address of stack variable
15000         b) took out some #if 0 code
15001         c) improved parmBytes adjustment
15002         d) improved genPlusIncr & genMinusIncr
15003         e) genCmp could generate bad code (when left assigned to DPTR)
15004         f) Fixed bug in hasInc
15005
15006         * /sdcc/src/ds390/ralloc.c:
15007         a) packRegsForSupport could mess up live information (Fixed)
15008         b) packRegsDPTRuse could be incorrect for left & right shift
15009
15010         * /sdcc/src/mcs51/ralloc.c:
15011         packRegsForSupport could mess up the live information (Fixed)
15012
15013         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
15014
15015         * /sdcc/src/SDCCast.c:
15016         can reverse a loop even if function call is present as long
15017         as the loop control variable is local & is not passed as parameter
15018
15019 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15020
15021         * /sdcc/ChangeLog: *** empty log message ***
15022
15023         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
15024         More builtin function additions for TININative
15025
15026         * /sdcc/src/ds390/ralloc.c:
15027         Had broken the regression testsuite
15028
15029         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
15030
15031         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
15032         Added funcattr hasStackParms will be set for reentrant functions when there
15033         are paramteres on the stack, this helps in minimizing frame pointer generation
15034         typeFromStr can handle function pointers now
15035
15036         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
15037         *** empty log message ***
15038
15039 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15040
15041         * /src/ds390/gen.c, /src/ds390/main.c:
15042         More builtin function additions for TININative
15043
15044         * /src/ds390/ralloc.c:
15045         Had broken the regression testsuite
15046
15047         * /src/SDCCast.c: Fixed a bug in dumptree
15048
15049         * /src/SDCCsymt.c, /src/SDCCsymt.h:
15050         Added funcattr hasStackParms will be set for reentrant functions when there
15051         are paramteres on the stack, this helps in minimizing frame pointer generation
15052         typeFromStr can handle function pointers now
15053
15054         * /doc/builtins.txt, /doc/TININative.txt:
15055         *** empty log message ***
15056
15057
15058 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15059
15060         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
15061         ALPHA version for -mTININative
15062
15063         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
15064         updated to reflect changes in the port structure
15065
15066         * /src/port.h:
15067         added function do_assemble (similar to do_link) if non-null this function
15068         will be called to do assembly (-mTININative) requires a multi command
15069         assembly
15070         added function genAssemblerEnd will be called to generate assembler Epilogue
15071
15072         * /src/SDCCsymt.c:
15073         added _JavaNative to debug info printing
15074
15075         * /src/SDCCmain.c: added option --tini-libid
15076         added port->do_assemble function (-mTININative) has a multi command assemble
15077
15078         * /src/SDCCglue.c: Disabled "constExpr" check
15079         added port->genAssemblerEnd function
15080
15081         * /src/SDCCglobl.h: Added option --tini-libid value
15082
15083         * /src/SDCCast.h:
15084         tookout optimizeCompare from the header (has no external references)
15085
15086         * /src/SDCCast.c: made one more function "static"
15087
15088 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
15089
15090         * src/z80/mappings.i: Added z80asm support.
15091
15092         * src/z80/main.c: Added z80asm support on --asm=z80asm
15093
15094         * src/z80/gen.c: Fixed asm portability issues.
15095
15096         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
15097
15098         * src/SDCCglue.c (printExterns): Added global/extern split.
15099
15100 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
15101
15102         * support/regression/Makefile: added test for mcs51 model large
15103
15104         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
15105
15106         * support/regression/ports/gbz80/spec.mk: added -mgbz80
15107
15108 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
15109
15110         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
15111
15112 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
15113
15114         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
15115
15116         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
15117
15118 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
15119
15120         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
15121
15122         * support/regression/tests/simplefloat.c: Port to mcs51.
15123
15124 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
15125         * support/regression/tests/bug-485362.c: Added.
15126
15127         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
15128
15129         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
15130
15131         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
15132
15133         * src/z80/gen.c (aopDump): Added a dump function.
15134
15135 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
15136         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
15137
15138         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
15139
15140         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
15141
15142         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
15143
15144         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
15145
15146         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
15147
15148         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
15149
15150         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
15151
15152         * support/regression/ports/ds390/support.c: Use tinibios.
15153
15154         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
15155
15156 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
15157
15158         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
15159         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
15160
15161         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
15162
15163         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
15164
15165 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
15166
15167         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
15168
15169         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
15170         (packRegsForIYUse): Created and optimised.
15171
15172 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
15173
15174         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
15175 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
15176
15177         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
15178
15179         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
15180
15181         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
15182
15183 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15184
15185         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
15186
15187         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
15188
15189 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15190
15191         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
15192
15193         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
15194
15195         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
15196
15197 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
15198
15199         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
15200         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
15201         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
15202
15203         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
15204
15205         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
15206         (genNotFloat): Added.
15207         (genUminusFloat): Added.
15208
15209         * device/lib/z80/Makefile: Added floating pt stubs.
15210
15211         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
15212
15213         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
15214
15215         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
15216
15217 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15218
15219         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
15220
15221         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
15222
15223         * sdcc/support/regression/Makefile: Add port ds390.
15224
15225         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
15226
15227         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
15228
15229         * sdcc/support/regression/ports/ds390/spec.mk: Added.
15230
15231         * sdcc/support/regression/ports/ds390/support.c: Added.
15232
15233         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
15234
15235         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
15236
15237         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
15238
15239 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
15240
15241         * device/include/malloc.h: Added z80 and gbz80 support.
15242
15243         * device/lib/gbz80/heap.s: Added.
15244
15245         * device/lib/z80/heap.s: Added.
15246
15247         * device/lib/malloc.c: Added z80 and gbz80 support.
15248
15249         * support/regression/tests/malloc.c (testMalloc): Added.
15250
15251         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
15252
15253         * support/regression/tests/bug-478094.c: Added.
15254
15255         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
15256
15257 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
15258
15259         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
15260
15261         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
15262
15263         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
15264
15265         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
15266
15267         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
15268
15269 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
15270
15271         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
15272
15273 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
15274
15275         * support/regression/tests/bug-477927.c: Added.
15276
15277         * src/z80/peeph.def: Added minor rules.
15278
15279         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
15280
15281         * src/z80/peeph.def: Added jump optimisation modification.
15282
15283 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
15284
15285         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
15286
15287 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
15288
15289         * support/regression/tests/funptrs.c: Added.
15290
15291 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
15292
15293         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
15294
15295 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
15296
15297         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
15298
15299         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
15300
15301         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
15302         (movLeft2ResultLong): Created.
15303
15304         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
15305         (joinPushes): Added.  Joins two char pushes into a word push.
15306
15307 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
15308
15309         * support/cpp2/Makefile.in (install): Added creation of dest dir.
15310
15311         * support/makebin/Makefile (install): Added creation of dest dir.
15312
15313 2001-10-24 Karl Bongers <karl AT turbobit.com>
15314
15315         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
15316
15317 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
15318
15319         * src/z80/ralloc.c: Turned off faulty pack for one use.
15320
15321         * src/z80/peeph-gbz80.def: Removed redundent restart options.
15322
15323         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
15324
15325 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
15326
15327         * support/regression/Makefile: Improved clean
15328
15329         * support/regression/ports/gbz80/spec.mk: Added clean
15330
15331         * support/regression/ports/host/spec.mk: Added clean
15332
15333         * support/regression/ports/z80/spec.mk: Added clean
15334
15335         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
15336
15337         * support/regression/ports/mcs51/timeout.c: little improvements
15338
15339 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
15340
15341         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
15342
15343         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
15344
15345         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
15346
15347 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
15348
15349         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
15350
15351         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
15352
15353 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
15354         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
15355
15356         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
15357
15358         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
15359
15360         * src/mcs51/main.c (_linkCmd): Added bin path to command.
15361
15362         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
15363
15364         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
15365
15366         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
15367
15368         * support/regression/tests/longor.c: Added.
15369
15370 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
15371
15372         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
15373
15374         * as/mcs51/aslink.h: define PATH_MAX
15375
15376         * as/mcs51/asm.h: define PATH_MAX
15377
15378         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
15379
15380         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
15381
15382         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
15383
15384         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
15385
15386         * src/SDCCglobl.h: define PATH_MAX
15387
15388         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
15389
15390         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
15391
15392 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
15393
15394         * src/z80/gen.c (gencjneshort): Fixed
15395
15396         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
15397
15398 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
15399
15400         * support/regression/tests/bug-469671.c: Added.
15401
15402         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
15403
15404 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
15405
15406         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
15407
15408         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
15409
15410 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
15411
15412         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
15413
15414         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
15415
15416         * src/device/lib/_mullong.c : removed hint: nooverlay bug
15417
15418         * src/device/lib/_divuint.c : removed hint: nooverlay bug
15419
15420         * src/device/lib/_divulong.c: removed hint: nooverlay bug
15421
15422         * src/device/lib/_moduint.c : removed hint: nooverlay bug
15423
15424         * src/device/lib/_modulong.c: removed hint: nooverlay bug
15425
15426 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
15427
15428         * 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.
15429
15430         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
15431
15432         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
15433
15434 2001-10-07    <johan AT FRIJA>
15435
15436         * device/lib/gets.c (gets): fixed the return value.
15437
15438 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
15439         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
15440
15441         * 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.
15442
15443         * 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.
15444
15445         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
15446
15447         * src/pic/gen.c: Removed Safe_strdup.
15448
15449         * configure.in: Added option to enable libgc support.
15450
15451         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
15452         (bitVectUnion): Optimised.
15453         (bitVectIntersect): Optimised.
15454         (bitVectBitsInCommon): Optimised.
15455         (bitVectCplAnd): Optimised.
15456
15457         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
15458
15459 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
15460
15461         * src/SDCCmain.c: distinguish between assembler debug and plain options
15462
15463         * src/avr/main.c:   remove standard assembler options
15464
15465         * src/ds390/main.c: remove standard assembler options
15466
15467         * src/mcs51/main.c: remove standard assembler options
15468
15469         * src/port.h: removed "PENDING" comment
15470
15471 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
15472
15473         * src/device/lib/_mulint.c  : new, with assember functions
15474
15475         * src/device/lib/_mullong.c : new, with assember functions
15476
15477         * src/device/lib/_divuint.c : with assember functions
15478
15479         * src/device/lib/_divsint.c : with assember functions
15480
15481         * src/device/lib/_divulong.c: with assember functions
15482
15483         * src/device/lib/_divslong.c: with assember functions
15484
15485         * src/device/lib/_moduint.c : with assember functions
15486
15487         * src/device/lib/_modsint.c : with assember functions
15488
15489         * src/device/lib/_modulong.c: with assember functions
15490
15491         * src/device/lib/_modslong.c: with assember functions
15492
15493         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
15494
15495         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
15496
15497         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
15498                                       replaced _mululong.c and _mulslong.c by _mullong.c
15499
15500 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
15501
15502         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
15503
15504 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
15505
15506         * src/SDCCglue.c: test, if win32api is available for MINGW
15507
15508 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
15509
15510         * src/SDCCsymt.c: no more _modifier in printTypeChain()
15511         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
15512         * support/regression/ports/gbz80/spec.mk: removed GENERIC
15513         * support/regression/ports/host/spec.mk: removed GENERIC
15514         * support/regression/ports/mcs51/spec.mk: removed GENERIC
15515         * support/regression/ports/z80/spec.mk: removed GENERIC
15516
15517 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
15518
15519         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
15520
15521         * support/regression/tests/bug-467035.c: Created.
15522
15523 2001-10-01    <johan AT FRIJA>
15524
15525         * src/SDCC.y: fixed bug #466586 part 1
15526
15527 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
15528
15529         * SDCCicode.c: z80 has no generic pointers
15530         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
15531
15532 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
15533
15534         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
15535
15536 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
15537
15538         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
15539
15540         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
15541
15542 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
15543
15544         * configure.in: Fixed up so that ucsim is only configured once.
15545
15546         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
15547
15548         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
15549         (getPathDifference): As above.
15550
15551         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
15552
15553         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
15554
15555 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
15556         * .version: Updated to 2.3.1
15557
15558         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
15559         Added copyright header.
15560
15561         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
15562         (assemble): Added support for macro based assembler commands.
15563         (linkEdit): Added support for macro based linker commands.
15564         (preProcess): Changed the pre-processor to use macros.
15565         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
15566         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
15567
15568         * device/lib/z80/crt0.s: Added module name for debugging.
15569
15570 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
15571
15572         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
15573
15574         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
15575
15576         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
15577
15578         * src/Makefile.in: Added SDCCmacro and SDCCutil
15579
15580 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
15581
15582         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
15583
15584 2001-09-16    <johan AT FRIJA>
15585
15586         * 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.
15587
15588 2001-09-15    <johan AT FRIJA>
15589
15590         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
15591         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
15592
15593 2001-09-11    <johan AT FRIJA>
15594
15595         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
15596
15597 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
15598
15599         * support/regression/tests/bug-460444.c: Added test case.
15600
15601         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
15602         (genCast): Added justification for all of the asserts.
15603
15604 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
15605
15606         * support/regression/support.c: _xdata replaced by xdata
15607
15608         * support/regression/spec.mk: removed _generic
15609
15610 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
15611
15612         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
15613
15614         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
15615         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
15616
15617         * src/z80/peeph.def: Added a rule to optimise shift then compare.
15618
15619         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
15620
15621         * support/regression/tests/bug-460010.c: Added test case.
15622
15623         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
15624
15625 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
15626
15627         * support/regression/Makefile: inter-port-clean adjusted for mcs51
15628
15629         * support/regression/testfwk.c: removed workaround for bug #436344
15630
15631         * support/regression/tests/bp.c: use less memory with mcs51
15632
15633         * support/regression/tests/bug-441448.c: use less memory
15634
15635         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
15636
15637         * support/regression/collate-results.py: typo
15638
15639 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
15640
15641         * support/regression/tests/fetchoverlap.c: Added new test case.
15642
15643         * support/regression/tests/bp.c: Added new test case.
15644
15645         * support/regression/tests/bug-448984.c: Added new test case.
15646
15647         * support/regression/tests/pow2shifts.c: Added new test case.
15648
15649         * src/z80/gen.c: Turned off the noise it normally generates for the release.
15650         (genlshTwo): Fixed right shift for count > 8.
15651
15652         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
15653
15654 2001-09-08    <johan AT FRIJA>
15655
15656         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
15657
15658 2001-09-07    <johan AT FRIJA>
15659
15660         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
15661
15662         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
15663
15664 2001-09-06    <johan AT FRIJA>
15665
15666         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
15667         * bernhard noted me at this: "() equals to (void)" (1.38)
15668
15669 2001-09-05    <johan AT FRIJA>
15670
15671         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
15672
15673 2001-09-04    <johan AT FRIJA>
15674
15675         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
15676
15677
15678 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
15679
15680         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
15681
15682 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
15683
15684         * link/z80/aslink.h: Fixed path for PATH_MAX
15685
15686 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
15687
15688         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
15689
15690         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
15691
15692         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
15693
15694         * 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.
15695
15696 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
15697
15698         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
15699         (genCmp): Fixed up genCmp for the GB with longs.
15700
15701         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
15702
15703         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
15704
15705         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
15706
15707         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
15708
15709 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
15710
15711         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
15712
15713 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
15714
15715         * 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.
15716
15717         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
15718
15719 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
15720
15721         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
15722
15723         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
15724
15725 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
15726
15727   * sim/ucsim/configure:    little improvement of Cygwin-detection
15728   * sim/ucsim/configure.in: little improvement of Cygwin-detection
15729   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
15730   * support/regression/tests/bug-221100.c: small changes for mcs51
15731   * support/regression/tests/bug-221168.c: small changes for mcs51
15732   * support/regression/tests/bug-227710.c: small changes for mcs51
15733   * support/regression/tests/staticinit.c: small changes for mcs51
15734   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
15735   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
15736   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
15737
15738 $Revision$