* src/pic16/gen.c (AccRsh): cosmetic changes,
[fw/sdcc] / ChangeLog
1 2008-02-17 Raphael Neider <rneider AT web.de>
2
3         * src/pic16/gen.c (AccRsh): cosmetic changes,
4           (shiftR1Left2ResultSigned,shiftR1Left2Result,shiftL1Left2Result,
5           genRightShiftLiteral): fixed to work with SFRs as result by
6           assigning only once to result,
7           removed a lot of unused/excluded code fragments
8         
9 2008-02-17 Raphael Neider <rneider AT web.de>
10
11         * device/include/pic/pic16f88.h,
12         * device/include/pic/pic16f886.h,
13         * device/include/pic/pic16f887.h: added TRISA6 and TRISA7
14
15 2008-02-17 Borut Razem <borut.razem AT siol.net>
16
17         * src/z80/peeph.def: applied patch
18           #1893626: Optimize tail calls on Z80, thanks to Philipp Krause
19         * src/z80/gen.c, src/z80/peeph.def: applied patch
20           #1893510: Improve logical left shift on Z80, thanks to Philipp Krause
21
22 2008-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
23
24         * as/link/mcs51/aslink.dsp: removed SDK define
25         * as/link/z80/clean.mk: brought in sync with other ports
26         * as/link/z80/lklibr.c (SdccLib, fndsym): handle the dflag here too
27         * as/hc08/Makefile.bcc,
28         * as/mcs51/Makefile.bcc,
29         * as/z80/Makefile.bcc: noice.c was moved to as/asxxsrc/
30         * src/z80/main.c (_setValues): use the now capitalized -Z,
31           (z80_port, gbz80_port): generate debug information when asked
32
33 2008-02-16 Borut Razem <borut.razem AT siol.net>
34
35         * as/z80/asmain.c, as/z80/asm.h, as/z80/asdata.c,
36           as/link/z80/lkmain.c, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
37           as/z80/Makefile.in. as/z80/Makefile.bcc:
38           applied patch #1893393: patch for as-z80 and link-z80 to generate
39           cdb, thanks to Armin Diehl
40         * as/*/asnoice.c, as/hc08/as_hc08.dsp, as/hc08/Makefile.in,
41           as/mcs51/asx8051.dsp, as/mcs51/Makefile.in:
42           asnoice.c moved to as/asxxsrc/asnoice.c
43         * src/z80/peeph-gbz80.def: applied patch
44           #1880235: Z80 return peephole, thanks to Philipp Krause
45
46 2008-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
47
48         * .version,
49         * doc/sdccman.lyx: bumped version to 2.7.5
50         * src/SDCCsymt.c (compareType, comparePtrType): fixed bug 1281583
51
52 2008-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
53
54         * device/include/pic16/stdlib.h,
55         * device/lib/pic16/libc/stdlib/ltoa.c,
56         * device/lib/pic16/libc/stdio/vfprintf.c: ascii strings are char*
57
58 2008-02-13 Borut Razem <borut.razem AT siol.net>
59
60         * src/SDCCmain.c, src/SDCCglue.c: fixed --c1mode
61         * src/pic16/glue.c, src/SDCCast.c, src/SDCCast.h, src/SDCCBBlock.c,
62           src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c, src/SDCCloop.c,
63           src/SDCCopt.c,  src/SDCCval.c:
64           fixed bug #1890273: SDCC Warning 154 shows wrong filename
65
66 2008-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
67
68         * src/SDCCsymt.c (compareType): fixed bug 1309013
69
70 2008-02-09 Borut Razem <borut.razem AT siol.net>
71
72         * src/SDCCval.c, src/SDCCval.h:
73           code cleaning, added function constChrVal()
74         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c, src/SDCCast.c, src/SDCC.y:
75           call constChrVal() instead constVal()
76
77 2008-02-01 Maarten Brock <sourceforge.brock AT dse.nl>
78
79         * src/SDCCast.c (resolveSymbols): added reentrancy check for parameters
80           of function pointer
81         * src/SDCCerr.h,
82         * src/SDCCerr.c: changed warning W_NONRENT_ARGS to error E_NONRENT_ARGS
83         * support/regression/tests/absolute.c: added TestStruct TestVar (see also
84           bug 1859853)
85
86 2008-02-01 Raphael Neider <rneider AT web.de>
87
88         * device/include/pic/pic16f886.h,
89         * device/include/pic/pic16f887.h: added RA6 and RA7
90
91 2008-01-24 Raphael Neider <rneider AT web.de>
92
93         * device/include/pic/pic16f88.h: added RA6 and RA7
94         * device/lib/pic/libdev/disabled_pic16f886.c,
95         * device/lib/pic/libdev/disabled_pic16f887.c: renamed and enabled
96
97         * src/pic16/devices.inc,
98         * device/include/pic16/pic18f2423.h,
99         * device/include/pic16/pic18f2523.h,
100         * device/include/pic16/pic18fregs.h,
101         * device/lib/pic16/pics.all
102         * device/lib/pic16/libdev/pic18f2423.c,
103         * device/lib/pic16/libdev/pic18f2523.c: added 18f2423 and 18f2523
104         * device/lib/pic16/libio/i2c.ignore,
105         * device/lib/pic16/libio/usart.ignore,
106         * device/lib/pic16/libio/adc.ignore: ignore new devices
107
108 2008-01-23 Maarten Brock <sourceforge.brock AT dse.nl>
109
110         * src/SDCCast.c (createRMW): fixed bug 1582651
111
112 2008-01-20 Borut Razem <borut.razem AT siol.net>
113
114         * src/SDCCcse.c: partially fixed enhancement request
115           #1793872 - multiply by -1 not collapsed
116         * support/regression/tests/arithcsi.c: added regression test
117
118 2008-01-19 Maarten Brock <sourceforge.brock AT dse.nl>
119
120         * as/mcs51/asx8051.dsp: removed define SDK
121         * as/mcs51/i51mch.c (machine): fixed bug 1865114
122         * device/include/asm/ds390/features.h: fixed bug with ds390 & stack-auto
123         * as/link/lklex.c,
124         * as/link/mcs51/lkmain.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
125           cosmetic changes, brought more in sync, changed old K&R to ANSI
126
127 2008-01-13 Borut Razem <borut.razem AT siol.net>
128
129         * support/scripts/sdcc.nsi: added Uninstall/reinstall page, ...
130         * src/SDCCicode.c: fixed bug #1870216 - Error 122: dividing by zero
131
132 2007-12-30 Borut Razem <borut.razem AT siol.net>
133
134         * src/pic16/gen.c: fixed implementation of bitwise operations for
135           pic16 target
136         * support/regression/tests/bitwise.c: added test cases
137
138 2007-12-29 Borut Razem <borut.razem AT siol.net>
139
140         * src/SDCCasm.[ch]: renamed from asm[ch], use dbuf_getline(), ...
141         * src/src.dsp, src/Makefile.bcc, src/Makefile.in, src/common.h,
142           src/SDCCglue.c, src/xa51/main.c: asm.[ch] renamed to SDCCasm.[ch]
143         * support/Util/dbuf_string.[ch]: added function dbuf_getline()
144         * src/ds390/gen.c, src/hc08/gen.c, src/mcs51/gen.c, src/pic16/gen.c,
145           src/pic/gen.c, src/z80/gen.c, src/xa51/gen.c, src/pic16/ralloc.c,
146           src/pic16/pcode.[ch]: added const qualifier
147         * as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
148           as/mcs51/Makefile.bcc, as/mcs51/Makefile.in, as/mcs51/asx8051.dsp,
149           as/z80/Makefile.bcc, as/z80/Makefile.in, as/z80/as_gbz80.dsp,
150           as/z80/as_z80.dsp: added dbuf.[ch] and dbuf_string[ch] to project
151         * as/asxxsrc/aslex.c: use dbuf_getline()
152         * as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/asm.h, as/hc08/m08adr.c,
153           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/asm.h,
154           as/mcs51/i51adr.c, as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c,
155           as/z80/asm.h, as/z80/z80adr.c:
156           changed type of ib and ip to const char *
157
158 2007-12-28 Borut Razem <borut.razem AT siol.net>
159
160         * as/asxxsrc/aslex.c: moved from as/mcs51/aslex.c;
161           introduced (readlin) - long lines are turuncated
162         * as/hc08/as_hc08.dsp, as/mcs51/asx8051.dsp, as/z80/as_gbz80.dsp,
163           as/z80/as_z80.dsp, as/hc08/Makefile.in, as/mcs51/Makefile.in,
164           as/z80/Makefile.in: moved aslex.c to asxxsrc
165         * as/hc08/aslex.c, as/z80/aslex.c: deleted
166         * as/hc08/asmain.c, as/mcs51/asmain.c:
167           added missing initialization of a_addr field
168         * support/regression/tests/long_asm_line.c: added regtest for long
169           assembler line
170
171 2007-12-22 Borut Razem <borut.razem AT siol.net>
172
173         * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
174
175 2007-12-20 Maarten Brock <sourceforge.brock AT dse.nl>
176
177         * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang
178
179 2007-12-16 Borut Razem <borut.razem AT siol.net>
180
181         * device/include/pic16/stdbool.h: removed, since already exists in
182          device/include/; this also fixes bitopcse.c regression test for pic16
183          target
184         * support/regression/fwk/inclusw/testfwk.h: added macro ASSERT_FAILED
185         * src/pic16/glue.c: fixed bug #1851855: generic static pointer
186           dereference doesn't work; covered by regression test bug1399290
187
188 2007-12-05 Borut Razem <borut.razem AT siol.net>
189
190         * doc/sdccman.lyx: fixed bug #1844509 - Correction to Manual 4.6.9
191           Adding new PIC16
192
193 2007-12-01 Borut Razem <borut.razem AT siol.net>
194
195         * sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/mem.cc:
196           corrected handling of the highest_valid_address
197
198 2007-11-17 Raphael Neider <rneider AT web.de>
199
200         * src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
201         * src/pic/glue.c (picglue): emit .file if --debug is given
202
203 2007-11-17 Raphael Neider <rneider AT web.de>
204
205         * src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
206         care when left or right operand resides in result, fixes #1830220
207
208 2007-11-17 Borut Razem <borut.razem AT siol.net>
209
210         * src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
211           #983491 - "Merge duplicate strings function is ineffective"
212         * support/regression/tests/bug-983491.c: regtest disabled
213         * as/asxxsrc: created
214           as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
215           as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
216           as/z80/assym.c, as/hc08/asstore.c, as/mcs51/asstore.c: deleted
217           as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
218           as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
219           as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
220           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
221           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
222           as/link/z80/linkz80.dsp, as/mcs51/Makefile.bcc, as/mcs51/Makefile.in,
223           as/mcs51/asm.h, as/mcs51/asx8051.dsp, as/z80/Makefile.bcc,
224           as/z80/Makefile.in, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
225           as/z80/Makefile.as_hc08, as/mcs51/Makefile.asx8051: modified
226           created as/asxxsrc directory, assym.c and strcpi.c moved into it
227
228 2007-11-15 Maarten Brock <sourceforge.brock AT dse.nl>
229
230         * device/include/stdarg.h: added and removed some casts
231         * src/SDCCsymt.c (compareType): Fully check types between generic and
232           non-generic pointers, also accept ptr-ptr to void-ptr assignments
233
234 2007-11-13 Borut Razem <borut.razem AT siol.net>
235
236         * support/regression/tests/bug-1817005.c:
237           added regtest for bug #1817005 - as-z80 chokes on long labels
238
239 2007-11-12 Borut Razem <borut.razem AT siol.net>
240
241         * as\z80\asmain.c, as\z80\asm.h, as\z80\assym.c, as\z80\asdata.c,
242           as\z80\asout.c, as\z80\aslist.c:
243           fixed bug #1817005 - as-z80 chokes on long labels
244
245 2007-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
246
247         * as/hc08/asmain.c,
248         * as/z80/asmain.c: cosmetic changes
249         * as/hc08/alloc.h,
250         * as/mcs51/alloc.h,
251         * as/z80/alloc.h: removed
252         * as/hc08/assym.c,
253         * as/mcs51/assym.c: replaced alloc.h with stdlib.h
254         * as/link/aslink.h: added LKDIRSEP and, LKDIRSEPSTR
255         * as/link/hc08/Makefile.in,
256         * as/link/mcs51/Makefile.in,
257         * as/link/z80/Makefile.in: added -DUNIX to CFLAGS
258         * as/link/lklex.c,
259         * as/link/mcs51/lkarea.c,
260         * as/link/mcs51/lkmain.c: cosmetic changes
261         * as/link/hc08/lklibr.c,
262         * as/link/z80/lklibr.c,
263         * as/link/mcs51/lklibr.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
264           used cygwin_conv_to_full_posix_path,
265           added warnings, cosmetic changes, brought more in sync
266           changed old K&R into ANSI function declarations
267         * as/link/z80/lklibr.c (loadAdb): added
268         * as/link/z80/lkmain.c: removed -- option from usage text
269
270 2007-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
271
272         * src/mcs51/gen.c (outBitC): optimized for no result
273
274 2007-10-31 Borut Razem <borut.razem AT siol.net>
275
276         * src/SDCCsymt.c: fixed (hopeful properly) bug
277           #1805702 - order of extern matters
278         * support/regression/tests/bug-1805702.c: enabled regtest for bug
279           #1805702
280
281 2007-10-29 Borut Razem <borut.razem AT siol.net>
282
283         * src/SDCCsymt.c: reverted bad fixed of bug #1805702
284           - order of extern matters
285         * support/regression/tests/bug-1805702.c: disabled regtest for bug
286           #1805702
287
288 2007-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
289
290         * src/ds390/peeph.def: replaced 24bitModeAndPortDS390 by
291           24bitMode, portIsDS390
292         * src/mcs51/gen.c (genOr): optimized for RFE 1750727
293         * src/SDCCpeeph.c (flat24bitModeAndPortDS390): removed
294           (notVolatileVariable): also check sloc names,
295           (callFuncByName): moved ftab[] out of function and sorted it by use
296
297 2007-10-28 Maarten Brock <sourceforge.brock AT dse.nl>
298
299         * device/include/stdarg.h: fixed bug in va_start macro for --xstack
300         * src/hc08/gen.c (aopForRemat): aop->aopu.aop_immd.from_cast_remat not set,
301           aop->aopu.aop_immd.aop_immd2 not filled with (generic) pointer type
302         * src/SDCCicode.c (geniCodeCast): fixed bug 880197
303         * support/regression/tests/bug-880197.c: new, added
304
305 2007-10-28 Borut Razem <borut.razem AT siol.net>
306
307         * support/regression/Makefile.in,
308           support/regression/ports/mcs51-large/spec.mk,
309           support/regression/ports/mcs51-xstack-auto/spec.mk,
310           support/regression/ports/mcs51-stack-auto/spec.mk,
311           support/regression/ports/mcs51-medium/spec.mk,
312           support/regression/ports/mcs51-common/spec.mk,
313           support/regression/ports/mcs51-common/*,
314           support/regression/ports/mcs51-small/*:
315           mcs51 renamed to mcs51-common, created mcs51-small
316         * src/SDCCsymt.c: fixed bug #1805702 - order of extern matters
317         * support/regression/tests/bug-1805702.c: added regtest for bug
318           #1805702
319
320 2007-10-26 Maarten Brock <sourceforge.brock AT dse.nl>
321
322         * src/mcs51/peeph.def: moved rules 257.x to 253.x and re-enabled 253.b,
323           added new rules 265 - 270
324         * support/regression/tests/bug1721024.c:new, added
325         * support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
326           introduced new test-mcs51 to run all mcs51 tests
327
328 2007-10-25 Maarten Brock <sourceforge.brock AT dse.nl>
329
330         * support/regression/tests/bug1816470.c: new, added
331
332 2007-10-21 Maarten Brock <sourceforge.brock AT dse.nl>
333
334         * src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
335           propagate for *,+,- with float, fixed bug 1816470
336           (decorateType): cast to resultTypeProp instead of resultType
337
338 2007-10-19 Borut Razem <borut.razem AT siol.net>
339
340         * src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
341           function is ineffective" for pic16 tareget
342         * support/scripts/listerr.c: corrected include path
343         * device/lib/_itoa.c: fixed bug #1806402 - _itoa and _uitoa leak to
344           adjacent memory
345
346 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
347
348         * support/regression/tests/using.c: new, added
349         * support/regression/tests/vaargs.c: fixed and enabled test
350
351 2007-10-18 Borut Razem <borut.razem AT siol.net>
352
353         * src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
354           is ineffective
355         * support/regression/tests/bug-983491.c: added regtest for bug #983491
356
357 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
358
359         * doc/sdccman.lyx: documented option --Werror
360         * src/SDCCsymt.c (checkFunction): fixed bug 1815418 by setting
361           RegBankUsed[] earlier
362
363 2007-10-14 Maarten Brock <sourceforge.brock AT dse.nl>
364
365         * device/include/mcs51/p89lpc938.h: new, added, thanks Kyle Guinn
366         * src/pic/glue.c,
367         * src/SDCCval.c,
368         * src/SDCCast.c,
369         * src/SDCCast.h: replaced AST_LIT_VALUE with AST_FLOAT_VALUE and
370           AST_ULONG_VALUE
371         * src/SDCCast.c (decorateType): improved optimization of tri-op
372         * src/SDCCerr.c (vwerror, setWError),
373         * src/SDCCerr.h,
374         * src/SDCCmain.c (parseCmdLine): added option --Werror to treat all
375           warnings as errors, thanks Stas Sergeev for PATCH 1813211
376
377 2007-10-13 Maarten Brock <sourceforge.brock AT dse.nl>
378
379         * src/mcs51/gen.c (leftRightUseAcc): use macro IS_OP_ACCUSE
380         * src/SDCCast.c (decorateType): optimize bit=cond?1:0, RFE 1738430
381         * support/regression/tests/bug-223113.c,
382         * support/regression/tests/bug-426632.c,
383         * support/regression/tests/bug-468811.c,
384         * support/regression/tests/bug-477835.c,
385         * support/regression/tests/bug-478094.c,
386         * support/regression/tests/bug-499644.c,
387         * support/regression/tests/bug-524209.c,
388         * support/regression/tests/bug-524211.c,
389         * support/regression/tests/packcast.c,
390         * support/regression/tests/structidx.c: added empty tests
391         * support/regression/tests/bug-607243.c: enabled test
392
393 2007-10-06 Borut Razem <borut.razem AT siol.net>
394
395         * .version, doc/sdccman.lyx: bumped version to 2.7.4 to indicate the full
396            support of universal binaries on Mac OS X
397
398 2007-10-02 Borut Razem <borut.razem AT siol.net>
399
400         * src/SDCCval.h: unified double2ul macro for all platforms
401         * src/SDCCval.c: fixed bug #1777758 - applied Maarten's patch
402         * support/regression/tests/bitwise.c: added regtest for bug #1777758
403
404 2007-09-30 Borut Razem <borut.razem AT siol.net>
405
406         * src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
407           platforms
408         * sdcc_vc_in.h: enabled warnings
409         * src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
410           unsigned type, result still unsigned
411         * src/mcs51/peep.c: fixed gcc warning: suggest parentheses around && within ||
412
413 2007-09-28 Raphael Neider <rneider AT web.de>
414
415         * src/pic/device.c (find_device): prevent buffer underflow error
416         * src/pic/pcoderegs.c (OptimizeRegUsage): avoid dereferencing
417           the just destroyed list entry
418
419 2007-09-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
420
421         * doc/sdccman.lyx: there's a dedicated wiki page for cmake and sdcc, thanks
422           Alexander Neundorf
423
424 2007-09-18 Borut Razem <borut.razem AT siol.net>
425
426         * src/SDCCval.c: fixed MSVC warning C4146: unary minus operator
427          applied to unsigned type, result still unsigned
428
429 2007-09-17 Borut Razem <borut.razem AT siol.net>
430
431         * src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c,
432           src/SDCCicode.c, src/SDCCopt.c, src/SDCCsymt.c, src/SDCCval.c,
433           src/SDCCval.h, src/hc08/gen.c, src/avr/gen.c, src/ds390/gen.c,
434           src/mcs51/gen.c, src/pic/gen.c, src/pic/genarith.c, src/pic/glue.c,
435           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/genarith.c,
436           src/pic16/genutils.c, src/pic16/glue.c, src/pic16/main.c,
437           src/z80/gen.c, src/z80/ralloc.c:
438           fixed bug #1739860 - sdcc does not work correctly on some platforms
439           (not finished)
440           introduced and used ulFromVal(), double2ul(), used strtod() instead sscanf()
441
442 2007-09-17 Raphael Neider <rneider AT web.de>
443
444         * src/pic16/device.c: reverted to previous version
445         * device/lib/pic16/Makefile.common.in: quieten gpasm via -Wa,-q
446
447 2007-09-16 Raphael Neider <rneider AT web.de>
448
449         * src/pic16/device.c (pic16_dump_usection): do not reserve 0 bytes,
450           as this raises a ton of gpasm warnings, just emit a second label
451         * src/pic16/devices.inc,
452         * device/lib/pic16/pics.all,
453         * device/lib/pic16/libdev/pic18f2585.c,
454         * device/lib/pic16/libdev/pic18f2680.c,
455         * device/lib/pic16/libdev/pic18f2682.c,
456         * device/lib/pic16/libdev/pic18f2685.c,
457         * device/lib/pic16/libdev/pic18f4585.c,
458         * device/lib/pic16/libdev/pic18f4680.c,
459         * device/lib/pic16/libdev/pic18f4682.c,
460         * device/lib/pic16/libdev/pic18f4685.c,
461         * device/include/pic16/pic18f2585.h,
462         * device/include/pic16/pic18f2680.h,
463         * device/include/pic16/pic18f2682.h,
464         * device/include/pic16/pic18f2685.h,
465         * device/include/pic16/pic18f4585.h,
466         * device/include/pic16/pic18f4680.h,
467         * device/include/pic16/pic18f4682.h,
468         * device/include/pic16/pic18f4685.h,
469         * device/include/pic16/pic18fregs.h: added 18f2585, 18f2680,
470           18f2682, 18f2685, 18f4585, 18f4680, 18f4682, 18f4685,
471           patch contributed by Anton Strobl, applied with changes
472
473 2007-09-16 Raphael Neider <rneider AT web.de>
474
475         * device/include/pic16/pic18f2431.h,
476         * device/include/pic16/pic18f25j10.h,
477         * device/include/pic16/pic18f4431.h,
478         * device/include/pic16/pic18f45j10.h: adopted common include style
479         * device/include/pic16/pic18f1320.h,
480         * device/include/pic16/pic18f2320.h,
481         * device/include/pic16/pic18f2525.h,
482         * device/include/pic16/pic18f4320.h,
483         * device/include/pic16/pic18f4525.h: NEW, just include proper .h file
484         * device/include/pic16/pic18fregs.h: prepared for automatic include
485           file selection by having DEVICE.h for every DEVICE
486         * device/lib/pic16/libdev/pic18f2320.c,
487         * device/lib/pic16/libdev/pic18f4320.c: just include proper .c file
488
489         * device/lib/pic16/configure.in,
490         * device/lib/pic16/configure: use rm -rf instead of rmdir
491         * device/lib/pic16/Makefile.in: use RMDIR to remove build directories
492         * device/lib/pic16/libc/stdlib/free.c: avoid warning on pointer cast
493
494 2007-09-09 Borut Razem <borut.razem AT siol.net>
495
496         * src/SDCCmain.c, src/SDCCutil.c: print newline after printVersionInfo(),
497           distingush between i386 and ppc Mac OS X versions
498
499 2007-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
500
501         * src/mcs51/gen.c (genReceive): fixed bug 1788177
502         * support/regression/tests/bug1788177.c: new, added
503
504 2007-09-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
505
506         * doc/sdccman.lyx: mentioned d52 and cmake, customizing startup code
507         * device/include/mcs51/lint.h added keyword __naked
508
509 2007-09-04 Maarten Brock <sourceforge.brock AT dse.nl>
510
511         * src/pic16/glue.c,
512         * src/pic/glue.c,
513         * src/SDCCmem.h: removed maxRegBank
514         * src/SDCCmem.c (allocVariables): removed maxRegBank and moved setting
515           RegBankUsed[] to checkFunction() in SDCCsymt.c to fix bug 1759839
516         * src/SDCCsymt.c (checkFunction): set RegBankUsed[] here
517         * src/mcs51/peep.c (isCallerSaveFunc, termScanAtFunc): changed function
518           name and behaviour to handle banked functions
519           (scan4op): and use it to fix bug 1786213
520
521 2007-09-03 Raphael Neider <rneider AT web.de>
522
523         * device/include/pic16/pic18f248.h,
524         * device/include/pic16/pic18f258.h,
525         * device/include/pic16/pic18f448.h,
526         * device/lib/pic16/libdev/pic18f248.c,
527         * device/lib/pic16/libdev/pic18f258.c,
528         * device/lib/pic16/libdev/pic18f448.c: fixed TRISEbits,
529           added T0CONbits, fixes #1786891
530
531 2007-08-29 Maarten Brock <sourceforge.brock AT dse.nl>
532
533         * src/ds390/gen.c (genFarPointerSet),
534         * src/hc08/ralloc.c (packRegisters),
535         * src/mcs51/ralloc.c (packRegisters),
536         * src/SDCCcse.c (cseBBlock): check if result is a symbol first to fix
537           bug 1750318
538         * src/SDCCicode.h: POINTER_SET can be true for literals too
539         * support/regression/tests/bug1750318.c: new, added
540
541 2007-08-23 Borut Razem <borut.razem AT siol.net>
542
543         * debugger/mcs51/sdcdb.c: fixed compilation with older readline
544           library versions without the completition functionality
545
546 2007-08-22 Raphael Neider <rneider AT web.de>
547
548         * device/include/pic16/pic18f1220.h,
549         * device/lib/pic16/libdev/pic18f1220.c: applied patch #1776191
550
551 2007-08-12 Borut Razem <borut.razem AT siol.net>
552
553         * debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
554
555 2007-08-11 Borut Razem <borut.razem AT siol.net>
556
557         * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
558           src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
559           support/Util/SDCCerr.[ch] moved to src
560         * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
561           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
562           device/examples/ds390/tinitalk/tinitalk.dsp,
563           device/examples/serialcomm/windows/serialcomm.dsp,
564           support/librarian/librarian.dsp:
565           removed linking of unused odbc32.lib and odbccp32.lib
566         * support/scripts/winres.h:
567           added for compilation with Visual C++ 2005 Express Edition
568
569 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
570
571         * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
572           and CKCON1.
573
574 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
575
576         * sdccconf_in.h: update the endian test so that SPARC Solaris
577           does not throw syntax errors
578
579 2007-08-06 Borut Razem <borut.razem AT siol.net>
580
581         * doc/sdccman.lyx: removed two index entries which prevented the
582           generation of sdcc doc archive
583
584 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
585
586         * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
587           instead of lyx 1.5.0.
588
589 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
590
591         * device/include/hc08/mc68hc908apxx.h: new header contributed by
592           Lucas Loizaga, with minor modifications. Thanks!
593
594 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
595
596         * doc/sdccman.lyx: Documented --acall-ajmp and described new features
597           in sdcclib.
598
599 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
600
601         * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
602           src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
603           with acall/ajmp.
604
605 2007-07-22 Borut Razem <borut.razem AT siol.net>
606
607         * configure.in, configure: re-introduced .version
608         * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
609           the version reverted to 2.7.0
610
611 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
612
613         * configure.in,
614         * doc/sdccman.lyx: bumped version to 2.7.3
615         * device/include/mcs51/compiler.h: fixed elif->else
616         * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
617         * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
618           (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
619            enable accuse for bit operands
620         * src/SDCCmain.c (printVersionInfo),
621         * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
622           environment descriptor
623         * src/SDCCutil.h: added getBuildEnvironment
624         * src/SDCCglue.c (initialComments): use getBuildEnvironment
625         * support/regression/tests/bug1464657.c: enabled test test_Peephole251
626         * support/regression/tests/bug-408972.c: enabled test leftShiftLong
627         * support/regression/tests/bug1348008.c,
628         * support/regression/tests/bug1496419.c,
629         * support/regression/tests/bug1503067.c,
630         * support/regression/tests/preproc.c: added empty tests
631
632 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
633
634         * support/regression/tests/bug1678803.c: new, added
635
636 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
637
638         * as/link/aslink.h,
639         * as/link/hc08/lkihx.c,
640         * as/link/hc08/lkrloc.c,
641         * as/link/mcs51/lkihx.c,
642         * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
643           ihxExtendedLinearAddress
644         * as/link/mcs51/lkrloc.c (relr),
645         * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
646           acall/ajmp, see bug 830513
647
648 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
649
650         * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
651           (cseBBlock): remember aggr2ptr has been used
652         * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
653           (geniCodeAssign): fixed bug 868103
654         * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
655           added operandSize prototype
656         * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
657           (genDataPointerSet): use max of size of right and result,
658           (gencjne): added parameter useCarry for optimization,
659           (genCmpEq): use carry if appropriate,
660           (genXor): check if operand already in carry
661         * support/regression/tests/bug-868103.c: enabled test
662
663 2007-07-12 Raphael Neider <rneider AT web.de>
664
665         * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
666
667 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
668
669         * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
670           from Robert Larice, thanks
671         * support/regression/tests/bitopcse.c,
672         * support/regression/tests/bitvars.c,
673         * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
674         * support/regression/tests/bug-927659.c: enabled test for z80
675         * support/regression/tests/bug1738367.c: added extra tests by Frieder
676         * support/regression/tests/bug1745717.c: new, added
677         * support/regression/tests/literalop.c,
678         * support/regression/tests/nullstring.c: removed storage definitions that
679           are now in testfwk.h
680
681 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
682
683         * device/include/stdbool.h: do not define __bool_true_false_are_defined
684           and bool for targets that do not fully support it.
685         * support/regression/tests/bug1546986.c,
686         * support/regression/tests/bug1723128.c,
687         * support/regression/tests/bug1734654.c,
688         * support/regression/tests/bug1738367.c,
689         * support/regression/tests/constantRange.c: only use bool if allowed
690
691 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
692
693         * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
694           Larice, also handle function pointers
695         * support/regression/tests/bug1749275.c: new, added
696
697 2007-07-03 Borut Razem <borut.razem AT siol.net>
698
699         * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
700           src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
701           #1746528: SDCC should ignore ':' in inline assembler comments
702         * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
703
704 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
705
706         * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
707         * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
708
709 2007-06-29 Borut Razem <borut.razem AT siol.net>
710
711         * src/SDCCmain.c: fixed bug
712           #1744746: SDCC #4867: broken option --xram-size
713
714 2007-06-28 Borut Razem <borut.razem AT siol.net>
715
716         * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
717           find out the endianess of host machine for ucsim
718
719 2007-06-27 Borut Razem <borut.razem AT siol.net>
720
721         * support/regression/generate-cases.py: corrected the file name
722           in warning
723         * configure.in, configure, sdccconf_in.h: find out the endianess of
724           host machine
725         * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
726           negative size
727
728 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
729
730         * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
731
732 2007-06-26 Borut Razem <borut.razem AT siol.net>
733
734         * support/regression/generate-cases.py: display warning if function
735           list is empty; implemented more flexible rule for detection of
736           testing functions, allowing return type 'void' in the same line as
737           the function name in the function definition
738         * support/regression/tests/bug-1654060.c: corrected test
739         * support/librarian/sdcclib.c: fixed warning:
740           format '%s' expects type 'char *', but argument 2 has type 'int'
741
742 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
743
744         * support/librarian/sdcclib.c: Added feature Requests [1510635]
745           Multiple infiles for sdcclib.
746
747 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
748
749         * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
750           bug 1731741
751
752 2007-06-18 Borut Razem <borut.razem AT siol.net>
753
754         * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
755           how to handle comments, so they have to be removed by the
756           preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
757         * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
758           src/pic16/main.c, src/pic/main.c, src/z80/main.c,
759           support/Util/SDCCerr.c, support/Util/SDCCerr.h:
760           table driven option hadling
761
762 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
763
764         * src/SDCCast.c (decorateType),
765         * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
766           iCode to ast level to fix bug 1738367
767         * support/regression/tests/bug1738367.c: new, added
768
769 2007-06-15 Raphael Neider <rneider AT web.de>
770
771         * src/pic16/devices.inc,
772         * device/lib/pic16/pics.all,
773         * device/include/pic16/pic18fregs.h,
774         * device/include/pic16/pic18f[24][45]20.h,
775         * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
776           18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
777         * device/lib/pic16/Makefile.in: faster cleanup
778
779 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
780
781         * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
782
783 2007-06-13 Raphael Neider <rneider AT web.de>
784
785         * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
786
787 2007-06-12 Raphael Neider <rneider AT web.de>
788
789         * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
790           suppress bit defines if NO_BIT_DEFINES is #define'd
791         * device/include/pic/pic*.h: recreated all headers to include
792           conditional bit defines
793         * device/include/pic/pic16f886.h,
794         * device/include/pic/pic16f887.h: fixed based on newer .inc file
795         * device/include/pic/recreate.sh: script to recreate the complete
796           device library files based on the currently supported devices
797
798 2007-06-12 Borut Razem <borut.razem AT siol.net>
799
800         * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
801           support/regression/Makefile.in, support/scripts/build.mak,
802           support/scripts/Makefile.snapshot:
803           use new svn URL scheme
804         * doc/sdccman.lyx: SDCC Wiki moved to
805           http://sdcc.wiki.sourceforge.net/
806
807 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
808
809         * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
810         * support/regression/tests/bug1734654.c: added
811
812 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
813
814         * src/SDCCast.c (decorateType): optimized '?' for equal operands
815         * src/SDCCicode.c (geniCodeConditional): optimization for bit result
816           with literal operands
817
818 2007-06-10 Borut Razem <borut.razem AT siol.net>
819
820         * as/link/z80/lklibr.c: fixed mingw build warning
821           lklibr.c:575: warning: implicit declaration of function 'tolower'
822         * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
823           src/z80/main.c: move target specific options from src/SDCCmain.c
824           to src/<target>/main.c
825
826 2007-06-09 Borut Razem <borut.razem AT siol.net>
827
828         * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
829           removed unused swap_sense; removed outBitCLong, replaced with outBitC
830         * support/regression/tests/bug-1294691.c: added
831
832 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
833
834         * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
835           can also be static, fixes bug 1733438
836         * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
837           have absolute address too
838           (computeType): added optimization for 'cond ? true : false'
839         * support/regression/tests/absolute.c: added test for static absolute var
840
841 2007-06-08 Raphael Neider <rneider AT web.de>
842
843         * src/regression/Makefile: suppress parallel builds, allow easy
844           switching between pic14/pic16 ports
845         * src/regression/picregs.h: added pic14/16 header file switch
846         * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
847           inline.c,nestfor.c,string1.c}: include "picregs.h"
848
849 2007-06-07 Borut Razem <borut.razem AT siol.net>
850
851         * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
852           permanent solution to suppress GCC 4.2.0 c++ warning:
853           deprecated conversion from string constant to `char *'
854           use 'const char *' where ever required
855         * support/regression/generate-cases.py: implemented more flexible rule
856           for detection of testing functions, allowing white-spaces surrounding
857           the function name and the 'void' parameter.
858         * support/regression/tests/constantRange.c,
859           support/regression/tests/scott-compare3.c: fixed failing regression
860           tests, uncovered by implementation of more flexible rule for detection
861           of testing functions
862
863 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
864
865         * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
866
867 2007-06-04 Borut Razem <borut.razem AT siol.net>
868
869         * configure.in, configure, config_vc.awk: sdcc version number is now
870           stored in configure.in; removed .version
871         * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
872           doc/INSTALL.txt: version bumped to 2.7.2
873         * sim/ucsim/configure.in, sim/ucsim/configure:
874           use "read" to read from .version
875
876 2007-06-03 Borut Razem <borut.razem AT siol.net>
877
878         * */Makefile.in: removed annoying warning:
879           Makefile:xx: Makefile.dep: No such file or directory
880
881 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
882
883         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
884           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
885         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
886         * src/SDCCast.c (resultTypePropagate): propagate for '!',
887           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
888           bugfix: only use newBoolLink for bit result type
889         * src/SDCCicode.c (geniCodeLogic): added param tree,
890           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
891           (geniCodeLogicAndOr): use IS_BIT,
892           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
893           (ast2iCode): added tree param to geniCodeLogic for comparisons
894         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
895         * support/regression/tests/bug1723128.c: added test NotZero
896
897 2007-06-01 Borut Razem <borut.razem AT siol.net>
898
899         * SDCPP synchronized with GCC CPP release version 4.2.0,
900           currently the latest release:
901         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
902           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
903           support/cpp2/cppdefault.h, support/cpp2/except.h,
904           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
905           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
906           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
907           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
908           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
909           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
910           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
911           support/cpp2/opts.h, support/cpp2/output.h,
912           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
913           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
914           support/cpp2/system.h, support/cpp2/version.c,
915           support/cpp2/Makefile.in: modified
916         * support/cpp2/opts-common.c: added
917         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
918         * device/lib/pic16/libdev/pic18f[24]5j10.c:
919           search for included source file in local directory
920         * sim/ucsim/configure, sim/ucsim/configure.in:
921           temporary solution to suppress GCC 4.2.0 c++ warning:
922           deprecated conversion from string constant to `char *'
923
924 2007-06-01 Raphael Neider <rneider AT web.de>
925
926         * device/lib/pic/libdev/pic12f683.c,
927         * device/include/pic/pic12f683.h: added GPIO bits
928
929 2007-06-01 Raphael Neider <rneider AT web.de>
930
931         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
932           quotation marks, clarified role of PIC14 vs. PIC16 ports
933         * src/pic16/devices.inc,
934         * device/include/pic16/pic18fregs.h,
935         * device/include/pic16/pic18f[24][45]j10.h,
936         * device/lib/pic16/pics.all,
937         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
938           18f24j10, 18f25j10, 18f44j10, and 18f45j10
939         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
940           for new devices as they are not yet supported by gputils
941
942 2007-05-31 Borut Razem <borut.razem AT siol.net>
943
944         * Small Device C Compiler 2.7.0 released
945         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
946           changed sdcc version to 2.7.1
947         * support/scripts/sdcc.nsi: added How to create WIN32 release
948           setup.exe package
949
950 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
951
952         * doc/sdccman.lyx: documented initialization and allocation of absolute
953           variables, bit parameter passing, the need for function pointers to be
954           reentrant and alpha quality support of inline and retrict
955
956 2007-05-26 Borut Razem <borut.razem AT siol.net>
957
958         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
959           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
960         * docs/knownbugs.html: updated
961
962 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
963
964         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
965           thanks Jan Waclawek
966         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
967           AOP_CRY and ruonly
968           (gencjneshort): optimized when left is AOP_DIR
969         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
970           initializing unions in a struct/array
971         * support/regression/fwk/include/testfwk.h: added defines for data, near
972           and far for host and z80
973         * support/regression/tests/bug1723128.c: new, added
974
975 2007-05-22 Borut Razem <borut.razem AT siol.net>
976
977         * doc/knownbugs.html: updated
978
979 2007-05-21 Raphael Neider <rneider AT web.de>
980
981         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
982           error message instead
983         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
984
985 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
986
987         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
988
989 2007-05-21 Raphael Neider <rneider AT web.de>
990
991         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
992           closes #1722392
993         * src/regression/gpsim_assert.h,
994         * src/regression/Makefile,
995         * src/regression/pcodeopt.c: regression test for the above fix
996
997 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
998
999         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
1000           jumps to self, fixed bug 1717281
1001
1002 2007-05-10 Borut Razem <borut.razem AT siol.net>
1003
1004         * support/scripts/gen_known_bugs.pl: cosmetic fix
1005         * doc/knownbugs.html: generated by gen_known_bugs.pl
1006
1007 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1008
1009         * src/SDCCast.c (createFunction): also generate non-inlined version of
1010           function for functions declared as "static inline"
1011         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
1012           function can be inlined after non-inlined version generated.
1013
1014 2007-05-10 Borut Razem <borut.razem AT siol.net>
1015
1016         * support/scripts/gen_known_bugs.pl: added script
1017           which generates knownbugs.html
1018
1019 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
1020
1021         * doc/knownbugs.html: updated for release 2.7.0
1022
1023 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1024
1025         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
1026
1027 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
1028
1029         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
1030           (throughout): updated generating comments
1031         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
1032           (throughout): updated generating comments
1033         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
1034           rule instead of at the second, or it might skip lines when removing the
1035           complete match
1036         * support/regression/tests/bug1714204.c: changed test to foo
1037
1038 2007-05-08 Borut Razem <borut.razem AT siol.net>
1039
1040         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
1041           thanks to SDCC Distributed Compile Farm members,
1042           added Z80 and GBZ80 command line options
1043         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
1044
1045 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
1046
1047         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
1048         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
1049         * support/regression/tests/longlit.c: modified to be tested at all and
1050           to pass the actual test
1051
1052 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1053
1054         * device/include/mcs51/uPSD33xx.h: Added.
1055
1056 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
1057
1058         * device/lib/_gptrput.c,
1059         * device/lib/_gptrget.c: removed old code,
1060          (_gptrgetWord),
1061         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
1062         * support/regression/tests/bug1714204.c: new, added
1063
1064 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1065
1066         * support/regression/tests/regtrack.c: test was never executed
1067           because of the regression test being picky about white spaces.
1068         * device/lib/mcs51/crtclear.asm: added comment
1069
1070 2007-05-06 Raphael Neider <rneider AT web.de>
1071
1072         * device/lib/pic/Makefile.rules,
1073         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
1074           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
1075
1076 2007-05-06 Raphael Neider <rneider AT web.de>
1077
1078         * src/pic16/device.h,
1079         * src/pic16/main.h,
1080         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
1081           _pic16_setDefaultOptions): removed/reordered command-line args
1082         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
1083           devices, regrouped command line args, environment variables),
1084           clarified sone points, added sections on how to add devices to the
1085           PIC14/PIC16 ports
1086
1087 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
1088
1089         * src/z80/peeph.def: fixed bug in rule 2
1090
1091 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
1092
1093         * src/port.h: added TARGET_MCS51_LIKE
1094         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
1095           take advantage of it too
1096         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
1097           (shiftR2Left2Result): Optimized: don't check shifting by 0
1098         * src/z80/peeph-z80.def,
1099         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
1100           modifications, see patch 1700823
1101         * src/mcs51/peep.c (): fixed bug 1712928
1102         * support/regression/tests/bug1712928.c: new, added
1103
1104 2007-05-05 Borut Razem <borut.razem AT siol.net>
1105
1106         * device/lib/pic16/Makefile.common.in,
1107           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
1108           removed bash dependencies
1109
1110 2007-05-01 Borut Razem <borut.razem AT siol.net>
1111
1112         * src/SDCCicode.c:
1113           fixed bug #1710507: --i-code-in-asm makes compile fail
1114           all iCode comments are now one liners
1115         * src/mcs51/gen.c: fixed memory leak
1116
1117 2007-05-01 Raphael Neider <rneider AT web.de>
1118
1119         * device/lib/pic/libdev/*.c
1120         * device/include/pic/*.h: regenerated all device libs from updated
1121           .inc files
1122         * support/scripts/inc2h.pl: documented usage, now uses strict to
1123           catch more bugs
1124
1125 2007-04-30 Borut Razem <borut.razem AT siol.net>
1126
1127         * doc/sdccman.lyx:
1128           fixed bug #1669175: Problem with space in output paths
1129           documented how to use paths with spaces for Windows users
1130
1131 2007-04-29 Borut Razem <borut.razem AT siol.net>
1132
1133         * Fixed svn:eol-style and svn:keywords properties
1134         * src/SDCCval.c: fixed bug
1135           #1592871: Segfault with "large" const arrays of characters
1136           replaced recursion with iteration
1137         * Removed svn:executable property from non-executable files
1138
1139 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
1140
1141         * src/mcs51/gen.c (genRet): fixed bug 1707003
1142
1143 2007-04-27 Raphael Neider <rneider AT web.de>
1144
1145         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
1146           createReachingDefinitions,assignValnums,pic16_destructDF,
1147           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
1148           prevent NULL pointer dereferences
1149         * device/lib/pic/libdev/pic16f886.c,
1150         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
1151           prevent building them, gputils do not really support them yet
1152
1153 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1154
1155         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
1156           helps printf_small. 32 bytes more __idata mem.
1157
1158 2007-04-27 Raphael Neider <rneider AT web.de>
1159
1160         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
1161           return early when pb or pb->pcHead is NULL (patch #1708427)
1162         * src/regression/empty.c,
1163         * src/regression/Makefile: added test with empty functions
1164         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
1165
1166 2007-04-27 Borut Razem <borut.razem AT siol.net>
1167
1168         * src/SDCCast.c: fixed feature request
1169           #1547512: Redundant strings linked when using sizeof("abc")
1170
1171 2007-04-23 Borut Razem <borut.razem AT siol.net>
1172
1173         * doc/sdccman.lyx, src/SDCCmain.c:
1174           peep-hole comments are generated only if --fverbose-asm option is
1175           specified and --no-peep-comments is not, as proposed by Frieder.
1176         * support/regression/Makefile.in: compile regression tests with
1177           --fverbose-asm option so one can "grep" whether a new (or an old)
1178           peephole is (still) applied; requested by Frieder.
1179
1180 2007-04-23 Kevin Buettner <kevin AT buettner.to>
1181
1182         * device/include/pic/pic16f886.h,
1183         * device/include/pic/pic16f887.h,
1184         * device/lib/pic/libdev/pic16f886.c,
1185         * device/lib/pic/libdev/pic16f887.c,
1186         * device/include/pic/pic14devices.txt,
1187         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
1188
1189 2007-04-23 Kevin Buettner <kevin AT buettner.to>
1190
1191         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
1192           fixes #1704666
1193
1194 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1195
1196         * device/lib/_memset.c: assembler version for mcs51
1197
1198 2007-04-22 Borut Razem <borut.razem AT siol.net>
1199
1200         * support/scripts/listerr.c: program to create the list of errors and
1201           warnings list from - added
1202         * doc/sdccman.lyx: removed the note
1203           "For list of warnings and corresponding codes, see err_warn.txt"
1204         * src/SDCCsymt.c: fixed bug #1699804:
1205           Bug with some uses of sizeof(static local array) (MCS51)
1206         * support/regression/tests/bug-1699804.c: added
1207
1208 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
1209
1210         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
1211           (main): added option -i,
1212           (asmbl, case S_INCL): use search_path_fopen,
1213           mostly from patch 1579668 by Peter Miller, thanks
1214         * src/z80/main.c: fixed typo --callee-saves-bc
1215         * device/include/mcs51/compiler.h: added sfrword for Tasking
1216
1217 2007-04-20 Borut Razem <borut.razem AT siol.net>
1218
1219         * src/z80/main.c: replaced reserved keyword asm with asmblr
1220
1221 2007-04-19 Borut Razem <borut.razem AT siol.net>
1222
1223         * src/port.h: use const pointers to strings
1224         * src/SDCCargs.h: declared getStringArg() and getIntArg()
1225         * src/pic16/main.c: include SDCCargs.h
1226         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
1227           const char, since the strings are dynamically allocated
1228         * src/SDCCmain.c: options.code_seg and options.const_seg are
1229           dynamically allocated; check port specific command line options
1230           before the general ones
1231         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
1232
1233 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
1234
1235         * device/include/ds400rom.h,
1236         * device/lib/ds390/lcd390.c,
1237         * device/lib/ds390/memcpyx.c,
1238         * device/lib/ds390/rtc390.c,
1239         * device/lib/ds400/ds400rom.c,
1240         * device/lib/ds400/memcpyx.c,
1241         * device/lib/hc08/_ret.c: more replacements of keywords with their
1242           double underscore equivalents
1243         * device/lib/ds390/Makefile.in,
1244         * device/lib/ds400/Makefile.in,
1245         * device/lib/gbz80/Makefile.in,
1246         * device/lib/hc08/Makefile.in,
1247         * device/lib/mcs51/Makefile.in,
1248         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
1249
1250 2007-04-17 Borut Razem <borut.razem AT siol.net>
1251
1252         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
1253           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
1254           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
1255           to --fverbose-asm, to be gcc'ish
1256
1257 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
1258
1259         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
1260
1261 2007-04-17 Borut Razem <borut.razem AT siol.net>
1262
1263         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
1264         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
1265           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
1266           with their double underscore equivalent
1267
1268 2007-04-14 Borut Razem <borut.razem AT siol.net>
1269
1270         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
1271           source"
1272
1273 2007-04-13 Borut Razem <borut.razem AT siol.net>
1274
1275         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
1276           C99 standard
1277         * device/examples/serialcomm/windows/serial.[ch],
1278           device/examples/serialcomm/windows/test_serialcomm.cpp:
1279           updated by Bela Torok
1280         * device/examples/serialcomm/windows/serialcomm.dsw,
1281           device/examples/serialcomm/windows/serialcomm.dsp: added
1282
1283 2007-04-13 Jan Waclawek <wek AT efton.sk>
1284
1285         * doc/sdccman.lyx: additions and changes at various places
1286           (submitted as #1697136).
1287           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
1288
1289 2007-04-10 Borut Razem <borut.razem AT siol.net>
1290
1291         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
1292           LyX file format changed to 245
1293         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
1294           "FreeWare" replaced with "free open source"
1295
1296 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
1297
1298         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
1299
1300 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
1301
1302         * device/include/pic16/pic18fregs.h,
1303         * device/lib/_bp.c,
1304         * device/lib/_decdptr.c,
1305         * device/lib/_divsint.c,
1306         * device/lib/_divslong.c,
1307         * device/lib/_divuint.c,
1308         * device/lib/_divulong.c,
1309         * device/lib/_fs2schar.c,
1310         * device/lib/_fs2sint.c,
1311         * device/lib/_fs2slong.c,
1312         * device/lib/_fs2uchar.c,
1313         * device/lib/_fs2uint.c,
1314         * device/lib/_fs2ulong.c,
1315         * device/lib/_fsadd.c,
1316         * device/lib/_fscmp.c,
1317         * device/lib/_fsdiv.c,
1318         * device/lib/_fseq.c,
1319         * device/lib/_fsget1arg.c,
1320         * device/lib/_fsget2args.c,
1321         * device/lib/_fsgt.c,
1322         * device/lib/_fslt.c,
1323         * device/lib/_fsmul.c,
1324         * device/lib/_fsneq.c,
1325         * device/lib/_fsnormalize.c,
1326         * device/lib/_fsreturnval.c,
1327         * device/lib/_fsrshift.c,
1328         * device/lib/_fssub.c,
1329         * device/lib/_fsswapargs.c,
1330         * device/lib/_gptrget.c,
1331         * device/lib/_gptrgetc.c,
1332         * device/lib/_gptrput.c,
1333         * device/lib/_logexpf.c,
1334         * device/lib/_modsint.c,
1335         * device/lib/_modslong.c,
1336         * device/lib/_moduint.c,
1337         * device/lib/_modulong.c,
1338         * device/lib/_mulint.c,
1339         * device/lib/_mullong.c,
1340         * device/lib/_schar2fs.c,
1341         * device/lib/_ser.c,
1342         * device/lib/_setjmp.c,
1343         * device/lib/_sint2fs.c,
1344         * device/lib/_slong2fs.c,
1345         * device/lib/_spx.c,
1346         * device/lib/_uchar2fs.c,
1347         * device/lib/_uint2fs.c,
1348         * device/lib/_ulong2fs.c,
1349         * device/lib/asincosf.c,
1350         * device/lib/atanf.c,
1351         * device/lib/calloc.c,
1352         * device/lib/ds390/tinibios.c,
1353         * device/lib/ds400/tinibios.c,
1354         * device/lib/expf.c,
1355         * device/lib/free.c,
1356         * device/lib/hc08/_mulint.c,
1357         * device/lib/logf.c,
1358         * device/lib/malloc.c,
1359         * device/lib/printf_fast.c,
1360         * device/lib/printf_tiny.c,
1361         * device/lib/printfl.c,
1362         * device/lib/realloc.c,
1363         * device/lib/ser_ir.c,
1364         * device/lib/serial.c,
1365         * support/regression/tests/libmullong.c: replaced all special keywords
1366           with their double underscore equivalent
1367         * support/regression/ports/mcs51-xstack-auto/spec.mk,
1368         * device/lib/Makefile.in: compile libs with --std-c99 instead of
1369           --std-sdcc99
1370         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
1371           (genRet): if the bit-symbol is ruonly it already is in the carry
1372         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
1373         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
1374         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
1375           type UCHAR if dest is not bit
1376
1377 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
1378
1379         * device/include/math.h,
1380         * device/lib/cotf.c,
1381         * device/lib/expf.c,
1382         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
1383
1384 2007-04-01 Borut Razem <borut.razem AT siol.net>
1385
1386         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
1387           fixed bug #1692042: input buffer overflow...scanner uses REJECT
1388         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
1389           gcc_unreachable() called internal_error()...
1390
1391 2007-03-30 Raphael Neider <rneider AT web.de>
1392
1393         * src/pic/ralloc.c (isData): suppress garbage debug output
1394
1395 2007-03-28 Borut Razem <borut.razem AT siol.net>
1396
1397         * doc/sdccman.lyx:
1398           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
1399           is developed, built and used worldwide, and the word "night" doesn't
1400           make any sense.
1401
1402 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
1403
1404         * device/include/mcs51/C8051F360.h: new, added
1405         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
1406
1407 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1408
1409         * src/SDCC.y (declaration_specifiers, function_specifier),
1410         * support/Util/SDCCerr.c,
1411         * support/Util/SDCCerr.h,
1412         * src/SDCCsymt.h,
1413         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
1414           inline keyword
1415         * src/SDCCmem.c (deallocParms),
1416         * src/SDCCast.c: support for function inlining, not quite complete
1417         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
1418           'restrict' qualifier
1419
1420 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
1421
1422         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
1423           (saveRBank, unsaveRBank): don't save bits,
1424           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
1425         * support/regression/tests/bug1535242.c: new, added
1426         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
1427           thanks Alexey Shamrin <shamrin AT gmail.com>,
1428           made assert.h header ANSI compliant (added a check for NDEBUG macro,
1429           removed header guard)
1430         * .version,
1431         * sdcc.spec: bumped version to 2.6.5
1432         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
1433
1434 2007-03-22 Borut Razem <borut.razem AT siol.net>
1435
1436         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
1437           fixed bug #1653671: sdcdb integration into ddd is broken
1438
1439 2007-03-22 Raphael Neider <rneider AT web.de>
1440
1441         * src/pic/gen.c (popGetExternal): augmented to also create references
1442           to external variables (not only labels),
1443           (genCall): comment on plan to reduce PAGESEL overhead,
1444           (genFunction, genEndFunction): also save/restore FSR around interrupt
1445           handling code, removed lots of unused code
1446           (genDivOneByte): release acquired temp register
1447         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
1448           of popGetExternal
1449         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
1450           for registers that need to be saved during interrupts (FSR, STATUS,
1451           PCLATH; W needs special handling), currently only FSR is used
1452
1453 2007-03-22 Raphael Neider <rneider AT web.de>
1454
1455         * device/include/pic/pic14devices.txt: 16f688 has only one config word
1456
1457 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1458
1459         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
1460
1461 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
1462
1463         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
1464
1465 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
1466
1467         * as/link/aslink.h: added LKOBJEXT
1468         * as/link/hc08/link_hc08.dsp,
1469         * as/link/hc08/Makefile.bcc,
1470         * as/link/hc08/Makefile.in,
1471         * as/link/mcs51/aslink.dsp,
1472         * as/link/mcs51/Makefile.bcc,
1473         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
1474         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
1475         * as/link/lkaomf51.c: merged and moved
1476         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
1477         * as/link/z80/lkdata.c,
1478         * as/link/lkdata.c: merged and moved
1479         * as/link/hc08/lkmain.c,
1480         * as/link/mcs51/lkmain.c: cosmetic changes
1481         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
1482         * as/link/lklex.c: use LKOBJEXT
1483         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
1484           ANSI-fied functions, removed bubble-sorts
1485         * as/link/z80/lksym.c           as/link/lksym.c: merged,
1486           ANSI-fied functions
1487         * as/link/z80/linkgbz80.dsp,
1488         * as/link/z80/linkz80.dsp,
1489         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
1490           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
1491         * as/link/z80/lkhead.c,
1492         * as/link/z80/lklex.c: deleted
1493         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
1494         * as/link/z80/lkmain.c: added copyfile()
1495
1496 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1497
1498         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
1499
1500 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1501
1502         * device/lib/_strlen.c: assembler version for mcs51
1503
1504 2007-03-13 Raphael Neider <rneider AT web.de>
1505
1506         * device/include/pic16/pic18f2221.h,
1507         * device/include/pic16/pic18f2321.h,
1508         * device/include/pic16/pic18f2331.h,
1509         * device/include/pic16/pic18f4221.h,
1510         * device/include/pic16/pic18f4321.h,
1511         * device/include/pic16/pic18f4331.h: fixed config byte location names
1512         * support/scripts/inc2h-pic16.pl: removed debug output, emit
1513           consistently named config byte locations
1514
1515 2007-03-13 Borut Razem <borut.razem AT siol.net>
1516
1517         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
1518           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
1519           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
1520           as/link/z80/Makefile.in, as/z80/Makefile.in:
1521           introduced LDFLAGS
1522
1523 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1524
1525         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
1526         * device/lib/printf_large.c: pointer was converted to generic
1527         pointer for mcs51 models other than model-small (Maarten noticed)
1528
1529 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1530
1531         * device/include/mcs51/ADuC84x.h: Added.
1532
1533 2007-03-10 Borut Razem <borut.razem AT siol.net>
1534
1535         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
1536           fixed RFE #1624219: double backslashes in filenames;
1537           functions hexEscape(), octalEscape() and copyStr() moved from
1538           SDCCval.c to SDCCutil.c and made them glovbally available
1539
1540 2007-03-09 Borut Razem <borut.razem AT siol.net>
1541
1542         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
1543           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
1544           1673361: Missaligned comments in output files
1545
1546 2007-03-09 Raphael Neider <rneider AT web.de>
1547
1548         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
1549
1550 2007-03-09 Raphael Neider <rneider AT web.de>
1551
1552         * src/pic/gen.c,
1553         * src/pic/glue.c,
1554         * src/pic/ralloc.c: suppress undesired debug output
1555         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
1556
1557 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1558
1559         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
1560
1561 2007-03-07 Borut Razem <borut.razem AT siol.net>
1562
1563         * device/lib/pic16/libdev/pic18f[24][34]31.c:
1564           search include files in the current directory
1565
1566 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
1567
1568         * src/SDCCglue.c (emitMaps, glue),
1569         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
1570           absolute xdata
1571         * support/regression/tests/absolute.c: added xdata test
1572
1573 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
1574
1575         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
1576           added condition to macro, fixes bug 1666080
1577
1578 2007-03-02 Raphael Neider <rneider AT web.de>
1579
1580         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
1581
1582 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1583
1584         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
1585         be cleared. Unconditionally set __XPAGE
1586         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
1587
1588 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1589
1590         * src/SDCCglobl.h,
1591         * src/SDCCmain.c,
1592         * src/mcs51/gen.c,
1593         * src/mcs51/rtrack.c,
1594         * src/ds390/gen.c,
1595         * doc/sdccman.lyx: added --no-gen-comments
1596         * src/mcs51/peeph.def: added 192.b, disabled 185
1597
1598 2007-02-25 Raphael Neider <rneider AT web.de>
1599
1600         * src/pic16/gen.c (genCast): fixed typo
1601         * device/lib/pic16/Makefile.subdir: only install existing files
1602         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
1603
1604 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1605
1606         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
1607         * device/lib/mcs51/crtclear.asm,
1608         * device/lib/mcs51/crtxclear.asm: renumbered labels
1609         * device/lib/mcs51/Makefile.in: added crtcall.asm
1610         * doc/sdccman.lyx: documented mcs51 crt* library startup code
1611         * src/mcs51/gen.c (movc): removed,
1612           (aopGet, genPlusBits): clear a after loading the carry (possibly from
1613             acc.x or psw.x),
1614           (toCarry, genSend, genRet): added function toCarry,
1615           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
1616           (assignBit, genAssign, genCast): added function assignBit
1617         * src/mcs51/Makefile.bcc: added rtrack.c
1618         * src/mcs51/ralloc.h: made valueKnown a bitfield
1619         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
1620           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
1621           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
1622         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
1623         * src/z80/gen.c: added AOP_IS_PAIRPTR,
1624           (_pop): only pop valid pairs, see gencjneshort,
1625           (gencjneshort): return pair that still needs to be popped, restructured,
1626           (gencjne, genCmpEq): call _pop
1627
1628 2007-02-23 Raphael Neider <rneider AT web.de>
1629
1630         * device/include/pic/pic14devices.txt: 16f684 has only one config word
1631
1632 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1633
1634         * device/include/mcs51/P89LPC925.h: Added.
1635
1636 2007-02-18 Raphael Neider <rneider AT web.de>
1637
1638         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
1639
1640 2007-02-17 Borut Razem <borut.razem AT siol.net>
1641
1642         * support/cpp2/directives.c, support/cpp2/version.c:
1643           synchronized with GCC CPP 4.1.2
1644
1645 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1646
1647         * src/mcs51/rtrack.h,
1648         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
1649           by checking the strings passed by emitcode() to the assembler.
1650           Feel free to change. This in part addresses RFE #482179.
1651           Set environment variable SDCC_RTRACK to enable.
1652         * src/mcs51/gen.c: inserted hooks
1653         * src/mcs51/ralloc.h: added two members to struct regs
1654         * support/regression/tests/regtrack.c: added
1655
1656 2007-02-14 Borut Razem <borut.razem AT siol.net>
1657
1658         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
1659         * Makefile.in: applied patch from Makefile related part of
1660           #1469393: Compiler does not initialize static data
1661
1662 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
1663
1664         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
1665           for better fix of bug 1273984, compiles pic16 rand.c
1666
1667 2007-02-12 Borut Razem <borut.razem AT siol.net>
1668
1669         * src/pic16/main.c: fixed pic16 standard library directory bug
1670
1671 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
1672
1673         * src/hc08/gen.c (genSwap): fix swap regression test
1674
1675 2007-02-10 Borut Razem <borut.razem AT siol.net>
1676
1677         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
1678           with same scope
1679         * support/regression/tests/bug-1654060.c: added regression test for
1680           #1654060
1681
1682 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
1683
1684         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
1685         bit moves in return statement
1686
1687 2007-02-09 Borut Razem <borut.razem AT siol.net>
1688
1689         * src/SDCC.y: fixed bug #1654060 typedef within function causes
1690           syntax error
1691
1692 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
1693
1694         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
1695         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
1696
1697 2007-02-07 Raphael Neider <rneider AT web.de>
1698
1699         * src/pic16/devices.inc,
1700         * device/include/pic16/pic18fregs.h,
1701         * device/include/pic16/pic18f[24][34]31.h,
1702         * device/lib/pic16/libdev/pic18f[24][34]31.c,
1703         * device/lib/pic16/pics.all: added 18f[24][34]31 family
1704         * device/lib/pic16/libio/i2c.ignore: do not build i2c
1705
1706 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
1707
1708         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
1709           can this have lived here for so many years?
1710         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
1711           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
1712         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
1713
1714 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
1715
1716         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
1717         appended by loop induction must be at the very end of the eBBlock
1718
1719 2007-02-05 Kevin Vigor
1720
1721         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
1722
1723 2007-02-05 Borut Razem <borut.razem AT siol.net>
1724
1725         * support/regression/fwk/lib/timeout.c: native WIN32 port,
1726           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
1727
1728 2007-02-03 Borut Razem <borut.razem AT siol.net>
1729
1730         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
1731           applied patch #1646602 option to set default signedness of char to
1732           unsigned, added -funsigned-char command line option,
1733           thanks to Gunther Jehle
1734         * device/lib/Makefile.in: added the -f option to rm so it doesn't
1735           prompt for file deletion a few hundred times (especially the
1736           subversion files, which have ro permissions so it asks for
1737           confirmation), thanks to Simon McAuliffe;
1738           added {} + option to find in order to remove multiple files from a
1739           single rm commad
1740
1741 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1742
1743         * device/include/mcs51/SST89x5xRDx.h: Added.
1744
1745 2007-02-02 Raphael Neider <rneider AT web.de>
1746
1747         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
1748         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
1749
1750 2007-02-01 Raphael Neider <rneider AT web.de>
1751
1752         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
1753           config words again
1754
1755 2007-01-31 Borut Razem <borut.razem AT siol.net>
1756
1757         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
1758           if compiled with GCC. Thanks to Raphael Neider
1759
1760 2007-01-31 Raphael Neider <rneider AT web.de>
1761
1762         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
1763             operand names, handles name and (name + n) for all n,
1764           (sameBank): restructured, also check bank allocation policy,
1765         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
1766           (pic14_operandsAllocatedInSameBank): check whether to operands
1767             will be allocated into the same bank (i.e., section) to reduce
1768             BANKSEL overhead, queried from pcode.c:sameBank,
1769           (pic14printLocals): reintroduced clustering registers into a single
1770             section: all compiler generated symbols will now reside in one
1771             bank (per file), reducing BANKSEL overhead and code size,
1772           (showAllMemmaps): use local dbuf where possible
1773
1774 2007-01-29 Raphael Neider <rneider AT web.de>
1775
1776         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
1777           (call_libraryfunc): retrieve/create symbol and mark as used,
1778           (genFunction): mark defined functions as non-extern and add again
1779            to code memmap for later output
1780         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
1781           (pic14printLocals): reworked for new symbol emission,
1782           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
1783           showAllMemmaps): reworked symbol output using dbufs, added handling
1784             of string literals (still incomplete),
1785           (picglue): removed symbol emission, moved into showAllMemmaps,
1786           (emitSymbolSet): new workhorse for symbol output,
1787           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
1788
1789 2007-01-29 Borut Razem <borut.razem AT siol.net>
1790
1791         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
1792           component contains the extension separator.
1793
1794 2007-01-28 Borut Razem <borut.razem AT siol.net>
1795
1796         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
1797           on WIN32
1798         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
1799           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
1800           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
1801           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
1802           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
1803           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
1804           src/z80/gen.c, support/Util/MySystem.c:
1805           accept slash and backslash as directory separator on WIN32 and
1806           Cygwin ports
1807
1808 2007-01-28 Raphael Neider <rneider AT web.de>
1809
1810         * src/pic16/devices.inc,
1811         * device/include/pic16/pic18f[24][23]21.h,
1812         * device/include/pic16/pic18fregs.h,
1813         * device/lib/pic16/libdev/pic18f[24][23]21.c,
1814         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
1815         * device/lib/pic16/libio/adc.ignore,
1816         * device/lib/pic16/libio/i2c.ignore,
1817         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
1818           family, as gputils do not yet support the devices
1819         * device/lib/pic16/Makefile.subdir: ignore errors on install
1820         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
1821           headers and libraries from gputils .inc files
1822
1823 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
1824
1825         * doc/sdccman.lyx: add printf_fast_f precision limitation note
1826
1827 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
1828
1829         * doc/sdccman.lyx: add printf benchmarks
1830
1831 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
1832
1833         * device/lib/printf_fast.c: fix %c, char promoted to int
1834         * device/lib/printf_tiny.c: fix %c, char promoted to int
1835
1836 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
1837
1838         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
1839
1840 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1841
1842         * support/regression/tests/swap.c: 64 bit hosts failed
1843         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
1844
1845 2007-01-25 Raphael Neider <rneider AT web.de>
1846
1847         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
1848           based on absolute register address, patch by Alex Blond
1849
1850 2007-01-22 Raphael Neider <rneider AT web.de>
1851
1852         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
1853           emitted, do not emit them again...
1854
1855 2007-01-22 Raphael Neider <rneider AT web.de>
1856
1857         * src/regression/bank1.c, src/regression/compare6.c,
1858           src/regression/add.c: cosmetic changes
1859         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
1860         * src/pic/gen.c: fixed global zero and one,
1861           (aopForSym): removed unued code,
1862           (aopGet): assert aop is defined, check and use `index' of
1863             pCodeImmd operands (fixes #1630908),
1864         * src/pic/pcode.c (get_op): added output of generic pointer tag,
1865           (register_reassign): prevent accidental register unification,
1866           (ReuseReg): cosmetic changes (also above)
1867         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
1868           pic14emitStaticSeg): do not emit initialized data,
1869           (printIval*): replaced with working versions,
1870           (pic14createInterruptVect,picglue): use idata for initialized data,
1871             now init data should work in all modules (not only main()),
1872         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
1873
1874 2007-01-21 Borut Razem <borut.razem AT siol.net>
1875
1876         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
1877           use -fPIC or -fpic if they are supported and not ignored
1878         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
1879         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
1880
1881 2007-01-20 Borut Razem <borut.razem AT siol.net>
1882
1883         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
1884           implemented RFE #1470316: allow "$" in variable names
1885
1886 2007-01-20 Raphael Neider <rneider AT web.de>
1887
1888         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
1889
1890 2007-01-20 Raphael Neider <rneider AT web.de>
1891
1892         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
1893         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
1894         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
1895         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
1896           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
1897         * device/lib/pic/libdev/pic*.c,
1898         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
1899         * device/lib/pic/libdev/Makefile.in: show progress
1900
1901 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
1902
1903         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
1904         * support/scripts/sdcc_cygwin_mingw32,
1905         * support/scripts/sdcc_mingw32,
1906         * support/scripts/build.mak: replaced --datadir by --datarootdir for
1907         conformance with autoconf 2.6
1908
1909 2007-01-19 Raphael Neider <rneider AT web.de>
1910
1911         * src/pic/device.c (register_map): fixed list construction
1912         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
1913           (genMod): removed case for genModbits,
1914           (genModbits): removed as now unused/unimplemented
1915         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
1916
1917 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1918
1919         * support/regression/tests/swap.c: added in response to #1638622
1920         * doc/sdccman.lyx: synced version, minor changes
1921
1922 2007-01-18 Borut Razem <borut.razem AT siol.net>
1923
1924         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
1925           thanks to Gunther Jehle
1926         * src/asm.c: don't die if the file drfined in #line couldn't be opened
1927         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
1928           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
1929           use filename in lineno instead.
1930         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
1931           print the file name in ast_print()
1932
1933 2007-01-18 Borut Razem <borut.razem AT siol.net>
1934
1935         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
1936           defined in MSVC
1937         * src/SDCC.lex: stringLiteral() returns const char pointer,
1938           EOF detection in stringLiteral(), fixed asmbuf memory leak,
1939           fixed column counting
1940         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
1941           accept const char pointer as parameter
1942         * src/SDCCdwarf2.c: corrected buffer size
1943
1944 2007-01-17 Borut Razem <borut.razem AT siol.net>
1945
1946         * support/Util/dbuf_string.c: fixed for amd64
1947
1948 2007-01-15 Borut Razem <borut.razem AT siol.net>
1949
1950         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
1951           removed terminal symbol ELIPSIS, since it was never generated by the
1952           lexer and it was wrongly used in parameter_identifier_list rule
1953
1954 2007-01-15 Raphael Neider <rneider AT web.de>
1955
1956         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
1957             code page and data banking description
1958         * src/pic/genarith.c,
1959         * src/pic/gen.h: removed bit arithmetic functions,
1960             updated exit(1) to exit(EXIT_FAILURE)
1961         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
1962         * device/include/pic16/pic18f2455.h,
1963         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
1964             TRISD and TRISE, fixed/added some bit names
1965         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
1966         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
1967             updated pic18f2455.{c,h} instead of duplicating them
1968
1969 2007-01-14 Borut Razem <borut.razem AT siol.net>
1970
1971         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
1972           Cannot debug files that contain spaces in the path name
1973           by converting spaces in asm file name to underscores
1974
1975 2007-01-13 Borut Razem <borut.razem AT siol.net>
1976
1977         * doc/sdccman.lyx: fixed format errors
1978
1979 2007-01-10 Borut Razem <borut.razem AT siol.net>
1980
1981         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
1982           codeseg/constseg #pragma fail
1983         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
1984         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
1985           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
1986           suppoprt/cpp2/sdcpp.[ch]: house cleaning
1987
1988 2007-01-09 Borut Razem <borut.razem AT siol.net>
1989
1990         * get rid of diagnistic.[ch], pretty-print.[ch],
1991           c-pretty-print.[ch], ... used just for error, warning, ...
1992           message formatting
1993         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
1994           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
1995           suppoprt/cpp2/pretty-print.[ch]:
1996           removed
1997         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
1998           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
1999           suppoprt/cpp2/sdcpp.dsp:
2000           changed
2001
2002 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
2003
2004         * device/lib/printf_large.c (output_float): removed recursion,
2005           use smaller buffer on stack for mcs51,
2006           fixed bug printing 1.96
2007         * support/regression/tests/snprintf.c: added test
2008
2009 2007-01-07 Borut Razem <borut.razem AT siol.net>
2010
2011         * use dynamic memory buffers instead temporary files
2012         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
2013           added
2014         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
2015           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
2016           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
2017           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
2018           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
2019           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
2020           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
2021           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
2022           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
2023           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
2024           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
2025           support/Util/dbuf.c, support/Util/dbuf.h:
2026           modified
2027         * .version, sdcc.spec: bumped version to 2.6.4
2028
2029 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
2030
2031         * src/port.h: added TARGET_Z80_LIKE macro
2032         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
2033           output PSEG location if --xram-loc or --xstack-loc was used
2034         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
2035
2036 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
2037
2038         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
2039         * as/as_z80.dsp,   as/z80/as_z80.dsp,
2040         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
2041         * sdcc.dsw: moved project files into subdir
2042         * as/hc08/as_hc08.dsp,
2043         * as/hc08/Makefile.bcc,
2044         * as/hc08/Makefile.in,
2045         * as/mcs51/Makefile.bcc,
2046         * as/mcs51/Makefile.in,
2047         * as/z80/Makefile.bcc,
2048         * as/z80/Makefile.in,
2049         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
2050         * as/hc08/asm.h,
2051         * as/mcs51/asm.h,
2052         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
2053         * as/hc08/asmain.c,
2054         * as/hc08/assym.c,
2055         * as/mcs51/asmain.c,
2056         * as/mcs51/assym.c,
2057         * as/z80/assym.c: removed include "strcmpi.h"
2058         * as/hc08/strcmpi.c,
2059         * as/hc08/strcmpi.h,
2060         * as/mcs51/strcmpi.c,
2061         * as/mcs51/strcmpi.h,
2062         * support/Util/strcmpi.c,
2063         * support/Util/strcmpi.h: removed files
2064         * as/strcmpi.c: added as_strncmpi()
2065
2066 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2067
2068         * sdcc.dsw: Added some dependencies on project config.dsp
2069
2070 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
2071
2072         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
2073           with [di]ram_start to fix a regresion
2074
2075 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
2076
2077         * configure.in: added missing mcs51 in status output
2078         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
2079         directory
2080         * debugger/mcs51/clean.mk (distclean): remove config.h
2081         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
2082         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
2083         options.h, s-options-h and options.c
2084         * support/cpp2/clean.mk: unused, removed
2085         * Makefile.common.in,
2086         * main_in.mk,
2087         * as/Makefile.in,
2088         * as/hc08/Makefile.in,
2089         * as/hc08/clean.mk,
2090         * as/mcs51/Makefile.in,
2091         * as/mcs51/clean.mk,
2092         * as/z80/clean.mk,
2093         * as/z80/conf.mk,
2094         * as/z80/Makefile.in,
2095         * as/z80/clean.mk,
2096         * as/link/Makefile.in,
2097         * as/link/hc08/Makefile.in,
2098         * as/link/hc08/clean.mk,
2099         * as/link/mcs51/Makefile.in,
2100         * as/link/mcs51/clean.mk,
2101         * as/link/z80/Makefile.in,
2102         * as/link/z80/clean.mk,
2103         * as/link/z80/conf.mk,
2104         * debugger/mcs51/Makefile.in,
2105         * debugger/mcs51/clean.mk,
2106         * device/include/Makefile.in,
2107         * device/lib/Makefile.in,
2108         * device/lib/mcs51/Makefile.in,
2109         * device/lib/pic/Makefile.in,
2110         * device/lib/pic/Makefile.common.in,
2111         * device/lib/pic/Makefile.subdir,
2112         * device/lib/pic/Makefile.rules,
2113         * device/lib/pic16/libio/Makefile.in,
2114         * device/lib/pic16/Makefile.subdir,
2115         * device/lib/pic16/libdev/Makefile.in,
2116         * device/lib/pic16/Makefile.rules,
2117         * device/lib/pic16/Makefile.common.in,
2118         * sim/ucsim/avr.src/Makefile.in,
2119         * sim/ucsim/main_in.mk,
2120         * sim/ucsim/cmd.src/Makefile.in,
2121         * sim/ucsim/doc/Makefile.in,
2122         * sim/ucsim/gui.src/Makefile.in,
2123         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
2124         * sim/ucsim/gui.src/serio.src/Makefile.in,
2125         * sim/ucsim/hc08.src/Makefile.in,
2126         * sim/ucsim/libltdl/Makefile.in,
2127         * sim/ucsim/s51.src/Makefile.in,
2128         * sim/ucsim/sim.src/Makefile.in,
2129         * sim/ucsim/sim.src/conf.mk,
2130         * sim/ucsim/xa.src/Makefile.in,
2131         * sim/ucsim/z80.src/Makefile.in,
2132         * src/Makefile.in,
2133         * src/clean.mk,
2134         * src/port.mk,
2135         * support/cpp2/Makefile.in,
2136         * support/librarian/Makefile.in,
2137         * support/librarian/clean.mk,
2138         * support/makebin/Makefile.in,
2139         * support/makebin/clean.mk,
2140         * support/packihx/Makefile.in,
2141         * support/regression/Makefile.in,
2142         * support/regression/ports/ds390/spec.mk,
2143         * support/regression/ports/gbz80/spec.mk,
2144         * support/regression/ports/hc08/spec.mk,
2145         * support/regression/ports/mcs51/spec.mk,
2146         * support/regression/ports/mcs51-large/spec.mk,
2147         * support/regression/ports/mcs51-medium/spec.mk,
2148         * support/regression/ports/mcs51-xstack-auto/spec.mk,
2149         * support/regression/ports/pic14/spec.mk,
2150         * support/regression/ports/pic16/spec.mk,
2151         * support/regression/ports/mcs51-stack-auto/spec.mk,
2152         * support/regression/ports/ucz80/spec.mk,
2153         * support/regression/ports/xa51/spec.mk,
2154         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
2155         adding a slash after $(top_builddir) and/or adding @datarootdir@
2156         * configure.in,
2157         * debugger/mcs51/configure.in,
2158         * device/lib/pic/configure.in,
2159         * device/lib/pic16/configure.in,
2160         * sim/ucsim/configure.in,
2161         * support/cpp2/configure.in,
2162         * support/packihx/configure.in: changed AC_PREREQ to 2.60
2163         * configure,
2164         * debugger/mcs51/configure,
2165         * device/lib/pic/configure,
2166         * device/lib/pic16/configure,
2167         * sim/ucsim/configure,
2168         * support/cpp2/configure,
2169         * support/packihx/configure: generated with autoconf 2.60
2170
2171 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
2172
2173         * as/link/hc08/lkihx.c (newArea),
2174         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
2175
2176 2007-01-02 Borut Razem <borut.razem AT siol.net>
2177
2178         * doc/sdccman.lyx: documented #pragma sdcc_hash
2179         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
2180           initialized to 0
2181         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
2182
2183 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
2184
2185         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
2186         empty 'while'-loop to work correctly, see regression test 'while.c'
2187         * support/regression/tests/while.c: added
2188
2189 2007-01-01 Borut Razem <borut.razem AT siol.net>
2190
2191         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
2192           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
2193           support/cpp2/libcpp/sdcpp.c:
2194           sdcpp specific pragma/directive/option handling moved to sdcpp.c
2195         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
2196         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
2197
2198 2006-12-31 Borut Razem <borut.razem AT siol.net>
2199
2200         * SDCPP synchronized with GCC CPP release version 4.1.1,
2201           currently the latest release:
2202         * support/cpp2/libcpp, support/cpp2/libcpp/include,
2203           support/cpp2/libcpp/include/cpp-id-data.h
2204           support/cpp2/libiberty/fopen_unlocked.c
2205           support/cpp2/libiberty/md5.c
2206           support/cpp2/md5.h
2207           support/cpp2/opt-functions.awk
2208           support/cpp2/opt-gather.awk
2209           support/cpp2/optc-gen.awk
2210           support/cpp2/opth-gen.awk:
2211           added
2212         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
2213           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2214           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
2215           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
2216           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
2217           support/cpp2/diagnostic.h, support/cpp2/except.h,
2218           support/cpp2/hwint.h, support/cpp2/input.h,
2219           support/cpp2/intl.h, support/cpp2/move-if-change,
2220           support/cpp2/opts.c, support/cpp2/opts.h,
2221           support/cpp2/output.h, support/cpp2/prefix.c,
2222           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
2223           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
2224           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
2225           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
2226           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
2227           support/cpp2/version.c:
2228           modified
2229         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
2230           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
2231           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
2232           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
2233           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
2234           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
2235           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
2236           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
2237           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
2238           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
2239           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
2240           moved
2241         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
2242           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
2243           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
2244           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
2245           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
2246           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
2247           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
2248           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
2249           support/cpp2/hashtable.h, support/cpp2/line-map.c,
2250           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
2251           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
2252           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
2253           support/cpp2/system.h:
2254           deleted / moved
2255
2256 2006-12-31 Borut Razem <borut.razem AT siol.net>
2257
2258         * configure.in, configure: fixed bug #1538756: configure dies if bison
2259           and flex are not installed, 2nd try
2260
2261 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
2262
2263         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
2264         400.x for better code in RFE 899102
2265
2266 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
2267
2268         * src/SDCCpeeph.c (deadMove),
2269         * src/port.h,
2270         * src/mcs51/peep.h: renamed 'op' by 'reg'
2271         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
2272         (scan4op): small change for removeDeadMove(), added support for
2273         'callee saves' and/or PACLL function calls,
2274         (removeDeadMove): added, removes superflous 'mov r%1,%2',
2275         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
2276         left in new dispatcher mcs51DeadMove()
2277         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
2278         removeDeadMove()
2279         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
2280
2281 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2282
2283         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
2284           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
2285
2286 2006-12-30 Borut Razem <borut.razem AT siol.net>
2287
2288         * support/cpp2/spacs.h: deleted from svn
2289         * configure.in, configure: fixed bug #1538756: configure dies if bison
2290           and flex are not installed
2291
2292 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
2293
2294         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
2295           with this z80 passes printf float test when enabled
2296         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
2297
2298 2006-12-28 Borut Razem <borut.razem AT siol.net>
2299
2300         * support/cpp2/config.in, support/cpp2/configure.in,
2301           support/cpp2/configure, support/cpp2/Makefile.in:
2302           fix for the solaris build
2303
2304 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2305
2306         * src/SDCC.y (type_specifier2, pointer),
2307         * src/SDCCsymt.h,
2308         * src/SDCCsymt.c (mergeSpec, checkSClass),
2309         * support/Util/SDCCerr.c,
2310         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
2311         * support/valdiag/valdiag.py: Allow test cases to specify
2312           required language standard
2313         * support/valdiag/tests/restrict.c: New file to test restrict keyword
2314         * support/valdiag/tests/tentdecl.c: Supress empty source file error
2315
2316 2006-12-27 Borut Razem <borut.razem AT siol.net>
2317
2318         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
2319         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
2320           mbchar removed
2321         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
2322           fixed for borland C
2323         * support/cpp2/libiberty/Makefile.bcc: updated
2324         * src/pic16/main.c: fixed #pragma udata handling
2325         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
2326
2327 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
2328
2329         * src/SDCCpeeph.c: made labelHashEntry global,
2330         made pcDistance, FBYNAME static,
2331         (pcDistance): made static, use isComment and isLabel,
2332         (deadMove): added,
2333         (getLabelRef): added, extracted from labelRefCount(),
2334         (labelRefCount): use new getLabelRef(),
2335         (callFuncByName): made static, added deadMove,
2336         use isComment and isLabel,
2337         (newPeepRule): made static, set isLabel,
2338         (isLabelDefinition): added parameter isPeepRule to allow '%' in
2339         labels from peephole rules,
2340         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
2341         when isComment or isLabel is set
2342         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
2343         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
2344         to make them global
2345         * src/mcs51/peep.h: added
2346         * src/mcs51/peep.c: added, implements mcs51DeadMove()
2347         * src/port.h: added peep->deadMove to port structure
2348         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
2349         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
2350         deadMove, finally removed no. 1 and 2
2351         * src/mcs51/gen.c,
2352         * src/pic/gen.c,
2353         * src/z80/gen.c,
2354         * src/z80/ralloc.c,
2355         * src/pic16/gen.c,
2356         * src/ds390/gen.c,
2357         * src/hc08/gen.c: mark lines with isComment or isLabel
2358         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
2359         * .version,
2360         * sdcc.spec: bumped version to 2.6.3
2361
2362 2006-12-26 Borut Razem <borut.razem AT siol.net>
2363
2364         * support/cpp2/Makefile.in: added dependency on options.h
2365         * configure: regenerated
2366         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
2367         * support/cpp2/Makefile.in: added vasprintf.c
2368
2369 2006-12-25 Borut Razem <borut.razem AT siol.net>
2370
2371         * SDCPP synchronized with GCC CPP release version 3.4.6,
2372           the latest release before 4.x:
2373         * support/cpp2/Makefile.in, support/cpp2/config.h,
2374           support/cpp2/configure, support/cpp2/configure.in,
2375           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
2376           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
2377           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
2378           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
2379           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
2380           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
2381           support/cpp2/cpptrad.c, support/cpp2/except.h,
2382           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
2383           support/cpp2/hwint.h, support/cpp2/intl.h,
2384           support/cpp2/line-map.c, support/cpp2/line-map.h,
2385           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
2386           support/cpp2/output.h, support/cpp2/prefix.c,
2387           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
2388           support/cpp2/system.h, support/cpp2/version.c:
2389           modified
2390         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2391           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
2392           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
2393           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
2394           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
2395           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
2396           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
2397           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
2398           support/cpp2/move-if-change, support/cpp2/opts.c,
2399           support/cpp2/opts.h, support/cpp2/opts.sh,
2400           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
2401           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
2402           support/cpp2/win32, support/cpp2/win32/dirent.c,
2403           support/cpp2/win32/dirent.h:
2404           added
2405         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
2406         * support/cpp2/sdcpp.h: renamed from sdcc.h
2407         * sdcppinit.c: deleted
2408
2409 2006-12-23 Borut Razem <borut.razem AT siol.net>
2410
2411         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
2412           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
2413           preproc.c: an other try to fix bug #982435: introduced
2414           -pedantic-parse-number command line option and pedantic_parse_number
2415           pragma
2416
2417 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
2418
2419         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
2420            BSEG handling,
2421           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
2422            corrected overlayed areax addresses, warn about memory overlaps
2423         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
2424         * src/avr/main.c,
2425         * src/ds390/main.c,
2426         * src/hc08/main.c,
2427         * src/mcs51/main.c,
2428         * src/pic16/main.c,
2429         * src/pic/main.c,
2430         * src/xa51/main.c,
2431         * src/z80/main.c,
2432         * src/port.h: added xabs_name and iabs_name
2433         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
2434           (glue, emitMaps): create and emit maps d_abs and i_abs
2435         * src/SDCCglue.h: cosmetic changes
2436         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
2437         * src/SDCCmem.h,
2438         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
2439           (allocDefault): put absolute, initialized globals in them
2440         * support/regression/tests/absolute.c: added absolute bdata test
2441         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
2442
2443 2006-12-20 Borut Razem <borut.razem AT siol.net>
2444
2445         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
2446         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
2447           added regression test for bug #982435
2448
2449 2006-12-18 Borut Razem <borut.razem AT siol.net>
2450
2451         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
2452         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
2453           small cosmetic changes
2454         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
2455         * support/regression/tests/bug-1351710.c: added regression test
2456
2457 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2458
2459         * doc/sdccman.lyx: added the long missed iCode table
2460           "<where is figure II?>", added links to wiki
2461
2462 2006-12-17 Borut Razem <borut.razem AT siol.net>
2463
2464         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
2465           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
2466           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
2467           unified table driven pragma handling, pragma argument type checking
2468         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
2469           current one - version 1.1.3
2470         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
2471
2472 2006-12-13 Raphael Neider <rneider AT web.de>
2473
2474         * src/pic/device.h: removed AssignedMemory structure and macros
2475         * src/pic/device.c: removed global finalMapping (linker assigns
2476             memory locations),
2477           (register_map): add SFRs to remembered memRanges
2478           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
2479           assignFixedRegisters,assignRelocatableRegisters): removed,
2480           (setMaxRAM,validAddress): adapted accordingly,
2481           (pic14_hasSharebank,pic14_getSharedStack): only report and use
2482             reasonably sized sharebanks,
2483         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
2484           (allDefsOutOfRange): removed unused code,
2485         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
2486             handling
2487         * src/pic/pcode.c (register_reassign): removed recursion warning,
2488             fired far too often,
2489         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
2490             to use existing pic14_stringInSet() to avoid duplicate symbols,
2491             tidied up the code a bit,
2492           (pic14printLocals): added in symmetry to printExterns, replaces
2493             writeUsedRegs more or less,
2494           (picglue): call new pic14_printLocals(),
2495         * device/include/pic/pic*.h: removed #pragma memmap directives,
2496             information gathered from include/pic/pic14devices.txt
2497         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
2498
2499 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
2500
2501         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
2502
2503 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2504
2505         * device/include/mcs51/cc2430.h: fixed missing ';'
2506
2507 2006-12-10 Raphael Neider <rneider AT web.de>
2508
2509         * device/lib/pic16/libc/stdio/vfprintf.c,
2510         * device/lib/pic16/libc/stdio/printf_small.c,
2511         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
2512           char arguments, as char varargs are cast to int by the caller,
2513           hopefully fixes #1604915 (other device libraries are still affected)
2514
2515 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2516
2517         * src/mcs51/ralloc.c (packRegsForAssign),
2518         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
2519
2520 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
2521
2522         * device/include/malloc.h: removed init_dynamic_memory
2523         * device/lib/malloc.c: made init_dynamic_memory static and automatically
2524           call it once from malloc. Also use _sdcc_heap[] from _heap.c
2525         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
2526         * device/lib/libsdcc.lib,
2527         * device/lib/Makefile.in,
2528         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
2529         * doc/sdccman.lyx: documented use of new _heap.c
2530         * support/regression/tests/malloc.c: removed init_dynamic_memory
2531         * src/cdbFile.c(spacesToUnderscores): new function,
2532           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
2533           1068030
2534         * device/include/tinibios.h: removed defines for putchar and getchar
2535         * device/lib/ds390/Makefile.in: added putchar.c
2536         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
2537
2538 2006-12-09 Borut Razem <borut.razem AT siol.net>
2539
2540         * support/cpp2/sdcc.h: prevent multiple inclusion
2541         * support/cpp2/options.h: deleted
2542
2543 2006-12-08 Borut Razem <borut.razem AT siol.net>
2544
2545         * support/cpp2/sdcc.h: removed x*alloc() macros
2546         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
2547         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
2548           support/cpp2/sdcpp.sdc: x*alloc files added to the project
2549         * support/cpp2/system.h: moved #include "sdcc.h"
2550         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
2551           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
2552           added
2553         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
2554           -funsigned-char options
2555         * support/cpp2/sdcppmain.c: fixed bug 1611411
2556
2557 2006-12-07 Borut Razem <borut.razem AT siol.net>
2558
2559         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
2560           directive
2561
2562 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
2563
2564         * src/SDCCsymt.c (addDecl): fixed bug 1609244
2565         * src/SDCCmain.c (linkEdit): fixed bug 1609279
2566         * doc/sdccman.lyx,
2567         * .version: bumped to 2.6.2 because a) it's been a while
2568           b) the linker sources have moved c) the preprocessor is upgraded
2569
2570 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2571
2572         * support/regression/tests/snprintf.c: some checks
2573         * lib/src/printf_large.c: %bc: read char instead of int from stack
2574
2575 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
2576
2577         * device/include/mcs51/cc2430.h: inserted _XPAGE
2578
2579 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2580
2581         * device/include/mcs51/cc2430.h: added
2582
2583 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
2584
2585         * device/include/asm/default/features.h,
2586         * device/include/asm/ds390/features.h,
2587         * device/include/mcs51/at89s53.h,
2588         * device/include/ser.h,
2589         * device/include/ser_ir.h,
2590         * device/include/serial.h: changed keywords to double underscore variants,
2591           fixes bug 1590261 some more, thanks Steven Borley
2592
2593 2006-12-01 Raphael Neider <rneider AT web.de>
2594
2595         * src/pic/pcode.c (register_reassign): do not crash on recursive code
2596           but emit warning (recursion is not supported for pic14)
2597
2598 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2599
2600         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
2601         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
2602
2603 2006-11-30 Raphael Neider <rneider AT web.de>
2604
2605         * src/pic/device.c (dump_sfr): always emit symbols
2606         * src/pic/glue.c (pic14printPublics): fixed typo
2607
2608 2006-11-30 Raphael Neider <rneider AT web.de>
2609
2610         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
2611           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
2612           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
2613            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
2614            a sharebank, use a non-shared bank for the stack if none available
2615         * src/pic/device.h (struct memRange): added linked list next field,
2616           added prototypes for above functions
2617         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
2618           (typeRegWithIdx): accept fixed and unfixed stack registers
2619         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
2620           the stack, handle shared and banked stack (except for WSAVE),
2621           (insertBankSel): removed useless optimization (will never fire),
2622           (FixRegisterBanking): added optimization for devices with only one
2623           possibly aliased bank of memory, like 16f84
2624         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
2625           devices have no SHAREBANK in the linker script
2626         * device/include/pic/pic14devices.txt: documented memmap
2627         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
2628
2629 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2630
2631         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
2632           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
2633           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
2634           genhc08Code): switched most of the D (debug) macros to DD (detailed
2635           debug) macros to better control clutter in the generated .asm file.
2636         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
2637           genRightShift): fixed bug with non-constant bit shift stored to
2638           a volatile result (SF Open Discussion forum thread #1616749).
2639           Single byte case is not yet optimized.
2640
2641 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
2642
2643         * device/include/asm/mcs51/features.h,
2644         * device/include/malloc.h,
2645         * device/include/stdio.h: changed keywords to double underscore variants,
2646           fixes bug 1590261
2647
2648 2006-11-27 Borut Razem <borut.razem AT siol.net>
2649
2650         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
2651           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
2652           support/cpp2/output.h, support/cpp2/cppinit.c,
2653           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
2654           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
2655           support/cpp2/cppdefault.c, support/cpp2/system.h,
2656           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
2657           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
2658           support/cpp2/prefix.c, support/cpp2/except.h,
2659           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
2660           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
2661           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
2662           support/cpp2/version.c, support/cpp2/cppmain.c,
2663           support/cpp2/version.h, support/cpp2/hashtable.c,
2664           support/cpp2/cpperror.c:
2665           synchronized with GCC CPP release version 3.3.6,
2666           the latest where cppmain.c still exists.
2667         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
2668           support/cpp2/sdcppinit.c: added
2669
2670 2006-11-27 Borut Razem <borut.razem AT siol.net>
2671
2672         * support/cpp2/cpplex.c:
2673           fixed _asm ... _endasm handling bug, introduce with GCC CPP
2674           synchronization
2675         * support/cpp2/cpplib.c: removed definitions of unused variables
2676
2677 2006-11-26 Borut Razem <borut.razem AT siol.net>
2678
2679         * support/cpp2/libiberty.h: commented out x*alloc() declarations
2680           since they are redefined by macros in support/cpp2/sdcc.h
2681         * support/cpp2/sdcc.h: x*alloc macro redefinition
2682
2683 2006-11-25 Borut Razem <borut.razem AT siol.net>
2684
2685         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
2686           support/cpp2/configure, support/cpp2/Makefile.in,
2687           support/cpp2/cppfiles.c, support/cpp2/output.h,
2688           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
2689           support/cpp2/config.h, support/cpp2/cpplib.h,
2690           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
2691           support/cpp2/cppdefault.c, support/cpp2/config.in,
2692           support/cpp2/system.h, support/cpp2/cpplex.c,
2693           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
2694           support/cpp2/cppdefault.h, support/cpp2/prefix.c
2695           support/cpp2/hwint.h, support/cpp2/mbchar.h,
2696           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
2697           support/cpp2/configure.in, support/cpp2/intl.h,
2698           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
2699           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
2700           support/cpp2/version.c, support/cpp2/cppmain.c,
2701           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
2702           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
2703           support/cpp2/cpperror.c,
2704           support/cpp2/libiberty/safe-ctype.c,
2705           support/cpp2/libiberty/safe-ctype.h,
2706           support/cpp2/libiberty/splay-tree.c,
2707           support/cpp2/libiberty/obstack.c,
2708           support/cpp2/libiberty/lbasename.c,
2709           support/cpp2/libiberty/splay-tree.h,
2710           support/cpp2/libiberty/obstack.h:
2711           synchronized with GCC CPP release version 3.2.3,
2712           the latest before integration of cpp into gcc
2713         * support/cpp2/except.h, support/cpp2/line-map.c,
2714           support/cpp2/line-map.h,
2715           support/cpp2/libiberty/hex.c,
2716           support/cpp2/libiberty/concat.c,
2717           support/cpp2/libiberty/filenames.h: added
2718         * support/cpp2/intl.c: deleted
2719
2720 2006-11-24 Borut Razem <borut.razem AT siol.net>
2721
2722         * src/SDCC.y: enabled compilation of empty source file
2723         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
2724           "ISO C forbids an empty source file"
2725         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
2726           if all the code is ifdefed out.
2727
2728 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2729
2730         * src/hc08/gen.c (genPcall): fix for bug #1601032
2731
2732 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
2733
2734         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
2735         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
2736         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
2737         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
2738         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
2739         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
2740         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
2741         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
2742         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
2743         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
2744         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
2745         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
2746         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
2747         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
2748         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
2749           Renamed to all upper case as per the standard set by SiLabs
2750
2751 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
2752
2753         * device/include/mcs51/C8051F520.h: new, added
2754         * device/include/mcs51/compiler.h: added link about predefined macros
2755
2756 2006-11-23 Raphael Neider <rneider AT web.de>
2757
2758         * src/regression/Makefile: add -L path to fresh library
2759         * src/regression/simulate: emphasize FAILED output
2760         * src/regression/create_stc: output _failures from gpsim
2761         * src/regression/compare4.c,
2762         * src/regression/rotate6.c: fixed char literals,
2763           all compile, all run =8-D
2764
2765         * src/pic/pcode.h: added isPCASMDIR macro
2766         * src/pic/gen.c (genAnd): fixed bit offset
2767         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
2768           packBits): unified register numbering schemes,
2769           (newReg): do not insert stack registers into hash table,
2770           (initStack): unpinned pseudo stack, simplified,
2771           (typeRegWithIdx): fixed retrieval of stack registers,
2772         * src/pic/pcode.c (addpCodeComment,sameBank): added,
2773           (pCodeReplace): removed invalid assertion,
2774           (insertPCodeInstruction): fixed newly added labels,
2775           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
2776           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
2777           DumpFlow): removed unsed (broken?) code,
2778           (insertBankSel): prevent STATUS from being BANKSELed,
2779           (FixRegisterBanking): rewritten from scratch, implemented generic
2780             optimizations (suppress BANKSELs to same register and to registers
2781             present in all banks),
2782           (AnalyzeBanking): update flow after BANKSELection
2783
2784         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
2785             sharebank, let linker place it, mark STKxx symbols as emitted
2786
2787 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2788
2789         * src/regression/arrays.c,
2790         * src/regression/bank1.c,
2791         * src/regression/bool2.c,
2792         * src/regression/compare7.c,
2793         * src/regression/compare8.c,
2794         * src/regression/compare9.c,
2795         * src/regression/compare10.c,
2796         * src/regression/configword.c,
2797         * src/regression/for.c,
2798         * src/regression/mult1.c,
2799         * src/regression/pointer1.c,
2800         * src/regression/rotate6.c,
2801         * src/regression/string1.c,
2802         * src/regression/struct1.c,
2803         * src/regression/Makefile: make PIC14 regression tests run again
2804           (3 fail, 6 won't compile)
2805
2806 2006-11-21 Raphael Neider <rneider AT web.de>
2807
2808         * device/include/pic16/pic18f4550.h,
2809         * device/include/pic16/pic18f4455.h,
2810         * device/lib/pic16/libdev/pic18f4550.c,
2811         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
2812         * configure.in: removed superfluous closing bracket
2813
2814 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2815
2816         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
2817           always positive.
2818
2819 2006-11-21 Raphael Neider <rneider AT web.de>
2820
2821         * src/pic/device.{c,h}: added pic14_getPIC()
2822         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
2823           (genAnd): added PIC code for one case, fixes #1597044
2824         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
2825           SFRs that are present in all banks (e.g., STATUS)
2826
2827 2006-11-20 Raphael Neider <rneider AT web.de>
2828
2829         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
2830           INCFSZ/INCFSZW and declared them as changing Z bit,
2831           (insertPCodeInstruction): correctly invert the above instructions,
2832           fixes #1599333,
2833           (DoBankSelect): don't panic on po_immediates
2834
2835 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
2836
2837         * as/link/aslink.h,
2838         * as/link/mcs51/lkihx.c (newArea),
2839         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
2840         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
2841
2842 2006-11-11 Raphael Neider <rneider AT web.de>
2843
2844         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
2845           bitfield symbols, fixes #1579535 (once more...).
2846
2847 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2848
2849         * support/regression/generate-cases.py,
2850         * support/regression/fwk/include/testfwk.h,
2851         * support/regression/fwk/lib/testfwk.c: used code pointers,
2852           (about 50kByte less code generated for mcs51)
2853
2854 2006-11-06 Borut Razem <borut.razem AT siol.net>
2855
2856         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
2857           debugger/mcs51/configure: fixed failed check because the function
2858           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
2859           who submitted the patch for gpsim.
2860         * debugger/mcs51/configure.in: removed the result message
2861         * debugger/mcs51/Makefile.in: fixed the config.status warning
2862           "... seems to ignore the --datarootdir setting"
2863
2864 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
2865
2866         * device/include/mcs51/c8051f020.h,
2867         * device/include/mcs51/c8051f040.h,
2868         * device/include/mcs51/c8051f060.h,
2869         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
2870         * src/z80/gen.c (gencjneshort),
2871         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
2872
2873 2006-10-31 Borut Razem <borut.razem AT siol.net>
2874
2875         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
2876           debugger/mcs51/configure: get readline version
2877
2878 2006-10-30 Borut Razem <borut.razem AT siol.net>
2879
2880         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
2881         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
2882           debugger/mcs51/configure: locate readline even when cross compiling
2883         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
2884
2885 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2886
2887         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
2888           serial port.
2889
2890 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
2891
2892         * device/include/malloc.h,
2893         * device/lib/calloc.c,
2894         * device/lib/free.c,
2895         * device/lib/malloc.c,
2896         * device/lib/realloc.c: moved definition of struct into sources
2897         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
2898
2899 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
2900
2901         * as/asx8051.dsp: corrected output directories
2902         * as/link/hc08: new directory for hc08 linker
2903         * as/hc08/aslink.h,             as/link/aslink.h,
2904         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
2905         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
2906         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
2907         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
2908         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
2909         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
2910         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
2911         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
2912         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
2913         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
2914         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
2915         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
2916         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
2917         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
2918         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
2919         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
2920         * as/link/hc08/conf.mk,
2921         * configure,
2922         * configure.in,
2923         * Makefile.in,
2924         * sdcc.dsw: moved hc08 linker to as/link/hc08
2925         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
2926         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
2927         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
2928         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
2929         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
2930         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
2931         * as/link/mcs51/aslink.dsp,
2932         * as/link/mcs51/Makefile.in: factored out the common files
2933         * as/hc08/lkstore.c: deleted, use the one already in as/link/
2934         * as/clean.mk: extra cleaning common files
2935         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
2936         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
2937         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
2938
2939 2006-10-29 Raphael Neider <rneider AT web.de>
2940
2941         * src/pic/ralloc.c (newReg): create aliases for registers with
2942           multiple names to fix #1579535 and #1584001,
2943           (regWithIdx,dirregWithName): resolve aliases on lookup
2944         * src/pic/pcode.c (DoBankSelect): die with error message on failing
2945           bankselect
2946         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
2947           to prevent build errors on small devices
2948
2949 2006-10-28 Raphael Neider <rneider AT web.de>
2950
2951         * src/pic/gen.c (genFunction,genCall): drop "same code page"
2952           assumption within interrupt handlers, fixes #1584940
2953         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
2954           "emitted" to avoid emitting them again in udata
2955
2956 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2957
2958         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
2959         Removed.
2960
2961 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2962
2963         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
2964         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
2965         on/off CR to CRLF conversion.
2966
2967 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2968
2969         * doc/sdccman.lyx: updated IRQ section
2970
2971 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2972
2973         * device/lib/serial_io.c: removed
2974         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
2975         replacements for serial_io.c
2976
2977 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
2978
2979         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
2980
2981 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2982
2983         * device/lib/serial_io.c: Default putchar() and getchar() for
2984           mcs51 uses serial port.
2985
2986 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
2987
2988         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
2989
2990 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2991
2992         * support/regression/ports/mcs51/support.c: smaller
2993         _sdcc_external_startup()
2994         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
2995
2996 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
2997
2998         * device/lib/gbz80/crt0.s,
2999         * device/lib/gbz80/crt0_rle.s,
3000         * device/lib/gbz80/div.s,
3001         * device/lib/gbz80/fstubs.s,
3002         * device/lib/gbz80/heap.s,
3003         * device/lib/gbz80/mul.s,
3004         * device/lib/gbz80/putchar.s,
3005         * device/lib/gbz80/stubs.s,
3006         * device/lib/z80/crt0.s,
3007         * device/lib/z80/crt0_rle.s,
3008         * device/lib/z80/div.s,
3009         * device/lib/z80/fstubs.s,
3010         * device/lib/z80/heap.s,
3011         * device/lib/z80/mul.s,
3012         * device/lib/z80/putchar.s,
3013         * device/lib/z80/stubs.s: reverted, I was mistaken
3014
3015 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3016
3017         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
3018         * support/regression/ports/mcs51/support.c: removed race
3019         condition on TI in _putchar allowing to use serial port mode 0
3020
3021 2006-10-20 Borut Razem <borut.razem AT siol.net>
3022
3023         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
3024
3025 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
3026
3027         * device/lib/gbz80/crt0.s,
3028         * device/lib/gbz80/crt0_rle.s,
3029         * device/lib/gbz80/div.s,
3030         * device/lib/gbz80/fstubs.s,
3031         * device/lib/gbz80/heap.s,
3032         * device/lib/gbz80/mul.s,
3033         * device/lib/gbz80/putchar.s,
3034         * device/lib/gbz80/stubs.s,
3035         * device/lib/z80/crt0.s,
3036         * device/lib/z80/crt0_rle.s,
3037         * device/lib/z80/div.s,
3038         * device/lib/z80/fstubs.s,
3039         * device/lib/z80/heap.s,
3040         * device/lib/z80/mul.s,
3041         * device/lib/z80/putchar.s,
3042         * device/lib/z80/stubs.s: removed all leading underscores from area names
3043
3044 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
3045
3046         * support/regression/ports/mcs51/support.c: use highest baudrate so the
3047           regression tests are not waiting in the simulator for simulated
3048           transmission of debug output
3049
3050 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3051
3052         * device/lib/printf_large.c: slightly smaller
3053         * doc/sdccman.lyx: do not use spaces within html links
3054
3055 2006-10-16 Borut Razem <borut.razem AT siol.net>
3056
3057         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
3058           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
3059           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
3060           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
3061           debugger/mcs51/configure:
3062           [ 1185668 ] add gnu readline support to sdcdb - enabled
3063
3064 2006-10-16 Raphael Neider <rneider AT web.de>
3065
3066         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
3067           fixes #1577882, removes close to all banking optimizations
3068
3069 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
3070
3071         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
3072           variables in code memory
3073         * support/regression/tests/absolute.c: added test for this
3074
3075 2006-10-15 Raphael Neider <rneider AT web.de>
3076
3077         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
3078           devices,
3079           (BankSelect): emit BANKSEL before touching linker-placed regs,
3080           fixes #1570934
3081
3082 2006-10-10 Raphael Neider <rneider AT web.de>
3083
3084         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
3085         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
3086         * src/pic/main.c (_pic14_parseOptions),
3087         * src/pic/main.h: mostly reverted to previous state, now use results
3088             from SDCCmain.c's argument parsing
3089
3090 2006-10-10 Borut Razem <borut.razem AT siol.net>
3091
3092         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
3093           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
3094           [ 1185668 ] add gnu readline support to sdcdb -
3095           prepared for READLINE, not enabled yet,
3096           thanks to <tal.bav AT gmail.com>
3097
3098 2006-10-10 Raphael Neider <rneider AT web.de>
3099
3100         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
3101         * src/pic16/devices.inc,
3102         * device/include/pic16 (pic18f[24]620.h),
3103         * device/include/pic18fregs.h,
3104         * device/lib/pic16/pics.all,
3105         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
3106             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
3107             Gary Plumbridge and Anton Strobl
3108
3109 2006-10-10 Raphael Neider <rneider AT web.de>
3110
3111         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
3112           --stack-siz=NUM options to configure the argument passing stack
3113         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
3114         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
3115           (pic14_getSharebankSize): obey --stack-siz=NUM,
3116           (pic14_getSharebankAddress): obey --stack-loc=NUM
3117
3118 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3119
3120         * doc/sdccman.lyx: added to the manual
3121         * doc/figures/ddd_example.png: added (neither pdflatex nor
3122         most browsers seem to like the .eps file)
3123
3124 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
3125
3126         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
3127         to /tmp and /var/tmp acc. LSB
3128         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
3129         RESULT_TYPE_IFX
3130         * support/regression/tests/onebyte.c: added test
3131
3132 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3133
3134         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
3135
3136 2006-10-05 Borut Razem <borut.razem AT siol.net>
3137
3138         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
3139           thanks to dfulab:
3140           - sdcc.dsw: changed property eol-style to CRLF
3141           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
3142
3143 2006-10-04 Raphael Neider <rneider AT web.de>
3144
3145         * device/include/pic/{pic16f84.h,pic16f84a.h},
3146         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
3147           from patch #1522504, thanks to Robas Teodor
3148
3149 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
3150
3151         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
3152           fixes bug 1566015
3153
3154 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
3155
3156         * src/pic16/glue.c (pic16emitMaps),
3157         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
3158         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
3159         * device/lib/pic16/libc/string/memcpypgm2ram.c,
3160         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
3161           Philipp Krause
3162         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
3163         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
3164
3165 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3166
3167         * support/librarian/sdcclib.c: Added option -l.
3168         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
3169           usage totals.
3170         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
3171           using Windows command prompt.
3172
3173 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
3174
3175         * device/lib/libsdcc.lib: added module rand
3176         * src/ds390/ralloc.c (rematStr),
3177         * src/hc08/ralloc.c (rematStr),
3178         * src/mcs51/ralloc.c (rematStr),
3179         * src/z80/ralloc.c (rematStr): made output more consistent
3180         * src/mcs51/gen.c: cosmetic changes
3181
3182 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
3183
3184         * src/port.h: added mem.cabs_name to PORT
3185         * src/ds390/main.c,
3186         * src/hc08/main.c,
3187         * src/mcs51/main.c,
3188         * src/pic16/main.c,
3189         * src/pic/main.c,
3190         * src/xa51/main.c,
3191         * src/z80/main.c: added cabs_name initializers
3192         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
3193           constants
3194           (emitMaps): emit absolutes in code memory into cabs_name
3195         * src/SDCCmem.c,
3196         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
3197         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
3198         * support/regression/fwk/include/testfwk.h: added define for at
3199         * support/regression/tests/absolute.c: added, new
3200
3201 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
3202
3203         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
3204           optimizations, see also patch 887161 by Stas Sergeev
3205         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
3206           to be necessary anymore,
3207           (102, 103, 104, 127): renamed all occurances of bp to _bp
3208
3209 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
3210
3211         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
3212           thanks Weston T. Schmidt for patch 1555221
3213         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
3214         * src/SDCCicode.c(geniCodeMultiply): small optimization
3215
3216 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
3217
3218         * device/include/stdlib.h: added rand prototypes
3219         * device/lib/rand.c: new, added
3220         * device/lib/Makefile.in: added rand.c
3221         * src/z80/peeph.def,
3222         * src/z80/peeph-gbz80.def,
3223         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
3224
3225 2006-09-20 Raphael Neider <rneider AT web.de>
3226
3227         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
3228
3229 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
3230
3231         * as/link/aslink.h: cosmetic changes
3232         * as/link/mcs51/Makefile.in,
3233         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
3234
3235 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
3236
3237         * as/link/aslink.h,
3238         * as/link/mcs51/aslink.h,
3239         * as/link/z80/aslink.h: merged and moved to as/link/
3240         * as/link/lkstore.c,
3241         * as/link/mcs51/lkstore.c: moved to as/link/
3242         * as/link/clean.mk: remove *.o
3243         * as/link/mcs51/alloc.h: deleted
3244         * as/link/mcs51/lkarea.c: added lnksect prototype
3245         * as/link/mcs51/lkdata.c,
3246         * as/link/mcs51/lklex.c,
3247         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
3248         * as/link/mcs51/lkmem.c,
3249         * as/link/mcs51/lknoice.c: removed include strcmpi.h
3250         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
3251         * as/link/mcs51/aslink.dsp,
3252         * as/link/mcs51/Makefile.aslink,
3253         * as/link/mcs51/Makefile.bcc,
3254         * as/link/mcs51/Makefile.in: updated for moved files
3255         * as/link/z80/lkarea.c,
3256         * as/link/z80/lkhead.c,
3257         * as/link/z80/lklex.c,
3258         * as/link/z80/lklibr.c,
3259         * as/link/z80/lklist.c,
3260         * as/link/z80/lkmain.c,
3261         * as/link/z80/lkrloc.c,
3262         * as/link/z80/lksym.c: synced with mcs51
3263         * as/link/z80/lkdata.c,
3264         * as/link/z80/lkeval.c,
3265         * as/link/z80/lkihx.c,
3266         * as/link/z80/lks19.c: cosmetic changes
3267         * as/link/z80/Makefile.in,
3268         * as/link/z80/linkgbz80.dsp,
3269         * as/link/z80/linkz80.dsp: updated for moved files
3270
3271 2006-09-16 Borut Razem <borut.razem AT siol.net>
3272
3273         * debugger/mcs51/sdcdb.c: partially fixed
3274           [ 1203664 ] sdcdb fails to open files w. two "." periods
3275         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
3276           debugger/mcs51/symtab.h: fixed indenting
3277         * configure.in, configure: up to date with latest Maarten's changes
3278
3279 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
3280
3281         as/link/mcs51
3282         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
3283         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
3284         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
3285         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
3286         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
3287         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
3288         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
3289         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
3290         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
3291         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
3292         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
3293         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
3294         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
3295         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
3296         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
3297         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
3298         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
3299         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
3300         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
3301         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
3302         as/link/mcs51/alloc.h,
3303         as/link/mcs51/clean.mk,
3304         as/link/mcs51/conf.mk,
3305         as/link/mcs51/Makefile.bcc,
3306         as/link/mcs51/Makefile.in,
3307         as/link/mcs51/readme.390,
3308         as/link/mcs51/strcmpi.c,
3309         as/link/mcs51/strcmpi.h,
3310         as/mcs51/clean.mk,
3311         as/mcs51/Makefile.bcc,
3312         as/mcs51/Makefile.in,
3313         configure,
3314         Makefile.in,
3315         sdcc.dsw: moved mcs51 linker to as/link/mcs51
3316
3317 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
3318
3319         * as/link,
3320         * as/link/Makefile.in,
3321         * as/link/z80/linkgbz80.dsp,
3322         * as/link/z80/linkz80.dsp,
3323         * configure,
3324         * link,
3325         * link/clean.mk,
3326         * link/Makefile.in,
3327         * link/README,
3328         * link/z80,
3329         * link/z80/aslink.h,
3330         * link/z80/clean.mk,
3331         * link/z80/conf.mk,
3332         * link/z80/linkgbz80.dsp,
3333         * link/z80/linkz80.dsp,
3334         * link/z80/lkarea.c,
3335         * link/z80/lkdata.c,
3336         * link/z80/lkeval.c,
3337         * link/z80/lkgb.c,
3338         * link/z80/lkgg.c,
3339         * link/z80/lkhead.c,
3340         * link/z80/lkihx.c,
3341         * link/z80/lklex.c,
3342         * link/z80/lklibr.c,
3343         * link/z80/lklist.c,
3344         * link/z80/lkmain.c,
3345         * link/z80/lkrloc.c,
3346         * link/z80/lks19.c,
3347         * link/z80/lksym.c,
3348         * link/z80/Makefile.in,
3349         * Makefile.in,
3350         * sdcc.dsw: moved link/ to as/link/
3351
3352 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
3353
3354         * as/mcs51/i51mch.c (machine): fixed warning
3355
3356 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
3357
3358         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
3359
3360 2006-09-09 Borut Razem <borut.razem AT siol.net>
3361
3362         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
3363           sdcdb WIN32 native port
3364         * src/clean.mk: fixed
3365
3366 2006-09-08 Borut Razem <borut.razem AT siol.net>
3367
3368         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
3369
3370 2006-09-08 Raphael Neider <rneider AT web.de>
3371
3372         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
3373         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
3374             to gplink to disable processor mismatch warning and to allow
3375             the use of devices with only aliased (shared) memory banks,
3376           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
3377
3378 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3379
3380         * doc/sdccman.lyx: Some re-formating plus example on using
3381           #pragma preproc_asm +/-
3382
3383 2006-09-07 Borut Razem <borut.razem AT siol.net>
3384
3385         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
3386           section
3387
3388 2006-09-06 Borut Razem <borut.razem AT siol.net>
3389
3390         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
3391           line at sdcc.nsi:153
3392         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
3393
3394 2006-09-05 Borut Razem <borut.razem AT siol.net>
3395
3396         * configure.in, configure: support for winsock2
3397         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
3398           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
3399           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
3400           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
3401           debugger/mcs51/symtab.h: sdcdb WIN32 native port
3402
3403 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
3404
3405         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
3406           and OP_DEFS
3407         * support/regression/tests/bug1551947.c: new, added
3408         * src/SDCCsymt.h: strings are char* not byte*
3409
3410 2006-09-05 Raphael Neider <rneider AT web.de>
3411
3412         * device/lib/pic16/libdev/pic18f4550.c,
3413           device/include/pic16/pic18f4550.h: added PORTD/TRISD
3414             declarations/definitions from patch #1520949
3415
3416 2006-09-05 Raphael Neider <rneider AT web.de>
3417
3418         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
3419           byte-aligned bitfields, fixes #1539278
3420
3421 2006-09-05 Raphael Neider <rneider AT web.de>
3422
3423         * src/pic/gen.c (genReceive): skip unreferenced arguments,
3424           fixes #1544120
3425
3426 2006-09-04 Borut Razem <borut.razem AT siol.net>
3427
3428         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
3429         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
3430           -mno-cygwin is a part of the compiler name
3431         * support/scripts/sdcc_mingw32: don't disable ucsim
3432
3433 2006-09-03 Borut Razem <borut.razem AT siol.net>
3434
3435         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
3436         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
3437
3438 2006-09-03 Raphael Neider <rneider AT web.de>
3439
3440         * src/pic/ralloc.c,
3441         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
3442           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
3443           fixes #1550049
3444
3445 2006-09-01 Borut Razem <borut.razem AT siol.net>
3446
3447         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
3448           to make ppc-osx happy
3449
3450 2006-08-31 Borut Razem <borut.razem AT siol.net>
3451
3452         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
3453         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
3454         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
3455         * support/regression/ports/ds390/spec.mk,
3456           support/regression/ports/mcs51/spec.mk,
3457           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
3458           To run regression tests in mingw environment:
3459           make DEV_NULL=NUL CC=gcc
3460
3461 2006-08-30 Borut Razem <borut.razem AT siol.net>
3462
3463         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
3464           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
3465           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
3466           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
3467           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
3468           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
3469           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
3470           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
3471           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
3472           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
3473           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
3474           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
3475           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
3476           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
3477           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
3478           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
3479           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
3480           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
3481           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
3482           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
3483           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
3484           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
3485           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
3486           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
3487           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
3488           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
3489           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
3490           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
3491           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
3492           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
3493           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
3494           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
3495           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
3496           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
3497           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
3498           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
3499           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
3500           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
3501           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
3502           ucsim WIN32 native port
3503
3504 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3505
3506         * doc/sdccman.lyx: added note on dynamic memory heap initialization
3507
3508 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
3509
3510         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
3511         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
3512
3513 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
3514
3515         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
3516         * support/regression/tests/bug1546986.c: new, added
3517         * as/mcs51/.cvsignore,
3518         * debugger/mcs51/.cvsignore,
3519         * src/.cvsignore: deleted
3520
3521 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3522
3523         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
3524           definitions)
3525
3526 2006-08-20 Borut Razem <borut.razem AT siol.net>
3527
3528         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
3529           removed cl_listen_console::match(), cl_console::match(),
3530           restructured cl_commander::proc_input()
3531
3532 2006-08-16 Borut Razem <borut.razem AT siol.net>
3533
3534         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
3535           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
3536           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
3537
3538 2006-08-14 Borut Razem <borut.razem AT siol.net>
3539
3540         * support/regression/Makefile.in,
3541           support/regression/ports/pic14/gpsim.cmd,
3542           support/regression/ports/pic14/spec.mk,
3543           support/regression/ports/pic14/support.c:
3544           added pic14 regression test
3545
3546 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
3547
3548         * as/doc/asxhtm.html: documented changed ABS behaviour
3549         * as/doc/README: fixed some typos
3550
3551 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
3552
3553         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
3554           not defined on host
3555
3556 2006-08-12 Borut Razem <borut.razem AT siol.net>
3557
3558         * support/regression/fwk/include/testfwk.h,
3559           support/regression/fwk/lib/testfwk.c,
3560           support/regression/generate-cases.py,
3561           support/regression/Makefile.in:
3562           regression test framework does not depend on function pointers and
3563           variable arguments
3564
3565 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
3566
3567         * device/include/stddef.h: c temporary hack to fix bug 1518273
3568
3569 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3570
3571         * device/include/mcs51/cc2510fx.h: added
3572         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
3573           to projects.
3574
3575 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
3576
3577         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
3578         * as/z80/Makefile.in: added strcmpi.c
3579         * as/z80/z80adr.c: added upper case registers and lower case conditionals
3580         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
3581
3582 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
3583
3584         * device/lib/gbz80/asm_strings.s,
3585         * device/lib/gbz80/crt0_rle.s,
3586         * device/lib/gbz80/div.s,
3587         * device/lib/gbz80/mul.s,
3588         * device/lib/gbz80/shift.s,
3589         * device/lib/z80/asm_strings.s,
3590         * device/lib/z80/crt0_rle.s,
3591         * device/lib/z80/div.s,
3592         * device/lib/z80/mul.s,
3593         * device/lib/z80/shift.s: changed to all lower case menmonics except the
3594           flags which are all upper case
3595
3596 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
3597
3598         * as/z80/asm.h: made CASE_SENSITIVE 1
3599         * link/z80/aslink.h: made CASE_SENSITIVE 1
3600         * src/z80/gen.c (throughout): made all conditionals upper case
3601         * support/regression/tests/bug1503067.c: new
3602
3603 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
3604
3605         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
3606           (shiftIntoPair): added case 2 for PAIR_IY,
3607           (setupToPreserveCarry): replaced parameters with iCode and check if
3608            PAIR_DE is in use to fix bug 1399290,
3609           (genPlus, genMinus): updated call to setupToPreserveCarry
3610         * support/regression/tests/bug1399290.c: new
3611
3612 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
3613
3614         * device/lib/Makefile.in (Z80SOURCES): enabled float support
3615         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
3616         * src/ds390/gen.c (shiftRLong),
3617         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
3618         * src/mcs51/gen.c (sameReg): changed to sameByte,
3619           (xch_a_aopGet): new,
3620           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
3621            shiftRLong): fixed bug 1533966
3622         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
3623           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
3624         * support/regression/Makefile.in: disabled z80, enabled ucz80
3625         * support/regression/tests/float_trans.c: enabled test for z80 and host
3626         * support/regression/tests/shifts2.c: new, for testing bug 1533966
3627
3628 2006-08-01 Borut Razem <borut.razem AT siol.net>
3629
3630         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
3631           comparison is always false due to limited range of data type
3632           on PPC64 machine (openpower-linux1) where "char = unsigned char"
3633
3634 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
3635
3636         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
3637         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
3638         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
3639         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
3640
3641 2006-07-31 Borut Razem <borut.razem AT siol.net>
3642
3643         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
3644           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
3645           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
3646           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
3647           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
3648           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
3649           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
3650           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
3651           enable ucsim mingw compilation. Serial port is disabled,
3652           since it uses termios.h API, which is not available on native
3653           WIN32
3654
3655 2006-07-31 Borut Razem <borut.razem AT siol.net>
3656
3657         * Small Device C Compiler 2.6.0 released
3658         * support/scripts/sdcc.nsi: added FULL_DOC option
3659         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
3660
3661 2006-07-28 Borut Razem <borut.razem AT siol.net>
3662
3663         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
3664         * doc/INSTALL.txt: updated
3665
3666 2006-07-27 Borut Razem <borut.razem AT siol.net>
3667
3668         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
3669           device/lib/pic/libdev/Makefile.in: fixed bug
3670           [ 1438354 ] pic libsdcc: distclean doesn't work
3671         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
3672           device/lib/pic16/libio/Makefile.in: fixed bug
3673           [ 1438344 ] pic16 lib: clean doesn't work properly
3674         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
3675
3676 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
3677
3678         * device/lib/pic/libsdcc/fsdiv.c,
3679         * device/lib/pic/libsdcc/fsmul.c,
3680         * device/lib/pic16/libsdcc/float/fsdiv.c,
3681         * device/lib/pic16/libsdcc/float/fsmul.c,
3682         * device/lib/_fsdiv.c,
3683         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
3684         * support/regression/tests/bug1520966.c: added
3685         * doc/knownbugs.html: removed [ 1520966 ] from the list
3686
3687 2006-07-25 Borut Razem <borut.razem AT siol.net>
3688
3689         * configure.in, configure, sdccconf_in.h: fixed bug
3690           [ 1519095 ] regression test onebyte.c fails on ppc64 host
3691         * doc/knownbugs.html: removed [ 1519095 ] from the list
3692
3693 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
3694
3695         * doc/knownbugs.html: added, contains list of known bugs at release
3696         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
3697
3698 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
3699
3700         * device/include/mcs51/compiler.h: added SFRX for xdata based special
3701           function registers and corrected defaults with additional warning
3702         * device/lib/malloc.c: cosmetic changes
3703         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
3704         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
3705           (fillGaps): and used it
3706
3707 2006-07-20 Raphael Neider <rneider AT web.de>
3708
3709         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
3710           output unless SDCCPICDEBUG is set
3711         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
3712           output if SILENT is set
3713
3714 2006-07-11 Borut Razem <borut.razem AT siol.net>
3715
3716         * doc/README.txt: updated
3717
3718 2006-07-10 Borut Razem <borut.razem AT siol.net>
3719
3720         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
3721           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
3722           in WIN32 installation
3723         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
3724           release candidate 1
3725
3726 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
3727
3728         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
3729         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
3730
3731 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
3732
3733         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
3734
3735 2006-07-06 Borut Razem <borut.razem AT siol.net>
3736
3737         * support/regression/tests/bitfields.c:
3738           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
3739         * support/regression/tests/constantRange.c:
3740           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
3741
3742 2006-07-04 Borut Razem <borut.razem AT siol.net>
3743
3744         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
3745           src/port.mk,
3746           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
3747           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
3748           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
3749           reverted changes from 2006-07-03
3750         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
3751         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
3752           added CPPFLAGS, used by the host port
3753
3754 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
3755
3756         * support/regression/valdiag/tests/switch.c,
3757         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
3758         * support/regression/tests/libmullong.c: fixed for host
3759         * support/regression/ports/host/spec.mk: disable all warnings for host,
3760         SDCC runs with --less-pedantic too
3761
3762 2006-07-03 Borut Razem <borut.razem AT siol.net>
3763
3764         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
3765           defined CPPFLAGS
3766         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
3767         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
3768           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
3769           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
3770           include ../port.mk
3771         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
3772           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
3773           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
3774           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
3775
3776 2006-07-02 Raphael Neider <rneider AT web.de>
3777
3778         * src/pic16/devices.inc,
3779         * device/include/pic16/pic18fregs.h,
3780         * device/include/pic16/pic18f4550.h,
3781         * device/lib/pic16/pics.all,
3782         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
3783
3784 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
3785
3786         * as/hc08/lkaomf51.c (OutputName),
3787         * as/mcs51/lkaomf51.c (OutputName),
3788         * as/z80/asmain.c (asmbl),
3789         * src/ds390/main.c (asmLineNodeFromLineNode),
3790         * src/hc08/ralloc.c (hc08_assignRegisters),
3791         * src/mcs51/main.c (asmLineNodeFromLineNode),
3792         * src/xa51/ralloc.c (checkRegMask),
3793         * src/xa51/gen.c (emitcode),
3794         * src/z80/gen.c (_emit2),
3795         * src/SDCCast.c (searchLitOp),
3796         * src/SDCCglobl.h,
3797         * support/packihx/packihx.c,
3798         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
3799         * src/ds390/gen.c (aopPutUsesAcc),
3800         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
3801         * support/regression/tests/libmullong.c (mullong_wrapper),
3802         * src/SDCCsymt.c (powof2),
3803         * src/SDCCast.c,
3804         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
3805         * src/SDCCsymt.h: added TYPE_TARGET_*
3806         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
3807         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
3808         SDCCast because 1) header problems 2) this is the right place
3809         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
3810         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
3811         prototype
3812
3813 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
3814
3815         * src/SDCCicode.h: removed buggy semicolon in unused macro
3816         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
3817         search for previous definiton of auto symbols too,
3818         (findPrevUse): fixed logic of emitWarnings
3819
3820 2006-06-26 Raphael Neider <rneider AT web.de>
3821
3822         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
3823           PCLATH and PCLATU on interrupts, potentially fixes #1505141
3824
3825 2006-06-25 Raphael Neider <rneider AT web.de>
3826
3827         * device/lib/pic/libm: NEW, added math library functions
3828         * device/lib/pic/libsdcc: NEW; added float support functions
3829         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
3830         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
3831           NEW, added math related headers
3832         * device/include/asm/pic/features.h: NEW
3833         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
3834           (popGet): allow larger offsets for AOP_PCODE,
3835           (genDataPointerSet): handle literals explicitly, more debug output,
3836           (genAssign): fixed for float using aopLiteral ;-)
3837         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
3838           GOTO initialisation routine
3839         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
3840           flag on registers, fixes #1469043 (local variables do not work)
3841         * src/pic/main.c (_pic14_do_link),
3842         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
3843           available
3844
3845 2006-06-25 Borut Razem <borut.razem AT siol.net>
3846
3847         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
3848           characters printed (not including the trailing '\0' used to end
3849           output to strings). Problem detected in regression test bug-927659.c.
3850           NOTE: printf() family functions should return int instead
3851           unsigned int!
3852         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
3853           specifier are printed as themselves
3854         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
3855           support flags, width and precision specifiers
3856
3857 2006-06-24 Borut Razem <borut.razem AT siol.net>
3858
3859         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
3860           to the list of sdcc tagrets not supporting bit type
3861         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
3862           testfor pic16 due to bug:
3863           [ 1511794 ] pic16: regression test bug-895992.c fails
3864
3865 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
3866
3867         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
3868         * src/SDCCglue.c (initPointer), fixed bug 1496419
3869         * support/regression/tests/bug1496419.c: new, added
3870
3871 2006-06-22 Borut Razem <borut.razem AT siol.net>
3872
3873         * support/regression/ports/pic16/support.c: use gpsim usart module from
3874           libgpsim_modules library
3875
3876 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3877
3878         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
3879         IP0H to IPH0.
3880
3881 2006-06-19 Raphael Neider <rneider AT web.de>
3882
3883         * src/pic/glue.h,src/pic16/glue.h: added prototypes
3884         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
3885           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
3886           (pic14printExterns,pic14printPublics,pic16printPublics,
3887           pic16_printExterns): use new functions to emit symbols
3888           (picglue,pic16glue): emit publics before emitting externs
3889         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
3890           locally defined functions to avoid bug #1443651
3891         * support/regression/tests/bug-716242.c: removed pic16 workaround
3892         * support/regression/ports/pic16/spec.mk: ignore errors during build
3893
3894 2006-06-19 Raphael Neider <rneider AT web.de>
3895
3896         * src/pic/glue.h: added pic14aopLiteral prototype
3897         * src/pic/glue.c (pic14aopLiteral): return unsigned int
3898         * src/pic/gen.c: removed stdint.h dependency
3899           (aopGet): use Safe_strdup()
3900           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
3901           (genDataPointerSet): use pic14aopLiteral()
3902         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
3903           for pic16; thanks to Bernhard and Maarten
3904
3905 2006-06-18 Borut Razem <borut.razem AT siol.net>
3906
3907         * support/regression/tests/structflexarray.c: flexible array members
3908           not supported by gcc < 3
3909         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
3910           GUI tool by default
3911         * src/pic/gen.c: don't include [p]strdin.h on solaris
3912         * support/Util/pstdint.h: addad svn attributes
3913         * support/regression/tests/constantRange.c,
3914           support/regression/tests/rotate.c: include inttypes.h instead
3915           stdint.h on solaris, addad svn attributes
3916
3917 2006-06-18 Raphael Neider <rneider AT web.de>
3918
3919         * src/SDCCsymt.c (initCSupport): change return type of divschar to
3920           int for PIC16
3921         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
3922           (pic16_genMinusBits): simplified sign-extension
3923           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
3924             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
3925             adjusted to correctly handle mixed-signed operands, disabled
3926             now unused multiplciation routines
3927         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
3928           (assignResultValue): added argument denoting the size of the result
3929             as returned by the function (fixes upcasts in assigning from
3930             function calls: char foo(); int i = foo();)
3931           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
3932             function result to assignResultValue
3933           (genMult): disabled inlined multiplication code
3934           (genDiv): augmented to also handle the modulus operator, fixed to
3935             handle mixed-signed operands correctly
3936           (genMod): simply call genDiv, disabled unused code
3937           (genAssign): fixed missing (sign-)extension on result
3938         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
3939             valid char operands, allow signed operands for native code, added
3940             division and modulo operator handling
3941         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
3942
3943         As a consequence, onebyte.c (if split into two files) and muldiv.c
3944         pass regression tests.
3945
3946 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3947
3948         * doc/Makefile.in: two runs of makeindex seem needed to get
3949         correct page references in the index of sdccman.pdf
3950         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
3951
3952 2006-06-17 Borut Razem <borut.razem AT siol.net>
3953
3954         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
3955
3956 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3957
3958         * doc/sdccman.lyx: updated, added (porting source code, debugging),
3959         mentioned ec2drv and paulmon
3960
3961 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
3962
3963         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
3964           consecutive abs areas
3965           (find_empty_space, allocate_space): added map to handle codemap or
3966            xdatamap,
3967           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
3968            absolute idata and xdata
3969         * as/mcs51/lkmem.c (summary2): updated legend
3970
3971 2006-06-16 Raphael Neider <rneider AT web.de>
3972
3973         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
3974
3975 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
3976
3977         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
3978           1208515
3979         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
3980
3981 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
3982
3983         * src/port.h (struct PORT): added field gp_tags, to hold the tag
3984         value of generic pointers,
3985         * src/avr/main.c,
3986           src/ds390/main.c,
3987           src/hc08/main.c,
3988           src/izt/i186.c,
3989           src/izt/tlcs900h.c,
3990           src/mcs51/main.c,
3991           src/pic/main.c,
3992           src/pic16/main.c,
3993           src/xa51/main.c,
3994           src/z80/main.c: PORT structure, added elements for gp_tags field,
3995         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
3996         fields in the PORT structure of each port,
3997         * src/SDCCast.c (decorateType): allow processing of generic pointers
3998         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
3999         S_FIXED symbols
4000
4001 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
4002
4003         * link/z80/lkgb.c,
4004         * link/z80/lkgg.c,
4005         * src/pic16/gen.c,
4006         * src/pic16/main.c,
4007         * src/pic16/pcode.c,
4008         * src/pic/main.c,
4009         * src/pic/pcoderegs.c,
4010         * src/SDCCicode.c,
4011         * src/SDCCmain.c,
4012         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
4013           bug 1504689 on minGW
4014
4015 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4016
4017         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
4018
4019 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
4020
4021         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
4022
4023 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
4024
4025         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
4026           for optimization
4027
4028 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
4029
4030         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
4031         to a char variable. Fixed bug #1504211
4032         * device/include/pic16/adc.h,
4033         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
4034         and fixed bug #1364390
4035
4036 2006-06-10 Borut Razem <borut.razem AT siol.net>
4037
4038         * CVSROOT: removed the CVS left-over
4039
4040 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
4041
4042         * as/hc08/asmain.c (asexit),
4043         * as/hc08/lkmain.c (lkexit),
4044         * as/mcs51/asmain.c (asexit),
4045         * as/mcs51/lkmain.c (lkexit),
4046         * src/SDCCglue.c (DEFSETFUNC),
4047         * src/SDCCmain.c (linkEdit, assemble),
4048         * support/librarian/sdcclib.c (AddRel),
4049           replaced unlink() by standard C remove()
4050         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
4051         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
4052           gatherImplicitVariables): new, added to fix bug 608752,
4053           (createFunction): added gatherImplicitVariables()
4054         * src/SDCCast.h: added createRMW prototype
4055         * src/SDCCsymt.h (struct symbol): added infertype
4056         * support/regression/tests/bug608752.c: new, added
4057
4058 2006-06-10 Raphael Neider <rneider AT web.de>
4059
4060         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
4061           multibyte dummy reads (fixes #1503234)
4062
4063 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
4064
4065         * device/include/mcs51/compiler.h: new, added header file to enable
4066           creating common sfr definition header files for different compilers
4067
4068 2006-06-05 Raphael Neider <rneider AT web.de>
4069
4070         * src/pic16/{pcode.h,genarith.c}:
4071           introduced pCodeOp combining any two pCodeOps (previously only
4072           two register operands could be combined), removed pcop2 from
4073           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
4074         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
4075         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
4076           rewritten to use new PO_TWO_OPS
4077         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
4078         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
4079           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
4080           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
4081           (pic16_get_op): embraced return arg to allow #define return(x),
4082             added new case for combined opcodes
4083           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
4084           (pic16_pCode2str,pic16_getRegFrompCodeOp,
4085            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
4086
4087 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
4088
4089         * src/SDCCval.c (checkConstantRange): added
4090         * src/SDCCval.h: added checkConstantRange
4091         * support/Util/SDCCerr.c,
4092         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
4093         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
4094         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
4095         * src/SDCCast.c (decorateType): added checkConstantRange,
4096         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
4097         can be emitted with the correct always true/false warning,
4098         added optimization for double '!';
4099         result of decorateType() must be assigned back to the tree, because
4100         decorateType() can change the tree
4101         * src/SDCCicode.c (geniCodeLogic),
4102         (geniCodeAssign): replaced new checkConstantRange, added warnings,
4103         (checkConstantRange): removed, it was only a fragment which never
4104         emitted a warning
4105         * src/SDCCsymt.c (computeType): fixed promotion for
4106         "-1 < (unsigned bit) b"
4107         * src/pic/ralloc.c (packRegsForAssign),
4108         * src/pic16/ralloc.c (packRegsForAssign),
4109         * src/hc08/ralloc.c (packRegsForAssign),
4110         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
4111         from mcs51
4112         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
4113         * support/regression/tests/constantRange.c: added
4114         * support/valdiag/tests/constantRange.c: added
4115         * support/valdiag/valdiag.py: added -DPORT_HOST=1
4116
4117 2006-06-02 Borut Razem <borut.razem AT siol.net>
4118
4119         * support/regression/ports/pic16/support.c: increase stack size
4120           to 255 bytes
4121         * support/regression/Makefile.in: sort tests by name so that the
4122           resutlts can be compared on different machines / platforms
4123
4124 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
4125
4126         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
4127         * src/ds390/gen.c (emitLabel): new, added,
4128           (genDjnz): fixed stack overflow bug,
4129           (throughout): cosmetic changes to sync with mcs51/gen.c,
4130           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
4131         * src/mcs51/gen.c (genEndFunction): small optimization,
4132           (throughout): cosmetic changes to sync with ds390/gen.c
4133
4134 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
4135
4136         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
4137           (_print_format): fixed printing pointers
4138         * src/mcs51/gen.c (emitLabel, movb): new, added,
4139           (genAssign): small optimization,
4140           (genDjnz): fixed stack overflow bug,
4141           (throughout): replaced sprintf with SNPRINTF,
4142           replaced mcs51_regWithIdx with REG_WITH_INDEX,
4143           replaced emitcode("mov", "b,...") with MOVB(...),
4144           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
4145           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
4146         * src/mcs51/peeph.def: added rules 140 and 264
4147         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
4148           so they may get optimized into registers
4149
4150 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
4151
4152         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
4153           immediately when encountered,
4154           (printUsage): always use stderr even on windows
4155
4156 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
4157
4158         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
4159         (processParms): fixed bug #1247551
4160         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
4161         parseCmdLine, main): print '--version' to stdout,
4162         print 'help' to stdout if --help is given,
4163         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
4164         arguments are given; fixed --help
4165
4166 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
4167
4168         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
4169         * support/regression/tests/bug-1493710.c: added
4170
4171 2006-05-27 Borut Razem <borut.razem AT siol.net>
4172
4173         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
4174           static instead auto
4175         * support/regression/ports/pic16/support.c: increase stack size
4176           from default 64 bytes to 128 bytes
4177         * support/regression/tests/staticinit.c,
4178           support/regression/tests/float.c: regression tests fully enabled
4179           for pic16 port by putting the initialized data arrays into the code
4180           section
4181         * support/regression/ports/pic16/spec.mk: don't link default libraries.
4182           This was changed by mistake in the previous version.
4183
4184 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
4185
4186         * src/pic16/gen.c (genFunction, genEndFunction): some
4187         beautifications, fixed bug with falsely restoring FSR2 in large
4188         stack model, thanks to Beau E. Cox for reporting the bug
4189
4190 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
4191
4192         * debugger/mcs51/break.c,
4193         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
4194           use %p to print pointers, made address variables unsigned
4195         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
4196         * debugger/mcs51/symtab.c (parseSymbol): must return something
4197         * src/mcs51/gen.c (aopForSym): small optimization,
4198            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
4199           (freeAsmop): added missing break,
4200           (aopPut): removed parameter bvolatile, determine it inside the function,
4201           (saveRegisters, unsaveRegisters): small optimization,
4202           (genIpush): removed pointless check,
4203           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
4204           replaced sprintf with SNPRINTF,
4205           replaced strcpy with strncpyz,
4206           updated aopPut calls,
4207           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
4208         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
4209
4210 2006-05-24 Borut Razem <borut.razem AT siol.net>
4211
4212         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
4213           modification of test for the pic16 port, put the array to the code
4214           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
4215
4216 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4217
4218         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
4219         * support/Util/pstdint.h: added
4220
4221 2006-05-22 Borut Razem <borut.razem AT siol.net>
4222
4223         * src/regression/Makefile: removed bool2.c test, added -q linker option
4224         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
4225           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
4226           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
4227           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
4228           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
4229           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
4230           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
4231           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
4232           define SUPPORT_BIT_TYPES 0, removed unused bit variables
4233
4234 2006-05-22 Raphael Neider <rneider AT web.de>
4235
4236         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
4237           bug #1492360 (problematic due to generic pointers, see code)
4238
4239 2006-05-22 Borut Razem <borut.razem AT siol.net>
4240
4241         * support/regression/ports/pic16/specs.mk: removed stack size linker
4242           directive
4243         * support/regression/tests/array.c,
4244           support/regression/tests/bitopcse.c,
4245           support/regression/tests/bug-908454.c,
4246           support/regression/tests/malloc.c: modified for pic16 regression test
4247         * support/regression/tests/bitfields.c:
4248           pic16 - excluded bitfileds of size > 8
4249         * support/regression/tests/bp.c: pic16 - reduced data size
4250         * support/regression/tests/bug-221100.c: pic16 - reduced data size
4251         * support/regression/tests/bug-460010.c:
4252           pic16 - used the absolute address the fits in memory
4253         * support/regression/tests/bug-716242.c:
4254           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
4255         * support/regression/tests/float.c:
4256           pic16 - excluded - data size too big
4257         * support/regression/tests/onebyte.c:
4258           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
4259         * support/regression/tests/shifts.c:
4260           pic16 - function names probably have to differ in first X characters
4261           (gpasm limitation?)
4262         * support/regression/tests/staticinit.c:
4263           pic16 - excluded some tests due error: no target memory available for
4264           section ".idata"
4265
4266 2006-05-22 Borut Razem <borut.razem AT siol.net>
4267
4268         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
4269           second try. Thanks Stas Sergeev once more.
4270
4271 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
4272
4273         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
4274           (genLeftShift, genRightShift): fixed bug 1491627
4275         * src/hc08/peeph.def (rules 7, 8.x): added
4276         * support/regression/tests/shifts.c (ShiftLeftByParam,
4277           ShiftRightByParam, testShiftByParam): added to test variable shifting
4278
4279 2006-05-20 Raphael Neider <rneider AT web.de>
4280
4281         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
4282         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
4283           (allocReg): add only new registers to dynAllocRegs,
4284           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
4285             #1489055, #1445850, and probably #1483693
4286
4287 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
4288
4289         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
4290         bug in for-loop that didn't emit the last of CONFIG and ID registers
4291
4292 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
4293
4294         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
4295           with offset
4296         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
4297           1489016, 1434401 and 1490124
4298         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
4299           1489016, 1434401 and 1490124
4300
4301 2006-05-17 Borut Razem <borut.razem AT siol.net>
4302
4303         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
4304           thanks Stas Sergeev
4305
4306 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
4307
4308         * device/include/mcs51/P89c51RD2.h,
4309         * device/include/mcs51/P89LPC901.h,
4310         * device/include/mcs51/P89LPC922.h,
4311         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
4312
4313 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
4314
4315         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
4316         to fix missing stack pragma in compiled binary object file,
4317
4318 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
4319
4320         * support/packihx/configure.in,
4321         * support/packihx/configure: removed warning, autoconf >= 2.5x can
4322         determine sizeof basic types even while cross compiling
4323
4324 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
4325
4326         * src/avr/gen.c (aopop),
4327         * src/ds390/gen.c (aopOp),
4328         * src/hc08/gen.c (aopOp),
4329         * src/mcs51/gen.c (aopop),
4330         * src/pic16/gen.c (pic16_aopOp),
4331         * src/pic/gen.c (aopOp),
4332         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
4333         if size of operand is smaller than spill location
4334
4335 2006-05-12 Borut Razem <borut.razem AT siol.net>
4336
4337         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
4338           have to have CR/LF line endings even if they are checked out on *nix
4339           or on WIN32 in cygwin binmode
4340
4341 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
4342
4343         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
4344         * device/include/ds80c390.h: added sfr16 definitions
4345         * src/ds390/gen.c,
4346         * src/ds390/gen.h,
4347         * src/ds390/main.c,
4348         * src/ds390/ralloc.c,
4349         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
4350           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
4351           bit returning functions
4352         * support/regression/tests/sfr16.c: enabled test on ds390
4353
4354 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4355
4356         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
4357         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
4358
4359 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
4360
4361         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
4362         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
4363           (cl_address_space constructor): removed expensive initialization,
4364           (cl_address_space::get_cell): extended for late initialization,
4365           (cl_address_space::*): use late initialization,
4366           (cl_address_decoder::activate): removed expensive initialization,
4367           This reduced regression test running time by 25%
4368
4369 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
4370
4371         * packihx/,
4372         * configure.in,
4373         * configure,
4374         * sdcc.dsw,
4375         * Makefile.bcc,
4376         * Makefile.in,
4377         * support/packihx/Makefile.in,
4378         * support/packihx/clean.mk,
4379         * support/packihx/Makefile.bcc,
4380         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
4381
4382 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4383
4384         * src/SDCCval.c (valNot): fix for regression test failure
4385           of not.c on big endian hosts
4386
4387 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
4388
4389         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
4390
4391 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4392
4393         * device/lib/mcs51/Makefile.in: changed string comparison operator
4394           to = for POSIX compliance; == is bash extension
4395
4396 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
4397
4398         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
4399           kosmonaut_pirx
4400
4401 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
4402
4403         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
4404         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
4405         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
4406         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
4407         bug report #1478657,
4408
4409 2006-05-05 Borut Razem <borut.razem AT siol.net>
4410
4411         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
4412           making the html
4413
4414 2006-05-02 Borut Razem <borut.razem AT siol.net>
4415
4416         * doc/Makefile.in: removed *.ind dependency since there is no rule to
4417           create *.ind, which made make to fail if invoked with -j 2
4418
4419 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
4420
4421         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
4422           Hubert Sack for patch 1479782
4423
4424 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
4425
4426         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
4427
4428 2006-05-01 Raphael Neider <rneider AT web.de>
4429
4430         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
4431           (create_pic): store only prefix-free device name,
4432           (init_pic): check for device names with "16" prefix,
4433           (list_valid_pics),
4434         * src/pic/device.h (struct PIC_device),
4435         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
4436             stored device name,
4437         * device/include/pic/pic12f{635,675,629,683}.h,
4438         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
4439         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
4440         * device/include/pic/pic16f505.h,
4441         * device/lib/pic/libdev/pic16f505.c: removed
4442         * device/include/pic/pic14devices.txt: added support for pic12f
4443             devices, removed unsupported non 16-bit devices
4444             [above changes provided by patch from Zik Saleeba]
4445         * src/pic/*, src/pic16/*, device/include/pic16/*,
4446           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
4447
4448 2006-05-01 Borut Razem <borut.razem AT siol.net>
4449
4450         * configure.in, configure, doc/Makefile.in:
4451           sync with nightly build makefile - latex, dvipdf and dvips
4452           not needed any more
4453
4454 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
4455
4456         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
4457         in the library source
4458
4459 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
4460
4461         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
4462
4463 2006-04-28 Raphael Neider <rneider AT web.de>
4464
4465         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
4466         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
4467           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
4468         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
4469
4470 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
4471
4472         * device/lib/pic/libdev/Makefile.in,
4473         * device/lib/hc08/Makefile.in,
4474         * device/lib/gbz80/Makefile.in,
4475         * device/lib/z80/Makefile.in,
4476         * device/lib/ds390/Makefile.in,
4477         * device/lib/ds400/Makefile.in: added srcdir to include search path,
4478         thanks to Borut for the bug report
4479         * configure.in,
4480         * configure: always create doc/Makefile independent from --enable-doc
4481         * Makefile.in: always install from directory doc independent from
4482         --enable-doc
4483         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
4484         removed
4485         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
4486         * doc/Makefile.in: install *.txt if present
4487         * device/include/Makefile.in (install): added installation of pic/*.inc
4488         and pic/*.txt files again, they were erroneously removed
4489
4490 2006-04-28 Raphael Neider <rneider AT web.de>
4491
4492         * src/pic/{gen.c,main.h,pcode.c},
4493         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
4494             concerning signedness with casts
4495
4496 2006-04-28 Raphael Neider <rneider AT web.de>
4497
4498         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
4499             definition of an interrupt handler,
4500         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
4501             interrupt handler stuff from picglue() to separate routine,
4502           (picglue): enabled definition of intr handlers in files w/o main()
4503
4504 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
4505
4506         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
4507           compilation with MSVC 2005 Express Edition (VC8)
4508
4509 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
4510
4511         * device/lib/Makefile: fixed build of gbz80 lib
4512
4513 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
4514
4515         * support/regression/tests/bug-460010.c,
4516         * support/regression/tests/bug-524691.c,
4517         * support/regression/tests/bug-716242.c: removed conditional defines
4518           that are already in testfwk.h
4519
4520 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
4521
4522         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
4523           (AccAXRsh1): added, shift right by 1,
4524           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
4525            AccAXLrl1
4526         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
4527
4528 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
4529
4530         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
4531         remove cast to same type
4532         * src/SDCCast.c (decorateType): fix for RFE 1475742,
4533         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
4534         * as/z80/Makefile,
4535         * link/z80/Makefile: removed, they have moved to
4536         Makefile.in files
4537         * configure,
4538         * configure.in: replaced duplicate message about ucsim by missing sdcpp
4539         * install-sh: fix bug #1204398 by setting umask 0022
4540         * device/lib/Makefile: separate build of z80 and gbz80 lib
4541
4542 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
4543
4544         Enabled VPATH feature: changed nearly all Makefiles (149 files).
4545         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
4546
4547         One basic decision: e.g. src/clean.mk includes further files. In order
4548         to make this work there are two solutions:
4549         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
4550           run configure on them. This way they can use
4551           'include $(srcdir)/port-clean.mk'
4552         - always include clean.mk by the Makefile at the same level. To avoid
4553           that `make clean` tries to include and build Makefile.dep the
4554           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
4555           implemented, because now even `make uninstall` doesn't create
4556           Makefile.in. clean.mk could be eliminated by pasting it in
4557           Makefile.in.
4558
4559         * debugger/mcs51/Makefile.in: build own objects from library sources
4560         (SLIB, SDCC) in current directory
4561
4562         * configure, configure.in: renamed --disable-device-lib-build in
4563         --disable-device-lib; added --enable-doc, the required tools are
4564         searched by configure; added result message; the toolchain for the
4565         belonging ports are now only built, if the port is enabled.
4566
4567         * support/regression/*: all output is written in directory gen, because
4568         the fwk and ports directories don't livet in the build tree using vpath
4569
4570         * doc/sdccman.lyx: renamed --disable-device-lib-build to
4571         --disable-device-lib, added --enable-doc, added section VPATH
4572
4573         * sim/ucsim/configure.in,
4574         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
4575         z80 are enabled by default
4576
4577 2006-04-24 Raphael Neider <rneider AT web.de>
4578
4579         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
4580             to config word, "pic14_"-prefixed some extern functions
4581           (pic14_emitConfigWord): emit __config directive(s) if assignment to
4582             config word has been found
4583         * src/pic/device.h: added prototypes
4584         * src/pic/pcode.c: added "pic14_"-prefix where needed
4585         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
4586             fixup
4587         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
4588             words,
4589           (pic14emitRegularMap): ignore config words,
4590           (pic14createInterruptVect): moved generating __config directives away
4591           (picglue): have __config directives emitted
4592
4593 2006-04-24 Borut Razem <borut.razem AT siol.net>
4594
4595         * doc/Makefile: sync with nightly build makefile
4596
4597 2006-04-24 Raphael Neider <rneider AT web.de>
4598
4599         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
4600             registers that have not been assigned proper liveranges,
4601             fixes #1469504 and #1474602,
4602           (pCodeRegOptimizeRegUsage): fixed typo in comment
4603
4604 2006-04-24 Borut Razem <borut.razem AT siol.net>
4605
4606         * device/examples/main8051.c: deleted - it was removed from CVS
4607           24.mar.2000 and after that modified 18.feb.2001, so it reappered
4608           after the transition to Subversion
4609         * src/SDCCalloc.h: deleted - it was removed  from CVS
4610           3.feb.2001 and after that modified 18.feb.2001, so it reappered
4611           after the transition to Subversion
4612         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
4613           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
4614           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
4615           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
4616
4617 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
4618
4619         * as/asx8051.dsp: added mcs51/strcmpi.h
4620         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
4621         * as/hc08/aslink.h: updated lnksect prototype
4622         * as/hc08/asm.h,
4623         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
4624         * as/hc08/asmain.c,
4625         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
4626           (newdot): handle A_ABS
4627         * as/hc08/asout.c,
4628         * as/mcs51/asout.c (outarea): output address
4629         * as/hc08/lkaomf51.c,
4630         * as/mcs51/lkaomf51.c: disabled unused array UsageType
4631         * as/hc08/m08pst.c,
4632         * as/mcs51/i51pst.c,
4633         * as/z80/z80pst.c: "ABS" is not A_OVR
4634         * as/hc08/lkarea.c (newarea): read a_addr,
4635           (lnkarea): added codemap array, sort absolute areas to the front,
4636            combine all GSINITx/GSFINAL,
4637           (find_empty_space, allocate_space): new functions,
4638           (lnksect): return next address, handle absolute sections
4639         * as/mcs51/lkarea.c (newarea): read a_addr,
4640           lnksect2 prototype changed,
4641           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
4642           (find_empty_space, allocate_space): new, factored out of lnksect2,
4643           (lnksect2): return next address, handle absolute sections
4644         * as/hc08/lkhead.c,
4645         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
4646         * as/hc08/lklibr.c (addfile, fndsym),
4647         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
4648           index out of range and detect both '\' and '/'
4649         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
4650         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
4651           regression tests (ds390 cannot return bool yet)
4652         * doc/sdccman.lyx: changed version number, document changed --no-peep,
4653           document critical interrupts on z80, document changed SDCC define
4654         * src/asm.c (_asxxxx_mapping): fixed .org directive,
4655           (_a390_mapping): added .org directive
4656         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
4657           (genMultOneByte): fixed warnings
4658         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
4659           ones
4660         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
4661         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
4662           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
4663         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
4664         * src/pic16/main.c: removed newReg prototype
4665         * src/pic16/pcode.c,
4666         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
4667           warnings
4668         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
4669           ones
4670         * src/pic16/ralloc.c
4671         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
4672           to fix warnings
4673         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
4674           from short to PIC_OPTYPE
4675         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
4676         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
4677           optype from short to PIC_OPTYPE
4678         * src/port.h: made int_size unsigned to fix warnings
4679         * src/SDCC.y: fixed warning on MSVC
4680         * src/SDCCicode.c (getArraySizePtr): return unsigned int
4681         * src/SDCCopt.c (convertToFcall): fixed warnings
4682         * src/SDCCsymt.h: removed double prototype for genSymName
4683         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
4684           offset int to fix warnings
4685
4686 2006-04-22 Borut Razem <borut.razem AT siol.net>
4687
4688         * doc/sdccman.lyx, */Makefile, */Makefile.in:
4689           references to CVS replaced with Subversion
4690
4691 2006-04-21 Borut Razem <borut.razem AT siol.net>
4692
4693         * doc/sdccman.lyx, */Makefile, */Makefile.in:
4694           references to CVS replaced with Subversion
4695
4696 2006-04-19 Borut Razem <borut.razem AT siol.net>
4697
4698         * src/version.awk: adapted for svn
4699         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
4700           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
4701           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
4702           /binutils-avr/etc/*.vi, *.jin: removed all properties
4703           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
4704
4705 2006-04-19 Borut Razem <borut.razem AT siol.net>
4706
4707         * CVS to Subversion migration completed
4708
4709 2006-04-18 Borut Razem <borut.razem AT siol.net>
4710
4711         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
4712           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
4713
4714 2006-04-17 Borut Razem <borut.razem AT siol.net>
4715
4716         * device/include/Makefile.in: added pic/*.inc to the installation
4717
4718 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
4719
4720         * support/regression/collate-results.py: fixed output in case of
4721         a valdiag error
4722         * support/regression/generate-cases.py: fixed splitting of pathnames
4723         with dots
4724         * as/hc08/lklibr.c (addfile),
4725         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
4726
4727 2006-04-11 Raphael Neider <rneider AT web.de>
4728
4729         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
4730         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
4731         * src/pic16/pcode.c (assignValnums): fixed #1460578
4732
4733 2006-04-11 Raphael Neider <rneider AT web.de>
4734
4735         * device/lib/pic/libdev/*.c,
4736         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
4737           fixes #1468739, enables compilation in --std-c99 mode
4738         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
4739
4740 2006-04-11 Raphael Neider <rneider AT web.de>
4741
4742         * src/pic/device.c (find_device): removed debug output
4743           (list_valid_pics): enabled verbose listing of supported devices
4744         * device/include/stdbool.h: define bool as char for pic14/16 as well
4745
4746 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4747
4748         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
4749
4750 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
4751
4752         * .version: bumped version to 2.5.6
4753         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
4754
4755 2006-04-06 Raphael Neider <rneider AT web.de>
4756
4757         * .version: bumped version to 2.5.6 (pic14 ABI changed)
4758         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
4759         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
4760           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
4761             pic14_constructAbsMap
4762           (pic14printPublics): declare absolute global symbols as global
4763           (pic14createInterruptVect),
4764         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
4765           (newReg): assume new registers unused, use correct name in
4766             hashtable (reg->name instead of name), more debugLog output
4767         * src/pic/device.h (PIC_device): added fields for verbose output
4768         * src/pic/device.c: moved device definition to pic14devices.txt,
4769             added routines for runtime parsing of pic14devices.txt,
4770             added support for second config word
4771         * src/pic/main.c (_process_pragma): removed #pragma maxram,
4772           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
4773           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
4774           (_pic14_parseOptions): moved pCodeInitRegisters here
4775           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
4776         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
4777           (pCodeInitRegisters): rewrapped comments, perpared new approach to
4778             handling the pseudo stack
4779         * device/lib/Makefile.in: ignore failures in objects-pic16,
4780         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
4781         * device/lib/pic/NEWS: document new dependency on picXXX.lib
4782         * device/lib/pic/Makefile.subdir,
4783         * device/lib/pic16/Makefile.subdir: improved clean rules
4784         * device/lib/pic/libdev/: NEW, pic14 device libraries
4785         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
4786         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
4787         * device/include/Makefile.in: create subdir and install pic14 headers
4788         * device/include/pic/p16f_common.inc: removed unused declarations
4789         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
4790             PICs from inc2h.pl v1.6,
4791             replaced BIT_AT macros with struct declarations
4792         * device/include/pic/pic14devices.txt: definition of supported devices,
4793             all above improvements contributed by Zik Saleeba, thanks
4794         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
4795         * support/scripts/sdcc.nsi: also install pic14 device libraries and
4796             headers
4797
4798 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
4799
4800         * device/include/mcs51/c8051f410.h: added interrupt numbers,
4801         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
4802           thanks to Charles Olds
4803
4804 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4805
4806         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
4807
4808 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
4809
4810         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
4811         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
4812         * support/regression/bug1464657.c: added, new test
4813
4814 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
4815
4816         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
4817           version number
4818
4819 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
4820
4821         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
4822           --no-peep and --peep-file <file> are used don't use default rules but
4823           do use the <file>
4824
4825 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
4826
4827         * src/mcs51/gen.c (genCall): fixed bug 1457608
4828
4829 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4830
4831         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
4832         changes seem to cause (trigger?) problems with the build system.
4833
4834 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
4835
4836         * src/SDCCpeeph.c (operandsLiteral): new, added,
4837           (callFuncByName): inserted operandsLiteral
4838         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
4839
4840 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4841
4842         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
4843         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
4844
4845 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
4846
4847         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
4848           implemented patch 1120823 Thanks to Willy De la Court (normal
4849           interrupts need an interrupt number now if they are made critical),
4850           and enabled nesting of critical functions though not for gbz80
4851           (genCritical, genEndCritical): added functions
4852           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
4853         * src/z80/mappings.i: added "ei" to all mappings
4854
4855 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4856
4857         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
4858         submitted by the Debian SDCC maintainer Aurelien Jarno:
4859         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
4860         archive with gcc 4.1 on mips and wrote the patch"
4861
4862 2006-03-16 Raphael Neider <rneider AT web.de>
4863
4864         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
4865           the left operand is shorter than the result (c* = lit-c* + int),
4866           fixes bug #1450796
4867         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
4868           OP_SYMBOL
4869
4870 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
4871
4872         * src/.version: increased version number to 2.5.5
4873         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
4874         linking is done manually in pic16 port's _linkEdit,
4875         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
4876         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
4877         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
4878         allocate asmop as AOP_ACC,
4879         (aopForRemat): added parameter 'bool result' in function declaration,
4880         (pic16_aopGet): return AOP_ACC when accessing WREG,
4881         (pic16_popGetTempReg): minor modification,
4882         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
4883         'pic16_allocWithIdx',
4884         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
4885         calling function in absolute addresses,
4886         (genAssign): take into account AOP_ACC asmop,
4887         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
4888         * src/pic16/pcoderegs.c: some debug functions and lines added,
4889         * src/pic16/ralloc.c (decodeRegType): added but commented out,
4890         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
4891         register too,
4892         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
4893         call to allocReg, not by manually allocating a new one,
4894         (pic16_assignRegisters): now before going through the register
4895         allocating functions mark all registers as free. This eliminates some
4896         side effects resulting from peephole parser done earlier in the backbone
4897
4898 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
4899
4900         * src/SDCCicode.c (geniCodeLogic),
4901         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
4902
4903 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
4904
4905         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
4906           (genSend): bugfix, do not allocate and free twice,
4907           (shiftRLong): handle partially overlapping aops
4908         * support/regression/tests/bitopcse.c: fixed warning redefined idata
4909
4910 2006-03-08 Borut Razem <borut.razem AT siol.net>
4911
4912         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
4913           for pic16
4914
4915 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
4916
4917         * support/regression/tests/bug1409955.c: new, added
4918         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
4919         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
4920           (aopForSym, aopOp): increment asmop.allocated if reused,
4921           (freeAsmop): decrement asmop.allocated and check for zero instead of
4922           using asmop.freed,
4923           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
4924           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
4925            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
4926            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
4927            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
4928            genSignedRightShift, genRightShift, genDataPointerGet,
4929            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
4930            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
4931             in reverse order from allocation,
4932           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
4933             added swappedLR to keep track
4934         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
4935           pdata & code for GCC, z80, gbz80 & hc08
4936         * support/regression/tests/zeropad.c: moved defines to testfwk.h
4937
4938 2006-03-08 Raphael Neider <rneider AT web.de>
4939
4940         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
4941
4942 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
4943
4944         * device/include/mcs51/c8051f410.h: new SiLabs mcu
4945         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
4946         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
4947
4948 2006-03-06 Borut Razem <borut.razem AT siol.net>
4949
4950         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
4951           made the linker quiet
4952
4953 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
4954
4955         * src/pic16/gen.c (genPcall): fixed bug #1443644
4956         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
4957         which dumps before the function entry point a data byte which represents
4958         the number of the local variables used by the specified function, added
4959         'xinst' for initial support for Extended Instruction Support,
4960         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
4961         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
4962         port->fun_prefix anymore (may change later),
4963         (genFunction, genEndFunction): do not store/restore local registers for
4964         _main (this should take care the --main-return command line option in
4965         the future),
4966         (genOr): removed some legacy pic-port instructions,
4967         * src/pic16/genarith.c (genAddLit): re-enabled old code because
4968         performing operations with SFR's causes data to be written more than
4969         once to each SFR. Perhaps SFRs should be handled in special cases...
4970         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
4971         pcode.h
4972         * src/pic16/main.c (_process_pragma): stack bound checking did not take
4973         into account for stack starting position,
4974         (struct OPTIONS pic16_optionsTable): added command line argument
4975         --extended or -y for Extended Instruction Support,
4976         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
4977         (deassignLRs): *** perhaps the most important change, old 'for' code
4978         (commented out for reference), didn't account for some registers which
4979         were left marked 'not free' after a pointer operation. The change
4980         reduces register usage a lot in some cases
4981
4982 2006-03-04 Borut Razem <borut.razem AT siol.net>
4983
4984         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
4985           _clean
4986         * support/regression/tests/bug-524697.c: decreased array size for
4987           mcs51 to fit into the internal RAM
4988         * support/regression/Makefile.in: a little bit more verbose
4989
4990 2006-03-03 Borut Razem <borut.razem AT siol.net>
4991
4992         * support/regression/fwk/lib/testfwk.c,
4993           support/regression/fwk/include/testfwk.h: introduced function
4994           _prints(), nonrecursive _printn(), call _initEmu() from main()
4995         * support/regression/ports/gbz80/support.asm,
4996           support/regression/ports/ucz80/support.asm,
4997           support/regression/ports/z80/support.asm,
4998           support/regression/ports/ds390/support.c,
4999           support/regression/ports/hc08/support.c,
5000           support/regression/ports/host/support.c,
5001           support/regression/ports/mcs51/support.c,
5002           support/regression/ports/xa51/support.c: added empty _initEmu()
5003           function
5004         * support/regression/ports/pic16/gpsim.cmd,
5005           support/regression/ports/pic16/spec.mk,
5006           support/regression/ports/pic16/support.c,
5007           support/regression/Makefile.in: added pic16 regression test
5008
5009 2006-03-01 Raphael Neider <rneider AT web.de>
5010
5011         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
5012           genConstPointerGet): use safe way of generating MOVFF to cover
5013             literals as well as registers, fixes bug #1440527
5014         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
5015             dereference
5016           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
5017             more correctly, fixes bug #1232186
5018           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
5019         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
5020             gplink guess the correct processor in more cases, applied patch
5021             from Till Riedel attached to and fixing bug #1436552
5022
5023 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5024
5025         * support/regression/tests/array.c: added, contains check for #1434401
5026         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
5027
5028 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
5029
5030         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
5031         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
5032         * device/include/mcs51/c8051f326.h,
5033         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
5034         * device/include/mcs51/c8051f000.h,
5035         * device/include/mcs51/c8051f018.h,
5036         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
5037           PCON_IDLE,PCON_STOP and added sfr16 definitions
5038
5039 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
5040
5041         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
5042           genGetWord): fixed bug 1409955
5043
5044 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
5045
5046         * device/include/hc08/mc68hc908gp32.h,
5047         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
5048
5049 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
5050
5051         * src/SDCCast.c (constExprValue): return NULL if not a value
5052         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
5053         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
5054         * support/regression/tests/bitfields.c: enabled signed bitfield for all
5055
5056 2006-02-13 Borut Razem <borut.razem AT siol.net>
5057
5058         * src/regression/ptrarg.c: added, fails due to bug #1430967
5059         * src/regression/Makefile: ptrarg.c added, ...
5060
5061 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
5062
5063         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
5064         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
5065
5066 2006-02-11 Borut Razem <borut.razem AT siol.net>
5067
5068         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
5069           print "Processor: xxx" message to stdout only if --verbose
5070
5071 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
5072
5073         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
5074         * support/regression/tests/bug1426356.c: added
5075         * support/regression/tests/bitfields.c: removed 2 tests
5076
5077 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
5078
5079         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
5080         * device/include/mcs51/c8051f330.h,
5081         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
5082           PCON_IDLE,PCON_STOP and added sfr16 definitions
5083         * device/lib/_divsint.c,
5084         * device/lib/_divuint.c,
5085         * device/lib/_divulong.c,
5086         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
5087           register bank bug for small stackauto
5088
5089 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
5090
5091         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
5092
5093 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
5094
5095         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
5096         * all.dsp: corrected several bin paths
5097         * device/include/mcs51/c8051f120.h,
5098         * device/include/mcs51/c8051f300.h,
5099         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
5100           to PCON_IDLE,PCON_STOP
5101         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
5102         * device/lib/printf_large.c (output_float): fixed bug 1388703
5103         * support/regression/tests/bug1057979.c: added test for bug 1388703
5104
5105 2006-02-08 Raphael Neider <rneider AT web.de>
5106
5107         * src/pic/pcode.c (pciTRIS): fixed typo,
5108           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
5109           (LinkFlow): fixed handling of flows that end in a call,
5110           (ReuseReg): perform safety check earlier
5111         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
5112             to work with flows at the beginning of a pBlock,
5113             fixes #1426557 (Symbol not previously defined),
5114           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
5115             usage information
5116           (RemoveUnusedRegisters): update register usage info
5117         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
5118             created, reuse existing ones instead
5119         * src/pic/gen.c (genPcall): fixed #1424719
5120
5121 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
5122
5123         * link/z80/lkmain.c,
5124         * link/z80/lklex.c,
5125         * link/z80/lkdata.c,
5126         * link/z80/aslink.h: fixed build on current cygwin:
5127         replaced getline() by lk_getline()
5128
5129 2006-02-01 Borut Razem <borut.razem AT siol.net>
5130
5131         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
5132           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
5133           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
5134           src/regression/bool1.c, src/regression/bool2.c,
5135           src/regression/bool3.c, src/regression/call1.c,
5136           src/regression/compare.c, src/regression/compare10.c,
5137           src/regression/compare2.c, src/regression/compare3.c,
5138           src/regression/compare4.c, src/regression/compare5.c,
5139           src/regression/compare6.c, src/regression/compare7.c,
5140           src/regression/compare8.c, src/regression/compare9.c,
5141           src/regression/configword.c, src/regression/for.c,
5142           src/regression/inline.c, src/regression/mult1.c,
5143           src/regression/nestfor.c, src/regression/or1.c,
5144           src/regression/pointer1.c, src/regression/ptrfunc.c,
5145           src/regression/rotate1.c, src/regression/rotate2.c,
5146           src/regression/rotate3.c, src/regression/rotate4.c,
5147           src/regression/rotate5.c, src/regression/rotate6.c,
5148           src/regression/rotate7.c, src/regression/string1.c,
5149           src/regression/struct1.c, src/regression/sub.c,
5150           src/regression/sub2.c, src/regression/switch1.c,
5151           src/regression/while.c, src/regression/xor.c,
5152           src/regression/create_stc, src/regression/simulate,
5153           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
5154           regression tests
5155         * src/regression/gpsim_assert.h: added
5156
5157 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
5158
5159         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
5160         ((void (code *) (void)) 0) ();
5161         * as/hc08/aslex.c,
5162         * as/hc08/aslink.h,
5163         * as/hc08/asm.h,
5164         * as/hc08/asmain.c,
5165         * as/hc08/lkdata.c,
5166         * as/hc08/lklex.c,
5167         * as/hc08/lkmain.c,
5168         * as/mcs51/aslex.c,
5169         * as/mcs51/aslink.h,
5170         * as/mcs51/asm.h,
5171         * as/mcs51/asmain.c,
5172         * as/mcs51/lkdata.c,
5173         * as/mcs51/lklex.c,
5174         * as/mcs51/lkmain.c,
5175         * as/z80/aslex.c,
5176         * as/z80/asm.h,
5177         * as/z80/asmain.c: fixed build on current cygwin:
5178         replaced getline() by as_getline()
5179
5180 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
5181
5182         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
5183         declarator in the symbol chain
5184         * src/SDCCsymt.h,
5185         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
5186         parameter list for function pointers
5187         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
5188         * support/regression/tests/bug-716242.c: added
5189
5190 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
5191
5192         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
5193         offset if possible
5194         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
5195
5196 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
5197
5198         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
5199         inifinitely recurseable, added static
5200         * support/regression/tests/bug-1408066.c: added
5201
5202 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
5203
5204         * src/SDCCicode.h,
5205         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
5206         renamed, added possibility to create "postLoopLbl"-labels
5207         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
5208         newiTempLoopHeaderLabel
5209         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
5210         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
5211         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
5212         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
5213         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
5214         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
5215         (basicInduction): fixed bug #136564, made static,
5216         (loopInduction): changed parameter of basicInduction, made static,
5217         (addPostLoopBlock): added
5218         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
5219         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
5220         findLoopEndSeq
5221         * support/regression/tests/bug-136564.c: added
5222         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
5223         --std-sdcc99 to LIBSDCCFLAGS
5224
5225 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
5226
5227         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
5228         while loop
5229         * support/regression/tests/bug-1406131.c: added
5230
5231 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
5232
5233         * src/SDCCast.c (decorateType): fix promotion of unary minus
5234         * src/SDCCsymt.c (computeType): beautified
5235         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
5236         (valUnaryPM, valComplement): fix sign and promotion,
5237         (valNot): ANSI: result type is int (SDCC: unsigned char)
5238         * support/regression/tests/uminus.c: speedup by removing superflous
5239         test case 'int'
5240         * support/regression/tests/onebyte.c: added promotion and signedness
5241         tests for unary minus
5242         * support/regressions/tests/bug-477927.c: disable warning about
5243         uninitialized variables
5244         * support/regression/tests/not.c: added
5245
5246 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
5247
5248         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
5249         * src/mcs51/gen.c (gen51Code): show final register usage after
5250         fillGaps in asm with --i-code-in-asm
5251         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
5252         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
5253         incUsed, rliveClear, adjustIChain): made static,
5254         (setFromRange): excluded because it's unused,
5255         (findPrevUseSym, markWholeLoop): added,
5256         (findPrevUse): rewritten; fixes bug 895992; now a complete search
5257         through all branches of predecessors enables sdcc to emit the warning
5258         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
5259         (rlivePoint): made static, added parameter emitWarnings which is only
5260         true during the first run out of two,
5261         (findRecursiveSucc, findRecursivePred): removed,
5262         (computeLiveRanges): made static, added parameter emitWarnings,
5263         (dumpIcRlive): added for debugging only
5264         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
5265         removed prototype of setFromRange()
5266         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
5267         in call of computeLiveRanges()
5268         * support/regression/tests/bug-895992.c: added
5269         * support/regression/tests/bug-971834.c: added
5270         * support/valdiag/tests/bug-895992.c: added
5271         * support/valdiag/tests/bug-971834.c: added
5272
5273 2005-12-18 Raphael Neider <rneider AT web.de>
5274
5275         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
5276           (genUnpackBits): improved code for direct operands,
5277           (genPackBits): improved code for literal assignment to bitfields
5278             and for direct destination operands (no FSR indirection),
5279             prevented redundant AND, fixes #1362800,
5280           (AccLsh): added parameter to disable masking of the result
5281         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
5282           skip instructions with side-effects (like incfsz),
5283           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
5284         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
5285         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
5286           fixes #1375263
5287
5288 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
5289
5290         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
5291         volatile variables as spill location
5292
5293 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
5294
5295         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
5296         replacing literals
5297         * support/regression/tests/bug-1376320.c: added
5298
5299 2005-12-08 Raphael Neider <rneider AT web.de>
5300
5301         * src/pic/device.c: renamed is_shared to pic14_is_shared
5302         * src/pic/gen.c (genIfx): re-enabled handling of sbits
5303         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
5304           (is_valid_identifier): added for above workaround
5305
5306 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
5307
5308         * device/lib/Makefile.in: fixed to enable port-specific-objects
5309         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
5310           char, thanks Hubert Sack
5311         * doc/sdccman.lyx: documented --xstack-loc,
5312           elaborated a bit more on interrupts and pitfalls,
5313           removed "setjmp/longjmp unsupported",
5314           documented some unsupported C99 features
5315         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
5316         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
5317           if, thanks Hubert Sack
5318         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
5319         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
5320           make make_library
5321         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
5322           regression tests can report resource usage (rfe 700441)
5323         * support/regression/collate-results.py: report resource usage
5324         * support/regression/ports/ds390/spec.mk,
5325         * support/regression/ports/hc08/spec.mk,
5326         * support/regression/ports/mcs51/spec.mk,
5327         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
5328         * support/regression/ports/ds390/uCsim.cmd,
5329         * support/regression/ports/hc08/uCsim.cmd,
5330         * support/regression/ports/mcs51/uCsim.cmd,
5331         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
5332         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
5333           library, use the default one
5334         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
5335           building the library
5336
5337 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
5338
5339         * config.dsp: added dependency on .version and configure_vc.awk
5340         * device/include/setjmp.h: updated for --stack-auto and --xstack
5341         * device/include/mcs51/at89c51snd1c.h: corrected line endings
5342         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
5343         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
5344         * device/lib/libsdcc.lib: added _setjmp
5345         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
5346           (decorateType): fixed bug 1372851,
5347           (optimizeGetHbit): fixed warning
5348         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
5349           array initialisation
5350         * support/regression/tests/bug1057979.c: added test for bug 1358192
5351         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
5352
5353 2005-12-03 Borut Razem <borut.razem AT siol.net>
5354
5355         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
5356           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
5357
5358 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
5359
5360         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
5361         createIval): implement symbol independant "flexible array member",
5362         (createIvalCharPtr): implemented flexible array initialisation with a
5363         string
5364         * src/SDCCsymt.c (copyStruct): removed,
5365         (getSize): fixed misleading comment,
5366         (getAllocSize): removed, the additional allocation size is now in
5367         sym->flexArrayLength,
5368         (checkStructFlexArray): new, syntax checks for flexible array members,
5369         (compStructSize): added syntax checks for "flexible array members"
5370         (copyStruct): removed,
5371         (copyLinkChain): removed inefficient fix for bug 770487
5372         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
5373         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
5374         symbol->flexArrayLength
5375         * src/SDCCerr.c,
5376         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
5377         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
5378         * support/regression/tests/structflexarray.c: added
5379         * support/valdiag/tests/structflexiblearray.c: added
5380
5381 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
5382
5383         * src/SDCCast.c (decorateType): fixed bug 1368489
5384         * support/Util/SDCCerr.c,
5385         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
5386
5387 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5388
5389         * device/include/mcs51/at89c51snd1c.h: added file submitted by
5390           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
5391
5392 2005-11-27 Borut Razem <borut.razem AT siol.net>
5393
5394         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
5395           support/cpp2/mkdeps.h: added command line option
5396           -obj-ext=<extension> to SDCPP to define object file externion, used
5397           for generation of make dependencies (-M)
5398         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
5399
5400 2005-11-26 Borut Razem <borut.razem AT siol.net>
5401
5402         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
5403           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
5404           added pic and pic16 libraries
5405
5406 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5407
5408         * device/include/float.h: Corrected typo in prototype of __fsgt
5409
5410 2005-11-25 Borut Razem <borut.razem AT siol.net>
5411
5412         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
5413           added creation of model-mcs51-stack-auto libraries
5414
5415 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
5416
5417         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
5418         and fields-list too
5419         * src/SDCCast.c (createIvalArray): removed obsolete comment
5420
5421 2005-11-24 Borut Razem <borut.razem AT siol.net>
5422
5423         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
5424           added missing device/lib/mcs51/crt*.asm sources
5425
5426 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
5427
5428         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
5429
5430 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
5431
5432         * device/lib/_fs2schar.c,
5433         * device/lib/_fs2sint.c,
5434         * device/lib/_fs2slong.c: optimized inline asm
5435
5436 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5437
5438         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
5439           Better handling of floats between -1.0 and 0.0.
5440
5441 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5442
5443         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
5444           (the missing "if"s prohibited removal of redundant labels)
5445
5446 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5447
5448         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
5449           Properly convert floats between -1.0 and 0.0 to long, int, and char
5450           types (max integer value of negative floats tends to zero).
5451         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
5452           Removed changes made so to work properly with floats between
5453           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
5454           and _fs2char.c
5455
5456 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
5457
5458         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
5459         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
5460         (genCast) cosmetic change
5461         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
5462         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
5463         from mcs51
5464         * support/regression/tests/bitfields (testSignedBitfields): added
5465
5466 2005-11-18 Borut Razem <borut.razem AT siol.net>
5467
5468         * sdcc/device/lib/Makefile.in: remove all unnecessary files
5469         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
5470           introduced SILENT option to make building of pic16 libraries less
5471
5472 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5473
5474         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
5475           Now they work properly with floats between -1.0 and 0.0
5476         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
5477
5478 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
5479
5480         * src/SDCCicode.c (printOperand): added missing else
5481
5482 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
5483
5484         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
5485         reformatted for better readability
5486         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
5487         signed bitfields
5488
5489 2005-11-17 Borut Razem <borut.razem AT siol.net>
5490
5491         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
5492           introduced SILENT option to make building of pic16 libraries less
5493           verbose - used for nightly snapshot build
5494         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
5495           available on Win32 platforms.
5496         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
5497           medium, large, pic and pic16
5498
5499 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5500
5501         * device/lib/printf_large.c: Temporary patch for bug 1358192:
5502           printf("%f"...) sets fraction to zero.
5503
5504 2005-11-16 Raphael Neider <rneider AT web.de>
5505
5506         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
5507           fixes #1357221
5508         * src/pic/gen.c (genIfx): implemented for CARRY bit
5509         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
5510           to generic pointers, fixes #1357332,
5511           (pic16_movLit2f): NEW,
5512           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
5513
5514 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
5515
5516         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
5517
5518 2005-11-11 Raphael Neider <rneider AT web.de>
5519
5520         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
5521         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
5522           compute pointer's type from operand,
5523           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
5524           improved single bit reads, fixes bug #1353379
5525
5526 2005-11-09 Borut Razem <borut.razem AT siol.net>
5527
5528         * support/scripts/sdcc.nsi: added lib/pic to the package
5529
5530 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
5531
5532         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
5533
5534 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
5535
5536         * support/regression/tests/bug1348008.c: added
5537         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
5538         * support/regression/tests/bug1337835.c: updated comment
5539
5540 2005-11-06 Borut Razem <borut.razem AT siol.net>
5541
5542         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
5543           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
5544           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
5545           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
5546           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
5547           dynamic construction of cl_error_class and derivates - 2.nd try
5548
5549 2005-11-05 Borut Razem <borut.razem AT siol.net>
5550
5551         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
5552           bug, which caused Bus Errors on sparc solaris
5553
5554 2005-11-04 Borut Razem <borut.razem AT siol.net>
5555
5556         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
5557           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
5558           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
5559           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
5560           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
5561           and derivates to resolve the initialization problem on OSX
5562
5563 2005-11-02 Borut Razem <borut.razem AT siol.net>
5564
5565         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
5566           corrected typo - #include <winsock2.h>
5567
5568 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
5569
5570         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
5571           (_asxxxx_mapping): added org directive for future enhancements
5572
5573 2005-11-01 Borut Razem <borut.razem AT siol.net>
5574
5575         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
5576           enabled sockets on WIN32
5577         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
5578
5579 2005-10-31 Borut Razem <borut.razem AT siol.net>
5580
5581         * support/regression/generate-cases.py: escape backslashes in {testcase}:
5582           WIN32 backslash path delimiters should be escaped when used in C strings
5583         * support/regression/tests/bitfields.c: exclude failing assertions for
5584           __CYGWIN32__ and __MINGW32__ hosts
5585
5586 2005-10-30 Borut Razem <borut.razem AT siol.net>
5587
5588         * src/SDCCutil.c: corrected double comparison typo
5589
5590 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
5591
5592         * device/lib/medium/Makefile: added for new memory model medium
5593         * device/include/asm/mcs51/features.h: updated for medium/pdata
5594         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
5595           added Multiply & Accumulate sbit's and MAC0_PAGE define
5596         * device/include/mcs51/c8051f300.h: added sfr16 definitions
5597         * device/include/mcs51/c8051f310.h: added sfr16 definitions
5598         * device/lib/_mullong.c: update for medium model
5599         * device/lib/incl.mk: added medium model
5600         * doc/sdccman.lyx: documented medium model
5601         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
5602         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
5603         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
5604         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
5605           (allocParms): set SCLS and OCLS to pdata for medium model
5606         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
5607           for pdata,
5608           (powof2): return <0 if not power of 2
5609         * src/avr/gen.c (genBitWise): use updated powof2
5610         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
5611           (shiftR2Left2Result): small optimization in setup, save acc when storing,
5612           (shiftLLeftOrResult): use B if necessary
5613         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
5614         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
5615         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
5616         * support/regression/Makefile.in: added test-mcs51-medium
5617         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
5618
5619 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
5620
5621         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
5622         specifier unsigned
5623         * device/lib/time.c (mktime): fixed bug 1334315
5624
5625 2005-10-28 Raphael Neider <rneider AT web.de>
5626
5627         * device/include/pic/p16f_common.inc: added common declarations
5628         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
5629
5630 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
5631
5632         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
5633           (aopPutUsesAcc): added to predict accumulator use,
5634           (assignResultValue): save acc if necessary,
5635           (genMinusDec): store result if indirectly addressed,
5636           (genDivOneByte):  save acc if necessary,
5637           (movLeft2Result): bugfix if left already in acc,
5638           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
5639             attention to accumulator use (esp. pdata),
5640           (genReceive): receive pdata correctly
5641         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
5642         * src/SDCCicode.h: added isOperandInPagedSpace prototype
5643
5644 2005-10-27 Raphael Neider <rneider AT web.de>
5645
5646         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
5647
5648 2005-10-27 Raphael Neider <rneider AT web.de>
5649
5650         * .version: changed version to 2.5.4
5651         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
5652         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
5653           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
5654             arithmetics support routines
5655         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
5656         * device/lib/Makefile.in: also create installdir for pic
5657
5658         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
5659           pic14 port as well
5660         * src/pic/device.c (dump_sfr): rewritten to delegate register
5661           placement to the linker (use `extern sym' rather than sym EQU addr),
5662           (validAddress): fixed to check last specified address
5663         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
5664           (popGetLit): truncate literal value to 8 bit,
5665           (popGet): moved assert to more appropriate place
5666           (popGetExternal): create pCode operand from and mark the according
5667             symbol as being `extern'
5668           (popGetAddr): added sanity check on immediate's offset, provide
5669             GPOINTER tag on demand
5670           (aopPut): fixed for immediates,
5671           (mov2w_op): move operand's address or contents to WREG (depending on
5672             operand type), safer variant of mov2w,
5673           (movwf,call_libraryfunc): NEW, handy abbreviations,
5674           (get_argument_pcop,get_return_val_pcop,pass_argument,
5675           get_returnvalue): interface for accessing function parameters and
5676             return values,
5677           (assignResultValuei,genRet): use new parameter/return value interface
5678           (pic14_getDataSize): back to old version handling generic pointers,
5679           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
5680             provided implementation and/or fixed old one,
5681           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
5682             calls, removed legacy 8051 reference code
5683           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
5684           (loadSignToC): NEW, move the operands sign bit to CARRY,
5685           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
5686             genRightShiftSigned, accepts negative shift counts,
5687           (setup_fsr): load FSR and adjust IRP (indirect memory access),
5688           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
5689             generic pointers, __data pointers and __code pointers,
5690           (genUnpackBits,genPackBits): rewritten to work with generic pointers
5691             and signed bitfields, limit bitfields to 8 bit,
5692           (genDataPointerGet): fixed number of bytes read,
5693           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
5694           (genPointerGet,genPointerSet): fixed handling of __code pointers,
5695             pointers to constant data are no longer assumed to point to __code
5696             space, removed invalid pointer types,
5697           (bitpatternFromVal): retrieve the PICs representation of an integer
5698             or float literal,
5699           (genDataPointerSet): fixed assigning to po_immediate operands,
5700           (genGenPointerSet): implemented as library call,
5701           (genIfx): fixed incorrect condition,
5702           (genAddrOf): limit generic pointers' addresses to 2 bytes,
5703             provide GPOINTER tag according to destination's storage class,
5704           (genCast): added code to handle casting to generic pointers, added
5705             sign-/zero extension of the result
5706           (aop_isLitLike,op_isLitLike): fixed handling of immediates
5707         * src/pic/gen.h: added macros to access IRP bit in STATUS register
5708         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
5709           extend the result
5710         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
5711           address/register resides in the shared banks
5712           (emitSymbolToFile): improved to handle global and `pinned' symbols,
5713             put all variables into separate sections (have the linker arrange
5714             them)
5715           (picglue): put init code and interrupt handlers in separate sections
5716         * src/pic/main.c: added port specific options table, modified to PORT
5717           structure to make GPOINTERs 3 byte, added pic14_options
5718           (_pic14_do_link): private linking routine (update paths to libraries,
5719             add libsdcc.lib by default)
5720         * src/pic/main.h: declare pic14_options
5721         * src/pic/pcode.c: fixed instructions i/o relations,
5722           (RegCond): reverted to correct version,
5723           (newpCodeOpLit): truncate literals to 8 bit,
5724           (genericPrint): added debug output,
5725           (getRegFromInstruction): fixed for various operand types, simplified
5726           (BuildFlow): fixed broken handling of isntructions with labels
5727           (LinkFlow): start at last instruction in flow (skip trailing comments),
5728             pass the flow on to the next instruction after CALL
5729           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
5730           (insertPCodeInstruction): fixed inserting after a skip instruction,
5731           (DoBankSelect): fixed for labeled instructions
5732           (OptimizepBlock): honor --nopeep switch
5733           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
5734         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
5735         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
5736           (pCodeOptime2pCodes): allow disabling this optimization via
5737             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
5738             but is still buggy), started implementation of a dataflow based
5739             pCode optimization (CSE + dead code elimination)
5740           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
5741         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
5742           names are independant of the stack location and therefore portable across
5743           devices
5744
5745 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
5746
5747         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
5748           (selectSpil): fixed bug 1337835 by not spilling bit variables
5749         * support/regression/tests/bug1337835.c: added test for this bug
5750         * src/mcs51/peeph.def: restart after rule 3.c,
5751           addded rules 263.x to optimize loading constants
5752
5753 2005-10-26 Raphael Neider <rneider AT web.de>
5754
5755         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
5756         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
5757           (genAssign): emit warning when casting literals to generic pointer
5758             type, also applies when taking the address of a fixed variable,
5759           (genCast): improved casting to generic pointers
5760         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
5761           extern variables, added verbose error message
5762         * device/include/pic16/{string.h,errno.h}: added #pragma library c
5763
5764 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
5765
5766         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
5767         carry must be complemented too
5768         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
5769         could be emitted by genMinus
5770         * src/SDCCval.c (constVal): fixed bug 1305065
5771
5772 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
5773
5774         * src/SDCCast.c (addCast): added promotion for bit variables
5775         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
5776         promotion casts + optimisation
5777         (optimizeGetWord): fix warning 'i' might be used uninitialized
5778         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
5779         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
5780
5781 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
5782
5783         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
5784         all chars are promoted to int; promotion should be handled in SDCCast.c
5785
5786 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5787
5788         * device/lib/_strcmp.c: Fixed bug 1326457
5789
5790 2005-10-11 Raphael Neider <rneider AT web.de>
5791
5792         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
5793         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
5794
5795 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
5796
5797         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
5798         * support/regression/tests/sfr16.c: added test for the sfr32 bug
5799
5800 2005-10-04 Raphael Neider <rneider AT web.de>
5801
5802         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
5803           device/lib/pic16/pics.all: added pic18f1320
5804         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
5805
5806 2005-09-30 Raphael Neider <rneider AT web.de>
5807
5808         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
5809         * src/pic16/devices.inc: NEW, provides device descriptions
5810         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
5811
5812 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
5813
5814         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
5815           GETHBIT
5816
5817 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
5818
5819         * doc/sdccman.lyx: updated Highest Order Bit documentation,
5820           documented Any Order Bit, Higher Order Byte and Higher Order Word
5821         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
5822         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
5823           (optimizeGetAbit): new, to get any bit, not only the high bit,
5824           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
5825           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
5826           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
5827           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
5828             RIGHT_OP: also try GETBYTE, GETWORD optimization,
5829             GETABIT, GETBYTE, GETWORD: decorate them,
5830           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
5831           (ast_print): added GETABIT, GETBYTE, GETWORD
5832         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
5833         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
5834           (geniCodeBinary): new generic binary icode,
5835           (ast2iCode): added GETABIT, GETBYTE, GETWORD
5836         * src/port.h: updated comment for PORT.hasExtBitOp
5837         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
5838           (genGetByte): new, to get a single byte,
5839           (genGetWord): new, to get a word from a long,
5840           (gen51Code): added GETABIT, GETBYTE, GETWORD
5841         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
5842
5843 2005-09-23 Raphael Neider <rneider AT web.de>
5844
5845         * configure.in, configure: have device/lib/pic configured
5846         * device/lib/Makefile.in: added model-pic14
5847         * device/lib/clean.mk: added pic/ to clean rule
5848         * device/lib/pic: added rudimentary pic14 library providing support
5849           functions for multiplication/division/generic pointer access
5850         * src/SDCCopt.c (convilong): mark support functions as extern
5851           for pic14 port as well
5852         * src/pic/gen.c (genMult): added assertions,
5853           (genpic14Code): emit warning on unhandled iCodes
5854         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
5855         * src/pic/pcode.c (pCodeOpCopy),
5856         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
5857           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
5858           SFR_REGISTER}), made safe for future extensions
5859         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
5860           instructions even if preceeded by SKIP instructions (also remove
5861           them); removed unused code
5862         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
5863           prevents leaving parts of the structure uninitialized after copying
5864
5865 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
5866
5867         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
5868           ago by me
5869         * support/regression/tests/addsub.c: added test for the bug
5870
5871 2005-09-21 Raphael Neider <rneider AT web.de>
5872
5873         * device/include/pic16/pic18f1220.h,
5874           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
5875         * device/lib/pic16/Makefile.rules: added missing opening paren
5876         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
5877           are provided in genutils.c,
5878           (genUminusFloat,genUminus,genCmpEq): added asserts on different
5879           operand/result sizes,
5880           (genCmp): assert on NULL pointers first, then check deref'ed values
5881         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
5882           result size
5883
5884 2005-09-18 Raphael Neider <rneider AT web.de>
5885
5886         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
5887           as these are now unused,
5888           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
5889         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
5890           local, avoids uninitialized pointer dereference on r->name
5891         * src/pic16/ralloc.c (newReg): fixed indentation
5892
5893 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
5894
5895         * src/SDCCval.c (constVal): fixed bug 730366
5896         * support/Util/SDCCerr.c,
5897         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
5898
5899 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
5900
5901         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
5902
5903 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
5904
5905         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
5906
5907 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
5908
5909         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
5910           (hex2dec): made hex_digit unsigned char, removed ascii dependance
5911         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
5912           (hex2dec): made hex_digit unsigned char, removed ascii dependance
5913         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
5914         * packihx/packihx.c (hexDigit): made c unsigned char
5915         * as/mcs51/lklibr.c (fndsym),
5916         * link/z80/lkgb.c (gb),
5917         * link/z80/lklibr.c (fndsym),
5918         * link/z80/lkrloc.c (relr),
5919         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
5920         * src/SDCC.lex (checkCurrFile, process_pragma),
5921         * src/SDCCglue.c (spacesToUnderscores),
5922         * src/SDCCmain.c (setParseWithComma, processFile),
5923         * src/asm.c (tvsprintf, printCLine),
5924         * src/avr/gen.c (emitcode, aopPut),
5925         * src/ds390/gen.c (emitcode),
5926         * src/hc08/gen.c (emitcode, emitinline),
5927         * src/mcs51/gen.c (emitcode, genInline),
5928         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
5929           tokenizeLineNode),
5930         * src/pic/ralloc.c (debugLog),
5931         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
5932           tokenizeLineNode),
5933         * src/pic16/ralloc.c (debugLog),
5934         * src/z80/main.c (_process_pragma):
5935            made all ctype.h function calls safe
5936         * src/SDCCopt.c: include math.h for fabs
5937         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
5938           and used them throughout the code to make ctype.h function calls safe
5939         * src/ds390/main.c (asmLineNodeFromLineNode),
5940         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
5941         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
5942            unsigned char*
5943         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
5944           (newpCodeAsmDir): made ctype.h function calls safe
5945         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
5946           pic16_emitcode):  made lbp unsigned char*
5947         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
5948           (pic16_newpCodeAsmDir): made ctype.h function calls safe
5949         * src/xa51/gen.c (emitcode),
5950         * src/z80/gen.c (_emit2): made lbp unsigned char*
5951         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
5952            char*
5953
5954 2005-09-05 Raphael Neider <rneider AT web.de>
5955
5956         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
5957           access bank splitpoint
5958
5959 2005-09-05 Raphael Neider <rneider AT web.de>
5960
5961         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
5962
5963 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
5964
5965         * .version: changed to version 2.5.3
5966         * doc/sdccman.lyx: changed version to 2.5.3,
5967           documented --codeseg and --constseg and pragma codeseg and constseg,
5968           documented bit parameters (reentrant) and bit returning
5969         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
5970            currFunc->recvSize, but is this ok for all ports?
5971           (ast2iCode): result of ~ on unsigned char must be cast to int for
5972            bool to work
5973         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
5974           function pointers in bit space
5975         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
5976           (processFuncArgs): call port.reg_parm() with reentrancy info
5977         * src/port.h,
5978         * src/avr/main.c,
5979         * src/ds390/main.c,
5980         * src/hc08/main.c,
5981         * src/pic/main.c,
5982         * src/pic16/main.c,
5983         * src/xa51/main.c,
5984         * src/z80/main.c: port.reg_parm prototype extended with
5985           "bool reentrant" parameter
5986         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
5987           options.stackAuto for allocating bit register parameters
5988         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
5989           (genSend): set BitBankUsed if it is,
5990           (selectRegBank): factored out of genCall for use in genPcall,
5991           (genCall): removed redundant dtype assignmen, use selectRegBank,
5992           (genPcall): handle returning in Carry properly, save in F0 if needed,
5993           (genReceive): handle bit register parameters
5994         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
5995           (mcs51_assignRegisters): enable bit registers for all reentrant
5996            functions and don't set BitBankUsed unconditionally
5997         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
5998         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
5999         * support/regression/tests/funptrs.c: added tests for BOOL and for return
6000
6001 2005-08-27 Borut Razem <borut.razem AT siol.net>
6002
6003         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
6004         ppc-osx (Darwin) does not support -u option. It seems that it is
6005         supported only on Linux - GNU cp
6006
6007 2005-08-25 Borut Razem <borut.razem AT siol.net>
6008
6009         * sim/ucsim/gui.src/serio.src/Makefile.in,
6010           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
6011           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
6012           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
6013           install and strip, since the strip at /usr/ccs/bin should be used
6014           on solaris
6015
6016 2005-08-24 Borut Razem <borut.razem AT siol.net>
6017
6018         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
6019
6020 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
6021
6022         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
6023         ffffffffu
6024
6025 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
6026
6027         * as/mcs51/aslink.h: completed lkrloc.c prototypes
6028         * as/mcs51/lkmain.c (link_main): fixed warning
6029         * device/include/stdbool.h: ds390 has no advanced bit support yet
6030         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
6031         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
6032         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
6033           and updated their macros
6034         * src/SDCCval.c (constVal): updated comment for renamed b_long
6035
6036 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
6037
6038         * as/mcs51/asdata.c: changed ctype['['] to BINOP
6039         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
6040           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
6041           (oprio): set priority for '['
6042         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
6043            and adb_24_bit
6044         * as/mcs51/asm.h: added defines R_BIT and S_BIT
6045         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
6046         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
6047         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
6048           added overlayable BIT_BANK area
6049         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
6050           (summary2): explain 'T' in legenda
6051         * as/mcs51/lkrloc.c: replaced old K&R style,
6052           (relr): added R_BIT processing,
6053           (errmsg): added "Bit-addressable relocation error",
6054           (adb_bit): added for converting from byte- to bit-addressable space,
6055           (adb_24_bit): added for converting from byte- to bit-addressable space
6056         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
6057            used in reentrant functions now even as return value
6058         * device/lib/_gptrput.c (_gptrput): removed obsolete code
6059         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
6060           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
6061         * src/SDCCglobl.h: added indicator BitBankUsed
6062         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
6063            the bit registers b0-b7
6064         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
6065           (geniCodeCast): fixed bug 1263853,
6066           (geniCodeLogicAndOr): put result in bool or char,
6067           (geniCodeReceive): added parameter func for accessing the return type,
6068           (geniCodeFunctionBody): pass func to geniCodeReceive
6069         * src/SDCCmain.c: added indicator BitBankUsed
6070         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
6071         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
6072           (checkSClass): don't put automatic bool/bit on stack,
6073           (checkFunction): removed check on function cannot return bit
6074         * src/SDCCsymt.h: added newBoolLink prototype
6075         * src/mcs51/gen.c (rb1regs): added bit registers,
6076           (movc): created for assigning to carry,
6077           (pushReg, popReg): created for pushing registers,
6078           (sameRegs): check both AOP_REG and AOP_CRY types,
6079           (aopOp): handle bit registers,
6080           (aopPut): optimization no self-assign,
6081           (saveRegisters): push reg->base (bits) only once for bit registers,
6082            and use pushReg,
6083           (unsaveRegisters): pop reg->base only once and use popReg,
6084           (assignResultValue): added parameter func and return in carry for bits,
6085           (genIpush): optimization no reload in A if not changed,
6086           (genSend): bit parameters in reentrant functions are passed in bit
6087            registers by first assigning to bits in B, then save registers and
6088            copy B to bits,
6089           (genCall): handle returning in Carry properly, save it in F0 if needed,
6090           (genPcall): updated assignResultValue call, this is not safe yet for bit
6091            returning function !!!
6092           (genFunction): don't generate equ's for bit registers and use pushReg,
6093           (genEndFunction): take care of bit returning functions and use popReg,
6094           (genRet): return bit in Carry,
6095           (genIfx): optimize bit registers and other directly addressable bits,
6096           (genReceive): updated assignResultValue call
6097         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
6098           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
6099            registers when using stack-auto
6100         * src/mcs51/ralloc.c (_G): added allBitregs,
6101           (regs8051): added the bit registers,
6102           (createStackSpil): use macro IS_BIT,
6103           (getRegBit): added to allocate a bit register, else spill,
6104           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
6105           (updateRegUsage): factored out to ease stepping while debugging,
6106           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
6107            also allocate bit registers,
6108           (fillGaps): handle bit registers,
6109           (findAllBitregs): added to create bit vector with all bit registers,
6110           (mcs51_allBitregs): returns this bit vector,
6111           (mcs51_assignRegisters): when using stack-auto use bit registers for
6112            passing parameters and creating local variables
6113         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
6114
6115 2005-08-22 Borut Razem <borut.razem AT siol.net>
6116
6117         * device/lib/Makefile.in: replaced find option -or with -o
6118           to make it run on solaris
6119
6120 2005-08-22 Raphael Neider <rneider AT web.de>
6121
6122         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
6123           fixes #1265442 (crash on Solaris)
6124
6125 2005-08-20 Borut Razem <borut.razem AT siol.net>
6126
6127         * configure, configure.in: added tests for libsocket and libnsl libraries,
6128           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
6129           from support/regression/Makefile.in
6130         * support/regression/Makefile.in: added
6131         * device/lib/pic16/Makefile.common.in: force make to use bash shell
6132         * sim/ucsim/libtool: regenerated on sparc-solaris
6133         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
6134           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
6135           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
6136           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
6137           sparc-solaris, which doesn't use GNU ld linker
6138         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
6139         * as/Makefile: find on sparc-solaris does not support -maxdepth option
6140
6141 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
6142
6143         * src/mcs51/peeph.def: updated comments
6144
6145 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6146
6147         * device/lib/_gptrget.c,
6148         * device/lib/_gptrput.c: slightly shorter
6149         * doc/sdccman.lyx: incremented version
6150         * src/mcs51/peeph.def: moved peephole comments to the line of first
6151           change to better keep line correlation, reanimated 186.e
6152         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
6153
6154 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
6155
6156         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
6157           David Saxton with quotes around file name.
6158
6159 2005-08-15 Borut Razem <borut.razem AT siol.net>
6160
6161         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
6162           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
6163           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
6164           make tests run on x86_64 platform
6165
6166 2005-08-13 Raphael Neider <rneider AT web.de>
6167
6168         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
6169           as it might be executed DURING a build (parallel make is wonderful)
6170
6171 2005-08-13 Raphael Neider <rneider AT web.de>
6172
6173         * device/lib/Makefile.in (port-specific-objects-pic16):
6174           revert to cp $(PORT)/bin/*.* $(PORTDIR)
6175         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
6176           dependency
6177         * device/lib/pic16/Makefile.rules: build subdirs before creating
6178           the library, removed builddir rule, create $(builddir) early in
6179           recurse rule, use empty recurse rule for leaf directories
6180         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
6181           mkdir errors (race condition), removed duplicate suffix "hex"
6182           from clean rules
6183         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
6184         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
6185           prevents mkdir -p from aborting on Alpha
6186
6187 2005-08-12 Raphael Neider <rneider AT web.de>
6188
6189         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
6190           db-statements in order to allow for arrays of pointers in code
6191           sections to be placed without interspersed 0-padding, fixes
6192           bug #1256215
6193         * (emitStatistics): fixed division by zero for pic18f1220
6194         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
6195           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
6196         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
6197         * (pic16_pCodeConstString): keep track of already emitted string
6198           literals to prevent "duplicate definitions of symbol _str_NR"
6199         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
6200           debug message
6201         * device/lib/Makefile.in: ignore failing PIC16 library builds
6202         * device/lib/pic16/Makefile: do not build if gputils are missing
6203         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
6204
6205 2005-08-10 Raphael Neider <rneider AT web.de>
6206
6207         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
6208           my last commit)
6209
6210 2005-08-10 Raphael Neider <rneider AT web.de>
6211
6212         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
6213           Rokas' patch to add the new fixed point type "__fixed16x16"
6214         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
6215           functions for __fixed16x16 arithmetics
6216         * device/lib/pic16: reimplemented the build system to support
6217           a separate build directory, better handling of libio (create
6218           the library in a separate subdir for each architecture) and
6219           easier configuration (centralized in Makefile.common)
6220
6221 2005-08-07 Raphael Neider <rneider AT web.de>
6222
6223         * src/pic16/gen.c (genrshTwo): fixed sign extension
6224         * src/pic16/device.c: added pic18f2320, 4220 and 4320
6225         * device/include/pic16/pic18f2220.h: changed some bit definitions,
6226           added T0CONbits
6227         * device/include/pic16/pic18f4220.h: NEW, header for
6228           pic18f4220 and pic18f4320
6229         * device/include/pic16/pic18fregs.h: added new devices,
6230           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
6231         * device/include/pic16/signal.h: resolved name clashes
6232           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
6233           to also allow testing for interrupt enable bits, added
6234           comments on how to use the macros
6235         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
6236         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
6237           register definitions for the devices
6238         * device/lib/pic16/pics.all: added new devices
6239         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
6240           allocated memory
6241         * device/lib/pic16/libc/stdlib/memfree: do not count
6242           the block header as free memory
6243         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
6244           simplified and added missing end-of-blocklist-marker
6245           (reported by Peter Onion, fixes #1252814)
6246         * (_mergeHeapBlock): fixed loop condition
6247         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
6248           len==0, restructured code
6249         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
6250           up a bit, reduced bitfield accesses, prevent endless loops
6251           in case of heap corruption
6252         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
6253           "unreferenced arguments/must return a value" warnings
6254         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
6255           replaced BAUDREG with SPBRG
6256         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
6257           device/lib/pic16/debug/gstack/gstack.c: replaced
6258           _naked, _asm, _endasm with __naked, __asm, __endasm
6259
6260 2005-08-05 Raphael Neider <rneider AT web.de>
6261
6262         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
6263           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
6264
6265 2005-08-05 Borut Razem <borut.razem AT siol.net>
6266
6267         * device/lib/Makefile.in: added missing ';'
6268         * configure: removed ^M characters
6269
6270 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6271
6272         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
6273           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
6274           License
6275
6276 2005-08-04 Borut Razem <borut.razem AT siol.net>
6277
6278         * configure.in: pic16 libraries build 2nd try - enable running
6279           configure in device/lib/pic16
6280         * configure: regenerated from configure.in
6281         * device/lib/Makefile.in: create $(PORT)/bin directory
6282
6283 2005-08-03 Raphael Neider <rneider AT web.de>
6284
6285         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
6286           to get/set values via pointers
6287         * (genUnpackBits,genPackBits): changed detection of
6288           ptr->bitfield vs. sym.bitfield, fixed access via generic
6289           pointers, removed dead (wrong) code for multibyte bitfields
6290         * (genNearPointerGet, genGenPointerGet): removed useless code,
6291           fixed bitfield detection, fixes #1250594
6292         * (genNearPointerSet): removed useless code
6293         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
6294           and introduced macro pic16_emitpcode that conditionally emits
6295           the origin of the following pCode (useful for debugging SDCC)
6296         * src/pic16/pcode.c: changed (and disabled) some debug outputs
6297         * (createDefmap): fixed handling of LFSR for --optimize-df
6298
6299 2005-08-02 Borut Razem <borut.razem AT siol.net>
6300
6301         * device/lib/Makefile.in: pic16 libraries build enabled since
6302           gputils-0.13.2 are now localy installed at sourceforge's compile farm
6303
6304 2005-08-02 Raphael Neider <rneider AT web.de>
6305
6306         * src/pic16/gen.c (genPackBits): removed deprecated warning
6307         * (genGenPointerSet): fixed bitfield detection
6308
6309 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6310
6311         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
6312
6313 2005-07-31 Raphael Neider <rneider AT web.de>
6314
6315         * device/lib/pic16/libdev/pic18f458.c,
6316           device/include/pic16/pic18f458.h: added missing T0CONbits
6317
6318 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
6319
6320         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
6321
6322 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
6323
6324         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
6325
6326 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6327
6328         * device/include/mcs51/at89c51ed2.h: added.
6329
6330 2005-07-23 Raphael Neider <rneider AT web.de>
6331
6332         * src/pic/gen.h: added emitpcode macro for debugging
6333         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
6334           and replace by macro adding debug information on demand
6335         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
6336         * (gencjne): tried to fix; replaced with correct (slower) code
6337         * (gen{Unp,P}ackBits): fixed single bit access
6338         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
6339         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
6340           previous instruction
6341         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
6342           register has to be handled with care (forbidding movement
6343           of assignments/uses, removing assignments completely, ...)
6344         * (pCodeOptime2pCodes): make use of regIsSpecial
6345         * added lots of debugging output (commented out)
6346         * src/pic/rallloc.c (deassignLRs): prevent operand registers
6347           from being reused as result UNLESS it is known to work
6348
6349 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
6350
6351         * support/Util/dbuf.h: include <stddef.h> for size_t
6352         * .version: changed to version 2.5.2
6353
6354 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6355
6356         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
6357
6358 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6359
6360         * src/hc08/gen.c (genMinus): fixed bug #1241835,
6361           (genModOneByte): removed needless psha/pula
6362
6363 2005-07-22 Raphael Neider <rneider AT web.de>
6364
6365         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
6366           have PIC14 handled like PIC16, fixes broken pic14 linker calls
6367         * src/pic/gen.c (resolveIfx): do not "invent" labels
6368         * (genSkipc): changed to positive logic
6369         * (genSkipCond): removed as no longer needed
6370         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
6371           backport from PIC16
6372         * (genLeftShift): check operands are in different registers
6373         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
6374           INCF does not update CARRY...
6375         * src/pic/main.c: fixed _linkCmd
6376         * src/pic/pcode.c (unlinkpCode): added inactive code
6377         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
6378           alive (do not assign result and operand overlapping registers)
6379
6380 2005-07-22 Raphael Neider <rneider AT web.de>
6381
6382         * src/pic/device.c (dump_sfr): replaced register declaration with
6383           call to emitSymbolToFile() to avoid duplicate symbols
6384         * (assignRelocatableRegisters): do not declare external symbols
6385         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
6386           right (take size of type, not etype)
6387         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
6388         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
6389         * (packRegsForAccUse): disabled assignment of WREG as
6390           the result reg to prevent occurence of just fixed #1235003,
6391           fixes #1242954
6392         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
6393           symbols (avoids duplicate symbols in .asm file)
6394         * (pic14emitRegularMap): use emitSymbolToFile()
6395         * src/pic/gen.c (aopOp): fixed spillLocation handling
6396         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
6397         * (genDataPointerSet): removed unneccessary variables/output
6398
6399 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
6400
6401         * as/mcs51/lkarea.c: enlarged codemap for banked memory
6402         * device/lib/mcs51/crtbank.asm: added # to 0x0F
6403
6404 2005-07-21 Raphael Neider <rneider AT web.de>
6405
6406         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
6407           architecture cannot handle them efficiently, fixes bug #1235003
6408         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
6409           check for empty sets before using them (fixes bug #1232190)
6410
6411 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
6412
6413         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
6414           (lnksect2): generate warnings for memory overlap
6415         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
6416           constseg to set the name of these segments so you can instruct the linker
6417           to place them in banks
6418         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
6419         * src/SDCCglobl.h: added MODEL_HUGE to enum,
6420           added code_seg and const_seg to options
6421         * src/SDCCglue.c (emitMaps): use options.const_seg,
6422           (createInterruptVect): put interrupt vectors in segment HOME,
6423           (glue): put HOME before static segment and put the main glue in HOME,
6424           (glue): use options.code_seg
6425         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
6426         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
6427           these segments so you can instruct the linker to place them in banks
6428           (linkEdit): use code_loc for HOME segment which should be the first
6429           segment in code memory now
6430         * src/SDCCmem.c: fixed more stuff like bug 1238386
6431         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
6432           (changePointer): don't change function pointers to code pointers for
6433           banked functions,
6434           (compareType): added exceptional check for banked function pointers
6435         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
6436         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
6437           after static in code memory
6438         * src/mcs51/gen.c: added aopLiteralLong prototype,
6439           (aopForSym): use getSize for functions,
6440           (genCall): generate banked calls over one trampoline __sdcc_banked_call
6441           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
6442           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
6443           the segment,
6444           (genPcall): use call for literal function pointers and generate banked
6445           calls over the one trampoline so there's only one place for the user to
6446           modify according to his/hers hardware,
6447           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
6448           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
6449         * src/mcs51/main.c: added keyword banked,
6450           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
6451         * support/Util/SDCCerr.c,
6452         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
6453           needed for passing the bank and address to the trampoline
6454         * device/lib/mcs51/crtbank.asm: added for bankswitching
6455         * device/lib/mcs51/Makefile: added crtbank
6456
6457 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6458
6459         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
6460           for fields at offset 0 of a struct or union as reported
6461           on 2005-07-07 in the developer mailing list.
6462
6463 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
6464
6465         * src/SDCCmem.c: fixed bug 1238386
6466
6467 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6468
6469         * src/mcs51/peeph.def: added labelrefcounting for peepholes
6470           (patch #1144962), added peephole 300, enabled 259.x
6471         * doc/sdccman.lyx: removed screenshot and provided link instead
6472
6473 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6474
6475         * doc/sdccman.lyx: added section about debugging with ddd
6476         * doc/figures/ddd_example.eps: screenshot of debugging session
6477
6478 2005-07-04 Raphael Neider <rneider AT web.de>
6479
6480         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
6481           like CODE pointers, fixes #1115683
6482         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
6483           call, fixes bugs #1232211, #1228110,
6484           fixed wrong casts to pCodeFlow from pCodeInstructions
6485
6486 2005-07-04 Raphael Neider <rneider AT web.de>
6487
6488         * src/pic/gen.c (popGet): changed assert to allow for
6489           bit operands
6490         * (popGetAddr): changed signature to provide
6491           an additional index, patched all call sites
6492         * (genCmpEq): handle literal-like operands correctly
6493         * (genAddrOf): added sanity checks on __code/__data pointers
6494         * (genAssign): added handling of symbols from __code section
6495         * (gencjne): do not generate code for comparisons whose result
6496           is neither stored nor used, fixes bug #1171114
6497         * (AccLsh, AccRsh): operate on operand instead of WREG
6498         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
6499           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
6500           by known count
6501         * rewrote complete shift-by-literal logic, commented unused
6502           functions out
6503         * (genConstPointerGet): get multiple bytes (if result size > 1),
6504           fixed handling of non-immediate addresses
6505         * (genPointerGet): handle CODE pointers like CONST pointers
6506         * (genpic14Code): insert C-SRC lines as Cource-pCodes
6507         * ({aop,op}_isLitLike): NEW, single place to decide whether an
6508           operand is to be treated as a literal or not
6509         * (mov2w,genPcall,genCmpEq),
6510           src/pic/genarith.c: use aop_isLitLike() to decide between
6511           literal/register contents
6512         * (addSign): added missing offset
6513         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
6514           only emit comment in debug-mode,
6515           use {aop,op}_isLitLike throughout the file
6516         * src/pic/glue.c: fix initializers for pointers (work in progress)
6517         * src/pic/pcode.c (get_op): honor index on _const symbols
6518         * ({reset,dump}pCodeStatistics): NEW, estimate code size
6519         * (dumppBlock): added pCode size estimation
6520         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
6521           check for IS_SYMOP before OP_SYMBOL'ing
6522         * fixed indentation, compacted switch-statements
6523         * (allocReg): find free register and allocate it instead of
6524           allocating new registers all the time
6525         * (deassignLRs): prevent POINTER_GET's from being assigned the same
6526           registers as its operands (necessary only for multibyte GETs)
6527
6528 2005-07-01 Raphael Neider <rneider AT web.de>
6529
6530         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
6531           debugging .asm-output macros FENTRY + FEXIT
6532         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
6533           way... I wonder...
6534         * (emitpComment): NEW, printf to pCode
6535         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
6536           offset handling
6537         * (popGetAddr): NEW, variant of popGet to access an immediates
6538           high(er) bytes instead of the n'th byte of memory they reference,
6539           replaced popGet with popGetAddr where neccessary
6540         * (genDataPointerGet): reactivated and fixed implementation
6541         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
6542           accesses
6543         * (genDataPointerSet): fixed multibyte assignments
6544         * (genpic14Code): fixed --i-code-in-asm handling
6545         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
6546         * (genPlus): fixed index-out-of-bounds error
6547         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
6548         * src/pic/ralloc.c: added debugging output macro FENTRY2
6549         * (spillThis): fixed indentation, enbraced for-body for clarity
6550         * (rematStr): commented out as now unused
6551         * (regTypeNum): commented out special spill case (overwrites
6552           arbitrary values)
6553         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
6554
6555 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
6556
6557         * doc/sdccman.lyx: documented sfr16/sfr32,
6558           added example for using storage class with function pointers
6559         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
6560
6561 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
6562
6563         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
6564         * device/lib/_itoa.c,
6565         * device/lib/_ltoa.c: optimized codesize
6566         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
6567           but don't know how to suppress the double warning.
6568         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
6569         * support/Util/SDCCerr.c,
6570         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
6571
6572 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
6573
6574         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
6575           fixed old K&R prototypes
6576         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
6577         * device/lib/_gptrget.c,
6578         * device/lib/_gptrgetc.c,
6579         * device/lib/_gptrput.c: changed versions for new memory indicator values,
6580           also new versions for small generic pointers and banked generic pointers
6581         * src/port.h: added const_name
6582         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
6583         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
6584         * src/SDCCcse.c (findPrevIc): check all associative operators
6585         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
6586         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
6587         * src/SDCCmem.c: updated comments,
6588           set far-space to 0 for pdata, results in optimized code
6589         * src/SDCCmem.h: added macro CONST_NAME
6590         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
6591           moving the info into the highest bits, see also gptrget/gptrput
6592         * src/src.dsp: added sdcc.ico to project files
6593         * src/avr/gen.c (genCast): fixed bug 0x%d
6594         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
6595         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
6596           relation between ptr_type and DCL_TYPE,
6597           (genCast): fixed bug 0x%d
6598         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
6599           (CODE)" for const_name
6600         * src/hc08/gen.c (genCast): fixed bug 0x%d
6601         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
6602           (hc08_port): added "CONST (CODE)" for const_name
6603         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
6604           (aopForRemat, adjustArithmeticResult): disconnected direct relation
6605           between ptr_type and DCL_TYPE,
6606           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
6607           operand* and took AOP() inside function so sfr-ness can be checked,
6608           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
6609           new prototype,
6610           (genFunction, genEndFunction): optimized stack setup,
6611           (genMinus): optimized for literals with ending zeroes (in bytes),
6612           (genCast): fixed bug 0x%d
6613         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
6614           (mcs51_port): added "CONST (CODE)" for const_name
6615         * src/mcs51/peeph.def: made rule 226 more generic
6616         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
6617         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
6618         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
6619         * src/z80/main.c (z80_port): added NULL for const_name,
6620           (gbz80_port): added NULL for const_name
6621         * support/regression/tests/bug663539.c,
6622         * support/regression/tests/sfr16.c: new tests
6623
6624 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6625
6626         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
6627
6628 2005-06-24 Raphael Neider <rneider AT web.de>
6629
6630         * device/lib/pic16/libdev/pic18f[68][567]20.c:
6631           corrected typos...
6632         * device/include/pic16/signal.h: added USBIF
6633           and SIG_USB
6634
6635 2005-06-24 Raphael Neider <rneider AT web.de>
6636
6637         * device/lib/pic16/libdev/pic18f2455.c,
6638           device/include/pic16/pic18f2455.h: NEW
6639         * device/include/pic16/pic18fregs.h,
6640           device/lib/pic16/pics.all,
6641           src/pic16/device.c: added 18f2455
6642         * device/lib/pic16/libdev/pic18f[68][567]20.c,
6643           device/include/pic16/{pic18f[68][567].h,usart.h}:
6644           replaced MULTIPLE_USARTS define with more relaible
6645           compatibility sfrs (for USART access)
6646
6647 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
6648
6649         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
6650           and the output asm file line is printed on two lines.
6651
6652 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6653
6654         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
6655           BGT, BLE, BHI, and BLS instructions
6656         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
6657           genCmpEq): removed
6658         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
6659           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
6660           fixes bug #1216342
6661         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
6662
6663 2005-06-15 Raphael Neider <rneider AT web.de>
6664
6665         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
6666         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
6667         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
6668           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
6669           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
6670
6671 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6672
6673         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
6674           Marcel Telka in bug #1215704
6675
6676 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
6677
6678         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
6679           located in shared memory bank.
6680
6681 2005-05-31 Raphael Neider <rneider AT web.de>
6682
6683         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
6684           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
6685           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
6686
6687 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
6688
6689         * device/lib/_strncpy.c: fixed the fix
6690
6691 2005-05-26 Raphael Neider <rneider AT web.de>
6692
6693         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
6694           initializers with \0, bug #1208187
6695         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
6696           intializers with \0, bug #1208187
6697
6698 2005-05-26 Raphael Neider <rneider AT web.de>
6699
6700         * src/pic16/glue.c (pic16_printIvalChar): fixed string
6701           initializers with \0, bug #1208187
6702         * src/pic16/main.c (_process_pragma): added sanity checks
6703           for stack position and size, emit warnings when appropriate
6704
6705 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
6706
6707         * device/lib/_strncpy.c: fixed not filling with \0
6708
6709 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6710
6711         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
6712           createFunction),
6713         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
6714           compound_statement),
6715         * src/SDCCsymt.h,
6716         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
6717
6718 2005-05-24 Raphael Neider <rneider AT web.de>
6719
6720         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
6721
6722 2005-05-24 Raphael Neider <rneider AT web.de>
6723
6724         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
6725           TRISE definitions, closes bug #1162453
6726
6727 2005-05-22 Raphael Neider <rneider AT web.de>
6728
6729         * src/pic16/main.c (_process_pragma): check for missing
6730           arguments to pragmas code and udata
6731         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
6732           consistency fixes to match other headers (thanks to Jim Paris)
6733         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
6734
6735 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
6736
6737         * src/SDCCicode.c (isOperandEqual): fixed missing ;
6738
6739 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
6740
6741         * support/regression/tests/bug1198642.c: new test
6742         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
6743         * src/SDCCcse.c (findPrevIc): added comment, please have a look
6744         * support/scripts/resource.h,
6745         * support/scripts/resource.rc,
6746         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
6747         * support/scripts/sdcc.ico: added 32x32 icon
6748
6749 2005-05-18 Raphael Neider <rneider AT web.de>
6750
6751         * device/lib/pic16/libdev/pic18f*.c,
6752         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
6753           keywords to "__sfr" and "__at (X)"
6754         * device/include/pic16/pic18fregs.h: added pic18f4520
6755         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
6756           #1203088 (MPLAB compatibility)
6757
6758 2005-05-17 Raphael Neider <rneider AT web.de>
6759
6760         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
6761         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
6762         * device/lib/pic16/pics.all: added new devices
6763         * src/pic16/device.c: added support for pic18f4520
6764
6765 2005-05-16 Raphael Neider <rneider AT web.de>
6766         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
6767         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
6768         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
6769           convenience function for bit access
6770
6771 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
6772
6773         * device/lib/printf_large.c: fixed bug 1193299
6774         * support/regression/tests/bug1057979.c: added test %3.3s
6775
6776 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6777
6778         * device/include/mcs51/8051.h,
6779         * device/include/mcs51/8052.h: made parseable with lint
6780         * device/include/mcs51/lint.h: added include file for (sp)lint
6781         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
6782         * doc/cdbfileformat.lyx,
6783         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
6784
6785 2005-05-14 Raphael Neider <rneider AT web.de>
6786
6787         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
6788         * device/lib/pic16/libc/stdlib/itoa.c (new)
6789         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
6790         * device/lib/pic16/libio/Makefile: exclude subdir according to
6791           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
6792         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
6793         * src/pic16/gen.c (genFunction): prevent annoying warning
6794         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
6795           nameclashes on BeOS
6796         * support/cpp2/cppmain.c (cpp_output_string): new
6797         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
6798           fixes bug 1116802
6799
6800 2005-05-13 Borut Razem <borut.razem AT siol.net>
6801
6802         * src/SDCCmain.c (linkEdit): fixed bug 1195202
6803
6804 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6805
6806         * .version: changed to version 2.5.1; back to bleeding edge development
6807
6808 2005-05-11 Borut Razem <borut.razem AT siol.net>
6809
6810         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
6811           generate PDF version 1.3 documents
6812
6813 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6814
6815         * .version: changed to version 2.5.0
6816
6817 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6818
6819         * doc/sdccman.lyx: updated weblinks, index and smaller updates
6820
6821 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6822
6823         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
6824         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
6825         well as many smaller updates.
6826         * .version: changed to version 2.5.0-pre1
6827
6828 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6829
6830         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
6831
6832 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
6833
6834         * support/regression/tests/bug1185672.c: added
6835         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
6836           bug 1185672
6837         * src/mcs51/gen.c (genCall): added comments, made it look safer
6838         * src/mcs51/gen.c (genEndFunction): simplified
6839
6840 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
6841
6842         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
6843
6844 2005-04-14 Borut Razem <borut.razem AT siol.net>
6845
6846         * fixed bug 1045046 - SIGSEGV with really simple code?:
6847           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
6848           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
6849
6850 2005-04-14 Borut Razem <borut.razem AT siol.net>
6851
6852         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
6853           src/pic16/device.h: temporarily disabled experimental #inline pragma
6854           for 2.5.0 release
6855
6856 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
6857
6858         * device/include/z80/stdio.h,
6859         * device/include/z80/string.h: removed these highly incomplete files so
6860           SDCC can use the default ones in device/include/
6861
6862 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6863
6864         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
6865         gcc warning.
6866         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
6867         fix sdcpp warnings.
6868
6869 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
6870
6871         * device/include/malloc.h: removed redundant __reentrant prototypes
6872         * device/lib/_mullong.c: added working xstack variant in asm (C version
6873           doesn't pass regression tests)
6874         * device/lib/bpx.c: used __data and made bpx char for mcs51
6875         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
6876           (createFunction): fixed bug with xstackPtr
6877         * src/SDCCcse.c: corrected comments
6878         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
6879           (killDeadCode, eBBlockFromiCode): removed unused code
6880         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
6881           corrected comments
6882         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
6883           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
6884           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
6885           (genModOneByte): fixed warning in MSVC
6886         * src/mcs51/main.c (): added comments
6887         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
6888
6889 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
6890
6891         * src/SDCCmain.c (linkEdit): oops, changed one line too many
6892
6893 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
6894
6895         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
6896
6897 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
6898
6899         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
6900         characters arrays of larger size than the declared one.
6901
6902 2005-04-10 Borut Razem <borut.razem AT siol.net>
6903
6904         * src/pic/gen.c (genInline),
6905           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
6906           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
6907           (findNextInstruction), (findPrevInstruction),
6908           (findInstructionUsingLabel),
6909           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
6910         * src/pic/pcode.c (findLabel): added missing '\n'
6911         * src/src.dsp: added SDCCdwarf2.c to the project
6912
6913 2005-04-09 Borut Razem <borut.razem AT siol.net>
6914
6915         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
6916
6917 2005-04-08 Raphael Neider <rneider AT web.de>
6918
6919         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
6920           into the chain after a given one) and mergeDefmapSymbols (combine
6921           defmap entries for each symbol per pcode)
6922         * (createDefmap): have defmap entries merged in the end
6923         * (defmapReplaceSymRef): split defmap entries covering two accesses to
6924           a symbol before replacing one access type's symbol, merge symbols in
6925           the end (replacement symbol might already have an entry)
6926         * (assignValnums): keep reference to written WREG intact
6927
6928 2005-04-08 Raphael Neider <rneider AT web.de>
6929
6930         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
6931           Alpha)
6932
6933 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
6934
6935         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
6936         bytes
6937
6938 2005-04-07 Raphael Neider <rneider AT web.de>
6939
6940         * device/include/pic16/usart.h: added compatibility defines for
6941           devices with more than one USART
6942         * device/include/pic16/pic18f[68][567]20.h: activated above defines
6943
6944 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6945
6946         * device/lib/Makefile.in: updated for port specific include
6947
6948 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6949
6950         * support/regression/ports/mcs51/spec.mk: added mcs51 include
6951
6952 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6953
6954         * device/include/8051.h,
6955         * device/include/8052.h,
6956         * device/include/at89S8252.h,
6957         * device/include/at89c55.h,
6958         * device/include/at89x051.h,
6959         * device/include/at89x51.h,
6960         * device/include/at89x52.h,
6961         * device/include/mcs51reg.h,
6962         * device/include/reg51.h,
6963         * device/include/reg764.h,
6964         * device/include/regc515c.h,
6965         * device/include/sab80515.h: (re)moved these 12 files
6966         * device/include/mcs51/8051.h,
6967         * device/include/mcs51/8052.h,
6968         * device/include/mcs51/at89S8252.h,
6969         * device/include/mcs51/at89c55.h,
6970         * device/include/mcs51/at89x051.h,
6971         * device/include/mcs51/at89x51.h,
6972         * device/include/mcs51/at89x52.h,
6973         * device/include/mcs51/mcs51reg.h,
6974         * device/include/mcs51/reg51.h,
6975         * device/include/mcs51/reg764.h,
6976         * device/include/mcs51/regc515c.h,
6977         * device/include/mcs51/sab80515.h: and added them here
6978
6979 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6980
6981         * device/include/stdarg.h: changed SDCC specific keywords to double
6982           underlined form.
6983         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
6984           mcs51 and ds390.
6985         * device/include/hc08/mc68hc908gp32.h,
6986         * device/include/hc08/mc68hc908jb8.h,
6987         * device/include/hc08/mc68hc908jkjl.h,
6988         * device/include/hc08/mc68hc908qy.h: fixed comments
6989         * device/include/mcs51/README: updated
6990         * device/include/mcs51/c8051f120.h: added PINRSF
6991         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
6992         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
6993           amidst code. Also inline is not supported.
6994
6995 2005-04-06 Raphael Neider <rneider AT web.de>
6996
6997         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
6998         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
6999           callers stack/frame pointers
7000
7001 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
7002
7003         * device/include/pic16/usart.h: added, missing in previous commit,
7004         * device/include/pic16/adc.h: fixed typo,
7005         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
7006         commit,
7007         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
7008         <p18fxxx.inc>
7009         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
7010         uninitialized because a bug appears with gplink
7011         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
7012         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
7013         complains for unrecognised option
7014
7015 2005-04-05 Raphael Neider <rneider AT web.de>
7016
7017         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
7018           structs as well (using memcpy)
7019         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
7020           on ISRs (GOTO has no label)
7021         * src/pic16/device.h: added OF_OPTIMIZE_DF
7022         * src/pic16/main.c: added compiler switch --optimize-df to enable the
7023           new data flow analysis/optimization
7024         * src/pic16/pcode.c: added (prototypes for and implementation of)
7025           dataflow analysis functions, fixed pCodeInstructions' inCond and
7026           outCond values, made RCALL a branch instruction
7027         * (pic16_unlinkpCode): keep C line if possible
7028         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
7029           C line moved if possible
7030         * (pic16_getRegFrompCodeOp): NEW, improved version of...
7031         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
7032           to use new pic16_getRegFrompCodeOp (works for more SFRs)
7033         * (pic16_BuildFlow): fixed skip instructions with label (did not start
7034           new flow)
7035         * (pic16_getJumptabpCode): NEW, needed in...
7036         * (LinkFlow): fixed handling of jumptables, calls and conditional
7037           branches
7038         * (pic16_InsertCommentAfter): NEW
7039         * (pic16_pCodeReplace): made verbose and flow preserving
7040         * (AnalyzeFlow): added call to data flow analysis
7041         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
7042         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
7043         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
7044
7045 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7046
7047         * src/SDCCast.c (decorateType): fixed bug #1105626
7048
7049 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
7050
7051         * device/include/asm/pic16/features.h,
7052         * pic18f*.h headers,
7053         * device/include/pic16/adc.h,
7054         * device/include/pic16/delay.h,
7055         * device/include/pic16/i2c.h,
7056         * device/include/pic16/malloc.h,
7057         * device/include/pic16/stdio.h,
7058         * device/include/pic16/stdlib.h,
7059         * device/include/pic16/string.h,
7060         * device/lib/pic16/libc/stdio/printf_tiny.c,
7061         * device/lib/pic16/libc/stdio/printf_small.c,
7062         * device/lib/pic16/libc/stdio/strmgpsim.c,
7063         * device/lib/pic16/libc/stdio/strmmssp.c,
7064         * device/lib/pic16/libc/stdio/strmusart.c,
7065         * device/lib/pic16/libc/stdio/vfprintf.c,
7066         * device/lib/pic16/libc/stdlib/ltoa.c,
7067         * device/lib/pic16/libc/stdlib/putchar.c,
7068         * device/lib/pic16/libc/stdlib/x_ftoa.c,
7069         * device/lib/pic16/libc/stdlib/memchrpgm.c,
7070         * device/lib/pic16/libc/stdlib/memchrram.c,
7071         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
7072         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
7073         * device/lib/pic16/libio/adc/adcbusy.c,
7074         * device/lib/pic16/libio/adc/adcread.c,
7075         * device/lib/pic16/libio/adc/adcsetch.c,
7076         * device/lib/pic16/libio/usart/ubaud.c,
7077         * device/lib/pic16/libio/usart/ubusy.c,
7078         * device/lib/pic16/libio/usart/udrdy.c,
7079         * device/lib/pic16/libio/usart/uopen.c,
7080         * device/lib/pic16/libio/usart/uputc.c,
7081         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
7082         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
7083         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
7084         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
7085         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
7086         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
7087         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
7088         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
7089         specific keywords to double underlined form,
7090         * device/lib/pic16/libc/Makefile.rules,
7091         * device/lib/pic16/libsdcc/Makefile.rules,
7092         * device/lib/pic16/libm/Makefile,
7093         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
7094         to compile with C standard set in Makefile.common
7095         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
7096         rand.c and crc.c in compilation process,
7097         * device/lib/pic16/libsdcc/int/divuint.c,
7098         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
7099         `c' from signed to unsigned,
7100         * device/lib/pic16/startup/crt0.c,
7101         * device/lib/pic16/startup/crt0i.c,
7102         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
7103         keywords to double underlined form, bug fixes in _do_cinit function
7104         which prevented the correct initialization of the .idata segment,
7105         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
7106         core to enter a infinite loop
7107         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
7108
7109 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7110
7111         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
7112
7113 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7114
7115         * device/include/Makefile.in: add support for hc08 subdirectory
7116         * device/include/hc08/: new subdirectory
7117         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
7118         Lucas Loizaga, thanks!
7119         * device/include/hc08/mc68hc908qy.h,
7120         * device/include/hc08/mc68hc908gp32.h,
7121         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
7122         their own directory. Changed internal macro names to use the compiler
7123         reserved namespace. Changed SDCC specific keywords to double
7124         underlined form.
7125         * device/include/math.h,
7126         * device/include/malloc.h,
7127         * device/include/stdarg.h,
7128         * device/include/stdbool.h
7129         * device/include/string.h,
7130         * device/include/tinibios.h,
7131         * device/include/ds400rom.h,
7132         * device/include/8051.h,
7133         * device/include/8052.h,
7134         * device/include/80c51xa.h,
7135         * device/include/at89c55.h,
7136         * device/include/at89S8252.h,
7137         * device/include/at89x51.h,
7138         * device/include/at89x52.h,
7139         * device/include/ds80c390.h,
7140         * device/include/reg764.h,
7141         * device/include/regc515c.h,
7142         * device/include/sab80515.h,
7143         * device/include/mcs51/c8051f000.h,
7144         * device/include/mcs51/c8051f018.h,
7145         * device/include/mcs51/c8051f020.h,
7146         * device/include/mcs51/c8051f040.h,
7147         * device/include/mcs51/c8051f060.h,
7148         * device/include/mcs51/c8051f120.h,
7149         * device/include/mcs51/c8051f300.h,
7150         * device/include/mcs51/c8051f310.h,
7151         * device/include/mcs51/c8051f320.h,
7152         * device/include/mcs51/c8051f330.h,
7153         * device/include/mcs51/c8051f350.h,
7154         * device/include/z180.h: Changed SDCC specific keywords to double
7155         underlined form.
7156
7157 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
7158
7159         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
7160         18F4455,
7161         * (pic16_assignConfigWordValue): disable testing of configuration
7162         register value with config mask,
7163         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
7164         function with port->fun_prefix,
7165         * (genFunction): when generating a naked interrupt function never
7166         create an absolute segment placed in interrupt vector address, place
7167         the actual interrupt function at IVA instead, when an interrupt
7168         function is generated with unspecified interrupt then do not create
7169         the absolute section,
7170         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
7171         code for generating a call to generic pointer get/put function with
7172         a call to function pic16_callGenericPointer(),
7173         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
7174         the call to the generic pointer get/put functions with prefixing the
7175         function name with port->fun_prefix,
7176         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
7177         * src/pic16/main.c (_process_pragma): prefix function with
7178         port->fun_prefix,
7179         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
7180         calling assembler, old 18Fxxxx macro is deprecated,
7181         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
7182         PC_ASMDIR in while condition,
7183         * (findInstruction): add PC_ASMDIR in while condition,
7184         * (buildCallTree): prefix main with port->fun_prefix,
7185         * (pic16_pCode2str): fixed bug that didn't emit the memory access
7186         identifier for variable with banked access in instructions BTFSS,
7187         BTFSC, BCF, BSF, BTG
7188         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
7189         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
7190         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
7191         perform optimization when enviroment variable NO_REG_OPT is set,
7192         * (insideLRBlock): NEW, return 1 if register is inside an
7193         INF_LOCALREGS block,
7194         * (RemoveRegFromLRBlock): remove a register that is completely
7195         eliminated by register optimization, but it is still left in local
7196         register store/restore in/from stack block,
7197         * (Remove2pcodes): after removing register, check to see if it
7198         should be removed from local register store/restore in/from stack
7199         block,
7200         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
7201         DUMMY_READ_VOLATILE,
7202
7203         * device/include/pic16/adc.h: minor prototype modifications and
7204         update,
7205         * device/include/pic16/malloc.h: added GPL notice various
7206         modifications,
7207         * device/include/pic16/stdint.h: NEW, standard header for ints
7208         * device/include/pic16/delay.h: NEW, header for delay functions,
7209         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
7210         delay1mtcy,
7211         * device/include/pic16/signal.h: NEW, header providing helper macros
7212         for implementing signal handlers,
7213         * device/include/pic16/stdio.h: added prototypes for functions,
7214         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
7215         prototypes for stdin and stdout, added macro PUTCHAR to
7216         automatically implement putchar function prototype,
7217         * device/include/pic16/usart.h: modified and updated USART library,
7218         * device/lib/pic16/libio/adc/,
7219         * device/lib/pic16/libio/i2c: some modifications to improve library
7220         performance,
7221         * device/lib/pic16/libc/stdio/: modifications for the new printf*
7222         family of functions,
7223         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
7224         family of functions and other sources,
7225         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
7226         of the PIC18Fxx[28] devices,
7227         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
7228         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
7229         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
7230         _do_cinit function, because the previous failed when local variables
7231         where not placed in the same memory bank,
7232         * device/lib/pic16/libsdcc/char/: various modifications to improve
7233         library performance,
7234         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
7235         information on the new functions of the c library and more...
7236
7237 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7238
7239         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
7240
7241 2005-03-26 Raphael Neider <rneider AT web.de>
7242
7243         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
7244           if condition == CARRY)
7245         * (genCmp): adapted to new genSkipc semantics
7246         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
7247           on rIfx (genCmp was broken)
7248
7249 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7250
7251         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
7252         * src/z80/main.c (_keywords[]),
7253         * src/SDCCglobal.h (struct options),
7254         * src/SDCC.y,
7255         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
7256         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
7257         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
7258         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
7259         always available in leading double underscore form. The C99 support is
7260         mostly missing, but it's a start.
7261         * support/regression/tests/bug-227710.c: fixed nonconforming use of
7262         reserved identifier "__data".
7263
7264 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
7265
7266         * src/mcs51/peeph.def: fixed bug 1170013
7267
7268 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
7269
7270         * device/include/mcs51reg.h: fixed bug 842007
7271
7272 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7273
7274         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
7275         last time.
7276
7277 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7278
7279         * src/port.h (struct PORT),
7280         * src/avr/ralloc.c (avr_assignRegisters),
7281         * src/avr/main.c,
7282         * src/ds390/ralloc.c (ds390_assignRegisters),
7283         * src/ds390/main.c,
7284         * src/hc08/ralloc.c (hc08_assignRegisters),
7285         * src/hc08/main.c,
7286         * src/mcs51/ralloc.c (mcs51_assignRegisters),
7287         * src/mcs51/main.c,
7288         * src/pic/ralloc.c (pic14_assignRegisters),
7289         * src/pic/main.c,
7290         * src/pic16/ralloc.c (pic16_assignRegisters),
7291         * src/pic16/main.c,
7292         * src/xa51/ralloc.c (xa51_assignRegisters),
7293         * src/xa51/main.c,
7294         * src/z80/ralloc.c (z80_assignRegisters),
7295         * src/z80/ralloc.h,
7296         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
7297         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
7298         * src/SDCCcse.h,
7299         * src/SDCCdflow.c (computeDataFlow),
7300         * src/SDCCdflow.h,
7301         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
7302         * src/SDCCloop.h,
7303         * src/SDCCcflow.c (*),
7304         * src/SDCCcflow.h,
7305         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
7306         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
7307         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
7308         immedDom() returning wrong block; probably fixes bug #1160833)
7309
7310 2005-03-20 Borut Razem <borut.razem AT siol.net>
7311
7312         * support/scripts/inc2h.pl: WIN32 port
7313
7314 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
7315
7316         * device/lib/makefile.in: added abs.c and labs.c
7317
7318 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
7319
7320         * device/include/stdint.h: added
7321         * device/lib/abs.c: added
7322         * device/lib/labs.c: added
7323         * device/include/stdlib.h: added abs() and labs() prototypes
7324         * device/lib/libsdcc.lib: added abs and labs
7325         * device/include/float.h,
7326         * device/lib/_fsmul.c,
7327         * device/lib/printf_fast.c,
7328         * device/lib/printf_tiny.c: updated comments
7329
7330 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7331
7332         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
7333         bug #1164313
7334
7335 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7336
7337         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
7338         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
7339
7340 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
7341
7342         * device/lib/printf_large.c: removed inline assembly for portability and
7343           readability. Use printf_fast if speed or size are more important.
7344         * src/pic16/gen.c: removed conditions around use of DEBUGpc
7345         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
7346
7347 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
7348
7349         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
7350         prevent compiler warning
7351
7352 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
7353
7354         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
7355         moved to level 0 and declared as static. Also they are explicit
7356         placed in access bank. This was necessery because some times they
7357         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
7358         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
7359         optimizations. Currently only compare to unsigned char is implemented,
7360         * src/pic16/gen.c: added fReturnIdx array,
7361         * (struct resolvedIfx) is moved to gen.h and made public,
7362         * (struct _G): added sregsAlloc and sregsAllocSet fields,
7363         * (aopForSym): added an optimization to directly store in stack of
7364         the operand of a SEND iCode,
7365         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
7366         but as registers instead (AOP_REG) using the fReturnIdx array,
7367         * (pic16_freeAsmop): remove the freed register from the
7368         _G.sregsAlloc field,
7369         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
7370         a compare of 'WREG',
7371         * (pic16_popGetTempRegCond): changed function prototype, now
7372         function takes also a bitVector argument v which holds the current
7373         set of registers that are allocated for stack access by aopForSym,
7374         registers allocated in aopForSym for accessing stack symbols are not
7375         any more part of the functions usedRegs field,
7376         * (genCall): some times aopOp is called for a stack variable to be
7377         send, aopForSym might perform the push, if this is true make sure
7378         that genCall doesn't push the variable twice by testing _G.resDirect,
7379         * (genFunction): changed testing for unspecified interrupt number
7380         from 256 to INTNO_UNSPEC,
7381         * modified selection scheme of frame pointer generation. Previously
7382         if function did use local registers a frame pointer was generated,
7383         now a frame pointer is generated only if function has arguments
7384         (that need PLUSW2 register access), or has stack arguments, or the
7385         compiler is not instructed to omit the frame pointer,
7386         * (genEndFunction): before restoring local registers that were saved
7387         in the function preamble, also restore the registers that *might*
7388         have been allocated for stack access,
7389         * (genRet): removed some old comments,
7390         * (genCmp, the active (RN's) version): added a call to the
7391         pic16_genCmp_special function to perform the compare with a more
7392         robust and optimized way,
7393         * (genInline): a feature has been added in inline code generation,
7394         which allows a wildcard variable substitution when writing inline
7395         assembly. Code is incomplete and experimental therefore undocumented,
7396         * (genCast): changed order of aopOp for result and right to allow
7397         aopForSym to directly load the result if possible,
7398         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
7399         perform an optimized compare on some selected special occasions,
7400         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
7401         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
7402         generate an IVT any more,
7403         * src/pic16/main.c (pic16_optionsTable): added command line option
7404         --optimize-cmp,
7405         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
7406         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
7407         macros,
7408         * src/pic16/NOTES: Raphael Neider added in list of active developers
7409         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
7410         jumptable_end to prevent bug #,
7411         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
7412         inCond and outCond fields,
7413         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
7414         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
7415         turn off register spilling,
7416         * (packRegsForOneUse): synced with other ports' versions although it
7417         is not used currently,
7418         * (pic16_packRegisters): added an optimization while reading
7419         structure bitfields, some registers may be saved (malloc code is
7420         decreased by 80 bytes)
7421
7422 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
7423
7424         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
7425         left is a bitfield, if yes, then don't optimize assignment. Perhaps
7426         this can be optimized more?
7427
7428 2005-03-10 Raphael Neider <rneider AT web.de>
7429
7430         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
7431           genNearPointerGet): (hopefully) fixed access to bitfields via
7432           pointers (p->bitN = x; and x = p->bitN; failed)
7433
7434 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
7435
7436         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
7437
7438 2005-03-09 Raphael Neider <rneider AT web.de>
7439
7440         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
7441
7442 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
7443
7444         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
7445         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
7446           (regTypeNum): set REG_BIT type if necessary
7447         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
7448         * support/regression/tests/critical.c: check bug 1144613
7449
7450 2005-03-02 Raphael Neider <rneider AT web.de>
7451
7452         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
7453
7454 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7455
7456         * src/avr/ralloc.c (serialRegAssign),
7457         * src/ds390/ralloc.c (serialRegAssign),
7458         * src/hc08/ralloc.c (serialRegAssign),
7459         * src/mcs51/ralloc.c (serialRegAssign),
7460         * src/pic/ralloc.c (serialRegAssign),
7461         * src/pic16/ralloc.c (serialRegAssign),
7462         * src/xa51/ralloc.c (serialRegAssign),
7463         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
7464
7465 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
7466
7467         * src/SDCCast.c (decorateType): fixed bug 1124787
7468
7469 2005-02-20 Hubert Sack <sack AT digiplan.de>
7470         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7471
7472         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
7473         patch #1121755
7474
7475 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7476
7477         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
7478         to keep the correct label reference count when adding/removing references
7479         to labels. A peephole file using this is appended to patch #1144962.
7480
7481 2005-02-14 Raphael Neider <rneider AT web.de>
7482
7483         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
7484         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
7485         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
7486           retrievals of result operand's value on assignment
7487
7488 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
7489
7490         * device/include/pic16/string.h: modified prototype for memccpy()
7491         to memccpy(void *, void *, char, size_t)
7492         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
7493         check whether to omit frame pointer or not,
7494         * (genInline): convert all occurences of "\n" to LF in inline
7495         assembler blocks, this helps formatting the inline text,
7496         * (pic16_loadFSR0): modified prototype,
7497         * (genNearPointerGet, genNearPointerSet): reorganization of code,
7498         removed some 8051 legacy code,
7499         * (genPackBits): enabled handling bitfields exceeding one byte in size,
7500         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
7501         before allocating temporary registers in functions,
7502
7503 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
7504
7505         * support/regression/tests/bitvars.c: corrected the "fix"
7506
7507 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
7508
7509         * support/regression/tests/bitvars.c,
7510         * support/regression/tests/bitwise.c,
7511         * support/regression/tests/rotate.c: "fixed" problems on Alpha
7512
7513 2005-02-10 Raphael Neider <rneider AT web.de>
7514
7515         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
7516           different size for Alpha
7517         * src/pic16/gen.c (genCmpEq) : improved compare with 0
7518
7519 2005-02-09 Raphael Neider <rneider AT web.de>
7520
7521         * src/SDCC.lex(doPragma) : save and restore warning options as well
7522           (also added new stack plus clone- and copyAndFreeSDCCERRG())
7523         * have #pragma less_pedantic set the errorlevel to WARNING
7524           (fixes #1117001)
7525         * (cloneOptimize) : fixed wrong malloc's size
7526         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
7527           facilitate correct handling of #pragma (save|restore)
7528
7529 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
7530
7531         * src/mcs51/gen.c: removed non-standard C nameless struct/union
7532
7533 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
7534
7535         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
7536
7537 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
7538
7539         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
7540
7541 2005-02-02 Raphael Neider <rneider AT web.de>
7542
7543         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
7544         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
7545         * (pic16_storeForReturn): fixed to allow returning function pointers
7546         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
7547         * device/include/pic16/{stddef.h,stdbool.h}: added
7548
7549 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
7550
7551         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
7552
7553 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
7554
7555         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
7556         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
7557          appeared to be required
7558
7559 2005-01-31 Borut Razem <borut.razem AT siol.net>
7560
7561         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
7562           include/mcs51 and include/z80 directories to the package
7563
7564 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7565
7566         * src/hc08/gen.c (genFunction): fixed bug #1112752
7567
7568 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7569
7570         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
7571
7572 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7573
7574         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
7575
7576 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
7577
7578         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
7579
7580 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
7581
7582         * device/include/c8051fxxx.h: removed these 6 files
7583         * device/include/mcs51/c8051fxxx.h: added these 11 new files
7584
7585 2005-01-26 Raphael Neider <rneider AT web.de>
7586
7587         * src/pic16/gen.c (genAssign): fixed assignment from longs
7588           in codespace (were cut to three bytes)
7589         * (genDummyRead): implemented (except for CODESPACE...),
7590           fixed bug #1108575
7591         * src/pic16/glue.c (emitStatistics): beautified
7592         * device/lib/pic16/libm/Makefile: added include path
7593
7594 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7595
7596         * src/z80/gen.c (aopPut): fixed bug #1103902
7597
7598 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7599
7600         * device/lib/expf.c: fixed bug #1095792
7601
7602 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
7603
7604         * device/lib/pic16/libm: added Math library sources
7605
7606 2005-01-24 Raphael Neider <rneider AT web.de>
7607
7608         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
7609           to enable upcast to pCodeOpReg2 (there is no type tag to
7610           differenciate the two and pic16_popGet2p cast into PCOR2)
7611         * src/pic16/main.c (_process_pragma): fixed another malloc bug
7612           (sizeof(sectNames) changed to sizeof(sectName))
7613           Both patches fix segfaults under MinGW.
7614
7615 2005-01-23 Raphael Neider <rneider AT web.de>
7616
7617         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
7618           Safe_[mc]?alloc()'ed variables
7619         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
7620           of (byte sized) temporaries (assign them to WREG for now)
7621         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
7622           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
7623           this might fix SIGSEGVs on MinGW...
7624         * src/SDCCopt.c (killDeadCode): restored original behaviour
7625           (volatile operands might get thrown away though)
7626
7627 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
7628
7629         * src/pic16/gen.c: fixed bug #1106975,
7630         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
7631         pointer update, INTCON is saved, global interrupts are disabled and
7632         restored after updateing TOS.
7633         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
7634         * added function attribute 'shadowregs' to take advantage of shadow
7635         registers,
7636         * added function attribute 'wparam' as an alternative to the wparam
7637         pragma,
7638         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
7639         user declares a non-ISR function as 'shadowregs',
7640         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
7641
7642 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
7643
7644         * .version: bumped version number to 2.4.8
7645         * device/lib/pic16/pics.all: list of PIC18F devices supported by
7646         pic16 port,
7647         * device/lib/pic16/libio/i2c/: I2C module support library,
7648         * device/include/pic16/i2c.h: I2C support library header,
7649         * device/lib/pic16/libc/stdio/: standard IO support sources,
7650         * (printf_small.c): printf_small() source, supports float print,
7651         * (printf_tiny.c): printf_tiny() source, does not support floats,
7652         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
7653         enable global optimizations for entire library source, other
7654         Makefiles in the source tree are also modified to reflect this,
7655         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
7656         function,
7657         * doc/sdccman.lyx: updated to reflect new changes,
7658         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
7659         sym->onStack if-case,
7660         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
7661         sbit, idata, _idata, xdata, _xdata,
7662         * added pragma library, to link an external library, (see doc),
7663         * removed command line options, --pomit-config-words, --pomit-ivt,
7664         --pleave-reset-vector,
7665         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
7666         when calling assembler to reflect memory model used, also define
7667         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
7668         reflect stack model used,
7669         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
7670         on stack return NULL,
7671
7672 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
7673
7674         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
7675           of the operands is volatile. Fixes #1020220
7676
7677 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
7678
7679         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
7680         * (OptimizeRegUsage): make sure that there is really no other flow where
7681           the first pCode is used
7682
7683 2005-01-22 Raphael Neider <rneider AT web.de>
7684
7685         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
7686           to fix #1106967 (pCode->seq are not set up correctly)
7687
7688 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7689
7690         * src/SDCCglue.c (glue): make sure code area is declared before the
7691         static initialization area.
7692
7693 2005-01-21 Raphael Neider <rneider AT web.de>
7694
7695         * device/lib/Makefile.in: fixed test for pic16 install dir
7696         * device/lib/pic16/*/Makefile*: modified compile flags to enable
7697           optimizations
7698         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
7699           added --optimize-goto compiler switch and pragma wparam documentation
7700         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
7701         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
7702           and PRODH closing bug #1071770 (peephole optimizer)
7703
7704 2005-01-19 Raphael Neider <rneider AT web.de>
7705
7706         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
7707           cmdLine buffers (used when calling sdcpp...) are large enough
7708           (MAX_PATH=256 truncates arguments leading to system halts when
7709           used in MinGW...)
7710         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
7711         * (genUminus): rewritten to for efficiency
7712         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
7713           used uninitialized in some cases)
7714         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
7715           copy the third byte from the int -- now assumes 0x80 (data memory)
7716         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
7717           operands (genAddLit expects the iCode's operands to swapped as
7718           well), fixed leftover bytes (crashed for short left operands)
7719         * (pic16_genMinusDec): performance improvements, removed false
7720           PIC14 emitSKPNCs
7721         * (pic16_genMinus): fixed to cope with differently sized operands
7722         * src/pic16/glue.c (pic16_glue): added new banksel optimization
7723           for --obanksel > 1
7724         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
7725         * src/pic16/graph.[ch]: implementation of directed graphs, used by
7726           new banksel optimization
7727         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
7728           analysis for temporary registers (segfaults...)
7729         * src/pic16/peeph.def: added rule
7730
7731 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
7732
7733         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
7734         which converts a float number to its ASCII representation
7735         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
7736         functions to convert the fractional and integer part of a float to ASCII,
7737         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
7738         realloc.c): added _MALLOC_SPEC to explicit place variables in data
7739         ram
7740         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
7741         _STATMEM macros,
7742         * device/include/pic16/adc.h: added GPL info,
7743         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
7744         a pCodeOp as tested operand,
7745         * (genNearPointerGet): optimized bit testing, does not use
7746         intermediate register for bit value, test directly instead with
7747         BTFSS, BTFSC, works only for single bits,
7748         * (genpic16Code): dump the name of the iCode in the asm,
7749         * src/pic16/ralloc.c (decodeOp): removed static declaration and
7750         renamed to pic16_decodeOp,
7751         * (serialRegAssign): do not allocate a temporary register for iCode
7752         sequences that test a single bit for 1/0
7753
7754 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
7755
7756         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
7757         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
7758         access stack and frame pointers. They are initially assigned to
7759         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
7760         accessing SFRs. Updated all occurences of modification of stack or
7761         frame pointer in gen.c and pcode.c,
7762         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
7763         assigning of a literal value to pointers,
7764         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
7765         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
7766         selected
7767
7768 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
7769
7770         * doc/sdccman.lyx: update documentation about stack pragma, added
7771         some info for stack memory models
7772
7773 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7774
7775         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
7776
7777 2005-01-08 Raphael Neider <rneider AT web.de>
7778
7779         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
7780           udata sections to fix bug #1097823
7781
7782 2005-01-05 Raphael Neider <rneider AT web.de>
7783
7784         * src/pic16/gen.c (genGenericShift): added handling of differently
7785           sized left operand and result
7786
7787 2005-01-04 Raphael Neider <rneider AT web.de>
7788
7789         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
7790         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
7791           to hold the condition bit)
7792         * added new version of genCmp (old code available via #define)
7793         * added new version of genShiftLeft/genShiftRight in a generic
7794           way, now supports shifting by negative values
7795         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
7796           shiftCount (expected by genGenericShift)
7797         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
7798         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
7799           dump
7800         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
7801           is an invalid literal too...)
7802
7803 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
7804
7805         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
7806         from Raphael Neider,
7807         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
7808         for 8-bit literals. This fixes some literal operands which are sign
7809         extended to 16-bits ints when instruction needs only 8-bits.
7810
7811 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
7812
7813         * device/lib/logf.c: added mcs51 assembly version
7814         * device/lib/expf.c: added mcs51 assembly version
7815         * device/lib/_logexpf.c: new shared asm code for expf and logf
7816         * device/include/math.h: add defines for assembly math library
7817         * device/lib/Makefile.in: build new _logexpf.c
7818         * device/lib/libfloat.lib: use new _logexpf.c
7819
7820 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
7821
7822         * src/pic/device.c
7823         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
7824           device types which have less than 0x7f registers.
7825
7826 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
7827
7828         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
7829
7830 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
7831
7832         * device/lib/printf_fast.c: only build on supported arch.
7833         * device/lib/printf_tiny.c: only build on supported arch.
7834         * device/lib/printf_fast_f.c: only build if asm float lib
7835         * device/lib/_fsget1arg.c: only build if asm float lib
7836         * device/lib/_fsget2args.c: only build if asm float lib
7837         * device/lib/_fsnormalize.c: only build if asm float lib
7838         * device/lib/_fsreturnval.c: only build if asm float lib
7839         * device/lib/_fsrshift.c: only build if asm float lib
7840         * device/lib/_fsswapargs.c: only build if asm float lib
7841         * device/include/stdio.h: don't provide print_fast,
7842           print_fast_f, print_tiny prototypes if --xstack used
7843
7844 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
7845
7846         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
7847         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
7848           to the SOURCES
7849
7850 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
7851
7852         * device/lib/printf_fast_f.c: same as printf_fast, but
7853           with floating point enabled
7854         * device/lib/printf_fast.c: minor tweaks
7855         * device/include/stdio.h: add printf_fast_f
7856
7857 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
7858
7859         * src/SDCCmain.c: make --float-reent default for mcs51
7860         * device/lib/_fsadd.c: added mcs51 assembly version
7861         * device/lib/_fssub.c: added mcs51 assembly version
7862         * device/lib/_fsmul.c: added mcs51 assembly version
7863         * device/lib/_fsdiv.c: added mcs51 assembly version
7864         * device/lib/_fseq.c: added mcs51 assembly version
7865         * device/lib/_fsneq.c: added mcs51 assembly version
7866         * device/lib/_fsgt.c: added mcs51 assembly version
7867         * device/lib/_fslt.c: added mcs51 assembly version
7868         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
7869         * device/lib/Makefile.in: add _fscmp to build
7870         * device/lib/libfloat.lib: add _fscmp to build
7871
7872 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
7873
7874         * device/lib/_fs2slong.c: added mcs51 assembly version
7875         * device/lib/_fs2sint.c: added mcs51 assembly version
7876         * device/lib/_fs2schar.c: added mcs51 assembly version
7877         * device/lib/_fs2ulong.c: added mcs51 assembly version
7878         * device/lib/_fs2uint.c: added mcs51 assembly version
7879         * device/lib/_fs2uchar.c: added mcs51 assembly version
7880         * device/lib/_slong2fs.c: added mcs51 assembly version
7881         * device/lib/_sint2fs.c: added mcs51 assembly version
7882         * device/lib/_schar2fs.c: added mcs51 assembly version
7883         * device/lib/_ulong2fs.c: added mcs51 assembly version
7884         * device/lib/_uint2fs.c: added mcs51 assembly version
7885         * device/lib/_uchar2fs.c: added mcs51 assembly version
7886         * device/include/float.h: added #define to select asm vs c
7887
7888 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
7889
7890         * device/lib/printf_fast.c: improvements to float output
7891         * device/include/float.h: add defines for assembly float library
7892         * device/lib/_fsget1arg.c: receive 1 float arg
7893         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
7894         * device/lib/_fsnormalize.c: normalize a float
7895         * device/lib/_fsreturnval.c: return float, various helper routines
7896         * device/lib/_fsrshift.c: right shift a float's mantissa
7897         * device/lib/_fsswapargs.c: swap 2 floats
7898         * device/lib/Makefile.in: build these 6 new files for mcs51
7899         * device/lib/libfloat.lib: add these 6 files to the library
7900
7901 2004-12-26 Borut Razem <borut.razem AT siol.net>
7902
7903         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
7904           built by gcc 3.4.2
7905
7906 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
7907
7908         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
7909           and fully reentrant and register bank neutral.
7910         * device/lib/printf_fast.c: added float (not enabled by default),
7911           added compact/slower integer (also not enabled by default),
7912           improved size/speed of fast integer code, other minor changes
7913         * device/include/stdio.h, device/lib/Makefile.in,
7914           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
7915
7916 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
7917
7918         * src/pic16/pcode.c: declaring variables other than at the start of a
7919           block is not supported in C by VC6.
7920
7921 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
7922
7923         * applied a previous patch from Raphael Neider that wasn't included
7924         in the previous commits, which fixes infinite loops within jumptable
7925         improvements,
7926         * made some fixes that previous patches introduced
7927
7928 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
7929
7930         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
7931         that fixes an issue with AOP_PCODE asmop's offset,
7932         * (pic16_popCopyReg): update instance field too,
7933         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
7934         function of pic port,
7935         * (genCmp, genAnd, genAssign),
7936         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
7937
7938 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
7939
7940         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
7941         variables initial values to idata section,
7942         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
7943         variables in some functions. This utilizes parmBytes field of iCode
7944         structure to hold the offset of the variable in stack. (might be
7945         able to use the stack field too?)
7946         * applied patch from Raphael Neider # ### , # ###
7947         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
7948         variable initial values in idata section,
7949         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
7950         for static variables with initial value
7951         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
7952         applied fix in while loop from Raphael Neider.
7953
7954 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
7955
7956         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
7957         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
7958         * src/ds390/ralloc.c (serialRegAssign): spill bits
7959         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
7960         * support/Util/SDCCerr.c,
7961         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
7962         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
7963         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
7964
7965 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
7966
7967         * device/include/sdcc-lib.h: inserted LGPL, added includes
7968           asm/ds390/features.h and asm/mcs51/features.h
7969         * device/include/asm/default/features.h,
7970         * device/include/asm/gbz80/features.h,
7971         * device/include/asm/z80/features.h: added empty _AUTOMEM
7972           and _STATMEM
7973         * device/include/asm/ds390/features.h,
7974         * device/include/asm/mcs51/features.h: added files with defines for
7975           _AUTOMEM and _STATMEM indicating automatic and static storage class
7976         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
7977         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
7978         * src/SDCCicode.c (geniCodeCast),
7979         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
7980         * src/SDCCloop.c (loopInduction): removed unused variable lr
7981         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
7982           to convertToFcall to include char modulo (RFE 1065037), added check
7983           if left operand is unsigned and use abs of literal value
7984         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
7985           as it doesn't work after conversion from peephole.def to peephole.rul
7986         * src/mcs51/gen.c (toBoolean): added check for size,
7987           (genModOneByte): optimized code for signed char modulo a literal
7988           power of 2 (thanks to Hubert Sack),
7989           (genRRC): removed unnecessary "clr c",
7990           (genRLC): replaced "add a,acc" with cheaper "rlc a"
7991         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
7992           jump optimization,
7993           swapped rules 256.c and 256.d,
7994           extended 256.d by using new multiple checks (thanks Erik),
7995           added rules 256.e and 256.f,
7996           updated rule 261.a and 261.b to new generated code
7997         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
7998
7999 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8000
8001         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
8002           induction related bugs, including first part of bug #1074377
8003
8004 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
8005
8006         * applied patch from bug-report #1076292,
8007         * applied patches for genAnd and Goto-optimizations for Raphael
8008         Neider,
8009         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
8010         dump a less iCode information,
8011         * src/pic16/device.h (pic16_options_t): added field debgen,
8012         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
8013         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
8014         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
8015         puclic,
8016         * (various functions): added macros FENTRY and FENTRY2 to functions,
8017         to emit function prologue,
8018         * (various functions): fixed indentation,
8019         * (genNearPointerGet): fixed loading of FSR0,
8020         * (genPackBits): applied patch from Raphael Neider to fix updating
8021         of FSR0 and touching only the modified bits,
8022         * src/pic16/genarith.c (various functions): added macros FENTRY to
8023         emit function prologue in comments,
8024         * src/pic16/pcode.h: added functions debugf2, debugf3,
8025         * src/pic16/ralloc.c: partial fix for packForPush caused
8026         segmentation fault,
8027
8028 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8029
8030         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
8031           <stsp AT users.sourceforge.net> with reversed byte order
8032         * support/regression/tests/rotate.c: added (ds390 skips some tests)
8033
8034 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8035
8036         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
8037           bug #1074377
8038         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
8039         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
8040
8041 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
8042
8043         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
8044
8045 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8046
8047         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
8048           conditions,
8049           (setFromConditionArgs): friendly operand parser for peephole rules,
8050           (operandBaseName, operandsNotRelated): new peephole condition
8051           "operandsNotRelated" -- similar to "operandsNotSame", but takes
8052           architecture specific register naming into account, handles n-way
8053           comparisons, and supports quoted literals
8054         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
8055
8056 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8057
8058         * src/mcs51/peeph.def: fixed bug #1076940
8059
8060 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
8061
8062         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
8063
8064 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8065
8066         Adding support for replacing ljmps with sjmps in jumptables
8067         generated for switch statements. For now you need to set the
8068         environment variable SDCC_SJMP_JUMPTABLE to enable this.
8069         Now 4 algorithms for mcs51 jumptable generation are used:
8070         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
8071         addresses loaded pc-relative for up to 112 cases and stack-pushing
8072         target addresses loaded with offset from dptr for up to 256 cases.
8073
8074         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
8075         * src/mcs51/main.c: adapted constants for switch table generation
8076         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
8077
8078 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
8079
8080         * device/lib/printf_large.c (_print_format): fixed bug 1073386
8081         * support/regression/tests/bug1057979.c: added test for bug 1073386
8082
8083 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
8084
8085         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
8086         compilers
8087
8088 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
8089
8090         * src/pic16/device.h,
8091         * src/pic16/genarith.c,
8092         * src/pic16/glue.c,
8093         * src/pic16/main.c,
8094         * src/pic16/pcode.c: applied patches #1068154 and #1070213
8095
8096 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
8097
8098         Large cummulative patch for pic16 port.
8099         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
8100         to call when a stack overflow occurs,
8101         * (malloc.h): added CVS Id tag,
8102         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
8103         variable,
8104         * added libc directory. The current version of LibC contains string
8105         functions, ctype functions and macros and some functions of the
8106         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
8107         be extensively tested in the future. Standard disclaimer here.
8108         Library is not automatically build yet. But one can build it by
8109         invoking 'make' inside the libc directory.
8110         * added ADC library under libio. Preliminary version yet.
8111
8112         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
8113         * src/pic16/gen.c (aopForRemat): asmop size is filled by
8114         aopForRemat() now and not by pic16_aopOp(),
8115         * (pic16_popGetTempReg): removed warning messgae when allocating
8116         temporary registers, its a buggy feature and will be removed,
8117         * (pic16_popGet): set register instance field in AOP_CRY,
8118         * (pic16_outBitC): fixed for results in size greater than 1,
8119         * (genUminusFloat): fixed for pic16, ported code from mcs51,
8120         * (pic16_storeForReturn): optimized return of 0,
8121         * (genCmp): experimental code for new genCmp which uses PIC18's
8122         special compare&skip instructions. Initial tests fail some times
8123         with variables grater than 1 byte in size, so new code is disabled,
8124         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
8125         a single bit,
8126         * (genCast): began a fix to optimize the casting of a bit to another
8127         bit, now assigning a bitfield to another bitfield will fail, sorry,
8128         * src/pic16/main.c: disabled the use of lr-support feature,
8129         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
8130         * added some function prototypes, added function _debugf prototype,
8131         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
8132         bits with offset (case PO_GPR_BIT),
8133         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
8134         command line,
8135         * (isBankInstruction): modified to return 0 for no banking instruction,
8136         and 1 for banking instruction,
8137         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
8138         caused stop processing pCodes after a inline assembly block,
8139         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
8140         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
8141         registers when it shouldn't,
8142         * src/pic16/ralloc.c (allocReg): add preliminary support for
8143         supporting a limited set of temporary registers,
8144
8145 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8146
8147         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
8148           genDataPointerSet): ensure assignments always copy in MSB to LSB
8149           order,
8150           (loadRegFromAop): recognize CLRH optimization,
8151           (genFunction): optimize RECEIVE iCodes in reentrant functions
8152
8153 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8154
8155         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
8156           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
8157           selected.
8158         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
8159         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
8160           contiguous with data
8161
8162 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8163
8164         * device/lib/_gptrget.c (_gptrget),
8165         * device/lib/_gptrgetc.c (_gptrgetc),
8166         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
8167           instead of sjmp to ret
8168         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
8169           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
8170
8171 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
8172
8173         * .version: bumped version to 2.4.7
8174         * device/lib/_gptrget.c (_gptrget): is now _naked
8175         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
8176         * device/lib/_gptrput.c (_gptrput): is now _naked
8177         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
8178           (createFunction): fixed xstack
8179         * src/SDCCglue.c (emitMaps): set allocation required for bit area
8180         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
8181           or bit either,
8182           (geniCodeCritical): store original interrupt state in an iTemp bit
8183           var unless stack-auto
8184         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
8185         * src/SDCCmain.c (setIncludePath): added include/target to search path
8186         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
8187         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
8188           prototype,
8189           (processFuncArgs): put bit vars in bit area
8190         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
8191           unsaveRBank): fixed xstack,
8192           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
8193           (genFunction, genEndFunction): fixed xstack,
8194           (genAssign): optimization don't walk backwards through mem
8195         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
8196         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
8197         * support/regression/Makefile: also make library (for stack-auto) when
8198           making "all" and added "test-mcs51-xstack-auto"
8199         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
8200         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
8201         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
8202         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
8203         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
8204           make-library by MAKE_LIBRARY
8205         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
8206           regression tests for xstack
8207         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
8208         * support/regression/tests/critical.c: test for critical on mcs51
8209
8210 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8211
8212         * support/regression/ports/ucz80/spec.mk: use include and lib files from
8213           built version of sdcc instead of installed version
8214
8215 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
8216
8217         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
8218         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
8219           vprintf.c now
8220         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
8221         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
8222           WARNING: remove device/lib/build/z80/printf.o by hand when
8223           updating from previous build!
8224         * device/lib/z80/printf.c: updated comment
8225         * support/regression/tests/bug1057979.c: test all ports now
8226         * support/regression/tests/bug1065458.c: file added
8227
8228 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8229
8230         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
8231           *_start and *_end symbols for static functions
8232
8233 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
8234
8235         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
8236           and search crt0.o in all library paths,
8237           (setIncludePath): proper handling of --nostdinc,
8238           (setLibPath): proper handling of --nostdlib
8239         * support/regression/Makefile,
8240         * support/regression/ports/ds390/spec.mk,
8241         * support/regression/ports/gbz80/spec.mk,
8242         * support/regression/ports/hc08/spec.mk,
8243         * support/regression/ports/mcs51/spec.mk,
8244         * support/regression/ports/mcs51-large/spec.mk,
8245         * support/regression/ports/mcs51-stack-auto/spec.mk,
8246         * support/regression/ports/z80/spec.mk: use include and lib files from
8247           built version of sdcc instead of installed version
8248         * doc/sdccman.lyx: fixed typo in --nostdinc
8249
8250 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
8251
8252         * src/pic/pcode.c,
8253         * src/pic/device.c,
8254         * src/pic/ralloc.c,
8255         * src/pic/gen.c : added support to generate code for struct bit fields.
8256
8257 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
8258
8259         * as/xa51/xa_version.h,
8260         * device/include/errno.h,
8261         * device/include/regc515c.h,
8262         * device/lib/_itoa.c,
8263         * device/lib/_ltoa.c,
8264         * device/lib/ser_ir_cts_rts.c,
8265         * sim/ucsim/xa.src/glob.cc,
8266         * sim/ucsim/xa.src/inst_gen.cc,
8267         * sim/ucsim/xa.src/xa_bit.cc,
8268         * sim/ucsim/xa.src/xa_sfr.cc,
8269         * sim/ucsim/z80.src/inst_dd.cc,
8270         * sim/ucsim/z80.src/inst_fdcb.cc,
8271         * support/scripts/keil2sdcc.pl,
8272         * src/pic16/pic16.dsp,
8273         * src/pic16/pic16a.dsp: corrected cvs line endings
8274         * device/lib/printf_large.c: fixed bug 1057979
8275         * src/pic16/gen.c: fixed non-C standard code
8276         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
8277         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
8278         * support/regression/ports/mcs51/support.c: reload T1 asap
8279         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
8280           pdata use and clear idata startup behaviour
8281         * support/regression/tests/bug1057979.c: added
8282
8283 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
8284
8285         * device/examples/ds390/ow390/ad26.h,
8286         * device/examples/ds390/ow390/cnt1d.h,
8287         * device/examples/ds390/ow390/crcutil.c,
8288         * device/examples/ds390/ow390/ownet.h,
8289         * device/examples/ds390/ow390/owsesu.c,
8290         * device/examples/ds390/ow390/swt12.h,
8291         * device/examples/ds390/ow390/swtoper.c,
8292         * device/examples/ds390/ow390/temp10.h,
8293         * device/examples/ds390/ow390/thermodl.c,
8294         * device/examples/ds390/tinitalk/tinitalk.dsp,
8295         * device/examples/ds390/tinitalk/tinitalk.dsw,
8296         * device/examples/mcs51/clock/hw.h,
8297         * device/examples/mcs51/simple2/go.bat,
8298         * device/examples/serialcomm/windows/serial.h,
8299         * device/examples/xa51/dummy.c,
8300         * device/examples/xa51/hello.c,
8301         * device/include/80c51xa.h,
8302         * device/include/at89x051.h: corrected cvs line endings
8303
8304 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
8305
8306         * src/pic16/main.c (options): added command line --gstack, to trace
8307         stack over/under flows,
8308         * added pragma 'wparam' to allow passing first byte of function
8309         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
8310         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
8311         call to __gstack_test function and sets up the symbol as extern,
8312         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
8313         * popaop): added call to pic16_testStackOverflow,
8314         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
8315         wparamList list,
8316         * (genCall, genPcall): now all parameters are passed via stack
8317         except in functions that are pass to wparam pragma in which WREG is
8318         used too,
8319         * (genPcall): REENTRANT flag is checked to see if variable prototype
8320         contains reentrant keyword, don't call a non-reentrant function, via
8321         a reentrant function pointer or vice versa, functions are never
8322         passed via WREG,
8323         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
8324         D.Winkler,
8325         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
8326         SIGSEGV when accessing a NULL register stucture,
8327         * (pic16_printGPointerType): modified to handle UPPER modifier for
8328         function initializers, changed prototype of function to simpler one,
8329         * (pic16_printIvalFuncPtr): check to see if function is already
8330         added in externs list,
8331         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
8332         optimized a move from W to SFR with a move to the same register
8333         later after a CALL,
8334         * device/lib/pic16/debug: NEW directory, contains debug features
8335         which are enabled when linking with libdebug.lib, currently command
8336         line option --gstack enables stack pointer tracing for over/under
8337         flow, corresponding sources are in debug/gstack
8338
8339 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
8340
8341         * doc/sdccman.lyx: updated SDCC version,
8342         * (PIC16 port): update list of command line options,
8343         * src/pic16/device.h (structure pic16_options_t): added field gstack
8344         to enable stack overflow tracing on push/pops,
8345         * src/pic16/device.c (statistics structure): added statistics
8346         structure,
8347         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
8348         pic16_dump_int_registers): increase statistics counters for each
8349         * variable which is encountered
8350         * (pic16_dump_usection): emit each .udata variable to its own udata
8351         section,
8352         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
8353         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
8354         parameters via stack, otherwise use old scheme,
8355         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
8356         assembler output file,
8357         * src/pic16/main.c: added command line options --gstack to enable
8358         push/pop tracing for stack overflow,
8359         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
8360         instructions): added size of each instruction,
8361         * (pic16_countInstruction): estimate size of instructions in
8362         the_pFile list, inline assembly blocks are not counted,
8363         * (pic16_FixRegisterBanking): trace previous register usage, when
8364         banksel optimizations is greater than 0, don't emit a redudant
8365         banksel directive,
8366
8367 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
8368
8369         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
8370         * src/pic16/ralloc.c : applied same fix for pic16.
8371         * src/pic/gen.c : tidied it up a little.
8372
8373 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8374
8375         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
8376         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
8377
8378 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8379
8380         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
8381
8382 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8383
8384         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
8385         non-reentrant function __modsint in the interrupt function (thus
8386         corrupting math operations during serial I/O)
8387         * device/lib/ser_ir.c: as above, changed buffersize
8388         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
8389         256.c,d for zeroing
8390         * doc/Makefile: added option -t for rsync
8391
8392 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8393
8394         * src/SDCCast.h (struct ast),
8395         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
8396
8397 2004-10-20 Borut Razem <borut.razem AT siol.net>
8398
8399         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
8400         package
8401
8402 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
8403
8404         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
8405         makefile targets,
8406         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
8407         support functions to replace long sequences of MOVFF's from access
8408         bank registers to stack and vice versa,
8409         * src/pic16/device.h: added new field opt_flags, where optimization
8410         flags can be set to enable certain features,
8411         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
8412         * pBlock, (genFunction, genEndFunction): surroung loop for
8413         saving/loading used registers in stack with PC_INFO pCodes,
8414         INF_LREGS. Code in between can then be optimized by pCode optimizer
8415         to support function calls,
8416         * (genDataPointerSet): fixed bug which loaded float fields in
8417         structures with corrupt data,
8418         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
8419         in a standard way debug info on stderr. Feature used for developing
8420         and debugging only,
8421         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
8422         obsolete chunks of code,
8423         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
8424         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
8425         * pic16/src/pcode.c (pic16_newpCodeInfo,
8426         * (pic16_newpCodeOpLocalRegs),
8427         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
8428         feature,
8429         * (pic16_pCodeConstString): printing of the initial value of a
8430         symbol as a comment is inhibited since parsing was already done by
8431         copyStr and output is corrupt,
8432         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
8433
8434 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8435
8436         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
8437
8438 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
8439
8440         * as/mcs51/lkarea.c: removed old K&R style,
8441           (lnksect): changed check on boundary error,
8442           (lnksect2): changed check on boundary error,
8443           (lnksect2): extend XSTK to end of page if size = 1
8444         * as/mcs51/lkmain.c: removed old K&R style,
8445           (Areas51): create l_IRAM symbol
8446         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
8447         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
8448           model-mcs51-stack-auto, added model-mcs51-xstack-auto
8449         * device/lib/_mullong.c: added version to be compiled with xstack
8450         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
8451         * device/lib/mcs51/crtxclear.asm: clear pdata as well
8452         * device/lib/mcs51/crtxstack.asm: fixed comment
8453         * src/SDCCglue.c: maxInterrupts defaults to 0,
8454           (emitMaps): added pdata,
8455           (createInterruptVect): (re)moved default,
8456           (glue): added pdata,
8457           (glue): moved __start__xstack to XSTK with default size 1
8458         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
8459           and options.float_rent when options.stackAuto is set,
8460           (linkEdit): only write XDATA_NAME if provided on command line
8461         * src/SDCCmem.h,
8462         * src/SDCCmem.c: added pdata
8463         * src/port.h: added pdata_name to PORT
8464         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
8465           (saveRegisters, unsaveRegisters): removed usage of B,
8466           (genMinus): fixed accumulator clash,
8467           (genJumpTab): added comment, this needs another look
8468         * src/mcs51/gen.c: added check for "B in use" paranoia,
8469           added pushB() and popB()
8470         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
8471           chance
8472         * src/avr/main.c,
8473         * src/ds390/main.c,
8474         * src/hc08/main.c,
8475         * src/mcs51/main.c,
8476         * src/pic/main.c,
8477         * src/pic16/main.c,
8478         * src/xa51/main.c,
8479         * src/z80/main.c: (reset_regparms) made void parameter explicit and
8480           added PSEG (PAG,XDATA) or NULL to port specifier
8481         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
8482         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
8483           (_mcs51_genInitStartup): removed __start__xstack equ,
8484           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
8485         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
8486         * src/z80/gen.c (_rleAppend): fixed warnings
8487         * support/regression/tests/zeropad.c: added pdata test
8488         * .version: bumped to 2.4.6
8489
8490 2004-10-17 Borut Razem <borut.razem AT siol.net>
8491
8492         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
8493         as a part of nightly build
8494
8495 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
8496
8497         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
8498         WREG holds the first byte function parameters,
8499         * (aopForSym): take special case for symbols which are in FARSPACE
8500         but in CODESPACE too,
8501         * (assignResultValue): modified to take into account _G.useWreg,
8502         * (genCall): don't use wreg for parameter passing when function is
8503         declared as reentrant, too, added optimization INCF to stack
8504         pointer when stack parameter count is 1,
8505         * (genFunction, genEndFunction): refurnished and fixed to not using
8506         wreg for passing parameters when function has varargs or is
8507         reentrant, fixed bug with symbol name compare for generating
8508         functions in absolute address,
8509         * (pic16_storeForReturn): refurnished,
8510         * (genCmp): began writing a new version of the function, not ready
8511         yet, therefore it is disabled,
8512         * (genAssign): do not read code memory when assigning a function to
8513         a pointer function,
8514         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
8515         array of characters, not pointer,
8516         * (pic16initialComments): in debug mode emit an .ident directive for
8517         the assembler,
8518         * (_process_pragma): emit a new warning type (internal to pic16)
8519         when setting stack to default length, emit a similar warning when
8520         placing a function at absolute address and address is not word aligned
8521         * (_pic16_parseOptions): added 'return TRUE' statement,
8522         * (_pic16_linkEdit): if compiling a source, then add the source's
8523         file object, first in the list of objects to link,
8524
8525 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
8526
8527         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
8528         * src/pic/main.c : removed VC warning.
8529         * src/pic/gen.c : changed comment.
8530
8531 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
8532
8533         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
8534         reference to a deprecated symbol _GPTRREG was causing failure to
8535         link. Thanks G. M. Gallant for the info.
8536
8537 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
8538
8539         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
8540         comments for Bugs item #954788.
8541
8542 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
8543
8544         * src/pic16/device.c (pic16_dump_gsection,
8545         * pic16_groupRegistersInSection): handle symbols declared to be in
8546         access bank differently,
8547         * src/pic16/gen.c (struct _G): added field resDirect,
8548         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
8549         send values read from stack directly to result and don't allocate
8550         temporary values,
8551         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
8552         same registers,
8553         * (pic16_sameRegsOfs): NEW,
8554         * (freeAsmop): if _G.resDirect is set then do not mark registers as
8555         free because they were not allocated from temporary pool,
8556         * pic16_popRegFromString): workaround to fix a problem with
8557         allocating variables twice or never,
8558         * (genGenPointerGet): using PRODL instead of FSR0H,
8559         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
8560         instead of FSR0H,
8561         * (genAssign): take advantage of the _G.resDirect flag,
8562         * (genCast): around line 11844, use mov2f instead of directly
8563         MOVFF'ing between operands to account for literal values,
8564         * src/pic16/genutils.c: some new debug functions for gpsim have been
8565         added,
8566         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
8567         float with integer part only,
8568         * src/pic16/main.c (_process_pragma): handle pragma udata access to
8569         place variables in access bank
8570         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
8571         updated sources to reflect recent changes in gen.c
8572
8573 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
8574
8575         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
8576         sources that searched for headers in installation path, now the
8577         device/include/pic16 is used,
8578         * src/pic16/glue.c (pic16glue),
8579         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
8580         .line directives if not in debug mode, this suppresses assembler's
8581         warnings for ignored directives
8582
8583 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
8584
8585         * src/port.h: made reset_regparms prototype void parameter explicit.
8586         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
8587         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
8588         * doc/sdccman.lyx: documented warning disabling and how to use
8589           printf_large to make it print floats.
8590         * device/include/stdbool.h: NEW
8591         * device/lib/_atof.c,
8592         * device/lib/_divuint.c,
8593         * device/lib/_divulong.c,
8594         * device/lib/expf.c,
8595         * device/lib/printf_large.c,
8596         * device/lib/sincosf.c,
8597         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
8598         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
8599           a completely reentrant lib.
8600
8601 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
8602
8603         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
8604         * device/include/pic16/stdio.h: fixed bug with colon
8605
8606 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
8607
8608         * device/include/pic16/stdio.h,
8609         * device/include/pic16/stdlib.h,
8610         * device/include/pic16/math.h: NEW
8611         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
8612         declared as _naked to reduce overhead
8613         * device/lib/Makefile.in (target port-specific-objects-pic16):
8614         changed * to *.* so to ignore the CVS directory,
8615         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
8616         stacked variables back in stack,
8617         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
8618         corruption
8619
8620 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
8621
8622         * .version: bumped version number to 2.4.5
8623         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
8624         * support/Util/SDCCerr.c (messages structure): added entry for
8625         W_POSSBUG2
8626
8627         Large cumulative patch for pic16 port and libraries.
8628         * device/include/pic16/sdcc-lib.h,
8629         * device/include/pic16/stdarg.h,
8630         * device/include/asm/pic16/features.h,
8631         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
8632         * device/include/pic16/float.h: changes reentrant keyword with
8633         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
8634         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
8635         updated target build-libraries to include objects from gptr,
8636         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
8637         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
8638         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
8639         all function headings,
8640         * src/SDCCmain.c: added global parameter userIncDirsSet,
8641         * (parseCmdLine): when option -I is encountered add directory to
8642         userIncDirsSet too,
8643         * src/version.awk: added space between control and long,
8644         * src/pic16/NOTES: added some notes for the port,
8645         * src/pic16/gen.c: added prototype for mov2fp function,
8646         * (fReturnpic16[]): properly named return value registers,
8647         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
8648         * (aopForSym): added code to handle symbols with onStack flag set,
8649         symbols onStack are allocated PTRSIZE bytes,
8650         * (aopFreeAsmop): handles special case where asmops are stack objects,
8651         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
8652         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
8653         added argument lock to trace flaws in allocating temporary registers
8654         when developing port,
8655         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
8656         * (pic16_popRegFromString): reenabled allocating a direct register
8657         from string,
8658         * (assignResultValue): various beautifications,
8659         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
8660         referenced function argument,
8661         * (genIpush): reenabled to allow stacked arguments, handles only
8662         ic->parmPush iCodes,
8663         * (genCall, genPcall): major changes to allow for variable argument
8664         functions, fixed a bug with falsely restoring stack pointer after
8665         returning from call,
8666         * (genFunction): pending code for critical function,
8667         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
8668         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
8669         * (genNearPointerGet): fixed bug with indirect reading, was always
8670         reading from INDF0
8671         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
8672         pointers,
8673         * (genAddrOf): rewrote code to take address of a stacked function parameter
8674         * (genCast): fixed casting to generic pointer type,
8675         * src/pic16/gen.h: added AOP_STA,
8676         * (struct asmop): added field stk,
8677         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
8678         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
8679         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
8680         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
8681         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
8682         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
8683         generic pointers,
8684         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
8685         and library paths,
8686         * (pic16_port structure): generic pointer size is set to 3,
8687         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
8688         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
8689         compiler warning,
8690         * src/pic16/ralloc.c (allocReg): prevent allocating register when
8691         operand is an iTemp,
8692
8693 2004-09-24 Martin Helmling <mh AT octo-soft.de>
8694
8695         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
8696         * debugger/mcs51/simi.c: addapt new syntax of s51
8697
8698 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
8699
8700         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
8701         * src/pic16/pcode.c: commented out some calls to free() in order to
8702         fix bug #989576,
8703
8704 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8705
8706         * src/SDCCicode.h,
8707         * src/SDCCicode.c (isiCodeInFunctionCall),
8708         * src/avr/ralloc.c (selectSpil),
8709         * src/pic/ralloc.c (selectSpil),
8710         * src/pic16/ralloc.c (selectSpil),
8711         * src/ds390/ralloc.c (selectSpil),
8712         * src/hc08/ralloc.c (selectSpil),
8713         * src/xa51/ralloc.c (selectSpil),
8714         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
8715         stack in the middle of a function call sequence (fixes bug #1020268)
8716         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
8717         costs associated with the minimum switch case.
8718
8719 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8720
8721         * src/SDCC.lex: fixed bug #1030549
8722
8723 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8724
8725         * src/SDCCcse.h (struct cseDef),
8726         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
8727         over a function call if the CSE is derived from a symbol whose
8728         address has been taken (fixes bug #1029883)
8729         * support/regression/tests/bug-1029883: a new regression test for
8730         this bug
8731
8732 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8733
8734         * src/hc08/gen.c (emitinline): fixed bug #1029778
8735         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
8736         to a cast object is no longer a syntax error ("fixes" bug #1030006,
8737         and starts toward RFE #905167)
8738
8739 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
8740
8741         * src/pic16/gen.c (mov2f): New function to move an operand to
8742         another without considering if it is a literal or a register,
8743         * (pic16_sameRegs): don't check if they are both AOP_REG,
8744         * (AccRsh): removed andmask=0 lines,
8745         * (genLeftShift): duplicated to be improved in future versions,
8746         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
8747         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
8748         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
8749         * (pic16initMnemonics): added initialization for POC_INFSNZW,
8750         * (insertBankSwitch): fixed inserting banksel directives algorithm
8751         for instructions that follow a skip instruction, this fixes a report
8752         for broken subtraction code generation,
8753         * src/pic16/ralloc.c (deassignLRs): do not free register if current
8754         iCode is a left op, just in case result and right share the same
8755         registers
8756
8757 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8758
8759         * src/hc08/main.c,
8760         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
8761         preservation of HX
8762         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
8763         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
8764         on 2004-09-12; it was buggy
8765
8766 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
8767
8768         * src/SDCCsymt.h: removed RESULT_CHECK
8769         * src/SDCCast.c,
8770         * src/SDCCglue.c,
8771         * src/SDCCval.c,
8772         * src/pic/glue.c,
8773         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
8774
8775 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
8776
8777         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
8778         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
8779         configuration values no more rejected by compiler, they are assigned
8780         to configuration registers with a warning message instead,
8781         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
8782         the for-loop so last conf register is emitted too,
8783         * (_pic16_initPaths): link library libsdcc.lib by default,
8784         * (_hasNativeMulFor): modified test for multiplication according to
8785         Raphael Neider's remarks. Integer multiplication is also done with
8786         support functions,
8787         * device/include/pic16/pic18fregs.h: corrected type error in while
8788         testing and including 18f6720 header file
8789
8790 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
8791
8792         * src/pic16/device.h (pic16_options): removed field use_crt,
8793         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
8794         until an optimization to handle single bits is added,
8795         * (pic16_loadFSR0): moved before genUnpackBits,
8796         * (genAnd): some white lines removed,
8797         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
8798         leave_reset flags in pic16_options when using crt modules,
8799
8800 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
8801
8802         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
8803           for bugs 898889 & 979599. Also used some safer print instructions.
8804
8805 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
8806
8807         * src/pic16/device.h (pic16_options_t): added field use_crt,
8808         crt_name, no_crt,
8809         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
8810         catch a probable future bug,
8811         * src/pic16/gen.c: aopIdx function commented out,
8812         * (genAssign): commented out old code which used aopIdx,
8813         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
8814         code, added if conditionals to take into account the --use-crt
8815         command line options,
8816         * src/pic16/main.c (pic16_optionsTable): added new command line
8817         options, --use-crt= and --no-crt,
8818         * (_pic16_linkEdit): now the proper crt object is added in the
8819         linker command line except than when --no-crt is specified,
8820         * src/pic16/pcode.c,
8821         * src/pic16/pcode.h: added some structures and functions for a new
8822         optimization scheme to compansate for instruction overhead between
8823         same iCodes, this scheme is currently under development and is not
8824         working in any way,
8825         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
8826         to && operator,
8827         * device/lib/pic16/startup/crt0i.c,
8828         * device/lib/pic16/startup/crt0iz.c: added global char variable
8829         __uflags to force the generation of an idata section
8830
8831 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
8832
8833         * doc/Makefile,
8834         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
8835         * doc/sdccman.lyx: updated sdcc version to 2.4.4
8836
8837 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8838
8839         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
8840         Frieder) and clarified the default code optimization mode
8841
8842 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8843
8844         * src/SDCC.lex (doPragma, process_pragma),
8845         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
8846         "opt_code_size", and "opt_code_balanced"
8847         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
8848         regrouped options by category, added support for category headers
8849         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
8850         and "--opt-code-size"
8851         * doc/sdccman.lyx: documented these new options and pragmas
8852         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
8853         preference into account
8854
8855 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
8856
8857         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
8858           geniCodePreDec): Fixed bug 904237 by generating a warning
8859         * src/SDCCerr.h,
8860         * src/SDCCerr.c: added warning W_SIZEOF_VOID
8861
8862 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
8863
8864         * src/pic/device.c : When no max ram set validate full memory range.
8865         * src/pic/pcode.c,
8866         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
8867
8868 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
8869
8870         * device/lib/_gptrget.c,
8871         * device/lib/_gptrput.c: updated comment
8872         * device/lib/calloc.c,
8873         * device/lib/free.c,
8874         * device/lib/malloc.c,
8875         * device/lib/realloc.c: added LGPL, made them reentrant-safe
8876         * src/SDCCcse.c (cseBBlock),
8877         * src/SDCCicode.c (printOperand, geniCodeArray),
8878         * src/SDCCicode.h (struct operand): fixed bug 868103
8879         * support/regression/tests/bug-868103.c: added
8880         * src/SDCCast.c (searchLitOp),
8881         * src/SDCCcse.h (struct cseDef),
8882         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
8883         * src/SDCCicode.h (struct operand),
8884         * src/SDCCsymt.h (struct sym_link),
8885         * src/avr/gen.c (hasInc),
8886         * src/ds390/gen.c (hasInc),
8887         * src/hc08/gen.c (genPlusIncr, hasInc),
8888         * src/mcs51/gen.c (hasInc),
8889         * src/pic16/glue.c (pic16_printIvalChar),
8890         * src/pic16/ralloc.c (regWithIdx),
8891         * src/xa51/gen.c (hasInc) : removed warnings
8892         * src/SDCCast.c (createBlock): added comment ???
8893         * src/hc08/ralloc.c: updated comments
8894
8895 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8896
8897         * doc/sdccman.lyx: updated section on switch statements, added
8898         section about semaphore locking
8899         * doc/Makefile: added option -info for latex2html
8900         * device/lib/_gptrget.c,
8901         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
8902
8903 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
8904
8905         * src/pic/device.h,
8906         * src/pic/device.c,
8907         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
8908          maxram is less than 0x100.
8909
8910 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
8911
8912         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
8913
8914 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8915
8916         * src/port.h,
8917         * src/mcs51/main.c,
8918         * src/ds390/main.c,
8919         * src/z80/main.c,
8920         * src/hc08/main.c,
8921         * src/pic/main.c,
8922         * src/pic16/main.c,
8923         * src/avr/main.c,
8924         * src/xa51/main.c
8925         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
8926         a jump table is the best form for a switch statement, including
8927         automatic insertion of missing cases to make the case range
8928         continuous. Developed in collaboration with Frieder Ferlemann.
8929
8930 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8931
8932         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
8933         accumulator result if it needs sign extension
8934
8935 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
8936
8937         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
8938
8939 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
8940
8941         * device/lib/gbz80/printf.c,
8942         * device/lib/z80/printf.c: removed define for NULL
8943
8944 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
8945
8946         * as/xa51/xa_link.c,
8947         * device/examples/ds390/ow390/ad26.c,
8948         * device/examples/ds390/ow390/cnt1d.c,
8949         * device/examples/ds390/ow390/counter.c,
8950         * device/examples/ds390/ow390/ds2480.h,
8951         * device/examples/ds390/ow390/ds2480ut.c,
8952         * device/examples/ds390/ow390/findtype.c,
8953         * device/examples/ds390/ow390/gethumd.c,
8954         * device/examples/ds390/ow390/owllu.c,
8955         * device/examples/ds390/ow390/ownetu.c,
8956         * device/examples/ds390/ow390/swt12.c,
8957         * device/examples/ds390/ow390/swtloop.c,
8958         * device/examples/ds390/ow390/temp.c,
8959         * device/examples/ds390/ow390/temp10.c,
8960         * device/examples/ds390/ow390/thermo21.c,
8961         * device/examples/ds390/ow390/tinilnk.c,
8962         * device/examples/ds390/ow390/tstfind.c,
8963         * device/examples/serialcomm/windows/serial.cpp,
8964         * device/examples/serialcomm/windows/test_serialcomm.cpp,
8965         * device/include/reg51.h: fixed line endings for cvs
8966
8967 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8968
8969         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
8970         packRegsForAccUse, packRegisters): new accumulator register
8971         packing algorithm
8972         * support/regression/ports/hc08/support.c (_putchar): suppress
8973         warning of unused variable
8974         * src/SDCCicode.c: added SWAP entry to codeTable
8975
8976 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
8977
8978         * device/lib/sprintf.c: forgot to add this file before previous commit
8979
8980 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
8981
8982         * src/pic16/gen.c (genPackBits): added operand right in function
8983         parameters, load result directly if p_type is POINTER (that is
8984         called by genNearPointerSet)
8985         * (genUnPackBits): added operand left in function parameters,
8986         * (genNearPointerGet, genNearPointerSet): prevent the loading of
8987         FSR0 if accessing bitfields,
8988
8989 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
8990
8991         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
8992           _print_format; updated printf, sprintf, vsprintf
8993         * device/include/asm/default/features.h: corrected comment/define
8994         * device/lib/Makefile.in: added sprintf.c
8995         * device/lib/libsdcc.lib: added sprintf module
8996         * device/lib/printf_large.c,
8997         * device/lib/vprintf.c,
8998         * device/lib/sprintf.c: totally refactored printf_large and vprintf
8999           into these 3 files
9000         * support/regression/Makefile: changed ALL_PORTS into a usefull default
9001         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
9002         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
9003           hc08 test
9004         * support/regression/tests/zeropad.c: define idata as data for hc08
9005
9006 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9007
9008         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
9009         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
9010         labels are referenced at least once (even if a reference is not found)
9011         * src/hc08/gen.c (emitcode): set isComment flag for comments
9012         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
9013         loads), rules 6a..6b (optimize jumps to return)
9014
9015 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9016
9017         * device/lib/acosf.c (acosf),
9018         * device/lib/asinf.c (asinf),
9019         * device/lib/atanf.c (atanf),
9020         * device/lib/ceilf.c (ceilf),
9021         * device/lib/cosf.c (cosf),
9022         * device/lib/coshf.c (coshf),
9023         * device/lib/cotf.c (cotf),
9024         * device/lib/fabsf.c (fabsf),
9025         * device/lib/floorf.c (floorf),
9026         * device/lib/log10f.c (log10f),
9027         * device/lib/logf.c (logf),
9028         * device/lib/sinf.c (sinf),
9029         * device/lib/sinhf.c (sinhf),
9030         * device/lib/sqrtf.c (sqrtf),
9031         * device/lib/tanf.c (tanf),
9032         * device/lib/tanhf.c (tanhf),
9033         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
9034         replaced all instances of "reentrant" in the library functions
9035         defined in math.h with this macro.
9036         * support/regression/tests/float_trans.c: reenabled test for hc08
9037
9038 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
9039
9040         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
9041         erroneously deleted
9042
9043 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9044
9045         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
9046         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
9047         multi-byte volatile operands are used
9048         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
9049         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
9050         initialization to area GSINIT0 so that it would always precede
9051         any static initializers in GSINIT
9052         * support/regression/tests/zeropad.c: fixed idata define for hc08
9053         * support/regression/tests/bug-927659.c,
9054         * support/regression/tests/float_trans.c: disabled tests for hc08
9055         pending missing library routines
9056         * .version: increased version number to 2.4.4 - hc08 port now passes
9057         regression tests
9058
9059
9060 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
9061
9062         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
9063         * Makefile.common.in,
9064         * as/Makefile,
9065         * as/hc08/Makefile.in,
9066         * as/mcs51/Makefile.in,
9067         * as/z80/Makefile.in,
9068         * debugger/mcs51/Makefile.in,
9069         * device/include/Makefile.in,
9070         * device/lib/Makefile.in,
9071         * doc/Makefile,
9072         * link/Makefile,
9073         * link/z80/Makefile.in,
9074         * packihx/Makefile.in,
9075         * sim/ucsim/main_in.mk,
9076         * sim/ucsim/avr.src/Makefile.in,
9077         * sim/ucsim/doc/Makefile.in,
9078         * sim/ucsim/gui.src/serio.src/Makefile.in,
9079         * sim/ucsim/hc08.src/Makefile.in,
9080         * sim/ucsim/s51.src/Makefile.in,
9081         * sim/ucsim/xa.src/Makefile.in,
9082         * sim/ucsim/z80.src/Makefile.in,
9083         * src/Makefile.in,
9084         * support/cpp2/Makefile.in,
9085         * support/librarian/Makefile,
9086         * support/makebin/Makefile: added DESTDIR to the install path proposed
9087         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
9088         * doc/sdccman.lyx: added DESTDIR documentation
9089
9090 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
9091
9092         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
9093         instruction for interrupt handlers, use fast returns when returning
9094         from high priority interrupts
9095
9096 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9097
9098         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
9099         code generation
9100         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
9101         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
9102         bugs, ported much of Bernhard's code from mcs51
9103         * src/mcs51/gen.c (genSend),
9104         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
9105         than one when calling a reentrant function
9106         * device/lib/_mullong.c: defined an alternate struct layout for big
9107         endian ports (hc08)
9108
9109 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9110
9111         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
9112         test
9113
9114 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9115
9116         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
9117         are sane and complete before asking the port its prefered parameter
9118         passing method (fixes bug #1017633)
9119         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
9120         and _ret3
9121
9122 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9123
9124         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
9125         problem in bitfields >= 8 bits.
9126
9127 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9128
9129         * src/SDCCsymt.c: undid changes that were not meant to be committed
9130
9131 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9132
9133         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
9134
9135 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9136
9137         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
9138           copied and wrong bit got inverted
9139
9140 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9141
9142         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
9143         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
9144         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
9145         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
9146         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
9147         assignments to bitfields at known addresses
9148         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
9149         reads from bitfields at known addresses
9150         * src/hc08/ralloc.c (packRegisters),
9151         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
9152         genhc08Code): optimize pointer get values used as conditionals
9153         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
9154         and branch
9155
9156 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9157
9158         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
9159         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
9160         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
9161         as conditionals
9162
9163 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9164
9165         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
9166
9167 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9168
9169         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
9170         related problems
9171
9172 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
9173
9174         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
9175
9176 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9177
9178         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
9179         mcs51 port
9180
9181 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
9182
9183         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
9184
9185 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9186
9187         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
9188         cases use more compact code.
9189
9190 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
9191
9192         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
9193
9194 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9195
9196         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
9197
9198 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9199
9200         * src/SDCCsymt.h,
9201         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
9202         parameter of changePointer() from symbol* to sym_link*
9203         * src/SDCCast.c (decorateType): call changePointer() for CAST op
9204         * src/SDCCsymt.c (compareType): void* type is castable to other
9205         pointers, but not necesarily an exact match.
9206         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
9207         is no longer blindly treated as an exact match.
9208         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
9209
9210 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
9211
9212         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
9213
9214 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
9215
9216         * src/pic/gen.c,
9217         * src/pic/pcode.c,
9218         * src/pic/ralloc.h,
9219         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
9220
9221 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
9222
9223         * src/pic/device.c,
9224         * src/pic/device.h,
9225         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
9226
9227 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9228
9229         * src/mcs51/gen.c (emitcode): fixed bug #992819
9230
9231 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
9232
9233         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
9234           there's no need to make it worse
9235
9236 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9237
9238         * src/mcs51/ralloc.c (deassignLR),
9239         * src/ds390/ralloc.c (deassignLR),
9240         * src/hc08/ralloc.c (deassignLR),
9241         * src/z80/ralloc.c (deassignLR),
9242         * src/pic/ralloc.c (deassignLR),
9243         * src/pic16/ralloc.c (deassignLR),
9244         * src/avr/ralloc.c (deassignLR),
9245         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
9246         rlivePoint): fixed another part of bug #971834
9247
9248 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9249
9250         * src/z80/main.c: enabled "critical" keyword
9251         * src/z80/mappings.i,
9252         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
9253         functions (fixes bug #979646)
9254         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
9255
9256 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9257
9258         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
9259           such as c:\mydir.
9260
9261 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
9262
9263         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
9264           doesn't disable too much optimizations
9265
9266 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
9267
9268         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
9269
9270 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
9271
9272         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
9273
9274 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
9275
9276         * src/pic/gen.c tidied up tabs
9277         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
9278         * src/pic/main.c tidied up tabs
9279         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
9280         * src/pic/pcoderegs.c tidied up tabs
9281         * src/pic/ralloc.c tidied up tabs
9282
9283 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
9284
9285         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
9286         to S_FIXED for pic16 port and when symbol is not in level 0,
9287         allocate for S_REGISTER storage class and pic16 port, too,
9288         * src/pic16/device.h: prototype for checkSym,
9289         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
9290         * (pic16_assignConfigWordValue): test the value and the mask to
9291         validate that the value is suitable for the configuration word,
9292         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
9293         collect extern declared symbols, don't emit symbol twice, check
9294         first if symbol is in publics set first,
9295         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
9296         * added command line '--fstack' which enables an experimental
9297         feature for stack access, too buggy to be used yet...
9298         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
9299         * (pic16_allocDirReg): when register has storage class S_REGISTER
9300         allocate in pic16_dynAccessRegs,
9301         * device/include/pic16/pic18f????.h: modified configuration word
9302         naming convention, words started as CONFIG0H but should be CONFIG1H
9303
9304 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
9305
9306         * device/include/mcs51reg.h: fixed bug 970993
9307
9308 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
9309
9310         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
9311         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
9312         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
9313         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
9314         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
9315         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
9316           error/warning numbers,
9317           added function setWarningDisabled()
9318         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
9319         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
9320           _memcmp.c _memmove.c calloc.c realloc.c free.c
9321         * support/regression/tests/malloc.c: added tests for new functionality
9322         * support/regression/tests/zeropad.c: added tests for truncated initializers
9323           and initialized char arrays starting with '\x0'
9324         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
9325
9326 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
9327
9328         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
9329
9330 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9331
9332         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
9333         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
9334         peephole 177.e. Thanks to anonymous
9335
9336 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
9337
9338         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
9339         function isn't used in the source but referenced as a
9340         variable initializer then declare it as extern in .asm file
9341
9342 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
9343
9344         * .version: increased version number to 2.4.3
9345
9346         Adding version extension according to ChangeLog CVS revision
9347         * src/Makefile.in (target all): added dependency 'version.h'
9348         * (rule version.h): added rule to create version.h from ChangeLog,
9349         * (rule dep): added dependency version.h,
9350         * src/version.awk: AWK script to create version.h
9351         * src/SDCCdwarf2.c (dwWriteModule),
9352         * src/SDCCglue.c (initialComments),
9353         * src/SDCCmain.c (printVersionInfo): modified to write after
9354         version string the version extension number,
9355         * src/SDCCutil.c: included "version.h"
9356         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
9357         number,
9358         * src/SDCCutil.h: added prototype for getBuildNumber
9359
9360         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
9361         includeDirsSet, too,
9362         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
9363         const char [] is found in function prototype...
9364
9365         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
9366         moving to WREG with source is already in WREG,
9367         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
9368         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
9369         * (aopForSym): stack'ed symbols are partially supported, added
9370         if-clause to support symbols in FARSPACE,
9371         * (sameRegs): added test for AOP_ACC to see if registers are same,
9372         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
9373         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
9374         * (pic16_popRegFromString): will not allocate a new register if it
9375         doesn't find one by name, bug may have introduced...
9376         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
9377         * (genIpush): revived to use pic16 port's stack,
9378         * (genAddrOf): added incomplete case for stack'ed operand,
9379         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
9380         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
9381         can handle multibyte operands,
9382         * src/pic16/glue.c (pic16_printIval*): some debug info added,
9383         * (pic16initialComments): added message for MPLAB compatibility
9384         mode enabled,
9385         * src/pic16/main.h: prototype for pic16_mplab_comp,
9386         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
9387         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
9388         * (_pic16_linkEdit): NEW, handles link stage, transferred here
9389         because of increased complexity of procedure,
9390         * (_process_pragma): stack pragma changed to format 'stack pos len',
9391         emit symbol '_stack_end' to conform with gplink,
9392         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
9393         to search for register,
9394         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
9395         PO_GPR_REGISTER,
9396         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
9397         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
9398         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
9399         case for PO_GPR_REGISTER,
9400         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
9401         dies, the new era is ahead !...
9402         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
9403         pic16_dynInternalRegs,
9404         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
9405         * (pic16_allocDirReg): minor optimizations and bug fixes,
9406         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
9407
9408         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
9409         load stack and frame pointer with address of 'stack_end' symbol
9410
9411 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
9412
9413         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
9414         without source code but only variable initializers
9415
9416 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
9417
9418         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
9419         external are not declared as extern to reduce overhead while linking
9420
9421 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
9422
9423         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
9424
9425 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
9426
9427         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
9428           Yee Keat for the patch
9429         * src/SDCCast.c (decorateType): fixed bug #979599
9430         * src/ds390/gen.h: removed local fReturnSizeDS390
9431         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
9432         * src/ds390/gen.c (genAnd, genOr, genXor),
9433         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
9434
9435 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
9436
9437         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
9438         add relFilesSet to $3, manipulate $2 to handle linking of object
9439         files without source files in command line,
9440         * device/include/pic16 (all headers): added ID location macros,
9441         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
9442         entries for ID location bytes,
9443         * (pic16_assignIdByteValue): NEW,
9444         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
9445         added field dumpcalltree to pic16_options_t,
9446         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
9447         is used instead of pic16_Gstack_base_addr, check if (ifx) before
9448         emitting rFalseIfx label after check_carry label,
9449         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
9450         pic16_emitDIRegs), NEW
9451         * (pic16glue): dump .calltree file when option --calltree found,
9452         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
9453         * (_pic16_genAssemblerPreamble): emit ID locations after
9454         configuration registers,
9455         * (pic16_linkCmd): modifications of the link command,
9456         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
9457         * (pic16_pCodeInitRegisters): don't init stack registers,
9458         * (pic16_findPrevInstruction): fixed bug,
9459         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
9460         bug with immediate registers,
9461         * (buildCallTree): traces stack push and pop,
9462         * (pct2): dump also stack usage for each function,
9463         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
9464         * (pic16_allocDirReg): various modifications,
9465         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
9466         fixed to 1,
9467
9468 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
9469
9470         * src/pic16/pcode.c: removed buggy double colon
9471
9472 2004-07-01 Borut Razem <borut.razem AT siol.net>
9473
9474         * support/scripts/sdcc.nsi: added include/pic16 to setup
9475
9476 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
9477
9478         * device/lib/Makefile.in: fixed bug in target objects-pic16,
9479         * device/lib/pic16/Makefile: prefixed with dash (-) command under
9480         target 'clean',
9481         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
9482         specific command line arguments. Also added sample lkr script
9483         for placing a variable at a specific memory bank.
9484         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
9485         at a specific memory bank,
9486         * (pic16_dump_isection): fixed bug which caused string literals to
9487         be omitted when dumping idata section,
9488         * (pic16_groupRegistersInSection): added code to handle registers
9489         in specific memory banks,
9490         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
9491         public, all references are renamed too,
9492         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
9493         AOP_DPTR2,
9494         * (pic16_storeForReturn): added case to handle when dest is WREG,
9495         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
9496         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
9497         pic16_rel_udata, check to see if that register is marked as being
9498         a member of a specific memory bank,
9499         * (pic16_printIvalCharPtr): added code to add string literals either
9500         to code or the idata sections,
9501         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
9502         also accept the 'udata' pragma,
9503         * src/pic16/main.h: new structure types sectName and sectSym
9504         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
9505         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
9506         * (pic16_findPrevInstruction): fixed, it returned nothing,
9507         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
9508         instruction combinations,
9509         * (pic16_FixRegisterBanking): heavily reorganised,
9510         * (pic16_AnalyzeBanking): if generating banksel directives is
9511         disabled, then don't call FixRegisterBanking at all,
9512         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
9513         completely removed,
9514         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
9515
9516 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
9517
9518         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
9519         Phuah Yee Keat <yk.phuah AT nestac.com>
9520
9521 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
9522
9523         * src/pic16/glue.c (pic16createInterruptVect): function now emits
9524         correctly the IVT even if it is relocated to some other location
9525
9526 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
9527
9528         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
9529         * device/include/pic16/pic18f2220.h: NEW,
9530         * device/lib/pic16/libdev/pic18f2220.c: NEW,
9531         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
9532         * src/pic16/device.c (struct Pics16): added info for 18f2220,
9533         * src/pic16/device.h (struct pic16_options): added ivt_loc and
9534         nodefaultlibs, ivt_loc is the location of the interrupt vector
9535         table, and nodefaultlibs signs that default libraries should not be
9536         linked in link stage,
9537         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
9538         according to --ivt-loc argument,
9539         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
9540         when pragma stack is found,
9541
9542 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9543
9544         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
9545         256 (range check), 257 (do while), 258.a-f (bit banging
9546         f.e. on 3-wire SPI bus)
9547
9548 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9549
9550         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
9551         variables used exclusively within a loop
9552
9553 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
9554
9555         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
9556
9557 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9558
9559         * src/SDCClrange.c (computeClash): fixed bug #971834
9560
9561 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9562
9563         * src/mcs51/gen.c (genCmp): fixed bug #975903
9564         * src/hc08/gen.c (operandsEqu),
9565         * src/ds390/gen.c (operandsEqu),
9566         * src/z80/gen.c (operandsEqu),
9567         * src/pic/gen.c (operandsEqu),
9568         * src/pic16/gen.c (operandsEqu),
9569         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
9570         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
9571
9572 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9573
9574         * src/SDCCcse.c (cseBBlock): fixed bug #966963
9575
9576 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
9577
9578         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
9579         default case in switch statement,
9580         * glue.c (pic16_initPointer): expr is initialised via decoarteType
9581         to eliminate problem with initialisation of pointers, but problem
9582         still exists,
9583         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
9584         * (emitStaticSegment): removed various lines emitting debug info,
9585         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
9586         added processor registers for utilizing EEPROM,
9587         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
9588         configurable and set 8
9589
9590 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
9591
9592         * .version: increased version number to 2.4.2,
9593
9594         Cumulative patch for pic16 port
9595         * src/pic16/device.c: changed scheme to dump initial values for
9596         variables in idata segment, all print_idata* functions were removed,
9597         now the pic16_printIval* will be called,
9598         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
9599         * _pic16_printPointerType, pic16_printPointerType,
9600         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
9601         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
9602         NEW, similar to the respective functions in SDCCglue.c,
9603         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
9604         way, emitting hex bytes,
9605         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
9606
9607 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9608
9609         * src/avr/ralloc.c (serialRegAssign),
9610         * src/xa51/ralloc.c (serialRegAssign),
9611         * src/pic/ralloc.c (serialRegAssign),
9612         * src/pic16/ralloc.c (serialRegAssign),
9613         * src/hc08/ralloc.c (serialRegAssign),
9614         * src/z80/ralloc.c (serialRegAssign),
9615         * src/ds390/ralloc.c (serialRegAssign),
9616         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
9617
9618 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9619
9620         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
9621         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
9622
9623 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
9624
9625         Cumulative patch for pic16 port:
9626         * src/pic16/device.h (typedef PIC16_device) modified fields for
9627         defining microcontrollers,
9628         * src/pic16/device.c: added new info for all devices in Pics16 array,
9629         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
9630         to be optimised out by the pCode optimiser,
9631         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
9632         specially, bug reported by G.M. Gallant,
9633         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
9634         as force'd so that cannot be optimised out by pCode optimiser,
9635         * src/pic16/pcode.c,
9636         * src/pic16/pcodepeeph.c,
9637         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
9638         they are disabled by default, but can be enabled explicit with
9639         command argument --denable-peeps, for testing,
9640         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
9641         --pomit-ivt in COMPILE_FLAGS
9642
9643 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
9644
9645         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
9646           compilation on MSVC
9647
9648 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
9649
9650         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
9651
9652 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9653
9654         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
9655         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
9656
9657 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
9658
9659         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
9660         would only assign 0x300001 register.
9661
9662 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
9663
9664         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
9665         in COMPILE_FLAGS. Thanks to G. Gallant for report.
9666
9667 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9668
9669         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
9670         for ds80c400
9671         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
9672         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
9673         added peephole 254 (left shift), 255 (jump table)
9674
9675 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
9676
9677         * device/lib/Makefile.in: removed comment line with model-pic16,
9678         * (target port-specific-objects-pic16): the libraries and objects
9679         are copied to the build directory form the device/lib/pic16/bin
9680         directory
9681
9682         Cumulative patch concerning pic16 port:
9683         * library directory has been re-organized,
9684         * added support for PIC18F1220,
9685         * added headers and library sources for chips 18f1220,18f6520,
9686         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
9687
9688         * configuration registers setting has changed, now each supported
9689         device has a complete description of the registers it uses,
9690         * all initialisations are moved to idata sections, these section
9691         can be absolute or relocatable,
9692         * fixed initialisation of codespace variables,
9693         * fixed warning about PCLATU and gpsim,
9694         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
9695         * (genAssign): use table reads when assigning from variables in codespace,
9696         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
9697         char/int variables placed in codespace,
9698         * (pic16_emitConfigRegs): NEW, emits a list with configuration
9699         registers set in .asm file, no need for --pomit-config-words anymore,
9700         * (pic16glue): some 8051 legacy segments are commented out
9701         (to be removed completely),
9702         * added support for alternative assembler and linker with --asm=
9703         and --link= command line arguments,
9704         * peepholes are disabled automatically in the port, no need to
9705         specify on command line,
9706         * port supports natively char/int/long multiplication, but converts
9707         all divisions to support functions,
9708         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
9709         to the file set in variable $2,
9710         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
9711         strings in ASCII format and not in hex,
9712         * ralloc.c (serialRegAssign): added a triplet of conditional calls
9713         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
9714         allocate proper register if iCodes aren't temporary,
9715
9716 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
9717
9718         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
9719
9720 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
9721
9722         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
9723         is commented out
9724
9725 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9726
9727         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
9728         computed address is reused
9729         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
9730         multi-byte bitfields
9731
9732 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
9733
9734         * src/z80/gen.c: (genArrayInit): must check for pointers too
9735
9736 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
9737
9738         * support/regression/tests/zeropad.c: never meant to commit the
9739           nestedstruct test: removed, added check for GCC version
9740
9741 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
9742
9743         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
9744         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
9745         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
9746           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
9747           bugs 928906 and 954082 half-empty initializers
9748         * src/SDCCsymt.h,
9749         * src/SDCCsymt.c (getAllocSize): added for above fix
9750         * src/z80/gen.c (genArrayInit): fixed bug 741044
9751         * support/regression/tests/zeropad.c: added tests
9752
9753 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
9754
9755         * src/pic16/device.c (pic16_dump_section): corrected bug which
9756         caused some symbols of the libraries to be misplaced
9757
9758 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
9759
9760         * src/pic16/glue.c,
9761         * src/pic16/ralloc.h,
9762         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
9763         to fix conflict with pic port
9764
9765 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
9766
9767         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
9768         externs configuration variables,
9769         * src/pic16/ralloc.h,
9770         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
9771         prototype in header, commented out some debug messages
9772
9773 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
9774
9775         * src/pic16/glue.c,
9776         * src/pic16/main.c,
9777         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
9778         for gpasm COFF object generation. Thanks to D. Hawkins for
9779         his patch info
9780
9781 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9782
9783         * src/ds390/main.c,
9784         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
9785         Brock for spotting this)
9786         * src/ds390/gen.c (genEndFunction),
9787         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
9788         interrupt handler and critical. Disable push/pop optimizations when
9789         peephole optimizations disabled.
9790
9791 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
9792
9793         Updated pic16 library sources and headers.
9794         * device/lib/pic16/pic18f*/ ,
9795         * device/include/pic16/*.h: modified to handle structured SFR
9796         definitions
9797
9798 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
9799
9800         * src/port.h (PORT structure): added hook initPaths, now each
9801         port can declare its own default search paths,
9802         which can been seen with the --print-search-dirs option,
9803         see pic16 port for example,
9804         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
9805         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
9806         * (doPrintSearchDirs): NEW, replaces in a central manner the
9807         printing of search dirs which was split in set*Paths functions,
9808         * (main): added call to port->initPaths and doPrintSearchDirs,
9809         * src/avr/main.c,
9810         * src/ds390/main.c,
9811         * src/hc08/main.c,
9812         * src/izt/i186.c,
9813         * src/izt/tlcs900h.c,
9814         * src/mcs51/main.c,
9815         * src/pic/main.c,
9816         * src/pic16/main.c: modified port structures to reflect addition of
9817         initPaths hook,
9818
9819         * src/pic16/device.c (regCompare): registers are finally sorted by name,
9820         * (pic16_dump_section): for registers in same address reserve memory once,
9821         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
9822         to no_banksel,
9823         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
9824         result is greater in size than right or left,
9825         * (pic16_genUMult8X8_8): there are some cases where the result can
9826         be 16 bits size, so handle these,
9827         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
9828         * (pic16_outBitC): modified to emit pcodes,
9829         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
9830         or not,
9831         * (genDivOneByte): implemented algorithm to divide 8-bits,
9832         * (genCmp): uncommented goto, but issues still exist,
9833         * (genAnd): fixed a bug with variables >8bits,
9834         * (genPackBits): optimization added that uses BCF/BSF to change a
9835         single bit,
9836         * (genAssign): fixed bug when assigning floating point literals,
9837         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
9838         __sdcc_gsinit_startup label,
9839         * src/pic16/main.c (_pic16_init): removed search directory
9840         initialisations,
9841         * (_pic16_initPaths): NEW, used to initialise search directories,
9842         * (_hasNativeMulFor): support functions for all except char/int
9843         multiplication, and char division,
9844         * (PIC16_port struct): modified entry for native mul support,
9845         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
9846         no_banksel option,
9847         * (buildCallTree): call to register_usage is ifdef'ed out,
9848
9849 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9850
9851         * device/include/string.h: applied Stas Sergeev's patch to make this
9852         header file compatible with the preprocessor -Wundef option
9853         * src/SDCCmain.c (main): abort compilation if preprocessor reports
9854         failure (fixes bug #941458)
9855
9856 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9857
9858         * src/SDCCopt.c (killDeadCode): fixed bug #907733
9859         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
9860         that the variable, not the function, should be static
9861         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
9862         to be consistent with non-literal case
9863
9864 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9865
9866         * src/SDCCast.c (isConformingBody): fixed bug #949967
9867         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
9868         convilong): fixed bug #952086
9869
9870 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9871
9872         * src/SDCCmem.c (allocVariables): fixed bug #955321
9873
9874 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9875
9876         * src/hc08/main.c (_hc08_genAssemblerEnd),
9877         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
9878         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
9879         completely eliminated the use of a temporary file
9880         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
9881         when more than one file linked
9882         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
9883
9884 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9885
9886         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
9887         which fixes bug #543481
9888         * support/regression/tests/bug-751703.c: fixed comments left from a
9889         cut and paste error
9890         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
9891         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
9892         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
9893         scopes
9894         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
9895         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
9896         are now changed to underscores in moduleName
9897
9898 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9899
9900         * as/mcs51/lkmem.c: better fix for bug #954173
9901
9902 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
9903         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9904
9905         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
9906         * device/include/c8051f000.h,
9907         * device/include/c8051f120.h,
9908         * device/include/c8051f300.h,
9909         * device/include/c8051f310.h,
9910         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
9911         PWM16) and detab'ed
9912
9913 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9914
9915         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
9916         and mailing lists, doc'ed --no-peep-comments, removed reference
9917         to knoppix (newest version has no LyX/LaTeX), other minor changes
9918         * src/SDCCglue.c (glue): save 2 bytes stack space with
9919         option --main-return. The ljmp could probably be avoided too
9920
9921 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9922
9923         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
9924
9925 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9926
9927         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
9928         * src/SDCCopt.c (isLocalWithoutDef),
9929         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
9930         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
9931         (credit to Maarten Brock for patch #949363, on which this is based)
9932         * support/regression/tests/bug-751703.c: some test cases of extern used
9933         within inner scopes.
9934
9935 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9936
9937         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
9938         SPEC_STRUCT
9939         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
9940         struct definitions
9941         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
9942         dwWriteLabel): fix to create valid debugger symbols even when
9943         the module name has non-alphanumeric symbols in it
9944         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
9945         when a variable's allocation has been optimized away
9946
9947
9948 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9949
9950         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
9951         * src/hc08/main.c,
9952         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
9953         * src/mcs51/main.c,
9954         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
9955         * src/ds390/main.c,
9956         * src/z80/gen.c (z80_emitDebuggerSymbol),
9957         * src/z80/main.c,
9958         * src/pic/gen.c (pic14_emitDebuggerSymbol),
9959         * src/pic/main.c,
9960         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
9961         * src/pic16/main.c,
9962         * src/avr/gen.c (avr_emitDebuggerSymbol),
9963         * src/avr/main.c,
9964         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
9965         * src/xa51/main.c,
9966         * src/SDCCdebug.c (emitDebuggerSymbol),
9967         * src/SDCCdebug.h,
9968         * src/port.h: added a debugger struct to the port struct. Added a
9969         callback for defining debugger symbols
9970
9971         * src/SDCCast.c (createLabel),
9972         * src/SDCC.y (labeled_statement): mark all compiler generated labels
9973         with isitmp = 1
9974         * src/SDCCicode.h,
9975         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
9976         iCode back to the ast for the function
9977
9978         * src/hc08/ralloc.c (hc08_assignRegisters),
9979         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
9980         unneeded fields from the regs struct.
9981         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
9982         pushReg() & pullReg() functions instead of emitcode()
9983
9984         * src/hc08/gen.c (genLabel, genhc08Code),
9985         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
9986
9987         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
9988         debugger hooks
9989
9990         * src/hc08/gen.c (genEndFunction, genhc08Code),
9991         * src/hc08/gen.h,
9992         * src/mcs51/gen.c (genEndFunction, gen51Code),
9993         * src/mcs51/gen.h,
9994         * src/ds390/gen.c (genEndFunction, gen390Code),
9995         * src/ds390/gen.h,
9996         * src/z80/gen.c (genEndFunction, genZ80Code),
9997         * src/z80/gen.h,
9998         * src/z80/z80.h,
9999         * src/pic/gen.c (genEndFunction, genpic14Code),
10000         * src/pic/gen.h,
10001         * src/pic16/gen.c (genEndFunction, genpic16Code),
10002         * src/pic16/gen.h,
10003         * src/avr/gen.c (genEndFunction, genAVRCode),
10004         * src/avr/gen.h,
10005         * src/xa51/gen.c (genEndFunction, genXA51Code),
10006         * src/xa51/gen.h,
10007         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
10008         specific code to cdbFile.c and out of the backend code generators
10009
10010         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
10011         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
10012         starting address is now 0
10013
10014         * as/hc08/asm.h,
10015         * as/hc08/m08pst.c,
10016         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
10017         assembler directive for DWARF support
10018         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
10019
10020         * src/src.dsp,
10021         * src/Makefile.in,
10022         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
10023
10024 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10025
10026         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
10027         and inappropriate peephole optimization in jump tables
10028
10029 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10030
10031         * as/hc08/m08pst.c,
10032         * src/SDCCglue.c: sdccopt works for the hc08 port now
10033
10034 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
10035
10036         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
10037
10038 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10039
10040         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
10041
10042 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10043
10044         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
10045         rules
10046         * src/SDCCmain.c,
10047         * src/SDCCglobl.h,
10048         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
10049         comments from the peephole optimizer replacement rules
10050         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
10051         symbols
10052         * src/SDCCcse.c (updateSpillLocation),
10053         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
10054         equivalents
10055         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
10056         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
10057         objects far pointers
10058
10059 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10060
10061         * src/SDCCsymt.h: a missing part of my last change
10062         * src/pic/ralloc.c (regTypeNum),
10063         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
10064
10065 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10066
10067         * src/SDCCicode.h,
10068         * src/SDCCicode.c (aggrToPtrDclType),
10069         * src/SDCCptropt.h,
10070         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
10071         ptrPseudoSymConvert),
10072         * src/pic/ralloc.c (regTypeNum),
10073         * src/pic16/ralloc.c (regTypeNum),
10074         * src/hc08/ralloc.c (regTypeNum),
10075         * src/ds390/ralloc.c (regTypeNum),
10076         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
10077         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
10078
10079 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10080
10081         * link/z80/lkmain.c (afile),
10082         * as/hc08/lkmain.c (afile),
10083         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
10084         prevent a pointer problem when a filename has no directory and
10085         no extension specified.
10086
10087 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10088
10089         * link/z80/lkmain.c (afile): allow periods in directory names
10090         * link/z80/lkmain.c (afile),
10091         * as/mcs51/lkmain.c (afile),
10092         * as/hc08/lkmain.c (afile): allow linker script file to have an
10093         extension other than ".lnk"
10094         * link/z80/lklex.c (getfid),
10095         * link/z80/lkmain.c (parse),
10096         * as/mcs51/lklex.c (getfid),
10097         * as/mcs51/lkmain.c (parse),
10098         * as/hc08/lklex.c (getfid),
10099         * as/hc08/lkmain.c (parse): Support comments in the linker script
10100         file on lines by themselves and after filenames
10101
10102 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10103
10104         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
10105
10106 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10107
10108         * src/z80/peeph-z80.def: removed some peephole rules that don't
10109         work with multibyte arithmetic (fixed bug #937126)
10110         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
10111         to registers and not global variables
10112         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
10113         geniCodePreInc, geniCodePostDec, geniCodePreDec,
10114         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
10115         checking for assignments not internally generated (fixed bug #931895)
10116         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
10117         structure member (fixed bug #930072)
10118
10119 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10120
10121         * src/SDCCmain.c (linkEdit),
10122         * src/hc08/main.c (_hc08_parseOptions),
10123         * as/hc08/Makefile.in,
10124         * as/hc08/aslink.h,
10125         * as/hc08/asm.h,
10126         * as/hc08/m08pst.c,
10127         * as/hc08/lkrloc.c (relr, rele),
10128         * as/hc08/lkarea.c (lnkarea)
10129         * as/hc08/lkmain.c (afile, parse),
10130         * as/hc08/lkelf.c: support for ELF output
10131         * as/hc08/lks19.c (s19),
10132         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
10133
10134 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10135
10136         * as/mcs51/lkihx.c: Fixed bug #899105.
10137
10138 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10139
10140         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
10141         .dsp files from Unix to DOS.
10142
10143 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10144
10145         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
10146         function pointers; we have been compliant for several months now.
10147         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
10148         change that was accidently commented out
10149         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
10150         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
10151         bug #922319
10152
10153 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10154
10155         * src/hc08/gen.c: output of all of the internal debugging information
10156         is now controlled by the D() macro; it is disabled by default
10157
10158 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10159
10160         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
10161         harder to keep the same registers during a CAST iCode
10162         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
10163         long via int can be done in a single cast, if the signedness is
10164         correct.
10165         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
10166         putchar() in tinibios.c in ds390's library
10167
10168 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
10169
10170         * src/SDCCast.c (decorateType): fixed bug #898889,
10171         cast result of a literal complement too
10172         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
10173         fixed check for bitfields
10174
10175 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
10176
10177         * src/SDCCicode.c (geniCodeLogic): made it static,
10178         (geniCodeLogicAndOr): added in order to fix bug #905492,
10179         (ast2iCode): fixed bug #905492
10180         * support/regression/tests/bug-905492.c: added
10181         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
10182         (processParms): fixed bug #927659: don't copy parms, this will clear
10183         decorated flag
10184         * support/regression/tests/bug-927659.c: added
10185
10186 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
10187
10188         * src/SDCCast.c (addCast): don't cast float to char
10189         * device/lib/libsdcc.lib: added _memmove
10190
10191 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
10192
10193         * device/lib/large/Makefile: fixed parallel execution by
10194         replacing `make` by `$(MAKE)`
10195
10196 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10197
10198         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
10199         offsets (fixes bug #923936)
10200
10201 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
10202
10203         * device/lib/small/Makefile: fixed parallel execution by
10204         replacing `make` by `$(MAKE)`
10205
10206 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
10207
10208         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
10209
10210 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
10211
10212         * src/pic/gen.c (genCpl): multi-byte complements were not working.
10213         * src/regression/Makefile: Regression test was not running.
10214
10215 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
10216
10217         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
10218         complement if possible
10219         * src/SDCCval.c (valComplement),
10220         * src/SDCCicode.c (operandOperation): fixed complement of literal
10221         * support/regression/tests/onebyte.c (testComplement): added
10222
10223 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
10224
10225         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
10226         return an optimized tree; actually replace actParm with the new tree
10227         * src/SDCCast.h: added some parantheses to remove side effects
10228         * support/regression/tests/bug-920866.c
10229
10230 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
10231         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
10232         Bit operands were not being handled properly in the pic14 port.
10233         (now src/regression/add.c passes again).
10234
10235 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10236
10237         * src/SDCC.y (labeled_statement): case and default no longer require
10238         a following statement (RFE #893037)
10239
10240 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10241
10242         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
10243         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
10244         disabled (fixes bug #916294)
10245         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
10246         "mov a,acc"; patch provided by Lenny Story
10247         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
10248
10249 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10250
10251         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
10252         functions
10253         * src/ds390/gen.c (genFunction, genEndFunction),
10254         * src/ds390/ralloc.c (ds390_assignRegisters),
10255         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
10256         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
10257         pushed if there are parameters passed on the stack. Also, a cleaner
10258         way to decide if r0/r1 should be pushed/popped. (Together they fix
10259         bug #918693)
10260
10261 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10262
10263         * doc/sdccman.lyx,
10264         * device/lib/mcs51/crtpagesfr.asm,
10265         * device/lib/mcs51/crtxinit.asm,
10266         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
10267         to avoid confusion with Si Lab's SFRPAGE register.
10268
10269 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10270
10271         * src/SDCCglue.c (emitMaps): allow public sfr variables
10272         * src/SDCCglue.c (initialComments): include compiler build date
10273         with compiler version and put the timestamp of the generated
10274         assembly file on a serperate line to be less confusing.
10275         * src/port.h: added genInitStartup hook
10276         * src/avr/main.c,
10277         * src/ds390/main.c,
10278         * src/hc08/main.c,
10279         * src/pic/main.c,
10280         * src/pic16/main.c,
10281         * src/xa51/main.c,
10282         * src/z80/main.c: genInitStartup initialize as NULL (default to
10283         historical behaviour)
10284         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
10285         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
10286         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
10287         library instead of hard coding it into the compiler.
10288         * support/regression/ports/mcs51-stack-auto/spec.mk,
10289         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
10290         * device/lib/mcs51/Makefile,
10291         * device/lib/small/Makefile,
10292         * device/lib/large/Makefile,
10293         * device/lib/mcs51/crtpagesfr.asm,
10294         * device/lib/mcs51/crtstart.asm,
10295         * device/lib/mcs51/crtxclear.asm,
10296         * device/lib/mcs51/crtxinit.asm,
10297         * device/lib/mcs51/crtclear.asm,
10298         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
10299         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
10300         and into user configurable files.
10301         * device/lib/clean.mk: clean mcs51 directory too
10302         * support/regression/tests/longlit.c: added static to T1 declaration
10303         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
10304         accesses in the initialization code
10305
10306 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10307
10308         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
10309         OSCTRIMVAL as noted in bug #916008
10310
10311 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10312
10313         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
10314         in loops with multiple exits (reported as incorrect registers
10315         used by Martin Helmling in Sdcc-user list)
10316
10317 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10318
10319         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
10320         made ds390 register extensions look less like error messages
10321
10322 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10323
10324         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
10325         reported by Adam Wozniak in Sdcc-user list
10326
10327 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
10328
10329         * src/SDCCast.c (decorateType): fixed with bug and promotion in
10330         arithmetic optimizations, added debug output
10331
10332 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
10333
10334         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
10335         * sdcc.spec: updated and split sdcc into 3 rpms
10336         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
10337         needed for literals of LEFT_OP and '+'
10338         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
10339         introduced RESULT_TYPE_NOPROM
10340         (geniCodeMultiply): fixed logic for decision if mul is optimized to
10341         left shift
10342         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
10343         limited promotion to int only for '*'
10344         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
10345
10346 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
10347
10348         * src/pic16/gen.c (genSkip),
10349         (genc16bit2lit), (gencjneshort): commented out
10350         (is_LitOp): new helper function, checks operand type
10351         (genCmpEq): rewritten
10352
10353 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
10354
10355         * support/regression/tests/bug-908454.c: added
10356
10357 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
10358
10359         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
10360         * src/SDCCicode.c (usualBinaryConversions): op needs int type
10361         (geniCodeCast): cosmetic, don't preserve bit storage class
10362         (geniCodeLeftShift): added promotion
10363         (geniCodeLogic): fixed regression
10364         * src/SDCCsymt.c (computeTypeOr): accept bits too
10365         (compareType): 2nd part of fix for bug #908454, needed for bitfields
10366
10367 2004-03-07  Borut Razem <borut.razem AT siol.net>
10368
10369         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
10370
10371 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
10372
10373         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
10374         version of pic16_genPackRegisters which does not check if ic is a
10375         CAST operator,
10376         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
10377         function cause string1.c regression test fails
10378
10379 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
10380
10381         * sim/ucsim/configure.in,
10382         * sim/ucsim/configure,
10383         * sim/ucsim/doc/Makefile.in: use docdir
10384         * src/SDCC.y: fixed sbit atrributes
10385         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
10386         * src/SDCCast.c (decorateType): |^& need special promotion handling
10387         * src/SDCCast.h,
10388         * src/SDCCsymt.h: moved definition of RESULT_TYPE
10389         * src/SDCCsymt.h (computeType),
10390         * src/SDCCicode.c: computeType() needs op
10391         * src/SDCCsymt.c (checkTypeSanity),
10392         * doc/sddman.lyx: "plain" bitfields are unsigned
10393         * src/SDCCsymt.c (computeTypeOr): added
10394         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
10395         |^& ops
10396         * src/SDCCval.c (val*): computeType() needs op
10397         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
10398         * support/regression/tests/onebyte.c: added tests for |^&
10399
10400 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
10401
10402         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
10403         for writing icode into asm output.
10404
10405 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
10406
10407         * src/pic16/device.c: added some debug lines enabled
10408         with macro DEBUG_CHECK,
10409         * src/pic16/genarith.c: more debug in genPlus,
10410         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
10411         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
10412         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
10413         * (aopForSym): onStack symbols are re-placed in data memspace,
10414         and onStack flag is cleared,
10415         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
10416         copy temporary pcodeop,
10417         * (genPcall): added warning for not updating PCLATU,
10418         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
10419         always true for pic16 port,
10420         * (genMultOneWord): NEW, supports integer multiplication,
10421         * (genMult): modified to call genMultOneWord,
10422         * (ifxForOp): added warning when return NULL,
10423         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
10424         flag is set before call to operandFromSymbol for implicit
10425         added structures,
10426         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
10427         options.intlong_rent are set by default,
10428         * (_hasNativeMulFor): modified to allow port generation of integer
10429         multiplication,
10430         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
10431         set regtype to REG_SFR for all registers, restricting seting the
10432         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
10433
10434 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10435
10436         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
10437         more than 500 times in the regression tests
10438
10439 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10440
10441         * support/Util/SDCCerr.h,
10442         * support/Util/SDCCerr.c,
10443         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
10444         enumerator_list),
10445         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
10446         for symbol conflicts.
10447         * support/valdiags/tests/enum.c,
10448         * support/valdiags/tests/tentdecl.c,
10449         * support/valdiags/tests/struct.c: expect possible error messages
10450         referring to original symbol definitions.
10451         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
10452         * src/SDCCsymt.h,
10453         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
10454
10455 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
10456
10457         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
10458
10459 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
10460
10461         * src/pic16/ralloc.c (newReg): fixed bug #908929
10462
10463 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10464
10465         * src/ds390/gen.c: added missing #include "main.h"
10466
10467 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
10468
10469         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
10470         checking if symbol is already in set,
10471         * src/pic16/device.h: prototype for checkAddSym,
10472         * src/pic16/gen.c: (_G): added entry interruptvector,
10473         * (assignResultValue): removed some commented out lines,
10474         * (genFunction): check for ISR via sym->type, absolute section for
10475         interrupt code is created via a new pBlock, the goto instruction is
10476         placed now correctly at the interrupt vector position, changed all
10477         references from ivec to _G.interruptvector,
10478         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
10479         is the interrupt is a high priority one, same for return from ISR,
10480         * src/pic16/glue.c: changed all calls of addSetHead for publics and
10481         externs to calls of checkAddSym,
10482         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
10483         pic16_pcode_verbose flag is set,
10484         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
10485         * src/pic16/pcoderegs.c: message about how many registers are saved
10486         will only be emitted if pic16_pcode_verbose flag is set,
10487
10488 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10489
10490         * src/ds390/ralloc.h,
10491         * src/ds390/ralloc.c (ds390_regWithIdx),
10492         * src/ds390/gen.c (emitcode),
10493         * src/ds390/main.h,
10494         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
10495         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
10496         ds390operandCompare, getRegsRead, getRegsWritten,
10497         initializeAsmLineNode): customized instruction size calculation for
10498         ds390, started basis for some register optimizations
10499         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
10500         corresponding assembly output
10501         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
10502         missing push/pop of r0/r1. Optimized push/pops
10503
10504 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10505
10506         * src/mcs51/main.c (instructionSize): fixed ACALL size
10507         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
10508
10509 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
10510
10511         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
10512         the sorting of rlist with NULL elements
10513         * (print_idataType, print_idata): NEW to create idata sections
10514         * src/pic16/device.h: idataSymSet new variable
10515         * src/pic16/gen.c (genFunction): fixed some bugs in string
10516         comparing, improved the absolute section creation for ISRs,
10517         added FSR0L/FSR0H in registers that are saved in an ISR,
10518         * (genInline): fixed the processing of inline snippets,
10519         now they undergo no process by the peephole optimizer
10520         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
10521         are placed in idataSymSet,
10522         * (pic16emitStaticSeg): extern symbols are added in externs,
10523         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
10524         switching when aboslute variables are placed in access bank memory
10525         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
10526         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
10527         commented out with #if,
10528         * (pic16_packRegisters): reintroduce the check for CAST because some
10529         symbols are not correctly handled,
10530         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
10531         pCodeInstruction instead of pCode,
10532         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
10533         pCodeAsmDir definition,
10534         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
10535         directive, then the argument directive is emitted without the leading
10536         tab, hack for inline labels which must be in the first column,
10537         * (compareLabel,pic16_findNextInstruction),
10538         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
10539         * (insertBankSwitch): modified for the new pCodeAsmDir,
10540
10541 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
10542         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
10543
10544         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
10545         instance,
10546         * (pushSide): commented out with #if,
10547         * (assignResultValue): fixed some typos in saving
10548         registers,
10549         * (genPcall): FIXED and sync'ed with genCall,
10550         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
10551         * (genNearPointerGet): fixed to handle some more cases,
10552         implementation scheme via table reads,
10553         * (genConstPointerGet): modified to access code memory correct,
10554         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
10555         and improved to handle some cases
10556         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
10557         instead of "RETLW" for init data
10558         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
10559         not IN_DIRSPACE, work around to reduce bank switching when aboslute
10560         variables are placed in access bank memory (<0x80 and >=0xf80),
10561         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
10562         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
10563         TBLWT_POSTDEC,TBLWT_PREINC
10564         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
10565         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
10566         directives
10567         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
10568         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
10569         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
10570         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
10571
10572 2004-02-29  Borut Razem <borut.razem AT siol.net>
10573
10574         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
10575         support/Util/findme.h, support/Util/system.h: enhance binary relative
10576         search for lib and include by using findProgramPath()
10577
10578 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10579
10580         * src/SDCCpeeph.h,
10581         * src/SDCCpeeph.c (pcDistance),
10582         * src/port.h,
10583         * src/mcs51/ralloc.h,
10584         * src/mcs51/ralloc.c (mcs51_regWithIdx),
10585         * src/mcs51/main.h,
10586         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
10587         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
10588         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
10589         size calculation port specific, started basis for some register
10590         optimizations
10591         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
10592         missing push/pop of r0/r1. Optimized push/pops
10593         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
10594         * device/lib/_modsint.c (_modsint),
10595         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
10596         and stack version so regression tests pass
10597
10598 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
10599
10600         * src/Makefile.in (dep): include SLIBOBJS in dependency check
10601         * src/SDCCast.c (decorateType): catch another small optimization
10602         with '?' operator
10603         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
10604         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
10605         modified to finally use computeType() all over SDCC,
10606         see Feature Request #877103
10607         * src/SDCCval.h: cosmetic
10608         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
10609         valCompare(); regression tested in muldiv.c
10610         * support/regression/tests/muldiv.c (testMod): mod sign follows
10611         dividend only
10612
10613 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
10614
10615         * src/SDCCast.c (decorateType): fixed bug #902362
10616         * doc/INSTALL.txt: fixed install instructions for win32
10617
10618 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
10619
10620         * device/include/Makefile.in (install): fixed by replacing spaces
10621         by tabs
10622         * doc/README.txt,
10623         * doc/INSTALL.txt: updated for release
10624         * doc/sdccman.lyx: added warning for --xstack being buggy
10625
10626 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
10627
10628         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
10629         to eliminate build warnings.
10630         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
10631
10632 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
10633            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
10634
10635         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
10636         removed -penable-stack, added comment for stack pragma, added
10637         warning for not initializing the stack/frame registers, removed
10638         comment at interrupts section
10639
10640         Stack is made permanent, there is no ability to disable stack usage.
10641         * src/pic16/device.h,
10642         * src/pic16/device.c: removed all references to USE_STACK macro,
10643         * src/pic16/device.c (pic16_dump_section): when no elements in
10644         rlist, free rlist before return,
10645         * (pic16_dump_int_registers): NEW, internal registers are a new set
10646         of general purpose registers reused by each function,
10647         * (checkAddReg): returns 1 if registers is added to set,
10648         * (pic16_groupRegistersInSection): when a registers is of type
10649         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
10650         * src/pic16/device.h: memRange and Assigned Memory are deleted,
10651         SRCASECMP macro is moved here from device.c
10652         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
10653         PO_PCLATU, PO_PRODL, PO_PRODH,
10654         * (pic16_pCodeOpType, genMinus,
10655         changed compares to "a" register, with AOP_ACC,
10656         * (pic16_genPlus): fixed some bugs and indented properly,
10657         * (pic16_addSign): changed size to size+offset in the MOVWF
10658         instruction,
10659         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
10660         multiply 8-bit operand by literal, result is 8-bit,
10661         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
10662         multiply 2 8-bit operand, result is 8-bit,
10663         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
10664         genUMult8X*_16,
10665         * src/pic16/gen.c: changed accUse to contain WREG only,
10666         * (pic16_emitcomment): renamed to pic16_emitpcomment,
10667         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
10668         true, do not use immediate addressing any more unless sym is a
10669         pointer in codespace,
10670         * (aopForRemat): do not use immediate addressing when symbol not in
10671         codespace and when symbol's address is requested,
10672         * (aopOp): for-loop in if(sym->accUse) is modified for the new
10673         accUse size (= 1),
10674         * (aopGet): added case for AOP_ACC and don't return "accumulator
10675         bug" but WREG instead,
10676         * (popGetTempReg): pushes contents of temporary register in stack,
10677         * (popReleaseTempReg): pops contents of temporary register from
10678         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
10679         * (pic16_popGet): separated case AOP_ACC to return register WREG
10680         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
10681         or PO_IMMEDIATE and initializes their instance/offset appropriately,
10682         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
10683         the use of immediate pointers to certain cases only.
10684
10685         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
10686         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
10687         * (assignResultValue, genCall, genRet): modified to use the new
10688         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
10689         genPcall is still broken,
10690         * (genFunction): added code to create 'A' type pBlocks when
10691         interrupt functions are generated, code not extensively tested yet,
10692         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
10693         * (genEndFunction): modified so ISRs pop stored registers from stack,
10694         * (genMultOneByte): cleanup,
10695         * (AccRsh): added flag andmask, to and result with appropriate mask,
10696         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
10697         * (genDataPointerGet): fixed and reenabled its use,
10698         * (genNearDataPointerGet): bugs fixed,
10699         * (genDataPointerSet): bugs fixed,
10700         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
10701         pic16_DumpSymbol, pic16_DumpOp,
10702         * src/pic16/genutils.h: function prototypes for the above functions,
10703         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
10704         pointers,
10705         * (pic16emitRegularMap): many many many improvements, but needs a
10706         major cleanup,
10707         * src/pic16/main.c: enable_stack in pic16_options is removed,
10708         * (_pic16_parseOptions): removed command line options -penable-stack,
10709         * (_process_pragma): emit stack symbol only when stack pragma is
10710         processed,
10711         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
10712         redirected to FSR0L/FSR0H pair,
10713         * (pic16_get_op, pic16_get_op2): modifications and improvements,
10714         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
10715         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
10716         for immediates,
10717         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
10718         * (dumpPicOptype): NEW,
10719         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
10720         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
10721         with movff instruction,
10722         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
10723         added pic16_int_regs, some packRegsFor* functions are commented out,
10724         because produce errors,
10725         * src/pic16/NOTES: minor modifications
10726
10727 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10728
10729         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
10730         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
10731         --pack-iram.
10732         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
10733         * as/mcs51/lkaomf51.c: fixed bug #895763
10734
10735 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
10736
10737         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
10738
10739 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10740
10741         * doc/sdccman.lyx: added details about the HC08 storage classes and
10742         interrupts, fixed the register usage info for z80 & gbz80
10743
10744 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
10745
10746         * doc/sdccman.lyx: added more pic16 port documentation
10747         * device/include/pic16/: added header pic18fregs.h
10748
10749 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
10750
10751         * doc/sdccman.lyx: added Vangelis' contribution
10752
10753 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10754
10755         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
10756         extend to the next CALL or PCALL, not just to the next CALL.
10757
10758 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
10759
10760         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
10761
10762 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10763
10764         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
10765         bug #895752 and a better fix for bug #716790
10766
10767 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10768
10769         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
10770
10771 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10772
10773         * doc/sdccman.lyx: minor changes, minor changed
10774
10775 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
10776
10777         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
10778         which can't handle SDCC_NEWONEBYTEOPS,
10779         (geniCodeMultiply): removed conversion from mult to shift for pic14
10780         and pic16
10781
10782 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10783
10784         * src/hc08/gen.h,
10785         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
10786         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
10787         thus fixing bug #895406
10788
10789 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
10790
10791         * device/lib/_modsint.c,
10792         * device/lib/_modslong.c: sign follows divisor only
10793         * src/hc08/gen.c (genMultOneByte): if result size is 1,
10794         signs or signedness can be ignored
10795         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
10796         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
10797         added optimization for IFX,
10798         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
10799         arguments;
10800         reenabled optimization for IFX, which was removed on 2004-01-11
10801         * src/SDCCast.h: added return type IFX
10802         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
10803         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
10804         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
10805         SDCC_OLDONEBYTEOPS selects the old behaviour
10806         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
10807         changed again and commented promotion rule
10808         * src/SDCCval.c (valDiv): promotion no longer necessary
10809         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
10810         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
10811         rewritten
10812         * support/regression/tests/onebyte.c: added
10813
10814 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
10815
10816         * gen.c (genInline): reverted to old code for assemnling inline
10817         code because of bug reported James Chadd
10818
10819 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
10820
10821         * ralloc.h: missing declarations from previous patch,
10822         seems that patch for ralloc.h was never applied, fixed
10823
10824 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
10825            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
10826
10827         * pcode.c,
10828         * pcode.h,
10829         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
10830         indirect addressing. Marked FSR0 as deprecated
10831         * gen.c (pointerCode): commented out, not needed now
10832         (pic16_popGet2p): new MOVFF helper function
10833         (genGenPointerGet),
10834         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
10835         (shiftRLong): removed duplicate debugging info
10836
10837 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10838
10839         * src/ds390/gen.c (genNearPointerGet),
10840         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
10841         optimization with bits, but not bitfields.
10842         * src/ds390/ralloc.c (packRegisters),
10843         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
10844
10845 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
10846
10847         * src/SDCCcse.c (algebraicOpts): copy operands before modification
10848
10849 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10850
10851         * src/SDCCsymt.h,
10852         * src/SDCCicode.c (operandFromSymbol),
10853         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
10854         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
10855         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
10856         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
10857         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
10858         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
10859         bug #892038
10860         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
10861         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
10862         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
10863         * src/SDCCsymt.c (newSymbol),
10864         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
10865         enumerator_list),
10866         * src/SDCCval.h,
10867         * src/SDCCval.c (newiList): fixed bug #885705
10868
10869 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10870
10871         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
10872         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
10873
10874 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10875
10876         * device/include/c8051f120.h,
10877         * device/include/c8051f300.h,
10878         * device/include/c8051f310.h: added/updated header files for Silicon
10879         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
10880         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
10881         in new section Submitting patches
10882
10883 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10884
10885         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
10886         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10887         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10888         genGenPointerSet),
10889         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
10890         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10891         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10892         genGenPointerSet),
10893         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
10894         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10895         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10896         genGenPointerSet),
10897         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
10898         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10899         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10900         genGenPointerSet): fixed bug #892400
10901         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
10902         to eliminate build warnings.
10903         * src/SDCCast.c (processParms),
10904         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
10905         fixed bug 751859
10906         * support/valdiag/valdiag.py: added GCC to the list of defines active
10907         when compiling with gcc
10908
10909 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10910
10911         * support/Util/SDCCerr.h,
10912         * support/Util/SDCCerr.c,
10913         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
10914         with an incomplete type (fixed bug #883734)
10915         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
10916
10917 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10918
10919         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
10920
10921 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10922
10923         * src/SDCCast.c (decorateType),
10924         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
10925         function pointer implementation
10926         * support/regression/tests/funptrs.c: added tests to verify both forms
10927         of function pointers work correctly. Added tests to verify parameters
10928         are passed in the correct order.
10929
10930 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
10931
10932         * device.c (regCompare): registers are sorted by ascending
10933         address and increasing size,
10934         * main.c (_pic16_finaliseOptions): removed the declaration
10935         of compiler macro MCU. Now a macro of the format pic18fxxxx
10936         will be defined from the command line
10937
10938 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
10939             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
10940
10941         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
10942         PCOP_RLCF was overwritten!
10943         * gen.c (genSkip): commented out calls to pic16_emitcode,
10944         * (genCmpEQ): fixed "long" compares, only high word did get compared,
10945         * (genlshTwo),
10946         * (genRRC): added debugging info,
10947         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
10948         overwritten while shifting,
10949         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
10950         overwritten while shifting,
10951         * (AccLsh),
10952         * (AccRsh),
10953         * (shiftLLeftOrResult),
10954         * (shiftRLeftOrResult),
10955         * (shiftRLong),
10956         * (shiftLLong): Implemented with pic16_emitpcode
10957         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
10958         * (genLeftShift): Fixed bug, operand for shift by variable always
10959         was "and"ed with 0x0f,
10960         * (genLeftShiftLiteral),
10961         * (genrshTwo),
10962         * (genRightShiftLiteral): added debugging info,
10963         * (genrshFour): added comment,
10964         * (genRightShift): determined signedness from operand "left"
10965         instead of "result"
10966
10967 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10968
10969         * src/SDCCicode.c (geniCodeParms),
10970         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
10971         function pointers, fixed function pointer bugs #861242 and #861896
10972
10973 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10974
10975         * device/include/c8051f000.h,
10976         * device/include/c8051f120.h,
10977         * device/include/c8051f300.h: added header files for Silicon
10978         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
10979
10980 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
10981
10982         * src/SDCCast.c (processParams): added new type flow and restructured
10983         (gatherAutoInit): added new type flow
10984         (addCast): cosmetic changes
10985         (getLeftResultType): added new type flow for array indices, patch
10986         provided by Stas, see FR #877103
10987         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
10988         array index patch by Stas
10989         * src/SDCCast.h: added prototype getResultTypeFromType()
10990         * src/SDCCval.h,
10991         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
10992         * src/pic/glue.c (pic14emitStaticSeg),
10993         * src/pic16/glue.c (pic16emitStaticSeg),
10994         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
10995         for initialization of symbols
10996         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
10997         * support/Util/SDCCerr.h:
10998         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
10999         * .version: bumped version number to 2.3.8
11000         * device/include/Makefile.in (install),
11001         * doc/Makefile (install): changed to 'rm `find ...`' construct to
11002         avoid warnings
11003
11004 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
11005
11006         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
11007         Slade Rich fixed an optimization bug
11008         * src/pic/pcodepeep.c,
11009         * src/pic/pcoderegs.c
11010         * doc/Makefile (install): added test for directory
11011
11012 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11013
11014         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
11015         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
11016         * src/pic/ralloc.c (getRegPtr, getRegGpr),
11017         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
11018         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
11019         * as/mcs51/asexpr.c (term),
11020         * as/hc08/asexpr.c (term): fixed bug #887146
11021
11022 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11023
11024         * src/z80/gen.c (genMult): handle single byte result product
11025         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
11026         DUMMY_READ_VOLATILE (fixed bug #886367)
11027
11028 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
11029
11030         * support/regression/tests/libmullong.c: fixed logic, on little endian
11031         hosts we ended without a mullong_wrapper()
11032
11033 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11034
11035         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
11036         virus/worm forged address usage.
11037
11038 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
11039
11040         Fixed promotion, it should be done on AST level:
11041         * src/SDCCast.c (addCast): added promotion to int
11042         (decorateType): updated call to upCast()
11043         * src/SDCCicode.c (geniCodeLeftShift): removed call to
11044         usualUnaryConversions()
11045
11046 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
11047
11048         * support/regression/tests/literalop.c (mulWrapper): Added a
11049         wrapper to remove integer overflow warnings.
11050
11051         * support/regression/tests/float_trans.c: Made work on host.
11052
11053         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
11054         location of sz80.
11055
11056         * support/regression/generate-cases.py (main): Changed from inline
11057         to a main method.
11058
11059         * doc/Makefile (install): Changed to depth first to get rid of
11060         missing directory install warning.
11061
11062         * as/Makefile (install-doc): Made work on Mac.
11063
11064 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
11065
11066         * src/SDCCast.c: added an additional type flow in decorateType() of
11067         opposite direction, see feature request #860006; it's enabled at runtime
11068         by setting the environment variable SDCC_NEWTYPEFLOW
11069         * src/SDCCast.h: changed prototype of decorateType()
11070         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
11071         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
11072         'char' to 'int' can be omitted, if both operands are 'unsigned char';
11073         see feature request #877103
11074         * src/SDCCval.c: updated call of decorateType()
11075         (valBitwise): fixed bug #882876
11076         (valMinus): added promotion
11077         (valLogicAndOr): result is unsigned
11078         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
11079         * src/SDCCsymt.c (computeType),
11080         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
11081         must not cause an unsigned operation
11082         * src/pic/glue (pic14emitRegularMap),
11083         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
11084
11085 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
11086
11087         * src/pic/pcode.c (PCodeID): commented out left over debug code
11088
11089 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
11090
11091         * support/valdiag/tests/overflow.c: added shift tests
11092         * src/pic/device.c,
11093         * src/pic/gen.c,
11094         * src/pic/gen.h,
11095         * src/pic/glue.c,
11096         * src/pic/main.c,
11097         * src/pic/pcode.c,
11098         * src/pic/pcode.h,
11099         * src/pic/pcodepeep.c,
11100         * src/pic/pcoderegs.c,
11101         * src/pic/ralloc.c,
11102         * src/pic/ralloc.h: applied patch from Slade Rich;
11103         added support for multiple code pages and multiple RAM banks on the
11104         PIC 14 port. The ASM files now no longer simply assume all the
11105         code / RAM are in the same page / bank. This means the linker can
11106         safely allocate code/RAM of separate ASM files to different pages/banks.
11107         * doc/sdccman.lyx: added Slade's tips
11108         * src/mcs51/peeph.def: fixed bug #880768
11109
11110 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11111
11112         * src/hc08/ralloc.c (rematStr): fixed bug #879282
11113         * src/SDCCast.c (decorateType): fixed bug #880197
11114
11115 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
11116
11117         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
11118         getopt.h.
11119
11120         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
11121         strtof is not part of C89 and isn't included with Mac OS X.
11122
11123 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11124
11125         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
11126         shiftL2Left2Result): fixed bug #879326
11127         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
11128         (genMultOneByte): fixed bug in signed vs unsigned multiplication
11129         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
11130         address fetch for clr instruction
11131         * device/lib/hc08/_mulint.c: created optimized assembly version
11132         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
11133
11134 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
11135
11136         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
11137         proposed in FR #877103
11138
11139 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
11140
11141         * src/SDCCval.c (cheapestVal): added missing checks
11142         * src/SDCCicode.c (usualBinaryConversions): fixed condition
11143         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
11144
11145 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
11146
11147         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
11148         equal operands
11149
11150 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
11151
11152         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
11153         loaded with the linker search paths (-L arguments) and the libraries
11154         to be linked with the current source (-l arguments). Changes
11155         currently will affect only the pic16 port.
11156         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
11157         include path the port specific paths and port specific libraries,
11158         * gplink command now contains the $3 argument,
11159         * src/pic16/device.h,
11160         * src/pic16/device.c,: structure PIC_device is made public and
11161         renamed to PIC16_device, the same for variable Pics which is renamed
11162         to Pics16. Updated all references to them.
11163         * src/pic16/glue.c (pic16glue): corrected bug with code
11164         initialization which bypassed the variable initializations block.
11165
11166         * device/lib/pic16/Makefile.rules: removed --penable-stack from
11167         COMPILE_FLAGS and added the --nostdinc option
11168
11169 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11170
11171         * device/include/mc68hc908jb8.h: Register defs for another member
11172         of the hc08 family. Contributed by Bjorn Bringert - thanks!
11173
11174 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
11175
11176         Documenting changes from previous commits.
11177         * configure.in (version 1.56),
11178         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
11179         when generating output files to configure the pic16 library,
11180         but now I've commented it out, since gputils aren't installed in the
11181         SF compile farm, so library won't compile
11182
11183         * device/lib/Makefile.in (version 1.56): initially I've added in
11184         target 'all' the prerequestive 'model-pic16' so it compiled the
11185         pic16 library, but now I've commented it out for the same reasons
11186         above,
11187         * added targets 'model-pic16' and 'objects-pic16' to compile the
11188         library
11189         * added target 'port-specific-objects-pic16' to handle the
11190         generated libraries and copy them into the build/ directory
11191         * added target 'clean-intermediate-pic16' to clean intermediate
11192         files into pic16 directory
11193         * in target 'installdirs' added line to create directory pic16 in
11194         the installation path
11195
11196         * device/include/Makefile.in (version 1.11): in target 'install'
11197         added lines to copy all header files to installation path,
11198         * in target 'installdirs' added line create directory for pic16
11199         headers in the installation path
11200
11201 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
11202
11203         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
11204          a function call
11205
11206 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
11207
11208         * configure,
11209         * device/lib/configure.in,
11210         * device/lib/configure: fixed for autoconf 2.57
11211
11212 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11213
11214         * src/z80/main.c (_parseOptions): fixed the portmode= command line
11215         option so that it actually works. Made it specific to the z80, since
11216         the gbz80 doesn't have these kinds of I/O ports.
11217
11218 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11219
11220         * device/include/z180.h,
11221         * device/lib/_memcpy.c,
11222         * device/lib/_memmove.c,
11223         * device/lib/_mulint.c,
11224         * device/lib/ser_ir.c,
11225         * device/lib/ser_ir_cts_rts.c,
11226         * device/lib/_strcmp.c,
11227         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
11228         * src/z80/main.c (_process_pragma): add support for pragmas bank and
11229         portmode; added deprecation warning for bank= and protmode= forms.
11230         Also, guard against buffer overflow.
11231         * src/z80/gen.c (aopGet): generate better code for sfr banked read
11232
11233 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11234
11235         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
11236         changed interrupt vector table generation to only emit declared vectors.
11237         * device/include/Makefile.in: added missing backslash
11238         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
11239
11240 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
11241
11242         Mainly changes to support compilation of the device libraries
11243         * src/pic16/device.c: stack is allocated via symbol and not
11244         via literal number. The symbol is placed in the corresponding
11245         position of the data ram
11246         * (pic16_dump_section): relocatable and absolute uninitialized
11247         data are now emitted in sorted order to reduce section naming,
11248         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
11249         weren't marked as being in the access bank,
11250
11251 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
11252
11253         Added portion of GNU PIC Library under the directory
11254         device/include/pic16 and device/lib/pic16. These files
11255         contain the declarations of SFRs for the PIC18Fxx2 devices.
11256         The directory is initialized via configure from toplevel.
11257
11258 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
11259
11260         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
11261         the spilllocations to be compared correctly
11262
11263 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
11264
11265         * src/SDCCast.c (decorateType): fixed bug introduced today
11266
11267 2004-01-12  Borut Razem <borut.razem AT siol.net>
11268
11269         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
11270         doc/sdccman.lyx: upper case pragmas are deprecated
11271
11272 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
11273
11274         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
11275         in simpler and even better code
11276
11277 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
11278
11279         * src/SDCCicode.c (operandOperation): fixed bug #874819
11280         * src/SDCCast.c (decorateType): fixed
11281         char foo (unsigned long ul) { return ul > 0; }
11282
11283 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11284
11285         * doc/sdccman.lyx: Moved and added some sections, small changes
11286         all over. Telling LaTeX to be less strict with word spacing
11287         to better keep the right margin. Changed some notes about
11288         maintainance of the ports in section 3.2.1 - is it OK like this?
11289
11290 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
11291
11292         SDCC source changes:
11293         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
11294         convilong): modified to inform the pic16 port that builtin functions
11295         are external
11296
11297         PIC16 PORT specific changes:
11298         * src/pic16/device.c pic16_dump_equates() added,
11299         processor registers declared internally by the port are emitted in
11300         the translation as equates,
11301         * src/pic16/gen.c: inline code is passed unprocessed to the
11302         translation,
11303         * (pic16_popGetLit2): fnuction modified to take second operand as
11304         pCodeOp pointer and not as literal,
11305         * (popRegFromIdx): prefixed with pic16_,
11306         * (pic16_popCombine2): modified to receive already allocated pCode
11307         operands,
11308         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
11309         * (genFunction): initializes local stack frame and pushes on stack
11310         all the registers used by this function,
11311         * (genEndFunction): restores all registers from stack and restores
11312         stack frame,
11313         * src/pic16/glue.c (pic16emitRegularMap): various changes and
11314         improvements,
11315         * (pic16glue): changed the program startup sequence,
11316         * added new dbName code 'A' for functions placed in absolute section
11317         * src/pic16/main.c: added function attribute _naked,
11318         * added pragma 'code' to place a fnuction at an absolute address,
11319         * added command line arguments --debug-ralloc and --pcode-verbose,
11320         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
11321         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
11322         * (pic16_newpCodeOpLit2): modified to take the second operand as
11323         pCodeOp pointer,
11324         * (pic16_printpBlock): modified to emit each function in a separate
11325         section,
11326         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
11327         UPPER for immediate operands,
11328         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
11329         instruction,
11330         * src/pic16/peeph.def: all peepholes with movff are commented out,
11331         because there is a problem in the pcode peep optimizer,
11332         * src/pic16/ralloc.c: the register allocator can now reuse local
11333         function symbols for another function. This saves register usage.
11334         * src/pic16/ralloc.h: added flag isLocal in structure regs,
11335
11336         Added file src/pic16/NOTES with information about program writing on
11337         the current port version.
11338
11339 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11340
11341         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
11342         and peephole 252 (array access)
11343
11344 2004-01-09  Borut Razem <borut.razem AT siol.net>
11345
11346         * src/SDCCmain.c : fixed #872250: -l command line defined library
11347           files are scanned before standard library files
11348
11349 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11350
11351         * src/SDCCast.c (decorateType): fixed bug #874046
11352
11353 2004-01-09  Borut Razem <borut.razem AT siol.net>
11354
11355         * support/scripts/sdcc.nsi: remove previous installation
11356
11357 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11358
11359         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
11360         bytes for last interrupt vector (mcs51)
11361         * sdcc.spec: fixed typo
11362
11363 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11364
11365         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
11366         gen51Code): more efficient parameter receive for --model-large
11367         ("bug" #845294)
11368
11369 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11370
11371         * src/ds390/main.c,
11372         * src/z80/main.c: added missed needLinkerScript flags (more than
11373         one port structure defined in these file)
11374         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
11375         bug #795325
11376
11377 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
11378
11379         * src/SDCCmain.c: removed various references to DEFAULT_PORT
11380         * src/port.h: added flag needLinkerScript in port->linker
11381         structure to inform whether to create a .lnk file or not,
11382         * src/avr/main.c,
11383         * src/ds390/main.c,
11384         * src/hc08/main.c,
11385         * src/mcs51/main.c,
11386         * src/pic/main.c,
11387         * src/pic16/main.c,
11388         * src/xa51/main.c,
11389         * src/z80/main.c: changed appropriately to configure
11390         needLinkerScript flag
11391         * src/pic/gen.c,
11392         * src/pic16/gen.c (genAddrOf): fixed bug #863624
11393         * src/pic/glue.c: added variable udata_section_name to
11394         override default uninitialized data segment definition for
11395         devices only with SHAREBANK memory (reported from Erik Epetrich)
11396         * (pic14emitOverlay): modified to emit a commented overlay segment
11397         directive when no overlay data exist
11398         * (picglue): modified to emit uninitialized data segment
11399         according to udata_section_name
11400         * src/pic/main.c (_pic14_parseOptions): added command line
11401         options --udata-section-name=[name] to override default
11402         udata definition name
11403         * modified _linkCmd and _asmCmd to include compiler passed
11404         arguments via -W option
11405         * src/pic16/main.c: added $l in _asmCmd, changed extension for
11406         object file from '.rel' to '.o' in port->linker structure,
11407         changed size of fptr from 2 to 3 in port structure
11408
11409 2004-01-07  Borut Razem <borut.razem AT siol.net>
11410
11411         * support/scripts/sdcc.nsi: update PATH
11412         * support/scripts/sdcc.ico: craeted
11413
11414 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
11415
11416         * device/include/Makefile.in: fix install
11417         * doc/Makefile: fix install
11418
11419 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11420
11421         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
11422         in bug #860505
11423         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
11424         how the function variable allocation summary is displayed; also
11425         include information about variables allocated to the overlay
11426         segment
11427
11428 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11429
11430         * as/mcs51/lkmain.c: Help about -Y option
11431         * as/mcs51/lkarea.c: Fixed gcc warnings
11432
11433 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
11434
11435         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
11436         fixed warning
11437         * support/valdiag/tests/overflow.c: added
11438         * src/SDCCast.c (decorateType),
11439         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
11440         LEFT_OP (left shift)
11441
11442 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11443
11444         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
11445         (default behaviour).
11446
11447 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11448
11449         A python script to validate compiler diagnostic messages. It can be
11450         used to verify that sdcc complains about bad c source code and
11451         gives a good location of the error.
11452         * support/valdiag/Makefile,
11453         * support/valdiag/valdiag.py,
11454         * support/valdiag/tests/*
11455
11456 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11457
11458         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
11459         * src/SDCCsymt.c (newEnumType),
11460         * src/SDCCsymt.h
11461         * support/Util/SDCCerr.c,
11462         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
11463         enum related bugs.
11464         * support/regression/tests/enum.c: added test for enum values that
11465         require at least 2 bytes of storage.
11466
11467 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
11468
11469         * src/common.h: added ifndef/define/endif macros
11470         around the header file.
11471         Bug reported from Jesus Calvino-Fraga
11472
11473 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
11474
11475         * sdcc.spec: updated
11476         * device/include/Makefile.in: don't install CVS directories
11477         * device/lib/Makefile.in: added removal of CVS directories after install
11478         * doc/Makefile: fixed install, added local_icons
11479         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
11480         * src/mcs51/gen.c (genRightShift): fixed bug #870788
11481         * src/ds390/gen.c (genRightShift): fixed bug #870788
11482         * src/SDCCast.c (decorateType): fixed bug #870781
11483
11484 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
11485
11486         PIC16 port related changes:
11487         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
11488         added variable stackPos,
11489
11490         * gen.c: genCall, assignResultValue: added support for
11491         pushing/retrieving function parameters to/from stack,
11492         genFunction,genEndFunction: setup stack frame for the
11493         generated function,
11494         genAddrOf: will be changed according to bug 863624
11495
11496         * added files genutils.c and genutils.h which contain gen*
11497         debugged and optimised functions extracted from gen.c
11498
11499         * glue.c: added variable 'externs' which holds extern symbols,
11500         pic16emitRegularMap: is modified to properly handle relocatable
11501          symbols under the new scheme,
11502         pic16createInterruptVect: is modified
11503         pic16printPublics: is modified to emit 'global' assembler directives,
11504         added pic16_printExterns to print extern symbols,
11505         pic16glue: initializes stack/frame pointer in the beginning of
11506         the assembly output. Temporary hack, will be corrected later,
11507         because gplink yet does not support stack and SDCC does not
11508         yet support a type of crt0.o object to create the final binary.
11509
11510         * Removed many lines that contain 8051 legacy code.
11511         * The code is finally placed under a 'code' directive.
11512         * Added port specific options.
11513
11514         * _process_pragma: simplified since now we do not need *special*
11515         include file to define SFR registers. But a separate header
11516         will be needed. This will be developed later.
11517         * _pic16_parseOptions: added, parses port specific options:
11518         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
11519         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
11520         --preplace-udata-with=
11521
11522         * _pic16_setDefaultOptions: modified to initialize section names,
11523         but hack is temporarly out of order since it needs improvement.
11524         * _pic16_genAssemblerPreamble: configuration words are emitted by
11525         their address instead of their name. This part is incomplete and
11526         supports only the 18Fxx2 devices. Other devices will emit an error
11527         during assembly since they do not contain the same set of config
11528         registers
11529         * _pic16_genIVT: is modified,
11530
11531         * pcode.c: added definitions for some hardware registers that are needed
11532         for stack support
11533         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
11534         All PCI entries are updated. Now LFSR is supported.
11535         * Removed pic16_pciTRIS is mentioned by mdubuc in source
11536         * added pic16_newpCodeOpLit2 to support instructions with
11537         two literal arguments
11538         * pic16_pCode2str: corrected code that emits assembler instructions
11539         with two literal operands and those that have an access bit modifier
11540         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
11541         this fixes a bug which caused some labels to be lost, when an
11542         assembler directive was added, i.e. banksel,
11543         * pic16_FixRegisterBanking: improved logic that causes the insertion
11544         of bank switching,
11545         * InlineFunction: functions that are called once, are not any more
11546         inlined. This can be a port option in the future,
11547
11548         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
11549
11550         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
11551         hold the corresponding uninitialized symbols,
11552         * pic16_allocProcessorRegister: registers have explicit marked the
11553         accessBank field,
11554         * pic16_allocInternalRegister: registers are explicit marked as
11555         not used,
11556         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
11557         processing list, so bit registers were lost,
11558         *
11559
11560         * ralloc.h: added field 'accessBank' and original symbol operand
11561         in register definition,
11562         * removed the field isMapped from register definition,
11563
11564         ** Several functions have been removed from various sources:
11565         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
11566         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
11567         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
11568         pic16_assignRelocatableRegisters
11569
11570         ** others have been introduced:
11571         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
11572         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
11573
11574 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
11575
11576         * support/scripts/inc2h.pl: changed definition of BIT_AT
11577         to emit 'sbit at' instead of 'bit at'. This was a request.
11578
11579         PIC16 port related preliminary changes:
11580         * gen.c: prefixed function popRegFromString with
11581         pic16_ and all references to it corrected
11582         * pcode.c: all pic16_pc_* hardware registers prefixed
11583         with underscore (_),
11584         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
11585         * ralloc.c: newReg(): when register is REG_SFR then
11586         set address to rIdx,
11587         pic16_allocProcessorRegister(): marks register wasUsed=0
11588         pic16_writeUsedRegs(): added a call to assign processor
11589         registers via pic16_assignFixedRegisters
11590
11591 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11592
11593         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
11594         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
11595         variables in unused register banks.  Also the SSEG is placed
11596         wherever there is enough space for it, and IDATA can be anywhere
11597         in internal RAM.  For now compile using -Wl-Y[stack_size].
11598         The mem file is different for this option as well, since it
11599         makes no sense of talking about DSEG lenght.
11600
11601 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
11602
11603         * src/SDCClrange.c: fixed bug 869095 that caused segfault
11604         in certain cases, e.g. when ROM assignment, patch provided
11605         from Albert den Haan.
11606
11607 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
11608
11609         Many signedness and type propagation fixes:
11610         * src/SDCCicode.c: made geniCodeCast() static
11611         replaced SPEC_ by IS_ (cosmetic)
11612         (operandOperation): fixed div and mod operation
11613         (usualBinaryConversions): added support for promotion of char
11614         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
11615         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
11616         (geniCodeAdd): an array index will stay unsigned, even if promoted
11617         from char to int
11618         (geniCodeArray): ditto
11619         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
11620         * src/SDCCsymt.c (computeType): added more support for char;
11621         promotion of char is selectable by promoteCharToInt, fixed signedness
11622         for all cases
11623         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
11624         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
11625         * src/SDCCval (val*): replaced signedness calculation by
11626         computeType()
11627         rearranged if-branches (cosmetic)
11628         (valShift): added warning W_SHIFT_CHANGED
11629         (valCompare): fixed problem with different types
11630         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
11631         * support/regression/tests/literalop.c: added many cases
11632         * support/regression/tests/ast_constant_folding.c: changed finally to
11633         'unsigned int'
11634         * .version: new year, new version: 2.3.7
11635         * src/SDCCmain.c (main): applied patch #866468
11636         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
11637         provided by Scott Bronson
11638         * doc/sdccman.lyx: updated documentation for sdcdb
11639         updated and added chapter tips
11640
11641 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11642
11643         * src/SDCCsymt.h: missing from yesterday's commits
11644
11645 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11646
11647         * src/SDCC.y (struct_or_union_specifier),
11648         * support/Util/SDCCerr.c,
11649         * support/Util/SDCCerr.h: verify that struct & union tags are used
11650         as declared.
11651
11652 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11653
11654         * src/SDCCglobl.h: missing from yesterday's commits
11655
11656 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11657
11658         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
11659         sft_attributes, struct_declaration, parameter_declaration,
11660         type_name, start_block, declaration_list),
11661         * src/SDCC.lex (check_type): support redefinition of typedef names
11662
11663 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11664
11665         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
11666         aligned xdata arrays. Erik helped me with the if clause.
11667
11668 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11669
11670         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
11671         warning
11672
11673 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11674
11675         * src/SDCCast.h,
11676         * src/SDCCast.c (newAst_),
11677         * src/SDCCicode.h,
11678         * src/SDCCicode.c (ast2iCode, newiCode),
11679         * src/SDCCglobl.h,
11680         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
11681         expr, statement, expression_statement, selection_statement,
11682         iteration_statement, expr_opt, jump_statement): foundation for tracking
11683         sequence points
11684         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
11685         point code too)
11686
11687 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11688
11689         * support/Util/SDCCerr.c,
11690         * src/SDCCast.h,
11691         * src/SDCCast.c (createCase, createDefault, decorateType),
11692         * src/SDCClabel.c (labelUnreach),
11693         * src/SDCC.y (labeled_statement, jump_statement): More improvements
11694         to error messages.
11695         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
11696         (with thanks to Stas Sergeev)
11697         * device/include/time.h,
11698         * device/lib/time.c (CheckTime): suppress unreachable code warning
11699
11700 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11701
11702         * src/SDCCast.c (createIvalCharPtr),
11703         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
11704         bug #753752)
11705         * support/regression/tests/nullstring.c: tests for these two bugs
11706
11707 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11708
11709         * support/Util/SDCCerr.h,
11710         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
11711         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
11712         about storage class and 'at' used inside struct or union
11713         * src/SDCCBBlock.c (iCodeFromeBBlock),
11714         * src/SDCCcse.c (ifxOptimize),
11715         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
11716         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
11717         printIval, emitStaticSeg, emitOverlay),
11718         * src/SDCClabel.c (deleteIfx),
11719         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
11720         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
11721         gatherAutoInit, processParms),
11722         * support/Util/SDCCerr.h,
11723         * support/Util/SDCCerr.c (werrorfl): Support for better error location
11724         reporting for post-parse errors.
11725
11726 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11727
11728         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
11729         implicit casts via union; they don't work on big endian systems
11730         (possible fix for bug #861138)
11731
11732 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11733
11734         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
11735         * src/mcs51/main.c: fixed the fix for bug #737001
11736
11737 2003-12-15  Borut Razem <borut.razem AT siol.net>
11738
11739         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
11740
11741 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11742
11743         * support/makebin/makebin.c: put output in binary mode
11744
11745 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11746
11747         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
11748         xdata and data memory on startup. Set the environment variable
11749         SDCC_NOGENRAMCLEAR to disable this.
11750         * src/mcs51/peephole.def,
11751         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
11752         (allows non-interrupt and interrupt code to safely compete for a resource
11753         without the non-interrupt code having to disable interrupts)
11754
11755 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11756
11757         * src/SDCCicode.c (geniCodeAdd),
11758         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
11759         with valFromType if type might be a pointer and host is big endian).
11760         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
11761         types, not just integer types.
11762         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
11763         multiply defined with mismatching "at" address.
11764
11765 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11766
11767         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
11768         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
11769         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
11770         with embedded nulls (fixed bug #753752)
11771
11772 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11773
11774         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
11775         Apparently this did not see much testing (endless loop)
11776
11777 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11778
11779         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
11780
11781 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11782
11783         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
11784         gracefully handle NULL memmap pointers
11785
11786 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11787
11788         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
11789         instead of deleting the iCode when an operand is volatile
11790         * src/z80/gen.c (genDummyRead),
11791         * src/mcs51/gen.c (genDummyRead),
11792         * src/ds390/gen.c (genDummyRead),
11793         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
11794         not just IC_RIGHT
11795         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
11796         * src/SDCC.y: fixed bug #850420
11797
11798 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11799
11800         Applied z80 i/o port patch from Peter Townson and fixed some operators
11801         to better handle operands in A register.
11802         * device/include/z180.h
11803         * src/SDCC.y
11804         * src/SDCCglue.c
11805         * src/z80/gen.c
11806         * src/z80/gen.h
11807         * src/z80/main.c
11808         * src/z80/peeph-z80.def
11809         * src/z80/peeph.def
11810         * src/z80/z80.h
11811
11812 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11813
11814         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
11815
11816 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11817
11818         * device/lib/hc08/_mullong.c: Removed extra #endif
11819
11820 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11821
11822         * sim/ucsim/hc08.src/inst.cc,
11823         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
11824         carries from x to h
11825         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
11826         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
11827         * device/include/stdarg.h: fixed varargs for hc08
11828         * device/lib/Makefile.in,
11829         * device/lib/hc08/Makefile,
11830         * device/lib/hc08/_mulint.c,
11831         * device/lib/hc08/_mullong.c: fixed some endian problems
11832
11833 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11834
11835         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
11836         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
11837         * device/lib/_gptrget.c,
11838         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
11839
11840 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11841
11842         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
11843         * src/SDCCast.c (astErrors): fixed bug #846007
11844         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
11845
11846 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11847
11848         * src/SDCCast.c (decorateType): disabled a transformation I added in
11849         revision 1.188 (access to fields of a structure at an absolute address);
11850         it breaks with bitfields, extern declarations, and gcse analysis.
11851         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
11852         could be assigned through a pointer, so don't complain.
11853         * src/SDCCast.c (astErrors),
11854         * src/SDCCast.h,
11855         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
11856
11857 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
11858
11859         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
11860         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
11861         output of __config directives, since gpasm now supports them
11862         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
11863         pre-processor macro, i.e. -DMCU=p18f452
11864         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
11865         and modified to handle 'cast' icode similarly to '=' icode
11866         * src/pic16/device.h (typedef struct PIC_device): added field
11867         'extMIface' to indicate that chip has external memory interface
11868         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
11869         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
11870         18F8720
11871
11872 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11873
11874         * src/SDCC.y (pointer): fixed bug #846006
11875         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
11876         * src/SDCCast.c (decorateType): fixed bug #846009
11877         * src/ds390/peeph.def,
11878         * src/ds390/gen.c (genAnd, genOr),
11879         * src/mcs51/peeph.def,
11880         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
11881
11882 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11883
11884         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
11885         * src/SDCCdflow.c
11886         * src/SDCCcse.c
11887         * src/SDCCcse.h
11888         * src/SDCCBBlock.h
11889         * src/SDCCBBlock.c
11890
11891 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
11892
11893         fixed bug #845089
11894         * src/SDCCbitv.h,
11895         * src/SDCCbitv.c: added function to free a bitvector
11896         * src/SDCClrange.h,
11897         * src/SDCClrange.c: added function to recompute the liveranges
11898         * src/avr/ralloc.c,
11899         * src/ds390/ralloc.c,
11900         * src/hc08/ralloc.c,
11901         * src/mcs51/ralloc.c,
11902         * src/pic/ralloc.c,
11903         * src/pic16/ralloc.c,
11904         * src/xa51/ralloc.c,
11905         * src/z80/ralloc.c: recompute the liveranges after register packing
11906
11907 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
11908
11909         * src/SDCCloop.c (newInduction): fixed bug #845630
11910
11911 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11912
11913         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
11914         inadvertantly left behind from my 2003-11-12 change
11915
11916 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11917
11918         Updated headers I neglected to commit yesterday.
11919         * src/SDCClrange.h,
11920         * src/SDCCicode.h
11921
11922 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11923
11924         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
11925         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
11926         * src/SDCCopt.c (eBBlockFromiCode),
11927         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
11928         the creation of the key hash table from the sequencing so it can be used
11929         earlier (for some GCSE bug fixes still pending)
11930
11931 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11932
11933         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
11934         * support/regression/tests/addsub.c: testing genPlus shortcut
11935
11936 2003-11-15  Borut Razem <borut.razem AT siol.net>
11937
11938         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
11939
11940 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11941
11942         * src/SDCCcse.c (cseBBlock): fixed bug #527779
11943         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
11944         ordering is immaterial.
11945         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
11946
11947 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11948
11949         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
11950         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
11951         (SIGSEV) of bug #840381
11952         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
11953         unlink new file before rename if new and old filenames are the same)
11954
11955 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11956
11957         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
11958         uninitialized variables) for the mcs51. Set environment variable
11959         SDCC_GENRAMCLEAR to test.
11960         xdata initialization slightly shorter
11961
11962 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11963
11964         * src/SDCCsymt.h,
11965         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
11966         #838241 & 780691 (basicly the same bug)
11967         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
11968         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
11969
11970 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
11971
11972         * src/SDCCmain.c (linkEdit): "fix" #834252
11973
11974 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11975
11976         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
11977         * src/SDCCast.h,
11978         * src/SDCC.y: fixed bug #819403
11979
11980 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11981
11982         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
11983         the reentrant attribute.
11984         * src/hc08/gen.c (genPackBits): added missing stack readjustment
11985         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
11986         simulation
11987         * src/SDCCast.c (decorateType): fixed bug with storage class not being
11988         updated during pointer dereference; f.e. ~(((char *)1)*) was being
11989         erroneously reduced to a literal.
11990         * src/hc08/ralloc.c (packRegisters, rematStr),
11991         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
11992         some cases
11993
11994 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11995
11996         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
11997         * doc/sdccman.lyx: changed from 'article' to 'book'
11998         * doc/Makefile: readded test_suite_spec and cdbfileformat
11999
12000 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
12001
12002         * device/include/stdlib.h: include malloc.h to comply with ANSI
12003         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
12004
12005 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12006
12007         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
12008         * doc/clean.mk: also remove *.out files
12009         * doc/sdccman.lyx: some additions, larger top/bottom margins
12010
12011 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12012
12013         * src/SDCC.y: fixed bug #837365
12014         * support/regression/tests/bitopcse.c
12015         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
12016         a symbol (might be valop instead)
12017         * device/lib/Makefile.in: added errno.c to HC08SOURCES
12018         * device/lib/clean.mk: added hc08 to the cleaning list
12019
12020 2003-11-04  Borut Razem <borut.razem AT siol.net>
12021
12022         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
12023           made 2003-11-04
12024         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
12025           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
12026           malloc is declared in standard stdlib.h
12027
12028 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12029
12030         * device/lib/hc08/Makefile: need to clean .rel not .o files
12031         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
12032
12033 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12034
12035         * src/port.h,
12036         * src/hc08/main.c,
12037         * src/mcs51/main.c,
12038         * src/ds390/main.c,
12039         * src/z80/main.c,
12040         * src/avr/main.c,
12041         * src/pic/main.c,
12042         * src/pic16/main.c,
12043         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
12044         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
12045         tests (which uses the port's oclsExpense function)
12046         * src/SDCC.y,
12047         * src/SDCCast.c,
12048         * src/SDCCicode.c,
12049         * src/hc08/gen.c,
12050         * src/ds390/gen.c,
12051         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
12052
12053 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12054
12055         * src/SDCCcse.c (ifxOptimize),
12056         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
12057         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
12058         deleting the IFX iCode.
12059         * src/hc08/ralloc.c: reduced unneeded slocs
12060         * src/hc08/gen.c: fixed bug in asmopToBoolean
12061
12062 2003-11-04  Borut Razem <borut.razem AT siol.net>
12063
12064         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
12065           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
12066           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
12067           transferred to configure
12068
12069 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
12070
12071         Use headers defined in the C[++] standards:
12072         * sim/ucsim/gui.src/serio.src/fileio.cc
12073         * sim/ucsim/gui.src/serio.src/frontend.cc
12074         * sim/ucsim/gui.src/serio.src/main.cc
12075         * sim/ucsim/gui.src/serio.src/posix_signal.cc
12076         * support/Util/NewAlloc.c
12077         * as/hc08/lklibr.c
12078         * as/mcs51/lklibr.c
12079         * as/z80/aslist.c
12080         * as/z80/assym.c
12081
12082 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12083
12084         * Added MSVC projects for hc08 assembler and linker:
12085         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
12086         /as/hc08/link_hc08.dsp
12087
12088 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
12089
12090         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
12091
12092 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
12093
12094         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
12095
12096 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12097
12098         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
12099
12100 2003-10-31  Borut Razem <borut.razem AT siol.net>
12101
12102         * support/cpp2/cpplib.h,
12103           support/cpp2/cpplib.c,
12104           support/cpp2/cpplex.c,
12105           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
12106           to switch _asm block preprocessing on / off. Default is
12107           #pragma preproc_asm +
12108
12109 2003-10-31  Borut Razem <borut.razem AT siol.net>
12110
12111         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
12112           when outputting comment blocks (when executed with -C option) and
12113           _asm (SDCPP specific) blocks
12114
12115 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12116
12117         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
12118
12119 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
12120
12121         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
12122
12123 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
12124
12125         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
12126         * src/SDCCast.c (decorateType): fixed bug #832664
12127
12128 2003-10-31  Borut Razem <borut.razem AT siol.net>
12129
12130         * support/cpp2/cpplex.c: fixed for SDCPP:
12131           comments(when executed with -C option) and _asm blocks
12132           were included even if they where in skipped #if block.
12133           Applied solution from GCC cpp 3.3.2
12134
12135 2003-10-31  Borut Razem <borut.razem AT siol.net>
12136
12137         * src/SDCC.lex: sdcc now understands both formats:
12138           '# <line_number> <file_name>' and
12139           '#line <line_number> <file_name>'
12140         * support/cpp2/cppmain.c: sdcpp now generates the standard
12141           '# <line_number> <file_name>' instead of former
12142           '#line <line_number> <file_name>'
12143
12144 2003-10-30  Borut Razem <borut.razem AT siol.net>
12145
12146         * support/cpp2/cpphash.h,
12147         * support/cpp2/cpplib.h
12148         * support/cpp2/cpplex.c,
12149         * support/cpp2/cppmain.c,
12150         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
12151
12152 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12153
12154         Fixed a number of problems revealed by bug #827883.
12155         * src/SDCCloop.c (loopInvariants): Spill location of the
12156         result operand should be recomputed if extracted from
12157         a loop. Also, don't extract assignments of an iTemp
12158         from a literal.
12159         * src/SDCCast.c (isConformingBody): loop reversal should
12160         not occur if the control variable is involved with a
12161         relational operator.
12162
12163 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
12164
12165         * .version: bumped to 2.3.6 to reflect the big improvements
12166         made by Erik and Klaus. Thanks!
12167
12168 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
12169
12170         Replaced the livrange code.
12171         * src/SDCClrange.c: added new LR code
12172         * src/SDCCloop.c,
12173         * src/SDCCBBlock.h: removed remainig parts from old LR code
12174         * src/ds390/ralloc.c,
12175         * src/ds390/gen.c: minor fixes to make it work with new code
12176
12177 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12178
12179         * as/hc08/asm.h,
12180         * as/hc08/lkrloc.c,
12181         * src/hc08/gen.c,
12182         * src/hc08/ralloc.c: Fix various warnings related to the hc08
12183         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
12184         (tweaked fix for bug #818696)
12185
12186 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12187
12188         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
12189
12190 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12191
12192         * src/SDCCmain.c,
12193         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
12194         * src/mcs51/gen.c (gencjneshort),
12195         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
12196         more efficient (per Scott Bronson's suggestion)
12197
12198 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12199
12200         Extended the semantics of the critical keyword to include
12201         individual statements. See RFE #827755 and #799831
12202         * src/SDCC.y
12203         * src/SDCCicode.c
12204         * src/SDCCopt.c
12205         * src/SDCCast.c
12206         * support/Util/SDCCerr.c
12207         * support/Util/SDCCerr.h
12208         * src/mcs51/gen.c
12209         * src/ds390/gen.c
12210         * src/hc08/gen.c
12211
12212 2003-10-19  Borut Razem <borut.razem AT siol.net>
12213
12214         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
12215
12216 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12217
12218         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
12219         Fixed bug #818696
12220         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
12221         and predecrement operand is displayed
12222
12223 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
12224
12225         * src/SDCCval.c (valMinus): fixed bug #826041
12226
12227 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12228
12229         Some hc08 related updates that I missed earlier
12230         * sim/ucsim/stypes.h
12231         * support/regression/ports/hc08/spec.mk
12232
12233 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12234
12235         New target "hc08" for the Motorola 68hc08 family of micros
12236
12237         * configure
12238         * configure.in
12239         * Makefile
12240         * src/hc08/*
12241         * src/SDCCmain.c
12242         * src/port.h
12243         * sim/ucsim/hc08.src/*
12244         * sim/ucsim/configure.in
12245         * src/ucsim/configure
12246         * sim/ucsim/packages_in.mk
12247         * as/hc08/*
12248         * as/Makefile
12249         * device/include/mc68hc908qy.h
12250         * device/lib/hc08/*
12251         * device/lib/Makefile.in
12252         * support/regression/ports/hc08/*
12253         * support/regression/Makefile
12254
12255 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12256
12257         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
12258         regression test
12259         * src/ds390/gen.c (genCast): fixed bug #821957
12260
12261 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
12262
12263         * device/lib/logf.c: "fixed" overlay bug
12264         * support/regression/ports/host/spec.mk: added m library
12265         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
12266         * support/regression/tests/float_trans: added (for Eric)
12267
12268 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
12269
12270         * src/mcs51/gen.c (genCpl): fixed bug
12271         http://sf.net/mailarchive/message.php?msg_id=6263915
12272
12273 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
12274
12275         * src/SDCCast.c (decorateType): added extended constant folding
12276         * src/SDCCsymt.c (computeType): cleanup
12277         * src/SDCCval.c (valShift): minor optimization
12278         * support/regression/tests/ast_constant_folding.c: added
12279
12280 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12281
12282         * src/SDCCmain.c: removed some unintended changes
12283
12284 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12285
12286         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
12287         * src/z80/gen.c: fixed part of bug #817589
12288         * src/SDCCsymt.c (checkFunction): fixed bug #817895
12289
12290 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
12291
12292         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
12293         * src/SDCCcflow.c
12294         * src/SDCCcse.c
12295         * src/SDCCdflow.c
12296         * src/SDCClabel.c
12297         * src/SDCClrange.c
12298         * src/SDCCmem.c
12299         * src/SDCCopt.c
12300         * src/SDCCpeeph.c
12301         * src/SDCCset.c
12302         * src/avr/ralloc.c
12303         * src/ds390/ralloc.c
12304         * src/izt/ralloc.c
12305         * src/mcs51/ralloc.c
12306         * src/pic/ralloc.c
12307         * src/pic16/ralloc.c
12308         * src/xa51/ralloc.c
12309         * src/z80/ralloc.c
12310         * src/z80/gen.c: removed unused label "release:"
12311
12312 2003-10-06  Borut Razem <borut.razem AT siol.net>
12313
12314         * src/SDCC.lex: removed definition of unused variables
12315           save_optimize and save_options
12316
12317 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
12318
12319         * clean.mk: removed '=' in "-maxdepth=1"
12320         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
12321         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
12322
12323 2003-10-06  Borut Razem <borut.razem AT siol.net>
12324
12325         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
12326           my_unput() replaced by unput()
12327
12328 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
12329
12330         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
12331         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
12332         type-punned pointer will break strict-aliasing rules"
12333         Old LR behaviour is again default; Klaus' LR can be choosen by
12334         defining the environment variable LRKLAUS
12335         * src/SDCCBBlock.h
12336         * src/SDCCloop.c
12337         * src/SDCClrange.c
12338         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
12339         * clean.mk: fixed removal of files in bin/CVS/
12340         * device/lib/clean.mk: fixed removal of directories small and large
12341         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
12342         * src/SDCCicode.c,
12343         * src/SDCCval.c: removed superflous test for pedantic
12344
12345 2003-10-05  Borut Razem <borut.razem AT siol.net>
12346
12347         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
12348           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
12349           message "unmatched #pragma SAVE and #pragma RESTORE"
12350
12351 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12352
12353         * doc/sdccman.lyx: various additions and updates (interrupts, inline
12354           assembly, critical functions, atomic, nojtbound)
12355
12356 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
12357
12358         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
12359         * src/SDCCBBlock.h
12360         * src/SDCCloop.c
12361         * src/SDCCloop.h
12362         * src/SDCClrange.c
12363
12364 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12365
12366         * src/z80/gen.h,
12367         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
12368         * src/mcs51/gen.h
12369         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
12370         * src/ds390/gen.h
12371         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
12372         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
12373         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
12374
12375 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12376
12377         * src/z80/gen.c (genRet): fixed bug #524753
12378         * src/z80/gen.c (genCast): fixed internal error on cast from
12379         pointer to long
12380         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
12381         fix for bug #477835 to the z80
12382         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
12383         for tracking iCodes in the peephole optimizer for z80
12384
12385 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12386
12387         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
12388         the other part of bug #814548
12389         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
12390
12391 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
12392
12393         * src/SDCCcse.c: fixed part of bug #814548
12394
12395 2003-09-28  Borut Razem <borut.razem AT siol.net>
12396
12397         * src/asm.c: rewrite of printILine() to use temporary file instead
12398           a pipe
12399         * src/xa51/main.c: commented out declaration of int rewinds
12400
12401 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12402
12403         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
12404
12405 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12406
12407         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
12408         * src/asm.c (printILine): Fixed bug #811015
12409
12410 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12411
12412         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
12413         freeing.
12414
12415 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12416
12417         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
12418         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
12419         to correctly handle general case of AOP_PAIRPTR
12420         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
12421
12422 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12423
12424         * src/mcs51/ralloc.c (fillGaps),
12425         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
12426         register positioning bug)
12427
12428 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
12429
12430         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
12431
12432 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12433
12434         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
12435         genCodePointerGet, genGenPointerGet, genFarPointerSet,
12436         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
12437         (ralloc doesn't intentionally do this now, but perhaps later)
12438         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
12439         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
12440         register positioning bugs (Fixed bug #762602 and #795325)
12441         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
12442         (Fixed bug #808779)
12443         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
12444         lines that --i-code-in-asm generates
12445
12446 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12447
12448         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
12449         trying to fclose a FILE* that was already closed.
12450
12451 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12452
12453         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
12454         of const struct should be treated as if const themselves)
12455
12456 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
12457
12458         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
12459
12460 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12461
12462         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
12463         Unix (/n) and DOS (/r/n) line terminations.
12464
12465 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12466
12467         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
12468         bug #613775
12469
12470 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12471
12472         * src/mcs51/gen.c (genFunction, genEndFunction),
12473         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
12474         and restore of EA so that stack offsets to parameters are
12475         correct when using both critical and reentrant/stack-auto.
12476         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
12477         size (can be triggered in error if sloc is shared between
12478         different sized objects)
12479         * device/include/float.h: fixed macros to explicitly use
12480         unsigned long where needed
12481
12482 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
12483
12484         Feature req. 799831: added code to allow nesting of critical functions
12485         * src/mcs51/gen.c (genFunction, genEndFunction)
12486         * src/ds390/gen.c (genFunction, genEndFunction)
12487
12488 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12489
12490         * src/SDCCsymt.c (sclsFromPtr),
12491         * src/SDCCsymt.h,
12492         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
12493         support for standard C idiom of memory mapped variables; for
12494         example, *((xdata int*)0x1234) = 1 is now internally equivalent
12495         to xdata int at 0x1234 tempvar = 1.
12496         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
12497         provided by Akiya ISHIDA
12498
12499 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
12500
12501         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
12502         * src/SDCCval.c (constVal): added reduction from int to char
12503         * src/SDCCval.c (valMult, valDiv): fixed sign handling
12504         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
12505         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
12506         to ignore the sign
12507         * support/regression/tests/shifts.c: fixed
12508
12509 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12510
12511         * src/z80/gen.c (genXor): Fixed bug #805445
12512
12513 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12514
12515         Fixed bug #621531 (const & volatile confusion in the type chain).
12516         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
12517         refer to the const or volatile state of the pointer itself.
12518
12519         * src/SDCCast.c
12520         * src/SDCCglue.c
12521         * src/SDCCicode.c
12522         * src/SDCCsymt.c
12523         * src/SDCCval.c
12524         * src/SDCC.y
12525         * src/SDCCsymt.h
12526         * src/pic/gen.c
12527         * src/pic/ralloc.c
12528         * src/pic16/gen.c
12529         * src/pic16/ralloc.c
12530         * support/regression/tests/const.c
12531
12532 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12533
12534         When checking for duplicated modules, use absolute paths
12535         instead of relative paths.  Files changed:
12536
12537         * as/mcs51/lklib.c
12538         * link/z80/lklib.c
12539
12540 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12541
12542         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
12543
12544 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12545
12546         * device/include/string.h: added size_t typedef, changed
12547         prototypes to use size_t, eliminated separate reentrant and
12548         non-reentrant declarations, added _memmove declaration
12549         * device/lib/_memcpy.c: changed to use size_t instead of int,
12550         changed /4 to >>2 to avoid division library call
12551         * device/lib/_memcmp.c,
12552         * device/lib/_memset.c,
12553         * device/lib/_strncat.c,
12554         * device/lib/_strncpy.c,
12555         * device/lib/_strncmp.c: changed to use size_t instead of int
12556         * device/lib/_memmove.c: new file (fixed bug #772294)
12557         * device/lib/Makefile.in: added _memmove.c
12558         * device/lib/z80/asm_strings.s: fixed bug #772290
12559         * support/regression/tests/bitfields.c: attempt to fix host assertion
12560         failure on amd64-unknown-linux2.2
12561
12562 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12563
12564         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
12565         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
12566         * as/z80/asmain.c (main): fixed bug #801766
12567
12568 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
12569
12570         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
12571         compilers
12572
12573 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12574
12575         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
12576         reported in bug #800609
12577
12578 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
12579
12580         * Top header beautifications in src/pic16 directory:
12581           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
12582           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
12583           pcoderegs.h, ralloc.c, ralloc.h
12584         * main.c: added top header and GPL license notice
12585         * pcode.c: fixed the if-conditional warning
12586
12587 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
12588
12589         * device/lib/_mullong.c: replaced int by short for gcc
12590
12591 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12592
12593         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
12594         and JUMPTABLE iCodes properly now (worked by accident before)
12595         * src/mcs51/gen.c (leftRightUseAcc),
12596         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
12597         iCode properly now. Use getSize instead of nRegs since a & b
12598         aren't part of the nRegs tally.
12599
12600 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
12601
12602         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
12603         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
12604           before instructions that use the _STATUS register
12605
12606 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
12607
12608         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
12609         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
12610         fetching of the pointer
12611         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
12612         copied from genNearPointerSet()
12613         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
12614         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
12615         If they pop r0/r1 they must be called in the opposite order than aopOp().
12616         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
12617         (resp. --stack-auto), prepared for --xstack
12618
12619 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12620
12621         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
12622
12623 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
12624
12625         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
12626         these ports have their own __sdcc_external_start()
12627
12628 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
12629
12630         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
12631         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
12632         type for bits was changed. It resulted in bit variables becoming
12633         global, which is not permitted in PIC 14 assembly output.
12634
12635 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12636
12637         * doc/sdccman.lyx: various additions and updates. Rearranged sections
12638
12639 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12640
12641         Z80 and MCS51 linkers complaint if a public symbol is defined
12642         in more than one library module:
12643
12644         * as/mcs51/lklib.c
12645         * link/z80/lklib.c
12646         * as/mcs51/Makefile.in
12647
12648 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12649
12650         A few small changes that speed up the peephole optimizer.
12651
12652         * src/SDCCpeeph.c
12653
12654 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12655
12656         Try to make the peephole optimizer smarter by maintaining
12657         an association between the assembly source code and the
12658         iCodes that originated them. Put this information to use
12659         with a new peephole rule condition "notVolatile" so that
12660         the rules can be aggressive yet still safe.
12661
12662         * src/SDCCpeeph.c
12663         * src/SDCCpeeph.h
12664         * src/mcs51/gen.c
12665         * src/mcs51/peeph.def
12666
12667 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12668
12669         Fixed bug #741761
12670
12671         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
12672         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
12673         if the left or right operand symbols have the accuse flag set.
12674
12675 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12676
12677         Changed the type of the result of the ! (NOT) operator to char;
12678         previously it returned the same type as the source. This allows
12679         us to eliminate all the genFloatNot functions (all of its target
12680         implementations were very buggy) since !float can use the same
12681         code as !long now.
12682
12683         * src/SDCCicode.c (ast2iCode): ! returns char
12684         * src/mcs51/gen.c (genNot, genNotFloat),
12685         * src/ds390/gen.c (genNot, genNotFloat),
12686         * src/z80/gen.c (genNot, genNotFloat),
12687         * src/pic/gen.c (genNot, genNotFloat),
12688         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
12689
12690 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
12691
12692         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
12693         1. Interrupt would not compile properly. Ensure PCLATH register is saved
12694            during interrupts. Ensure WSAVE is located at a shared bank address.
12695         2. Fixed page selection in some places
12696         3. Fixed BTFSS/C to where necessary use registers directly and not simply
12697            the registers name strings.
12698         4. Fixed "signed / unsigned compare" compiler warnings.
12699         5. The PIC port manages its own allocation of the general purpose
12700            registers, but makes no attempt to reuse them. As a result when
12701            compiling it soon runs out of general purpose registers. Some
12702            additional code was added to the files pcode.c and device.c to walk
12703            through the function call tree and rename the registers so that they
12704            get reused.
12705
12706         * src/pic/device.c
12707         * src/pic/gen.c
12708         * src/pic/glue.c
12709         * src/pic/pcode.c
12710         * src/pic/pcode.h
12711         * src/pic/ralloc.c
12712         * src/pic/ralloc.h
12713         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
12714         genPlus() & genMinus() when the result is the same as left or right
12715
12716 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12717
12718         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
12719
12720 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12721
12722         Made bitfield a distinct type from bit so that bitfields
12723         convert as per ANSI C and bits retain their traditional
12724         boolean style behaviour. Implemented bitfield support in
12725         the z80 port.
12726
12727         * src/SDCCsymt.h,
12728         * src/SDCCsymt.c,
12729         * src/SDCCast.c,
12730         * src/cdbFile.c,
12731         * src/mcs51/gen.c,
12732         * src/ds390/gen.c: bit v bitfield split
12733         * src/z80/gen.c: New support for bitfields
12734         * support/regression/tests/bitfields.c: reenabled z80,
12735         added more tests
12736
12737 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12738
12739         Rules 246.x, 247.x relate to bitfields, the others speed up
12740         access to xdata mapped I/O devices.
12741
12742         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
12743
12744 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12745
12746         Cleaned up genPackBits and genUnpackBits and added two helper
12747         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
12748         for literal assignments in genPackBits (thanks to Frieder for
12749         reminding me).
12750
12751         * src/mcs51/gen.c
12752         * src/ds390/gen.c
12753
12754 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12755
12756         Fixed bug #748310 (pointer to function type mishandled when the
12757         function name is omitted). Also fixed a SIGSEGV when a function
12758         attribute (reentrant, etc) is used on a non-function or on a
12759         function but misplaced before the parameter list.
12760
12761         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
12762         bug #748310
12763         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
12764         * support/Util/SDCCerr.h,
12765         * support/Util/SDCCerr.c: Added func attr misuse error msg
12766
12767 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
12768
12769         Fixed bug #787649 by anonymous
12770         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
12771         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
12772
12773 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12774
12775         Fixed numerous bitfield problems.
12776
12777         * src/SDCC.y: More bitfield related error checking
12778         * src/SDCCsymt.h,
12779         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
12780         * support/Util/SDCCerr.h,
12781         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
12782         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
12783         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
12784         * support/regression/tests/bitfields.c: tests added
12785
12786 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12787
12788         Made the constant following the "interrupt" keyword optional. If
12789         omitted, the function will not automatically be given an entry
12790         in the interrupt vector table (similar to #pragma NOIV, but
12791         less syntacticly kludgy). The interrupt number is also now
12792         range checked. Also fixed a bug in the high order bit example
12793         in the manual.
12794
12795         * src/SDCC.y
12796         * src/SDCCmem.c
12797         * src/SDCCglue.c
12798         * src/SDCCsymt.h
12799         * support/Util/SDCCerr.c
12800         * support/Util/SDCCerr.h
12801         * doc/sdccman.lyx
12802
12803 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
12804
12805         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
12806         * src/SDCCicode.c (operandOperation): rewritten some ops
12807         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
12808         * src/SDCCsymt.c (computeType): literals are handled the same way as any
12809         other type
12810         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
12811         be re-activated by defining REDUCE_LITERALS)
12812         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
12813         unsigned, but are signed by default
12814         * src/SDCCval.c (constVal): rearranged
12815         * src/SDCCval.c (valMod): preliminary fix
12816         * src/SDCCval.c (valCastLiteral): use TYPE_* types
12817         * support/regression/literalop.c: added, work in progress
12818
12819 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12820
12821         Generate warnings for useless declarations like "char data;"
12822         that don't do what new users expect.
12823
12824         * src/SDCC.y
12825         * support/Util/SDCCerr.h
12826         * support/Util/SDCCerr.c
12827
12828 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
12829
12830         * src/SDCCval.c (valMult): fix overflow detection of negative int
12831
12832 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12833
12834         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
12835
12836         Changes to support big endian targets:
12837
12838         * src/ports.h
12839         * src/SDCCglue.c
12840         * src/avr/main.c
12841         * src/ds390/main.c
12842         * src/izt/i186.c
12843         * src/mcs51/main.c
12844         * src/pic/main.c
12845         * src/pic16/main.c
12846         * src/xa51/main.c
12847         * src/z80/main.c
12848
12849 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
12850
12851         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
12852         * device/lib/time.c: fixed warning "integer overflow in expression"
12853
12854 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
12855
12856         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
12857         * src/SDCCval.c (constVal): changed default to signed; hex and octal
12858         constants are unsigned; added recognition of "u" flag for unsigned
12859         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
12860         * src/SDCCval.c (valDiv, valMod): fixed signdness
12861         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
12862         signedness of modulo, left and right shift
12863         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
12864         * support/Util/SDCCerr.h: added warning W_INT_OVL
12865         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
12866         * src/SDCCast.c (ast_print): improved output of constants
12867
12868 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12869
12870         Fixed some warnings when building with MSVC:
12871
12872         * as/mcs51/asdata.c
12873         * as/z80/asdata.c
12874         * as/mcs51/asm.h
12875         * as/z80/asm.h
12876         * link/z80/aslink.h
12877         * link/z80/lkdata.c
12878         * link/z80/lkeval.c
12879         * link/z80/lkgb.c
12880         * link/z80/lkihx.c
12881         * link/z80/lks19.c
12882         * link/z80/lksym.c
12883         * support/cpp2/cpplib.c
12884         * src/ds390/gen.c
12885         * src/mcs51/gen.c
12886
12887 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
12888
12889         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
12890
12891 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12892
12893         * support/librarian/clean.mk: Do not remove Makefile.
12894         * support/librarian/Makefile: added.
12895
12896 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12897
12898         Added librarian to MSVC build:
12899         * all.dsp
12900         * sdcc.dsw
12901         * support/librarian/librarian.dsp
12902
12903         'configure' not needed for librarian, removed:
12904         * support/librarian/configure
12905         * support/librarian/configure.in
12906         * support/librarian/config_in.h
12907         * support/librarian/Makefile.in
12908
12909         Hopefully these ones built the librarian and the rest of sdcc properly:
12910         * Makefile
12911         * Makefile.common.in
12912
12913         Messed up 'configure', so revert to previous version:
12914         * configure
12915         * configure.in
12916
12917 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
12918
12919         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
12920         there, while the mantissa of a double is "only" 53 bits wide.
12921
12922 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12923
12924         Adding sdcclib to the build.  MSVC project coming soon.
12925         Files added/changed:
12926
12927         * support/librarian/clean.mk
12928         * support/librarian/configure
12929         * support/librarian/configure.in
12930         * support/librarian/config_in.h
12931         * support/librarian/Makefile.bcc
12932         * support/librarian/Makefile.in
12933         * support/librarian/sdcclib.c
12934         * Makefile.bcc
12935         * Makefile
12936         * Makefile.common.in
12937         * configure
12938         * configure.in
12939
12940 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12941
12942         Linker now complaints if linked modules have conflicting options, for
12943         example, one compiled using --model-large and another one compiled with
12944         --model-small.  The following files were modified:
12945
12946         * as/mcs51/asdata.c
12947         * as/mcs51/aslink.h
12948         * as/mcs51/asm.h
12949         * as/mcs51/asmain.c
12950         * as/mcs51/asout.c
12951         * as/mcs51/i51pst.c
12952         * as/mcs51/lkdata.c
12953         * as/mcs51/lklibr.c
12954         * as/mcs51/lkmain.c
12955         * as/z80/asdata.c
12956         * as/z80/asm.h
12957         * as/z80/asmain.c
12958         * as/z80/asout.c
12959         * as/z80/z80pst.c
12960         * link/z80/aslink.h
12961         * link/z80/lkdata.c
12962         * link/z80/lklibr.c
12963         * link/z80/lkmain.c
12964         * src/SDCCglue.c
12965
12966 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12967
12968         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
12969         as/mcs51/lklibr.c: Generate a warning when a library is not found.
12970
12971 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
12972
12973         * src/z80/mappings.i: fix _mul[us][int,long] entries
12974
12975 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12976
12977         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
12978
12979 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
12980
12981         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
12982         * support/regression/tests/bitopcse.c: added
12983         fixed warning:
12984         * src/avr/gen.c:
12985         * src/pic/gen.c:
12986         * src/pic16/gen.c:
12987         * src/z80/gen.c:
12988         * src/xa51/gen.c:
12989
12990 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12991
12992         added support for new library format to z80, gbz80 linkers:
12993         *link/z80/aslink.h
12994         *link/z80/lklex.c
12995         *link/z80/lklib.c
12996         *link/z80/lklist.c
12997
12998 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
12999
13000         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
13001         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
13002
13003 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
13004
13005         added DUMMY_READ_VOLATILE:
13006         * src/SDCC.y:
13007         * src/avr/gen.c:
13008         * src/xa51/gen.c:
13009         * src/z80/gen.c:
13010         * src/pic/gen.c:
13011         * src/pic16/gen.c:
13012         * src/mcs51/gen.c:
13013         * src/ds390/gen.c:
13014         * src/SDCCcse.c (algebraicOpts): many improvements
13015         * src/SDCCcse.h: removed algebraicOpts()
13016         * src/SDCCicode.c (picDummyRead): added
13017
13018 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13019
13020         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
13021         "Insufficient space in data memory".
13022
13023 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13024
13025         * src/mcs51/gen.c: fixed bug #771358
13026         * src/z80/gen.c: fixed bug #759087
13027
13028 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
13029
13030         * src/pic16/glue.c: minor cleanup by Vangelis
13031
13032 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13033
13034         * device/include/regc515c.h: fixed #758477
13035         * device/lib/_gptrget.c: saving some cycles in generic pointer get
13036         * device/lib/_gptrput.c: saved a few bytes
13037         * my tab spacing is 8, yours too?)
13038         * device/lib/_ser.c: process RX bytes earlier than TX bytes
13039         * device/lib/serial.c: process RX bytes earlier than TX bytes
13040         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
13041
13042 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13043
13044         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
13045
13046 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13047
13048     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
13049
13050 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
13051
13052         * device/lib/Makefile.in: bad fix, reverted to 1.43
13053
13054 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
13055
13056         * device/lib/Makefile.in: added missing z80 object files
13057
13058 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
13059
13060         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
13061         pic16 progress by Vangelis:
13062         * src/SDCCglobl.h:
13063         * src/SDCCmain.c:
13064         * src/pic/Makefile:
13065         * src/pic:
13066         * pic/Makefile:
13067         * pic16/device.c:
13068         * pic16/device.h:
13069         * pic16/gen.c:
13070         * pic16/gen.h:
13071         * pic16/genarith.c:
13072         * pic16/glue.c:
13073         * pic16/main.c:
13074         * pic16/pcode.c:
13075         * pic16/pcode.h:
13076         * pic16/pcodepeep.c:
13077         * pic16/peeph.def:
13078
13079 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13080
13081     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
13082
13083 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13084
13085     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
13086     added gbz80 build to MSVC project.
13087     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
13088     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
13089     from 8051 stuff and setup so it links using a .lnk file.
13090
13091 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13092
13093     * support/librarian/sdcclib.c: sdcc librarian.
13094     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
13095     with sdcclib.
13096
13097 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13098
13099     * as/mcs51/lkmain.c: properly handle extensions in function afile.
13100
13101 2003-07-02  Borut Razem <borut.razem AT siol.net>
13102
13103         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
13104         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
13105         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
13106         src/xa51/main.c, src/z80/main.c:
13107         virtualization of glue() function: each port has it's own glue function,
13108         which is accessed by do_glue function pointer in PORT.general structure
13109
13110 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
13111
13112         * DS800C400 fun, improved ROM interface and tinibios.
13113
13114 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
13115
13116         * More support for DS80C400. Now includes beginning of interface to ROM.
13117
13118 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
13119
13120         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
13121
13122 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13123
13124         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
13125
13126 2003-06-19  Borut Razem <borut.razem AT siol.net>
13127
13128         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
13129
13130 2003-06-19  Borut Razem <borut.razem AT siol.net>
13131
13132         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
13133         fixed Z80 port - crt0.o: cannot open.
13134
13135 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
13136
13137         * support/Util/MySystem.c (merge_command): revert bad fix
13138
13139 2003-06-18  Borut Razem <borut.razem AT siol.net>
13140
13141         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
13142
13143 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13144
13145         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
13146         option --use-stdout sends errors to stdout instead of stderr.
13147
13148 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
13149
13150         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
13151
13152 2003-06-15  Borut Razem <borut.razem AT siol.net>
13153
13154         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
13155         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
13156         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
13157         fixed width array of pointers replaced with sets;
13158         multiple include and lib paths ared transferred to preprocessor and linker
13159         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
13160         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
13161         fixed width array of pointers
13162         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
13163         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
13164         fixupPath(), getPathDifference()
13165         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
13166         fixed width array of pointers
13167
13168 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
13169
13170         * src/pic16/ralloc.c: fix warnings
13171         * src/pic16/pcode.c: fix warning
13172
13173 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
13174
13175          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
13176         know all the details, but essentially this set of changes enable
13177         the pic16 port to generate movff instructions and generate assembler
13178         directives,
13179         * src/SDCCmain.c:
13180         * src/pic16/gen.c:
13181         * src/pic16/glue.c:
13182         * src/pic16/pcode.c:
13183         * src/pic16/device.c:
13184         * src/pic16/main.c:
13185         * src/pic16/pcode.h:
13186         * src/pic16/pcoderegs.c:
13187         * src/pic16/ralloc.c:
13188         * src/pic16/ralloc.h:
13189
13190 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13191
13192         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
13193         added option --vc, so sdcc errors and warnings are compatible with
13194         Microsoft Visual Studio.
13195
13196 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13197
13198         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
13199           device/lib/libfloat.lib: added atof function.
13200
13201 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
13202
13203         * doc/sdccman.lyx: updated to Lyx 1.3
13204         * doc/cdbfileformat.lyx: updated to Lyx 1.3
13205         * doc/test_suite_spec.lyx: updated to Lyx 1.3
13206         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
13207
13208 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
13209
13210         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
13211
13212 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13213
13214         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
13215           additions to the "related tools/documentation" section
13216
13217 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
13218
13219         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
13220
13221 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
13222
13223         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
13224         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
13225
13226 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
13227
13228         * doc/sdccman.lyx: fix double dash and other minor things
13229         * doc/Makefile: fix double dash
13230
13231 2003-05-28  Karl Bongers(patches from Martin Helmling)
13232         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
13233           condition and ignore commands.
13234
13235 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13236
13237         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
13238           is in parts still quite out of date, I did changes as far as I felt makes sense
13239           for a non-native english speaker.
13240           Please feel free to add to the manual or to correct my changes.
13241         * doc/Makefile: undid touching the date of intermediate tex files.
13242
13243 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13244
13245         * doc/sdccman.lyx: Manual has an index now
13246
13247 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
13248
13249         Finalize muluint/mulsint and mululong/mulslong merging:
13250         * device/lib/_mulint.c
13251         * device/lib/_mullong.c
13252         * device/lib/gbz80/mul.s
13253         * device/lib/gbz80/stubs.s
13254         * device/lib/z80/mul.s
13255         * device/lib/z80/stubs.s
13256         * src/SDCCsymt.c (initCSupport)
13257
13258 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13259
13260         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
13261         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
13262           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
13263           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
13264           instead of /Zm500.
13265
13266 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13267
13268         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
13269           the regression tests I'm not brave enough to enable 245.b, 245.c
13270         * doc/sdccman.lyx: added latex preamble for hyperref package.
13271           Using pdflatex this will give you a hyperlinked pdf file with
13272           bookmarks. (prepend '%' before /usepackage if this breaks something)
13273
13274 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13275
13276          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
13277
13278 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
13279
13280         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
13281
13282 2003-05-21    <johan AT balder>
13283
13284         * src/SDCCglue.c (printIval): fixed bug #739934
13285
13286 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
13287
13288         Applied patch from bug 737905 (renamed yylineo to mylineno):
13289         * src/altlex.c
13290         * src/SDCCast.c
13291         * src/SDCglobl.h
13292         * src/SDCC.lex
13293         * src/SDCCsymt.c
13294         * src/SDCCval.c
13295         * src/pic16/pcode.c: Cleaned warnings
13296         * src/pic16/pcodeflow.c: Cleaned warnings
13297         * src/pic16/pcoderegs.c: Cleaned warnings
13298
13299 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
13300
13301         * src/pic16/pcode.c: Cleaned warnings
13302         * src/pic16/pcodepeep.c: Cleaned warnings
13303         * src/pic16/ralloc.c: Cleaned warnings
13304
13305 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
13306
13307         * doc/sdccman.lyx: fixed bug 739745
13308         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
13309
13310 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
13311
13312         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
13313         it can be defined with CFLAGS when running configure
13314         * src/SDCCmain.c: fixed compiling + linking with object files
13315
13316 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
13317
13318         * configure.in: configure for pic16 port,
13319             added --disable-pic16-port
13320         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
13321         * src/SDCCmain.c: linkOptions is changed to set *,
13322             added if/endif conditional macros to remove options help
13323             messages from optionsTable when a port is not configured, added
13324             support for the PIc16 port in the ports table, when executing
13325             the compiler with no port specified on command line, a default
13326             port is selected with the new macro DEFAULT_PORT which is
13327             defined in port.h, in setDefaultOptions() linkOptions is removed
13328             from initialization assignment, since now it is a set,
13329             parseCmdLine uses setParseWithComma for linkOptions, in
13330             linkEdit() linkOptions are accessed with new function indexSet()
13331             which returns the i'th item of a set variable. See SDCCset.c, in
13332             linkEdit() when calling buildCmdLine(), added linkOptions as
13333             last argument. Now users can pass arguments to gplink via the
13334             -Wl option, main() uses pic16glue() to glue up pic16 programs
13335         * src/SDCCpeeph.c: various changes to support pic16
13336         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
13337             return the i'th item of the set
13338         * src/SDCCset.h: added function prototype for indexSet()
13339         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
13340         * src/clean.mk: added pic16 in CLEANALLPORTS variable
13341         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
13342             added macro DEFAULT_PORT
13343         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
13344         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
13345             generated
13346         * src/pic16/glue.c: commented out some error producing lines
13347         * src/pic16/main.c: __config directives are commented out to stop
13348             gpasm complaining and test the linkage with gplink, _linkCmd and
13349             _asmCmd changed to be more gplink and gpasm friendly
13350         * src/pic16/peeph.def: peep rule 3 is commented out, since it
13351             produced an error when parsed, peep rule 12 is added to utilize
13352             movff, but it is commented out since the pCode does not support
13353             yet a command with 2 address arguments
13354
13355 2003-05-18    <johan AT balder>
13356
13357         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
13358         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
13359 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
13360
13361         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
13362   Added feature to script commands from file.
13363
13364 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
13365
13366         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
13367         * src/SDCCutil.c: include ctype.h for win32
13368
13369 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
13370
13371         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
13372
13373 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
13374
13375         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
13376   Fixed so you can set breakpoints prior to run, run does not stop
13377   on entry now.  Add tbreak.  Other enhancements and fixes for use
13378   with ddd.
13379
13380 2003-05-12  Borut Razem <borut.razem AT siol.net>
13381
13382         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
13383
13384 2003-05-11  Borut Razem <borut.razem AT siol.net>
13385
13386         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
13387         the path of bin directory, so that PATH is the only env. variable, which has to be set
13388         in case of standard installation.
13389         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
13390         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
13391         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
13392
13393 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
13394
13395         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
13396         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
13397         temp files are in the port dir; clean the gen/test directory when
13398         generating new test.c
13399         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
13400         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
13401         * support/regression/tests/zeropad.c: added
13402
13403 2003-05-09    <johan AT balder>
13404
13405         * src/SDCCglue.c: fixed bug #597940
13406
13407 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
13408
13409         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
13410   cache sfr, optimize next,step, fix off by one sourceline,
13411   support ddd list function.
13412         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
13413
13414 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
13415
13416         * support/regression/HTMLgen.py: added compare_s2f()
13417         * support/regression/Makefile: redo 1.27
13418         * support/regression/generate-cases.py: redo 1.5
13419
13420 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
13421
13422         * support/regression/tests/float.c: workaround 33 bit hex constant
13423         * support/regression/tests/simplefloat.c: fix division for host
13424
13425 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
13426
13427         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
13428         that tame's the PIC's over-aggressive optimizer.
13429
13430 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13431
13432          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
13433          support for MSVC.
13434
13435 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
13436
13437         Initial support for DS80C400. "Hello world" runs on TINIm400
13438         (with polled I/O).
13439
13440 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
13441
13442          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
13443          * Some notes on ddd usage added in debugger/README
13444          Martin Helmling adding more features and fixes for ddd GUI debugger.
13445          Code added for nexti, stepi, up, down, and other adjustments.
13446
13447 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
13448
13449         * src/pic/pCodepeep.c non-wildcard asmops are now handled
13450         * src/pic/peeph.def Added two rules to optimize carry manipulation
13451         * src/pic/* removed debug printfs
13452
13453 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
13454
13455         * debugger/mcs51/cmd.c: added header newalloc.h
13456
13457 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
13458
13459         * as/Makefile: new EXEEXT
13460         * as/z80/Makefile: remove trailing slash of BUILDIR
13461         * as/z80/clean.mk: new EXEEXT
13462         * Makefile.common.in: add to CFLAGS (and others), don't replace it
13463         * support/cpp2/Makefile.in: new EXEEXT
13464         * src/pic/glue.c (pic14emitRegularMap): fixed warning
13465
13466 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
13467
13468         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
13469         EXEEXT was introduced to fix all related problems with targets
13470         "clean", "install" and "uninstall"; a couple of further flaws
13471         especially with "clean" have been fixed too
13472         * as/mcs51/Makefile.in
13473         * as/mcs51/clean.mk
13474         * as/z80/Makefile
13475         * Makefile
13476         * clean.mk
13477         * debugger/mcs51/Makefile.in
13478         * debugger/mcs51/clean.mk
13479         * link/z80/Makefile
13480         * link/z80/Makefile.in
13481         * link/z80/clean.mk
13482         * link/Makefile
13483         * packihx/Makefile.in
13484         * packihx/clean.mk
13485         * sim/ucsim/Makefile
13486         * sim/ucsim/clean.mk
13487         * sim/ucsim/avr.src/Makefile.in
13488         * sim/ucsim/avr.src/clean.mk
13489         * sim/ucsim/s51.src/Makefile.in
13490         * sim/ucsim/s51.src/clean.mk
13491         * sim/ucsim/xa.src/Makefile.in
13492         * sim/ucsim/xa.src/clean.mk
13493         * sim/ucsim/z80.src/Makefile.in
13494         * sim/ucsim/z80.src/clean.mk
13495         * sim/ucsim/main_in.mk
13496         * sim/ucsim/packages_in.mk
13497         * sim/ucsim/gui.src/Makefile.in
13498         * sim/ucsim/gui.src/serio.src/Makefile.in
13499         * sim/ucsim/gui.src/serio.src/clean.mk
13500         * src/Makefile.in
13501         * src/clean.mk
13502         * support/cpp2/Makefile.in
13503         * support/cpp2/clean.mk
13504         * support/makebin/Makefile
13505         * support/makebin/clean.mk
13506         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
13507         * doc/sdccman.lyx: --program-suffix no longer needed
13508
13509 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
13510
13511          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
13512          Martin Helmling added support for ddd GUI debugger.
13513          Code added to display assembly, set variables, and other commands
13514          to interface to ddd.
13515
13516 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
13517
13518         * as/Makefile: fix target clean
13519         * as/clean.mk: fix target clean
13520         * as/z80/clean.mk: fix target clean
13521
13522 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
13523
13524         * Makefile.common.in: added  AT EXEEXT AT
13525         * configure.in: removed all mingw32 stuff
13526         * configure: rebuilt from configure.in
13527         * doc/sdccman.lyx: updated section "installation"
13528         * support/scripts/sdcc_mingw32: adapted to configure
13529         * support/scripts/sdcc_cygwin_mingw32: added
13530
13531 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
13532
13533         * src/pic Added object file support for the PIC port
13534         * src/pic Applied patch from Craig Franklin (this started the object file support)
13535         * src/regression Updated the PIC regression tests for object files
13536
13537 2003-04-20  Borut Razem <borut.razem AT siol.net>
13538
13539         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
13540           lklex.c: In function `getfid':
13541           lklex.c:203: warning: array subscript has type `char'
13542         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
13543           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
13544         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
13545           stack handling macros
13546
13547 2003-04-19  Borut Razem <borut.razem AT siol.net>
13548
13549         * "handling space characters in file path" task:
13550         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
13551         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
13552         * support/Util/MySystem.h: make it self-sufficient
13553         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
13554           src/z80/main.c, sdcc/as/mcs51/lklex.c:
13555           handling space characters in file path
13556         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
13557           (it will be used by assemblers, which have their own includes, e.g. gpasm)
13558         * support/Util/MySystem.c: handling space characters in executable's path
13559
13560 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
13561
13562         * as/z80/Makefile: fix permanent rebuild of z80
13563         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
13564         * support/regression/tests/bitfields.c: added Johan's bitfields.c
13565
13566 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
13567
13568         * src/SDCCopt.c: add special case optimization to replace modulo by
13569           a power of two with a bitwise AND.
13570
13571 2003-04-18    <johan AT balder>
13572
13573         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
13574
13575 2003-04-17    <johan AT balder>
13576
13577         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
13578         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
13579
13580 2003-04-13  Borut Razem <borut.razem AT siol.net>
13581
13582         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
13583         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
13584           fixed mingw problem in adl_NORMALIZE_PATH
13585
13586 2003-04-12  Borut Razem <borut.razem AT siol.net>
13587
13588         * fixed "#pragma SAVE/RESTORE can not be nested":
13589         * src/SDCC.lex: reworked pragma handling functions
13590         * sdcc/src/SDCCglobl.h: reworked stack handling macros
13591         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
13592
13593 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
13594
13595         * src/SDCCutil.c (pathEquivalent): defined but not used
13596         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
13597         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
13598         * configure: rebuilt from configure.in
13599         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
13600         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
13601         * device/include/Makefile.in: replace sdcc_datadir
13602         * device/lib/Makefile.in: replace sdcc_datadir
13603         * Makefile.common.in: add LDFLAGS from configure
13604         * packihx/Makefile.in: use LDFLAGS
13605         * src/Makefile.in: use LDFLAGS
13606         * support/cpp2/Makefile.in: add LDFLAGS from configure
13607         * support/makebin/Makefile: use LDFLAGS
13608         * .version: bumped version number to 2.3.5
13609
13610 2003-04-12  Borut Razem <borut.razem AT siol.net>
13611
13612         * completed "different paths" task:
13613         * src/SDCCmacro.c: fixed bug in handling quotes
13614         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
13615         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
13616
13617 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
13618
13619         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
13620
13621 2003-04-11 kevin Vigor <kevin AT vigor.nu>
13622
13623         * ds390/gen.c ds390/peeph.def: fix bug 706781
13624
13625 2003-04-11  Borut Razem <borut.razem AT siol.net>
13626
13627         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
13628
13629 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
13630
13631         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
13632         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
13633          set - this bit used to not be set...).
13634         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
13635           bad code in PIC Port
13636         * src/regression/and2.c added to test bug 609268
13637         * src/regression/Makefile added and2.c to regression test
13638
13639
13640 2003-04-08    <johan AT CP255758-A>
13641
13642         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
13643         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
13644         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
13645
13646 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
13647
13648         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
13649         fix bug #487815
13650         * support/cpp2/Makefile.in: fix bug #487815
13651         * configure: rebuilt from configure.in
13652         * Makefile.common.in: docdir changed, new path suffixes
13653         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
13654         * sdcc_vc_in.h: reflect changes from sdccconf.h
13655         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
13656         * src/SDCCutil.h: remove BINDIR hack
13657         * doc/sdccman.lyx: update new path hierarchy
13658
13659 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
13660
13661         * src/SDCCpeeph.c: added okToRemoveSLOC test
13662
13663 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
13664
13665         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
13666
13667 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
13668
13669         * src/SDCCpeeph.c: added labelIsReturnOnly test
13670         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
13671
13672 2003-04-05    <johan AT balder>
13673
13674         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
13675         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
13676         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
13677         * src/SDCCast.c: fixed a warning
13678         * src/SDCCast.h: fixed a warning
13679         * src/SDCCicode.c (operandFromAst): fixed a warning
13680
13681 2003-04-04    <johan AT balder>
13682
13683         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
13684         * src/SDCCast.c (decorateType): fixed bug #715076
13685         * src/SDCC.y: fixed bug #702907
13686
13687 2003-04-03    <johan AT balder>
13688
13689         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
13690         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
13691         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
13692         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
13693         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
13694
13695 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
13696
13697         * _decdptr.c: fix return values
13698         * _gptrget.c: fix return values
13699         * _gptrgetc.c: fix return values
13700         * _gptrput.c: fix return values
13701         * _mulint.c: fix return values
13702         * as/z80/Makefile: fix 'make -j' problem
13703
13704 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
13705
13706         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
13707         * configure.in: big cleanup, updated to autoconf 2.5x
13708         * configure: rebuilt from configure.in
13709         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
13710         * sdcc_vc_in.h: reflect changes from sdccconf.h
13711         * doc/Makefile: fixed a flaw in "make install"
13712
13713 2003-04-02    <johan AT balder>
13714
13715         * src/ds390/gen.c (genCmp): no comments
13716         * src/mcs51/gen.c (genCmp): no comments
13717         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
13718         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
13719
13720 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
13721
13722         * support/regression/generate-cases.py: place generated file in given sub directory
13723         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
13724         * support/regression/Makefile: improvements for 'make -j';
13725         side effect: it's simpler and faster now
13726
13727 2003-03-31  Borut Razem <borut.razem AT siol.net>
13728
13729         * src/z80/main.c: link-{port} and as-{port} defined without path
13730         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
13731
13732 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
13733
13734         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
13735
13736 2003-03-30  Borut Razem <borut.razem AT siol.net>
13737
13738         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
13739           changed type of list parameter to set
13740         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
13741         * src/port.h: changed type of do_assemble() parameter to set
13742         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
13743           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
13744           definition of "cppoutfilename" macro with NULL value in preProcess()
13745         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
13746         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
13747         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
13748           replaced with set *binPathSet
13749         * shash_add() deallocates the item, if allready exsists, before adding the new one
13750         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
13751
13752 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
13753
13754         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
13755           a nested for loop bug in the PIC port
13756         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
13757           for loops
13758
13759 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
13760
13761         * support/Util/dbuf.h: remove C++ stuff to make it portable
13762
13763 2003-03-28  Borut Razem <borut.razem AT siol.net>
13764
13765         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
13766           literal strings in stringLiteral()
13767         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
13768         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
13769           to the project
13770
13771 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
13772
13773         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
13774
13775 2003-03-26    <johan AT balder>
13776
13777         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
13778         * src/ds390/gen.c (saveRegisters): catched symbol abuse
13779         * src/SDCCast.c (decorateType): fixed " -v < 3"
13780
13781 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
13782
13783         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
13784         Added Lenny Story's debug infrastructure changes:
13785         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
13786         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
13787         * src/cdbFile.c: added
13788         * src/SDCCdebug.c: added
13789         * src/SDCCdebug.h: added
13790         * src/SDCCast.c (createFunction)
13791         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
13792         * src/SDCCmain.c (parseCmdLine, main)
13793         * src/SDCCmem.c (redoStackOffsets)
13794         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
13795         * src/SDCCsymt.h
13796         * src/common.h
13797         * src/avr/gen.c (genAVRCode)
13798         * src/ds390/gen.c (gen390Code)
13799         * src/mcs51/gen.c (gen51Code)
13800         * src/pic/gen.c (genpic14Code)
13801         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
13802         * src/xa51/gen.c (genXA51Code)
13803         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
13804
13805 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13806
13807         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
13808         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
13809
13810 2003-03-22    <johan AT balder>
13811
13812         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
13813
13814 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
13815
13816         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
13817         * doc/cdbfileformat.lyx: added, written by Lenny Story
13818         * doc/Makefile: added cdbfileformat.lyx
13819         * doc/clean.mk: added cdbfileformat.lyx
13820
13821 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
13822
13823         * src/mcs51/peeph.def: fix bug #705773
13824
13825 2003-03-20    <johan AT balder>
13826
13827         An sfr/sbit can have an "at #" AND an initializer
13828         * src/SDCCsymt.c (checkSClass):
13829         * src/SDCCmem.c (allocGlobal):
13830         * src/SDCCmem.c (allocLocal):
13831         * src/SDCCast.c (createBlock):
13832
13833 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
13834
13835         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
13836
13837 2003-03-16    <johan AT balder>
13838
13839         Undid the hackup of const and volatile, the problem is much bigger
13840         * src/SDCC.y:1.65
13841         * src/SDCCast.c:1.171
13842         * src/SDCCglue.c:1.138
13843         * src/SDCCicode.c:1.146
13844         * src/SDCCsymt.c:1.150
13845         * src/SDCCval.c:1.65
13846
13847 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
13848
13849         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
13850         * src/ds390/gen.c (genAddrOf): fixed bug #704087
13851
13852 2003-03-13    <johan AT balder>
13853
13854         Hackup const and volatile modifiers in type chains a bit:
13855         * src/SDCC.y:1.63
13856         * src/SDCCast.c:1.169
13857         * src/SDCCglue.c:1.136
13858         * src/SDCCicode.c:1.143
13859         * src/SDCCsymt.c1.146
13860         * src/SDCCsymt.h1.59
13861         * src/SDCCval.c:1.63
13862
13863 2003-03-12    <johan AT balder>
13864
13865         * src/SDCCBBlock.h: more LRH debugging junk
13866         * src/SDCCcflow.h: more LRH debugging junk
13867         * src/SDCCloop.c: more LRH debugging junk
13868         * src/SDCC.y (struct_declaration): fixed bug #697590
13869         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
13870         * src/ds390/gen.c (aopForRemat): fixed bug #700031
13871         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
13872
13873 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
13874         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
13875         test function names must now match exactly).
13876         * src/SDCCcse.c: added special case in findCheaperOp to allow
13877         extending a short integer. Makes less awful code for bug 700121 test case.
13878
13879 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13880
13881         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
13882         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
13883
13884 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
13885
13886         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
13887         actually called (operandsNotEqual() was called for all
13888         operandsNotEqualX tests).
13889
13890 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
13891
13892         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
13893         with shorter literals. Fixes bug 700121.
13894
13895 2003-03-11    <johan AT balder>
13896
13897         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
13898
13899 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
13900
13901         * src/SDCCloop.c (mergeRegions): an evil beast is dead
13902         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
13903
13904 2003-03-10  Borut Razem <borut.razem AT siol.net>
13905
13906         * src/SDCCmain.c: pipe preprocessor's output
13907         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
13908         * sdcc_vc_in.h: define pclose as _pclose for WIN32
13909         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
13910         which closes all pipes in pipeSet set
13911         * src/SDCCset.c: free deleted item in function deleteSetItem()
13912         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
13913         moved from z80 to src subproject
13914         * .version: increased version number to 2.3.4
13915
13916 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
13917
13918         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
13919         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
13920         * support/regression/ports/xa51/spec.mk: fix typo
13921
13922 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
13923
13924         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
13925
13926 2003-03-09  Borut Razem <borut.razem AT siol.net>
13927
13928         * src/SDCCmain.c: pipe preprocessor's output
13929         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
13930         * sdcc_vc_in.h: define pclose as _pclose for WIN32
13931         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
13932         which closes all pipes in pipeSet set
13933         * src/SDCCset.c: free deleted item in function deleteSetItem()
13934         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
13935         moved from z80 to src subproject
13936
13937 2003-03-09  Borut Razem <borut.razem AT siol.net>
13938
13939         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
13940         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
13941         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
13942         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
13943         * src/SDCCglobl.h: unification of WIN32 native definitions
13944
13945 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13946
13947         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
13948
13949 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
13950
13951         * src/configure.in:   check for endianess (even while cross-compiling)
13952         * src/configure:      check for endianess (even while cross-compiling)
13953         * src/configure_in.h: check for endianess (even while cross-compiling)
13954         * src/avr/gen.c:        remove old endianess stuff
13955         * src/mcs51/gen.c:      remove old endianess stuff
13956         * src/ds390/gen.c:      remove old endianess stuff
13957         * src/pic/gen.c:        remove old endianess stuff
13958         * src/pic/genarith.c:   remove old endianess stuff
13959         * src/pic/glue.c:       fix endianess check
13960         * src/pic16/gen.c:      remove old endianess stuff
13961         * src/pic16/genarith.c: remove old endianess stuff
13962         * src/pic16/glue.c:     fix endianess check
13963         * src/xa51/gen.c:       remove old endianess stuff
13964         * src/z80/gen.c:        fix endianess check
13965         * src/SDCCglue.c:       fix endianess check
13966         * src/ds390/peeph.def: fix bug 700036
13967
13968 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
13969
13970         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
13971         * src/configure: find appropriate data-types on host for SDCC's int and long
13972         * src/configure.in: find appropriate data-types on host for SDCC's int and long
13973         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
13974         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
13975
13976 2003-03-07    <johan AT balder>
13977
13978         Just a big NOOP:
13979                 some minor cleanups before the big shot
13980                 OP_DEFS and OP_USES now use Kevin's protection
13981                 new option --nolabelopt
13982
13983         * src/SDCCBBlock.c:
13984         * src/SDCCast.c,:
13985         * src/SDCCcflow.c:
13986         * src/SDCCcse.c:
13987         * src/SDCCicode.c:
13988         * src/SDCCicode.h:
13989         * src/SDCClabel.c:
13990         * src/SDCCloop.c:
13991         * src/SDCCmain.c:
13992         * src/ds390/ralloc.c:
13993         * src/mcs51/ralloc.c:
13994         * src/pic/ralloc.c:
13995         * src/xa51/ralloc.c:
13996         * src/z80/ralloc.c:
13997
13998 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
13999
14000         * src/pic/pcode.c (get_op): fix 64 bit warnings
14001         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
14002         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
14003         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
14004         * support/regression/tests/malloc.c: fix 64 bit warnings
14005
14006 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
14007
14008         * src/mcs51/gen.c (genMinus): fixed bug 696436
14009
14010 2003-03-02  Borut Razem <borut.razem AT siol.net>
14011
14012         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
14013
14014 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
14015
14016         * configure.in: test for mkstemp
14017         * sdccconf_in.h: add HAVE_MKSTEMP
14018
14019 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
14020
14021         * device/include/ctype.h: removed warning while using --stack-auto
14022         * device/include/malloc.h: removed warning while using --stack-auto
14023         * device/include/string.h: removed warning while using --stack-auto
14024
14025 2003-02-23  Borut Razem <borut.razem AT siol.net>
14026
14027         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
14028         because NDEBUG is defined (see man assert)
14029         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
14030
14031 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14032
14033         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
14034         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
14035
14036 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14037
14038         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
14039         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
14040
14041 2003-02-18    <johan AT balder>
14042
14043         * as/mcs51/asmain.c (asmbl): module can start with a digit
14044         * as/z80/asmain.c (asmbl): module can start with a digit
14045
14046 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
14047
14048         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
14049         * src/asm.c: fix pipe() for Mingw32
14050
14051 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
14052
14053         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
14054         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
14055         make -V work again; --c1mode reads now from stdin
14056         * doc/sdccman.lyx: added --c1mode
14057         * support/Util/SDCCerr.c: new messages for c1 mode
14058         * support/Util/SDCCerr.h: new messages for c1 mode
14059         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
14060
14061 2003-02-15    <johan AT balder>
14062
14063         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
14064
14065 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
14066
14067         * doc/sdccman.lyx: Environment variables, -o and other minor things
14068
14069 2003-02-14    <johan AT balder>
14070
14071         * src/xa51/main.c: before anyone really tries to use it :)
14072
14073         * Install doc's in share/sdcc/doc
14074         * removed some obsolete files
14075         * Do a proper make distclean and uninstall
14076         M Makefile.common.in
14077         R sdccbuild.sh
14078         M as/Makefile
14079         M device/include/Makefile.in
14080         M device/lib/Makefile.in
14081         M doc/sdccman.lyx
14082         M link/Makefile
14083         M sim/ucsim/doc/Makefile.in
14084         M src/clean.mk
14085         R src/avr/peeph.rul
14086         R src/xa51/peeph.rul
14087         M support/cpp2/Makefile.in
14088         M support/makebin/Makefile
14089
14090
14091 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
14092
14093         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
14094
14095 2003-02-10  Borut Razem <borut.razem AT siol.net>
14096
14097         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
14098         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
14099         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
14100         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
14101         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
14102         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
14103         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
14104         src/z80/Makefile.bcc: Borland Makefile cleanup
14105         * as/z80/Makefile.bcc: Added Borland Makefile
14106         * support/cpp2/borland.h: Removed
14107
14108 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
14109
14110         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
14111         * src/SDCC.lex: new pragma NOIV
14112         * src/SDCCglobl.h: new pragma NOIV
14113         * src/SDCCmem.c: new pragma NOIV
14114
14115 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
14116
14117         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
14118
14119 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
14120
14121         * src/SDCCmain.c: signal handling is switched off by --debug
14122         * doc/Makefile: small fix for install; use clean.mk again
14123         * doc/clean.mk: clean *.pdf and *.html too
14124
14125 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
14126
14127         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
14128         * device/lib/printfl.c: fix a ds390 bug by making it portable
14129         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
14130         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
14131         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
14132         * debugger/mcs51/cmd.c: converted multi-line string literals
14133         * sim/ucsim/globals.cc: converted multi-line string literals
14134         * src/SDCCmain.c: introduced signal handler to remove temp files
14135         * doc/Makefile: small tweaks, implement clean
14136         * doc: removed generated files
14137
14138 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14139
14140         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
14141         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
14142         Address Record is not correctly generated for DS390."
14143
14144 2003-02-02  Borut Razem <borut.razem AT siol.net>
14145
14146         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
14147         * as/mcs51/asm.h: fixed compilation with Borland C
14148         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
14149         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
14150         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
14151         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
14152         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
14153         src/z80/Makefile.bcc: delete $(LIB) only if exist
14154         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
14155
14156 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
14157
14158         * device/include/malloc.h: introduced NULL
14159         * device/include/string.h: introduced NULL
14160         * device/include/stdlib.h: introduced NULL
14161         * device/lib/_memcpy.c: removed NULL
14162         * device/lib/_strcat.c: removed NULL
14163         * device/lib/_strchr.c: removed NULL
14164         * device/lib/_strcmp.c: removed NULL
14165         * device/lib/_strcpy.c: removed NULL
14166         * device/lib/_strcspn.c: removed NULL
14167         * device/lib/_strlen.c: removed NULL
14168         * device/lib/_strncat.c: removed NULL
14169         * device/lib/_strncmp.c: removed NULL
14170         * device/lib/_strncpy.c: removed NULL
14171         * device/lib/_strpbrk.c: removed NULL
14172         * device/lib/_strrchr.c: removed NULL
14173         * device/lib/_strspn.c: removed NULL
14174         * device/lib/_strstr.c: removed NULL
14175         * device/lib/_strtok.c: removed NULL
14176         * device/lib/malloc.c: removed NULL, include own header
14177
14178 2003-02-02    <johan AT balder>
14179
14180         * 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
14181         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
14182         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
14183         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
14184         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
14185         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
14186
14187 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14188
14189         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
14190         area 'DATA'"
14191
14192 2003-02-01    <johan AT balder>
14193
14194         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
14195
14196 2003-01-31    <johan AT CP255758-A>
14197
14198         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
14199
14200 2003-01-30    <johan AT balder>
14201
14202         * src/SDCCBBlock.c: automatic bug detection
14203         * src/SDCCicode.c: automatic bug detection
14204
14205 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14206
14207         * src/SDCCglobl.h:   now --xram-size 0 works
14208         * src/SDCCmain.c:    now --xram-size 0 works
14209
14210 2003-01-29    <johan AT balder>
14211
14212         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
14213
14214 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14215
14216         * as/mcs51/aslink.h: Added options --xram-size and --code-size
14217         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
14218         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
14219         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
14220         * src/SDCCglobl.h:   Added options --xram-size and --code-size
14221         * src/SDCCmain.c:    Added options --xram-size and --code-size
14222
14223 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
14224
14225         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
14226         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
14227
14228 2003-01-27    <johan AT balder>
14229
14230         * src/SDCC.y: fixed bug #613764
14231
14232 2003-01-26    <johan AT balder>
14233
14234         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
14235         * src/SDCCsymt.h: fixed bug #673374
14236         * src/SDCCglue.c: fixed bug #661910
14237         * src/SDCCast.c: fixed bug #458099 and 673374
14238
14239 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
14240
14241         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
14242         * as/mcs51/strcmpi.h: added
14243         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
14244         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
14245         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
14246         * as/mcs51/assym.c: strcmpi -> as_strcmpi
14247         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
14248         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
14249         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
14250         * as/mcs51/Makefile.aslink: new module strcmpi
14251         * as/mcs51/Makefile.asx8051: new module strcmpi
14252         * as/mcs51/Makefil.bcc: new module strcmpi
14253         * as/mcs51/Makefile.in: new module strcmpi
14254         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
14255
14256 2003-01-26    <johan AT balder>
14257
14258         * src/SDCCglue.c: reverted back to 1.124
14259         * src/SDCCast.c: reverted back to 1.156
14260         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
14261
14262 2003-01-25    <johan AT balder>
14263
14264         * src/SDCCglue.c: A better fix for bug #661910
14265         * src/SDCCast.c: A better fix for bug #661910
14266         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
14267
14268 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
14269
14270         * src/Makefile.in: remove spawn.o
14271         * src/SDCCmain.c: remove spawn.h
14272         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
14273         * src/spawn.c: removed
14274         * src/spawn.h: removed
14275         * support/regression/ports/ds390/spec.mk: link with -r
14276
14277 2003-01-24    <johan AT CP255758-A>
14278
14279         * src/ds390/gen.c (aopOp): fixed bug #667458
14280         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
14281         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
14282         (createIvalCharPtr): an ival doesn't always have a storage class anymore
14283
14284 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
14285
14286         * src/mcs51/peeph.def: better assembler identation by Frieder
14287         * src/mcs51/gen.c: better assembler identation by Frieder
14288
14289 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
14290
14291         * as/z80/string.h: removed for gcc 3.2
14292         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
14293         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
14294
14295 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
14296
14297         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
14298         * src/SDCCpeeph.c (replaceRule): fix bug #663503
14299         * support/regression/Makefile: separate temp files for ports
14300         * support/regression/generate-cases.py: separate temp files for ports
14301         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
14302         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
14303
14304 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
14305
14306         * moved tinitalk to device/examples/ds390
14307
14308 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
14309
14310         * as/mcs51/lkmem.c: rflag is for DS390
14311         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
14312         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
14313                          (linkEdit): move mem- and map-files the same way as ihx-files
14314         * src/z80/main.c (_setDefaultOptions): removed --generic
14315         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
14316         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
14317         * src/pic/glue.c (picglue): --c1mode works again
14318         * src/pic16/glue.c (pic16glue): --c1mode works again
14319         * src/asm.c (printCLine): fix #660034
14320
14321 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
14322
14323         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
14324         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
14325         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
14326         * as/mcs51/lkmem (summary): better fix for sp problem
14327         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
14328         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
14329         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
14330                                               remove --stack-after-data
14331
14332 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
14333
14334         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
14335         * src/SDCCutil.c (join): ugly bug: missing '\0'
14336         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
14337
14338 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
14339
14340         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
14341         * src/port.h: typo
14342         * src/pic/main.c (_asmCmd): gpasm supports -o
14343         * src/z80/main.c: more general macros
14344         * device/lib/Makefile.in: remove intermediate files
14345
14346 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
14347
14348         * .version: Bumped version number to 2.3.3
14349         * src/SDCCBBlock.c: new option -o
14350         * src/SDCCglobl.h: new option -o
14351         * src/SDCCglue.c: new option -o
14352         * src/SDCCmain.c: new option -o
14353         * src/asm.c: new option -o
14354         * src/ds390/main.c: new option -o
14355         * src/pic/glue.c: new option -o
14356         * src/pic/pcode.c: new option -o
14357         * src/pic/ralloc.c: new option -o
14358         * src/pic16/glue.c: new option -o
14359         * src/pic16/pcode.c: new option -o
14360         * src/pic16/ralloc.c: new option -o
14361         * src/z80/main.c: new option -o
14362         * device/lib/Makefile.in: use -o
14363         * support/regression/ports/ds390/spec.mk: use -o
14364         * support/regression/ports/gbz80/spec.mk: use -o
14365         * support/regression/ports/mcs51/spec.mk: use -o
14366         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
14367         * support/regression/ports/z80/spec.mk: use -o
14368         * support/regression/ports/ucz80/spec.mk: use -o
14369         * support/regression/ports/xa51/spec.mk: use -o
14370         * support/regression/fwk/lib/timeout.c: fix usage string
14371
14372 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
14373         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
14374
14375 2003-01-07    <johan AT balder>
14376
14377         * src/SDCCast.c (decorateType): fixed bug #600035
14378
14379 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
14380         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
14381         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
14382         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
14383         * src/pic/pcode.c: outcommented unused variable to remove warnings
14384         * src/pic/ralloc.c: outcommented unused variable to remove warnings
14385
14386 2003-01-06    <karl AT turbobit.com>
14387         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
14388    regression tests.
14389
14390 2003-01-06    <johan AT balder>
14391
14392         * src/SDCCicode.c: fixed array add
14393
14394 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
14395         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
14396         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
14397
14398 2003-01-04    <johan AT balder>
14399
14400         * src/SDCCval.c (getNelements): fixed the initialized array of structures
14401
14402 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14403         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
14404
14405 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
14406         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
14407         * support/regression/tests/bug-524697.c: fit mem usage into 8032
14408
14409 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
14410         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
14411
14412 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
14413         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
14414
14415 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
14416         * src/mcs51/main.c: removed {bindir}{sep} from aslink
14417
14418 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14419
14420     * in /sdcc/as/mcs51/ changed these files in order to create an
14421     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
14422     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
14423     following files to include the previous two files: aslink.dsp,
14424     Makefile.aslink, Makefile.bcc, and Makefile.in.
14425
14426     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
14427     .adb instead of .cdb
14428
14429 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14430
14431         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
14432         value from option --iram-size.
14433
14434 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14435
14436         * /sdcc/as/mcs51/lklist.c: added boundary check before using
14437         dram[] array.
14438
14439 2002-09-18    <wiml AT hhhh.org>
14440
14441         * SDCClrange.h: exposed setFromRange() and setToRange()
14442         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
14443           packRegsForAccUse() (bug 542397)
14444         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
14445           multiple times and emitting the fetch operations more than once
14446           added aopGetUsesAcc() function to allow binary operators to
14447           fetch their operands in the correct order; made genMinus() emit
14448           compact code for X = LITERAL - Y
14449
14450 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14451         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
14452         sprintf() in line 1267.
14453
14454 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14455         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
14456         like ports.
14457
14458 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14459         Changes to aslink (All the changes are marked with 'JCF'):
14460
14461         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
14462         summary().
14463
14464         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
14465         area BSEG.  Also moves, if possible, the DATA area down into the internal
14466         ram so more space is available.
14467
14468         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
14469         sflag.
14470
14471         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
14472         not bytes.  Function summary() which creates a memory usage summary
14473         file with extension .mem.  Reports of overlaping stack and small stack
14474         size.  If the space for the stack is less than 16 bytes aslink trows a
14475         warning.
14476
14477         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
14478         the 8051.  Option 'y' for memory summary output file.
14479
14480         Changes to sdcc (All the changes are marked with 'JCF'):
14481
14482         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
14483
14484         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
14485         overlaying area for it (uses RegBankUsed[4]).
14486
14487         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
14488         bank zero as used by default.  By default aslink locates the stack
14489         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
14490         the creation of the .mem file.  Delegates the allocation of data area
14491         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
14492         the begining of the stack area to aslink.
14493
14494         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
14495         glue() in SDCCglue.c creates an area for it.
14496
14497 2002-09-03  Borut Razem <borut.razem AT siol.net>
14498         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
14499         sdcc/src/pic/glue.c:
14500         introduced atexit() handler for teporay files removal in case of
14501         errors, assertions, ...
14502
14503 2002-08-29  Borut Razem <borut.razem AT siol.net>
14504         * sdcc/support/cpp2/auto-host_vc_in.h:
14505         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
14506         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
14507         Maybe there is a similar problem with BORLANDC? It should be checked!
14508
14509         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
14510         corrected improper use of assert: the assignment to clr variable was done inside the assert.
14511         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
14512         was not executed, and the compiler (cl) launched a warning:
14513         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
14514
14515 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
14516         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
14517
14518 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
14519         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
14520
14521         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
14522           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
14523           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
14524           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
14525           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
14526           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
14527           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
14528         - added Release configuration in VS projects
14529         - review of compiler an linker options
14530         - VC .exe files are generated in bin_vc directory, not to interfere
14531           with binaries generated from other projects (cygwin, mingw, bcc ...)
14532
14533         * sdcc/src/yacc.dsp: added
14534
14535         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
14536         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
14537         and insert the version number definitions from .version
14538
14539         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
14540
14541         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
14542         added - genarate auto-host.h using auto-host_vc_in.h as template
14543
14544         * sdcc/sdcc_vc.h,
14545         removed from CVS, generated automatically
14546
14547 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
14548         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
14549
14550 2002-08-11  Borut Razem <borut.razem AT siol.net>
14551         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
14552
14553 2002-08-10  Borut Razem <borut.razem AT siol.net>
14554         * src/SDCCmain.c (main):
14555         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
14556         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
14557         The consequence was that some temporary files were not removed.
14558
14559         * src/SDCCglue.c:
14560         unification of code in functions tempfilename() and tempfile():
14561         function tempnam() is defined in Visual Studio 6.0 and .NET
14562
14563         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
14564
14565         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
14566           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
14567         - removed compiler command line option /WX: Treats all warnings as errors
14568         - update a list of source files, included into the project
14569
14570         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
14571           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
14572         changed project type to Generic Project so that can be correcly converted to VS.NET project
14573
14574         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
14575
14576         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
14577
14578         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
14579
14580         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
14581         added return 0 statements after assert() to make compiler happy
14582
14583         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
14584         added newline in the def file to keep MSC compiler satisfied
14585
14586         * sdcc/src/z80/gen.c:
14587         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
14588           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
14589         - solved MSC error in function aopDump()
14590
14591         * sdcc_vc.h: define PREFIX as "\\sdcc"
14592
14593 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
14594         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
14595
14596 2002-06-22  Scott Dattalo <scott AT dattalo.com>
14597         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
14598         - Rewrote the register banking algorithm.
14599         - Added pCode live-range analysis to registers (for now, only non-used and
14600         singly-used registers optimized away)
14601
14602         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
14603
14604         * 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.
14605
14606 2002-05-10  Scott Dattalo <scott AT dattalo.com>
14607         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
14608
14609 2002-04-22  Michael Hope  <michaelh AT vroom>
14610
14611         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
14612
14613         * configure.in (DD_COPT): Added include support required for gbdk.
14614
14615         * .version: Bumped version number just to increase it.
14616
14617         * src/SDCCmain.c: Added -nostdinc to the default options.
14618
14619 2002-04-15  Michael Hope  <michaelh AT vroom>
14620
14621         * device/lib/z80/printf.c (sprintf): Added.
14622
14623         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
14624
14625         * src/z80/peeph.def: Added transpose redundent load rule.
14626
14627         * src/z80/main.c: Added force callee saves for jaune.
14628
14629         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
14630
14631         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
14632
14633 2002-03-28  Johan Knol  <johan AT balder>
14634
14635         * src/SDCCval.c: fixed bug #532436
14636
14637 2002-03-14  Scott Dattalo <scott AT dattalo.com>
14638         * /src/port.h:
14639         Added "char *Processor" field to the port structure.
14640
14641         * /src/SDCCmain.c:
14642         Added -p option. Allows port dependent processor to be specified.
14643
14644         * all ports:
14645         Initialized the new field char *Processor field to NULL in all ports
14646
14647         * /src/pic/*:
14648         Compiler generated registers for interrupt context saving
14649         were not getting allocated.
14650
14651 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
14652
14653         * /src/SDCCast.c:
14654         Fixed left shift. Will promote the left side of a left shift
14655         if a) left shifting more than size of operand or b) when assigned
14656         to something size > size of left side
14657
14658 2002-03-14  Scott Dattalo <scott AT dattalo.com>
14659         * src/pic/*
14660         tons of changes. Register allocation has been
14661         rewritten. Added customization for the various PICs. Flow
14662         analysis is restructured. ...
14663
14664         * src/pic/device.h:
14665         Added
14666
14667         * src/pic/device.c:
14668         Added. device.c is a PIC port hack to accomodate variations
14669         in PIC devices.
14670
14671 2002-03-13  Michael Hope  <michaelh AT vroom>
14672
14673         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
14674
14675 2002-03-04  johanknol  <johanknol AT manik>
14676
14677         * /src/SDCCval.c: fixed
14678
14679         const unsigned char arr[][2] = { { 0, 1 } };
14680         t18.c:1: error: Initializer element is not constant
14681
14682 2002-03-04  bela  <bela AT manik>
14683
14684         * /device/include/mcs51reg.h:
14685         ds89c420 register definition update
14686
14687 2002-03-03    <johan AT FRIJA>
14688
14689         * support/Util/SDCCerr.c: did something, but don't no why anymore
14690
14691         * support/regression/tests/bug-524691.c: made it a little less shy
14692
14693         * src/SDCCast.c (decorateType): fixed bug #524697
14694
14695         * src/SDCCast.c: made some lineno improvements
14696
14697         * src/SDCCval.c (getNelements): changed warning to error
14698
14699         * src/SDCCglue.c (printIvalArray): changed warning to error
14700
14701         * src/SDCCicode.c: fixed a warning for mingw
14702
14703         * src/SDCCast.c (decorateType): fixed the << promotion for ops
14704
14705         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
14706
14707 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
14708
14709         * src/ds390/peeph.def:
14710         Added some more peephole rules
14711
14712         * src/ds390/gen.c: Various fixes & enhancements
14713
14714         * src/SDCClrange.c, src/SDCClrange.h:
14715         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
14716
14717         * src/ds390/ralloc.c:
14718         various fixes & enhancements (ds390) specific
14719
14720         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
14721         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
14722         from rallocs.
14723
14724         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
14725
14726 2002-03-02    <johan AT FRIJA>
14727
14728         * src/SDCCast.c (decorateType): fixed bug #524708
14729
14730         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
14731
14732         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
14733
14734 2002-03-01  Michael Hope  <michaelh AT vroom>
14735
14736         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
14737
14738         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
14739
14740 2002-03-01    <johan AT FRIJA>
14741
14742         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
14743
14744         * src/SDCCast.c (decorateType): fixed bug #524209
14745
14746         * src/SDCCval.c (valNot): fixed bug #524195
14747
14748 2002-02-26    <johan AT balder>
14749
14750         * src/xa51/gen.c: fixed a warning
14751
14752         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
14753
14754         * src/SDCCast.c (decorateType): fixed bug #522534
14755
14756 2002-02-23    <johan AT balder>
14757
14758         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
14759
14760 2002-02-22    <johan AT balder>
14761
14762         * src/SDCCast.c: fixed bug #514865
14763
14764         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
14765
14766 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
14767
14768         * sdcc/src/SDCCloop.c:
14769         Previous fix was not good. basic blocks that have "break" or "return" are
14770         not really partof a loop , but live ranges used in these blocks should
14771         be live thru the entire loop, so set partOfLoop but don't add them to
14772         loop region
14773
14774 2002-02-21    <johan AT FRIJA>
14775
14776         * src/SDCCcse.c: fixed bug #514308
14777
14778 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
14779
14780         * src/SDCCloop.c:
14781         Fixed BUG #519583. If a conditional block ended in a return/break
14782         statement inside a loop, it was not being considered part of the loop.
14783
14784         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
14785
14786 2002-02-10  Karl Bongers <karl AT turbobit.com>
14787
14788         * debugger/*:
14789         Fixed up SDCDB debugger somewhat.  Updated debugger/README
14790         with lots of comments and notes.
14791
14792         * device/examples/test2.c:
14793         Fix bug, "red" variable not being initialized(compiler complained).
14794
14795         * device/examples/Makefile, examples/test3.c:
14796         Add Makefile in device/examples folder, compiles test3.c
14797         for use as a multiple module SDCDB test case.
14798
14799         * sim/ucsim/cmd.src/cmdset.cc:
14800         Took out debug printfs in ucsim "next" command.
14801
14802         * sim/ucsim/xa.src:
14803         Karl and Johan start ucsim XA support.  Most dissassembly working,
14804         about 75% emulation done(plenty of work remaining).
14805
14806         * sim/ucsim/z80.src:
14807         Add Z80 support to ucsim, add test-ucz80 regression test,
14808         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
14809         Notice z80 compiler fails on examples/test3.c/crc code.
14810
14811 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
14812
14813         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
14814         Added support for --parms-in-bank1
14815
14816         * src/ds390/peeph.def:
14817         added a few more peephole optimzations
14818
14819         * src/ds390/main.c:
14820         1) added __builtin_inp & __builtin_outp used to read in data of given length
14821            from a memory mapped port
14822         2) added __builtin_memcmp
14823         3) added __builtin_swapw swap bytes of a short
14824
14825         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
14826         1) handle multiple send & receives from register bank1
14827         2) ralloc can now allocate DPTR1 to some liveRanges
14828
14829         * src/SDCCsymt.c, src/SDCCsymt.h:
14830         changes to handle multiple sends & receives
14831
14832         * src/SDCCptropt.h:
14833         added some pointer arithmetic optimization
14834
14835         * src/SDCCptropt.c:
14836         added some pointer arithmetic optimizations but not stable yet so not
14837         called from anywhere (will get this working shortly)
14838
14839         * src/SDCCopt.c: fixed for multiple sends & receives
14840
14841         * src/SDCCmain.c:
14842         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
14843         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
14844            set preprocessor defines (depending on options)
14845
14846         * src/SDCCicode.c, src/SDCCicode.h:
14847         changes made to handle multiple sends & receives
14848
14849         * src/SDCCglobl.h:
14850         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
14851
14852         * src/SDCCcse.c, src/SDCCcse.h:
14853         added function findbackward def (to be used in upcoming optimization)
14854
14855         * src/SDCCcflow.c, src/SDCCcflow.h:
14856         added function returnAtEnd - to determine if a basic block terminates with
14857         a RETURN iCode
14858
14859         * src/SDCCast.c, src/SDCCast.h:
14860         added option parms-in-bank1
14861
14862         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
14863         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
14864         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
14865         adjusted for --parms-in-bank1 option
14866
14867         * device/include/string.h:
14868         donot redefine "reentrant" keyword
14869
14870         * device/include/ds80c390.h: Added some more SFRs
14871
14872 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
14873
14874         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
14875
14876 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
14877
14878         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
14879
14880 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
14881
14882         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
14883
14884 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
14885
14886         * Added --xram-movc option
14887
14888 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
14889
14890         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
14891
14892 2002-01-11  Johan Knol
14893
14894         * Added math lib of Jesus Calvino-Fraga
14895
14896 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
14897
14898         * src/SDCCmain.c (processFile): fix processing of ../../src.c
14899         * support/regression/Makefile: new target test-mcs51-stack-auto
14900         * support/regression/ports/mcs51-stack-auto/spec.mk: added
14901
14902 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
14903
14904         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
14905
14906 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
14907
14908         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
14909
14910 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
14911
14912         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
14913
14914         * src/SDCCglue.h: add definition for printIvalChar()
14915
14916 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
14917
14918         * src/SDCCast.c: fix #498138 by Johan
14919
14920         * src/SDCCglue.c: fix #498138 by Johan
14921
14922 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
14923
14924         * support/regression/Makefile: fix clean
14925
14926         * support/regression/ports/ds390/support.c: fix transmission of last character
14927
14928 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
14929
14930         * /sdcc/src/ds390/gen.c:
14931         a) improved computing address of stack variable
14932         b) took out some #if 0 code
14933         c) improved parmBytes adjustment
14934         d) improved genPlusIncr & genMinusIncr
14935         e) genCmp could generate bad code (when left assigned to DPTR)
14936         f) Fixed bug in hasInc
14937
14938         * /sdcc/src/ds390/ralloc.c:
14939         a) packRegsForSupport could mess up live information (Fixed)
14940         b) packRegsDPTRuse could be incorrect for left & right shift
14941
14942         * /sdcc/src/mcs51/ralloc.c:
14943         packRegsForSupport could mess up the live information (Fixed)
14944
14945         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
14946
14947         * /sdcc/src/SDCCast.c:
14948         can reverse a loop even if function call is present as long
14949         as the loop control variable is local & is not passed as parameter
14950
14951 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
14952
14953         * /sdcc/ChangeLog: *** empty log message ***
14954
14955         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
14956         More builtin function additions for TININative
14957
14958         * /sdcc/src/ds390/ralloc.c:
14959         Had broken the regression testsuite
14960
14961         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
14962
14963         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
14964         Added funcattr hasStackParms will be set for reentrant functions when there
14965         are paramteres on the stack, this helps in minimizing frame pointer generation
14966         typeFromStr can handle function pointers now
14967
14968         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
14969         *** empty log message ***
14970
14971 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
14972
14973         * /src/ds390/gen.c, /src/ds390/main.c:
14974         More builtin function additions for TININative
14975
14976         * /src/ds390/ralloc.c:
14977         Had broken the regression testsuite
14978
14979         * /src/SDCCast.c: Fixed a bug in dumptree
14980
14981         * /src/SDCCsymt.c, /src/SDCCsymt.h:
14982         Added funcattr hasStackParms will be set for reentrant functions when there
14983         are paramteres on the stack, this helps in minimizing frame pointer generation
14984         typeFromStr can handle function pointers now
14985
14986         * /doc/builtins.txt, /doc/TININative.txt:
14987         *** empty log message ***
14988
14989
14990 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
14991
14992         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
14993         ALPHA version for -mTININative
14994
14995         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
14996         updated to reflect changes in the port structure
14997
14998         * /src/port.h:
14999         added function do_assemble (similar to do_link) if non-null this function
15000         will be called to do assembly (-mTININative) requires a multi command
15001         assembly
15002         added function genAssemblerEnd will be called to generate assembler Epilogue
15003
15004         * /src/SDCCsymt.c:
15005         added _JavaNative to debug info printing
15006
15007         * /src/SDCCmain.c: added option --tini-libid
15008         added port->do_assemble function (-mTININative) has a multi command assemble
15009
15010         * /src/SDCCglue.c: Disabled "constExpr" check
15011         added port->genAssemblerEnd function
15012
15013         * /src/SDCCglobl.h: Added option --tini-libid value
15014
15015         * /src/SDCCast.h:
15016         tookout optimizeCompare from the header (has no external references)
15017
15018         * /src/SDCCast.c: made one more function "static"
15019
15020 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
15021
15022         * src/z80/mappings.i: Added z80asm support.
15023
15024         * src/z80/main.c: Added z80asm support on --asm=z80asm
15025
15026         * src/z80/gen.c: Fixed asm portability issues.
15027
15028         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
15029
15030         * src/SDCCglue.c (printExterns): Added global/extern split.
15031
15032 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
15033
15034         * support/regression/Makefile: added test for mcs51 model large
15035
15036         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
15037
15038         * support/regression/ports/gbz80/spec.mk: added -mgbz80
15039
15040 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
15041
15042         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
15043
15044 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
15045
15046         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
15047
15048         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
15049
15050 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
15051
15052         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
15053
15054         * support/regression/tests/simplefloat.c: Port to mcs51.
15055
15056 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
15057         * support/regression/tests/bug-485362.c: Added.
15058
15059         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
15060
15061         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
15062
15063         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
15064
15065         * src/z80/gen.c (aopDump): Added a dump function.
15066
15067 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
15068         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
15069
15070         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
15071
15072         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
15073
15074         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
15075
15076         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
15077
15078         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
15079
15080         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
15081
15082         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
15083
15084         * support/regression/ports/ds390/support.c: Use tinibios.
15085
15086         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
15087
15088 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
15089
15090         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
15091         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
15092
15093         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
15094
15095         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
15096
15097 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
15098
15099         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
15100
15101         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
15102         (packRegsForIYUse): Created and optimised.
15103
15104 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
15105
15106         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
15107 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
15108
15109         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
15110
15111         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
15112
15113         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
15114
15115 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15116
15117         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
15118
15119         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
15120
15121 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15122
15123         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
15124
15125         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
15126
15127         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
15128
15129 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
15130
15131         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
15132         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
15133         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
15134
15135         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
15136
15137         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
15138         (genNotFloat): Added.
15139         (genUminusFloat): Added.
15140
15141         * device/lib/z80/Makefile: Added floating pt stubs.
15142
15143         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
15144
15145         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
15146
15147         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
15148
15149 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15150
15151         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
15152
15153         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
15154
15155         * sdcc/support/regression/Makefile: Add port ds390.
15156
15157         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
15158
15159         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
15160
15161         * sdcc/support/regression/ports/ds390/spec.mk: Added.
15162
15163         * sdcc/support/regression/ports/ds390/support.c: Added.
15164
15165         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
15166
15167         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
15168
15169         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
15170
15171 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
15172
15173         * device/include/malloc.h: Added z80 and gbz80 support.
15174
15175         * device/lib/gbz80/heap.s: Added.
15176
15177         * device/lib/z80/heap.s: Added.
15178
15179         * device/lib/malloc.c: Added z80 and gbz80 support.
15180
15181         * support/regression/tests/malloc.c (testMalloc): Added.
15182
15183         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
15184
15185         * support/regression/tests/bug-478094.c: Added.
15186
15187         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
15188
15189 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
15190
15191         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
15192
15193         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
15194
15195         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
15196
15197         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
15198
15199         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
15200
15201 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
15202
15203         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
15204
15205 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
15206
15207         * support/regression/tests/bug-477927.c: Added.
15208
15209         * src/z80/peeph.def: Added minor rules.
15210
15211         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
15212
15213         * src/z80/peeph.def: Added jump optimisation modification.
15214
15215 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
15216
15217         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
15218
15219 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
15220
15221         * support/regression/tests/funptrs.c: Added.
15222
15223 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
15224
15225         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
15226
15227 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
15228
15229         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
15230
15231         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
15232
15233         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
15234         (movLeft2ResultLong): Created.
15235
15236         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
15237         (joinPushes): Added.  Joins two char pushes into a word push.
15238
15239 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
15240
15241         * support/cpp2/Makefile.in (install): Added creation of dest dir.
15242
15243         * support/makebin/Makefile (install): Added creation of dest dir.
15244
15245 2001-10-24 Karl Bongers <karl AT turbobit.com>
15246
15247         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
15248
15249 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
15250
15251         * src/z80/ralloc.c: Turned off faulty pack for one use.
15252
15253         * src/z80/peeph-gbz80.def: Removed redundent restart options.
15254
15255         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
15256
15257 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
15258
15259         * support/regression/Makefile: Improved clean
15260
15261         * support/regression/ports/gbz80/spec.mk: Added clean
15262
15263         * support/regression/ports/host/spec.mk: Added clean
15264
15265         * support/regression/ports/z80/spec.mk: Added clean
15266
15267         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
15268
15269         * support/regression/ports/mcs51/timeout.c: little improvements
15270
15271 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
15272
15273         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
15274
15275         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
15276
15277         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
15278
15279 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
15280
15281         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
15282
15283         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
15284
15285 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
15286         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
15287
15288         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
15289
15290         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
15291
15292         * src/mcs51/main.c (_linkCmd): Added bin path to command.
15293
15294         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
15295
15296         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
15297
15298         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
15299
15300         * support/regression/tests/longor.c: Added.
15301
15302 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
15303
15304         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
15305
15306         * as/mcs51/aslink.h: define PATH_MAX
15307
15308         * as/mcs51/asm.h: define PATH_MAX
15309
15310         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
15311
15312         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
15313
15314         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
15315
15316         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
15317
15318         * src/SDCCglobl.h: define PATH_MAX
15319
15320         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
15321
15322         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
15323
15324 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
15325
15326         * src/z80/gen.c (gencjneshort): Fixed
15327
15328         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
15329
15330 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
15331
15332         * support/regression/tests/bug-469671.c: Added.
15333
15334         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
15335
15336 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
15337
15338         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
15339
15340         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
15341
15342 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
15343
15344         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
15345
15346         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
15347
15348         * src/device/lib/_mullong.c : removed hint: nooverlay bug
15349
15350         * src/device/lib/_divuint.c : removed hint: nooverlay bug
15351
15352         * src/device/lib/_divulong.c: removed hint: nooverlay bug
15353
15354         * src/device/lib/_moduint.c : removed hint: nooverlay bug
15355
15356         * src/device/lib/_modulong.c: removed hint: nooverlay bug
15357
15358 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
15359
15360         * 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.
15361
15362         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
15363
15364         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
15365
15366 2001-10-07    <johan AT FRIJA>
15367
15368         * device/lib/gets.c (gets): fixed the return value.
15369
15370 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
15371         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
15372
15373         * 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.
15374
15375         * 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.
15376
15377         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
15378
15379         * src/pic/gen.c: Removed Safe_strdup.
15380
15381         * configure.in: Added option to enable libgc support.
15382
15383         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
15384         (bitVectUnion): Optimised.
15385         (bitVectIntersect): Optimised.
15386         (bitVectBitsInCommon): Optimised.
15387         (bitVectCplAnd): Optimised.
15388
15389         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
15390
15391 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
15392
15393         * src/SDCCmain.c: distinguish between assembler debug and plain options
15394
15395         * src/avr/main.c:   remove standard assembler options
15396
15397         * src/ds390/main.c: remove standard assembler options
15398
15399         * src/mcs51/main.c: remove standard assembler options
15400
15401         * src/port.h: removed "PENDING" comment
15402
15403 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
15404
15405         * src/device/lib/_mulint.c  : new, with assember functions
15406
15407         * src/device/lib/_mullong.c : new, with assember functions
15408
15409         * src/device/lib/_divuint.c : with assember functions
15410
15411         * src/device/lib/_divsint.c : with assember functions
15412
15413         * src/device/lib/_divulong.c: with assember functions
15414
15415         * src/device/lib/_divslong.c: with assember functions
15416
15417         * src/device/lib/_moduint.c : with assember functions
15418
15419         * src/device/lib/_modsint.c : with assember functions
15420
15421         * src/device/lib/_modulong.c: with assember functions
15422
15423         * src/device/lib/_modslong.c: with assember functions
15424
15425         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
15426
15427         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
15428
15429         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
15430                                       replaced _mululong.c and _mulslong.c by _mullong.c
15431
15432 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
15433
15434         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
15435
15436 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
15437
15438         * src/SDCCglue.c: test, if win32api is available for MINGW
15439
15440 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
15441
15442         * src/SDCCsymt.c: no more _modifier in printTypeChain()
15443         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
15444         * support/regression/ports/gbz80/spec.mk: removed GENERIC
15445         * support/regression/ports/host/spec.mk: removed GENERIC
15446         * support/regression/ports/mcs51/spec.mk: removed GENERIC
15447         * support/regression/ports/z80/spec.mk: removed GENERIC
15448
15449 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
15450
15451         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
15452
15453         * support/regression/tests/bug-467035.c: Created.
15454
15455 2001-10-01    <johan AT FRIJA>
15456
15457         * src/SDCC.y: fixed bug #466586 part 1
15458
15459 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
15460
15461         * SDCCicode.c: z80 has no generic pointers
15462         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
15463
15464 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
15465
15466         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
15467
15468 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
15469
15470         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
15471
15472         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
15473
15474 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
15475
15476         * configure.in: Fixed up so that ucsim is only configured once.
15477
15478         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
15479
15480         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
15481         (getPathDifference): As above.
15482
15483         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
15484
15485         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
15486
15487 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
15488         * .version: Updated to 2.3.1
15489
15490         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
15491         Added copyright header.
15492
15493         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
15494         (assemble): Added support for macro based assembler commands.
15495         (linkEdit): Added support for macro based linker commands.
15496         (preProcess): Changed the pre-processor to use macros.
15497         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
15498         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
15499
15500         * device/lib/z80/crt0.s: Added module name for debugging.
15501
15502 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
15503
15504         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
15505
15506         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
15507
15508         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
15509
15510         * src/Makefile.in: Added SDCCmacro and SDCCutil
15511
15512 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
15513
15514         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
15515
15516 2001-09-16    <johan AT FRIJA>
15517
15518         * 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.
15519
15520 2001-09-15    <johan AT FRIJA>
15521
15522         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
15523         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
15524
15525 2001-09-11    <johan AT FRIJA>
15526
15527         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
15528
15529 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
15530
15531         * support/regression/tests/bug-460444.c: Added test case.
15532
15533         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
15534         (genCast): Added justification for all of the asserts.
15535
15536 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
15537
15538         * support/regression/support.c: _xdata replaced by xdata
15539
15540         * support/regression/spec.mk: removed _generic
15541
15542 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
15543
15544         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
15545
15546         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
15547         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
15548
15549         * src/z80/peeph.def: Added a rule to optimise shift then compare.
15550
15551         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
15552
15553         * support/regression/tests/bug-460010.c: Added test case.
15554
15555         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
15556
15557 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
15558
15559         * support/regression/Makefile: inter-port-clean adjusted for mcs51
15560
15561         * support/regression/testfwk.c: removed workaround for bug #436344
15562
15563         * support/regression/tests/bp.c: use less memory with mcs51
15564
15565         * support/regression/tests/bug-441448.c: use less memory
15566
15567         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
15568
15569         * support/regression/collate-results.py: typo
15570
15571 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
15572
15573         * support/regression/tests/fetchoverlap.c: Added new test case.
15574
15575         * support/regression/tests/bp.c: Added new test case.
15576
15577         * support/regression/tests/bug-448984.c: Added new test case.
15578
15579         * support/regression/tests/pow2shifts.c: Added new test case.
15580
15581         * src/z80/gen.c: Turned off the noise it normally generates for the release.
15582         (genlshTwo): Fixed right shift for count > 8.
15583
15584         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
15585
15586 2001-09-08    <johan AT FRIJA>
15587
15588         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
15589
15590 2001-09-07    <johan AT FRIJA>
15591
15592         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
15593
15594         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
15595
15596 2001-09-06    <johan AT FRIJA>
15597
15598         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
15599         * bernhard noted me at this: "() equals to (void)" (1.38)
15600
15601 2001-09-05    <johan AT FRIJA>
15602
15603         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
15604
15605 2001-09-04    <johan AT FRIJA>
15606
15607         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
15608
15609
15610 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
15611
15612         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
15613
15614 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
15615
15616         * link/z80/aslink.h: Fixed path for PATH_MAX
15617
15618 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
15619
15620         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
15621
15622         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
15623
15624         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
15625
15626         * 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.
15627
15628 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
15629
15630         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
15631         (genCmp): Fixed up genCmp for the GB with longs.
15632
15633         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
15634
15635         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
15636
15637         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
15638
15639         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
15640
15641 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
15642
15643         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
15644
15645 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
15646
15647         * 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.
15648
15649         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
15650
15651 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
15652
15653         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
15654
15655         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
15656
15657 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
15658
15659   * sim/ucsim/configure:    little improvement of Cygwin-detection
15660   * sim/ucsim/configure.in: little improvement of Cygwin-detection
15661   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
15662   * support/regression/tests/bug-221100.c: small changes for mcs51
15663   * support/regression/tests/bug-221168.c: small changes for mcs51
15664   * support/regression/tests/bug-227710.c: small changes for mcs51
15665   * support/regression/tests/staticinit.c: small changes for mcs51
15666   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
15667   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
15668   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
15669
15670 $Revision$