support/cpp2/Makefile.in: modified
[fw/sdcc] / ChangeLog
1 2007-06-01 Borut Razem <borut.razem AT siol.net>
2
3         * SDCPP synchronized with GCC CPP release version 4.2.0,
4           currently the latest release:
5         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
6           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
7           support/cpp2/cppdefault.h, support/cpp2/except.h,
8           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
9           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
10           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
11           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
12           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
13           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
14           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
15           support/cpp2/opts.h, support/cpp2/output.h,
16           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
17           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
18           support/cpp2/system.h, support/cpp2/version.c,
19           support/cpp2/Makefile.in: modified
20         * support/cpp2/opts-common.c: added
21
22 2007-06-01 Raphael Neider <rneider AT web.de>
23
24         * device/lib/pic/libdev/pic12f683.c,
25         * device/include/pic/pic12f683.h: added GPIO bits
26
27 2007-06-01 Raphael Neider <rneider AT web.de>
28
29         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
30           quotation marks, clarified role of PIC14 vs. PIC16 ports
31         * src/pic16/devices.inc,
32         * device/include/pic16/pic18fregs.h,
33         * device/include/pic16/pic18f[24][45]j10.h,
34         * device/lib/pic16/pics.all,
35         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
36           18f24j10, 18f25j10, 18f44j10, and 18f45j10
37         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
38           for new devices as they are not yet supported by gputils
39
40 2007-05-31 Borut Razem <borut.razem AT siol.net>
41
42         * Small Device C Compiler 2.7.0 released
43         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
44           changed sdcc version to 2.7.1
45         * support/scripts/sdcc.nsi: added How to create WIN32 release
46           setup.exe package
47
48 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
49
50         * doc/sdccman.lyx: documented initialization and allocation of absolute
51           variables, bit parameter passing, the need for function pointers to be
52           reentrant and alpha quality support of inline and retrict
53
54 2007-05-26 Borut Razem <borut.razem AT siol.net>
55
56         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
57           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
58         * docs/knownbugs.html: updated
59
60 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
61
62         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
63           thanks Jan Waclawek
64         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
65           AOP_CRY and ruonly
66           (gencjneshort): optimized when left is AOP_DIR
67         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
68           initializing unions in a struct/array
69         * support/regression/fwk/include/testfwk.h: added defines for data, near
70           and far for host and z80
71         * support/regression/tests/bug1723128.c: new, added
72
73 2007-05-22 Borut Razem <borut.razem AT siol.net>
74
75         * doc/knownbugs.html: updated
76
77 2007-05-21 Raphael Neider <rneider AT web.de>
78
79         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
80           error message instead
81         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
82
83 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
84
85         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
86
87 2007-05-21 Raphael Neider <rneider AT web.de>
88
89         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
90           closes #1722392
91         * src/regression/gpsim_assert.h,
92         * src/regression/Makefile,
93         * src/regression/pcodeopt.c: regression test for the above fix
94
95 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
96
97         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
98           jumps to self, fixed bug 1717281
99
100 2007-05-10 Borut Razem <borut.razem AT siol.net>
101
102         * support/scripts/gen_known_bugs.pl: cosmetic fix
103         * doc/knownbugs.html: generated by gen_known_bugs.pl
104
105 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
106
107         * src/SDCCast.c (createFunction): also generate non-inlined version of
108           function for functions declared as "static inline"
109         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
110           function can be inlined after non-inlined version generated.
111
112 2007-05-10 Borut Razem <borut.razem AT siol.net>
113
114         * support/scripts/gen_known_bugs.pl: added script
115           which generates knownbugs.html
116
117 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
118
119         * doc/knownbugs.html: updated for release 2.7.0
120
121 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
122
123         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
124
125 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
126
127         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
128           (throughout): updated generating comments
129         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
130           (throughout): updated generating comments
131         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
132           rule instead of at the second, or it might skip lines when removing the
133           complete match
134         * support/regression/tests/bug1714204.c: changed test to foo
135
136 2007-05-08 Borut Razem <borut.razem AT siol.net>
137
138         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
139           thanks to SDCC Distributed Compile Farm members,
140           added Z80 and GBZ80 command line options
141         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
142
143 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
144
145         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
146         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
147         * support/regression/tests/longlit.c: modified to be tested at all and
148           to pass the actual test
149
150 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
151
152         * device/include/mcs51/uPSD33xx.h: Added.
153
154 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
155
156         * device/lib/_gptrput.c,
157         * device/lib/_gptrget.c: removed old code,
158          (_gptrgetWord),
159         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
160         * support/regression/tests/bug1714204.c: new, added
161
162 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
163
164         * support/regression/tests/regtrack.c: test was never executed
165           because of the regression test being picky about white spaces.
166         * device/lib/mcs51/crtclear.asm: added comment
167
168 2007-05-06 Raphael Neider <rneider AT web.de>
169
170         * device/lib/pic/Makefile.rules,
171         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
172           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
173
174 2007-05-06 Raphael Neider <rneider AT web.de>
175
176         * src/pic16/device.h,
177         * src/pic16/main.h,
178         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
179           _pic16_setDefaultOptions): removed/reordered command-line args
180         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
181           devices, regrouped command line args, environment variables),
182           clarified sone points, added sections on how to add devices to the
183           PIC14/PIC16 ports
184
185 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
186
187         * src/z80/peeph.def: fixed bug in rule 2
188
189 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
190
191         * src/port.h: added TARGET_MCS51_LIKE
192         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
193           take advantage of it too
194         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
195           (shiftR2Left2Result): Optimized: don't check shifting by 0
196         * src/z80/peeph-z80.def,
197         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
198           modifications, see patch 1700823
199         * src/mcs51/peep.c (): fixed bug 1712928
200         * support/regression/tests/bug1712928.c: new, added
201
202 2007-05-05 Borut Razem <borut.razem AT siol.net>
203
204         * device/lib/pic16/Makefile.common.in,
205           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
206           removed bash dependencies
207
208 2007-05-01 Borut Razem <borut.razem AT siol.net>
209
210         * src/SDCCicode.c:
211           fixed bug #1710507: --i-code-in-asm makes compile fail
212           all iCode comments are now one liners
213         * src/mcs51/gen.c: fixed memory leak
214
215 2007-05-01 Raphael Neider <rneider AT web.de>
216
217         * device/lib/pic/libdev/*.c
218         * device/include/pic/*.h: regenerated all device libs from updated
219           .inc files
220         * support/scripts/inc2h.pl: documented usage, now uses strict to
221           catch more bugs
222
223 2007-04-30 Borut Razem <borut.razem AT siol.net>
224
225         * doc/sdccman.lyx:
226           fixed bug #1669175: Problem with space in output paths
227           documented how to use paths with spaces for Windows users
228
229 2007-04-29 Borut Razem <borut.razem AT siol.net>
230
231         * Fixed svn:eol-style and svn:keywords properties
232         * src/SDCCval.c: fixed bug
233           #1592871: Segfault with "large" const arrays of characters
234           replaced recursion with iteration
235         * Removed svn:executable property from non-executable files
236
237 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
238
239         * src/mcs51/gen.c (genRet): fixed bug 1707003
240
241 2007-04-27 Raphael Neider <rneider AT web.de>
242
243         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
244           createReachingDefinitions,assignValnums,pic16_destructDF,
245           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
246           prevent NULL pointer dereferences
247         * device/lib/pic/libdev/pic16f886.c,
248         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
249           prevent building them, gputils do not really support them yet
250
251 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
252
253         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
254           helps printf_small. 32 bytes more __idata mem.
255
256 2007-04-27 Raphael Neider <rneider AT web.de>
257
258         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
259           return early when pb or pb->pcHead is NULL (patch #1708427)
260         * src/regression/empty.c,
261         * src/regression/Makefile: added test with empty functions
262         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
263
264 2007-04-27 Borut Razem <borut.razem AT siol.net>
265
266         * src/SDCCast.c: fixed feature request
267           #1547512: Redundant strings linked when using sizeof("abc")
268
269 2007-04-23 Borut Razem <borut.razem AT siol.net>
270
271         * doc/sdccman.lyx, src/SDCCmain.c:
272           peep-hole comments are generated only if --fverbose-asm option is
273           specified and --no-peep-comments is not, as proposed by Frieder.
274         * support/regression/Makefile.in: compile regression tests with
275           --fverbose-asm option so one can "grep" whether a new (or an old)
276           peephole is (still) applied; requested by Frieder.
277
278 2007-04-23 Kevin Buettner <kevin AT buettner.to>
279
280         * device/include/pic/pic16f886.h,
281         * device/include/pic/pic16f887.h,
282         * device/lib/pic/libdev/pic16f886.c,
283         * device/lib/pic/libdev/pic16f887.c,
284         * device/include/pic/pic14devices.txt,
285         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
286
287 2007-04-23 Kevin Buettner <kevin AT buettner.to>
288
289         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
290           fixes #1704666
291
292 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
293
294         * device/lib/_memset.c: assembler version for mcs51
295
296 2007-04-22 Borut Razem <borut.razem AT siol.net>
297
298         * support/scripts/listerr.c: program to create the list of errors and
299           warnings list from - added
300         * doc/sdccman.lyx: removed the note
301           "For list of warnings and corresponding codes, see err_warn.txt"
302         * src/SDCCsymt.c: fixed bug #1699804:
303           Bug with some uses of sizeof(static local array) (MCS51)
304         * support/regression/tests/bug-1699804.c: added
305
306 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
307
308         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
309           (main): added option -i,
310           (asmbl, case S_INCL): use search_path_fopen,
311           mostly from patch 1579668 by Peter Miller, thanks
312         * src/z80/main.c: fixed typo --callee-saves-bc
313         * device/include/mcs51/compiler.h: added sfrword for Tasking
314
315 2007-04-20 Borut Razem <borut.razem AT siol.net>
316
317         * src/z80/main.c: replaced reserved keyword asm with asmblr
318
319 2007-04-19 Borut Razem <borut.razem AT siol.net>
320
321         * src/port.h: use const pointers to strings
322         * src/SDCCargs.h: declared getStringArg() and getIntArg()
323         * src/pic16/main.c: include SDCCargs.h
324         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
325           const char, since the strings are dynamically allocated
326         * src/SDCCmain.c: options.code_seg and options.const_seg are
327           dynamically allocated; check port specific command line options
328           before the general ones
329         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
330
331 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
332
333         * device/include/ds400rom.h,
334         * device/lib/ds390/lcd390.c,
335         * device/lib/ds390/memcpyx.c,
336         * device/lib/ds390/rtc390.c,
337         * device/lib/ds400/ds400rom.c,
338         * device/lib/ds400/memcpyx.c,
339         * device/lib/hc08/_ret.c: more replacements of keywords with their
340           double underscore equivalents
341         * device/lib/ds390/Makefile.in,
342         * device/lib/ds400/Makefile.in,
343         * device/lib/gbz80/Makefile.in,
344         * device/lib/hc08/Makefile.in,
345         * device/lib/mcs51/Makefile.in,
346         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
347
348 2007-04-17 Borut Razem <borut.razem AT siol.net>
349
350         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
351           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
352           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
353           to --fverbose-asm, to be gcc'ish
354
355 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
356
357         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
358
359 2007-04-17 Borut Razem <borut.razem AT siol.net>
360
361         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
362         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
363           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
364           with their double underscore equivalent
365
366 2007-04-14 Borut Razem <borut.razem AT siol.net>
367
368         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
369           source"
370
371 2007-04-13 Borut Razem <borut.razem AT siol.net>
372
373         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
374           C99 standard
375         * device/examples/serialcomm/windows/serial.[ch],
376           device/examples/serialcomm/windows/test_serialcomm.cpp:
377           updated by Bela Torok
378         * device/examples/serialcomm/windows/serialcomm.dsw,
379           device/examples/serialcomm/windows/serialcomm.dsp: added
380
381 2007-04-13 Jan Waclawek <wek AT efton.sk>
382
383         * doc/sdccman.lyx: additions and changes at various places
384           (submitted as #1697136).
385           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
386
387 2007-04-10 Borut Razem <borut.razem AT siol.net>
388
389         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
390           LyX file format changed to 245
391         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
392           "FreeWare" replaced with "free open source"
393
394 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
395
396         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
397
398 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
399
400         * device/include/pic16/pic18fregs.h,
401         * device/lib/_bp.c,
402         * device/lib/_decdptr.c,
403         * device/lib/_divsint.c,
404         * device/lib/_divslong.c,
405         * device/lib/_divuint.c,
406         * device/lib/_divulong.c,
407         * device/lib/_fs2schar.c,
408         * device/lib/_fs2sint.c,
409         * device/lib/_fs2slong.c,
410         * device/lib/_fs2uchar.c,
411         * device/lib/_fs2uint.c,
412         * device/lib/_fs2ulong.c,
413         * device/lib/_fsadd.c,
414         * device/lib/_fscmp.c,
415         * device/lib/_fsdiv.c,
416         * device/lib/_fseq.c,
417         * device/lib/_fsget1arg.c,
418         * device/lib/_fsget2args.c,
419         * device/lib/_fsgt.c,
420         * device/lib/_fslt.c,
421         * device/lib/_fsmul.c,
422         * device/lib/_fsneq.c,
423         * device/lib/_fsnormalize.c,
424         * device/lib/_fsreturnval.c,
425         * device/lib/_fsrshift.c,
426         * device/lib/_fssub.c,
427         * device/lib/_fsswapargs.c,
428         * device/lib/_gptrget.c,
429         * device/lib/_gptrgetc.c,
430         * device/lib/_gptrput.c,
431         * device/lib/_logexpf.c,
432         * device/lib/_modsint.c,
433         * device/lib/_modslong.c,
434         * device/lib/_moduint.c,
435         * device/lib/_modulong.c,
436         * device/lib/_mulint.c,
437         * device/lib/_mullong.c,
438         * device/lib/_schar2fs.c,
439         * device/lib/_ser.c,
440         * device/lib/_setjmp.c,
441         * device/lib/_sint2fs.c,
442         * device/lib/_slong2fs.c,
443         * device/lib/_spx.c,
444         * device/lib/_uchar2fs.c,
445         * device/lib/_uint2fs.c,
446         * device/lib/_ulong2fs.c,
447         * device/lib/asincosf.c,
448         * device/lib/atanf.c,
449         * device/lib/calloc.c,
450         * device/lib/ds390/tinibios.c,
451         * device/lib/ds400/tinibios.c,
452         * device/lib/expf.c,
453         * device/lib/free.c,
454         * device/lib/hc08/_mulint.c,
455         * device/lib/logf.c,
456         * device/lib/malloc.c,
457         * device/lib/printf_fast.c,
458         * device/lib/printf_tiny.c,
459         * device/lib/printfl.c,
460         * device/lib/realloc.c,
461         * device/lib/ser_ir.c,
462         * device/lib/serial.c,
463         * support/regression/tests/libmullong.c: replaced all special keywords
464           with their double underscore equivalent
465         * support/regression/ports/mcs51-xstack-auto/spec.mk,
466         * device/lib/Makefile.in: compile libs with --std-c99 instead of
467           --std-sdcc99
468         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
469           (genRet): if the bit-symbol is ruonly it already is in the carry
470         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
471         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
472         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
473           type UCHAR if dest is not bit
474
475 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
476
477         * device/include/math.h,
478         * device/lib/cotf.c,
479         * device/lib/expf.c,
480         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
481
482 2007-04-01 Borut Razem <borut.razem AT siol.net>
483
484         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
485           fixed bug #1692042: input buffer overflow...scanner uses REJECT
486         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
487           gcc_unreachable() called internal_error()...
488
489 2007-03-30 Raphael Neider <rneider AT web.de>
490
491         * src/pic/ralloc.c (isData): suppress garbage debug output
492
493 2007-03-28 Borut Razem <borut.razem AT siol.net>
494
495         * doc/sdccman.lyx:
496           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
497           is developed, built and used worldwide, and the word "night" doesn't
498           make any sense.
499
500 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
501
502         * device/include/mcs51/C8051F360.h: new, added
503         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
504
505 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
506
507         * src/SDCC.y (declaration_specifiers, function_specifier),
508         * support/Util/SDCCerr.c,
509         * support/Util/SDCCerr.h,
510         * src/SDCCsymt.h,
511         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
512           inline keyword
513         * src/SDCCmem.c (deallocParms),
514         * src/SDCCast.c: support for function inlining, not quite complete
515         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
516           'restrict' qualifier
517
518 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
519
520         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
521           (saveRBank, unsaveRBank): don't save bits,
522           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
523         * support/regression/tests/bug1535242.c: new, added
524         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
525           thanks Alexey Shamrin <shamrin AT gmail.com>,
526           made assert.h header ANSI compliant (added a check for NDEBUG macro,
527           removed header guard)
528         * .version,
529         * sdcc.spec: bumped version to 2.6.5
530         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
531
532 2007-03-22 Borut Razem <borut.razem AT siol.net>
533
534         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
535           fixed bug #1653671: sdcdb integration into ddd is broken
536
537 2007-03-22 Raphael Neider <rneider AT web.de>
538
539         * src/pic/gen.c (popGetExternal): augmented to also create references
540           to external variables (not only labels),
541           (genCall): comment on plan to reduce PAGESEL overhead,
542           (genFunction, genEndFunction): also save/restore FSR around interrupt
543           handling code, removed lots of unused code
544           (genDivOneByte): release acquired temp register
545         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
546           of popGetExternal
547         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
548           for registers that need to be saved during interrupts (FSR, STATUS,
549           PCLATH; W needs special handling), currently only FSR is used
550
551 2007-03-22 Raphael Neider <rneider AT web.de>
552
553         * device/include/pic/pic14devices.txt: 16f688 has only one config word
554
555 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
556
557         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
558
559 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
560
561         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
562
563 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
564
565         * as/link/aslink.h: added LKOBJEXT
566         * as/link/hc08/link_hc08.dsp,
567         * as/link/hc08/Makefile.bcc,
568         * as/link/hc08/Makefile.in,
569         * as/link/mcs51/aslink.dsp,
570         * as/link/mcs51/Makefile.bcc,
571         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
572         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
573         * as/link/lkaomf51.c: merged and moved
574         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
575         * as/link/z80/lkdata.c,
576         * as/link/lkdata.c: merged and moved
577         * as/link/hc08/lkmain.c,
578         * as/link/mcs51/lkmain.c: cosmetic changes
579         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
580         * as/link/lklex.c: use LKOBJEXT
581         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
582           ANSI-fied functions, removed bubble-sorts
583         * as/link/z80/lksym.c           as/link/lksym.c: merged,
584           ANSI-fied functions
585         * as/link/z80/linkgbz80.dsp,
586         * as/link/z80/linkz80.dsp,
587         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
588           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
589         * as/link/z80/lkhead.c,
590         * as/link/z80/lklex.c: deleted
591         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
592         * as/link/z80/lkmain.c: added copyfile()
593
594 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
595
596         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
597
598 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
599
600         * device/lib/_strlen.c: assembler version for mcs51
601
602 2007-03-13 Raphael Neider <rneider AT web.de>
603
604         * device/include/pic16/pic18f2221.h,
605         * device/include/pic16/pic18f2321.h,
606         * device/include/pic16/pic18f2331.h,
607         * device/include/pic16/pic18f4221.h,
608         * device/include/pic16/pic18f4321.h,
609         * device/include/pic16/pic18f4331.h: fixed config byte location names
610         * support/scripts/inc2h-pic16.pl: removed debug output, emit
611           consistently named config byte locations
612
613 2007-03-13 Borut Razem <borut.razem AT siol.net>
614
615         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
616           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
617           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
618           as/link/z80/Makefile.in, as/z80/Makefile.in:
619           introduced LDFLAGS
620
621 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
622
623         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
624         * device/lib/printf_large.c: pointer was converted to generic
625         pointer for mcs51 models other than model-small (Maarten noticed)
626
627 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
628
629         * device/include/mcs51/ADuC84x.h: Added.
630
631 2007-03-10 Borut Razem <borut.razem AT siol.net>
632
633         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
634           fixed RFE #1624219: double backslashes in filenames;
635           functions hexEscape(), octalEscape() and copyStr() moved from
636           SDCCval.c to SDCCutil.c and made them glovbally available
637
638 2007-03-09 Borut Razem <borut.razem AT siol.net>
639
640         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
641           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
642           1673361: Missaligned comments in output files
643
644 2007-03-09 Raphael Neider <rneider AT web.de>
645
646         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
647
648 2007-03-09 Raphael Neider <rneider AT web.de>
649
650         * src/pic/gen.c,
651         * src/pic/glue.c,
652         * src/pic/ralloc.c: suppress undesired debug output
653         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
654
655 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
656
657         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
658
659 2007-03-07 Borut Razem <borut.razem AT siol.net>
660
661         * device/lib/pic16/libdev/pic18f[24][34]31.c:
662           search include files in the current directory
663
664 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
665
666         * src/SDCCglue.c (emitMaps, glue),
667         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
668           absolute xdata
669         * support/regression/tests/absolute.c: added xdata test
670
671 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
672
673         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
674           added condition to macro, fixes bug 1666080
675
676 2007-03-02 Raphael Neider <rneider AT web.de>
677
678         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
679
680 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
681
682         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
683         be cleared. Unconditionally set __XPAGE
684         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
685
686 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
687
688         * src/SDCCglobl.h,
689         * src/SDCCmain.c,
690         * src/mcs51/gen.c,
691         * src/mcs51/rtrack.c,
692         * src/ds390/gen.c,
693         * doc/sdccman.lyx: added --no-gen-comments
694         * src/mcs51/peeph.def: added 192.b, disabled 185
695
696 2007-02-25 Raphael Neider <rneider AT web.de>
697
698         * src/pic16/gen.c (genCast): fixed typo
699         * device/lib/pic16/Makefile.subdir: only install existing files
700         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
701
702 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
703
704         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
705         * device/lib/mcs51/crtclear.asm,
706         * device/lib/mcs51/crtxclear.asm: renumbered labels
707         * device/lib/mcs51/Makefile.in: added crtcall.asm
708         * doc/sdccman.lyx: documented mcs51 crt* library startup code
709         * src/mcs51/gen.c (movc): removed,
710           (aopGet, genPlusBits): clear a after loading the carry (possibly from
711             acc.x or psw.x),
712           (toCarry, genSend, genRet): added function toCarry,
713           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
714           (assignBit, genAssign, genCast): added function assignBit
715         * src/mcs51/Makefile.bcc: added rtrack.c
716         * src/mcs51/ralloc.h: made valueKnown a bitfield
717         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
718           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
719           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
720         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
721         * src/z80/gen.c: added AOP_IS_PAIRPTR,
722           (_pop): only pop valid pairs, see gencjneshort,
723           (gencjneshort): return pair that still needs to be popped, restructured,
724           (gencjne, genCmpEq): call _pop
725
726 2007-02-23 Raphael Neider <rneider AT web.de>
727
728         * device/include/pic/pic14devices.txt: 16f684 has only one config word
729
730 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
731
732         * device/include/mcs51/P89LPC925.h: Added.
733
734 2007-02-18 Raphael Neider <rneider AT web.de>
735
736         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
737
738 2007-02-17 Borut Razem <borut.razem AT siol.net>
739
740         * support/cpp2/directives.c, support/cpp2/version.c:
741           synchronized with GCC CPP 4.1.2
742
743 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
744
745         * src/mcs51/rtrack.h,
746         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
747           by checking the strings passed by emitcode() to the assembler.
748           Feel free to change. This in part addresses RFE #482179.
749           Set environment variable SDCC_RTRACK to enable.
750         * src/mcs51/gen.c: inserted hooks
751         * src/mcs51/ralloc.h: added two members to struct regs
752         * support/regression/tests/regtrack.c: added
753
754 2007-02-14 Borut Razem <borut.razem AT siol.net>
755
756         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
757         * Makefile.in: applied patch from Makefile related part of
758           #1469393: Compiler does not initialize static data
759
760 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
761
762         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
763           for better fix of bug 1273984, compiles pic16 rand.c
764
765 2007-02-12 Borut Razem <borut.razem AT siol.net>
766
767         * src/pic16/main.c: fixed pic16 standard library directory bug
768
769 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
770
771         * src/hc08/gen.c (genSwap): fix swap regression test
772
773 2007-02-10 Borut Razem <borut.razem AT siol.net>
774
775         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
776           with same scope
777         * support/regression/tests/bug-1654060.c: added regression test for
778           #1654060
779
780 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
781
782         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
783         bit moves in return statement
784
785 2007-02-09 Borut Razem <borut.razem AT siol.net>
786
787         * src/SDCC.y: fixed bug #1654060 typedef within function causes
788           syntax error
789
790 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
791
792         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
793         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
794
795 2007-02-07 Raphael Neider <rneider AT web.de>
796
797         * src/pic16/devices.inc,
798         * device/include/pic16/pic18fregs.h,
799         * device/include/pic16/pic18f[24][34]31.h,
800         * device/lib/pic16/libdev/pic18f[24][34]31.c,
801         * device/lib/pic16/pics.all: added 18f[24][34]31 family
802         * device/lib/pic16/libio/i2c.ignore: do not build i2c
803
804 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
805
806         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
807           can this have lived here for so many years?
808         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
809           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
810         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
811
812 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
813
814         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
815         appended by loop induction must be at the very end of the eBBlock
816
817 2007-02-05 Kevin Vigor
818
819         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
820
821 2007-02-05 Borut Razem <borut.razem AT siol.net>
822
823         * support/regression/fwk/lib/timeout.c: native WIN32 port,
824           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
825
826 2007-02-03 Borut Razem <borut.razem AT siol.net>
827
828         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
829           applied patch #1646602 option to set default signedness of char to
830           unsigned, added -funsigned-char command line option,
831           thanks to Gunther Jehle
832         * device/lib/Makefile.in: added the -f option to rm so it doesn't
833           prompt for file deletion a few hundred times (especially the
834           subversion files, which have ro permissions so it asks for
835           confirmation), thanks to Simon McAuliffe;
836           added {} + option to find in order to remove multiple files from a
837           single rm commad
838
839 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
840
841         * device/include/mcs51/SST89x5xRDx.h: Added.
842
843 2007-02-02 Raphael Neider <rneider AT web.de>
844
845         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
846         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
847
848 2007-02-01 Raphael Neider <rneider AT web.de>
849
850         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
851           config words again
852
853 2007-01-31 Borut Razem <borut.razem AT siol.net>
854
855         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
856           if compiled with GCC. Thanks to Raphael Neider
857
858 2007-01-31 Raphael Neider <rneider AT web.de>
859
860         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
861             operand names, handles name and (name + n) for all n,
862           (sameBank): restructured, also check bank allocation policy,
863         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
864           (pic14_operandsAllocatedInSameBank): check whether to operands
865             will be allocated into the same bank (i.e., section) to reduce
866             BANKSEL overhead, queried from pcode.c:sameBank,
867           (pic14printLocals): reintroduced clustering registers into a single
868             section: all compiler generated symbols will now reside in one
869             bank (per file), reducing BANKSEL overhead and code size,
870           (showAllMemmaps): use local dbuf where possible
871
872 2007-01-29 Raphael Neider <rneider AT web.de>
873
874         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
875           (call_libraryfunc): retrieve/create symbol and mark as used,
876           (genFunction): mark defined functions as non-extern and add again
877            to code memmap for later output
878         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
879           (pic14printLocals): reworked for new symbol emission,
880           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
881           showAllMemmaps): reworked symbol output using dbufs, added handling
882             of string literals (still incomplete),
883           (picglue): removed symbol emission, moved into showAllMemmaps,
884           (emitSymbolSet): new workhorse for symbol output,
885           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
886
887 2007-01-29 Borut Razem <borut.razem AT siol.net>
888
889         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
890           component contains the extension separator.
891
892 2007-01-28 Borut Razem <borut.razem AT siol.net>
893
894         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
895           on WIN32
896         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
897           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
898           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
899           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
900           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
901           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
902           src/z80/gen.c, support/Util/MySystem.c:
903           accept slash and backslash as directory separator on WIN32 and
904           Cygwin ports
905
906 2007-01-28 Raphael Neider <rneider AT web.de>
907
908         * src/pic16/devices.inc,
909         * device/include/pic16/pic18f[24][23]21.h,
910         * device/include/pic16/pic18fregs.h,
911         * device/lib/pic16/libdev/pic18f[24][23]21.c,
912         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
913         * device/lib/pic16/libio/adc.ignore,
914         * device/lib/pic16/libio/i2c.ignore,
915         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
916           family, as gputils do not yet support the devices
917         * device/lib/pic16/Makefile.subdir: ignore errors on install
918         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
919           headers and libraries from gputils .inc files
920
921 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
922
923         * doc/sdccman.lyx: add printf_fast_f precision limitation note
924
925 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
926
927         * doc/sdccman.lyx: add printf benchmarks
928
929 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
930
931         * device/lib/printf_fast.c: fix %c, char promoted to int
932         * device/lib/printf_tiny.c: fix %c, char promoted to int
933
934 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
935
936         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
937
938 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
939
940         * support/regression/tests/swap.c: 64 bit hosts failed
941         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
942
943 2007-01-25 Raphael Neider <rneider AT web.de>
944
945         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
946           based on absolute register address, patch by Alex Blond
947
948 2007-01-22 Raphael Neider <rneider AT web.de>
949
950         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
951           emitted, do not emit them again...
952
953 2007-01-22 Raphael Neider <rneider AT web.de>
954
955         * src/regression/bank1.c, src/regression/compare6.c,
956           src/regression/add.c: cosmetic changes
957         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
958         * src/pic/gen.c: fixed global zero and one,
959           (aopForSym): removed unued code,
960           (aopGet): assert aop is defined, check and use `index' of
961             pCodeImmd operands (fixes #1630908),
962         * src/pic/pcode.c (get_op): added output of generic pointer tag,
963           (register_reassign): prevent accidental register unification,
964           (ReuseReg): cosmetic changes (also above)
965         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
966           pic14emitStaticSeg): do not emit initialized data,
967           (printIval*): replaced with working versions,
968           (pic14createInterruptVect,picglue): use idata for initialized data,
969             now init data should work in all modules (not only main()),
970         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
971
972 2007-01-21 Borut Razem <borut.razem AT siol.net>
973
974         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
975           use -fPIC or -fpic if they are supported and not ignored
976         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
977         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
978
979 2007-01-20 Borut Razem <borut.razem AT siol.net>
980
981         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
982           implemented RFE #1470316: allow "$" in variable names
983
984 2007-01-20 Raphael Neider <rneider AT web.de>
985
986         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
987
988 2007-01-20 Raphael Neider <rneider AT web.de>
989
990         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
991         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
992         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
993         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
994           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
995         * device/lib/pic/libdev/pic*.c,
996         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
997         * device/lib/pic/libdev/Makefile.in: show progress
998
999 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
1000
1001         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
1002         * support/scripts/sdcc_cygwin_mingw32,
1003         * support/scripts/sdcc_mingw32,
1004         * support/scripts/build.mak: replaced --datadir by --datarootdir for
1005         conformance with autoconf 2.6
1006
1007 2007-01-19 Raphael Neider <rneider AT web.de>
1008
1009         * src/pic/device.c (register_map): fixed list construction
1010         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
1011           (genMod): removed case for genModbits,
1012           (genModbits): removed as now unused/unimplemented
1013         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
1014
1015 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1016
1017         * support/regression/tests/swap.c: added in response to #1638622
1018         * doc/sdccman.lyx: synced version, minor changes
1019
1020 2007-01-18 Borut Razem <borut.razem AT siol.net>
1021
1022         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
1023           thanks to Gunther Jehle
1024         * src/asm.c: don't die if the file drfined in #line couldn't be opened
1025         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
1026           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
1027           use filename in lineno instead.
1028         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
1029           print the file name in ast_print()
1030
1031 2007-01-18 Borut Razem <borut.razem AT siol.net>
1032
1033         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
1034           defined in MSVC
1035         * src/SDCC.lex: stringLiteral() returns const char pointer,
1036           EOF detection in stringLiteral(), fixed asmbuf memory leak,
1037           fixed column counting
1038         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
1039           accept const char pointer as parameter
1040         * src/SDCCdwarf2.c: corrected buffer size
1041
1042 2007-01-17 Borut Razem <borut.razem AT siol.net>
1043
1044         * support/Util/dbuf_string.c: fixed for amd64
1045
1046 2007-01-15 Borut Razem <borut.razem AT siol.net>
1047
1048         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
1049           removed terminal symbol ELIPSIS, since it was never generated by the
1050           lexer and it was wrongly used in parameter_identifier_list rule
1051
1052 2007-01-15 Raphael Neider <rneider AT web.de>
1053
1054         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
1055             code page and data banking description
1056         * src/pic/genarith.c,
1057         * src/pic/gen.h: removed bit arithmetic functions,
1058             updated exit(1) to exit(EXIT_FAILURE)
1059         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
1060         * device/include/pic16/pic18f2455.h,
1061         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
1062             TRISD and TRISE, fixed/added some bit names
1063         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
1064         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
1065             updated pic18f2455.{c,h} instead of duplicating them
1066
1067 2007-01-14 Borut Razem <borut.razem AT siol.net>
1068
1069         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
1070           Cannot debug files that contain spaces in the path name
1071           by converting spaces in asm file name to underscores
1072
1073 2007-01-13 Borut Razem <borut.razem AT siol.net>
1074
1075         * doc/sdccman.lyx: fixed format errors
1076
1077 2007-01-10 Borut Razem <borut.razem AT siol.net>
1078
1079         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
1080           codeseg/constseg #pragma fail
1081         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
1082         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
1083           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
1084           suppoprt/cpp2/sdcpp.[ch]: house cleaning
1085
1086 2007-01-09 Borut Razem <borut.razem AT siol.net>
1087
1088         * get rid of diagnistic.[ch], pretty-print.[ch],
1089           c-pretty-print.[ch], ... used just for error, warning, ...
1090           message formatting
1091         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
1092           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
1093           suppoprt/cpp2/pretty-print.[ch]:
1094           removed
1095         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
1096           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
1097           suppoprt/cpp2/sdcpp.dsp:
1098           changed
1099
1100 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
1101
1102         * device/lib/printf_large.c (output_float): removed recursion,
1103           use smaller buffer on stack for mcs51,
1104           fixed bug printing 1.96
1105         * support/regression/tests/snprintf.c: added test
1106
1107 2007-01-07 Borut Razem <borut.razem AT siol.net>
1108
1109         * use dynamic memory buffers instead temporary files
1110         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
1111           added
1112         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
1113           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
1114           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
1115           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
1116           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
1117           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
1118           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
1119           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
1120           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
1121           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
1122           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
1123           support/Util/dbuf.c, support/Util/dbuf.h:
1124           modified
1125         * .version, sdcc.spec: bumped version to 2.6.4
1126
1127 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
1128
1129         * src/port.h: added TARGET_Z80_LIKE macro
1130         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
1131           output PSEG location if --xram-loc or --xstack-loc was used
1132         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
1133
1134 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
1135
1136         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
1137         * as/as_z80.dsp,   as/z80/as_z80.dsp,
1138         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
1139         * sdcc.dsw: moved project files into subdir
1140         * as/hc08/as_hc08.dsp,
1141         * as/hc08/Makefile.bcc,
1142         * as/hc08/Makefile.in,
1143         * as/mcs51/Makefile.bcc,
1144         * as/mcs51/Makefile.in,
1145         * as/z80/Makefile.bcc,
1146         * as/z80/Makefile.in,
1147         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
1148         * as/hc08/asm.h,
1149         * as/mcs51/asm.h,
1150         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
1151         * as/hc08/asmain.c,
1152         * as/hc08/assym.c,
1153         * as/mcs51/asmain.c,
1154         * as/mcs51/assym.c,
1155         * as/z80/assym.c: removed include "strcmpi.h"
1156         * as/hc08/strcmpi.c,
1157         * as/hc08/strcmpi.h,
1158         * as/mcs51/strcmpi.c,
1159         * as/mcs51/strcmpi.h,
1160         * support/Util/strcmpi.c,
1161         * support/Util/strcmpi.h: removed files
1162         * as/strcmpi.c: added as_strncmpi()
1163
1164 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1165
1166         * sdcc.dsw: Added some dependencies on project config.dsp
1167
1168 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
1169
1170         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
1171           with [di]ram_start to fix a regresion
1172
1173 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
1174
1175         * configure.in: added missing mcs51 in status output
1176         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
1177         directory
1178         * debugger/mcs51/clean.mk (distclean): remove config.h
1179         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
1180         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
1181         options.h, s-options-h and options.c
1182         * support/cpp2/clean.mk: unused, removed
1183         * Makefile.common.in,
1184         * main_in.mk,
1185         * as/Makefile.in,
1186         * as/hc08/Makefile.in,
1187         * as/hc08/clean.mk,
1188         * as/mcs51/Makefile.in,
1189         * as/mcs51/clean.mk,
1190         * as/z80/clean.mk,
1191         * as/z80/conf.mk,
1192         * as/z80/Makefile.in,
1193         * as/z80/clean.mk,
1194         * as/link/Makefile.in,
1195         * as/link/hc08/Makefile.in,
1196         * as/link/hc08/clean.mk,
1197         * as/link/mcs51/Makefile.in,
1198         * as/link/mcs51/clean.mk,
1199         * as/link/z80/Makefile.in,
1200         * as/link/z80/clean.mk,
1201         * as/link/z80/conf.mk,
1202         * debugger/mcs51/Makefile.in,
1203         * debugger/mcs51/clean.mk,
1204         * device/include/Makefile.in,
1205         * device/lib/Makefile.in,
1206         * device/lib/mcs51/Makefile.in,
1207         * device/lib/pic/Makefile.in,
1208         * device/lib/pic/Makefile.common.in,
1209         * device/lib/pic/Makefile.subdir,
1210         * device/lib/pic/Makefile.rules,
1211         * device/lib/pic16/libio/Makefile.in,
1212         * device/lib/pic16/Makefile.subdir,
1213         * device/lib/pic16/libdev/Makefile.in,
1214         * device/lib/pic16/Makefile.rules,
1215         * device/lib/pic16/Makefile.common.in,
1216         * sim/ucsim/avr.src/Makefile.in,
1217         * sim/ucsim/main_in.mk,
1218         * sim/ucsim/cmd.src/Makefile.in,
1219         * sim/ucsim/doc/Makefile.in,
1220         * sim/ucsim/gui.src/Makefile.in,
1221         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
1222         * sim/ucsim/gui.src/serio.src/Makefile.in,
1223         * sim/ucsim/hc08.src/Makefile.in,
1224         * sim/ucsim/libltdl/Makefile.in,
1225         * sim/ucsim/s51.src/Makefile.in,
1226         * sim/ucsim/sim.src/Makefile.in,
1227         * sim/ucsim/sim.src/conf.mk,
1228         * sim/ucsim/xa.src/Makefile.in,
1229         * sim/ucsim/z80.src/Makefile.in,
1230         * src/Makefile.in,
1231         * src/clean.mk,
1232         * src/port.mk,
1233         * support/cpp2/Makefile.in,
1234         * support/librarian/Makefile.in,
1235         * support/librarian/clean.mk,
1236         * support/makebin/Makefile.in,
1237         * support/makebin/clean.mk,
1238         * support/packihx/Makefile.in,
1239         * support/regression/Makefile.in,
1240         * support/regression/ports/ds390/spec.mk,
1241         * support/regression/ports/gbz80/spec.mk,
1242         * support/regression/ports/hc08/spec.mk,
1243         * support/regression/ports/mcs51/spec.mk,
1244         * support/regression/ports/mcs51-large/spec.mk,
1245         * support/regression/ports/mcs51-medium/spec.mk,
1246         * support/regression/ports/mcs51-xstack-auto/spec.mk,
1247         * support/regression/ports/pic14/spec.mk,
1248         * support/regression/ports/pic16/spec.mk,
1249         * support/regression/ports/mcs51-stack-auto/spec.mk,
1250         * support/regression/ports/ucz80/spec.mk,
1251         * support/regression/ports/xa51/spec.mk,
1252         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
1253         adding a slash after $(top_builddir) and/or adding @datarootdir@
1254         * configure.in,
1255         * debugger/mcs51/configure.in,
1256         * device/lib/pic/configure.in,
1257         * device/lib/pic16/configure.in,
1258         * sim/ucsim/configure.in,
1259         * support/cpp2/configure.in,
1260         * support/packihx/configure.in: changed AC_PREREQ to 2.60
1261         * configure,
1262         * debugger/mcs51/configure,
1263         * device/lib/pic/configure,
1264         * device/lib/pic16/configure,
1265         * sim/ucsim/configure,
1266         * support/cpp2/configure,
1267         * support/packihx/configure: generated with autoconf 2.60
1268
1269 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
1270
1271         * as/link/hc08/lkihx.c (newArea),
1272         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
1273
1274 2007-01-02 Borut Razem <borut.razem AT siol.net>
1275
1276         * doc/sdccman.lyx: documented #pragma sdcc_hash
1277         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
1278           initialized to 0
1279         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
1280
1281 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
1282
1283         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
1284         empty 'while'-loop to work correctly, see regression test 'while.c'
1285         * support/regression/tests/while.c: added
1286
1287 2007-01-01 Borut Razem <borut.razem AT siol.net>
1288
1289         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
1290           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
1291           support/cpp2/libcpp/sdcpp.c:
1292           sdcpp specific pragma/directive/option handling moved to sdcpp.c
1293         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
1294         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
1295
1296 2006-12-31 Borut Razem <borut.razem AT siol.net>
1297
1298         * SDCPP synchronized with GCC CPP release version 4.1.1,
1299           currently the latest release:
1300         * support/cpp2/libcpp, support/cpp2/libcpp/include,
1301           support/cpp2/libcpp/include/cpp-id-data.h
1302           support/cpp2/libiberty/fopen_unlocked.c
1303           support/cpp2/libiberty/md5.c
1304           support/cpp2/md5.h
1305           support/cpp2/opt-functions.awk
1306           support/cpp2/opt-gather.awk
1307           support/cpp2/optc-gen.awk
1308           support/cpp2/opth-gen.awk:
1309           added
1310         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
1311           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1312           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
1313           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
1314           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
1315           support/cpp2/diagnostic.h, support/cpp2/except.h,
1316           support/cpp2/hwint.h, support/cpp2/input.h,
1317           support/cpp2/intl.h, support/cpp2/move-if-change,
1318           support/cpp2/opts.c, support/cpp2/opts.h,
1319           support/cpp2/output.h, support/cpp2/prefix.c,
1320           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
1321           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
1322           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
1323           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
1324           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
1325           support/cpp2/version.c:
1326           modified
1327         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
1328           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
1329           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
1330           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
1331           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
1332           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
1333           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
1334           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
1335           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
1336           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
1337           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
1338           moved
1339         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
1340           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
1341           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
1342           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
1343           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
1344           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
1345           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
1346           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
1347           support/cpp2/hashtable.h, support/cpp2/line-map.c,
1348           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
1349           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
1350           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
1351           support/cpp2/system.h:
1352           deleted / moved
1353
1354 2006-12-31 Borut Razem <borut.razem AT siol.net>
1355
1356         * configure.in, configure: fixed bug #1538756: configure dies if bison
1357           and flex are not installed, 2nd try
1358
1359 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
1360
1361         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
1362         400.x for better code in RFE 899102
1363
1364 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
1365
1366         * src/SDCCpeeph.c (deadMove),
1367         * src/port.h,
1368         * src/mcs51/peep.h: renamed 'op' by 'reg'
1369         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
1370         (scan4op): small change for removeDeadMove(), added support for
1371         'callee saves' and/or PACLL function calls,
1372         (removeDeadMove): added, removes superflous 'mov r%1,%2',
1373         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
1374         left in new dispatcher mcs51DeadMove()
1375         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
1376         removeDeadMove()
1377         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
1378
1379 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1380
1381         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
1382           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
1383
1384 2006-12-30 Borut Razem <borut.razem AT siol.net>
1385
1386         * support/cpp2/spacs.h: deleted from svn
1387         * configure.in, configure: fixed bug #1538756: configure dies if bison
1388           and flex are not installed
1389
1390 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
1391
1392         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
1393           with this z80 passes printf float test when enabled
1394         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
1395
1396 2006-12-28 Borut Razem <borut.razem AT siol.net>
1397
1398         * support/cpp2/config.in, support/cpp2/configure.in,
1399           support/cpp2/configure, support/cpp2/Makefile.in:
1400           fix for the solaris build
1401
1402 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1403
1404         * src/SDCC.y (type_specifier2, pointer),
1405         * src/SDCCsymt.h,
1406         * src/SDCCsymt.c (mergeSpec, checkSClass),
1407         * support/Util/SDCCerr.c,
1408         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
1409         * support/valdiag/valdiag.py: Allow test cases to specify
1410           required language standard
1411         * support/valdiag/tests/restrict.c: New file to test restrict keyword
1412         * support/valdiag/tests/tentdecl.c: Supress empty source file error
1413
1414 2006-12-27 Borut Razem <borut.razem AT siol.net>
1415
1416         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
1417         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
1418           mbchar removed
1419         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
1420           fixed for borland C
1421         * support/cpp2/libiberty/Makefile.bcc: updated
1422         * src/pic16/main.c: fixed #pragma udata handling
1423         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
1424
1425 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
1426
1427         * src/SDCCpeeph.c: made labelHashEntry global,
1428         made pcDistance, FBYNAME static,
1429         (pcDistance): made static, use isComment and isLabel,
1430         (deadMove): added,
1431         (getLabelRef): added, extracted from labelRefCount(),
1432         (labelRefCount): use new getLabelRef(),
1433         (callFuncByName): made static, added deadMove,
1434         use isComment and isLabel,
1435         (newPeepRule): made static, set isLabel,
1436         (isLabelDefinition): added parameter isPeepRule to allow '%' in
1437         labels from peephole rules,
1438         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
1439         when isComment or isLabel is set
1440         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
1441         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
1442         to make them global
1443         * src/mcs51/peep.h: added
1444         * src/mcs51/peep.c: added, implements mcs51DeadMove()
1445         * src/port.h: added peep->deadMove to port structure
1446         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
1447         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
1448         deadMove, finally removed no. 1 and 2
1449         * src/mcs51/gen.c,
1450         * src/pic/gen.c,
1451         * src/z80/gen.c,
1452         * src/z80/ralloc.c,
1453         * src/pic16/gen.c,
1454         * src/ds390/gen.c,
1455         * src/hc08/gen.c: mark lines with isComment or isLabel
1456         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
1457         * .version,
1458         * sdcc.spec: bumped version to 2.6.3
1459
1460 2006-12-26 Borut Razem <borut.razem AT siol.net>
1461
1462         * support/cpp2/Makefile.in: added dependency on options.h
1463         * configure: regenerated
1464         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
1465         * support/cpp2/Makefile.in: added vasprintf.c
1466
1467 2006-12-25 Borut Razem <borut.razem AT siol.net>
1468
1469         * SDCPP synchronized with GCC CPP release version 3.4.6,
1470           the latest release before 4.x:
1471         * support/cpp2/Makefile.in, support/cpp2/config.h,
1472           support/cpp2/configure, support/cpp2/configure.in,
1473           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
1474           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
1475           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
1476           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
1477           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
1478           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
1479           support/cpp2/cpptrad.c, support/cpp2/except.h,
1480           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
1481           support/cpp2/hwint.h, support/cpp2/intl.h,
1482           support/cpp2/line-map.c, support/cpp2/line-map.h,
1483           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
1484           support/cpp2/output.h, support/cpp2/prefix.c,
1485           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
1486           support/cpp2/system.h, support/cpp2/version.c:
1487           modified
1488         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1489           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
1490           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
1491           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
1492           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
1493           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
1494           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
1495           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
1496           support/cpp2/move-if-change, support/cpp2/opts.c,
1497           support/cpp2/opts.h, support/cpp2/opts.sh,
1498           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
1499           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
1500           support/cpp2/win32, support/cpp2/win32/dirent.c,
1501           support/cpp2/win32/dirent.h:
1502           added
1503         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
1504         * support/cpp2/sdcpp.h: renamed from sdcc.h
1505         * sdcppinit.c: deleted
1506
1507 2006-12-23 Borut Razem <borut.razem AT siol.net>
1508
1509         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
1510           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
1511           preproc.c: an other try to fix bug #982435: introduced
1512           -pedantic-parse-number command line option and pedantic_parse_number
1513           pragma
1514
1515 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
1516
1517         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
1518            BSEG handling,
1519           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
1520            corrected overlayed areax addresses, warn about memory overlaps
1521         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
1522         * src/avr/main.c,
1523         * src/ds390/main.c,
1524         * src/hc08/main.c,
1525         * src/mcs51/main.c,
1526         * src/pic16/main.c,
1527         * src/pic/main.c,
1528         * src/xa51/main.c,
1529         * src/z80/main.c,
1530         * src/port.h: added xabs_name and iabs_name
1531         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
1532           (glue, emitMaps): create and emit maps d_abs and i_abs
1533         * src/SDCCglue.h: cosmetic changes
1534         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
1535         * src/SDCCmem.h,
1536         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
1537           (allocDefault): put absolute, initialized globals in them
1538         * support/regression/tests/absolute.c: added absolute bdata test
1539         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
1540
1541 2006-12-20 Borut Razem <borut.razem AT siol.net>
1542
1543         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
1544         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
1545           added regression test for bug #982435
1546
1547 2006-12-18 Borut Razem <borut.razem AT siol.net>
1548
1549         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
1550         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
1551           small cosmetic changes
1552         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
1553         * support/regression/tests/bug-1351710.c: added regression test
1554
1555 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1556
1557         * doc/sdccman.lyx: added the long missed iCode table
1558           "<where is figure II?>", added links to wiki
1559
1560 2006-12-17 Borut Razem <borut.razem AT siol.net>
1561
1562         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
1563           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
1564           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
1565           unified table driven pragma handling, pragma argument type checking
1566         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
1567           current one - version 1.1.3
1568         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
1569
1570 2006-12-13 Raphael Neider <rneider AT web.de>
1571
1572         * src/pic/device.h: removed AssignedMemory structure and macros
1573         * src/pic/device.c: removed global finalMapping (linker assigns
1574             memory locations),
1575           (register_map): add SFRs to remembered memRanges
1576           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
1577           assignFixedRegisters,assignRelocatableRegisters): removed,
1578           (setMaxRAM,validAddress): adapted accordingly,
1579           (pic14_hasSharebank,pic14_getSharedStack): only report and use
1580             reasonably sized sharebanks,
1581         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
1582           (allDefsOutOfRange): removed unused code,
1583         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
1584             handling
1585         * src/pic/pcode.c (register_reassign): removed recursion warning,
1586             fired far too often,
1587         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
1588             to use existing pic14_stringInSet() to avoid duplicate symbols,
1589             tidied up the code a bit,
1590           (pic14printLocals): added in symmetry to printExterns, replaces
1591             writeUsedRegs more or less,
1592           (picglue): call new pic14_printLocals(),
1593         * device/include/pic/pic*.h: removed #pragma memmap directives,
1594             information gathered from include/pic/pic14devices.txt
1595         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
1596
1597 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
1598
1599         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
1600
1601 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1602
1603         * device/include/mcs51/cc2430.h: fixed missing ';'
1604
1605 2006-12-10 Raphael Neider <rneider AT web.de>
1606
1607         * device/lib/pic16/libc/stdio/vfprintf.c,
1608         * device/lib/pic16/libc/stdio/printf_small.c,
1609         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
1610           char arguments, as char varargs are cast to int by the caller,
1611           hopefully fixes #1604915 (other device libraries are still affected)
1612
1613 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1614
1615         * src/mcs51/ralloc.c (packRegsForAssign),
1616         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
1617
1618 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
1619
1620         * device/include/malloc.h: removed init_dynamic_memory
1621         * device/lib/malloc.c: made init_dynamic_memory static and automatically
1622           call it once from malloc. Also use _sdcc_heap[] from _heap.c
1623         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
1624         * device/lib/libsdcc.lib,
1625         * device/lib/Makefile.in,
1626         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
1627         * doc/sdccman.lyx: documented use of new _heap.c
1628         * support/regression/tests/malloc.c: removed init_dynamic_memory
1629         * src/cdbFile.c(spacesToUnderscores): new function,
1630           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
1631           1068030
1632         * device/include/tinibios.h: removed defines for putchar and getchar
1633         * device/lib/ds390/Makefile.in: added putchar.c
1634         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
1635
1636 2006-12-09 Borut Razem <borut.razem AT siol.net>
1637
1638         * support/cpp2/sdcc.h: prevent multiple inclusion
1639         * support/cpp2/options.h: deleted
1640
1641 2006-12-08 Borut Razem <borut.razem AT siol.net>
1642
1643         * support/cpp2/sdcc.h: removed x*alloc() macros
1644         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
1645         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
1646           support/cpp2/sdcpp.sdc: x*alloc files added to the project
1647         * support/cpp2/system.h: moved #include "sdcc.h"
1648         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
1649           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
1650           added
1651         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
1652           -funsigned-char options
1653         * support/cpp2/sdcppmain.c: fixed bug 1611411
1654
1655 2006-12-07 Borut Razem <borut.razem AT siol.net>
1656
1657         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
1658           directive
1659
1660 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
1661
1662         * src/SDCCsymt.c (addDecl): fixed bug 1609244
1663         * src/SDCCmain.c (linkEdit): fixed bug 1609279
1664         * doc/sdccman.lyx,
1665         * .version: bumped to 2.6.2 because a) it's been a while
1666           b) the linker sources have moved c) the preprocessor is upgraded
1667
1668 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1669
1670         * support/regression/tests/snprintf.c: some checks
1671         * lib/src/printf_large.c: %bc: read char instead of int from stack
1672
1673 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
1674
1675         * device/include/mcs51/cc2430.h: inserted _XPAGE
1676
1677 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1678
1679         * device/include/mcs51/cc2430.h: added
1680
1681 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
1682
1683         * device/include/asm/default/features.h,
1684         * device/include/asm/ds390/features.h,
1685         * device/include/mcs51/at89s53.h,
1686         * device/include/ser.h,
1687         * device/include/ser_ir.h,
1688         * device/include/serial.h: changed keywords to double underscore variants,
1689           fixes bug 1590261 some more, thanks Steven Borley
1690
1691 2006-12-01 Raphael Neider <rneider AT web.de>
1692
1693         * src/pic/pcode.c (register_reassign): do not crash on recursive code
1694           but emit warning (recursion is not supported for pic14)
1695
1696 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1697
1698         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
1699         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
1700
1701 2006-11-30 Raphael Neider <rneider AT web.de>
1702
1703         * src/pic/device.c (dump_sfr): always emit symbols
1704         * src/pic/glue.c (pic14printPublics): fixed typo
1705
1706 2006-11-30 Raphael Neider <rneider AT web.de>
1707
1708         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
1709           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
1710           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
1711            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
1712            a sharebank, use a non-shared bank for the stack if none available
1713         * src/pic/device.h (struct memRange): added linked list next field,
1714           added prototypes for above functions
1715         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
1716           (typeRegWithIdx): accept fixed and unfixed stack registers
1717         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
1718           the stack, handle shared and banked stack (except for WSAVE),
1719           (insertBankSel): removed useless optimization (will never fire),
1720           (FixRegisterBanking): added optimization for devices with only one
1721           possibly aliased bank of memory, like 16f84
1722         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
1723           devices have no SHAREBANK in the linker script
1724         * device/include/pic/pic14devices.txt: documented memmap
1725         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
1726
1727 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1728
1729         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
1730           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
1731           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
1732           genhc08Code): switched most of the D (debug) macros to DD (detailed
1733           debug) macros to better control clutter in the generated .asm file.
1734         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
1735           genRightShift): fixed bug with non-constant bit shift stored to
1736           a volatile result (SF Open Discussion forum thread #1616749).
1737           Single byte case is not yet optimized.
1738
1739 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
1740
1741         * device/include/asm/mcs51/features.h,
1742         * device/include/malloc.h,
1743         * device/include/stdio.h: changed keywords to double underscore variants,
1744           fixes bug 1590261
1745
1746 2006-11-27 Borut Razem <borut.razem AT siol.net>
1747
1748         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
1749           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
1750           support/cpp2/output.h, support/cpp2/cppinit.c,
1751           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
1752           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
1753           support/cpp2/cppdefault.c, support/cpp2/system.h,
1754           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
1755           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
1756           support/cpp2/prefix.c, support/cpp2/except.h,
1757           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
1758           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
1759           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
1760           support/cpp2/version.c, support/cpp2/cppmain.c,
1761           support/cpp2/version.h, support/cpp2/hashtable.c,
1762           support/cpp2/cpperror.c:
1763           synchronized with GCC CPP release version 3.3.6,
1764           the latest where cppmain.c still exists.
1765         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
1766           support/cpp2/sdcppinit.c: added
1767
1768 2006-11-27 Borut Razem <borut.razem AT siol.net>
1769
1770         * support/cpp2/cpplex.c:
1771           fixed _asm ... _endasm handling bug, introduce with GCC CPP
1772           synchronization
1773         * support/cpp2/cpplib.c: removed definitions of unused variables
1774
1775 2006-11-26 Borut Razem <borut.razem AT siol.net>
1776
1777         * support/cpp2/libiberty.h: commented out x*alloc() declarations
1778           since they are redefined by macros in support/cpp2/sdcc.h
1779         * support/cpp2/sdcc.h: x*alloc macro redefinition
1780
1781 2006-11-25 Borut Razem <borut.razem AT siol.net>
1782
1783         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
1784           support/cpp2/configure, support/cpp2/Makefile.in,
1785           support/cpp2/cppfiles.c, support/cpp2/output.h,
1786           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
1787           support/cpp2/config.h, support/cpp2/cpplib.h,
1788           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
1789           support/cpp2/cppdefault.c, support/cpp2/config.in,
1790           support/cpp2/system.h, support/cpp2/cpplex.c,
1791           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
1792           support/cpp2/cppdefault.h, support/cpp2/prefix.c
1793           support/cpp2/hwint.h, support/cpp2/mbchar.h,
1794           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
1795           support/cpp2/configure.in, support/cpp2/intl.h,
1796           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
1797           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
1798           support/cpp2/version.c, support/cpp2/cppmain.c,
1799           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
1800           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
1801           support/cpp2/cpperror.c,
1802           support/cpp2/libiberty/safe-ctype.c,
1803           support/cpp2/libiberty/safe-ctype.h,
1804           support/cpp2/libiberty/splay-tree.c,
1805           support/cpp2/libiberty/obstack.c,
1806           support/cpp2/libiberty/lbasename.c,
1807           support/cpp2/libiberty/splay-tree.h,
1808           support/cpp2/libiberty/obstack.h:
1809           synchronized with GCC CPP release version 3.2.3,
1810           the latest before integration of cpp into gcc
1811         * support/cpp2/except.h, support/cpp2/line-map.c,
1812           support/cpp2/line-map.h,
1813           support/cpp2/libiberty/hex.c,
1814           support/cpp2/libiberty/concat.c,
1815           support/cpp2/libiberty/filenames.h: added
1816         * support/cpp2/intl.c: deleted
1817
1818 2006-11-24 Borut Razem <borut.razem AT siol.net>
1819
1820         * src/SDCC.y: enabled compilation of empty source file
1821         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
1822           "ISO C forbids an empty source file"
1823         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
1824           if all the code is ifdefed out.
1825
1826 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1827
1828         * src/hc08/gen.c (genPcall): fix for bug #1601032
1829
1830 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
1831
1832         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
1833         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
1834         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
1835         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
1836         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
1837         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
1838         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
1839         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
1840         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
1841         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
1842         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
1843         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
1844         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
1845         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
1846         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
1847           Renamed to all upper case as per the standard set by SiLabs
1848
1849 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
1850
1851         * device/include/mcs51/C8051F520.h: new, added
1852         * device/include/mcs51/compiler.h: added link about predefined macros
1853
1854 2006-11-23 Raphael Neider <rneider AT web.de>
1855
1856         * src/regression/Makefile: add -L path to fresh library
1857         * src/regression/simulate: emphasize FAILED output
1858         * src/regression/create_stc: output _failures from gpsim
1859         * src/regression/compare4.c,
1860         * src/regression/rotate6.c: fixed char literals,
1861           all compile, all run =8-D
1862
1863         * src/pic/pcode.h: added isPCASMDIR macro
1864         * src/pic/gen.c (genAnd): fixed bit offset
1865         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
1866           packBits): unified register numbering schemes,
1867           (newReg): do not insert stack registers into hash table,
1868           (initStack): unpinned pseudo stack, simplified,
1869           (typeRegWithIdx): fixed retrieval of stack registers,
1870         * src/pic/pcode.c (addpCodeComment,sameBank): added,
1871           (pCodeReplace): removed invalid assertion,
1872           (insertPCodeInstruction): fixed newly added labels,
1873           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
1874           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
1875           DumpFlow): removed unsed (broken?) code,
1876           (insertBankSel): prevent STATUS from being BANKSELed,
1877           (FixRegisterBanking): rewritten from scratch, implemented generic
1878             optimizations (suppress BANKSELs to same register and to registers
1879             present in all banks),
1880           (AnalyzeBanking): update flow after BANKSELection
1881
1882         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
1883             sharebank, let linker place it, mark STKxx symbols as emitted
1884
1885 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1886
1887         * src/regression/arrays.c,
1888         * src/regression/bank1.c,
1889         * src/regression/bool2.c,
1890         * src/regression/compare7.c,
1891         * src/regression/compare8.c,
1892         * src/regression/compare9.c,
1893         * src/regression/compare10.c,
1894         * src/regression/configword.c,
1895         * src/regression/for.c,
1896         * src/regression/mult1.c,
1897         * src/regression/pointer1.c,
1898         * src/regression/rotate6.c,
1899         * src/regression/string1.c,
1900         * src/regression/struct1.c,
1901         * src/regression/Makefile: make PIC14 regression tests run again
1902           (3 fail, 6 won't compile)
1903
1904 2006-11-21 Raphael Neider <rneider AT web.de>
1905
1906         * device/include/pic16/pic18f4550.h,
1907         * device/include/pic16/pic18f4455.h,
1908         * device/lib/pic16/libdev/pic18f4550.c,
1909         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
1910         * configure.in: removed superfluous closing bracket
1911
1912 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1913
1914         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
1915           always positive.
1916
1917 2006-11-21 Raphael Neider <rneider AT web.de>
1918
1919         * src/pic/device.{c,h}: added pic14_getPIC()
1920         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
1921           (genAnd): added PIC code for one case, fixes #1597044
1922         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
1923           SFRs that are present in all banks (e.g., STATUS)
1924
1925 2006-11-20 Raphael Neider <rneider AT web.de>
1926
1927         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
1928           INCFSZ/INCFSZW and declared them as changing Z bit,
1929           (insertPCodeInstruction): correctly invert the above instructions,
1930           fixes #1599333,
1931           (DoBankSelect): don't panic on po_immediates
1932
1933 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
1934
1935         * as/link/aslink.h,
1936         * as/link/mcs51/lkihx.c (newArea),
1937         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
1938         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
1939
1940 2006-11-11 Raphael Neider <rneider AT web.de>
1941
1942         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
1943           bitfield symbols, fixes #1579535 (once more...).
1944
1945 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1946
1947         * support/regression/generate-cases.py,
1948         * support/regression/fwk/include/testfwk.h,
1949         * support/regression/fwk/lib/testfwk.c: used code pointers,
1950           (about 50kByte less code generated for mcs51)
1951
1952 2006-11-06 Borut Razem <borut.razem AT siol.net>
1953
1954         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
1955           debugger/mcs51/configure: fixed failed check because the function
1956           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
1957           who submitted the patch for gpsim.
1958         * debugger/mcs51/configure.in: removed the result message
1959         * debugger/mcs51/Makefile.in: fixed the config.status warning
1960           "... seems to ignore the --datarootdir setting"
1961
1962 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
1963
1964         * device/include/mcs51/c8051f020.h,
1965         * device/include/mcs51/c8051f040.h,
1966         * device/include/mcs51/c8051f060.h,
1967         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
1968         * src/z80/gen.c (gencjneshort),
1969         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
1970
1971 2006-10-31 Borut Razem <borut.razem AT siol.net>
1972
1973         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
1974           debugger/mcs51/configure: get readline version
1975
1976 2006-10-30 Borut Razem <borut.razem AT siol.net>
1977
1978         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
1979         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
1980           debugger/mcs51/configure: locate readline even when cross compiling
1981         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
1982
1983 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1984
1985         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
1986           serial port.
1987
1988 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
1989
1990         * device/include/malloc.h,
1991         * device/lib/calloc.c,
1992         * device/lib/free.c,
1993         * device/lib/malloc.c,
1994         * device/lib/realloc.c: moved definition of struct into sources
1995         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
1996
1997 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
1998
1999         * as/asx8051.dsp: corrected output directories
2000         * as/link/hc08: new directory for hc08 linker
2001         * as/hc08/aslink.h,             as/link/aslink.h,
2002         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
2003         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
2004         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
2005         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
2006         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
2007         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
2008         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
2009         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
2010         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
2011         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
2012         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
2013         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
2014         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
2015         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
2016         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
2017         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
2018         * as/link/hc08/conf.mk,
2019         * configure,
2020         * configure.in,
2021         * Makefile.in,
2022         * sdcc.dsw: moved hc08 linker to as/link/hc08
2023         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
2024         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
2025         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
2026         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
2027         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
2028         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
2029         * as/link/mcs51/aslink.dsp,
2030         * as/link/mcs51/Makefile.in: factored out the common files
2031         * as/hc08/lkstore.c: deleted, use the one already in as/link/
2032         * as/clean.mk: extra cleaning common files
2033         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
2034         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
2035         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
2036
2037 2006-10-29 Raphael Neider <rneider AT web.de>
2038
2039         * src/pic/ralloc.c (newReg): create aliases for registers with
2040           multiple names to fix #1579535 and #1584001,
2041           (regWithIdx,dirregWithName): resolve aliases on lookup
2042         * src/pic/pcode.c (DoBankSelect): die with error message on failing
2043           bankselect
2044         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
2045           to prevent build errors on small devices
2046
2047 2006-10-28 Raphael Neider <rneider AT web.de>
2048
2049         * src/pic/gen.c (genFunction,genCall): drop "same code page"
2050           assumption within interrupt handlers, fixes #1584940
2051         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
2052           "emitted" to avoid emitting them again in udata
2053
2054 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2055
2056         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
2057         Removed.
2058
2059 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2060
2061         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
2062         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
2063         on/off CR to CRLF conversion.
2064
2065 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2066
2067         * doc/sdccman.lyx: updated IRQ section
2068
2069 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2070
2071         * device/lib/serial_io.c: removed
2072         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
2073         replacements for serial_io.c
2074
2075 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
2076
2077         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
2078
2079 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2080
2081         * device/lib/serial_io.c: Default putchar() and getchar() for
2082           mcs51 uses serial port.
2083
2084 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
2085
2086         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
2087
2088 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2089
2090         * support/regression/ports/mcs51/support.c: smaller
2091         _sdcc_external_startup()
2092         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
2093
2094 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
2095
2096         * device/lib/gbz80/crt0.s,
2097         * device/lib/gbz80/crt0_rle.s,
2098         * device/lib/gbz80/div.s,
2099         * device/lib/gbz80/fstubs.s,
2100         * device/lib/gbz80/heap.s,
2101         * device/lib/gbz80/mul.s,
2102         * device/lib/gbz80/putchar.s,
2103         * device/lib/gbz80/stubs.s,
2104         * device/lib/z80/crt0.s,
2105         * device/lib/z80/crt0_rle.s,
2106         * device/lib/z80/div.s,
2107         * device/lib/z80/fstubs.s,
2108         * device/lib/z80/heap.s,
2109         * device/lib/z80/mul.s,
2110         * device/lib/z80/putchar.s,
2111         * device/lib/z80/stubs.s: reverted, I was mistaken
2112
2113 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2114
2115         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
2116         * support/regression/ports/mcs51/support.c: removed race
2117         condition on TI in _putchar allowing to use serial port mode 0
2118
2119 2006-10-20 Borut Razem <borut.razem AT siol.net>
2120
2121         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
2122
2123 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
2124
2125         * device/lib/gbz80/crt0.s,
2126         * device/lib/gbz80/crt0_rle.s,
2127         * device/lib/gbz80/div.s,
2128         * device/lib/gbz80/fstubs.s,
2129         * device/lib/gbz80/heap.s,
2130         * device/lib/gbz80/mul.s,
2131         * device/lib/gbz80/putchar.s,
2132         * device/lib/gbz80/stubs.s,
2133         * device/lib/z80/crt0.s,
2134         * device/lib/z80/crt0_rle.s,
2135         * device/lib/z80/div.s,
2136         * device/lib/z80/fstubs.s,
2137         * device/lib/z80/heap.s,
2138         * device/lib/z80/mul.s,
2139         * device/lib/z80/putchar.s,
2140         * device/lib/z80/stubs.s: removed all leading underscores from area names
2141
2142 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
2143
2144         * support/regression/ports/mcs51/support.c: use highest baudrate so the
2145           regression tests are not waiting in the simulator for simulated
2146           transmission of debug output
2147
2148 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2149
2150         * device/lib/printf_large.c: slightly smaller
2151         * doc/sdccman.lyx: do not use spaces within html links
2152
2153 2006-10-16 Borut Razem <borut.razem AT siol.net>
2154
2155         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
2156           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
2157           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
2158           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
2159           debugger/mcs51/configure:
2160           [ 1185668 ] add gnu readline support to sdcdb - enabled
2161
2162 2006-10-16 Raphael Neider <rneider AT web.de>
2163
2164         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
2165           fixes #1577882, removes close to all banking optimizations
2166
2167 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
2168
2169         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
2170           variables in code memory
2171         * support/regression/tests/absolute.c: added test for this
2172
2173 2006-10-15 Raphael Neider <rneider AT web.de>
2174
2175         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
2176           devices,
2177           (BankSelect): emit BANKSEL before touching linker-placed regs,
2178           fixes #1570934
2179
2180 2006-10-10 Raphael Neider <rneider AT web.de>
2181
2182         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
2183         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
2184         * src/pic/main.c (_pic14_parseOptions),
2185         * src/pic/main.h: mostly reverted to previous state, now use results
2186             from SDCCmain.c's argument parsing
2187
2188 2006-10-10 Borut Razem <borut.razem AT siol.net>
2189
2190         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
2191           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
2192           [ 1185668 ] add gnu readline support to sdcdb -
2193           prepared for READLINE, not enabled yet,
2194           thanks to <tal.bav AT gmail.com>
2195
2196 2006-10-10 Raphael Neider <rneider AT web.de>
2197
2198         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
2199         * src/pic16/devices.inc,
2200         * device/include/pic16 (pic18f[24]620.h),
2201         * device/include/pic18fregs.h,
2202         * device/lib/pic16/pics.all,
2203         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
2204             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
2205             Gary Plumbridge and Anton Strobl
2206
2207 2006-10-10 Raphael Neider <rneider AT web.de>
2208
2209         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
2210           --stack-siz=NUM options to configure the argument passing stack
2211         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
2212         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
2213           (pic14_getSharebankSize): obey --stack-siz=NUM,
2214           (pic14_getSharebankAddress): obey --stack-loc=NUM
2215
2216 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2217
2218         * doc/sdccman.lyx: added to the manual
2219         * doc/figures/ddd_example.png: added (neither pdflatex nor
2220         most browsers seem to like the .eps file)
2221
2222 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
2223
2224         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
2225         to /tmp and /var/tmp acc. LSB
2226         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
2227         RESULT_TYPE_IFX
2228         * support/regression/tests/onebyte.c: added test
2229
2230 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2231
2232         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
2233
2234 2006-10-05 Borut Razem <borut.razem AT siol.net>
2235
2236         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
2237           thanks to dfulab:
2238           - sdcc.dsw: changed property eol-style to CRLF
2239           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
2240
2241 2006-10-04 Raphael Neider <rneider AT web.de>
2242
2243         * device/include/pic/{pic16f84.h,pic16f84a.h},
2244         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
2245           from patch #1522504, thanks to Robas Teodor
2246
2247 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
2248
2249         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
2250           fixes bug 1566015
2251
2252 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
2253
2254         * src/pic16/glue.c (pic16emitMaps),
2255         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
2256         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
2257         * device/lib/pic16/libc/string/memcpypgm2ram.c,
2258         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
2259           Philipp Krause
2260         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
2261         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
2262
2263 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2264
2265         * support/librarian/sdcclib.c: Added option -l.
2266         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
2267           usage totals.
2268         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
2269           using Windows command prompt.
2270
2271 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
2272
2273         * device/lib/libsdcc.lib: added module rand
2274         * src/ds390/ralloc.c (rematStr),
2275         * src/hc08/ralloc.c (rematStr),
2276         * src/mcs51/ralloc.c (rematStr),
2277         * src/z80/ralloc.c (rematStr): made output more consistent
2278         * src/mcs51/gen.c: cosmetic changes
2279
2280 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
2281
2282         * src/port.h: added mem.cabs_name to PORT
2283         * src/ds390/main.c,
2284         * src/hc08/main.c,
2285         * src/mcs51/main.c,
2286         * src/pic16/main.c,
2287         * src/pic/main.c,
2288         * src/xa51/main.c,
2289         * src/z80/main.c: added cabs_name initializers
2290         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
2291           constants
2292           (emitMaps): emit absolutes in code memory into cabs_name
2293         * src/SDCCmem.c,
2294         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
2295         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
2296         * support/regression/fwk/include/testfwk.h: added define for at
2297         * support/regression/tests/absolute.c: added, new
2298
2299 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
2300
2301         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
2302           optimizations, see also patch 887161 by Stas Sergeev
2303         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
2304           to be necessary anymore,
2305           (102, 103, 104, 127): renamed all occurances of bp to _bp
2306
2307 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
2308
2309         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
2310           thanks Weston T. Schmidt for patch 1555221
2311         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
2312         * src/SDCCicode.c(geniCodeMultiply): small optimization
2313
2314 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
2315
2316         * device/include/stdlib.h: added rand prototypes
2317         * device/lib/rand.c: new, added
2318         * device/lib/Makefile.in: added rand.c
2319         * src/z80/peeph.def,
2320         * src/z80/peeph-gbz80.def,
2321         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
2322
2323 2006-09-20 Raphael Neider <rneider AT web.de>
2324
2325         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
2326
2327 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
2328
2329         * as/link/aslink.h: cosmetic changes
2330         * as/link/mcs51/Makefile.in,
2331         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
2332
2333 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
2334
2335         * as/link/aslink.h,
2336         * as/link/mcs51/aslink.h,
2337         * as/link/z80/aslink.h: merged and moved to as/link/
2338         * as/link/lkstore.c,
2339         * as/link/mcs51/lkstore.c: moved to as/link/
2340         * as/link/clean.mk: remove *.o
2341         * as/link/mcs51/alloc.h: deleted
2342         * as/link/mcs51/lkarea.c: added lnksect prototype
2343         * as/link/mcs51/lkdata.c,
2344         * as/link/mcs51/lklex.c,
2345         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
2346         * as/link/mcs51/lkmem.c,
2347         * as/link/mcs51/lknoice.c: removed include strcmpi.h
2348         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
2349         * as/link/mcs51/aslink.dsp,
2350         * as/link/mcs51/Makefile.aslink,
2351         * as/link/mcs51/Makefile.bcc,
2352         * as/link/mcs51/Makefile.in: updated for moved files
2353         * as/link/z80/lkarea.c,
2354         * as/link/z80/lkhead.c,
2355         * as/link/z80/lklex.c,
2356         * as/link/z80/lklibr.c,
2357         * as/link/z80/lklist.c,
2358         * as/link/z80/lkmain.c,
2359         * as/link/z80/lkrloc.c,
2360         * as/link/z80/lksym.c: synced with mcs51
2361         * as/link/z80/lkdata.c,
2362         * as/link/z80/lkeval.c,
2363         * as/link/z80/lkihx.c,
2364         * as/link/z80/lks19.c: cosmetic changes
2365         * as/link/z80/Makefile.in,
2366         * as/link/z80/linkgbz80.dsp,
2367         * as/link/z80/linkz80.dsp: updated for moved files
2368
2369 2006-09-16 Borut Razem <borut.razem AT siol.net>
2370
2371         * debugger/mcs51/sdcdb.c: partially fixed
2372           [ 1203664 ] sdcdb fails to open files w. two "." periods
2373         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
2374           debugger/mcs51/symtab.h: fixed indenting
2375         * configure.in, configure: up to date with latest Maarten's changes
2376
2377 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
2378
2379         as/link/mcs51
2380         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
2381         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
2382         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
2383         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
2384         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
2385         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
2386         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
2387         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
2388         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
2389         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
2390         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
2391         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
2392         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
2393         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
2394         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
2395         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
2396         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
2397         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
2398         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
2399         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
2400         as/link/mcs51/alloc.h,
2401         as/link/mcs51/clean.mk,
2402         as/link/mcs51/conf.mk,
2403         as/link/mcs51/Makefile.bcc,
2404         as/link/mcs51/Makefile.in,
2405         as/link/mcs51/readme.390,
2406         as/link/mcs51/strcmpi.c,
2407         as/link/mcs51/strcmpi.h,
2408         as/mcs51/clean.mk,
2409         as/mcs51/Makefile.bcc,
2410         as/mcs51/Makefile.in,
2411         configure,
2412         Makefile.in,
2413         sdcc.dsw: moved mcs51 linker to as/link/mcs51
2414
2415 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
2416
2417         * as/link,
2418         * as/link/Makefile.in,
2419         * as/link/z80/linkgbz80.dsp,
2420         * as/link/z80/linkz80.dsp,
2421         * configure,
2422         * link,
2423         * link/clean.mk,
2424         * link/Makefile.in,
2425         * link/README,
2426         * link/z80,
2427         * link/z80/aslink.h,
2428         * link/z80/clean.mk,
2429         * link/z80/conf.mk,
2430         * link/z80/linkgbz80.dsp,
2431         * link/z80/linkz80.dsp,
2432         * link/z80/lkarea.c,
2433         * link/z80/lkdata.c,
2434         * link/z80/lkeval.c,
2435         * link/z80/lkgb.c,
2436         * link/z80/lkgg.c,
2437         * link/z80/lkhead.c,
2438         * link/z80/lkihx.c,
2439         * link/z80/lklex.c,
2440         * link/z80/lklibr.c,
2441         * link/z80/lklist.c,
2442         * link/z80/lkmain.c,
2443         * link/z80/lkrloc.c,
2444         * link/z80/lks19.c,
2445         * link/z80/lksym.c,
2446         * link/z80/Makefile.in,
2447         * Makefile.in,
2448         * sdcc.dsw: moved link/ to as/link/
2449
2450 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
2451
2452         * as/mcs51/i51mch.c (machine): fixed warning
2453
2454 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
2455
2456         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
2457
2458 2006-09-09 Borut Razem <borut.razem AT siol.net>
2459
2460         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
2461           sdcdb WIN32 native port
2462         * src/clean.mk: fixed
2463
2464 2006-09-08 Borut Razem <borut.razem AT siol.net>
2465
2466         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
2467
2468 2006-09-08 Raphael Neider <rneider AT web.de>
2469
2470         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
2471         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
2472             to gplink to disable processor mismatch warning and to allow
2473             the use of devices with only aliased (shared) memory banks,
2474           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
2475
2476 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2477
2478         * doc/sdccman.lyx: Some re-formating plus example on using
2479           #pragma preproc_asm +/-
2480
2481 2006-09-07 Borut Razem <borut.razem AT siol.net>
2482
2483         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
2484           section
2485
2486 2006-09-06 Borut Razem <borut.razem AT siol.net>
2487
2488         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
2489           line at sdcc.nsi:153
2490         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
2491
2492 2006-09-05 Borut Razem <borut.razem AT siol.net>
2493
2494         * configure.in, configure: support for winsock2
2495         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
2496           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
2497           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
2498           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
2499           debugger/mcs51/symtab.h: sdcdb WIN32 native port
2500
2501 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
2502
2503         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
2504           and OP_DEFS
2505         * support/regression/tests/bug1551947.c: new, added
2506         * src/SDCCsymt.h: strings are char* not byte*
2507
2508 2006-09-05 Raphael Neider <rneider AT web.de>
2509
2510         * device/lib/pic16/libdev/pic18f4550.c,
2511           device/include/pic16/pic18f4550.h: added PORTD/TRISD
2512             declarations/definitions from patch #1520949
2513
2514 2006-09-05 Raphael Neider <rneider AT web.de>
2515
2516         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
2517           byte-aligned bitfields, fixes #1539278
2518
2519 2006-09-05 Raphael Neider <rneider AT web.de>
2520
2521         * src/pic/gen.c (genReceive): skip unreferenced arguments,
2522           fixes #1544120
2523
2524 2006-09-04 Borut Razem <borut.razem AT siol.net>
2525
2526         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
2527         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
2528           -mno-cygwin is a part of the compiler name
2529         * support/scripts/sdcc_mingw32: don't disable ucsim
2530
2531 2006-09-03 Borut Razem <borut.razem AT siol.net>
2532
2533         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
2534         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
2535
2536 2006-09-03 Raphael Neider <rneider AT web.de>
2537
2538         * src/pic/ralloc.c,
2539         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
2540           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
2541           fixes #1550049
2542
2543 2006-09-01 Borut Razem <borut.razem AT siol.net>
2544
2545         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
2546           to make ppc-osx happy
2547
2548 2006-08-31 Borut Razem <borut.razem AT siol.net>
2549
2550         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
2551         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
2552         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
2553         * support/regression/ports/ds390/spec.mk,
2554           support/regression/ports/mcs51/spec.mk,
2555           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
2556           To run regression tests in mingw environment:
2557           make DEV_NULL=NUL CC=gcc
2558
2559 2006-08-30 Borut Razem <borut.razem AT siol.net>
2560
2561         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
2562           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
2563           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
2564           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
2565           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
2566           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
2567           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
2568           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
2569           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
2570           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
2571           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
2572           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
2573           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
2574           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
2575           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
2576           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
2577           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
2578           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
2579           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
2580           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
2581           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
2582           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
2583           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
2584           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
2585           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
2586           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
2587           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
2588           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
2589           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
2590           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
2591           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
2592           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
2593           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
2594           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
2595           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
2596           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
2597           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
2598           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
2599           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
2600           ucsim WIN32 native port
2601
2602 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2603
2604         * doc/sdccman.lyx: added note on dynamic memory heap initialization
2605
2606 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
2607
2608         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
2609         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
2610
2611 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
2612
2613         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
2614         * support/regression/tests/bug1546986.c: new, added
2615         * as/mcs51/.cvsignore,
2616         * debugger/mcs51/.cvsignore,
2617         * src/.cvsignore: deleted
2618
2619 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2620
2621         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
2622           definitions)
2623
2624 2006-08-20 Borut Razem <borut.razem AT siol.net>
2625
2626         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
2627           removed cl_listen_console::match(), cl_console::match(),
2628           restructured cl_commander::proc_input()
2629
2630 2006-08-16 Borut Razem <borut.razem AT siol.net>
2631
2632         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
2633           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
2634           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
2635
2636 2006-08-14 Borut Razem <borut.razem AT siol.net>
2637
2638         * support/regression/Makefile.in,
2639           support/regression/ports/pic14/gpsim.cmd,
2640           support/regression/ports/pic14/spec.mk,
2641           support/regression/ports/pic14/support.c:
2642           added pic14 regression test
2643
2644 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
2645
2646         * as/doc/asxhtm.html: documented changed ABS behaviour
2647         * as/doc/README: fixed some typos
2648
2649 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
2650
2651         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
2652           not defined on host
2653
2654 2006-08-12 Borut Razem <borut.razem AT siol.net>
2655
2656         * support/regression/fwk/include/testfwk.h,
2657           support/regression/fwk/lib/testfwk.c,
2658           support/regression/generate-cases.py,
2659           support/regression/Makefile.in:
2660           regression test framework does not depend on function pointers and
2661           variable arguments
2662
2663 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
2664
2665         * device/include/stddef.h: c temporary hack to fix bug 1518273
2666
2667 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2668
2669         * device/include/mcs51/cc2510fx.h: added
2670         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
2671           to projects.
2672
2673 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
2674
2675         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
2676         * as/z80/Makefile.in: added strcmpi.c
2677         * as/z80/z80adr.c: added upper case registers and lower case conditionals
2678         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
2679
2680 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
2681
2682         * device/lib/gbz80/asm_strings.s,
2683         * device/lib/gbz80/crt0_rle.s,
2684         * device/lib/gbz80/div.s,
2685         * device/lib/gbz80/mul.s,
2686         * device/lib/gbz80/shift.s,
2687         * device/lib/z80/asm_strings.s,
2688         * device/lib/z80/crt0_rle.s,
2689         * device/lib/z80/div.s,
2690         * device/lib/z80/mul.s,
2691         * device/lib/z80/shift.s: changed to all lower case menmonics except the
2692           flags which are all upper case
2693
2694 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
2695
2696         * as/z80/asm.h: made CASE_SENSITIVE 1
2697         * link/z80/aslink.h: made CASE_SENSITIVE 1
2698         * src/z80/gen.c (throughout): made all conditionals upper case
2699         * support/regression/tests/bug1503067.c: new
2700
2701 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
2702
2703         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
2704           (shiftIntoPair): added case 2 for PAIR_IY,
2705           (setupToPreserveCarry): replaced parameters with iCode and check if
2706            PAIR_DE is in use to fix bug 1399290,
2707           (genPlus, genMinus): updated call to setupToPreserveCarry
2708         * support/regression/tests/bug1399290.c: new
2709
2710 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
2711
2712         * device/lib/Makefile.in (Z80SOURCES): enabled float support
2713         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
2714         * src/ds390/gen.c (shiftRLong),
2715         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
2716         * src/mcs51/gen.c (sameReg): changed to sameByte,
2717           (xch_a_aopGet): new,
2718           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
2719            shiftRLong): fixed bug 1533966
2720         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
2721           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
2722         * support/regression/Makefile.in: disabled z80, enabled ucz80
2723         * support/regression/tests/float_trans.c: enabled test for z80 and host
2724         * support/regression/tests/shifts2.c: new, for testing bug 1533966
2725
2726 2006-08-01 Borut Razem <borut.razem AT siol.net>
2727
2728         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
2729           comparison is always false due to limited range of data type
2730           on PPC64 machine (openpower-linux1) where "char = unsigned char"
2731
2732 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
2733
2734         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
2735         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
2736         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
2737         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
2738
2739 2006-07-31 Borut Razem <borut.razem AT siol.net>
2740
2741         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
2742           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
2743           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
2744           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
2745           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
2746           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
2747           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
2748           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
2749           enable ucsim mingw compilation. Serial port is disabled,
2750           since it uses termios.h API, which is not available on native
2751           WIN32
2752
2753 2006-07-31 Borut Razem <borut.razem AT siol.net>
2754
2755         * Small Device C Compiler 2.6.0 released
2756         * support/scripts/sdcc.nsi: added FULL_DOC option
2757         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
2758
2759 2006-07-28 Borut Razem <borut.razem AT siol.net>
2760
2761         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
2762         * doc/INSTALL.txt: updated
2763
2764 2006-07-27 Borut Razem <borut.razem AT siol.net>
2765
2766         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
2767           device/lib/pic/libdev/Makefile.in: fixed bug
2768           [ 1438354 ] pic libsdcc: distclean doesn't work
2769         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
2770           device/lib/pic16/libio/Makefile.in: fixed bug
2771           [ 1438344 ] pic16 lib: clean doesn't work properly
2772         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
2773
2774 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
2775
2776         * device/lib/pic/libsdcc/fsdiv.c,
2777         * device/lib/pic/libsdcc/fsmul.c,
2778         * device/lib/pic16/libsdcc/float/fsdiv.c,
2779         * device/lib/pic16/libsdcc/float/fsmul.c,
2780         * device/lib/_fsdiv.c,
2781         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
2782         * support/regression/tests/bug1520966.c: added
2783         * doc/knownbugs.html: removed [ 1520966 ] from the list
2784
2785 2006-07-25 Borut Razem <borut.razem AT siol.net>
2786
2787         * configure.in, configure, sdccconf_in.h: fixed bug
2788           [ 1519095 ] regression test onebyte.c fails on ppc64 host
2789         * doc/knownbugs.html: removed [ 1519095 ] from the list
2790
2791 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
2792
2793         * doc/knownbugs.html: added, contains list of known bugs at release
2794         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
2795
2796 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
2797
2798         * device/include/mcs51/compiler.h: added SFRX for xdata based special
2799           function registers and corrected defaults with additional warning
2800         * device/lib/malloc.c: cosmetic changes
2801         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
2802         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
2803           (fillGaps): and used it
2804
2805 2006-07-20 Raphael Neider <rneider AT web.de>
2806
2807         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
2808           output unless SDCCPICDEBUG is set
2809         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
2810           output if SILENT is set
2811
2812 2006-07-11 Borut Razem <borut.razem AT siol.net>
2813
2814         * doc/README.txt: updated
2815
2816 2006-07-10 Borut Razem <borut.razem AT siol.net>
2817
2818         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
2819           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
2820           in WIN32 installation
2821         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
2822           release candidate 1
2823
2824 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
2825
2826         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
2827         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
2828
2829 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
2830
2831         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
2832
2833 2006-07-06 Borut Razem <borut.razem AT siol.net>
2834
2835         * support/regression/tests/bitfields.c:
2836           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
2837         * support/regression/tests/constantRange.c:
2838           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
2839
2840 2006-07-04 Borut Razem <borut.razem AT siol.net>
2841
2842         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
2843           src/port.mk,
2844           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
2845           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
2846           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
2847           reverted changes from 2006-07-03
2848         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
2849         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
2850           added CPPFLAGS, used by the host port
2851
2852 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
2853
2854         * support/regression/valdiag/tests/switch.c,
2855         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
2856         * support/regression/tests/libmullong.c: fixed for host
2857         * support/regression/ports/host/spec.mk: disable all warnings for host,
2858         SDCC runs with --less-pedantic too
2859
2860 2006-07-03 Borut Razem <borut.razem AT siol.net>
2861
2862         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
2863           defined CPPFLAGS
2864         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
2865         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
2866           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
2867           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
2868           include ../port.mk
2869         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
2870           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
2871           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
2872           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
2873
2874 2006-07-02 Raphael Neider <rneider AT web.de>
2875
2876         * src/pic16/devices.inc,
2877         * device/include/pic16/pic18fregs.h,
2878         * device/include/pic16/pic18f4550.h,
2879         * device/lib/pic16/pics.all,
2880         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
2881
2882 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
2883
2884         * as/hc08/lkaomf51.c (OutputName),
2885         * as/mcs51/lkaomf51.c (OutputName),
2886         * as/z80/asmain.c (asmbl),
2887         * src/ds390/main.c (asmLineNodeFromLineNode),
2888         * src/hc08/ralloc.c (hc08_assignRegisters),
2889         * src/mcs51/main.c (asmLineNodeFromLineNode),
2890         * src/xa51/ralloc.c (checkRegMask),
2891         * src/xa51/gen.c (emitcode),
2892         * src/z80/gen.c (_emit2),
2893         * src/SDCCast.c (searchLitOp),
2894         * src/SDCCglobl.h,
2895         * support/packihx/packihx.c,
2896         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
2897         * src/ds390/gen.c (aopPutUsesAcc),
2898         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
2899         * support/regression/tests/libmullong.c (mullong_wrapper),
2900         * src/SDCCsymt.c (powof2),
2901         * src/SDCCast.c,
2902         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
2903         * src/SDCCsymt.h: added TYPE_TARGET_*
2904         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
2905         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
2906         SDCCast because 1) header problems 2) this is the right place
2907         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
2908         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
2909         prototype
2910
2911 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
2912
2913         * src/SDCCicode.h: removed buggy semicolon in unused macro
2914         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
2915         search for previous definiton of auto symbols too,
2916         (findPrevUse): fixed logic of emitWarnings
2917
2918 2006-06-26 Raphael Neider <rneider AT web.de>
2919
2920         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
2921           PCLATH and PCLATU on interrupts, potentially fixes #1505141
2922
2923 2006-06-25 Raphael Neider <rneider AT web.de>
2924
2925         * device/lib/pic/libm: NEW, added math library functions
2926         * device/lib/pic/libsdcc: NEW; added float support functions
2927         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
2928         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
2929           NEW, added math related headers
2930         * device/include/asm/pic/features.h: NEW
2931         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
2932           (popGet): allow larger offsets for AOP_PCODE,
2933           (genDataPointerSet): handle literals explicitly, more debug output,
2934           (genAssign): fixed for float using aopLiteral ;-)
2935         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
2936           GOTO initialisation routine
2937         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
2938           flag on registers, fixes #1469043 (local variables do not work)
2939         * src/pic/main.c (_pic14_do_link),
2940         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
2941           available
2942
2943 2006-06-25 Borut Razem <borut.razem AT siol.net>
2944
2945         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
2946           characters printed (not including the trailing '\0' used to end
2947           output to strings). Problem detected in regression test bug-927659.c.
2948           NOTE: printf() family functions should return int instead
2949           unsigned int!
2950         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
2951           specifier are printed as themselves
2952         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
2953           support flags, width and precision specifiers
2954
2955 2006-06-24 Borut Razem <borut.razem AT siol.net>
2956
2957         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
2958           to the list of sdcc tagrets not supporting bit type
2959         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
2960           testfor pic16 due to bug:
2961           [ 1511794 ] pic16: regression test bug-895992.c fails
2962
2963 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
2964
2965         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
2966         * src/SDCCglue.c (initPointer), fixed bug 1496419
2967         * support/regression/tests/bug1496419.c: new, added
2968
2969 2006-06-22 Borut Razem <borut.razem AT siol.net>
2970
2971         * support/regression/ports/pic16/support.c: use gpsim usart module from
2972           libgpsim_modules library
2973
2974 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2975
2976         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
2977         IP0H to IPH0.
2978
2979 2006-06-19 Raphael Neider <rneider AT web.de>
2980
2981         * src/pic/glue.h,src/pic16/glue.h: added prototypes
2982         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
2983           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
2984           (pic14printExterns,pic14printPublics,pic16printPublics,
2985           pic16_printExterns): use new functions to emit symbols
2986           (picglue,pic16glue): emit publics before emitting externs
2987         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
2988           locally defined functions to avoid bug #1443651
2989         * support/regression/tests/bug-716242.c: removed pic16 workaround
2990         * support/regression/ports/pic16/spec.mk: ignore errors during build
2991
2992 2006-06-19 Raphael Neider <rneider AT web.de>
2993
2994         * src/pic/glue.h: added pic14aopLiteral prototype
2995         * src/pic/glue.c (pic14aopLiteral): return unsigned int
2996         * src/pic/gen.c: removed stdint.h dependency
2997           (aopGet): use Safe_strdup()
2998           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
2999           (genDataPointerSet): use pic14aopLiteral()
3000         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
3001           for pic16; thanks to Bernhard and Maarten
3002
3003 2006-06-18 Borut Razem <borut.razem AT siol.net>
3004
3005         * support/regression/tests/structflexarray.c: flexible array members
3006           not supported by gcc < 3
3007         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
3008           GUI tool by default
3009         * src/pic/gen.c: don't include [p]strdin.h on solaris
3010         * support/Util/pstdint.h: addad svn attributes
3011         * support/regression/tests/constantRange.c,
3012           support/regression/tests/rotate.c: include inttypes.h instead
3013           stdint.h on solaris, addad svn attributes
3014
3015 2006-06-18 Raphael Neider <rneider AT web.de>
3016
3017         * src/SDCCsymt.c (initCSupport): change return type of divschar to
3018           int for PIC16
3019         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
3020           (pic16_genMinusBits): simplified sign-extension
3021           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
3022             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
3023             adjusted to correctly handle mixed-signed operands, disabled
3024             now unused multiplciation routines
3025         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
3026           (assignResultValue): added argument denoting the size of the result
3027             as returned by the function (fixes upcasts in assigning from
3028             function calls: char foo(); int i = foo();)
3029           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
3030             function result to assignResultValue
3031           (genMult): disabled inlined multiplication code
3032           (genDiv): augmented to also handle the modulus operator, fixed to
3033             handle mixed-signed operands correctly
3034           (genMod): simply call genDiv, disabled unused code
3035           (genAssign): fixed missing (sign-)extension on result
3036         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
3037             valid char operands, allow signed operands for native code, added
3038             division and modulo operator handling
3039         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
3040
3041         As a consequence, onebyte.c (if split into two files) and muldiv.c
3042         pass regression tests.
3043
3044 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3045
3046         * doc/Makefile.in: two runs of makeindex seem needed to get
3047         correct page references in the index of sdccman.pdf
3048         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
3049
3050 2006-06-17 Borut Razem <borut.razem AT siol.net>
3051
3052         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
3053
3054 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3055
3056         * doc/sdccman.lyx: updated, added (porting source code, debugging),
3057         mentioned ec2drv and paulmon
3058
3059 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
3060
3061         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
3062           consecutive abs areas
3063           (find_empty_space, allocate_space): added map to handle codemap or
3064            xdatamap,
3065           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
3066            absolute idata and xdata
3067         * as/mcs51/lkmem.c (summary2): updated legend
3068
3069 2006-06-16 Raphael Neider <rneider AT web.de>
3070
3071         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
3072
3073 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
3074
3075         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
3076           1208515
3077         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
3078
3079 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
3080
3081         * src/port.h (struct PORT): added field gp_tags, to hold the tag
3082         value of generic pointers,
3083         * src/avr/main.c,
3084           src/ds390/main.c,
3085           src/hc08/main.c,
3086           src/izt/i186.c,
3087           src/izt/tlcs900h.c,
3088           src/mcs51/main.c,
3089           src/pic/main.c,
3090           src/pic16/main.c,
3091           src/xa51/main.c,
3092           src/z80/main.c: PORT structure, added elements for gp_tags field,
3093         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
3094         fields in the PORT structure of each port,
3095         * src/SDCCast.c (decorateType): allow processing of generic pointers
3096         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
3097         S_FIXED symbols
3098
3099 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
3100
3101         * link/z80/lkgb.c,
3102         * link/z80/lkgg.c,
3103         * src/pic16/gen.c,
3104         * src/pic16/main.c,
3105         * src/pic16/pcode.c,
3106         * src/pic/main.c,
3107         * src/pic/pcoderegs.c,
3108         * src/SDCCicode.c,
3109         * src/SDCCmain.c,
3110         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
3111           bug 1504689 on minGW
3112
3113 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3114
3115         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
3116
3117 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
3118
3119         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
3120
3121 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
3122
3123         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
3124           for optimization
3125
3126 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
3127
3128         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
3129         to a char variable. Fixed bug #1504211
3130         * device/include/pic16/adc.h,
3131         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
3132         and fixed bug #1364390
3133
3134 2006-06-10 Borut Razem <borut.razem AT siol.net>
3135
3136         * CVSROOT: removed the CVS left-over
3137
3138 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
3139
3140         * as/hc08/asmain.c (asexit),
3141         * as/hc08/lkmain.c (lkexit),
3142         * as/mcs51/asmain.c (asexit),
3143         * as/mcs51/lkmain.c (lkexit),
3144         * src/SDCCglue.c (DEFSETFUNC),
3145         * src/SDCCmain.c (linkEdit, assemble),
3146         * support/librarian/sdcclib.c (AddRel),
3147           replaced unlink() by standard C remove()
3148         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
3149         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
3150           gatherImplicitVariables): new, added to fix bug 608752,
3151           (createFunction): added gatherImplicitVariables()
3152         * src/SDCCast.h: added createRMW prototype
3153         * src/SDCCsymt.h (struct symbol): added infertype
3154         * support/regression/tests/bug608752.c: new, added
3155
3156 2006-06-10 Raphael Neider <rneider AT web.de>
3157
3158         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
3159           multibyte dummy reads (fixes #1503234)
3160
3161 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
3162
3163         * device/include/mcs51/compiler.h: new, added header file to enable
3164           creating common sfr definition header files for different compilers
3165
3166 2006-06-05 Raphael Neider <rneider AT web.de>
3167
3168         * src/pic16/{pcode.h,genarith.c}:
3169           introduced pCodeOp combining any two pCodeOps (previously only
3170           two register operands could be combined), removed pcop2 from
3171           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
3172         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
3173         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
3174           rewritten to use new PO_TWO_OPS
3175         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
3176         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
3177           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
3178           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
3179           (pic16_get_op): embraced return arg to allow #define return(x),
3180             added new case for combined opcodes
3181           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
3182           (pic16_pCode2str,pic16_getRegFrompCodeOp,
3183            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
3184
3185 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
3186
3187         * src/SDCCval.c (checkConstantRange): added
3188         * src/SDCCval.h: added checkConstantRange
3189         * support/Util/SDCCerr.c,
3190         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
3191         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
3192         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
3193         * src/SDCCast.c (decorateType): added checkConstantRange,
3194         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
3195         can be emitted with the correct always true/false warning,
3196         added optimization for double '!';
3197         result of decorateType() must be assigned back to the tree, because
3198         decorateType() can change the tree
3199         * src/SDCCicode.c (geniCodeLogic),
3200         (geniCodeAssign): replaced new checkConstantRange, added warnings,
3201         (checkConstantRange): removed, it was only a fragment which never
3202         emitted a warning
3203         * src/SDCCsymt.c (computeType): fixed promotion for
3204         "-1 < (unsigned bit) b"
3205         * src/pic/ralloc.c (packRegsForAssign),
3206         * src/pic16/ralloc.c (packRegsForAssign),
3207         * src/hc08/ralloc.c (packRegsForAssign),
3208         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
3209         from mcs51
3210         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
3211         * support/regression/tests/constantRange.c: added
3212         * support/valdiag/tests/constantRange.c: added
3213         * support/valdiag/valdiag.py: added -DPORT_HOST=1
3214
3215 2006-06-02 Borut Razem <borut.razem AT siol.net>
3216
3217         * support/regression/ports/pic16/support.c: increase stack size
3218           to 255 bytes
3219         * support/regression/Makefile.in: sort tests by name so that the
3220           resutlts can be compared on different machines / platforms
3221
3222 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
3223
3224         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
3225         * src/ds390/gen.c (emitLabel): new, added,
3226           (genDjnz): fixed stack overflow bug,
3227           (throughout): cosmetic changes to sync with mcs51/gen.c,
3228           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
3229         * src/mcs51/gen.c (genEndFunction): small optimization,
3230           (throughout): cosmetic changes to sync with ds390/gen.c
3231
3232 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
3233
3234         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
3235           (_print_format): fixed printing pointers
3236         * src/mcs51/gen.c (emitLabel, movb): new, added,
3237           (genAssign): small optimization,
3238           (genDjnz): fixed stack overflow bug,
3239           (throughout): replaced sprintf with SNPRINTF,
3240           replaced mcs51_regWithIdx with REG_WITH_INDEX,
3241           replaced emitcode("mov", "b,...") with MOVB(...),
3242           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
3243           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
3244         * src/mcs51/peeph.def: added rules 140 and 264
3245         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
3246           so they may get optimized into registers
3247
3248 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
3249
3250         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
3251           immediately when encountered,
3252           (printUsage): always use stderr even on windows
3253
3254 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
3255
3256         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
3257         (processParms): fixed bug #1247551
3258         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
3259         parseCmdLine, main): print '--version' to stdout,
3260         print 'help' to stdout if --help is given,
3261         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
3262         arguments are given; fixed --help
3263
3264 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
3265
3266         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
3267         * support/regression/tests/bug-1493710.c: added
3268
3269 2006-05-27 Borut Razem <borut.razem AT siol.net>
3270
3271         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
3272           static instead auto
3273         * support/regression/ports/pic16/support.c: increase stack size
3274           from default 64 bytes to 128 bytes
3275         * support/regression/tests/staticinit.c,
3276           support/regression/tests/float.c: regression tests fully enabled
3277           for pic16 port by putting the initialized data arrays into the code
3278           section
3279         * support/regression/ports/pic16/spec.mk: don't link default libraries.
3280           This was changed by mistake in the previous version.
3281
3282 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
3283
3284         * src/pic16/gen.c (genFunction, genEndFunction): some
3285         beautifications, fixed bug with falsely restoring FSR2 in large
3286         stack model, thanks to Beau E. Cox for reporting the bug
3287
3288 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
3289
3290         * debugger/mcs51/break.c,
3291         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
3292           use %p to print pointers, made address variables unsigned
3293         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
3294         * debugger/mcs51/symtab.c (parseSymbol): must return something
3295         * src/mcs51/gen.c (aopForSym): small optimization,
3296            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
3297           (freeAsmop): added missing break,
3298           (aopPut): removed parameter bvolatile, determine it inside the function,
3299           (saveRegisters, unsaveRegisters): small optimization,
3300           (genIpush): removed pointless check,
3301           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
3302           replaced sprintf with SNPRINTF,
3303           replaced strcpy with strncpyz,
3304           updated aopPut calls,
3305           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
3306         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
3307
3308 2006-05-24 Borut Razem <borut.razem AT siol.net>
3309
3310         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
3311           modification of test for the pic16 port, put the array to the code
3312           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
3313
3314 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3315
3316         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
3317         * support/Util/pstdint.h: added
3318
3319 2006-05-22 Borut Razem <borut.razem AT siol.net>
3320
3321         * src/regression/Makefile: removed bool2.c test, added -q linker option
3322         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
3323           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
3324           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
3325           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
3326           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
3327           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
3328           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
3329           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
3330           define SUPPORT_BIT_TYPES 0, removed unused bit variables
3331
3332 2006-05-22 Raphael Neider <rneider AT web.de>
3333
3334         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
3335           bug #1492360 (problematic due to generic pointers, see code)
3336
3337 2006-05-22 Borut Razem <borut.razem AT siol.net>
3338
3339         * support/regression/ports/pic16/specs.mk: removed stack size linker
3340           directive
3341         * support/regression/tests/array.c,
3342           support/regression/tests/bitopcse.c,
3343           support/regression/tests/bug-908454.c,
3344           support/regression/tests/malloc.c: modified for pic16 regression test
3345         * support/regression/tests/bitfields.c:
3346           pic16 - excluded bitfileds of size > 8
3347         * support/regression/tests/bp.c: pic16 - reduced data size
3348         * support/regression/tests/bug-221100.c: pic16 - reduced data size
3349         * support/regression/tests/bug-460010.c:
3350           pic16 - used the absolute address the fits in memory
3351         * support/regression/tests/bug-716242.c:
3352           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
3353         * support/regression/tests/float.c:
3354           pic16 - excluded - data size too big
3355         * support/regression/tests/onebyte.c:
3356           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
3357         * support/regression/tests/shifts.c:
3358           pic16 - function names probably have to differ in first X characters
3359           (gpasm limitation?)
3360         * support/regression/tests/staticinit.c:
3361           pic16 - excluded some tests due error: no target memory available for
3362           section ".idata"
3363
3364 2006-05-22 Borut Razem <borut.razem AT siol.net>
3365
3366         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
3367           second try. Thanks Stas Sergeev once more.
3368
3369 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
3370
3371         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
3372           (genLeftShift, genRightShift): fixed bug 1491627
3373         * src/hc08/peeph.def (rules 7, 8.x): added
3374         * support/regression/tests/shifts.c (ShiftLeftByParam,
3375           ShiftRightByParam, testShiftByParam): added to test variable shifting
3376
3377 2006-05-20 Raphael Neider <rneider AT web.de>
3378
3379         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
3380         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
3381           (allocReg): add only new registers to dynAllocRegs,
3382           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
3383             #1489055, #1445850, and probably #1483693
3384
3385 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
3386
3387         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
3388         bug in for-loop that didn't emit the last of CONFIG and ID registers
3389
3390 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
3391
3392         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
3393           with offset
3394         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
3395           1489016, 1434401 and 1490124
3396         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
3397           1489016, 1434401 and 1490124
3398
3399 2006-05-17 Borut Razem <borut.razem AT siol.net>
3400
3401         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
3402           thanks Stas Sergeev
3403
3404 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
3405
3406         * device/include/mcs51/P89c51RD2.h,
3407         * device/include/mcs51/P89LPC901.h,
3408         * device/include/mcs51/P89LPC922.h,
3409         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
3410
3411 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
3412
3413         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
3414         to fix missing stack pragma in compiled binary object file,
3415
3416 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
3417
3418         * support/packihx/configure.in,
3419         * support/packihx/configure: removed warning, autoconf >= 2.5x can
3420         determine sizeof basic types even while cross compiling
3421
3422 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
3423
3424         * src/avr/gen.c (aopop),
3425         * src/ds390/gen.c (aopOp),
3426         * src/hc08/gen.c (aopOp),
3427         * src/mcs51/gen.c (aopop),
3428         * src/pic16/gen.c (pic16_aopOp),
3429         * src/pic/gen.c (aopOp),
3430         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
3431         if size of operand is smaller than spill location
3432
3433 2006-05-12 Borut Razem <borut.razem AT siol.net>
3434
3435         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
3436           have to have CR/LF line endings even if they are checked out on *nix
3437           or on WIN32 in cygwin binmode
3438
3439 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
3440
3441         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
3442         * device/include/ds80c390.h: added sfr16 definitions
3443         * src/ds390/gen.c,
3444         * src/ds390/gen.h,
3445         * src/ds390/main.c,
3446         * src/ds390/ralloc.c,
3447         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
3448           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
3449           bit returning functions
3450         * support/regression/tests/sfr16.c: enabled test on ds390
3451
3452 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3453
3454         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
3455         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
3456
3457 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
3458
3459         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
3460         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
3461           (cl_address_space constructor): removed expensive initialization,
3462           (cl_address_space::get_cell): extended for late initialization,
3463           (cl_address_space::*): use late initialization,
3464           (cl_address_decoder::activate): removed expensive initialization,
3465           This reduced regression test running time by 25%
3466
3467 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
3468
3469         * packihx/,
3470         * configure.in,
3471         * configure,
3472         * sdcc.dsw,
3473         * Makefile.bcc,
3474         * Makefile.in,
3475         * support/packihx/Makefile.in,
3476         * support/packihx/clean.mk,
3477         * support/packihx/Makefile.bcc,
3478         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
3479
3480 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3481
3482         * src/SDCCval.c (valNot): fix for regression test failure
3483           of not.c on big endian hosts
3484
3485 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
3486
3487         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
3488
3489 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3490
3491         * device/lib/mcs51/Makefile.in: changed string comparison operator
3492           to = for POSIX compliance; == is bash extension
3493
3494 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
3495
3496         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
3497           kosmonaut_pirx
3498
3499 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
3500
3501         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
3502         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
3503         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
3504         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
3505         bug report #1478657,
3506
3507 2006-05-05 Borut Razem <borut.razem AT siol.net>
3508
3509         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
3510           making the html
3511
3512 2006-05-02 Borut Razem <borut.razem AT siol.net>
3513
3514         * doc/Makefile.in: removed *.ind dependency since there is no rule to
3515           create *.ind, which made make to fail if invoked with -j 2
3516
3517 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
3518
3519         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
3520           Hubert Sack for patch 1479782
3521
3522 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
3523
3524         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
3525
3526 2006-05-01 Raphael Neider <rneider AT web.de>
3527
3528         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
3529           (create_pic): store only prefix-free device name,
3530           (init_pic): check for device names with "16" prefix,
3531           (list_valid_pics),
3532         * src/pic/device.h (struct PIC_device),
3533         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
3534             stored device name,
3535         * device/include/pic/pic12f{635,675,629,683}.h,
3536         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
3537         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
3538         * device/include/pic/pic16f505.h,
3539         * device/lib/pic/libdev/pic16f505.c: removed
3540         * device/include/pic/pic14devices.txt: added support for pic12f
3541             devices, removed unsupported non 16-bit devices
3542             [above changes provided by patch from Zik Saleeba]
3543         * src/pic/*, src/pic16/*, device/include/pic16/*,
3544           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
3545
3546 2006-05-01 Borut Razem <borut.razem AT siol.net>
3547
3548         * configure.in, configure, doc/Makefile.in:
3549           sync with nightly build makefile - latex, dvipdf and dvips
3550           not needed any more
3551
3552 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
3553
3554         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
3555         in the library source
3556
3557 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
3558
3559         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
3560
3561 2006-04-28 Raphael Neider <rneider AT web.de>
3562
3563         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
3564         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
3565           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
3566         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
3567
3568 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
3569
3570         * device/lib/pic/libdev/Makefile.in,
3571         * device/lib/hc08/Makefile.in,
3572         * device/lib/gbz80/Makefile.in,
3573         * device/lib/z80/Makefile.in,
3574         * device/lib/ds390/Makefile.in,
3575         * device/lib/ds400/Makefile.in: added srcdir to include search path,
3576         thanks to Borut for the bug report
3577         * configure.in,
3578         * configure: always create doc/Makefile independent from --enable-doc
3579         * Makefile.in: always install from directory doc independent from
3580         --enable-doc
3581         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
3582         removed
3583         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
3584         * doc/Makefile.in: install *.txt if present
3585         * device/include/Makefile.in (install): added installation of pic/*.inc
3586         and pic/*.txt files again, they were erroneously removed
3587
3588 2006-04-28 Raphael Neider <rneider AT web.de>
3589
3590         * src/pic/{gen.c,main.h,pcode.c},
3591         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
3592             concerning signedness with casts
3593
3594 2006-04-28 Raphael Neider <rneider AT web.de>
3595
3596         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
3597             definition of an interrupt handler,
3598         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
3599             interrupt handler stuff from picglue() to separate routine,
3600           (picglue): enabled definition of intr handlers in files w/o main()
3601
3602 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
3603
3604         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
3605           compilation with MSVC 2005 Express Edition (VC8)
3606
3607 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
3608
3609         * device/lib/Makefile: fixed build of gbz80 lib
3610
3611 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
3612
3613         * support/regression/tests/bug-460010.c,
3614         * support/regression/tests/bug-524691.c,
3615         * support/regression/tests/bug-716242.c: removed conditional defines
3616           that are already in testfwk.h
3617
3618 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
3619
3620         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
3621           (AccAXRsh1): added, shift right by 1,
3622           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
3623            AccAXLrl1
3624         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
3625
3626 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
3627
3628         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
3629         remove cast to same type
3630         * src/SDCCast.c (decorateType): fix for RFE 1475742,
3631         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
3632         * as/z80/Makefile,
3633         * link/z80/Makefile: removed, they have moved to
3634         Makefile.in files
3635         * configure,
3636         * configure.in: replaced duplicate message about ucsim by missing sdcpp
3637         * install-sh: fix bug #1204398 by setting umask 0022
3638         * device/lib/Makefile: separate build of z80 and gbz80 lib
3639
3640 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
3641
3642         Enabled VPATH feature: changed nearly all Makefiles (149 files).
3643         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
3644
3645         One basic decision: e.g. src/clean.mk includes further files. In order
3646         to make this work there are two solutions:
3647         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
3648           run configure on them. This way they can use
3649           'include $(srcdir)/port-clean.mk'
3650         - always include clean.mk by the Makefile at the same level. To avoid
3651           that `make clean` tries to include and build Makefile.dep the
3652           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
3653           implemented, because now even `make uninstall` doesn't create
3654           Makefile.in. clean.mk could be eliminated by pasting it in
3655           Makefile.in.
3656
3657         * debugger/mcs51/Makefile.in: build own objects from library sources
3658         (SLIB, SDCC) in current directory
3659
3660         * configure, configure.in: renamed --disable-device-lib-build in
3661         --disable-device-lib; added --enable-doc, the required tools are
3662         searched by configure; added result message; the toolchain for the
3663         belonging ports are now only built, if the port is enabled.
3664
3665         * support/regression/*: all output is written in directory gen, because
3666         the fwk and ports directories don't livet in the build tree using vpath
3667
3668         * doc/sdccman.lyx: renamed --disable-device-lib-build to
3669         --disable-device-lib, added --enable-doc, added section VPATH
3670
3671         * sim/ucsim/configure.in,
3672         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
3673         z80 are enabled by default
3674
3675 2006-04-24 Raphael Neider <rneider AT web.de>
3676
3677         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
3678             to config word, "pic14_"-prefixed some extern functions
3679           (pic14_emitConfigWord): emit __config directive(s) if assignment to
3680             config word has been found
3681         * src/pic/device.h: added prototypes
3682         * src/pic/pcode.c: added "pic14_"-prefix where needed
3683         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
3684             fixup
3685         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
3686             words,
3687           (pic14emitRegularMap): ignore config words,
3688           (pic14createInterruptVect): moved generating __config directives away
3689           (picglue): have __config directives emitted
3690
3691 2006-04-24 Borut Razem <borut.razem AT siol.net>
3692
3693         * doc/Makefile: sync with nightly build makefile
3694
3695 2006-04-24 Raphael Neider <rneider AT web.de>
3696
3697         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
3698             registers that have not been assigned proper liveranges,
3699             fixes #1469504 and #1474602,
3700           (pCodeRegOptimizeRegUsage): fixed typo in comment
3701
3702 2006-04-24 Borut Razem <borut.razem AT siol.net>
3703
3704         * device/examples/main8051.c: deleted - it was removed from CVS
3705           24.mar.2000 and after that modified 18.feb.2001, so it reappered
3706           after the transition to Subversion
3707         * src/SDCCalloc.h: deleted - it was removed  from CVS
3708           3.feb.2001 and after that modified 18.feb.2001, so it reappered
3709           after the transition to Subversion
3710         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
3711           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
3712           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
3713           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
3714
3715 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
3716
3717         * as/asx8051.dsp: added mcs51/strcmpi.h
3718         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
3719         * as/hc08/aslink.h: updated lnksect prototype
3720         * as/hc08/asm.h,
3721         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
3722         * as/hc08/asmain.c,
3723         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
3724           (newdot): handle A_ABS
3725         * as/hc08/asout.c,
3726         * as/mcs51/asout.c (outarea): output address
3727         * as/hc08/lkaomf51.c,
3728         * as/mcs51/lkaomf51.c: disabled unused array UsageType
3729         * as/hc08/m08pst.c,
3730         * as/mcs51/i51pst.c,
3731         * as/z80/z80pst.c: "ABS" is not A_OVR
3732         * as/hc08/lkarea.c (newarea): read a_addr,
3733           (lnkarea): added codemap array, sort absolute areas to the front,
3734            combine all GSINITx/GSFINAL,
3735           (find_empty_space, allocate_space): new functions,
3736           (lnksect): return next address, handle absolute sections
3737         * as/mcs51/lkarea.c (newarea): read a_addr,
3738           lnksect2 prototype changed,
3739           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
3740           (find_empty_space, allocate_space): new, factored out of lnksect2,
3741           (lnksect2): return next address, handle absolute sections
3742         * as/hc08/lkhead.c,
3743         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
3744         * as/hc08/lklibr.c (addfile, fndsym),
3745         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
3746           index out of range and detect both '\' and '/'
3747         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
3748         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
3749           regression tests (ds390 cannot return bool yet)
3750         * doc/sdccman.lyx: changed version number, document changed --no-peep,
3751           document critical interrupts on z80, document changed SDCC define
3752         * src/asm.c (_asxxxx_mapping): fixed .org directive,
3753           (_a390_mapping): added .org directive
3754         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
3755           (genMultOneByte): fixed warnings
3756         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
3757           ones
3758         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
3759         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
3760           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
3761         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
3762         * src/pic16/main.c: removed newReg prototype
3763         * src/pic16/pcode.c,
3764         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
3765           warnings
3766         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
3767           ones
3768         * src/pic16/ralloc.c
3769         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
3770           to fix warnings
3771         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
3772           from short to PIC_OPTYPE
3773         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
3774         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
3775           optype from short to PIC_OPTYPE
3776         * src/port.h: made int_size unsigned to fix warnings
3777         * src/SDCC.y: fixed warning on MSVC
3778         * src/SDCCicode.c (getArraySizePtr): return unsigned int
3779         * src/SDCCopt.c (convertToFcall): fixed warnings
3780         * src/SDCCsymt.h: removed double prototype for genSymName
3781         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
3782           offset int to fix warnings
3783
3784 2006-04-22 Borut Razem <borut.razem AT siol.net>
3785
3786         * doc/sdccman.lyx, */Makefile, */Makefile.in:
3787           references to CVS replaced with Subversion
3788
3789 2006-04-21 Borut Razem <borut.razem AT siol.net>
3790
3791         * doc/sdccman.lyx, */Makefile, */Makefile.in:
3792           references to CVS replaced with Subversion
3793
3794 2006-04-19 Borut Razem <borut.razem AT siol.net>
3795
3796         * src/version.awk: adapted for svn
3797         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
3798           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
3799           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
3800           /binutils-avr/etc/*.vi, *.jin: removed all properties
3801           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
3802
3803 2006-04-19 Borut Razem <borut.razem AT siol.net>
3804
3805         * CVS to Subversion migration completed
3806
3807 2006-04-18 Borut Razem <borut.razem AT siol.net>
3808
3809         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
3810           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
3811
3812 2006-04-17 Borut Razem <borut.razem AT siol.net>
3813
3814         * device/include/Makefile.in: added pic/*.inc to the installation
3815
3816 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
3817
3818         * support/regression/collate-results.py: fixed output in case of
3819         a valdiag error
3820         * support/regression/generate-cases.py: fixed splitting of pathnames
3821         with dots
3822         * as/hc08/lklibr.c (addfile),
3823         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
3824
3825 2006-04-11 Raphael Neider <rneider AT web.de>
3826
3827         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
3828         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
3829         * src/pic16/pcode.c (assignValnums): fixed #1460578
3830
3831 2006-04-11 Raphael Neider <rneider AT web.de>
3832
3833         * device/lib/pic/libdev/*.c,
3834         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
3835           fixes #1468739, enables compilation in --std-c99 mode
3836         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
3837
3838 2006-04-11 Raphael Neider <rneider AT web.de>
3839
3840         * src/pic/device.c (find_device): removed debug output
3841           (list_valid_pics): enabled verbose listing of supported devices
3842         * device/include/stdbool.h: define bool as char for pic14/16 as well
3843
3844 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3845
3846         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
3847
3848 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
3849
3850         * .version: bumped version to 2.5.6
3851         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
3852
3853 2006-04-06 Raphael Neider <rneider AT web.de>
3854
3855         * .version: bumped version to 2.5.6 (pic14 ABI changed)
3856         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
3857         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
3858           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
3859             pic14_constructAbsMap
3860           (pic14printPublics): declare absolute global symbols as global
3861           (pic14createInterruptVect),
3862         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
3863           (newReg): assume new registers unused, use correct name in
3864             hashtable (reg->name instead of name), more debugLog output
3865         * src/pic/device.h (PIC_device): added fields for verbose output
3866         * src/pic/device.c: moved device definition to pic14devices.txt,
3867             added routines for runtime parsing of pic14devices.txt,
3868             added support for second config word
3869         * src/pic/main.c (_process_pragma): removed #pragma maxram,
3870           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
3871           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
3872           (_pic14_parseOptions): moved pCodeInitRegisters here
3873           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
3874         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
3875           (pCodeInitRegisters): rewrapped comments, perpared new approach to
3876             handling the pseudo stack
3877         * device/lib/Makefile.in: ignore failures in objects-pic16,
3878         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
3879         * device/lib/pic/NEWS: document new dependency on picXXX.lib
3880         * device/lib/pic/Makefile.subdir,
3881         * device/lib/pic16/Makefile.subdir: improved clean rules
3882         * device/lib/pic/libdev/: NEW, pic14 device libraries
3883         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
3884         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
3885         * device/include/Makefile.in: create subdir and install pic14 headers
3886         * device/include/pic/p16f_common.inc: removed unused declarations
3887         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
3888             PICs from inc2h.pl v1.6,
3889             replaced BIT_AT macros with struct declarations
3890         * device/include/pic/pic14devices.txt: definition of supported devices,
3891             all above improvements contributed by Zik Saleeba, thanks
3892         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
3893         * support/scripts/sdcc.nsi: also install pic14 device libraries and
3894             headers
3895
3896 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
3897
3898         * device/include/mcs51/c8051f410.h: added interrupt numbers,
3899         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
3900           thanks to Charles Olds
3901
3902 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3903
3904         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
3905
3906 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
3907
3908         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
3909         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
3910         * support/regression/bug1464657.c: added, new test
3911
3912 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
3913
3914         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
3915           version number
3916
3917 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
3918
3919         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
3920           --no-peep and --peep-file <file> are used don't use default rules but
3921           do use the <file>
3922
3923 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
3924
3925         * src/mcs51/gen.c (genCall): fixed bug 1457608
3926
3927 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3928
3929         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
3930         changes seem to cause (trigger?) problems with the build system.
3931
3932 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
3933
3934         * src/SDCCpeeph.c (operandsLiteral): new, added,
3935           (callFuncByName): inserted operandsLiteral
3936         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
3937
3938 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3939
3940         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
3941         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
3942
3943 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
3944
3945         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
3946           implemented patch 1120823 Thanks to Willy De la Court (normal
3947           interrupts need an interrupt number now if they are made critical),
3948           and enabled nesting of critical functions though not for gbz80
3949           (genCritical, genEndCritical): added functions
3950           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
3951         * src/z80/mappings.i: added "ei" to all mappings
3952
3953 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3954
3955         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
3956         submitted by the Debian SDCC maintainer Aurelien Jarno:
3957         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
3958         archive with gcc 4.1 on mips and wrote the patch"
3959
3960 2006-03-16 Raphael Neider <rneider AT web.de>
3961
3962         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
3963           the left operand is shorter than the result (c* = lit-c* + int),
3964           fixes bug #1450796
3965         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
3966           OP_SYMBOL
3967
3968 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
3969
3970         * src/.version: increased version number to 2.5.5
3971         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
3972         linking is done manually in pic16 port's _linkEdit,
3973         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
3974         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
3975         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
3976         allocate asmop as AOP_ACC,
3977         (aopForRemat): added parameter 'bool result' in function declaration,
3978         (pic16_aopGet): return AOP_ACC when accessing WREG,
3979         (pic16_popGetTempReg): minor modification,
3980         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
3981         'pic16_allocWithIdx',
3982         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
3983         calling function in absolute addresses,
3984         (genAssign): take into account AOP_ACC asmop,
3985         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
3986         * src/pic16/pcoderegs.c: some debug functions and lines added,
3987         * src/pic16/ralloc.c (decodeRegType): added but commented out,
3988         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
3989         register too,
3990         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
3991         call to allocReg, not by manually allocating a new one,
3992         (pic16_assignRegisters): now before going through the register
3993         allocating functions mark all registers as free. This eliminates some
3994         side effects resulting from peephole parser done earlier in the backbone
3995
3996 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
3997
3998         * src/SDCCicode.c (geniCodeLogic),
3999         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
4000
4001 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
4002
4003         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
4004           (genSend): bugfix, do not allocate and free twice,
4005           (shiftRLong): handle partially overlapping aops
4006         * support/regression/tests/bitopcse.c: fixed warning redefined idata
4007
4008 2006-03-08 Borut Razem <borut.razem AT siol.net>
4009
4010         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
4011           for pic16
4012
4013 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
4014
4015         * support/regression/tests/bug1409955.c: new, added
4016         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
4017         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
4018           (aopForSym, aopOp): increment asmop.allocated if reused,
4019           (freeAsmop): decrement asmop.allocated and check for zero instead of
4020           using asmop.freed,
4021           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
4022           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
4023            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
4024            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
4025            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
4026            genSignedRightShift, genRightShift, genDataPointerGet,
4027            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
4028            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
4029             in reverse order from allocation,
4030           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
4031             added swappedLR to keep track
4032         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
4033           pdata & code for GCC, z80, gbz80 & hc08
4034         * support/regression/tests/zeropad.c: moved defines to testfwk.h
4035
4036 2006-03-08 Raphael Neider <rneider AT web.de>
4037
4038         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
4039
4040 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
4041
4042         * device/include/mcs51/c8051f410.h: new SiLabs mcu
4043         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
4044         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
4045
4046 2006-03-06 Borut Razem <borut.razem AT siol.net>
4047
4048         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
4049           made the linker quiet
4050
4051 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
4052
4053         * src/pic16/gen.c (genPcall): fixed bug #1443644
4054         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
4055         which dumps before the function entry point a data byte which represents
4056         the number of the local variables used by the specified function, added
4057         'xinst' for initial support for Extended Instruction Support,
4058         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
4059         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
4060         port->fun_prefix anymore (may change later),
4061         (genFunction, genEndFunction): do not store/restore local registers for
4062         _main (this should take care the --main-return command line option in
4063         the future),
4064         (genOr): removed some legacy pic-port instructions,
4065         * src/pic16/genarith.c (genAddLit): re-enabled old code because
4066         performing operations with SFR's causes data to be written more than
4067         once to each SFR. Perhaps SFRs should be handled in special cases...
4068         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
4069         pcode.h
4070         * src/pic16/main.c (_process_pragma): stack bound checking did not take
4071         into account for stack starting position,
4072         (struct OPTIONS pic16_optionsTable): added command line argument
4073         --extended or -y for Extended Instruction Support,
4074         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
4075         (deassignLRs): *** perhaps the most important change, old 'for' code
4076         (commented out for reference), didn't account for some registers which
4077         were left marked 'not free' after a pointer operation. The change
4078         reduces register usage a lot in some cases
4079
4080 2006-03-04 Borut Razem <borut.razem AT siol.net>
4081
4082         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
4083           _clean
4084         * support/regression/tests/bug-524697.c: decreased array size for
4085           mcs51 to fit into the internal RAM
4086         * support/regression/Makefile.in: a little bit more verbose
4087
4088 2006-03-03 Borut Razem <borut.razem AT siol.net>
4089
4090         * support/regression/fwk/lib/testfwk.c,
4091           support/regression/fwk/include/testfwk.h: introduced function
4092           _prints(), nonrecursive _printn(), call _initEmu() from main()
4093         * support/regression/ports/gbz80/support.asm,
4094           support/regression/ports/ucz80/support.asm,
4095           support/regression/ports/z80/support.asm,
4096           support/regression/ports/ds390/support.c,
4097           support/regression/ports/hc08/support.c,
4098           support/regression/ports/host/support.c,
4099           support/regression/ports/mcs51/support.c,
4100           support/regression/ports/xa51/support.c: added empty _initEmu()
4101           function
4102         * support/regression/ports/pic16/gpsim.cmd,
4103           support/regression/ports/pic16/spec.mk,
4104           support/regression/ports/pic16/support.c,
4105           support/regression/Makefile.in: added pic16 regression test
4106
4107 2006-03-01 Raphael Neider <rneider AT web.de>
4108
4109         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
4110           genConstPointerGet): use safe way of generating MOVFF to cover
4111             literals as well as registers, fixes bug #1440527
4112         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
4113             dereference
4114           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
4115             more correctly, fixes bug #1232186
4116           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
4117         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
4118             gplink guess the correct processor in more cases, applied patch
4119             from Till Riedel attached to and fixing bug #1436552
4120
4121 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4122
4123         * support/regression/tests/array.c: added, contains check for #1434401
4124         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
4125
4126 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
4127
4128         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
4129         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
4130         * device/include/mcs51/c8051f326.h,
4131         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
4132         * device/include/mcs51/c8051f000.h,
4133         * device/include/mcs51/c8051f018.h,
4134         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
4135           PCON_IDLE,PCON_STOP and added sfr16 definitions
4136
4137 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
4138
4139         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
4140           genGetWord): fixed bug 1409955
4141
4142 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
4143
4144         * device/include/hc08/mc68hc908gp32.h,
4145         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
4146
4147 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
4148
4149         * src/SDCCast.c (constExprValue): return NULL if not a value
4150         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
4151         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
4152         * support/regression/tests/bitfields.c: enabled signed bitfield for all
4153
4154 2006-02-13 Borut Razem <borut.razem AT siol.net>
4155
4156         * src/regression/ptrarg.c: added, fails due to bug #1430967
4157         * src/regression/Makefile: ptrarg.c added, ...
4158
4159 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
4160
4161         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
4162         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
4163
4164 2006-02-11 Borut Razem <borut.razem AT siol.net>
4165
4166         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
4167           print "Processor: xxx" message to stdout only if --verbose
4168
4169 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
4170
4171         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
4172         * support/regression/tests/bug1426356.c: added
4173         * support/regression/tests/bitfields.c: removed 2 tests
4174
4175 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
4176
4177         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
4178         * device/include/mcs51/c8051f330.h,
4179         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
4180           PCON_IDLE,PCON_STOP and added sfr16 definitions
4181         * device/lib/_divsint.c,
4182         * device/lib/_divuint.c,
4183         * device/lib/_divulong.c,
4184         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
4185           register bank bug for small stackauto
4186
4187 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
4188
4189         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
4190
4191 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
4192
4193         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
4194         * all.dsp: corrected several bin paths
4195         * device/include/mcs51/c8051f120.h,
4196         * device/include/mcs51/c8051f300.h,
4197         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
4198           to PCON_IDLE,PCON_STOP
4199         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
4200         * device/lib/printf_large.c (output_float): fixed bug 1388703
4201         * support/regression/tests/bug1057979.c: added test for bug 1388703
4202
4203 2006-02-08 Raphael Neider <rneider AT web.de>
4204
4205         * src/pic/pcode.c (pciTRIS): fixed typo,
4206           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
4207           (LinkFlow): fixed handling of flows that end in a call,
4208           (ReuseReg): perform safety check earlier
4209         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
4210             to work with flows at the beginning of a pBlock,
4211             fixes #1426557 (Symbol not previously defined),
4212           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
4213             usage information
4214           (RemoveUnusedRegisters): update register usage info
4215         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
4216             created, reuse existing ones instead
4217         * src/pic/gen.c (genPcall): fixed #1424719
4218
4219 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
4220
4221         * link/z80/lkmain.c,
4222         * link/z80/lklex.c,
4223         * link/z80/lkdata.c,
4224         * link/z80/aslink.h: fixed build on current cygwin:
4225         replaced getline() by lk_getline()
4226
4227 2006-02-01 Borut Razem <borut.razem AT siol.net>
4228
4229         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
4230           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
4231           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
4232           src/regression/bool1.c, src/regression/bool2.c,
4233           src/regression/bool3.c, src/regression/call1.c,
4234           src/regression/compare.c, src/regression/compare10.c,
4235           src/regression/compare2.c, src/regression/compare3.c,
4236           src/regression/compare4.c, src/regression/compare5.c,
4237           src/regression/compare6.c, src/regression/compare7.c,
4238           src/regression/compare8.c, src/regression/compare9.c,
4239           src/regression/configword.c, src/regression/for.c,
4240           src/regression/inline.c, src/regression/mult1.c,
4241           src/regression/nestfor.c, src/regression/or1.c,
4242           src/regression/pointer1.c, src/regression/ptrfunc.c,
4243           src/regression/rotate1.c, src/regression/rotate2.c,
4244           src/regression/rotate3.c, src/regression/rotate4.c,
4245           src/regression/rotate5.c, src/regression/rotate6.c,
4246           src/regression/rotate7.c, src/regression/string1.c,
4247           src/regression/struct1.c, src/regression/sub.c,
4248           src/regression/sub2.c, src/regression/switch1.c,
4249           src/regression/while.c, src/regression/xor.c,
4250           src/regression/create_stc, src/regression/simulate,
4251           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
4252           regression tests
4253         * src/regression/gpsim_assert.h: added
4254
4255 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
4256
4257         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
4258         ((void (code *) (void)) 0) ();
4259         * as/hc08/aslex.c,
4260         * as/hc08/aslink.h,
4261         * as/hc08/asm.h,
4262         * as/hc08/asmain.c,
4263         * as/hc08/lkdata.c,
4264         * as/hc08/lklex.c,
4265         * as/hc08/lkmain.c,
4266         * as/mcs51/aslex.c,
4267         * as/mcs51/aslink.h,
4268         * as/mcs51/asm.h,
4269         * as/mcs51/asmain.c,
4270         * as/mcs51/lkdata.c,
4271         * as/mcs51/lklex.c,
4272         * as/mcs51/lkmain.c,
4273         * as/z80/aslex.c,
4274         * as/z80/asm.h,
4275         * as/z80/asmain.c: fixed build on current cygwin:
4276         replaced getline() by as_getline()
4277
4278 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
4279
4280         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
4281         declarator in the symbol chain
4282         * src/SDCCsymt.h,
4283         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
4284         parameter list for function pointers
4285         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
4286         * support/regression/tests/bug-716242.c: added
4287
4288 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
4289
4290         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
4291         offset if possible
4292         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
4293
4294 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
4295
4296         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
4297         inifinitely recurseable, added static
4298         * support/regression/tests/bug-1408066.c: added
4299
4300 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
4301
4302         * src/SDCCicode.h,
4303         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
4304         renamed, added possibility to create "postLoopLbl"-labels
4305         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
4306         newiTempLoopHeaderLabel
4307         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
4308         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
4309         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
4310         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
4311         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
4312         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
4313         (basicInduction): fixed bug #136564, made static,
4314         (loopInduction): changed parameter of basicInduction, made static,
4315         (addPostLoopBlock): added
4316         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
4317         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
4318         findLoopEndSeq
4319         * support/regression/tests/bug-136564.c: added
4320         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
4321         --std-sdcc99 to LIBSDCCFLAGS
4322
4323 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
4324
4325         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
4326         while loop
4327         * support/regression/tests/bug-1406131.c: added
4328
4329 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
4330
4331         * src/SDCCast.c (decorateType): fix promotion of unary minus
4332         * src/SDCCsymt.c (computeType): beautified
4333         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
4334         (valUnaryPM, valComplement): fix sign and promotion,
4335         (valNot): ANSI: result type is int (SDCC: unsigned char)
4336         * support/regression/tests/uminus.c: speedup by removing superflous
4337         test case 'int'
4338         * support/regression/tests/onebyte.c: added promotion and signedness
4339         tests for unary minus
4340         * support/regressions/tests/bug-477927.c: disable warning about
4341         uninitialized variables
4342         * support/regression/tests/not.c: added
4343
4344 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
4345
4346         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
4347         * src/mcs51/gen.c (gen51Code): show final register usage after
4348         fillGaps in asm with --i-code-in-asm
4349         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
4350         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
4351         incUsed, rliveClear, adjustIChain): made static,
4352         (setFromRange): excluded because it's unused,
4353         (findPrevUseSym, markWholeLoop): added,
4354         (findPrevUse): rewritten; fixes bug 895992; now a complete search
4355         through all branches of predecessors enables sdcc to emit the warning
4356         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
4357         (rlivePoint): made static, added parameter emitWarnings which is only
4358         true during the first run out of two,
4359         (findRecursiveSucc, findRecursivePred): removed,
4360         (computeLiveRanges): made static, added parameter emitWarnings,
4361         (dumpIcRlive): added for debugging only
4362         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
4363         removed prototype of setFromRange()
4364         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
4365         in call of computeLiveRanges()
4366         * support/regression/tests/bug-895992.c: added
4367         * support/regression/tests/bug-971834.c: added
4368         * support/valdiag/tests/bug-895992.c: added
4369         * support/valdiag/tests/bug-971834.c: added
4370
4371 2005-12-18 Raphael Neider <rneider AT web.de>
4372
4373         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
4374           (genUnpackBits): improved code for direct operands,
4375           (genPackBits): improved code for literal assignment to bitfields
4376             and for direct destination operands (no FSR indirection),
4377             prevented redundant AND, fixes #1362800,
4378           (AccLsh): added parameter to disable masking of the result
4379         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
4380           skip instructions with side-effects (like incfsz),
4381           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
4382         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
4383         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
4384           fixes #1375263
4385
4386 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
4387
4388         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
4389         volatile variables as spill location
4390
4391 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
4392
4393         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
4394         replacing literals
4395         * support/regression/tests/bug-1376320.c: added
4396
4397 2005-12-08 Raphael Neider <rneider AT web.de>
4398
4399         * src/pic/device.c: renamed is_shared to pic14_is_shared
4400         * src/pic/gen.c (genIfx): re-enabled handling of sbits
4401         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
4402           (is_valid_identifier): added for above workaround
4403
4404 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
4405
4406         * device/lib/Makefile.in: fixed to enable port-specific-objects
4407         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
4408           char, thanks Hubert Sack
4409         * doc/sdccman.lyx: documented --xstack-loc,
4410           elaborated a bit more on interrupts and pitfalls,
4411           removed "setjmp/longjmp unsupported",
4412           documented some unsupported C99 features
4413         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
4414         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
4415           if, thanks Hubert Sack
4416         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
4417         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
4418           make make_library
4419         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
4420           regression tests can report resource usage (rfe 700441)
4421         * support/regression/collate-results.py: report resource usage
4422         * support/regression/ports/ds390/spec.mk,
4423         * support/regression/ports/hc08/spec.mk,
4424         * support/regression/ports/mcs51/spec.mk,
4425         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
4426         * support/regression/ports/ds390/uCsim.cmd,
4427         * support/regression/ports/hc08/uCsim.cmd,
4428         * support/regression/ports/mcs51/uCsim.cmd,
4429         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
4430         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
4431           library, use the default one
4432         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
4433           building the library
4434
4435 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
4436
4437         * config.dsp: added dependency on .version and configure_vc.awk
4438         * device/include/setjmp.h: updated for --stack-auto and --xstack
4439         * device/include/mcs51/at89c51snd1c.h: corrected line endings
4440         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
4441         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
4442         * device/lib/libsdcc.lib: added _setjmp
4443         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
4444           (decorateType): fixed bug 1372851,
4445           (optimizeGetHbit): fixed warning
4446         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
4447           array initialisation
4448         * support/regression/tests/bug1057979.c: added test for bug 1358192
4449         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
4450
4451 2005-12-03 Borut Razem <borut.razem AT siol.net>
4452
4453         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
4454           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
4455
4456 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
4457
4458         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
4459         createIval): implement symbol independant "flexible array member",
4460         (createIvalCharPtr): implemented flexible array initialisation with a
4461         string
4462         * src/SDCCsymt.c (copyStruct): removed,
4463         (getSize): fixed misleading comment,
4464         (getAllocSize): removed, the additional allocation size is now in
4465         sym->flexArrayLength,
4466         (checkStructFlexArray): new, syntax checks for flexible array members,
4467         (compStructSize): added syntax checks for "flexible array members"
4468         (copyStruct): removed,
4469         (copyLinkChain): removed inefficient fix for bug 770487
4470         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
4471         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
4472         symbol->flexArrayLength
4473         * src/SDCCerr.c,
4474         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
4475         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
4476         * support/regression/tests/structflexarray.c: added
4477         * support/valdiag/tests/structflexiblearray.c: added
4478
4479 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
4480
4481         * src/SDCCast.c (decorateType): fixed bug 1368489
4482         * support/Util/SDCCerr.c,
4483         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
4484
4485 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4486
4487         * device/include/mcs51/at89c51snd1c.h: added file submitted by
4488           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
4489
4490 2005-11-27 Borut Razem <borut.razem AT siol.net>
4491
4492         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
4493           support/cpp2/mkdeps.h: added command line option
4494           -obj-ext=<extension> to SDCPP to define object file externion, used
4495           for generation of make dependencies (-M)
4496         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
4497
4498 2005-11-26 Borut Razem <borut.razem AT siol.net>
4499
4500         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
4501           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
4502           added pic and pic16 libraries
4503
4504 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4505
4506         * device/include/float.h: Corrected typo in prototype of __fsgt
4507
4508 2005-11-25 Borut Razem <borut.razem AT siol.net>
4509
4510         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
4511           added creation of model-mcs51-stack-auto libraries
4512
4513 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
4514
4515         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
4516         and fields-list too
4517         * src/SDCCast.c (createIvalArray): removed obsolete comment
4518
4519 2005-11-24 Borut Razem <borut.razem AT siol.net>
4520
4521         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
4522           added missing device/lib/mcs51/crt*.asm sources
4523
4524 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
4525
4526         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
4527
4528 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
4529
4530         * device/lib/_fs2schar.c,
4531         * device/lib/_fs2sint.c,
4532         * device/lib/_fs2slong.c: optimized inline asm
4533
4534 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4535
4536         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
4537           Better handling of floats between -1.0 and 0.0.
4538
4539 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4540
4541         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
4542           (the missing "if"s prohibited removal of redundant labels)
4543
4544 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4545
4546         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
4547           Properly convert floats between -1.0 and 0.0 to long, int, and char
4548           types (max integer value of negative floats tends to zero).
4549         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
4550           Removed changes made so to work properly with floats between
4551           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
4552           and _fs2char.c
4553
4554 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
4555
4556         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
4557         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
4558         (genCast) cosmetic change
4559         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
4560         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
4561         from mcs51
4562         * support/regression/tests/bitfields (testSignedBitfields): added
4563
4564 2005-11-18 Borut Razem <borut.razem AT siol.net>
4565
4566         * sdcc/device/lib/Makefile.in: remove all unnecessary files
4567         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
4568           introduced SILENT option to make building of pic16 libraries less
4569
4570 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4571
4572         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
4573           Now they work properly with floats between -1.0 and 0.0
4574         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
4575
4576 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
4577
4578         * src/SDCCicode.c (printOperand): added missing else
4579
4580 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
4581
4582         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
4583         reformatted for better readability
4584         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
4585         signed bitfields
4586
4587 2005-11-17 Borut Razem <borut.razem AT siol.net>
4588
4589         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
4590           introduced SILENT option to make building of pic16 libraries less
4591           verbose - used for nightly snapshot build
4592         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
4593           available on Win32 platforms.
4594         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
4595           medium, large, pic and pic16
4596
4597 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4598
4599         * device/lib/printf_large.c: Temporary patch for bug 1358192:
4600           printf("%f"...) sets fraction to zero.
4601
4602 2005-11-16 Raphael Neider <rneider AT web.de>
4603
4604         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
4605           fixes #1357221
4606         * src/pic/gen.c (genIfx): implemented for CARRY bit
4607         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
4608           to generic pointers, fixes #1357332,
4609           (pic16_movLit2f): NEW,
4610           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
4611
4612 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4613
4614         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
4615
4616 2005-11-11 Raphael Neider <rneider AT web.de>
4617
4618         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
4619         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
4620           compute pointer's type from operand,
4621           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
4622           improved single bit reads, fixes bug #1353379
4623
4624 2005-11-09 Borut Razem <borut.razem AT siol.net>
4625
4626         * support/scripts/sdcc.nsi: added lib/pic to the package
4627
4628 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
4629
4630         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
4631
4632 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
4633
4634         * support/regression/tests/bug1348008.c: added
4635         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
4636         * support/regression/tests/bug1337835.c: updated comment
4637
4638 2005-11-06 Borut Razem <borut.razem AT siol.net>
4639
4640         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
4641           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
4642           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4643           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
4644           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
4645           dynamic construction of cl_error_class and derivates - 2.nd try
4646
4647 2005-11-05 Borut Razem <borut.razem AT siol.net>
4648
4649         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
4650           bug, which caused Bus Errors on sparc solaris
4651
4652 2005-11-04 Borut Razem <borut.razem AT siol.net>
4653
4654         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
4655           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
4656           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4657           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
4658           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
4659           and derivates to resolve the initialization problem on OSX
4660
4661 2005-11-02 Borut Razem <borut.razem AT siol.net>
4662
4663         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
4664           corrected typo - #include <winsock2.h>
4665
4666 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
4667
4668         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
4669           (_asxxxx_mapping): added org directive for future enhancements
4670
4671 2005-11-01 Borut Razem <borut.razem AT siol.net>
4672
4673         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
4674           enabled sockets on WIN32
4675         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
4676
4677 2005-10-31 Borut Razem <borut.razem AT siol.net>
4678
4679         * support/regression/generate-cases.py: escape backslashes in {testcase}:
4680           WIN32 backslash path delimiters should be escaped when used in C strings
4681         * support/regression/tests/bitfields.c: exclude failing assertions for
4682           __CYGWIN32__ and __MINGW32__ hosts
4683
4684 2005-10-30 Borut Razem <borut.razem AT siol.net>
4685
4686         * src/SDCCutil.c: corrected double comparison typo
4687
4688 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
4689
4690         * device/lib/medium/Makefile: added for new memory model medium
4691         * device/include/asm/mcs51/features.h: updated for medium/pdata
4692         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
4693           added Multiply & Accumulate sbit's and MAC0_PAGE define
4694         * device/include/mcs51/c8051f300.h: added sfr16 definitions
4695         * device/include/mcs51/c8051f310.h: added sfr16 definitions
4696         * device/lib/_mullong.c: update for medium model
4697         * device/lib/incl.mk: added medium model
4698         * doc/sdccman.lyx: documented medium model
4699         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
4700         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
4701         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
4702         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
4703           (allocParms): set SCLS and OCLS to pdata for medium model
4704         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
4705           for pdata,
4706           (powof2): return <0 if not power of 2
4707         * src/avr/gen.c (genBitWise): use updated powof2
4708         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
4709           (shiftR2Left2Result): small optimization in setup, save acc when storing,
4710           (shiftLLeftOrResult): use B if necessary
4711         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
4712         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
4713         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
4714         * support/regression/Makefile.in: added test-mcs51-medium
4715         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
4716
4717 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
4718
4719         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
4720         specifier unsigned
4721         * device/lib/time.c (mktime): fixed bug 1334315
4722
4723 2005-10-28 Raphael Neider <rneider AT web.de>
4724
4725         * device/include/pic/p16f_common.inc: added common declarations
4726         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
4727
4728 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
4729
4730         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
4731           (aopPutUsesAcc): added to predict accumulator use,
4732           (assignResultValue): save acc if necessary,
4733           (genMinusDec): store result if indirectly addressed,
4734           (genDivOneByte):  save acc if necessary,
4735           (movLeft2Result): bugfix if left already in acc,
4736           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
4737             attention to accumulator use (esp. pdata),
4738           (genReceive): receive pdata correctly
4739         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
4740         * src/SDCCicode.h: added isOperandInPagedSpace prototype
4741
4742 2005-10-27 Raphael Neider <rneider AT web.de>
4743
4744         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
4745
4746 2005-10-27 Raphael Neider <rneider AT web.de>
4747
4748         * .version: changed version to 2.5.4
4749         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
4750         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
4751           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
4752             arithmetics support routines
4753         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
4754         * device/lib/Makefile.in: also create installdir for pic
4755
4756         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
4757           pic14 port as well
4758         * src/pic/device.c (dump_sfr): rewritten to delegate register
4759           placement to the linker (use `extern sym' rather than sym EQU addr),
4760           (validAddress): fixed to check last specified address
4761         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
4762           (popGetLit): truncate literal value to 8 bit,
4763           (popGet): moved assert to more appropriate place
4764           (popGetExternal): create pCode operand from and mark the according
4765             symbol as being `extern'
4766           (popGetAddr): added sanity check on immediate's offset, provide
4767             GPOINTER tag on demand
4768           (aopPut): fixed for immediates,
4769           (mov2w_op): move operand's address or contents to WREG (depending on
4770             operand type), safer variant of mov2w,
4771           (movwf,call_libraryfunc): NEW, handy abbreviations,
4772           (get_argument_pcop,get_return_val_pcop,pass_argument,
4773           get_returnvalue): interface for accessing function parameters and
4774             return values,
4775           (assignResultValuei,genRet): use new parameter/return value interface
4776           (pic14_getDataSize): back to old version handling generic pointers,
4777           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
4778             provided implementation and/or fixed old one,
4779           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
4780             calls, removed legacy 8051 reference code
4781           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
4782           (loadSignToC): NEW, move the operands sign bit to CARRY,
4783           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
4784             genRightShiftSigned, accepts negative shift counts,
4785           (setup_fsr): load FSR and adjust IRP (indirect memory access),
4786           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
4787             generic pointers, __data pointers and __code pointers,
4788           (genUnpackBits,genPackBits): rewritten to work with generic pointers
4789             and signed bitfields, limit bitfields to 8 bit,
4790           (genDataPointerGet): fixed number of bytes read,
4791           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
4792           (genPointerGet,genPointerSet): fixed handling of __code pointers,
4793             pointers to constant data are no longer assumed to point to __code
4794             space, removed invalid pointer types,
4795           (bitpatternFromVal): retrieve the PICs representation of an integer
4796             or float literal,
4797           (genDataPointerSet): fixed assigning to po_immediate operands,
4798           (genGenPointerSet): implemented as library call,
4799           (genIfx): fixed incorrect condition,
4800           (genAddrOf): limit generic pointers' addresses to 2 bytes,
4801             provide GPOINTER tag according to destination's storage class,
4802           (genCast): added code to handle casting to generic pointers, added
4803             sign-/zero extension of the result
4804           (aop_isLitLike,op_isLitLike): fixed handling of immediates
4805         * src/pic/gen.h: added macros to access IRP bit in STATUS register
4806         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
4807           extend the result
4808         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
4809           address/register resides in the shared banks
4810           (emitSymbolToFile): improved to handle global and `pinned' symbols,
4811             put all variables into separate sections (have the linker arrange
4812             them)
4813           (picglue): put init code and interrupt handlers in separate sections
4814         * src/pic/main.c: added port specific options table, modified to PORT
4815           structure to make GPOINTERs 3 byte, added pic14_options
4816           (_pic14_do_link): private linking routine (update paths to libraries,
4817             add libsdcc.lib by default)
4818         * src/pic/main.h: declare pic14_options
4819         * src/pic/pcode.c: fixed instructions i/o relations,
4820           (RegCond): reverted to correct version,
4821           (newpCodeOpLit): truncate literals to 8 bit,
4822           (genericPrint): added debug output,
4823           (getRegFromInstruction): fixed for various operand types, simplified
4824           (BuildFlow): fixed broken handling of isntructions with labels
4825           (LinkFlow): start at last instruction in flow (skip trailing comments),
4826             pass the flow on to the next instruction after CALL
4827           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
4828           (insertPCodeInstruction): fixed inserting after a skip instruction,
4829           (DoBankSelect): fixed for labeled instructions
4830           (OptimizepBlock): honor --nopeep switch
4831           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
4832         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
4833         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
4834           (pCodeOptime2pCodes): allow disabling this optimization via
4835             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
4836             but is still buggy), started implementation of a dataflow based
4837             pCode optimization (CSE + dead code elimination)
4838           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
4839         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
4840           names are independant of the stack location and therefore portable across
4841           devices
4842
4843 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
4844
4845         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
4846           (selectSpil): fixed bug 1337835 by not spilling bit variables
4847         * support/regression/tests/bug1337835.c: added test for this bug
4848         * src/mcs51/peeph.def: restart after rule 3.c,
4849           addded rules 263.x to optimize loading constants
4850
4851 2005-10-26 Raphael Neider <rneider AT web.de>
4852
4853         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
4854         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
4855           (genAssign): emit warning when casting literals to generic pointer
4856             type, also applies when taking the address of a fixed variable,
4857           (genCast): improved casting to generic pointers
4858         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
4859           extern variables, added verbose error message
4860         * device/include/pic16/{string.h,errno.h}: added #pragma library c
4861
4862 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
4863
4864         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
4865         carry must be complemented too
4866         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
4867         could be emitted by genMinus
4868         * src/SDCCval.c (constVal): fixed bug 1305065
4869
4870 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
4871
4872         * src/SDCCast.c (addCast): added promotion for bit variables
4873         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
4874         promotion casts + optimisation
4875         (optimizeGetWord): fix warning 'i' might be used uninitialized
4876         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
4877         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
4878
4879 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
4880
4881         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
4882         all chars are promoted to int; promotion should be handled in SDCCast.c
4883
4884 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4885
4886         * device/lib/_strcmp.c: Fixed bug 1326457
4887
4888 2005-10-11 Raphael Neider <rneider AT web.de>
4889
4890         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
4891         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
4892
4893 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
4894
4895         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
4896         * support/regression/tests/sfr16.c: added test for the sfr32 bug
4897
4898 2005-10-04 Raphael Neider <rneider AT web.de>
4899
4900         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
4901           device/lib/pic16/pics.all: added pic18f1320
4902         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
4903
4904 2005-09-30 Raphael Neider <rneider AT web.de>
4905
4906         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
4907         * src/pic16/devices.inc: NEW, provides device descriptions
4908         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
4909
4910 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
4911
4912         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
4913           GETHBIT
4914
4915 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
4916
4917         * doc/sdccman.lyx: updated Highest Order Bit documentation,
4918           documented Any Order Bit, Higher Order Byte and Higher Order Word
4919         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
4920         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
4921           (optimizeGetAbit): new, to get any bit, not only the high bit,
4922           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
4923           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
4924           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
4925           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
4926             RIGHT_OP: also try GETBYTE, GETWORD optimization,
4927             GETABIT, GETBYTE, GETWORD: decorate them,
4928           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
4929           (ast_print): added GETABIT, GETBYTE, GETWORD
4930         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
4931         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
4932           (geniCodeBinary): new generic binary icode,
4933           (ast2iCode): added GETABIT, GETBYTE, GETWORD
4934         * src/port.h: updated comment for PORT.hasExtBitOp
4935         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
4936           (genGetByte): new, to get a single byte,
4937           (genGetWord): new, to get a word from a long,
4938           (gen51Code): added GETABIT, GETBYTE, GETWORD
4939         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
4940
4941 2005-09-23 Raphael Neider <rneider AT web.de>
4942
4943         * configure.in, configure: have device/lib/pic configured
4944         * device/lib/Makefile.in: added model-pic14
4945         * device/lib/clean.mk: added pic/ to clean rule
4946         * device/lib/pic: added rudimentary pic14 library providing support
4947           functions for multiplication/division/generic pointer access
4948         * src/SDCCopt.c (convilong): mark support functions as extern
4949           for pic14 port as well
4950         * src/pic/gen.c (genMult): added assertions,
4951           (genpic14Code): emit warning on unhandled iCodes
4952         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
4953         * src/pic/pcode.c (pCodeOpCopy),
4954         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
4955           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
4956           SFR_REGISTER}), made safe for future extensions
4957         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
4958           instructions even if preceeded by SKIP instructions (also remove
4959           them); removed unused code
4960         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
4961           prevents leaving parts of the structure uninitialized after copying
4962
4963 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
4964
4965         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
4966           ago by me
4967         * support/regression/tests/addsub.c: added test for the bug
4968
4969 2005-09-21 Raphael Neider <rneider AT web.de>
4970
4971         * device/include/pic16/pic18f1220.h,
4972           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
4973         * device/lib/pic16/Makefile.rules: added missing opening paren
4974         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
4975           are provided in genutils.c,
4976           (genUminusFloat,genUminus,genCmpEq): added asserts on different
4977           operand/result sizes,
4978           (genCmp): assert on NULL pointers first, then check deref'ed values
4979         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
4980           result size
4981
4982 2005-09-18 Raphael Neider <rneider AT web.de>
4983
4984         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
4985           as these are now unused,
4986           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
4987         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
4988           local, avoids uninitialized pointer dereference on r->name
4989         * src/pic16/ralloc.c (newReg): fixed indentation
4990
4991 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
4992
4993         * src/SDCCval.c (constVal): fixed bug 730366
4994         * support/Util/SDCCerr.c,
4995         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
4996
4997 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
4998
4999         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
5000
5001 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
5002
5003         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
5004
5005 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
5006
5007         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
5008           (hex2dec): made hex_digit unsigned char, removed ascii dependance
5009         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
5010           (hex2dec): made hex_digit unsigned char, removed ascii dependance
5011         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
5012         * packihx/packihx.c (hexDigit): made c unsigned char
5013         * as/mcs51/lklibr.c (fndsym),
5014         * link/z80/lkgb.c (gb),
5015         * link/z80/lklibr.c (fndsym),
5016         * link/z80/lkrloc.c (relr),
5017         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
5018         * src/SDCC.lex (checkCurrFile, process_pragma),
5019         * src/SDCCglue.c (spacesToUnderscores),
5020         * src/SDCCmain.c (setParseWithComma, processFile),
5021         * src/asm.c (tvsprintf, printCLine),
5022         * src/avr/gen.c (emitcode, aopPut),
5023         * src/ds390/gen.c (emitcode),
5024         * src/hc08/gen.c (emitcode, emitinline),
5025         * src/mcs51/gen.c (emitcode, genInline),
5026         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
5027           tokenizeLineNode),
5028         * src/pic/ralloc.c (debugLog),
5029         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
5030           tokenizeLineNode),
5031         * src/pic16/ralloc.c (debugLog),
5032         * src/z80/main.c (_process_pragma):
5033            made all ctype.h function calls safe
5034         * src/SDCCopt.c: include math.h for fabs
5035         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
5036           and used them throughout the code to make ctype.h function calls safe
5037         * src/ds390/main.c (asmLineNodeFromLineNode),
5038         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
5039         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
5040            unsigned char*
5041         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
5042           (newpCodeAsmDir): made ctype.h function calls safe
5043         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
5044           pic16_emitcode):  made lbp unsigned char*
5045         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
5046           (pic16_newpCodeAsmDir): made ctype.h function calls safe
5047         * src/xa51/gen.c (emitcode),
5048         * src/z80/gen.c (_emit2): made lbp unsigned char*
5049         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
5050            char*
5051
5052 2005-09-05 Raphael Neider <rneider AT web.de>
5053
5054         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
5055           access bank splitpoint
5056
5057 2005-09-05 Raphael Neider <rneider AT web.de>
5058
5059         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
5060
5061 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
5062
5063         * .version: changed to version 2.5.3
5064         * doc/sdccman.lyx: changed version to 2.5.3,
5065           documented --codeseg and --constseg and pragma codeseg and constseg,
5066           documented bit parameters (reentrant) and bit returning
5067         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
5068            currFunc->recvSize, but is this ok for all ports?
5069           (ast2iCode): result of ~ on unsigned char must be cast to int for
5070            bool to work
5071         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
5072           function pointers in bit space
5073         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
5074           (processFuncArgs): call port.reg_parm() with reentrancy info
5075         * src/port.h,
5076         * src/avr/main.c,
5077         * src/ds390/main.c,
5078         * src/hc08/main.c,
5079         * src/pic/main.c,
5080         * src/pic16/main.c,
5081         * src/xa51/main.c,
5082         * src/z80/main.c: port.reg_parm prototype extended with
5083           "bool reentrant" parameter
5084         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
5085           options.stackAuto for allocating bit register parameters
5086         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
5087           (genSend): set BitBankUsed if it is,
5088           (selectRegBank): factored out of genCall for use in genPcall,
5089           (genCall): removed redundant dtype assignmen, use selectRegBank,
5090           (genPcall): handle returning in Carry properly, save in F0 if needed,
5091           (genReceive): handle bit register parameters
5092         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
5093           (mcs51_assignRegisters): enable bit registers for all reentrant
5094            functions and don't set BitBankUsed unconditionally
5095         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
5096         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
5097         * support/regression/tests/funptrs.c: added tests for BOOL and for return
5098
5099 2005-08-27 Borut Razem <borut.razem AT siol.net>
5100
5101         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
5102         ppc-osx (Darwin) does not support -u option. It seems that it is
5103         supported only on Linux - GNU cp
5104
5105 2005-08-25 Borut Razem <borut.razem AT siol.net>
5106
5107         * sim/ucsim/gui.src/serio.src/Makefile.in,
5108           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
5109           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5110           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
5111           install and strip, since the strip at /usr/ccs/bin should be used
5112           on solaris
5113
5114 2005-08-24 Borut Razem <borut.razem AT siol.net>
5115
5116         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
5117
5118 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
5119
5120         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
5121         ffffffffu
5122
5123 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
5124
5125         * as/mcs51/aslink.h: completed lkrloc.c prototypes
5126         * as/mcs51/lkmain.c (link_main): fixed warning
5127         * device/include/stdbool.h: ds390 has no advanced bit support yet
5128         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
5129         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
5130         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
5131           and updated their macros
5132         * src/SDCCval.c (constVal): updated comment for renamed b_long
5133
5134 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
5135
5136         * as/mcs51/asdata.c: changed ctype['['] to BINOP
5137         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
5138           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
5139           (oprio): set priority for '['
5140         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
5141            and adb_24_bit
5142         * as/mcs51/asm.h: added defines R_BIT and S_BIT
5143         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
5144         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
5145         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
5146           added overlayable BIT_BANK area
5147         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
5148           (summary2): explain 'T' in legenda
5149         * as/mcs51/lkrloc.c: replaced old K&R style,
5150           (relr): added R_BIT processing,
5151           (errmsg): added "Bit-addressable relocation error",
5152           (adb_bit): added for converting from byte- to bit-addressable space,
5153           (adb_24_bit): added for converting from byte- to bit-addressable space
5154         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
5155            used in reentrant functions now even as return value
5156         * device/lib/_gptrput.c (_gptrput): removed obsolete code
5157         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
5158           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
5159         * src/SDCCglobl.h: added indicator BitBankUsed
5160         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
5161            the bit registers b0-b7
5162         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
5163           (geniCodeCast): fixed bug 1263853,
5164           (geniCodeLogicAndOr): put result in bool or char,
5165           (geniCodeReceive): added parameter func for accessing the return type,
5166           (geniCodeFunctionBody): pass func to geniCodeReceive
5167         * src/SDCCmain.c: added indicator BitBankUsed
5168         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
5169         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
5170           (checkSClass): don't put automatic bool/bit on stack,
5171           (checkFunction): removed check on function cannot return bit
5172         * src/SDCCsymt.h: added newBoolLink prototype
5173         * src/mcs51/gen.c (rb1regs): added bit registers,
5174           (movc): created for assigning to carry,
5175           (pushReg, popReg): created for pushing registers,
5176           (sameRegs): check both AOP_REG and AOP_CRY types,
5177           (aopOp): handle bit registers,
5178           (aopPut): optimization no self-assign,
5179           (saveRegisters): push reg->base (bits) only once for bit registers,
5180            and use pushReg,
5181           (unsaveRegisters): pop reg->base only once and use popReg,
5182           (assignResultValue): added parameter func and return in carry for bits,
5183           (genIpush): optimization no reload in A if not changed,
5184           (genSend): bit parameters in reentrant functions are passed in bit
5185            registers by first assigning to bits in B, then save registers and
5186            copy B to bits,
5187           (genCall): handle returning in Carry properly, save it in F0 if needed,
5188           (genPcall): updated assignResultValue call, this is not safe yet for bit
5189            returning function !!!
5190           (genFunction): don't generate equ's for bit registers and use pushReg,
5191           (genEndFunction): take care of bit returning functions and use popReg,
5192           (genRet): return bit in Carry,
5193           (genIfx): optimize bit registers and other directly addressable bits,
5194           (genReceive): updated assignResultValue call
5195         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
5196           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
5197            registers when using stack-auto
5198         * src/mcs51/ralloc.c (_G): added allBitregs,
5199           (regs8051): added the bit registers,
5200           (createStackSpil): use macro IS_BIT,
5201           (getRegBit): added to allocate a bit register, else spill,
5202           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
5203           (updateRegUsage): factored out to ease stepping while debugging,
5204           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
5205            also allocate bit registers,
5206           (fillGaps): handle bit registers,
5207           (findAllBitregs): added to create bit vector with all bit registers,
5208           (mcs51_allBitregs): returns this bit vector,
5209           (mcs51_assignRegisters): when using stack-auto use bit registers for
5210            passing parameters and creating local variables
5211         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
5212
5213 2005-08-22 Borut Razem <borut.razem AT siol.net>
5214
5215         * device/lib/Makefile.in: replaced find option -or with -o
5216           to make it run on solaris
5217
5218 2005-08-22 Raphael Neider <rneider AT web.de>
5219
5220         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
5221           fixes #1265442 (crash on Solaris)
5222
5223 2005-08-20 Borut Razem <borut.razem AT siol.net>
5224
5225         * configure, configure.in: added tests for libsocket and libnsl libraries,
5226           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
5227           from support/regression/Makefile.in
5228         * support/regression/Makefile.in: added
5229         * device/lib/pic16/Makefile.common.in: force make to use bash shell
5230         * sim/ucsim/libtool: regenerated on sparc-solaris
5231         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5232           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
5233           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
5234           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
5235           sparc-solaris, which doesn't use GNU ld linker
5236         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
5237         * as/Makefile: find on sparc-solaris does not support -maxdepth option
5238
5239 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
5240
5241         * src/mcs51/peeph.def: updated comments
5242
5243 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5244
5245         * device/lib/_gptrget.c,
5246         * device/lib/_gptrput.c: slightly shorter
5247         * doc/sdccman.lyx: incremented version
5248         * src/mcs51/peeph.def: moved peephole comments to the line of first
5249           change to better keep line correlation, reanimated 186.e
5250         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
5251
5252 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
5253
5254         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
5255           David Saxton with quotes around file name.
5256
5257 2005-08-15 Borut Razem <borut.razem AT siol.net>
5258
5259         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
5260           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
5261           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
5262           make tests run on x86_64 platform
5263
5264 2005-08-13 Raphael Neider <rneider AT web.de>
5265
5266         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
5267           as it might be executed DURING a build (parallel make is wonderful)
5268
5269 2005-08-13 Raphael Neider <rneider AT web.de>
5270
5271         * device/lib/Makefile.in (port-specific-objects-pic16):
5272           revert to cp $(PORT)/bin/*.* $(PORTDIR)
5273         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
5274           dependency
5275         * device/lib/pic16/Makefile.rules: build subdirs before creating
5276           the library, removed builddir rule, create $(builddir) early in
5277           recurse rule, use empty recurse rule for leaf directories
5278         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
5279           mkdir errors (race condition), removed duplicate suffix "hex"
5280           from clean rules
5281         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
5282         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
5283           prevents mkdir -p from aborting on Alpha
5284
5285 2005-08-12 Raphael Neider <rneider AT web.de>
5286
5287         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
5288           db-statements in order to allow for arrays of pointers in code
5289           sections to be placed without interspersed 0-padding, fixes
5290           bug #1256215
5291         * (emitStatistics): fixed division by zero for pic18f1220
5292         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
5293           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
5294         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
5295         * (pic16_pCodeConstString): keep track of already emitted string
5296           literals to prevent "duplicate definitions of symbol _str_NR"
5297         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
5298           debug message
5299         * device/lib/Makefile.in: ignore failing PIC16 library builds
5300         * device/lib/pic16/Makefile: do not build if gputils are missing
5301         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
5302
5303 2005-08-10 Raphael Neider <rneider AT web.de>
5304
5305         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
5306           my last commit)
5307
5308 2005-08-10 Raphael Neider <rneider AT web.de>
5309
5310         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
5311           Rokas' patch to add the new fixed point type "__fixed16x16"
5312         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
5313           functions for __fixed16x16 arithmetics
5314         * device/lib/pic16: reimplemented the build system to support
5315           a separate build directory, better handling of libio (create
5316           the library in a separate subdir for each architecture) and
5317           easier configuration (centralized in Makefile.common)
5318
5319 2005-08-07 Raphael Neider <rneider AT web.de>
5320
5321         * src/pic16/gen.c (genrshTwo): fixed sign extension
5322         * src/pic16/device.c: added pic18f2320, 4220 and 4320
5323         * device/include/pic16/pic18f2220.h: changed some bit definitions,
5324           added T0CONbits
5325         * device/include/pic16/pic18f4220.h: NEW, header for
5326           pic18f4220 and pic18f4320
5327         * device/include/pic16/pic18fregs.h: added new devices,
5328           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
5329         * device/include/pic16/signal.h: resolved name clashes
5330           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
5331           to also allow testing for interrupt enable bits, added
5332           comments on how to use the macros
5333         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
5334         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
5335           register definitions for the devices
5336         * device/lib/pic16/pics.all: added new devices
5337         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
5338           allocated memory
5339         * device/lib/pic16/libc/stdlib/memfree: do not count
5340           the block header as free memory
5341         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
5342           simplified and added missing end-of-blocklist-marker
5343           (reported by Peter Onion, fixes #1252814)
5344         * (_mergeHeapBlock): fixed loop condition
5345         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
5346           len==0, restructured code
5347         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
5348           up a bit, reduced bitfield accesses, prevent endless loops
5349           in case of heap corruption
5350         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
5351           "unreferenced arguments/must return a value" warnings
5352         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
5353           replaced BAUDREG with SPBRG
5354         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
5355           device/lib/pic16/debug/gstack/gstack.c: replaced
5356           _naked, _asm, _endasm with __naked, __asm, __endasm
5357
5358 2005-08-05 Raphael Neider <rneider AT web.de>
5359
5360         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
5361           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
5362
5363 2005-08-05 Borut Razem <borut.razem AT siol.net>
5364
5365         * device/lib/Makefile.in: added missing ';'
5366         * configure: removed ^M characters
5367
5368 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5369
5370         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
5371           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
5372           License
5373
5374 2005-08-04 Borut Razem <borut.razem AT siol.net>
5375
5376         * configure.in: pic16 libraries build 2nd try - enable running
5377           configure in device/lib/pic16
5378         * configure: regenerated from configure.in
5379         * device/lib/Makefile.in: create $(PORT)/bin directory
5380
5381 2005-08-03 Raphael Neider <rneider AT web.de>
5382
5383         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
5384           to get/set values via pointers
5385         * (genUnpackBits,genPackBits): changed detection of
5386           ptr->bitfield vs. sym.bitfield, fixed access via generic
5387           pointers, removed dead (wrong) code for multibyte bitfields
5388         * (genNearPointerGet, genGenPointerGet): removed useless code,
5389           fixed bitfield detection, fixes #1250594
5390         * (genNearPointerSet): removed useless code
5391         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
5392           and introduced macro pic16_emitpcode that conditionally emits
5393           the origin of the following pCode (useful for debugging SDCC)
5394         * src/pic16/pcode.c: changed (and disabled) some debug outputs
5395         * (createDefmap): fixed handling of LFSR for --optimize-df
5396
5397 2005-08-02 Borut Razem <borut.razem AT siol.net>
5398
5399         * device/lib/Makefile.in: pic16 libraries build enabled since
5400           gputils-0.13.2 are now localy installed at sourceforge's compile farm
5401
5402 2005-08-02 Raphael Neider <rneider AT web.de>
5403
5404         * src/pic16/gen.c (genPackBits): removed deprecated warning
5405         * (genGenPointerSet): fixed bitfield detection
5406
5407 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5408
5409         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
5410
5411 2005-07-31 Raphael Neider <rneider AT web.de>
5412
5413         * device/lib/pic16/libdev/pic18f458.c,
5414           device/include/pic16/pic18f458.h: added missing T0CONbits
5415
5416 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
5417
5418         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
5419
5420 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
5421
5422         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
5423
5424 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5425
5426         * device/include/mcs51/at89c51ed2.h: added.
5427
5428 2005-07-23 Raphael Neider <rneider AT web.de>
5429
5430         * src/pic/gen.h: added emitpcode macro for debugging
5431         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
5432           and replace by macro adding debug information on demand
5433         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
5434         * (gencjne): tried to fix; replaced with correct (slower) code
5435         * (gen{Unp,P}ackBits): fixed single bit access
5436         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
5437         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
5438           previous instruction
5439         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
5440           register has to be handled with care (forbidding movement
5441           of assignments/uses, removing assignments completely, ...)
5442         * (pCodeOptime2pCodes): make use of regIsSpecial
5443         * added lots of debugging output (commented out)
5444         * src/pic/rallloc.c (deassignLRs): prevent operand registers
5445           from being reused as result UNLESS it is known to work
5446
5447 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
5448
5449         * support/Util/dbuf.h: include <stddef.h> for size_t
5450         * .version: changed to version 2.5.2
5451
5452 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5453
5454         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
5455
5456 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5457
5458         * src/hc08/gen.c (genMinus): fixed bug #1241835,
5459           (genModOneByte): removed needless psha/pula
5460
5461 2005-07-22 Raphael Neider <rneider AT web.de>
5462
5463         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
5464           have PIC14 handled like PIC16, fixes broken pic14 linker calls
5465         * src/pic/gen.c (resolveIfx): do not "invent" labels
5466         * (genSkipc): changed to positive logic
5467         * (genSkipCond): removed as no longer needed
5468         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
5469           backport from PIC16
5470         * (genLeftShift): check operands are in different registers
5471         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
5472           INCF does not update CARRY...
5473         * src/pic/main.c: fixed _linkCmd
5474         * src/pic/pcode.c (unlinkpCode): added inactive code
5475         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
5476           alive (do not assign result and operand overlapping registers)
5477
5478 2005-07-22 Raphael Neider <rneider AT web.de>
5479
5480         * src/pic/device.c (dump_sfr): replaced register declaration with
5481           call to emitSymbolToFile() to avoid duplicate symbols
5482         * (assignRelocatableRegisters): do not declare external symbols
5483         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
5484           right (take size of type, not etype)
5485         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
5486         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
5487         * (packRegsForAccUse): disabled assignment of WREG as
5488           the result reg to prevent occurence of just fixed #1235003,
5489           fixes #1242954
5490         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
5491           symbols (avoids duplicate symbols in .asm file)
5492         * (pic14emitRegularMap): use emitSymbolToFile()
5493         * src/pic/gen.c (aopOp): fixed spillLocation handling
5494         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
5495         * (genDataPointerSet): removed unneccessary variables/output
5496
5497 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
5498
5499         * as/mcs51/lkarea.c: enlarged codemap for banked memory
5500         * device/lib/mcs51/crtbank.asm: added # to 0x0F
5501
5502 2005-07-21 Raphael Neider <rneider AT web.de>
5503
5504         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
5505           architecture cannot handle them efficiently, fixes bug #1235003
5506         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
5507           check for empty sets before using them (fixes bug #1232190)
5508
5509 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
5510
5511         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
5512           (lnksect2): generate warnings for memory overlap
5513         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
5514           constseg to set the name of these segments so you can instruct the linker
5515           to place them in banks
5516         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
5517         * src/SDCCglobl.h: added MODEL_HUGE to enum,
5518           added code_seg and const_seg to options
5519         * src/SDCCglue.c (emitMaps): use options.const_seg,
5520           (createInterruptVect): put interrupt vectors in segment HOME,
5521           (glue): put HOME before static segment and put the main glue in HOME,
5522           (glue): use options.code_seg
5523         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
5524         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
5525           these segments so you can instruct the linker to place them in banks
5526           (linkEdit): use code_loc for HOME segment which should be the first
5527           segment in code memory now
5528         * src/SDCCmem.c: fixed more stuff like bug 1238386
5529         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
5530           (changePointer): don't change function pointers to code pointers for
5531           banked functions,
5532           (compareType): added exceptional check for banked function pointers
5533         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
5534         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
5535           after static in code memory
5536         * src/mcs51/gen.c: added aopLiteralLong prototype,
5537           (aopForSym): use getSize for functions,
5538           (genCall): generate banked calls over one trampoline __sdcc_banked_call
5539           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
5540           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
5541           the segment,
5542           (genPcall): use call for literal function pointers and generate banked
5543           calls over the one trampoline so there's only one place for the user to
5544           modify according to his/hers hardware,
5545           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
5546           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
5547         * src/mcs51/main.c: added keyword banked,
5548           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
5549         * support/Util/SDCCerr.c,
5550         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
5551           needed for passing the bank and address to the trampoline
5552         * device/lib/mcs51/crtbank.asm: added for bankswitching
5553         * device/lib/mcs51/Makefile: added crtbank
5554
5555 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5556
5557         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
5558           for fields at offset 0 of a struct or union as reported
5559           on 2005-07-07 in the developer mailing list.
5560
5561 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
5562
5563         * src/SDCCmem.c: fixed bug 1238386
5564
5565 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5566
5567         * src/mcs51/peeph.def: added labelrefcounting for peepholes
5568           (patch #1144962), added peephole 300, enabled 259.x
5569         * doc/sdccman.lyx: removed screenshot and provided link instead
5570
5571 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5572
5573         * doc/sdccman.lyx: added section about debugging with ddd
5574         * doc/figures/ddd_example.eps: screenshot of debugging session
5575
5576 2005-07-04 Raphael Neider <rneider AT web.de>
5577
5578         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
5579           like CODE pointers, fixes #1115683
5580         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
5581           call, fixes bugs #1232211, #1228110,
5582           fixed wrong casts to pCodeFlow from pCodeInstructions
5583
5584 2005-07-04 Raphael Neider <rneider AT web.de>
5585
5586         * src/pic/gen.c (popGet): changed assert to allow for
5587           bit operands
5588         * (popGetAddr): changed signature to provide
5589           an additional index, patched all call sites
5590         * (genCmpEq): handle literal-like operands correctly
5591         * (genAddrOf): added sanity checks on __code/__data pointers
5592         * (genAssign): added handling of symbols from __code section
5593         * (gencjne): do not generate code for comparisons whose result
5594           is neither stored nor used, fixes bug #1171114
5595         * (AccLsh, AccRsh): operate on operand instead of WREG
5596         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
5597           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
5598           by known count
5599         * rewrote complete shift-by-literal logic, commented unused
5600           functions out
5601         * (genConstPointerGet): get multiple bytes (if result size > 1),
5602           fixed handling of non-immediate addresses
5603         * (genPointerGet): handle CODE pointers like CONST pointers
5604         * (genpic14Code): insert C-SRC lines as Cource-pCodes
5605         * ({aop,op}_isLitLike): NEW, single place to decide whether an
5606           operand is to be treated as a literal or not
5607         * (mov2w,genPcall,genCmpEq),
5608           src/pic/genarith.c: use aop_isLitLike() to decide between
5609           literal/register contents
5610         * (addSign): added missing offset
5611         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
5612           only emit comment in debug-mode,
5613           use {aop,op}_isLitLike throughout the file
5614         * src/pic/glue.c: fix initializers for pointers (work in progress)
5615         * src/pic/pcode.c (get_op): honor index on _const symbols
5616         * ({reset,dump}pCodeStatistics): NEW, estimate code size
5617         * (dumppBlock): added pCode size estimation
5618         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
5619           check for IS_SYMOP before OP_SYMBOL'ing
5620         * fixed indentation, compacted switch-statements
5621         * (allocReg): find free register and allocate it instead of
5622           allocating new registers all the time
5623         * (deassignLRs): prevent POINTER_GET's from being assigned the same
5624           registers as its operands (necessary only for multibyte GETs)
5625
5626 2005-07-01 Raphael Neider <rneider AT web.de>
5627
5628         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
5629           debugging .asm-output macros FENTRY + FEXIT
5630         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
5631           way... I wonder...
5632         * (emitpComment): NEW, printf to pCode
5633         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
5634           offset handling
5635         * (popGetAddr): NEW, variant of popGet to access an immediates
5636           high(er) bytes instead of the n'th byte of memory they reference,
5637           replaced popGet with popGetAddr where neccessary
5638         * (genDataPointerGet): reactivated and fixed implementation
5639         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
5640           accesses
5641         * (genDataPointerSet): fixed multibyte assignments
5642         * (genpic14Code): fixed --i-code-in-asm handling
5643         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
5644         * (genPlus): fixed index-out-of-bounds error
5645         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
5646         * src/pic/ralloc.c: added debugging output macro FENTRY2
5647         * (spillThis): fixed indentation, enbraced for-body for clarity
5648         * (rematStr): commented out as now unused
5649         * (regTypeNum): commented out special spill case (overwrites
5650           arbitrary values)
5651         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
5652
5653 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
5654
5655         * doc/sdccman.lyx: documented sfr16/sfr32,
5656           added example for using storage class with function pointers
5657         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
5658
5659 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
5660
5661         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
5662         * device/lib/_itoa.c,
5663         * device/lib/_ltoa.c: optimized codesize
5664         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
5665           but don't know how to suppress the double warning.
5666         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
5667         * support/Util/SDCCerr.c,
5668         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
5669
5670 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
5671
5672         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
5673           fixed old K&R prototypes
5674         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
5675         * device/lib/_gptrget.c,
5676         * device/lib/_gptrgetc.c,
5677         * device/lib/_gptrput.c: changed versions for new memory indicator values,
5678           also new versions for small generic pointers and banked generic pointers
5679         * src/port.h: added const_name
5680         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
5681         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
5682         * src/SDCCcse.c (findPrevIc): check all associative operators
5683         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
5684         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
5685         * src/SDCCmem.c: updated comments,
5686           set far-space to 0 for pdata, results in optimized code
5687         * src/SDCCmem.h: added macro CONST_NAME
5688         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
5689           moving the info into the highest bits, see also gptrget/gptrput
5690         * src/src.dsp: added sdcc.ico to project files
5691         * src/avr/gen.c (genCast): fixed bug 0x%d
5692         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
5693         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
5694           relation between ptr_type and DCL_TYPE,
5695           (genCast): fixed bug 0x%d
5696         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
5697           (CODE)" for const_name
5698         * src/hc08/gen.c (genCast): fixed bug 0x%d
5699         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
5700           (hc08_port): added "CONST (CODE)" for const_name
5701         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
5702           (aopForRemat, adjustArithmeticResult): disconnected direct relation
5703           between ptr_type and DCL_TYPE,
5704           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
5705           operand* and took AOP() inside function so sfr-ness can be checked,
5706           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
5707           new prototype,
5708           (genFunction, genEndFunction): optimized stack setup,
5709           (genMinus): optimized for literals with ending zeroes (in bytes),
5710           (genCast): fixed bug 0x%d
5711         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
5712           (mcs51_port): added "CONST (CODE)" for const_name
5713         * src/mcs51/peeph.def: made rule 226 more generic
5714         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
5715         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
5716         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
5717         * src/z80/main.c (z80_port): added NULL for const_name,
5718           (gbz80_port): added NULL for const_name
5719         * support/regression/tests/bug663539.c,
5720         * support/regression/tests/sfr16.c: new tests
5721
5722 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5723
5724         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
5725
5726 2005-06-24 Raphael Neider <rneider AT web.de>
5727
5728         * device/lib/pic16/libdev/pic18f[68][567]20.c:
5729           corrected typos...
5730         * device/include/pic16/signal.h: added USBIF
5731           and SIG_USB
5732
5733 2005-06-24 Raphael Neider <rneider AT web.de>
5734
5735         * device/lib/pic16/libdev/pic18f2455.c,
5736           device/include/pic16/pic18f2455.h: NEW
5737         * device/include/pic16/pic18fregs.h,
5738           device/lib/pic16/pics.all,
5739           src/pic16/device.c: added 18f2455
5740         * device/lib/pic16/libdev/pic18f[68][567]20.c,
5741           device/include/pic16/{pic18f[68][567].h,usart.h}:
5742           replaced MULTIPLE_USARTS define with more relaible
5743           compatibility sfrs (for USART access)
5744
5745 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
5746
5747         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
5748           and the output asm file line is printed on two lines.
5749
5750 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5751
5752         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
5753           BGT, BLE, BHI, and BLS instructions
5754         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
5755           genCmpEq): removed
5756         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
5757           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
5758           fixes bug #1216342
5759         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
5760
5761 2005-06-15 Raphael Neider <rneider AT web.de>
5762
5763         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
5764         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
5765         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
5766           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
5767           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
5768
5769 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5770
5771         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
5772           Marcel Telka in bug #1215704
5773
5774 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
5775
5776         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
5777           located in shared memory bank.
5778
5779 2005-05-31 Raphael Neider <rneider AT web.de>
5780
5781         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
5782           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
5783           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
5784
5785 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
5786
5787         * device/lib/_strncpy.c: fixed the fix
5788
5789 2005-05-26 Raphael Neider <rneider AT web.de>
5790
5791         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
5792           initializers with \0, bug #1208187
5793         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
5794           intializers with \0, bug #1208187
5795
5796 2005-05-26 Raphael Neider <rneider AT web.de>
5797
5798         * src/pic16/glue.c (pic16_printIvalChar): fixed string
5799           initializers with \0, bug #1208187
5800         * src/pic16/main.c (_process_pragma): added sanity checks
5801           for stack position and size, emit warnings when appropriate
5802
5803 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
5804
5805         * device/lib/_strncpy.c: fixed not filling with \0
5806
5807 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5808
5809         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
5810           createFunction),
5811         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
5812           compound_statement),
5813         * src/SDCCsymt.h,
5814         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
5815
5816 2005-05-24 Raphael Neider <rneider AT web.de>
5817
5818         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
5819
5820 2005-05-24 Raphael Neider <rneider AT web.de>
5821
5822         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
5823           TRISE definitions, closes bug #1162453
5824
5825 2005-05-22 Raphael Neider <rneider AT web.de>
5826
5827         * src/pic16/main.c (_process_pragma): check for missing
5828           arguments to pragmas code and udata
5829         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
5830           consistency fixes to match other headers (thanks to Jim Paris)
5831         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
5832
5833 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
5834
5835         * src/SDCCicode.c (isOperandEqual): fixed missing ;
5836
5837 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
5838
5839         * support/regression/tests/bug1198642.c: new test
5840         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
5841         * src/SDCCcse.c (findPrevIc): added comment, please have a look
5842         * support/scripts/resource.h,
5843         * support/scripts/resource.rc,
5844         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
5845         * support/scripts/sdcc.ico: added 32x32 icon
5846
5847 2005-05-18 Raphael Neider <rneider AT web.de>
5848
5849         * device/lib/pic16/libdev/pic18f*.c,
5850         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
5851           keywords to "__sfr" and "__at (X)"
5852         * device/include/pic16/pic18fregs.h: added pic18f4520
5853         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
5854           #1203088 (MPLAB compatibility)
5855
5856 2005-05-17 Raphael Neider <rneider AT web.de>
5857
5858         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
5859         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
5860         * device/lib/pic16/pics.all: added new devices
5861         * src/pic16/device.c: added support for pic18f4520
5862
5863 2005-05-16 Raphael Neider <rneider AT web.de>
5864         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
5865         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
5866         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
5867           convenience function for bit access
5868
5869 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
5870
5871         * device/lib/printf_large.c: fixed bug 1193299
5872         * support/regression/tests/bug1057979.c: added test %3.3s
5873
5874 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5875
5876         * device/include/mcs51/8051.h,
5877         * device/include/mcs51/8052.h: made parseable with lint
5878         * device/include/mcs51/lint.h: added include file for (sp)lint
5879         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
5880         * doc/cdbfileformat.lyx,
5881         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
5882
5883 2005-05-14 Raphael Neider <rneider AT web.de>
5884
5885         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
5886         * device/lib/pic16/libc/stdlib/itoa.c (new)
5887         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
5888         * device/lib/pic16/libio/Makefile: exclude subdir according to
5889           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
5890         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
5891         * src/pic16/gen.c (genFunction): prevent annoying warning
5892         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
5893           nameclashes on BeOS
5894         * support/cpp2/cppmain.c (cpp_output_string): new
5895         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
5896           fixes bug 1116802
5897
5898 2005-05-13 Borut Razem <borut.razem AT siol.net>
5899
5900         * src/SDCCmain.c (linkEdit): fixed bug 1195202
5901
5902 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5903
5904         * .version: changed to version 2.5.1; back to bleeding edge development
5905
5906 2005-05-11 Borut Razem <borut.razem AT siol.net>
5907
5908         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
5909           generate PDF version 1.3 documents
5910
5911 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5912
5913         * .version: changed to version 2.5.0
5914
5915 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5916
5917         * doc/sdccman.lyx: updated weblinks, index and smaller updates
5918
5919 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5920
5921         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
5922         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
5923         well as many smaller updates.
5924         * .version: changed to version 2.5.0-pre1
5925
5926 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5927
5928         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
5929
5930 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5931
5932         * support/regression/tests/bug1185672.c: added
5933         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
5934           bug 1185672
5935         * src/mcs51/gen.c (genCall): added comments, made it look safer
5936         * src/mcs51/gen.c (genEndFunction): simplified
5937
5938 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
5939
5940         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
5941
5942 2005-04-14 Borut Razem <borut.razem AT siol.net>
5943
5944         * fixed bug 1045046 - SIGSEGV with really simple code?:
5945           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
5946           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
5947
5948 2005-04-14 Borut Razem <borut.razem AT siol.net>
5949
5950         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
5951           src/pic16/device.h: temporarily disabled experimental #inline pragma
5952           for 2.5.0 release
5953
5954 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
5955
5956         * device/include/z80/stdio.h,
5957         * device/include/z80/string.h: removed these highly incomplete files so
5958           SDCC can use the default ones in device/include/
5959
5960 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5961
5962         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
5963         gcc warning.
5964         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
5965         fix sdcpp warnings.
5966
5967 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
5968
5969         * device/include/malloc.h: removed redundant __reentrant prototypes
5970         * device/lib/_mullong.c: added working xstack variant in asm (C version
5971           doesn't pass regression tests)
5972         * device/lib/bpx.c: used __data and made bpx char for mcs51
5973         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
5974           (createFunction): fixed bug with xstackPtr
5975         * src/SDCCcse.c: corrected comments
5976         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
5977           (killDeadCode, eBBlockFromiCode): removed unused code
5978         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
5979           corrected comments
5980         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
5981           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
5982           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
5983           (genModOneByte): fixed warning in MSVC
5984         * src/mcs51/main.c (): added comments
5985         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
5986
5987 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
5988
5989         * src/SDCCmain.c (linkEdit): oops, changed one line too many
5990
5991 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
5992
5993         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
5994
5995 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
5996
5997         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
5998         characters arrays of larger size than the declared one.
5999
6000 2005-04-10 Borut Razem <borut.razem AT siol.net>
6001
6002         * src/pic/gen.c (genInline),
6003           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
6004           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
6005           (findNextInstruction), (findPrevInstruction),
6006           (findInstructionUsingLabel),
6007           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
6008         * src/pic/pcode.c (findLabel): added missing '\n'
6009         * src/src.dsp: added SDCCdwarf2.c to the project
6010
6011 2005-04-09 Borut Razem <borut.razem AT siol.net>
6012
6013         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
6014
6015 2005-04-08 Raphael Neider <rneider AT web.de>
6016
6017         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
6018           into the chain after a given one) and mergeDefmapSymbols (combine
6019           defmap entries for each symbol per pcode)
6020         * (createDefmap): have defmap entries merged in the end
6021         * (defmapReplaceSymRef): split defmap entries covering two accesses to
6022           a symbol before replacing one access type's symbol, merge symbols in
6023           the end (replacement symbol might already have an entry)
6024         * (assignValnums): keep reference to written WREG intact
6025
6026 2005-04-08 Raphael Neider <rneider AT web.de>
6027
6028         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
6029           Alpha)
6030
6031 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
6032
6033         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
6034         bytes
6035
6036 2005-04-07 Raphael Neider <rneider AT web.de>
6037
6038         * device/include/pic16/usart.h: added compatibility defines for
6039           devices with more than one USART
6040         * device/include/pic16/pic18f[68][567]20.h: activated above defines
6041
6042 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6043
6044         * device/lib/Makefile.in: updated for port specific include
6045
6046 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6047
6048         * support/regression/ports/mcs51/spec.mk: added mcs51 include
6049
6050 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6051
6052         * device/include/8051.h,
6053         * device/include/8052.h,
6054         * device/include/at89S8252.h,
6055         * device/include/at89c55.h,
6056         * device/include/at89x051.h,
6057         * device/include/at89x51.h,
6058         * device/include/at89x52.h,
6059         * device/include/mcs51reg.h,
6060         * device/include/reg51.h,
6061         * device/include/reg764.h,
6062         * device/include/regc515c.h,
6063         * device/include/sab80515.h: (re)moved these 12 files
6064         * device/include/mcs51/8051.h,
6065         * device/include/mcs51/8052.h,
6066         * device/include/mcs51/at89S8252.h,
6067         * device/include/mcs51/at89c55.h,
6068         * device/include/mcs51/at89x051.h,
6069         * device/include/mcs51/at89x51.h,
6070         * device/include/mcs51/at89x52.h,
6071         * device/include/mcs51/mcs51reg.h,
6072         * device/include/mcs51/reg51.h,
6073         * device/include/mcs51/reg764.h,
6074         * device/include/mcs51/regc515c.h,
6075         * device/include/mcs51/sab80515.h: and added them here
6076
6077 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6078
6079         * device/include/stdarg.h: changed SDCC specific keywords to double
6080           underlined form.
6081         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
6082           mcs51 and ds390.
6083         * device/include/hc08/mc68hc908gp32.h,
6084         * device/include/hc08/mc68hc908jb8.h,
6085         * device/include/hc08/mc68hc908jkjl.h,
6086         * device/include/hc08/mc68hc908qy.h: fixed comments
6087         * device/include/mcs51/README: updated
6088         * device/include/mcs51/c8051f120.h: added PINRSF
6089         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
6090         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
6091           amidst code. Also inline is not supported.
6092
6093 2005-04-06 Raphael Neider <rneider AT web.de>
6094
6095         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
6096         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
6097           callers stack/frame pointers
6098
6099 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
6100
6101         * device/include/pic16/usart.h: added, missing in previous commit,
6102         * device/include/pic16/adc.h: fixed typo,
6103         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
6104         commit,
6105         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
6106         <p18fxxx.inc>
6107         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
6108         uninitialized because a bug appears with gplink
6109         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
6110         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
6111         complains for unrecognised option
6112
6113 2005-04-05 Raphael Neider <rneider AT web.de>
6114
6115         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
6116           structs as well (using memcpy)
6117         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
6118           on ISRs (GOTO has no label)
6119         * src/pic16/device.h: added OF_OPTIMIZE_DF
6120         * src/pic16/main.c: added compiler switch --optimize-df to enable the
6121           new data flow analysis/optimization
6122         * src/pic16/pcode.c: added (prototypes for and implementation of)
6123           dataflow analysis functions, fixed pCodeInstructions' inCond and
6124           outCond values, made RCALL a branch instruction
6125         * (pic16_unlinkpCode): keep C line if possible
6126         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
6127           C line moved if possible
6128         * (pic16_getRegFrompCodeOp): NEW, improved version of...
6129         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
6130           to use new pic16_getRegFrompCodeOp (works for more SFRs)
6131         * (pic16_BuildFlow): fixed skip instructions with label (did not start
6132           new flow)
6133         * (pic16_getJumptabpCode): NEW, needed in...
6134         * (LinkFlow): fixed handling of jumptables, calls and conditional
6135           branches
6136         * (pic16_InsertCommentAfter): NEW
6137         * (pic16_pCodeReplace): made verbose and flow preserving
6138         * (AnalyzeFlow): added call to data flow analysis
6139         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
6140         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
6141         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
6142
6143 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6144
6145         * src/SDCCast.c (decorateType): fixed bug #1105626
6146
6147 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
6148
6149         * device/include/asm/pic16/features.h,
6150         * pic18f*.h headers,
6151         * device/include/pic16/adc.h,
6152         * device/include/pic16/delay.h,
6153         * device/include/pic16/i2c.h,
6154         * device/include/pic16/malloc.h,
6155         * device/include/pic16/stdio.h,
6156         * device/include/pic16/stdlib.h,
6157         * device/include/pic16/string.h,
6158         * device/lib/pic16/libc/stdio/printf_tiny.c,
6159         * device/lib/pic16/libc/stdio/printf_small.c,
6160         * device/lib/pic16/libc/stdio/strmgpsim.c,
6161         * device/lib/pic16/libc/stdio/strmmssp.c,
6162         * device/lib/pic16/libc/stdio/strmusart.c,
6163         * device/lib/pic16/libc/stdio/vfprintf.c,
6164         * device/lib/pic16/libc/stdlib/ltoa.c,
6165         * device/lib/pic16/libc/stdlib/putchar.c,
6166         * device/lib/pic16/libc/stdlib/x_ftoa.c,
6167         * device/lib/pic16/libc/stdlib/memchrpgm.c,
6168         * device/lib/pic16/libc/stdlib/memchrram.c,
6169         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
6170         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
6171         * device/lib/pic16/libio/adc/adcbusy.c,
6172         * device/lib/pic16/libio/adc/adcread.c,
6173         * device/lib/pic16/libio/adc/adcsetch.c,
6174         * device/lib/pic16/libio/usart/ubaud.c,
6175         * device/lib/pic16/libio/usart/ubusy.c,
6176         * device/lib/pic16/libio/usart/udrdy.c,
6177         * device/lib/pic16/libio/usart/uopen.c,
6178         * device/lib/pic16/libio/usart/uputc.c,
6179         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
6180         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
6181         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
6182         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
6183         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
6184         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
6185         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
6186         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
6187         specific keywords to double underlined form,
6188         * device/lib/pic16/libc/Makefile.rules,
6189         * device/lib/pic16/libsdcc/Makefile.rules,
6190         * device/lib/pic16/libm/Makefile,
6191         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
6192         to compile with C standard set in Makefile.common
6193         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
6194         rand.c and crc.c in compilation process,
6195         * device/lib/pic16/libsdcc/int/divuint.c,
6196         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
6197         `c' from signed to unsigned,
6198         * device/lib/pic16/startup/crt0.c,
6199         * device/lib/pic16/startup/crt0i.c,
6200         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
6201         keywords to double underlined form, bug fixes in _do_cinit function
6202         which prevented the correct initialization of the .idata segment,
6203         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
6204         core to enter a infinite loop
6205         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
6206
6207 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6208
6209         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
6210
6211 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6212
6213         * device/include/Makefile.in: add support for hc08 subdirectory
6214         * device/include/hc08/: new subdirectory
6215         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
6216         Lucas Loizaga, thanks!
6217         * device/include/hc08/mc68hc908qy.h,
6218         * device/include/hc08/mc68hc908gp32.h,
6219         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
6220         their own directory. Changed internal macro names to use the compiler
6221         reserved namespace. Changed SDCC specific keywords to double
6222         underlined form.
6223         * device/include/math.h,
6224         * device/include/malloc.h,
6225         * device/include/stdarg.h,
6226         * device/include/stdbool.h
6227         * device/include/string.h,
6228         * device/include/tinibios.h,
6229         * device/include/ds400rom.h,
6230         * device/include/8051.h,
6231         * device/include/8052.h,
6232         * device/include/80c51xa.h,
6233         * device/include/at89c55.h,
6234         * device/include/at89S8252.h,
6235         * device/include/at89x51.h,
6236         * device/include/at89x52.h,
6237         * device/include/ds80c390.h,
6238         * device/include/reg764.h,
6239         * device/include/regc515c.h,
6240         * device/include/sab80515.h,
6241         * device/include/mcs51/c8051f000.h,
6242         * device/include/mcs51/c8051f018.h,
6243         * device/include/mcs51/c8051f020.h,
6244         * device/include/mcs51/c8051f040.h,
6245         * device/include/mcs51/c8051f060.h,
6246         * device/include/mcs51/c8051f120.h,
6247         * device/include/mcs51/c8051f300.h,
6248         * device/include/mcs51/c8051f310.h,
6249         * device/include/mcs51/c8051f320.h,
6250         * device/include/mcs51/c8051f330.h,
6251         * device/include/mcs51/c8051f350.h,
6252         * device/include/z180.h: Changed SDCC specific keywords to double
6253         underlined form.
6254
6255 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
6256
6257         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
6258         18F4455,
6259         * (pic16_assignConfigWordValue): disable testing of configuration
6260         register value with config mask,
6261         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
6262         function with port->fun_prefix,
6263         * (genFunction): when generating a naked interrupt function never
6264         create an absolute segment placed in interrupt vector address, place
6265         the actual interrupt function at IVA instead, when an interrupt
6266         function is generated with unspecified interrupt then do not create
6267         the absolute section,
6268         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
6269         code for generating a call to generic pointer get/put function with
6270         a call to function pic16_callGenericPointer(),
6271         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
6272         the call to the generic pointer get/put functions with prefixing the
6273         function name with port->fun_prefix,
6274         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
6275         * src/pic16/main.c (_process_pragma): prefix function with
6276         port->fun_prefix,
6277         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
6278         calling assembler, old 18Fxxxx macro is deprecated,
6279         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
6280         PC_ASMDIR in while condition,
6281         * (findInstruction): add PC_ASMDIR in while condition,
6282         * (buildCallTree): prefix main with port->fun_prefix,
6283         * (pic16_pCode2str): fixed bug that didn't emit the memory access
6284         identifier for variable with banked access in instructions BTFSS,
6285         BTFSC, BCF, BSF, BTG
6286         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
6287         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
6288         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
6289         perform optimization when enviroment variable NO_REG_OPT is set,
6290         * (insideLRBlock): NEW, return 1 if register is inside an
6291         INF_LOCALREGS block,
6292         * (RemoveRegFromLRBlock): remove a register that is completely
6293         eliminated by register optimization, but it is still left in local
6294         register store/restore in/from stack block,
6295         * (Remove2pcodes): after removing register, check to see if it
6296         should be removed from local register store/restore in/from stack
6297         block,
6298         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
6299         DUMMY_READ_VOLATILE,
6300
6301         * device/include/pic16/adc.h: minor prototype modifications and
6302         update,
6303         * device/include/pic16/malloc.h: added GPL notice various
6304         modifications,
6305         * device/include/pic16/stdint.h: NEW, standard header for ints
6306         * device/include/pic16/delay.h: NEW, header for delay functions,
6307         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
6308         delay1mtcy,
6309         * device/include/pic16/signal.h: NEW, header providing helper macros
6310         for implementing signal handlers,
6311         * device/include/pic16/stdio.h: added prototypes for functions,
6312         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
6313         prototypes for stdin and stdout, added macro PUTCHAR to
6314         automatically implement putchar function prototype,
6315         * device/include/pic16/usart.h: modified and updated USART library,
6316         * device/lib/pic16/libio/adc/,
6317         * device/lib/pic16/libio/i2c: some modifications to improve library
6318         performance,
6319         * device/lib/pic16/libc/stdio/: modifications for the new printf*
6320         family of functions,
6321         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
6322         family of functions and other sources,
6323         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
6324         of the PIC18Fxx[28] devices,
6325         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
6326         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
6327         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
6328         _do_cinit function, because the previous failed when local variables
6329         where not placed in the same memory bank,
6330         * device/lib/pic16/libsdcc/char/: various modifications to improve
6331         library performance,
6332         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
6333         information on the new functions of the c library and more...
6334
6335 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6336
6337         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
6338
6339 2005-03-26 Raphael Neider <rneider AT web.de>
6340
6341         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
6342           if condition == CARRY)
6343         * (genCmp): adapted to new genSkipc semantics
6344         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
6345           on rIfx (genCmp was broken)
6346
6347 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6348
6349         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
6350         * src/z80/main.c (_keywords[]),
6351         * src/SDCCglobal.h (struct options),
6352         * src/SDCC.y,
6353         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
6354         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
6355         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
6356         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
6357         always available in leading double underscore form. The C99 support is
6358         mostly missing, but it's a start.
6359         * support/regression/tests/bug-227710.c: fixed nonconforming use of
6360         reserved identifier "__data".
6361
6362 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
6363
6364         * src/mcs51/peeph.def: fixed bug 1170013
6365
6366 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
6367
6368         * device/include/mcs51reg.h: fixed bug 842007
6369
6370 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6371
6372         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
6373         last time.
6374
6375 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6376
6377         * src/port.h (struct PORT),
6378         * src/avr/ralloc.c (avr_assignRegisters),
6379         * src/avr/main.c,
6380         * src/ds390/ralloc.c (ds390_assignRegisters),
6381         * src/ds390/main.c,
6382         * src/hc08/ralloc.c (hc08_assignRegisters),
6383         * src/hc08/main.c,
6384         * src/mcs51/ralloc.c (mcs51_assignRegisters),
6385         * src/mcs51/main.c,
6386         * src/pic/ralloc.c (pic14_assignRegisters),
6387         * src/pic/main.c,
6388         * src/pic16/ralloc.c (pic16_assignRegisters),
6389         * src/pic16/main.c,
6390         * src/xa51/ralloc.c (xa51_assignRegisters),
6391         * src/xa51/main.c,
6392         * src/z80/ralloc.c (z80_assignRegisters),
6393         * src/z80/ralloc.h,
6394         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
6395         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
6396         * src/SDCCcse.h,
6397         * src/SDCCdflow.c (computeDataFlow),
6398         * src/SDCCdflow.h,
6399         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
6400         * src/SDCCloop.h,
6401         * src/SDCCcflow.c (*),
6402         * src/SDCCcflow.h,
6403         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
6404         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
6405         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
6406         immedDom() returning wrong block; probably fixes bug #1160833)
6407
6408 2005-03-20 Borut Razem <borut.razem AT siol.net>
6409
6410         * support/scripts/inc2h.pl: WIN32 port
6411
6412 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
6413
6414         * device/lib/makefile.in: added abs.c and labs.c
6415
6416 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
6417
6418         * device/include/stdint.h: added
6419         * device/lib/abs.c: added
6420         * device/lib/labs.c: added
6421         * device/include/stdlib.h: added abs() and labs() prototypes
6422         * device/lib/libsdcc.lib: added abs and labs
6423         * device/include/float.h,
6424         * device/lib/_fsmul.c,
6425         * device/lib/printf_fast.c,
6426         * device/lib/printf_tiny.c: updated comments
6427
6428 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6429
6430         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
6431         bug #1164313
6432
6433 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6434
6435         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
6436         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
6437
6438 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
6439
6440         * device/lib/printf_large.c: removed inline assembly for portability and
6441           readability. Use printf_fast if speed or size are more important.
6442         * src/pic16/gen.c: removed conditions around use of DEBUGpc
6443         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
6444
6445 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
6446
6447         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
6448         prevent compiler warning
6449
6450 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6451
6452         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
6453         moved to level 0 and declared as static. Also they are explicit
6454         placed in access bank. This was necessery because some times they
6455         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
6456         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
6457         optimizations. Currently only compare to unsigned char is implemented,
6458         * src/pic16/gen.c: added fReturnIdx array,
6459         * (struct resolvedIfx) is moved to gen.h and made public,
6460         * (struct _G): added sregsAlloc and sregsAllocSet fields,
6461         * (aopForSym): added an optimization to directly store in stack of
6462         the operand of a SEND iCode,
6463         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
6464         but as registers instead (AOP_REG) using the fReturnIdx array,
6465         * (pic16_freeAsmop): remove the freed register from the
6466         _G.sregsAlloc field,
6467         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
6468         a compare of 'WREG',
6469         * (pic16_popGetTempRegCond): changed function prototype, now
6470         function takes also a bitVector argument v which holds the current
6471         set of registers that are allocated for stack access by aopForSym,
6472         registers allocated in aopForSym for accessing stack symbols are not
6473         any more part of the functions usedRegs field,
6474         * (genCall): some times aopOp is called for a stack variable to be
6475         send, aopForSym might perform the push, if this is true make sure
6476         that genCall doesn't push the variable twice by testing _G.resDirect,
6477         * (genFunction): changed testing for unspecified interrupt number
6478         from 256 to INTNO_UNSPEC,
6479         * modified selection scheme of frame pointer generation. Previously
6480         if function did use local registers a frame pointer was generated,
6481         now a frame pointer is generated only if function has arguments
6482         (that need PLUSW2 register access), or has stack arguments, or the
6483         compiler is not instructed to omit the frame pointer,
6484         * (genEndFunction): before restoring local registers that were saved
6485         in the function preamble, also restore the registers that *might*
6486         have been allocated for stack access,
6487         * (genRet): removed some old comments,
6488         * (genCmp, the active (RN's) version): added a call to the
6489         pic16_genCmp_special function to perform the compare with a more
6490         robust and optimized way,
6491         * (genInline): a feature has been added in inline code generation,
6492         which allows a wildcard variable substitution when writing inline
6493         assembly. Code is incomplete and experimental therefore undocumented,
6494         * (genCast): changed order of aopOp for result and right to allow
6495         aopForSym to directly load the result if possible,
6496         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
6497         perform an optimized compare on some selected special occasions,
6498         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
6499         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
6500         generate an IVT any more,
6501         * src/pic16/main.c (pic16_optionsTable): added command line option
6502         --optimize-cmp,
6503         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
6504         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
6505         macros,
6506         * src/pic16/NOTES: Raphael Neider added in list of active developers
6507         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
6508         jumptable_end to prevent bug #,
6509         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
6510         inCond and outCond fields,
6511         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
6512         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
6513         turn off register spilling,
6514         * (packRegsForOneUse): synced with other ports' versions although it
6515         is not used currently,
6516         * (pic16_packRegisters): added an optimization while reading
6517         structure bitfields, some registers may be saved (malloc code is
6518         decreased by 80 bytes)
6519
6520 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
6521
6522         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
6523         left is a bitfield, if yes, then don't optimize assignment. Perhaps
6524         this can be optimized more?
6525
6526 2005-03-10 Raphael Neider <rneider AT web.de>
6527
6528         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
6529           genNearPointerGet): (hopefully) fixed access to bitfields via
6530           pointers (p->bitN = x; and x = p->bitN; failed)
6531
6532 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
6533
6534         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
6535
6536 2005-03-09 Raphael Neider <rneider AT web.de>
6537
6538         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
6539
6540 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
6541
6542         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
6543         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
6544           (regTypeNum): set REG_BIT type if necessary
6545         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
6546         * support/regression/tests/critical.c: check bug 1144613
6547
6548 2005-03-02 Raphael Neider <rneider AT web.de>
6549
6550         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
6551
6552 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6553
6554         * src/avr/ralloc.c (serialRegAssign),
6555         * src/ds390/ralloc.c (serialRegAssign),
6556         * src/hc08/ralloc.c (serialRegAssign),
6557         * src/mcs51/ralloc.c (serialRegAssign),
6558         * src/pic/ralloc.c (serialRegAssign),
6559         * src/pic16/ralloc.c (serialRegAssign),
6560         * src/xa51/ralloc.c (serialRegAssign),
6561         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
6562
6563 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
6564
6565         * src/SDCCast.c (decorateType): fixed bug 1124787
6566
6567 2005-02-20 Hubert Sack <sack AT digiplan.de>
6568         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6569
6570         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
6571         patch #1121755
6572
6573 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6574
6575         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
6576         to keep the correct label reference count when adding/removing references
6577         to labels. A peephole file using this is appended to patch #1144962.
6578
6579 2005-02-14 Raphael Neider <rneider AT web.de>
6580
6581         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
6582         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
6583         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
6584           retrievals of result operand's value on assignment
6585
6586 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
6587
6588         * device/include/pic16/string.h: modified prototype for memccpy()
6589         to memccpy(void *, void *, char, size_t)
6590         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
6591         check whether to omit frame pointer or not,
6592         * (genInline): convert all occurences of "\n" to LF in inline
6593         assembler blocks, this helps formatting the inline text,
6594         * (pic16_loadFSR0): modified prototype,
6595         * (genNearPointerGet, genNearPointerSet): reorganization of code,
6596         removed some 8051 legacy code,
6597         * (genPackBits): enabled handling bitfields exceeding one byte in size,
6598         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
6599         before allocating temporary registers in functions,
6600
6601 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
6602
6603         * support/regression/tests/bitvars.c: corrected the "fix"
6604
6605 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
6606
6607         * support/regression/tests/bitvars.c,
6608         * support/regression/tests/bitwise.c,
6609         * support/regression/tests/rotate.c: "fixed" problems on Alpha
6610
6611 2005-02-10 Raphael Neider <rneider AT web.de>
6612
6613         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
6614           different size for Alpha
6615         * src/pic16/gen.c (genCmpEq) : improved compare with 0
6616
6617 2005-02-09 Raphael Neider <rneider AT web.de>
6618
6619         * src/SDCC.lex(doPragma) : save and restore warning options as well
6620           (also added new stack plus clone- and copyAndFreeSDCCERRG())
6621         * have #pragma less_pedantic set the errorlevel to WARNING
6622           (fixes #1117001)
6623         * (cloneOptimize) : fixed wrong malloc's size
6624         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
6625           facilitate correct handling of #pragma (save|restore)
6626
6627 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
6628
6629         * src/mcs51/gen.c: removed non-standard C nameless struct/union
6630
6631 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
6632
6633         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
6634
6635 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
6636
6637         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
6638
6639 2005-02-02 Raphael Neider <rneider AT web.de>
6640
6641         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
6642         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
6643         * (pic16_storeForReturn): fixed to allow returning function pointers
6644         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
6645         * device/include/pic16/{stddef.h,stdbool.h}: added
6646
6647 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
6648
6649         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
6650
6651 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
6652
6653         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
6654         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
6655          appeared to be required
6656
6657 2005-01-31 Borut Razem <borut.razem AT siol.net>
6658
6659         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
6660           include/mcs51 and include/z80 directories to the package
6661
6662 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6663
6664         * src/hc08/gen.c (genFunction): fixed bug #1112752
6665
6666 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6667
6668         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
6669
6670 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6671
6672         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
6673
6674 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
6675
6676         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
6677
6678 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
6679
6680         * device/include/c8051fxxx.h: removed these 6 files
6681         * device/include/mcs51/c8051fxxx.h: added these 11 new files
6682
6683 2005-01-26 Raphael Neider <rneider AT web.de>
6684
6685         * src/pic16/gen.c (genAssign): fixed assignment from longs
6686           in codespace (were cut to three bytes)
6687         * (genDummyRead): implemented (except for CODESPACE...),
6688           fixed bug #1108575
6689         * src/pic16/glue.c (emitStatistics): beautified
6690         * device/lib/pic16/libm/Makefile: added include path
6691
6692 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6693
6694         * src/z80/gen.c (aopPut): fixed bug #1103902
6695
6696 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6697
6698         * device/lib/expf.c: fixed bug #1095792
6699
6700 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
6701
6702         * device/lib/pic16/libm: added Math library sources
6703
6704 2005-01-24 Raphael Neider <rneider AT web.de>
6705
6706         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
6707           to enable upcast to pCodeOpReg2 (there is no type tag to
6708           differenciate the two and pic16_popGet2p cast into PCOR2)
6709         * src/pic16/main.c (_process_pragma): fixed another malloc bug
6710           (sizeof(sectNames) changed to sizeof(sectName))
6711           Both patches fix segfaults under MinGW.
6712
6713 2005-01-23 Raphael Neider <rneider AT web.de>
6714
6715         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
6716           Safe_[mc]?alloc()'ed variables
6717         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
6718           of (byte sized) temporaries (assign them to WREG for now)
6719         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
6720           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
6721           this might fix SIGSEGVs on MinGW...
6722         * src/SDCCopt.c (killDeadCode): restored original behaviour
6723           (volatile operands might get thrown away though)
6724
6725 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
6726
6727         * src/pic16/gen.c: fixed bug #1106975,
6728         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
6729         pointer update, INTCON is saved, global interrupts are disabled and
6730         restored after updateing TOS.
6731         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
6732         * added function attribute 'shadowregs' to take advantage of shadow
6733         registers,
6734         * added function attribute 'wparam' as an alternative to the wparam
6735         pragma,
6736         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
6737         user declares a non-ISR function as 'shadowregs',
6738         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
6739
6740 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
6741
6742         * .version: bumped version number to 2.4.8
6743         * device/lib/pic16/pics.all: list of PIC18F devices supported by
6744         pic16 port,
6745         * device/lib/pic16/libio/i2c/: I2C module support library,
6746         * device/include/pic16/i2c.h: I2C support library header,
6747         * device/lib/pic16/libc/stdio/: standard IO support sources,
6748         * (printf_small.c): printf_small() source, supports float print,
6749         * (printf_tiny.c): printf_tiny() source, does not support floats,
6750         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
6751         enable global optimizations for entire library source, other
6752         Makefiles in the source tree are also modified to reflect this,
6753         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
6754         function,
6755         * doc/sdccman.lyx: updated to reflect new changes,
6756         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
6757         sym->onStack if-case,
6758         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
6759         sbit, idata, _idata, xdata, _xdata,
6760         * added pragma library, to link an external library, (see doc),
6761         * removed command line options, --pomit-config-words, --pomit-ivt,
6762         --pleave-reset-vector,
6763         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
6764         when calling assembler to reflect memory model used, also define
6765         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
6766         reflect stack model used,
6767         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
6768         on stack return NULL,
6769
6770 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
6771
6772         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
6773           of the operands is volatile. Fixes #1020220
6774
6775 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
6776
6777         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
6778         * (OptimizeRegUsage): make sure that there is really no other flow where
6779           the first pCode is used
6780
6781 2005-01-22 Raphael Neider <rneider AT web.de>
6782
6783         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
6784           to fix #1106967 (pCode->seq are not set up correctly)
6785
6786 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6787
6788         * src/SDCCglue.c (glue): make sure code area is declared before the
6789         static initialization area.
6790
6791 2005-01-21 Raphael Neider <rneider AT web.de>
6792
6793         * device/lib/Makefile.in: fixed test for pic16 install dir
6794         * device/lib/pic16/*/Makefile*: modified compile flags to enable
6795           optimizations
6796         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
6797           added --optimize-goto compiler switch and pragma wparam documentation
6798         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
6799         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
6800           and PRODH closing bug #1071770 (peephole optimizer)
6801
6802 2005-01-19 Raphael Neider <rneider AT web.de>
6803
6804         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
6805           cmdLine buffers (used when calling sdcpp...) are large enough
6806           (MAX_PATH=256 truncates arguments leading to system halts when
6807           used in MinGW...)
6808         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
6809         * (genUminus): rewritten to for efficiency
6810         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
6811           used uninitialized in some cases)
6812         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
6813           copy the third byte from the int -- now assumes 0x80 (data memory)
6814         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
6815           operands (genAddLit expects the iCode's operands to swapped as
6816           well), fixed leftover bytes (crashed for short left operands)
6817         * (pic16_genMinusDec): performance improvements, removed false
6818           PIC14 emitSKPNCs
6819         * (pic16_genMinus): fixed to cope with differently sized operands
6820         * src/pic16/glue.c (pic16_glue): added new banksel optimization
6821           for --obanksel > 1
6822         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
6823         * src/pic16/graph.[ch]: implementation of directed graphs, used by
6824           new banksel optimization
6825         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
6826           analysis for temporary registers (segfaults...)
6827         * src/pic16/peeph.def: added rule
6828
6829 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
6830
6831         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
6832         which converts a float number to its ASCII representation
6833         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
6834         functions to convert the fractional and integer part of a float to ASCII,
6835         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
6836         realloc.c): added _MALLOC_SPEC to explicit place variables in data
6837         ram
6838         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
6839         _STATMEM macros,
6840         * device/include/pic16/adc.h: added GPL info,
6841         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
6842         a pCodeOp as tested operand,
6843         * (genNearPointerGet): optimized bit testing, does not use
6844         intermediate register for bit value, test directly instead with
6845         BTFSS, BTFSC, works only for single bits,
6846         * (genpic16Code): dump the name of the iCode in the asm,
6847         * src/pic16/ralloc.c (decodeOp): removed static declaration and
6848         renamed to pic16_decodeOp,
6849         * (serialRegAssign): do not allocate a temporary register for iCode
6850         sequences that test a single bit for 1/0
6851
6852 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
6853
6854         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
6855         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
6856         access stack and frame pointers. They are initially assigned to
6857         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
6858         accessing SFRs. Updated all occurences of modification of stack or
6859         frame pointer in gen.c and pcode.c,
6860         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
6861         assigning of a literal value to pointers,
6862         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
6863         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
6864         selected
6865
6866 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
6867
6868         * doc/sdccman.lyx: update documentation about stack pragma, added
6869         some info for stack memory models
6870
6871 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6872
6873         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
6874
6875 2005-01-08 Raphael Neider <rneider AT web.de>
6876
6877         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
6878           udata sections to fix bug #1097823
6879
6880 2005-01-05 Raphael Neider <rneider AT web.de>
6881
6882         * src/pic16/gen.c (genGenericShift): added handling of differently
6883           sized left operand and result
6884
6885 2005-01-04 Raphael Neider <rneider AT web.de>
6886
6887         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
6888         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
6889           to hold the condition bit)
6890         * added new version of genCmp (old code available via #define)
6891         * added new version of genShiftLeft/genShiftRight in a generic
6892           way, now supports shifting by negative values
6893         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
6894           shiftCount (expected by genGenericShift)
6895         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
6896         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
6897           dump
6898         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
6899           is an invalid literal too...)
6900
6901 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
6902
6903         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
6904         from Raphael Neider,
6905         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
6906         for 8-bit literals. This fixes some literal operands which are sign
6907         extended to 16-bits ints when instruction needs only 8-bits.
6908
6909 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
6910
6911         * device/lib/logf.c: added mcs51 assembly version
6912         * device/lib/expf.c: added mcs51 assembly version
6913         * device/lib/_logexpf.c: new shared asm code for expf and logf
6914         * device/include/math.h: add defines for assembly math library
6915         * device/lib/Makefile.in: build new _logexpf.c
6916         * device/lib/libfloat.lib: use new _logexpf.c
6917
6918 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
6919
6920         * src/pic/device.c
6921         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
6922           device types which have less than 0x7f registers.
6923
6924 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
6925
6926         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
6927
6928 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
6929
6930         * device/lib/printf_fast.c: only build on supported arch.
6931         * device/lib/printf_tiny.c: only build on supported arch.
6932         * device/lib/printf_fast_f.c: only build if asm float lib
6933         * device/lib/_fsget1arg.c: only build if asm float lib
6934         * device/lib/_fsget2args.c: only build if asm float lib
6935         * device/lib/_fsnormalize.c: only build if asm float lib
6936         * device/lib/_fsreturnval.c: only build if asm float lib
6937         * device/lib/_fsrshift.c: only build if asm float lib
6938         * device/lib/_fsswapargs.c: only build if asm float lib
6939         * device/include/stdio.h: don't provide print_fast,
6940           print_fast_f, print_tiny prototypes if --xstack used
6941
6942 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
6943
6944         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
6945         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
6946           to the SOURCES
6947
6948 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
6949
6950         * device/lib/printf_fast_f.c: same as printf_fast, but
6951           with floating point enabled
6952         * device/lib/printf_fast.c: minor tweaks
6953         * device/include/stdio.h: add printf_fast_f
6954
6955 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
6956
6957         * src/SDCCmain.c: make --float-reent default for mcs51
6958         * device/lib/_fsadd.c: added mcs51 assembly version
6959         * device/lib/_fssub.c: added mcs51 assembly version
6960         * device/lib/_fsmul.c: added mcs51 assembly version
6961         * device/lib/_fsdiv.c: added mcs51 assembly version
6962         * device/lib/_fseq.c: added mcs51 assembly version
6963         * device/lib/_fsneq.c: added mcs51 assembly version
6964         * device/lib/_fsgt.c: added mcs51 assembly version
6965         * device/lib/_fslt.c: added mcs51 assembly version
6966         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
6967         * device/lib/Makefile.in: add _fscmp to build
6968         * device/lib/libfloat.lib: add _fscmp to build
6969
6970 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
6971
6972         * device/lib/_fs2slong.c: added mcs51 assembly version
6973         * device/lib/_fs2sint.c: added mcs51 assembly version
6974         * device/lib/_fs2schar.c: added mcs51 assembly version
6975         * device/lib/_fs2ulong.c: added mcs51 assembly version
6976         * device/lib/_fs2uint.c: added mcs51 assembly version
6977         * device/lib/_fs2uchar.c: added mcs51 assembly version
6978         * device/lib/_slong2fs.c: added mcs51 assembly version
6979         * device/lib/_sint2fs.c: added mcs51 assembly version
6980         * device/lib/_schar2fs.c: added mcs51 assembly version
6981         * device/lib/_ulong2fs.c: added mcs51 assembly version
6982         * device/lib/_uint2fs.c: added mcs51 assembly version
6983         * device/lib/_uchar2fs.c: added mcs51 assembly version
6984         * device/include/float.h: added #define to select asm vs c
6985
6986 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
6987
6988         * device/lib/printf_fast.c: improvements to float output
6989         * device/include/float.h: add defines for assembly float library
6990         * device/lib/_fsget1arg.c: receive 1 float arg
6991         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
6992         * device/lib/_fsnormalize.c: normalize a float
6993         * device/lib/_fsreturnval.c: return float, various helper routines
6994         * device/lib/_fsrshift.c: right shift a float's mantissa
6995         * device/lib/_fsswapargs.c: swap 2 floats
6996         * device/lib/Makefile.in: build these 6 new files for mcs51
6997         * device/lib/libfloat.lib: add these 6 files to the library
6998
6999 2004-12-26 Borut Razem <borut.razem AT siol.net>
7000
7001         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
7002           built by gcc 3.4.2
7003
7004 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
7005
7006         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
7007           and fully reentrant and register bank neutral.
7008         * device/lib/printf_fast.c: added float (not enabled by default),
7009           added compact/slower integer (also not enabled by default),
7010           improved size/speed of fast integer code, other minor changes
7011         * device/include/stdio.h, device/lib/Makefile.in,
7012           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
7013
7014 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
7015
7016         * src/pic16/pcode.c: declaring variables other than at the start of a
7017           block is not supported in C by VC6.
7018
7019 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
7020
7021         * applied a previous patch from Raphael Neider that wasn't included
7022         in the previous commits, which fixes infinite loops within jumptable
7023         improvements,
7024         * made some fixes that previous patches introduced
7025
7026 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
7027
7028         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
7029         that fixes an issue with AOP_PCODE asmop's offset,
7030         * (pic16_popCopyReg): update instance field too,
7031         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
7032         function of pic port,
7033         * (genCmp, genAnd, genAssign),
7034         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
7035
7036 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
7037
7038         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
7039         variables initial values to idata section,
7040         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
7041         variables in some functions. This utilizes parmBytes field of iCode
7042         structure to hold the offset of the variable in stack. (might be
7043         able to use the stack field too?)
7044         * applied patch from Raphael Neider # ### , # ###
7045         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
7046         variable initial values in idata section,
7047         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
7048         for static variables with initial value
7049         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
7050         applied fix in while loop from Raphael Neider.
7051
7052 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
7053
7054         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
7055         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
7056         * src/ds390/ralloc.c (serialRegAssign): spill bits
7057         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
7058         * support/Util/SDCCerr.c,
7059         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
7060         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
7061         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
7062
7063 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
7064
7065         * device/include/sdcc-lib.h: inserted LGPL, added includes
7066           asm/ds390/features.h and asm/mcs51/features.h
7067         * device/include/asm/default/features.h,
7068         * device/include/asm/gbz80/features.h,
7069         * device/include/asm/z80/features.h: added empty _AUTOMEM
7070           and _STATMEM
7071         * device/include/asm/ds390/features.h,
7072         * device/include/asm/mcs51/features.h: added files with defines for
7073           _AUTOMEM and _STATMEM indicating automatic and static storage class
7074         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
7075         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
7076         * src/SDCCicode.c (geniCodeCast),
7077         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
7078         * src/SDCCloop.c (loopInduction): removed unused variable lr
7079         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
7080           to convertToFcall to include char modulo (RFE 1065037), added check
7081           if left operand is unsigned and use abs of literal value
7082         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
7083           as it doesn't work after conversion from peephole.def to peephole.rul
7084         * src/mcs51/gen.c (toBoolean): added check for size,
7085           (genModOneByte): optimized code for signed char modulo a literal
7086           power of 2 (thanks to Hubert Sack),
7087           (genRRC): removed unnecessary "clr c",
7088           (genRLC): replaced "add a,acc" with cheaper "rlc a"
7089         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
7090           jump optimization,
7091           swapped rules 256.c and 256.d,
7092           extended 256.d by using new multiple checks (thanks Erik),
7093           added rules 256.e and 256.f,
7094           updated rule 261.a and 261.b to new generated code
7095         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
7096
7097 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7098
7099         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
7100           induction related bugs, including first part of bug #1074377
7101
7102 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
7103
7104         * applied patch from bug-report #1076292,
7105         * applied patches for genAnd and Goto-optimizations for Raphael
7106         Neider,
7107         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
7108         dump a less iCode information,
7109         * src/pic16/device.h (pic16_options_t): added field debgen,
7110         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
7111         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
7112         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
7113         puclic,
7114         * (various functions): added macros FENTRY and FENTRY2 to functions,
7115         to emit function prologue,
7116         * (various functions): fixed indentation,
7117         * (genNearPointerGet): fixed loading of FSR0,
7118         * (genPackBits): applied patch from Raphael Neider to fix updating
7119         of FSR0 and touching only the modified bits,
7120         * src/pic16/genarith.c (various functions): added macros FENTRY to
7121         emit function prologue in comments,
7122         * src/pic16/pcode.h: added functions debugf2, debugf3,
7123         * src/pic16/ralloc.c: partial fix for packForPush caused
7124         segmentation fault,
7125
7126 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7127
7128         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
7129           <stsp AT users.sourceforge.net> with reversed byte order
7130         * support/regression/tests/rotate.c: added (ds390 skips some tests)
7131
7132 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7133
7134         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
7135           bug #1074377
7136         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
7137         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
7138
7139 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
7140
7141         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
7142
7143 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7144
7145         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
7146           conditions,
7147           (setFromConditionArgs): friendly operand parser for peephole rules,
7148           (operandBaseName, operandsNotRelated): new peephole condition
7149           "operandsNotRelated" -- similar to "operandsNotSame", but takes
7150           architecture specific register naming into account, handles n-way
7151           comparisons, and supports quoted literals
7152         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
7153
7154 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7155
7156         * src/mcs51/peeph.def: fixed bug #1076940
7157
7158 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
7159
7160         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
7161
7162 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7163
7164         Adding support for replacing ljmps with sjmps in jumptables
7165         generated for switch statements. For now you need to set the
7166         environment variable SDCC_SJMP_JUMPTABLE to enable this.
7167         Now 4 algorithms for mcs51 jumptable generation are used:
7168         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
7169         addresses loaded pc-relative for up to 112 cases and stack-pushing
7170         target addresses loaded with offset from dptr for up to 256 cases.
7171
7172         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
7173         * src/mcs51/main.c: adapted constants for switch table generation
7174         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
7175
7176 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
7177
7178         * device/lib/printf_large.c (_print_format): fixed bug 1073386
7179         * support/regression/tests/bug1057979.c: added test for bug 1073386
7180
7181 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
7182
7183         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
7184         compilers
7185
7186 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
7187
7188         * src/pic16/device.h,
7189         * src/pic16/genarith.c,
7190         * src/pic16/glue.c,
7191         * src/pic16/main.c,
7192         * src/pic16/pcode.c: applied patches #1068154 and #1070213
7193
7194 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
7195
7196         Large cummulative patch for pic16 port.
7197         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
7198         to call when a stack overflow occurs,
7199         * (malloc.h): added CVS Id tag,
7200         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
7201         variable,
7202         * added libc directory. The current version of LibC contains string
7203         functions, ctype functions and macros and some functions of the
7204         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
7205         be extensively tested in the future. Standard disclaimer here.
7206         Library is not automatically build yet. But one can build it by
7207         invoking 'make' inside the libc directory.
7208         * added ADC library under libio. Preliminary version yet.
7209
7210         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
7211         * src/pic16/gen.c (aopForRemat): asmop size is filled by
7212         aopForRemat() now and not by pic16_aopOp(),
7213         * (pic16_popGetTempReg): removed warning messgae when allocating
7214         temporary registers, its a buggy feature and will be removed,
7215         * (pic16_popGet): set register instance field in AOP_CRY,
7216         * (pic16_outBitC): fixed for results in size greater than 1,
7217         * (genUminusFloat): fixed for pic16, ported code from mcs51,
7218         * (pic16_storeForReturn): optimized return of 0,
7219         * (genCmp): experimental code for new genCmp which uses PIC18's
7220         special compare&skip instructions. Initial tests fail some times
7221         with variables grater than 1 byte in size, so new code is disabled,
7222         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
7223         a single bit,
7224         * (genCast): began a fix to optimize the casting of a bit to another
7225         bit, now assigning a bitfield to another bitfield will fail, sorry,
7226         * src/pic16/main.c: disabled the use of lr-support feature,
7227         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
7228         * added some function prototypes, added function _debugf prototype,
7229         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
7230         bits with offset (case PO_GPR_BIT),
7231         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
7232         command line,
7233         * (isBankInstruction): modified to return 0 for no banking instruction,
7234         and 1 for banking instruction,
7235         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
7236         caused stop processing pCodes after a inline assembly block,
7237         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
7238         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
7239         registers when it shouldn't,
7240         * src/pic16/ralloc.c (allocReg): add preliminary support for
7241         supporting a limited set of temporary registers,
7242
7243 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7244
7245         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
7246           genDataPointerSet): ensure assignments always copy in MSB to LSB
7247           order,
7248           (loadRegFromAop): recognize CLRH optimization,
7249           (genFunction): optimize RECEIVE iCodes in reentrant functions
7250
7251 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7252
7253         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
7254           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
7255           selected.
7256         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
7257         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
7258           contiguous with data
7259
7260 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7261
7262         * device/lib/_gptrget.c (_gptrget),
7263         * device/lib/_gptrgetc.c (_gptrgetc),
7264         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
7265           instead of sjmp to ret
7266         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
7267           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
7268
7269 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
7270
7271         * .version: bumped version to 2.4.7
7272         * device/lib/_gptrget.c (_gptrget): is now _naked
7273         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
7274         * device/lib/_gptrput.c (_gptrput): is now _naked
7275         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
7276           (createFunction): fixed xstack
7277         * src/SDCCglue.c (emitMaps): set allocation required for bit area
7278         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
7279           or bit either,
7280           (geniCodeCritical): store original interrupt state in an iTemp bit
7281           var unless stack-auto
7282         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
7283         * src/SDCCmain.c (setIncludePath): added include/target to search path
7284         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
7285         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
7286           prototype,
7287           (processFuncArgs): put bit vars in bit area
7288         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
7289           unsaveRBank): fixed xstack,
7290           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
7291           (genFunction, genEndFunction): fixed xstack,
7292           (genAssign): optimization don't walk backwards through mem
7293         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
7294         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
7295         * support/regression/Makefile: also make library (for stack-auto) when
7296           making "all" and added "test-mcs51-xstack-auto"
7297         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
7298         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
7299         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
7300         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
7301         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
7302           make-library by MAKE_LIBRARY
7303         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
7304           regression tests for xstack
7305         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
7306         * support/regression/tests/critical.c: test for critical on mcs51
7307
7308 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7309
7310         * support/regression/ports/ucz80/spec.mk: use include and lib files from
7311           built version of sdcc instead of installed version
7312
7313 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
7314
7315         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
7316         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
7317           vprintf.c now
7318         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
7319         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
7320           WARNING: remove device/lib/build/z80/printf.o by hand when
7321           updating from previous build!
7322         * device/lib/z80/printf.c: updated comment
7323         * support/regression/tests/bug1057979.c: test all ports now
7324         * support/regression/tests/bug1065458.c: file added
7325
7326 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7327
7328         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
7329           *_start and *_end symbols for static functions
7330
7331 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
7332
7333         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
7334           and search crt0.o in all library paths,
7335           (setIncludePath): proper handling of --nostdinc,
7336           (setLibPath): proper handling of --nostdlib
7337         * support/regression/Makefile,
7338         * support/regression/ports/ds390/spec.mk,
7339         * support/regression/ports/gbz80/spec.mk,
7340         * support/regression/ports/hc08/spec.mk,
7341         * support/regression/ports/mcs51/spec.mk,
7342         * support/regression/ports/mcs51-large/spec.mk,
7343         * support/regression/ports/mcs51-stack-auto/spec.mk,
7344         * support/regression/ports/z80/spec.mk: use include and lib files from
7345           built version of sdcc instead of installed version
7346         * doc/sdccman.lyx: fixed typo in --nostdinc
7347
7348 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
7349
7350         * src/pic/pcode.c,
7351         * src/pic/device.c,
7352         * src/pic/ralloc.c,
7353         * src/pic/gen.c : added support to generate code for struct bit fields.
7354
7355 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
7356
7357         * as/xa51/xa_version.h,
7358         * device/include/errno.h,
7359         * device/include/regc515c.h,
7360         * device/lib/_itoa.c,
7361         * device/lib/_ltoa.c,
7362         * device/lib/ser_ir_cts_rts.c,
7363         * sim/ucsim/xa.src/glob.cc,
7364         * sim/ucsim/xa.src/inst_gen.cc,
7365         * sim/ucsim/xa.src/xa_bit.cc,
7366         * sim/ucsim/xa.src/xa_sfr.cc,
7367         * sim/ucsim/z80.src/inst_dd.cc,
7368         * sim/ucsim/z80.src/inst_fdcb.cc,
7369         * support/scripts/keil2sdcc.pl,
7370         * src/pic16/pic16.dsp,
7371         * src/pic16/pic16a.dsp: corrected cvs line endings
7372         * device/lib/printf_large.c: fixed bug 1057979
7373         * src/pic16/gen.c: fixed non-C standard code
7374         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
7375         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
7376         * support/regression/ports/mcs51/support.c: reload T1 asap
7377         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
7378           pdata use and clear idata startup behaviour
7379         * support/regression/tests/bug1057979.c: added
7380
7381 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
7382
7383         * device/examples/ds390/ow390/ad26.h,
7384         * device/examples/ds390/ow390/cnt1d.h,
7385         * device/examples/ds390/ow390/crcutil.c,
7386         * device/examples/ds390/ow390/ownet.h,
7387         * device/examples/ds390/ow390/owsesu.c,
7388         * device/examples/ds390/ow390/swt12.h,
7389         * device/examples/ds390/ow390/swtoper.c,
7390         * device/examples/ds390/ow390/temp10.h,
7391         * device/examples/ds390/ow390/thermodl.c,
7392         * device/examples/ds390/tinitalk/tinitalk.dsp,
7393         * device/examples/ds390/tinitalk/tinitalk.dsw,
7394         * device/examples/mcs51/clock/hw.h,
7395         * device/examples/mcs51/simple2/go.bat,
7396         * device/examples/serialcomm/windows/serial.h,
7397         * device/examples/xa51/dummy.c,
7398         * device/examples/xa51/hello.c,
7399         * device/include/80c51xa.h,
7400         * device/include/at89x051.h: corrected cvs line endings
7401
7402 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
7403
7404         * src/pic16/main.c (options): added command line --gstack, to trace
7405         stack over/under flows,
7406         * added pragma 'wparam' to allow passing first byte of function
7407         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
7408         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
7409         call to __gstack_test function and sets up the symbol as extern,
7410         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
7411         * popaop): added call to pic16_testStackOverflow,
7412         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
7413         wparamList list,
7414         * (genCall, genPcall): now all parameters are passed via stack
7415         except in functions that are pass to wparam pragma in which WREG is
7416         used too,
7417         * (genPcall): REENTRANT flag is checked to see if variable prototype
7418         contains reentrant keyword, don't call a non-reentrant function, via
7419         a reentrant function pointer or vice versa, functions are never
7420         passed via WREG,
7421         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
7422         D.Winkler,
7423         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
7424         SIGSEGV when accessing a NULL register stucture,
7425         * (pic16_printGPointerType): modified to handle UPPER modifier for
7426         function initializers, changed prototype of function to simpler one,
7427         * (pic16_printIvalFuncPtr): check to see if function is already
7428         added in externs list,
7429         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
7430         optimized a move from W to SFR with a move to the same register
7431         later after a CALL,
7432         * device/lib/pic16/debug: NEW directory, contains debug features
7433         which are enabled when linking with libdebug.lib, currently command
7434         line option --gstack enables stack pointer tracing for over/under
7435         flow, corresponding sources are in debug/gstack
7436
7437 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
7438
7439         * doc/sdccman.lyx: updated SDCC version,
7440         * (PIC16 port): update list of command line options,
7441         * src/pic16/device.h (structure pic16_options_t): added field gstack
7442         to enable stack overflow tracing on push/pops,
7443         * src/pic16/device.c (statistics structure): added statistics
7444         structure,
7445         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
7446         pic16_dump_int_registers): increase statistics counters for each
7447         * variable which is encountered
7448         * (pic16_dump_usection): emit each .udata variable to its own udata
7449         section,
7450         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
7451         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
7452         parameters via stack, otherwise use old scheme,
7453         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
7454         assembler output file,
7455         * src/pic16/main.c: added command line options --gstack to enable
7456         push/pop tracing for stack overflow,
7457         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
7458         instructions): added size of each instruction,
7459         * (pic16_countInstruction): estimate size of instructions in
7460         the_pFile list, inline assembly blocks are not counted,
7461         * (pic16_FixRegisterBanking): trace previous register usage, when
7462         banksel optimizations is greater than 0, don't emit a redudant
7463         banksel directive,
7464
7465 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
7466
7467         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
7468         * src/pic16/ralloc.c : applied same fix for pic16.
7469         * src/pic/gen.c : tidied it up a little.
7470
7471 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7472
7473         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
7474         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
7475
7476 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7477
7478         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
7479
7480 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7481
7482         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
7483         non-reentrant function __modsint in the interrupt function (thus
7484         corrupting math operations during serial I/O)
7485         * device/lib/ser_ir.c: as above, changed buffersize
7486         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
7487         256.c,d for zeroing
7488         * doc/Makefile: added option -t for rsync
7489
7490 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7491
7492         * src/SDCCast.h (struct ast),
7493         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
7494
7495 2004-10-20 Borut Razem <borut.razem AT siol.net>
7496
7497         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
7498         package
7499
7500 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
7501
7502         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
7503         makefile targets,
7504         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
7505         support functions to replace long sequences of MOVFF's from access
7506         bank registers to stack and vice versa,
7507         * src/pic16/device.h: added new field opt_flags, where optimization
7508         flags can be set to enable certain features,
7509         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
7510         * pBlock, (genFunction, genEndFunction): surroung loop for
7511         saving/loading used registers in stack with PC_INFO pCodes,
7512         INF_LREGS. Code in between can then be optimized by pCode optimizer
7513         to support function calls,
7514         * (genDataPointerSet): fixed bug which loaded float fields in
7515         structures with corrupt data,
7516         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
7517         in a standard way debug info on stderr. Feature used for developing
7518         and debugging only,
7519         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
7520         obsolete chunks of code,
7521         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
7522         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
7523         * pic16/src/pcode.c (pic16_newpCodeInfo,
7524         * (pic16_newpCodeOpLocalRegs),
7525         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
7526         feature,
7527         * (pic16_pCodeConstString): printing of the initial value of a
7528         symbol as a comment is inhibited since parsing was already done by
7529         copyStr and output is corrupt,
7530         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
7531
7532 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7533
7534         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
7535
7536 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
7537
7538         * as/mcs51/lkarea.c: removed old K&R style,
7539           (lnksect): changed check on boundary error,
7540           (lnksect2): changed check on boundary error,
7541           (lnksect2): extend XSTK to end of page if size = 1
7542         * as/mcs51/lkmain.c: removed old K&R style,
7543           (Areas51): create l_IRAM symbol
7544         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
7545         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
7546           model-mcs51-stack-auto, added model-mcs51-xstack-auto
7547         * device/lib/_mullong.c: added version to be compiled with xstack
7548         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
7549         * device/lib/mcs51/crtxclear.asm: clear pdata as well
7550         * device/lib/mcs51/crtxstack.asm: fixed comment
7551         * src/SDCCglue.c: maxInterrupts defaults to 0,
7552           (emitMaps): added pdata,
7553           (createInterruptVect): (re)moved default,
7554           (glue): added pdata,
7555           (glue): moved __start__xstack to XSTK with default size 1
7556         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
7557           and options.float_rent when options.stackAuto is set,
7558           (linkEdit): only write XDATA_NAME if provided on command line
7559         * src/SDCCmem.h,
7560         * src/SDCCmem.c: added pdata
7561         * src/port.h: added pdata_name to PORT
7562         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
7563           (saveRegisters, unsaveRegisters): removed usage of B,
7564           (genMinus): fixed accumulator clash,
7565           (genJumpTab): added comment, this needs another look
7566         * src/mcs51/gen.c: added check for "B in use" paranoia,
7567           added pushB() and popB()
7568         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
7569           chance
7570         * src/avr/main.c,
7571         * src/ds390/main.c,
7572         * src/hc08/main.c,
7573         * src/mcs51/main.c,
7574         * src/pic/main.c,
7575         * src/pic16/main.c,
7576         * src/xa51/main.c,
7577         * src/z80/main.c: (reset_regparms) made void parameter explicit and
7578           added PSEG (PAG,XDATA) or NULL to port specifier
7579         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
7580         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
7581           (_mcs51_genInitStartup): removed __start__xstack equ,
7582           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
7583         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
7584         * src/z80/gen.c (_rleAppend): fixed warnings
7585         * support/regression/tests/zeropad.c: added pdata test
7586         * .version: bumped to 2.4.6
7587
7588 2004-10-17 Borut Razem <borut.razem AT siol.net>
7589
7590         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
7591         as a part of nightly build
7592
7593 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
7594
7595         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
7596         WREG holds the first byte function parameters,
7597         * (aopForSym): take special case for symbols which are in FARSPACE
7598         but in CODESPACE too,
7599         * (assignResultValue): modified to take into account _G.useWreg,
7600         * (genCall): don't use wreg for parameter passing when function is
7601         declared as reentrant, too, added optimization INCF to stack
7602         pointer when stack parameter count is 1,
7603         * (genFunction, genEndFunction): refurnished and fixed to not using
7604         wreg for passing parameters when function has varargs or is
7605         reentrant, fixed bug with symbol name compare for generating
7606         functions in absolute address,
7607         * (pic16_storeForReturn): refurnished,
7608         * (genCmp): began writing a new version of the function, not ready
7609         yet, therefore it is disabled,
7610         * (genAssign): do not read code memory when assigning a function to
7611         a pointer function,
7612         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
7613         array of characters, not pointer,
7614         * (pic16initialComments): in debug mode emit an .ident directive for
7615         the assembler,
7616         * (_process_pragma): emit a new warning type (internal to pic16)
7617         when setting stack to default length, emit a similar warning when
7618         placing a function at absolute address and address is not word aligned
7619         * (_pic16_parseOptions): added 'return TRUE' statement,
7620         * (_pic16_linkEdit): if compiling a source, then add the source's
7621         file object, first in the list of objects to link,
7622
7623 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
7624
7625         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
7626         * src/pic/main.c : removed VC warning.
7627         * src/pic/gen.c : changed comment.
7628
7629 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
7630
7631         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
7632         reference to a deprecated symbol _GPTRREG was causing failure to
7633         link. Thanks G. M. Gallant for the info.
7634
7635 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
7636
7637         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
7638         comments for Bugs item #954788.
7639
7640 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
7641
7642         * src/pic16/device.c (pic16_dump_gsection,
7643         * pic16_groupRegistersInSection): handle symbols declared to be in
7644         access bank differently,
7645         * src/pic16/gen.c (struct _G): added field resDirect,
7646         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
7647         send values read from stack directly to result and don't allocate
7648         temporary values,
7649         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
7650         same registers,
7651         * (pic16_sameRegsOfs): NEW,
7652         * (freeAsmop): if _G.resDirect is set then do not mark registers as
7653         free because they were not allocated from temporary pool,
7654         * pic16_popRegFromString): workaround to fix a problem with
7655         allocating variables twice or never,
7656         * (genGenPointerGet): using PRODL instead of FSR0H,
7657         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
7658         instead of FSR0H,
7659         * (genAssign): take advantage of the _G.resDirect flag,
7660         * (genCast): around line 11844, use mov2f instead of directly
7661         MOVFF'ing between operands to account for literal values,
7662         * src/pic16/genutils.c: some new debug functions for gpsim have been
7663         added,
7664         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
7665         float with integer part only,
7666         * src/pic16/main.c (_process_pragma): handle pragma udata access to
7667         place variables in access bank
7668         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
7669         updated sources to reflect recent changes in gen.c
7670
7671 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
7672
7673         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
7674         sources that searched for headers in installation path, now the
7675         device/include/pic16 is used,
7676         * src/pic16/glue.c (pic16glue),
7677         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
7678         .line directives if not in debug mode, this suppresses assembler's
7679         warnings for ignored directives
7680
7681 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
7682
7683         * src/port.h: made reset_regparms prototype void parameter explicit.
7684         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
7685         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
7686         * doc/sdccman.lyx: documented warning disabling and how to use
7687           printf_large to make it print floats.
7688         * device/include/stdbool.h: NEW
7689         * device/lib/_atof.c,
7690         * device/lib/_divuint.c,
7691         * device/lib/_divulong.c,
7692         * device/lib/expf.c,
7693         * device/lib/printf_large.c,
7694         * device/lib/sincosf.c,
7695         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
7696         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
7697           a completely reentrant lib.
7698
7699 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
7700
7701         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
7702         * device/include/pic16/stdio.h: fixed bug with colon
7703
7704 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
7705
7706         * device/include/pic16/stdio.h,
7707         * device/include/pic16/stdlib.h,
7708         * device/include/pic16/math.h: NEW
7709         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
7710         declared as _naked to reduce overhead
7711         * device/lib/Makefile.in (target port-specific-objects-pic16):
7712         changed * to *.* so to ignore the CVS directory,
7713         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
7714         stacked variables back in stack,
7715         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
7716         corruption
7717
7718 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
7719
7720         * .version: bumped version number to 2.4.5
7721         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
7722         * support/Util/SDCCerr.c (messages structure): added entry for
7723         W_POSSBUG2
7724
7725         Large cumulative patch for pic16 port and libraries.
7726         * device/include/pic16/sdcc-lib.h,
7727         * device/include/pic16/stdarg.h,
7728         * device/include/asm/pic16/features.h,
7729         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
7730         * device/include/pic16/float.h: changes reentrant keyword with
7731         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
7732         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
7733         updated target build-libraries to include objects from gptr,
7734         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
7735         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
7736         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
7737         all function headings,
7738         * src/SDCCmain.c: added global parameter userIncDirsSet,
7739         * (parseCmdLine): when option -I is encountered add directory to
7740         userIncDirsSet too,
7741         * src/version.awk: added space between control and long,
7742         * src/pic16/NOTES: added some notes for the port,
7743         * src/pic16/gen.c: added prototype for mov2fp function,
7744         * (fReturnpic16[]): properly named return value registers,
7745         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
7746         * (aopForSym): added code to handle symbols with onStack flag set,
7747         symbols onStack are allocated PTRSIZE bytes,
7748         * (aopFreeAsmop): handles special case where asmops are stack objects,
7749         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
7750         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
7751         added argument lock to trace flaws in allocating temporary registers
7752         when developing port,
7753         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
7754         * (pic16_popRegFromString): reenabled allocating a direct register
7755         from string,
7756         * (assignResultValue): various beautifications,
7757         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
7758         referenced function argument,
7759         * (genIpush): reenabled to allow stacked arguments, handles only
7760         ic->parmPush iCodes,
7761         * (genCall, genPcall): major changes to allow for variable argument
7762         functions, fixed a bug with falsely restoring stack pointer after
7763         returning from call,
7764         * (genFunction): pending code for critical function,
7765         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
7766         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
7767         * (genNearPointerGet): fixed bug with indirect reading, was always
7768         reading from INDF0
7769         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
7770         pointers,
7771         * (genAddrOf): rewrote code to take address of a stacked function parameter
7772         * (genCast): fixed casting to generic pointer type,
7773         * src/pic16/gen.h: added AOP_STA,
7774         * (struct asmop): added field stk,
7775         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
7776         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
7777         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
7778         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
7779         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
7780         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
7781         generic pointers,
7782         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
7783         and library paths,
7784         * (pic16_port structure): generic pointer size is set to 3,
7785         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
7786         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
7787         compiler warning,
7788         * src/pic16/ralloc.c (allocReg): prevent allocating register when
7789         operand is an iTemp,
7790
7791 2004-09-24 Martin Helmling <mh AT octo-soft.de>
7792
7793         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
7794         * debugger/mcs51/simi.c: addapt new syntax of s51
7795
7796 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
7797
7798         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
7799         * src/pic16/pcode.c: commented out some calls to free() in order to
7800         fix bug #989576,
7801
7802 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7803
7804         * src/SDCCicode.h,
7805         * src/SDCCicode.c (isiCodeInFunctionCall),
7806         * src/avr/ralloc.c (selectSpil),
7807         * src/pic/ralloc.c (selectSpil),
7808         * src/pic16/ralloc.c (selectSpil),
7809         * src/ds390/ralloc.c (selectSpil),
7810         * src/hc08/ralloc.c (selectSpil),
7811         * src/xa51/ralloc.c (selectSpil),
7812         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
7813         stack in the middle of a function call sequence (fixes bug #1020268)
7814         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
7815         costs associated with the minimum switch case.
7816
7817 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7818
7819         * src/SDCC.lex: fixed bug #1030549
7820
7821 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7822
7823         * src/SDCCcse.h (struct cseDef),
7824         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
7825         over a function call if the CSE is derived from a symbol whose
7826         address has been taken (fixes bug #1029883)
7827         * support/regression/tests/bug-1029883: a new regression test for
7828         this bug
7829
7830 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7831
7832         * src/hc08/gen.c (emitinline): fixed bug #1029778
7833         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
7834         to a cast object is no longer a syntax error ("fixes" bug #1030006,
7835         and starts toward RFE #905167)
7836
7837 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
7838
7839         * src/pic16/gen.c (mov2f): New function to move an operand to
7840         another without considering if it is a literal or a register,
7841         * (pic16_sameRegs): don't check if they are both AOP_REG,
7842         * (AccRsh): removed andmask=0 lines,
7843         * (genLeftShift): duplicated to be improved in future versions,
7844         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
7845         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
7846         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
7847         * (pic16initMnemonics): added initialization for POC_INFSNZW,
7848         * (insertBankSwitch): fixed inserting banksel directives algorithm
7849         for instructions that follow a skip instruction, this fixes a report
7850         for broken subtraction code generation,
7851         * src/pic16/ralloc.c (deassignLRs): do not free register if current
7852         iCode is a left op, just in case result and right share the same
7853         registers
7854
7855 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7856
7857         * src/hc08/main.c,
7858         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
7859         preservation of HX
7860         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
7861         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
7862         on 2004-09-12; it was buggy
7863
7864 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
7865
7866         * src/SDCCsymt.h: removed RESULT_CHECK
7867         * src/SDCCast.c,
7868         * src/SDCCglue.c,
7869         * src/SDCCval.c,
7870         * src/pic/glue.c,
7871         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
7872
7873 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
7874
7875         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
7876         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
7877         configuration values no more rejected by compiler, they are assigned
7878         to configuration registers with a warning message instead,
7879         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
7880         the for-loop so last conf register is emitted too,
7881         * (_pic16_initPaths): link library libsdcc.lib by default,
7882         * (_hasNativeMulFor): modified test for multiplication according to
7883         Raphael Neider's remarks. Integer multiplication is also done with
7884         support functions,
7885         * device/include/pic16/pic18fregs.h: corrected type error in while
7886         testing and including 18f6720 header file
7887
7888 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
7889
7890         * src/pic16/device.h (pic16_options): removed field use_crt,
7891         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
7892         until an optimization to handle single bits is added,
7893         * (pic16_loadFSR0): moved before genUnpackBits,
7894         * (genAnd): some white lines removed,
7895         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
7896         leave_reset flags in pic16_options when using crt modules,
7897
7898 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
7899
7900         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
7901           for bugs 898889 & 979599. Also used some safer print instructions.
7902
7903 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
7904
7905         * src/pic16/device.h (pic16_options_t): added field use_crt,
7906         crt_name, no_crt,
7907         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
7908         catch a probable future bug,
7909         * src/pic16/gen.c: aopIdx function commented out,
7910         * (genAssign): commented out old code which used aopIdx,
7911         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
7912         code, added if conditionals to take into account the --use-crt
7913         command line options,
7914         * src/pic16/main.c (pic16_optionsTable): added new command line
7915         options, --use-crt= and --no-crt,
7916         * (_pic16_linkEdit): now the proper crt object is added in the
7917         linker command line except than when --no-crt is specified,
7918         * src/pic16/pcode.c,
7919         * src/pic16/pcode.h: added some structures and functions for a new
7920         optimization scheme to compansate for instruction overhead between
7921         same iCodes, this scheme is currently under development and is not
7922         working in any way,
7923         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
7924         to && operator,
7925         * device/lib/pic16/startup/crt0i.c,
7926         * device/lib/pic16/startup/crt0iz.c: added global char variable
7927         __uflags to force the generation of an idata section
7928
7929 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
7930
7931         * doc/Makefile,
7932         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
7933         * doc/sdccman.lyx: updated sdcc version to 2.4.4
7934
7935 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7936
7937         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
7938         Frieder) and clarified the default code optimization mode
7939
7940 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7941
7942         * src/SDCC.lex (doPragma, process_pragma),
7943         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
7944         "opt_code_size", and "opt_code_balanced"
7945         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
7946         regrouped options by category, added support for category headers
7947         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
7948         and "--opt-code-size"
7949         * doc/sdccman.lyx: documented these new options and pragmas
7950         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
7951         preference into account
7952
7953 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7954
7955         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
7956           geniCodePreDec): Fixed bug 904237 by generating a warning
7957         * src/SDCCerr.h,
7958         * src/SDCCerr.c: added warning W_SIZEOF_VOID
7959
7960 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
7961
7962         * src/pic/device.c : When no max ram set validate full memory range.
7963         * src/pic/pcode.c,
7964         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
7965
7966 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7967
7968         * device/lib/_gptrget.c,
7969         * device/lib/_gptrput.c: updated comment
7970         * device/lib/calloc.c,
7971         * device/lib/free.c,
7972         * device/lib/malloc.c,
7973         * device/lib/realloc.c: added LGPL, made them reentrant-safe
7974         * src/SDCCcse.c (cseBBlock),
7975         * src/SDCCicode.c (printOperand, geniCodeArray),
7976         * src/SDCCicode.h (struct operand): fixed bug 868103
7977         * support/regression/tests/bug-868103.c: added
7978         * src/SDCCast.c (searchLitOp),
7979         * src/SDCCcse.h (struct cseDef),
7980         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
7981         * src/SDCCicode.h (struct operand),
7982         * src/SDCCsymt.h (struct sym_link),
7983         * src/avr/gen.c (hasInc),
7984         * src/ds390/gen.c (hasInc),
7985         * src/hc08/gen.c (genPlusIncr, hasInc),
7986         * src/mcs51/gen.c (hasInc),
7987         * src/pic16/glue.c (pic16_printIvalChar),
7988         * src/pic16/ralloc.c (regWithIdx),
7989         * src/xa51/gen.c (hasInc) : removed warnings
7990         * src/SDCCast.c (createBlock): added comment ???
7991         * src/hc08/ralloc.c: updated comments
7992
7993 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7994
7995         * doc/sdccman.lyx: updated section on switch statements, added
7996         section about semaphore locking
7997         * doc/Makefile: added option -info for latex2html
7998         * device/lib/_gptrget.c,
7999         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
8000
8001 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
8002
8003         * src/pic/device.h,
8004         * src/pic/device.c,
8005         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
8006          maxram is less than 0x100.
8007
8008 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
8009
8010         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
8011
8012 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8013
8014         * src/port.h,
8015         * src/mcs51/main.c,
8016         * src/ds390/main.c,
8017         * src/z80/main.c,
8018         * src/hc08/main.c,
8019         * src/pic/main.c,
8020         * src/pic16/main.c,
8021         * src/avr/main.c,
8022         * src/xa51/main.c
8023         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
8024         a jump table is the best form for a switch statement, including
8025         automatic insertion of missing cases to make the case range
8026         continuous. Developed in collaboration with Frieder Ferlemann.
8027
8028 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8029
8030         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
8031         accumulator result if it needs sign extension
8032
8033 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
8034
8035         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
8036
8037 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
8038
8039         * device/lib/gbz80/printf.c,
8040         * device/lib/z80/printf.c: removed define for NULL
8041
8042 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
8043
8044         * as/xa51/xa_link.c,
8045         * device/examples/ds390/ow390/ad26.c,
8046         * device/examples/ds390/ow390/cnt1d.c,
8047         * device/examples/ds390/ow390/counter.c,
8048         * device/examples/ds390/ow390/ds2480.h,
8049         * device/examples/ds390/ow390/ds2480ut.c,
8050         * device/examples/ds390/ow390/findtype.c,
8051         * device/examples/ds390/ow390/gethumd.c,
8052         * device/examples/ds390/ow390/owllu.c,
8053         * device/examples/ds390/ow390/ownetu.c,
8054         * device/examples/ds390/ow390/swt12.c,
8055         * device/examples/ds390/ow390/swtloop.c,
8056         * device/examples/ds390/ow390/temp.c,
8057         * device/examples/ds390/ow390/temp10.c,
8058         * device/examples/ds390/ow390/thermo21.c,
8059         * device/examples/ds390/ow390/tinilnk.c,
8060         * device/examples/ds390/ow390/tstfind.c,
8061         * device/examples/serialcomm/windows/serial.cpp,
8062         * device/examples/serialcomm/windows/test_serialcomm.cpp,
8063         * device/include/reg51.h: fixed line endings for cvs
8064
8065 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8066
8067         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
8068         packRegsForAccUse, packRegisters): new accumulator register
8069         packing algorithm
8070         * support/regression/ports/hc08/support.c (_putchar): suppress
8071         warning of unused variable
8072         * src/SDCCicode.c: added SWAP entry to codeTable
8073
8074 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
8075
8076         * device/lib/sprintf.c: forgot to add this file before previous commit
8077
8078 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
8079
8080         * src/pic16/gen.c (genPackBits): added operand right in function
8081         parameters, load result directly if p_type is POINTER (that is
8082         called by genNearPointerSet)
8083         * (genUnPackBits): added operand left in function parameters,
8084         * (genNearPointerGet, genNearPointerSet): prevent the loading of
8085         FSR0 if accessing bitfields,
8086
8087 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
8088
8089         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
8090           _print_format; updated printf, sprintf, vsprintf
8091         * device/include/asm/default/features.h: corrected comment/define
8092         * device/lib/Makefile.in: added sprintf.c
8093         * device/lib/libsdcc.lib: added sprintf module
8094         * device/lib/printf_large.c,
8095         * device/lib/vprintf.c,
8096         * device/lib/sprintf.c: totally refactored printf_large and vprintf
8097           into these 3 files
8098         * support/regression/Makefile: changed ALL_PORTS into a usefull default
8099         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
8100         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
8101           hc08 test
8102         * support/regression/tests/zeropad.c: define idata as data for hc08
8103
8104 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8105
8106         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
8107         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
8108         labels are referenced at least once (even if a reference is not found)
8109         * src/hc08/gen.c (emitcode): set isComment flag for comments
8110         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
8111         loads), rules 6a..6b (optimize jumps to return)
8112
8113 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8114
8115         * device/lib/acosf.c (acosf),
8116         * device/lib/asinf.c (asinf),
8117         * device/lib/atanf.c (atanf),
8118         * device/lib/ceilf.c (ceilf),
8119         * device/lib/cosf.c (cosf),
8120         * device/lib/coshf.c (coshf),
8121         * device/lib/cotf.c (cotf),
8122         * device/lib/fabsf.c (fabsf),
8123         * device/lib/floorf.c (floorf),
8124         * device/lib/log10f.c (log10f),
8125         * device/lib/logf.c (logf),
8126         * device/lib/sinf.c (sinf),
8127         * device/lib/sinhf.c (sinhf),
8128         * device/lib/sqrtf.c (sqrtf),
8129         * device/lib/tanf.c (tanf),
8130         * device/lib/tanhf.c (tanhf),
8131         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
8132         replaced all instances of "reentrant" in the library functions
8133         defined in math.h with this macro.
8134         * support/regression/tests/float_trans.c: reenabled test for hc08
8135
8136 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
8137
8138         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
8139         erroneously deleted
8140
8141 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8142
8143         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
8144         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
8145         multi-byte volatile operands are used
8146         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
8147         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
8148         initialization to area GSINIT0 so that it would always precede
8149         any static initializers in GSINIT
8150         * support/regression/tests/zeropad.c: fixed idata define for hc08
8151         * support/regression/tests/bug-927659.c,
8152         * support/regression/tests/float_trans.c: disabled tests for hc08
8153         pending missing library routines
8154         * .version: increased version number to 2.4.4 - hc08 port now passes
8155         regression tests
8156
8157
8158 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
8159
8160         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
8161         * Makefile.common.in,
8162         * as/Makefile,
8163         * as/hc08/Makefile.in,
8164         * as/mcs51/Makefile.in,
8165         * as/z80/Makefile.in,
8166         * debugger/mcs51/Makefile.in,
8167         * device/include/Makefile.in,
8168         * device/lib/Makefile.in,
8169         * doc/Makefile,
8170         * link/Makefile,
8171         * link/z80/Makefile.in,
8172         * packihx/Makefile.in,
8173         * sim/ucsim/main_in.mk,
8174         * sim/ucsim/avr.src/Makefile.in,
8175         * sim/ucsim/doc/Makefile.in,
8176         * sim/ucsim/gui.src/serio.src/Makefile.in,
8177         * sim/ucsim/hc08.src/Makefile.in,
8178         * sim/ucsim/s51.src/Makefile.in,
8179         * sim/ucsim/xa.src/Makefile.in,
8180         * sim/ucsim/z80.src/Makefile.in,
8181         * src/Makefile.in,
8182         * support/cpp2/Makefile.in,
8183         * support/librarian/Makefile,
8184         * support/makebin/Makefile: added DESTDIR to the install path proposed
8185         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
8186         * doc/sdccman.lyx: added DESTDIR documentation
8187
8188 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
8189
8190         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
8191         instruction for interrupt handlers, use fast returns when returning
8192         from high priority interrupts
8193
8194 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8195
8196         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
8197         code generation
8198         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
8199         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
8200         bugs, ported much of Bernhard's code from mcs51
8201         * src/mcs51/gen.c (genSend),
8202         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
8203         than one when calling a reentrant function
8204         * device/lib/_mullong.c: defined an alternate struct layout for big
8205         endian ports (hc08)
8206
8207 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8208
8209         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
8210         test
8211
8212 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8213
8214         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
8215         are sane and complete before asking the port its prefered parameter
8216         passing method (fixes bug #1017633)
8217         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
8218         and _ret3
8219
8220 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8221
8222         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
8223         problem in bitfields >= 8 bits.
8224
8225 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
8226
8227         * src/SDCCsymt.c: undid changes that were not meant to be committed
8228
8229 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
8230
8231         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
8232
8233 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
8234
8235         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
8236           copied and wrong bit got inverted
8237
8238 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8239
8240         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
8241         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
8242         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
8243         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
8244         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
8245         assignments to bitfields at known addresses
8246         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
8247         reads from bitfields at known addresses
8248         * src/hc08/ralloc.c (packRegisters),
8249         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
8250         genhc08Code): optimize pointer get values used as conditionals
8251         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
8252         and branch
8253
8254 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8255
8256         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
8257         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
8258         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
8259         as conditionals
8260
8261 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8262
8263         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
8264
8265 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8266
8267         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
8268         related problems
8269
8270 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
8271
8272         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
8273
8274 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8275
8276         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
8277         mcs51 port
8278
8279 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
8280
8281         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
8282
8283 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8284
8285         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
8286         cases use more compact code.
8287
8288 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
8289
8290         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
8291
8292 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8293
8294         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
8295
8296 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8297
8298         * src/SDCCsymt.h,
8299         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
8300         parameter of changePointer() from symbol* to sym_link*
8301         * src/SDCCast.c (decorateType): call changePointer() for CAST op
8302         * src/SDCCsymt.c (compareType): void* type is castable to other
8303         pointers, but not necesarily an exact match.
8304         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
8305         is no longer blindly treated as an exact match.
8306         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
8307
8308 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
8309
8310         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
8311
8312 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
8313
8314         * src/pic/gen.c,
8315         * src/pic/pcode.c,
8316         * src/pic/ralloc.h,
8317         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
8318
8319 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
8320
8321         * src/pic/device.c,
8322         * src/pic/device.h,
8323         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
8324
8325 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8326
8327         * src/mcs51/gen.c (emitcode): fixed bug #992819
8328
8329 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
8330
8331         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
8332           there's no need to make it worse
8333
8334 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8335
8336         * src/mcs51/ralloc.c (deassignLR),
8337         * src/ds390/ralloc.c (deassignLR),
8338         * src/hc08/ralloc.c (deassignLR),
8339         * src/z80/ralloc.c (deassignLR),
8340         * src/pic/ralloc.c (deassignLR),
8341         * src/pic16/ralloc.c (deassignLR),
8342         * src/avr/ralloc.c (deassignLR),
8343         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
8344         rlivePoint): fixed another part of bug #971834
8345
8346 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8347
8348         * src/z80/main.c: enabled "critical" keyword
8349         * src/z80/mappings.i,
8350         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
8351         functions (fixes bug #979646)
8352         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
8353
8354 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8355
8356         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
8357           such as c:\mydir.
8358
8359 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
8360
8361         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
8362           doesn't disable too much optimizations
8363
8364 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
8365
8366         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
8367
8368 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
8369
8370         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
8371
8372 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
8373
8374         * src/pic/gen.c tidied up tabs
8375         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
8376         * src/pic/main.c tidied up tabs
8377         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
8378         * src/pic/pcoderegs.c tidied up tabs
8379         * src/pic/ralloc.c tidied up tabs
8380
8381 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
8382
8383         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
8384         to S_FIXED for pic16 port and when symbol is not in level 0,
8385         allocate for S_REGISTER storage class and pic16 port, too,
8386         * src/pic16/device.h: prototype for checkSym,
8387         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
8388         * (pic16_assignConfigWordValue): test the value and the mask to
8389         validate that the value is suitable for the configuration word,
8390         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
8391         collect extern declared symbols, don't emit symbol twice, check
8392         first if symbol is in publics set first,
8393         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
8394         * added command line '--fstack' which enables an experimental
8395         feature for stack access, too buggy to be used yet...
8396         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
8397         * (pic16_allocDirReg): when register has storage class S_REGISTER
8398         allocate in pic16_dynAccessRegs,
8399         * device/include/pic16/pic18f????.h: modified configuration word
8400         naming convention, words started as CONFIG0H but should be CONFIG1H
8401
8402 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
8403
8404         * device/include/mcs51reg.h: fixed bug 970993
8405
8406 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
8407
8408         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
8409         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
8410         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
8411         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
8412         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
8413         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
8414           error/warning numbers,
8415           added function setWarningDisabled()
8416         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
8417         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
8418           _memcmp.c _memmove.c calloc.c realloc.c free.c
8419         * support/regression/tests/malloc.c: added tests for new functionality
8420         * support/regression/tests/zeropad.c: added tests for truncated initializers
8421           and initialized char arrays starting with '\x0'
8422         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
8423
8424 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
8425
8426         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
8427
8428 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8429
8430         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
8431         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
8432         peephole 177.e. Thanks to anonymous
8433
8434 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
8435
8436         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
8437         function isn't used in the source but referenced as a
8438         variable initializer then declare it as extern in .asm file
8439
8440 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
8441
8442         * .version: increased version number to 2.4.3
8443
8444         Adding version extension according to ChangeLog CVS revision
8445         * src/Makefile.in (target all): added dependency 'version.h'
8446         * (rule version.h): added rule to create version.h from ChangeLog,
8447         * (rule dep): added dependency version.h,
8448         * src/version.awk: AWK script to create version.h
8449         * src/SDCCdwarf2.c (dwWriteModule),
8450         * src/SDCCglue.c (initialComments),
8451         * src/SDCCmain.c (printVersionInfo): modified to write after
8452         version string the version extension number,
8453         * src/SDCCutil.c: included "version.h"
8454         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
8455         number,
8456         * src/SDCCutil.h: added prototype for getBuildNumber
8457
8458         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
8459         includeDirsSet, too,
8460         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
8461         const char [] is found in function prototype...
8462
8463         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
8464         moving to WREG with source is already in WREG,
8465         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
8466         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
8467         * (aopForSym): stack'ed symbols are partially supported, added
8468         if-clause to support symbols in FARSPACE,
8469         * (sameRegs): added test for AOP_ACC to see if registers are same,
8470         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
8471         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
8472         * (pic16_popRegFromString): will not allocate a new register if it
8473         doesn't find one by name, bug may have introduced...
8474         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
8475         * (genIpush): revived to use pic16 port's stack,
8476         * (genAddrOf): added incomplete case for stack'ed operand,
8477         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
8478         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
8479         can handle multibyte operands,
8480         * src/pic16/glue.c (pic16_printIval*): some debug info added,
8481         * (pic16initialComments): added message for MPLAB compatibility
8482         mode enabled,
8483         * src/pic16/main.h: prototype for pic16_mplab_comp,
8484         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
8485         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
8486         * (_pic16_linkEdit): NEW, handles link stage, transferred here
8487         because of increased complexity of procedure,
8488         * (_process_pragma): stack pragma changed to format 'stack pos len',
8489         emit symbol '_stack_end' to conform with gplink,
8490         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
8491         to search for register,
8492         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
8493         PO_GPR_REGISTER,
8494         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
8495         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
8496         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
8497         case for PO_GPR_REGISTER,
8498         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
8499         dies, the new era is ahead !...
8500         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
8501         pic16_dynInternalRegs,
8502         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
8503         * (pic16_allocDirReg): minor optimizations and bug fixes,
8504         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
8505
8506         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
8507         load stack and frame pointer with address of 'stack_end' symbol
8508
8509 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
8510
8511         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
8512         without source code but only variable initializers
8513
8514 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
8515
8516         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
8517         external are not declared as extern to reduce overhead while linking
8518
8519 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
8520
8521         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
8522
8523 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
8524
8525         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
8526           Yee Keat for the patch
8527         * src/SDCCast.c (decorateType): fixed bug #979599
8528         * src/ds390/gen.h: removed local fReturnSizeDS390
8529         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
8530         * src/ds390/gen.c (genAnd, genOr, genXor),
8531         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
8532
8533 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
8534
8535         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
8536         add relFilesSet to $3, manipulate $2 to handle linking of object
8537         files without source files in command line,
8538         * device/include/pic16 (all headers): added ID location macros,
8539         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
8540         entries for ID location bytes,
8541         * (pic16_assignIdByteValue): NEW,
8542         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
8543         added field dumpcalltree to pic16_options_t,
8544         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
8545         is used instead of pic16_Gstack_base_addr, check if (ifx) before
8546         emitting rFalseIfx label after check_carry label,
8547         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
8548         pic16_emitDIRegs), NEW
8549         * (pic16glue): dump .calltree file when option --calltree found,
8550         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
8551         * (_pic16_genAssemblerPreamble): emit ID locations after
8552         configuration registers,
8553         * (pic16_linkCmd): modifications of the link command,
8554         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
8555         * (pic16_pCodeInitRegisters): don't init stack registers,
8556         * (pic16_findPrevInstruction): fixed bug,
8557         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
8558         bug with immediate registers,
8559         * (buildCallTree): traces stack push and pop,
8560         * (pct2): dump also stack usage for each function,
8561         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
8562         * (pic16_allocDirReg): various modifications,
8563         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
8564         fixed to 1,
8565
8566 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
8567
8568         * src/pic16/pcode.c: removed buggy double colon
8569
8570 2004-07-01 Borut Razem <borut.razem AT siol.net>
8571
8572         * support/scripts/sdcc.nsi: added include/pic16 to setup
8573
8574 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
8575
8576         * device/lib/Makefile.in: fixed bug in target objects-pic16,
8577         * device/lib/pic16/Makefile: prefixed with dash (-) command under
8578         target 'clean',
8579         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
8580         specific command line arguments. Also added sample lkr script
8581         for placing a variable at a specific memory bank.
8582         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
8583         at a specific memory bank,
8584         * (pic16_dump_isection): fixed bug which caused string literals to
8585         be omitted when dumping idata section,
8586         * (pic16_groupRegistersInSection): added code to handle registers
8587         in specific memory banks,
8588         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
8589         public, all references are renamed too,
8590         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
8591         AOP_DPTR2,
8592         * (pic16_storeForReturn): added case to handle when dest is WREG,
8593         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
8594         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
8595         pic16_rel_udata, check to see if that register is marked as being
8596         a member of a specific memory bank,
8597         * (pic16_printIvalCharPtr): added code to add string literals either
8598         to code or the idata sections,
8599         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
8600         also accept the 'udata' pragma,
8601         * src/pic16/main.h: new structure types sectName and sectSym
8602         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
8603         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
8604         * (pic16_findPrevInstruction): fixed, it returned nothing,
8605         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
8606         instruction combinations,
8607         * (pic16_FixRegisterBanking): heavily reorganised,
8608         * (pic16_AnalyzeBanking): if generating banksel directives is
8609         disabled, then don't call FixRegisterBanking at all,
8610         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
8611         completely removed,
8612         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
8613
8614 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
8615
8616         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
8617         Phuah Yee Keat <yk.phuah AT nestac.com>
8618
8619 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
8620
8621         * src/pic16/glue.c (pic16createInterruptVect): function now emits
8622         correctly the IVT even if it is relocated to some other location
8623
8624 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
8625
8626         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
8627         * device/include/pic16/pic18f2220.h: NEW,
8628         * device/lib/pic16/libdev/pic18f2220.c: NEW,
8629         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
8630         * src/pic16/device.c (struct Pics16): added info for 18f2220,
8631         * src/pic16/device.h (struct pic16_options): added ivt_loc and
8632         nodefaultlibs, ivt_loc is the location of the interrupt vector
8633         table, and nodefaultlibs signs that default libraries should not be
8634         linked in link stage,
8635         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
8636         according to --ivt-loc argument,
8637         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
8638         when pragma stack is found,
8639
8640 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8641
8642         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
8643         256 (range check), 257 (do while), 258.a-f (bit banging
8644         f.e. on 3-wire SPI bus)
8645
8646 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8647
8648         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
8649         variables used exclusively within a loop
8650
8651 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
8652
8653         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
8654
8655 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8656
8657         * src/SDCClrange.c (computeClash): fixed bug #971834
8658
8659 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8660
8661         * src/mcs51/gen.c (genCmp): fixed bug #975903
8662         * src/hc08/gen.c (operandsEqu),
8663         * src/ds390/gen.c (operandsEqu),
8664         * src/z80/gen.c (operandsEqu),
8665         * src/pic/gen.c (operandsEqu),
8666         * src/pic16/gen.c (operandsEqu),
8667         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
8668         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
8669
8670 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8671
8672         * src/SDCCcse.c (cseBBlock): fixed bug #966963
8673
8674 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
8675
8676         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
8677         default case in switch statement,
8678         * glue.c (pic16_initPointer): expr is initialised via decoarteType
8679         to eliminate problem with initialisation of pointers, but problem
8680         still exists,
8681         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
8682         * (emitStaticSegment): removed various lines emitting debug info,
8683         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
8684         added processor registers for utilizing EEPROM,
8685         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
8686         configurable and set 8
8687
8688 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
8689
8690         * .version: increased version number to 2.4.2,
8691
8692         Cumulative patch for pic16 port
8693         * src/pic16/device.c: changed scheme to dump initial values for
8694         variables in idata segment, all print_idata* functions were removed,
8695         now the pic16_printIval* will be called,
8696         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
8697         * _pic16_printPointerType, pic16_printPointerType,
8698         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
8699         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
8700         NEW, similar to the respective functions in SDCCglue.c,
8701         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
8702         way, emitting hex bytes,
8703         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
8704
8705 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8706
8707         * src/avr/ralloc.c (serialRegAssign),
8708         * src/xa51/ralloc.c (serialRegAssign),
8709         * src/pic/ralloc.c (serialRegAssign),
8710         * src/pic16/ralloc.c (serialRegAssign),
8711         * src/hc08/ralloc.c (serialRegAssign),
8712         * src/z80/ralloc.c (serialRegAssign),
8713         * src/ds390/ralloc.c (serialRegAssign),
8714         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
8715
8716 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8717
8718         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
8719         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
8720
8721 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
8722
8723         Cumulative patch for pic16 port:
8724         * src/pic16/device.h (typedef PIC16_device) modified fields for
8725         defining microcontrollers,
8726         * src/pic16/device.c: added new info for all devices in Pics16 array,
8727         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
8728         to be optimised out by the pCode optimiser,
8729         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
8730         specially, bug reported by G.M. Gallant,
8731         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
8732         as force'd so that cannot be optimised out by pCode optimiser,
8733         * src/pic16/pcode.c,
8734         * src/pic16/pcodepeeph.c,
8735         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
8736         they are disabled by default, but can be enabled explicit with
8737         command argument --denable-peeps, for testing,
8738         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
8739         --pomit-ivt in COMPILE_FLAGS
8740
8741 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
8742
8743         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
8744           compilation on MSVC
8745
8746 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
8747
8748         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
8749
8750 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8751
8752         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
8753         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
8754
8755 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
8756
8757         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
8758         would only assign 0x300001 register.
8759
8760 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
8761
8762         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
8763         in COMPILE_FLAGS. Thanks to G. Gallant for report.
8764
8765 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8766
8767         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
8768         for ds80c400
8769         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
8770         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
8771         added peephole 254 (left shift), 255 (jump table)
8772
8773 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
8774
8775         * device/lib/Makefile.in: removed comment line with model-pic16,
8776         * (target port-specific-objects-pic16): the libraries and objects
8777         are copied to the build directory form the device/lib/pic16/bin
8778         directory
8779
8780         Cumulative patch concerning pic16 port:
8781         * library directory has been re-organized,
8782         * added support for PIC18F1220,
8783         * added headers and library sources for chips 18f1220,18f6520,
8784         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
8785
8786         * configuration registers setting has changed, now each supported
8787         device has a complete description of the registers it uses,
8788         * all initialisations are moved to idata sections, these section
8789         can be absolute or relocatable,
8790         * fixed initialisation of codespace variables,
8791         * fixed warning about PCLATU and gpsim,
8792         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
8793         * (genAssign): use table reads when assigning from variables in codespace,
8794         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
8795         char/int variables placed in codespace,
8796         * (pic16_emitConfigRegs): NEW, emits a list with configuration
8797         registers set in .asm file, no need for --pomit-config-words anymore,
8798         * (pic16glue): some 8051 legacy segments are commented out
8799         (to be removed completely),
8800         * added support for alternative assembler and linker with --asm=
8801         and --link= command line arguments,
8802         * peepholes are disabled automatically in the port, no need to
8803         specify on command line,
8804         * port supports natively char/int/long multiplication, but converts
8805         all divisions to support functions,
8806         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
8807         to the file set in variable $2,
8808         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
8809         strings in ASCII format and not in hex,
8810         * ralloc.c (serialRegAssign): added a triplet of conditional calls
8811         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
8812         allocate proper register if iCodes aren't temporary,
8813
8814 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
8815
8816         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
8817
8818 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
8819
8820         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
8821         is commented out
8822
8823 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8824
8825         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
8826         computed address is reused
8827         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
8828         multi-byte bitfields
8829
8830 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
8831
8832         * src/z80/gen.c: (genArrayInit): must check for pointers too
8833
8834 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
8835
8836         * support/regression/tests/zeropad.c: never meant to commit the
8837           nestedstruct test: removed, added check for GCC version
8838
8839 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
8840
8841         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
8842         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
8843         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
8844           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
8845           bugs 928906 and 954082 half-empty initializers
8846         * src/SDCCsymt.h,
8847         * src/SDCCsymt.c (getAllocSize): added for above fix
8848         * src/z80/gen.c (genArrayInit): fixed bug 741044
8849         * support/regression/tests/zeropad.c: added tests
8850
8851 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
8852
8853         * src/pic16/device.c (pic16_dump_section): corrected bug which
8854         caused some symbols of the libraries to be misplaced
8855
8856 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
8857
8858         * src/pic16/glue.c,
8859         * src/pic16/ralloc.h,
8860         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
8861         to fix conflict with pic port
8862
8863 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
8864
8865         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
8866         externs configuration variables,
8867         * src/pic16/ralloc.h,
8868         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
8869         prototype in header, commented out some debug messages
8870
8871 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
8872
8873         * src/pic16/glue.c,
8874         * src/pic16/main.c,
8875         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
8876         for gpasm COFF object generation. Thanks to D. Hawkins for
8877         his patch info
8878
8879 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8880
8881         * src/ds390/main.c,
8882         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
8883         Brock for spotting this)
8884         * src/ds390/gen.c (genEndFunction),
8885         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
8886         interrupt handler and critical. Disable push/pop optimizations when
8887         peephole optimizations disabled.
8888
8889 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
8890
8891         Updated pic16 library sources and headers.
8892         * device/lib/pic16/pic18f*/ ,
8893         * device/include/pic16/*.h: modified to handle structured SFR
8894         definitions
8895
8896 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
8897
8898         * src/port.h (PORT structure): added hook initPaths, now each
8899         port can declare its own default search paths,
8900         which can been seen with the --print-search-dirs option,
8901         see pic16 port for example,
8902         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
8903         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
8904         * (doPrintSearchDirs): NEW, replaces in a central manner the
8905         printing of search dirs which was split in set*Paths functions,
8906         * (main): added call to port->initPaths and doPrintSearchDirs,
8907         * src/avr/main.c,
8908         * src/ds390/main.c,
8909         * src/hc08/main.c,
8910         * src/izt/i186.c,
8911         * src/izt/tlcs900h.c,
8912         * src/mcs51/main.c,
8913         * src/pic/main.c,
8914         * src/pic16/main.c: modified port structures to reflect addition of
8915         initPaths hook,
8916
8917         * src/pic16/device.c (regCompare): registers are finally sorted by name,
8918         * (pic16_dump_section): for registers in same address reserve memory once,
8919         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
8920         to no_banksel,
8921         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
8922         result is greater in size than right or left,
8923         * (pic16_genUMult8X8_8): there are some cases where the result can
8924         be 16 bits size, so handle these,
8925         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
8926         * (pic16_outBitC): modified to emit pcodes,
8927         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
8928         or not,
8929         * (genDivOneByte): implemented algorithm to divide 8-bits,
8930         * (genCmp): uncommented goto, but issues still exist,
8931         * (genAnd): fixed a bug with variables >8bits,
8932         * (genPackBits): optimization added that uses BCF/BSF to change a
8933         single bit,
8934         * (genAssign): fixed bug when assigning floating point literals,
8935         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
8936         __sdcc_gsinit_startup label,
8937         * src/pic16/main.c (_pic16_init): removed search directory
8938         initialisations,
8939         * (_pic16_initPaths): NEW, used to initialise search directories,
8940         * (_hasNativeMulFor): support functions for all except char/int
8941         multiplication, and char division,
8942         * (PIC16_port struct): modified entry for native mul support,
8943         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
8944         no_banksel option,
8945         * (buildCallTree): call to register_usage is ifdef'ed out,
8946
8947 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8948
8949         * device/include/string.h: applied Stas Sergeev's patch to make this
8950         header file compatible with the preprocessor -Wundef option
8951         * src/SDCCmain.c (main): abort compilation if preprocessor reports
8952         failure (fixes bug #941458)
8953
8954 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8955
8956         * src/SDCCopt.c (killDeadCode): fixed bug #907733
8957         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
8958         that the variable, not the function, should be static
8959         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
8960         to be consistent with non-literal case
8961
8962 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8963
8964         * src/SDCCast.c (isConformingBody): fixed bug #949967
8965         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
8966         convilong): fixed bug #952086
8967
8968 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8969
8970         * src/SDCCmem.c (allocVariables): fixed bug #955321
8971
8972 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8973
8974         * src/hc08/main.c (_hc08_genAssemblerEnd),
8975         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
8976         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
8977         completely eliminated the use of a temporary file
8978         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
8979         when more than one file linked
8980         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
8981
8982 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8983
8984         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
8985         which fixes bug #543481
8986         * support/regression/tests/bug-751703.c: fixed comments left from a
8987         cut and paste error
8988         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
8989         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
8990         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
8991         scopes
8992         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
8993         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
8994         are now changed to underscores in moduleName
8995
8996 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8997
8998         * as/mcs51/lkmem.c: better fix for bug #954173
8999
9000 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
9001         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9002
9003         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
9004         * device/include/c8051f000.h,
9005         * device/include/c8051f120.h,
9006         * device/include/c8051f300.h,
9007         * device/include/c8051f310.h,
9008         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
9009         PWM16) and detab'ed
9010
9011 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9012
9013         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
9014         and mailing lists, doc'ed --no-peep-comments, removed reference
9015         to knoppix (newest version has no LyX/LaTeX), other minor changes
9016         * src/SDCCglue.c (glue): save 2 bytes stack space with
9017         option --main-return. The ljmp could probably be avoided too
9018
9019 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9020
9021         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
9022
9023 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9024
9025         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
9026         * src/SDCCopt.c (isLocalWithoutDef),
9027         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
9028         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
9029         (credit to Maarten Brock for patch #949363, on which this is based)
9030         * support/regression/tests/bug-751703.c: some test cases of extern used
9031         within inner scopes.
9032
9033 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9034
9035         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
9036         SPEC_STRUCT
9037         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
9038         struct definitions
9039         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
9040         dwWriteLabel): fix to create valid debugger symbols even when
9041         the module name has non-alphanumeric symbols in it
9042         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
9043         when a variable's allocation has been optimized away
9044
9045
9046 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9047
9048         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
9049         * src/hc08/main.c,
9050         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
9051         * src/mcs51/main.c,
9052         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
9053         * src/ds390/main.c,
9054         * src/z80/gen.c (z80_emitDebuggerSymbol),
9055         * src/z80/main.c,
9056         * src/pic/gen.c (pic14_emitDebuggerSymbol),
9057         * src/pic/main.c,
9058         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
9059         * src/pic16/main.c,
9060         * src/avr/gen.c (avr_emitDebuggerSymbol),
9061         * src/avr/main.c,
9062         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
9063         * src/xa51/main.c,
9064         * src/SDCCdebug.c (emitDebuggerSymbol),
9065         * src/SDCCdebug.h,
9066         * src/port.h: added a debugger struct to the port struct. Added a
9067         callback for defining debugger symbols
9068
9069         * src/SDCCast.c (createLabel),
9070         * src/SDCC.y (labeled_statement): mark all compiler generated labels
9071         with isitmp = 1
9072         * src/SDCCicode.h,
9073         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
9074         iCode back to the ast for the function
9075
9076         * src/hc08/ralloc.c (hc08_assignRegisters),
9077         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
9078         unneeded fields from the regs struct.
9079         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
9080         pushReg() & pullReg() functions instead of emitcode()
9081
9082         * src/hc08/gen.c (genLabel, genhc08Code),
9083         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
9084
9085         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
9086         debugger hooks
9087
9088         * src/hc08/gen.c (genEndFunction, genhc08Code),
9089         * src/hc08/gen.h,
9090         * src/mcs51/gen.c (genEndFunction, gen51Code),
9091         * src/mcs51/gen.h,
9092         * src/ds390/gen.c (genEndFunction, gen390Code),
9093         * src/ds390/gen.h,
9094         * src/z80/gen.c (genEndFunction, genZ80Code),
9095         * src/z80/gen.h,
9096         * src/z80/z80.h,
9097         * src/pic/gen.c (genEndFunction, genpic14Code),
9098         * src/pic/gen.h,
9099         * src/pic16/gen.c (genEndFunction, genpic16Code),
9100         * src/pic16/gen.h,
9101         * src/avr/gen.c (genEndFunction, genAVRCode),
9102         * src/avr/gen.h,
9103         * src/xa51/gen.c (genEndFunction, genXA51Code),
9104         * src/xa51/gen.h,
9105         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
9106         specific code to cdbFile.c and out of the backend code generators
9107
9108         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
9109         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
9110         starting address is now 0
9111
9112         * as/hc08/asm.h,
9113         * as/hc08/m08pst.c,
9114         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
9115         assembler directive for DWARF support
9116         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
9117
9118         * src/src.dsp,
9119         * src/Makefile.in,
9120         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
9121
9122 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9123
9124         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
9125         and inappropriate peephole optimization in jump tables
9126
9127 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9128
9129         * as/hc08/m08pst.c,
9130         * src/SDCCglue.c: sdccopt works for the hc08 port now
9131
9132 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
9133
9134         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
9135
9136 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9137
9138         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
9139
9140 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9141
9142         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
9143         rules
9144         * src/SDCCmain.c,
9145         * src/SDCCglobl.h,
9146         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
9147         comments from the peephole optimizer replacement rules
9148         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
9149         symbols
9150         * src/SDCCcse.c (updateSpillLocation),
9151         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
9152         equivalents
9153         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
9154         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
9155         objects far pointers
9156
9157 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9158
9159         * src/SDCCsymt.h: a missing part of my last change
9160         * src/pic/ralloc.c (regTypeNum),
9161         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
9162
9163 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9164
9165         * src/SDCCicode.h,
9166         * src/SDCCicode.c (aggrToPtrDclType),
9167         * src/SDCCptropt.h,
9168         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
9169         ptrPseudoSymConvert),
9170         * src/pic/ralloc.c (regTypeNum),
9171         * src/pic16/ralloc.c (regTypeNum),
9172         * src/hc08/ralloc.c (regTypeNum),
9173         * src/ds390/ralloc.c (regTypeNum),
9174         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
9175         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
9176
9177 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9178
9179         * link/z80/lkmain.c (afile),
9180         * as/hc08/lkmain.c (afile),
9181         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
9182         prevent a pointer problem when a filename has no directory and
9183         no extension specified.
9184
9185 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9186
9187         * link/z80/lkmain.c (afile): allow periods in directory names
9188         * link/z80/lkmain.c (afile),
9189         * as/mcs51/lkmain.c (afile),
9190         * as/hc08/lkmain.c (afile): allow linker script file to have an
9191         extension other than ".lnk"
9192         * link/z80/lklex.c (getfid),
9193         * link/z80/lkmain.c (parse),
9194         * as/mcs51/lklex.c (getfid),
9195         * as/mcs51/lkmain.c (parse),
9196         * as/hc08/lklex.c (getfid),
9197         * as/hc08/lkmain.c (parse): Support comments in the linker script
9198         file on lines by themselves and after filenames
9199
9200 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9201
9202         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
9203
9204 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9205
9206         * src/z80/peeph-z80.def: removed some peephole rules that don't
9207         work with multibyte arithmetic (fixed bug #937126)
9208         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
9209         to registers and not global variables
9210         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
9211         geniCodePreInc, geniCodePostDec, geniCodePreDec,
9212         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
9213         checking for assignments not internally generated (fixed bug #931895)
9214         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
9215         structure member (fixed bug #930072)
9216
9217 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9218
9219         * src/SDCCmain.c (linkEdit),
9220         * src/hc08/main.c (_hc08_parseOptions),
9221         * as/hc08/Makefile.in,
9222         * as/hc08/aslink.h,
9223         * as/hc08/asm.h,
9224         * as/hc08/m08pst.c,
9225         * as/hc08/lkrloc.c (relr, rele),
9226         * as/hc08/lkarea.c (lnkarea)
9227         * as/hc08/lkmain.c (afile, parse),
9228         * as/hc08/lkelf.c: support for ELF output
9229         * as/hc08/lks19.c (s19),
9230         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
9231
9232 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9233
9234         * as/mcs51/lkihx.c: Fixed bug #899105.
9235
9236 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9237
9238         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
9239         .dsp files from Unix to DOS.
9240
9241 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9242
9243         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
9244         function pointers; we have been compliant for several months now.
9245         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
9246         change that was accidently commented out
9247         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
9248         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
9249         bug #922319
9250
9251 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9252
9253         * src/hc08/gen.c: output of all of the internal debugging information
9254         is now controlled by the D() macro; it is disabled by default
9255
9256 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9257
9258         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
9259         harder to keep the same registers during a CAST iCode
9260         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
9261         long via int can be done in a single cast, if the signedness is
9262         correct.
9263         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
9264         putchar() in tinibios.c in ds390's library
9265
9266 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
9267
9268         * src/SDCCast.c (decorateType): fixed bug #898889,
9269         cast result of a literal complement too
9270         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
9271         fixed check for bitfields
9272
9273 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
9274
9275         * src/SDCCicode.c (geniCodeLogic): made it static,
9276         (geniCodeLogicAndOr): added in order to fix bug #905492,
9277         (ast2iCode): fixed bug #905492
9278         * support/regression/tests/bug-905492.c: added
9279         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
9280         (processParms): fixed bug #927659: don't copy parms, this will clear
9281         decorated flag
9282         * support/regression/tests/bug-927659.c: added
9283
9284 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
9285
9286         * src/SDCCast.c (addCast): don't cast float to char
9287         * device/lib/libsdcc.lib: added _memmove
9288
9289 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
9290
9291         * device/lib/large/Makefile: fixed parallel execution by
9292         replacing `make` by `$(MAKE)`
9293
9294 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9295
9296         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
9297         offsets (fixes bug #923936)
9298
9299 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
9300
9301         * device/lib/small/Makefile: fixed parallel execution by
9302         replacing `make` by `$(MAKE)`
9303
9304 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
9305
9306         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
9307
9308 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
9309
9310         * src/pic/gen.c (genCpl): multi-byte complements were not working.
9311         * src/regression/Makefile: Regression test was not running.
9312
9313 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
9314
9315         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
9316         complement if possible
9317         * src/SDCCval.c (valComplement),
9318         * src/SDCCicode.c (operandOperation): fixed complement of literal
9319         * support/regression/tests/onebyte.c (testComplement): added
9320
9321 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
9322
9323         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
9324         return an optimized tree; actually replace actParm with the new tree
9325         * src/SDCCast.h: added some parantheses to remove side effects
9326         * support/regression/tests/bug-920866.c
9327
9328 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
9329         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
9330         Bit operands were not being handled properly in the pic14 port.
9331         (now src/regression/add.c passes again).
9332
9333 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9334
9335         * src/SDCC.y (labeled_statement): case and default no longer require
9336         a following statement (RFE #893037)
9337
9338 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9339
9340         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
9341         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
9342         disabled (fixes bug #916294)
9343         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
9344         "mov a,acc"; patch provided by Lenny Story
9345         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
9346
9347 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9348
9349         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
9350         functions
9351         * src/ds390/gen.c (genFunction, genEndFunction),
9352         * src/ds390/ralloc.c (ds390_assignRegisters),
9353         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
9354         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
9355         pushed if there are parameters passed on the stack. Also, a cleaner
9356         way to decide if r0/r1 should be pushed/popped. (Together they fix
9357         bug #918693)
9358
9359 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9360
9361         * doc/sdccman.lyx,
9362         * device/lib/mcs51/crtpagesfr.asm,
9363         * device/lib/mcs51/crtxinit.asm,
9364         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
9365         to avoid confusion with Si Lab's SFRPAGE register.
9366
9367 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9368
9369         * src/SDCCglue.c (emitMaps): allow public sfr variables
9370         * src/SDCCglue.c (initialComments): include compiler build date
9371         with compiler version and put the timestamp of the generated
9372         assembly file on a serperate line to be less confusing.
9373         * src/port.h: added genInitStartup hook
9374         * src/avr/main.c,
9375         * src/ds390/main.c,
9376         * src/hc08/main.c,
9377         * src/pic/main.c,
9378         * src/pic16/main.c,
9379         * src/xa51/main.c,
9380         * src/z80/main.c: genInitStartup initialize as NULL (default to
9381         historical behaviour)
9382         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
9383         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
9384         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
9385         library instead of hard coding it into the compiler.
9386         * support/regression/ports/mcs51-stack-auto/spec.mk,
9387         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
9388         * device/lib/mcs51/Makefile,
9389         * device/lib/small/Makefile,
9390         * device/lib/large/Makefile,
9391         * device/lib/mcs51/crtpagesfr.asm,
9392         * device/lib/mcs51/crtstart.asm,
9393         * device/lib/mcs51/crtxclear.asm,
9394         * device/lib/mcs51/crtxinit.asm,
9395         * device/lib/mcs51/crtclear.asm,
9396         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
9397         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
9398         and into user configurable files.
9399         * device/lib/clean.mk: clean mcs51 directory too
9400         * support/regression/tests/longlit.c: added static to T1 declaration
9401         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
9402         accesses in the initialization code
9403
9404 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9405
9406         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
9407         OSCTRIMVAL as noted in bug #916008
9408
9409 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9410
9411         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
9412         in loops with multiple exits (reported as incorrect registers
9413         used by Martin Helmling in Sdcc-user list)
9414
9415 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9416
9417         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
9418         made ds390 register extensions look less like error messages
9419
9420 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9421
9422         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
9423         reported by Adam Wozniak in Sdcc-user list
9424
9425 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
9426
9427         * src/SDCCast.c (decorateType): fixed with bug and promotion in
9428         arithmetic optimizations, added debug output
9429
9430 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
9431
9432         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
9433         * sdcc.spec: updated and split sdcc into 3 rpms
9434         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
9435         needed for literals of LEFT_OP and '+'
9436         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
9437         introduced RESULT_TYPE_NOPROM
9438         (geniCodeMultiply): fixed logic for decision if mul is optimized to
9439         left shift
9440         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
9441         limited promotion to int only for '*'
9442         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
9443
9444 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
9445
9446         * src/pic16/gen.c (genSkip),
9447         (genc16bit2lit), (gencjneshort): commented out
9448         (is_LitOp): new helper function, checks operand type
9449         (genCmpEq): rewritten
9450
9451 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
9452
9453         * support/regression/tests/bug-908454.c: added
9454
9455 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
9456
9457         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
9458         * src/SDCCicode.c (usualBinaryConversions): op needs int type
9459         (geniCodeCast): cosmetic, don't preserve bit storage class
9460         (geniCodeLeftShift): added promotion
9461         (geniCodeLogic): fixed regression
9462         * src/SDCCsymt.c (computeTypeOr): accept bits too
9463         (compareType): 2nd part of fix for bug #908454, needed for bitfields
9464
9465 2004-03-07  Borut Razem <borut.razem AT siol.net>
9466
9467         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
9468
9469 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
9470
9471         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
9472         version of pic16_genPackRegisters which does not check if ic is a
9473         CAST operator,
9474         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
9475         function cause string1.c regression test fails
9476
9477 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
9478
9479         * sim/ucsim/configure.in,
9480         * sim/ucsim/configure,
9481         * sim/ucsim/doc/Makefile.in: use docdir
9482         * src/SDCC.y: fixed sbit atrributes
9483         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
9484         * src/SDCCast.c (decorateType): |^& need special promotion handling
9485         * src/SDCCast.h,
9486         * src/SDCCsymt.h: moved definition of RESULT_TYPE
9487         * src/SDCCsymt.h (computeType),
9488         * src/SDCCicode.c: computeType() needs op
9489         * src/SDCCsymt.c (checkTypeSanity),
9490         * doc/sddman.lyx: "plain" bitfields are unsigned
9491         * src/SDCCsymt.c (computeTypeOr): added
9492         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
9493         |^& ops
9494         * src/SDCCval.c (val*): computeType() needs op
9495         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
9496         * support/regression/tests/onebyte.c: added tests for |^&
9497
9498 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
9499
9500         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
9501         for writing icode into asm output.
9502
9503 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
9504
9505         * src/pic16/device.c: added some debug lines enabled
9506         with macro DEBUG_CHECK,
9507         * src/pic16/genarith.c: more debug in genPlus,
9508         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
9509         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
9510         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
9511         * (aopForSym): onStack symbols are re-placed in data memspace,
9512         and onStack flag is cleared,
9513         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
9514         copy temporary pcodeop,
9515         * (genPcall): added warning for not updating PCLATU,
9516         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
9517         always true for pic16 port,
9518         * (genMultOneWord): NEW, supports integer multiplication,
9519         * (genMult): modified to call genMultOneWord,
9520         * (ifxForOp): added warning when return NULL,
9521         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
9522         flag is set before call to operandFromSymbol for implicit
9523         added structures,
9524         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
9525         options.intlong_rent are set by default,
9526         * (_hasNativeMulFor): modified to allow port generation of integer
9527         multiplication,
9528         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
9529         set regtype to REG_SFR for all registers, restricting seting the
9530         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
9531
9532 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9533
9534         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
9535         more than 500 times in the regression tests
9536
9537 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9538
9539         * support/Util/SDCCerr.h,
9540         * support/Util/SDCCerr.c,
9541         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
9542         enumerator_list),
9543         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
9544         for symbol conflicts.
9545         * support/valdiags/tests/enum.c,
9546         * support/valdiags/tests/tentdecl.c,
9547         * support/valdiags/tests/struct.c: expect possible error messages
9548         referring to original symbol definitions.
9549         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
9550         * src/SDCCsymt.h,
9551         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
9552
9553 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
9554
9555         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
9556
9557 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
9558
9559         * src/pic16/ralloc.c (newReg): fixed bug #908929
9560
9561 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9562
9563         * src/ds390/gen.c: added missing #include "main.h"
9564
9565 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
9566
9567         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
9568         checking if symbol is already in set,
9569         * src/pic16/device.h: prototype for checkAddSym,
9570         * src/pic16/gen.c: (_G): added entry interruptvector,
9571         * (assignResultValue): removed some commented out lines,
9572         * (genFunction): check for ISR via sym->type, absolute section for
9573         interrupt code is created via a new pBlock, the goto instruction is
9574         placed now correctly at the interrupt vector position, changed all
9575         references from ivec to _G.interruptvector,
9576         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
9577         is the interrupt is a high priority one, same for return from ISR,
9578         * src/pic16/glue.c: changed all calls of addSetHead for publics and
9579         externs to calls of checkAddSym,
9580         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
9581         pic16_pcode_verbose flag is set,
9582         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
9583         * src/pic16/pcoderegs.c: message about how many registers are saved
9584         will only be emitted if pic16_pcode_verbose flag is set,
9585
9586 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9587
9588         * src/ds390/ralloc.h,
9589         * src/ds390/ralloc.c (ds390_regWithIdx),
9590         * src/ds390/gen.c (emitcode),
9591         * src/ds390/main.h,
9592         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
9593         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
9594         ds390operandCompare, getRegsRead, getRegsWritten,
9595         initializeAsmLineNode): customized instruction size calculation for
9596         ds390, started basis for some register optimizations
9597         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
9598         corresponding assembly output
9599         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
9600         missing push/pop of r0/r1. Optimized push/pops
9601
9602 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9603
9604         * src/mcs51/main.c (instructionSize): fixed ACALL size
9605         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
9606
9607 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
9608
9609         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
9610         the sorting of rlist with NULL elements
9611         * (print_idataType, print_idata): NEW to create idata sections
9612         * src/pic16/device.h: idataSymSet new variable
9613         * src/pic16/gen.c (genFunction): fixed some bugs in string
9614         comparing, improved the absolute section creation for ISRs,
9615         added FSR0L/FSR0H in registers that are saved in an ISR,
9616         * (genInline): fixed the processing of inline snippets,
9617         now they undergo no process by the peephole optimizer
9618         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
9619         are placed in idataSymSet,
9620         * (pic16emitStaticSeg): extern symbols are added in externs,
9621         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
9622         switching when aboslute variables are placed in access bank memory
9623         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
9624         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
9625         commented out with #if,
9626         * (pic16_packRegisters): reintroduce the check for CAST because some
9627         symbols are not correctly handled,
9628         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
9629         pCodeInstruction instead of pCode,
9630         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
9631         pCodeAsmDir definition,
9632         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
9633         directive, then the argument directive is emitted without the leading
9634         tab, hack for inline labels which must be in the first column,
9635         * (compareLabel,pic16_findNextInstruction),
9636         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
9637         * (insertBankSwitch): modified for the new pCodeAsmDir,
9638
9639 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9640         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
9641
9642         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
9643         instance,
9644         * (pushSide): commented out with #if,
9645         * (assignResultValue): fixed some typos in saving
9646         registers,
9647         * (genPcall): FIXED and sync'ed with genCall,
9648         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
9649         * (genNearPointerGet): fixed to handle some more cases,
9650         implementation scheme via table reads,
9651         * (genConstPointerGet): modified to access code memory correct,
9652         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
9653         and improved to handle some cases
9654         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
9655         instead of "RETLW" for init data
9656         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
9657         not IN_DIRSPACE, work around to reduce bank switching when aboslute
9658         variables are placed in access bank memory (<0x80 and >=0xf80),
9659         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
9660         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
9661         TBLWT_POSTDEC,TBLWT_PREINC
9662         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
9663         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
9664         directives
9665         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
9666         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
9667         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
9668         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
9669
9670 2004-02-29  Borut Razem <borut.razem AT siol.net>
9671
9672         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
9673         support/Util/findme.h, support/Util/system.h: enhance binary relative
9674         search for lib and include by using findProgramPath()
9675
9676 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9677
9678         * src/SDCCpeeph.h,
9679         * src/SDCCpeeph.c (pcDistance),
9680         * src/port.h,
9681         * src/mcs51/ralloc.h,
9682         * src/mcs51/ralloc.c (mcs51_regWithIdx),
9683         * src/mcs51/main.h,
9684         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
9685         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
9686         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
9687         size calculation port specific, started basis for some register
9688         optimizations
9689         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
9690         missing push/pop of r0/r1. Optimized push/pops
9691         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
9692         * device/lib/_modsint.c (_modsint),
9693         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
9694         and stack version so regression tests pass
9695
9696 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
9697
9698         * src/Makefile.in (dep): include SLIBOBJS in dependency check
9699         * src/SDCCast.c (decorateType): catch another small optimization
9700         with '?' operator
9701         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
9702         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
9703         modified to finally use computeType() all over SDCC,
9704         see Feature Request #877103
9705         * src/SDCCval.h: cosmetic
9706         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
9707         valCompare(); regression tested in muldiv.c
9708         * support/regression/tests/muldiv.c (testMod): mod sign follows
9709         dividend only
9710
9711 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
9712
9713         * src/SDCCast.c (decorateType): fixed bug #902362
9714         * doc/INSTALL.txt: fixed install instructions for win32
9715
9716 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
9717
9718         * device/include/Makefile.in (install): fixed by replacing spaces
9719         by tabs
9720         * doc/README.txt,
9721         * doc/INSTALL.txt: updated for release
9722         * doc/sdccman.lyx: added warning for --xstack being buggy
9723
9724 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
9725
9726         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
9727         to eliminate build warnings.
9728         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
9729
9730 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
9731            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9732
9733         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
9734         removed -penable-stack, added comment for stack pragma, added
9735         warning for not initializing the stack/frame registers, removed
9736         comment at interrupts section
9737
9738         Stack is made permanent, there is no ability to disable stack usage.
9739         * src/pic16/device.h,
9740         * src/pic16/device.c: removed all references to USE_STACK macro,
9741         * src/pic16/device.c (pic16_dump_section): when no elements in
9742         rlist, free rlist before return,
9743         * (pic16_dump_int_registers): NEW, internal registers are a new set
9744         of general purpose registers reused by each function,
9745         * (checkAddReg): returns 1 if registers is added to set,
9746         * (pic16_groupRegistersInSection): when a registers is of type
9747         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
9748         * src/pic16/device.h: memRange and Assigned Memory are deleted,
9749         SRCASECMP macro is moved here from device.c
9750         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
9751         PO_PCLATU, PO_PRODL, PO_PRODH,
9752         * (pic16_pCodeOpType, genMinus,
9753         changed compares to "a" register, with AOP_ACC,
9754         * (pic16_genPlus): fixed some bugs and indented properly,
9755         * (pic16_addSign): changed size to size+offset in the MOVWF
9756         instruction,
9757         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
9758         multiply 8-bit operand by literal, result is 8-bit,
9759         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
9760         multiply 2 8-bit operand, result is 8-bit,
9761         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
9762         genUMult8X*_16,
9763         * src/pic16/gen.c: changed accUse to contain WREG only,
9764         * (pic16_emitcomment): renamed to pic16_emitpcomment,
9765         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
9766         true, do not use immediate addressing any more unless sym is a
9767         pointer in codespace,
9768         * (aopForRemat): do not use immediate addressing when symbol not in
9769         codespace and when symbol's address is requested,
9770         * (aopOp): for-loop in if(sym->accUse) is modified for the new
9771         accUse size (= 1),
9772         * (aopGet): added case for AOP_ACC and don't return "accumulator
9773         bug" but WREG instead,
9774         * (popGetTempReg): pushes contents of temporary register in stack,
9775         * (popReleaseTempReg): pops contents of temporary register from
9776         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
9777         * (pic16_popGet): separated case AOP_ACC to return register WREG
9778         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
9779         or PO_IMMEDIATE and initializes their instance/offset appropriately,
9780         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
9781         the use of immediate pointers to certain cases only.
9782
9783         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
9784         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
9785         * (assignResultValue, genCall, genRet): modified to use the new
9786         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
9787         genPcall is still broken,
9788         * (genFunction): added code to create 'A' type pBlocks when
9789         interrupt functions are generated, code not extensively tested yet,
9790         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
9791         * (genEndFunction): modified so ISRs pop stored registers from stack,
9792         * (genMultOneByte): cleanup,
9793         * (AccRsh): added flag andmask, to and result with appropriate mask,
9794         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
9795         * (genDataPointerGet): fixed and reenabled its use,
9796         * (genNearDataPointerGet): bugs fixed,
9797         * (genDataPointerSet): bugs fixed,
9798         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
9799         pic16_DumpSymbol, pic16_DumpOp,
9800         * src/pic16/genutils.h: function prototypes for the above functions,
9801         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
9802         pointers,
9803         * (pic16emitRegularMap): many many many improvements, but needs a
9804         major cleanup,
9805         * src/pic16/main.c: enable_stack in pic16_options is removed,
9806         * (_pic16_parseOptions): removed command line options -penable-stack,
9807         * (_process_pragma): emit stack symbol only when stack pragma is
9808         processed,
9809         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
9810         redirected to FSR0L/FSR0H pair,
9811         * (pic16_get_op, pic16_get_op2): modifications and improvements,
9812         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
9813         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
9814         for immediates,
9815         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
9816         * (dumpPicOptype): NEW,
9817         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
9818         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
9819         with movff instruction,
9820         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
9821         added pic16_int_regs, some packRegsFor* functions are commented out,
9822         because produce errors,
9823         * src/pic16/NOTES: minor modifications
9824
9825 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9826
9827         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
9828         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
9829         --pack-iram.
9830         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
9831         * as/mcs51/lkaomf51.c: fixed bug #895763
9832
9833 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
9834
9835         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
9836
9837 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9838
9839         * doc/sdccman.lyx: added details about the HC08 storage classes and
9840         interrupts, fixed the register usage info for z80 & gbz80
9841
9842 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
9843
9844         * doc/sdccman.lyx: added more pic16 port documentation
9845         * device/include/pic16/: added header pic18fregs.h
9846
9847 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
9848
9849         * doc/sdccman.lyx: added Vangelis' contribution
9850
9851 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9852
9853         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
9854         extend to the next CALL or PCALL, not just to the next CALL.
9855
9856 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
9857
9858         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
9859
9860 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9861
9862         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
9863         bug #895752 and a better fix for bug #716790
9864
9865 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9866
9867         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
9868
9869 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9870
9871         * doc/sdccman.lyx: minor changes, minor changed
9872
9873 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
9874
9875         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
9876         which can't handle SDCC_NEWONEBYTEOPS,
9877         (geniCodeMultiply): removed conversion from mult to shift for pic14
9878         and pic16
9879
9880 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9881
9882         * src/hc08/gen.h,
9883         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
9884         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
9885         thus fixing bug #895406
9886
9887 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
9888
9889         * device/lib/_modsint.c,
9890         * device/lib/_modslong.c: sign follows divisor only
9891         * src/hc08/gen.c (genMultOneByte): if result size is 1,
9892         signs or signedness can be ignored
9893         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
9894         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
9895         added optimization for IFX,
9896         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
9897         arguments;
9898         reenabled optimization for IFX, which was removed on 2004-01-11
9899         * src/SDCCast.h: added return type IFX
9900         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
9901         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
9902         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
9903         SDCC_OLDONEBYTEOPS selects the old behaviour
9904         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
9905         changed again and commented promotion rule
9906         * src/SDCCval.c (valDiv): promotion no longer necessary
9907         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
9908         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
9909         rewritten
9910         * support/regression/tests/onebyte.c: added
9911
9912 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
9913
9914         * gen.c (genInline): reverted to old code for assemnling inline
9915         code because of bug reported James Chadd
9916
9917 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
9918
9919         * ralloc.h: missing declarations from previous patch,
9920         seems that patch for ralloc.h was never applied, fixed
9921
9922 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9923            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
9924
9925         * pcode.c,
9926         * pcode.h,
9927         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
9928         indirect addressing. Marked FSR0 as deprecated
9929         * gen.c (pointerCode): commented out, not needed now
9930         (pic16_popGet2p): new MOVFF helper function
9931         (genGenPointerGet),
9932         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
9933         (shiftRLong): removed duplicate debugging info
9934
9935 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9936
9937         * src/ds390/gen.c (genNearPointerGet),
9938         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
9939         optimization with bits, but not bitfields.
9940         * src/ds390/ralloc.c (packRegisters),
9941         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
9942
9943 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
9944
9945         * src/SDCCcse.c (algebraicOpts): copy operands before modification
9946
9947 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9948
9949         * src/SDCCsymt.h,
9950         * src/SDCCicode.c (operandFromSymbol),
9951         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
9952         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
9953         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
9954         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
9955         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
9956         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
9957         bug #892038
9958         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
9959         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
9960         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
9961         * src/SDCCsymt.c (newSymbol),
9962         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
9963         enumerator_list),
9964         * src/SDCCval.h,
9965         * src/SDCCval.c (newiList): fixed bug #885705
9966
9967 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9968
9969         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
9970         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
9971
9972 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9973
9974         * device/include/c8051f120.h,
9975         * device/include/c8051f300.h,
9976         * device/include/c8051f310.h: added/updated header files for Silicon
9977         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
9978         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
9979         in new section Submitting patches
9980
9981 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9982
9983         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
9984         genFarPointerGet, genCodePointerGet, genGenPointerGet,
9985         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9986         genGenPointerSet),
9987         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
9988         genFarPointerGet, genCodePointerGet, genGenPointerGet,
9989         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9990         genGenPointerSet),
9991         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
9992         genFarPointerGet, genCodePointerGet, genGenPointerGet,
9993         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9994         genGenPointerSet),
9995         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
9996         genFarPointerGet, genCodePointerGet, genGenPointerGet,
9997         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9998         genGenPointerSet): fixed bug #892400
9999         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
10000         to eliminate build warnings.
10001         * src/SDCCast.c (processParms),
10002         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
10003         fixed bug 751859
10004         * support/valdiag/valdiag.py: added GCC to the list of defines active
10005         when compiling with gcc
10006
10007 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10008
10009         * support/Util/SDCCerr.h,
10010         * support/Util/SDCCerr.c,
10011         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
10012         with an incomplete type (fixed bug #883734)
10013         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
10014
10015 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10016
10017         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
10018
10019 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10020
10021         * src/SDCCast.c (decorateType),
10022         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
10023         function pointer implementation
10024         * support/regression/tests/funptrs.c: added tests to verify both forms
10025         of function pointers work correctly. Added tests to verify parameters
10026         are passed in the correct order.
10027
10028 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
10029
10030         * device.c (regCompare): registers are sorted by ascending
10031         address and increasing size,
10032         * main.c (_pic16_finaliseOptions): removed the declaration
10033         of compiler macro MCU. Now a macro of the format pic18fxxxx
10034         will be defined from the command line
10035
10036 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
10037             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
10038
10039         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
10040         PCOP_RLCF was overwritten!
10041         * gen.c (genSkip): commented out calls to pic16_emitcode,
10042         * (genCmpEQ): fixed "long" compares, only high word did get compared,
10043         * (genlshTwo),
10044         * (genRRC): added debugging info,
10045         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
10046         overwritten while shifting,
10047         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
10048         overwritten while shifting,
10049         * (AccLsh),
10050         * (AccRsh),
10051         * (shiftLLeftOrResult),
10052         * (shiftRLeftOrResult),
10053         * (shiftRLong),
10054         * (shiftLLong): Implemented with pic16_emitpcode
10055         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
10056         * (genLeftShift): Fixed bug, operand for shift by variable always
10057         was "and"ed with 0x0f,
10058         * (genLeftShiftLiteral),
10059         * (genrshTwo),
10060         * (genRightShiftLiteral): added debugging info,
10061         * (genrshFour): added comment,
10062         * (genRightShift): determined signedness from operand "left"
10063         instead of "result"
10064
10065 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10066
10067         * src/SDCCicode.c (geniCodeParms),
10068         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
10069         function pointers, fixed function pointer bugs #861242 and #861896
10070
10071 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10072
10073         * device/include/c8051f000.h,
10074         * device/include/c8051f120.h,
10075         * device/include/c8051f300.h: added header files for Silicon
10076         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
10077
10078 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
10079
10080         * src/SDCCast.c (processParams): added new type flow and restructured
10081         (gatherAutoInit): added new type flow
10082         (addCast): cosmetic changes
10083         (getLeftResultType): added new type flow for array indices, patch
10084         provided by Stas, see FR #877103
10085         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
10086         array index patch by Stas
10087         * src/SDCCast.h: added prototype getResultTypeFromType()
10088         * src/SDCCval.h,
10089         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
10090         * src/pic/glue.c (pic14emitStaticSeg),
10091         * src/pic16/glue.c (pic16emitStaticSeg),
10092         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
10093         for initialization of symbols
10094         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
10095         * support/Util/SDCCerr.h:
10096         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
10097         * .version: bumped version number to 2.3.8
10098         * device/include/Makefile.in (install),
10099         * doc/Makefile (install): changed to 'rm `find ...`' construct to
10100         avoid warnings
10101
10102 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
10103
10104         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
10105         Slade Rich fixed an optimization bug
10106         * src/pic/pcodepeep.c,
10107         * src/pic/pcoderegs.c
10108         * doc/Makefile (install): added test for directory
10109
10110 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10111
10112         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
10113         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
10114         * src/pic/ralloc.c (getRegPtr, getRegGpr),
10115         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
10116         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
10117         * as/mcs51/asexpr.c (term),
10118         * as/hc08/asexpr.c (term): fixed bug #887146
10119
10120 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10121
10122         * src/z80/gen.c (genMult): handle single byte result product
10123         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
10124         DUMMY_READ_VOLATILE (fixed bug #886367)
10125
10126 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
10127
10128         * support/regression/tests/libmullong.c: fixed logic, on little endian
10129         hosts we ended without a mullong_wrapper()
10130
10131 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10132
10133         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
10134         virus/worm forged address usage.
10135
10136 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
10137
10138         Fixed promotion, it should be done on AST level:
10139         * src/SDCCast.c (addCast): added promotion to int
10140         (decorateType): updated call to upCast()
10141         * src/SDCCicode.c (geniCodeLeftShift): removed call to
10142         usualUnaryConversions()
10143
10144 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
10145
10146         * support/regression/tests/literalop.c (mulWrapper): Added a
10147         wrapper to remove integer overflow warnings.
10148
10149         * support/regression/tests/float_trans.c: Made work on host.
10150
10151         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
10152         location of sz80.
10153
10154         * support/regression/generate-cases.py (main): Changed from inline
10155         to a main method.
10156
10157         * doc/Makefile (install): Changed to depth first to get rid of
10158         missing directory install warning.
10159
10160         * as/Makefile (install-doc): Made work on Mac.
10161
10162 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
10163
10164         * src/SDCCast.c: added an additional type flow in decorateType() of
10165         opposite direction, see feature request #860006; it's enabled at runtime
10166         by setting the environment variable SDCC_NEWTYPEFLOW
10167         * src/SDCCast.h: changed prototype of decorateType()
10168         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
10169         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
10170         'char' to 'int' can be omitted, if both operands are 'unsigned char';
10171         see feature request #877103
10172         * src/SDCCval.c: updated call of decorateType()
10173         (valBitwise): fixed bug #882876
10174         (valMinus): added promotion
10175         (valLogicAndOr): result is unsigned
10176         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
10177         * src/SDCCsymt.c (computeType),
10178         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
10179         must not cause an unsigned operation
10180         * src/pic/glue (pic14emitRegularMap),
10181         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
10182
10183 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
10184
10185         * src/pic/pcode.c (PCodeID): commented out left over debug code
10186
10187 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
10188
10189         * support/valdiag/tests/overflow.c: added shift tests
10190         * src/pic/device.c,
10191         * src/pic/gen.c,
10192         * src/pic/gen.h,
10193         * src/pic/glue.c,
10194         * src/pic/main.c,
10195         * src/pic/pcode.c,
10196         * src/pic/pcode.h,
10197         * src/pic/pcodepeep.c,
10198         * src/pic/pcoderegs.c,
10199         * src/pic/ralloc.c,
10200         * src/pic/ralloc.h: applied patch from Slade Rich;
10201         added support for multiple code pages and multiple RAM banks on the
10202         PIC 14 port. The ASM files now no longer simply assume all the
10203         code / RAM are in the same page / bank. This means the linker can
10204         safely allocate code/RAM of separate ASM files to different pages/banks.
10205         * doc/sdccman.lyx: added Slade's tips
10206         * src/mcs51/peeph.def: fixed bug #880768
10207
10208 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10209
10210         * src/hc08/ralloc.c (rematStr): fixed bug #879282
10211         * src/SDCCast.c (decorateType): fixed bug #880197
10212
10213 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
10214
10215         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
10216         getopt.h.
10217
10218         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
10219         strtof is not part of C89 and isn't included with Mac OS X.
10220
10221 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10222
10223         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
10224         shiftL2Left2Result): fixed bug #879326
10225         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
10226         (genMultOneByte): fixed bug in signed vs unsigned multiplication
10227         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
10228         address fetch for clr instruction
10229         * device/lib/hc08/_mulint.c: created optimized assembly version
10230         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
10231
10232 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
10233
10234         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
10235         proposed in FR #877103
10236
10237 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
10238
10239         * src/SDCCval.c (cheapestVal): added missing checks
10240         * src/SDCCicode.c (usualBinaryConversions): fixed condition
10241         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
10242
10243 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
10244
10245         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
10246         equal operands
10247
10248 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
10249
10250         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
10251         loaded with the linker search paths (-L arguments) and the libraries
10252         to be linked with the current source (-l arguments). Changes
10253         currently will affect only the pic16 port.
10254         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
10255         include path the port specific paths and port specific libraries,
10256         * gplink command now contains the $3 argument,
10257         * src/pic16/device.h,
10258         * src/pic16/device.c,: structure PIC_device is made public and
10259         renamed to PIC16_device, the same for variable Pics which is renamed
10260         to Pics16. Updated all references to them.
10261         * src/pic16/glue.c (pic16glue): corrected bug with code
10262         initialization which bypassed the variable initializations block.
10263
10264         * device/lib/pic16/Makefile.rules: removed --penable-stack from
10265         COMPILE_FLAGS and added the --nostdinc option
10266
10267 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10268
10269         * device/include/mc68hc908jb8.h: Register defs for another member
10270         of the hc08 family. Contributed by Bjorn Bringert - thanks!
10271
10272 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
10273
10274         Documenting changes from previous commits.
10275         * configure.in (version 1.56),
10276         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
10277         when generating output files to configure the pic16 library,
10278         but now I've commented it out, since gputils aren't installed in the
10279         SF compile farm, so library won't compile
10280
10281         * device/lib/Makefile.in (version 1.56): initially I've added in
10282         target 'all' the prerequestive 'model-pic16' so it compiled the
10283         pic16 library, but now I've commented it out for the same reasons
10284         above,
10285         * added targets 'model-pic16' and 'objects-pic16' to compile the
10286         library
10287         * added target 'port-specific-objects-pic16' to handle the
10288         generated libraries and copy them into the build/ directory
10289         * added target 'clean-intermediate-pic16' to clean intermediate
10290         files into pic16 directory
10291         * in target 'installdirs' added line to create directory pic16 in
10292         the installation path
10293
10294         * device/include/Makefile.in (version 1.11): in target 'install'
10295         added lines to copy all header files to installation path,
10296         * in target 'installdirs' added line create directory for pic16
10297         headers in the installation path
10298
10299 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
10300
10301         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
10302          a function call
10303
10304 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
10305
10306         * configure,
10307         * device/lib/configure.in,
10308         * device/lib/configure: fixed for autoconf 2.57
10309
10310 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10311
10312         * src/z80/main.c (_parseOptions): fixed the portmode= command line
10313         option so that it actually works. Made it specific to the z80, since
10314         the gbz80 doesn't have these kinds of I/O ports.
10315
10316 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10317
10318         * device/include/z180.h,
10319         * device/lib/_memcpy.c,
10320         * device/lib/_memmove.c,
10321         * device/lib/_mulint.c,
10322         * device/lib/ser_ir.c,
10323         * device/lib/ser_ir_cts_rts.c,
10324         * device/lib/_strcmp.c,
10325         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
10326         * src/z80/main.c (_process_pragma): add support for pragmas bank and
10327         portmode; added deprecation warning for bank= and protmode= forms.
10328         Also, guard against buffer overflow.
10329         * src/z80/gen.c (aopGet): generate better code for sfr banked read
10330
10331 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10332
10333         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
10334         changed interrupt vector table generation to only emit declared vectors.
10335         * device/include/Makefile.in: added missing backslash
10336         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
10337
10338 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
10339
10340         Mainly changes to support compilation of the device libraries
10341         * src/pic16/device.c: stack is allocated via symbol and not
10342         via literal number. The symbol is placed in the corresponding
10343         position of the data ram
10344         * (pic16_dump_section): relocatable and absolute uninitialized
10345         data are now emitted in sorted order to reduce section naming,
10346         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
10347         weren't marked as being in the access bank,
10348
10349 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
10350
10351         Added portion of GNU PIC Library under the directory
10352         device/include/pic16 and device/lib/pic16. These files
10353         contain the declarations of SFRs for the PIC18Fxx2 devices.
10354         The directory is initialized via configure from toplevel.
10355
10356 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
10357
10358         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
10359         the spilllocations to be compared correctly
10360
10361 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
10362
10363         * src/SDCCast.c (decorateType): fixed bug introduced today
10364
10365 2004-01-12  Borut Razem <borut.razem AT siol.net>
10366
10367         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
10368         doc/sdccman.lyx: upper case pragmas are deprecated
10369
10370 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
10371
10372         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
10373         in simpler and even better code
10374
10375 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
10376
10377         * src/SDCCicode.c (operandOperation): fixed bug #874819
10378         * src/SDCCast.c (decorateType): fixed
10379         char foo (unsigned long ul) { return ul > 0; }
10380
10381 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10382
10383         * doc/sdccman.lyx: Moved and added some sections, small changes
10384         all over. Telling LaTeX to be less strict with word spacing
10385         to better keep the right margin. Changed some notes about
10386         maintainance of the ports in section 3.2.1 - is it OK like this?
10387
10388 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
10389
10390         SDCC source changes:
10391         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
10392         convilong): modified to inform the pic16 port that builtin functions
10393         are external
10394
10395         PIC16 PORT specific changes:
10396         * src/pic16/device.c pic16_dump_equates() added,
10397         processor registers declared internally by the port are emitted in
10398         the translation as equates,
10399         * src/pic16/gen.c: inline code is passed unprocessed to the
10400         translation,
10401         * (pic16_popGetLit2): fnuction modified to take second operand as
10402         pCodeOp pointer and not as literal,
10403         * (popRegFromIdx): prefixed with pic16_,
10404         * (pic16_popCombine2): modified to receive already allocated pCode
10405         operands,
10406         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
10407         * (genFunction): initializes local stack frame and pushes on stack
10408         all the registers used by this function,
10409         * (genEndFunction): restores all registers from stack and restores
10410         stack frame,
10411         * src/pic16/glue.c (pic16emitRegularMap): various changes and
10412         improvements,
10413         * (pic16glue): changed the program startup sequence,
10414         * added new dbName code 'A' for functions placed in absolute section
10415         * src/pic16/main.c: added function attribute _naked,
10416         * added pragma 'code' to place a fnuction at an absolute address,
10417         * added command line arguments --debug-ralloc and --pcode-verbose,
10418         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
10419         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
10420         * (pic16_newpCodeOpLit2): modified to take the second operand as
10421         pCodeOp pointer,
10422         * (pic16_printpBlock): modified to emit each function in a separate
10423         section,
10424         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
10425         UPPER for immediate operands,
10426         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
10427         instruction,
10428         * src/pic16/peeph.def: all peepholes with movff are commented out,
10429         because there is a problem in the pcode peep optimizer,
10430         * src/pic16/ralloc.c: the register allocator can now reuse local
10431         function symbols for another function. This saves register usage.
10432         * src/pic16/ralloc.h: added flag isLocal in structure regs,
10433
10434         Added file src/pic16/NOTES with information about program writing on
10435         the current port version.
10436
10437 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10438
10439         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
10440         and peephole 252 (array access)
10441
10442 2004-01-09  Borut Razem <borut.razem AT siol.net>
10443
10444         * src/SDCCmain.c : fixed #872250: -l command line defined library
10445           files are scanned before standard library files
10446
10447 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10448
10449         * src/SDCCast.c (decorateType): fixed bug #874046
10450
10451 2004-01-09  Borut Razem <borut.razem AT siol.net>
10452
10453         * support/scripts/sdcc.nsi: remove previous installation
10454
10455 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10456
10457         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
10458         bytes for last interrupt vector (mcs51)
10459         * sdcc.spec: fixed typo
10460
10461 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10462
10463         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
10464         gen51Code): more efficient parameter receive for --model-large
10465         ("bug" #845294)
10466
10467 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10468
10469         * src/ds390/main.c,
10470         * src/z80/main.c: added missed needLinkerScript flags (more than
10471         one port structure defined in these file)
10472         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
10473         bug #795325
10474
10475 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
10476
10477         * src/SDCCmain.c: removed various references to DEFAULT_PORT
10478         * src/port.h: added flag needLinkerScript in port->linker
10479         structure to inform whether to create a .lnk file or not,
10480         * src/avr/main.c,
10481         * src/ds390/main.c,
10482         * src/hc08/main.c,
10483         * src/mcs51/main.c,
10484         * src/pic/main.c,
10485         * src/pic16/main.c,
10486         * src/xa51/main.c,
10487         * src/z80/main.c: changed appropriately to configure
10488         needLinkerScript flag
10489         * src/pic/gen.c,
10490         * src/pic16/gen.c (genAddrOf): fixed bug #863624
10491         * src/pic/glue.c: added variable udata_section_name to
10492         override default uninitialized data segment definition for
10493         devices only with SHAREBANK memory (reported from Erik Epetrich)
10494         * (pic14emitOverlay): modified to emit a commented overlay segment
10495         directive when no overlay data exist
10496         * (picglue): modified to emit uninitialized data segment
10497         according to udata_section_name
10498         * src/pic/main.c (_pic14_parseOptions): added command line
10499         options --udata-section-name=[name] to override default
10500         udata definition name
10501         * modified _linkCmd and _asmCmd to include compiler passed
10502         arguments via -W option
10503         * src/pic16/main.c: added $l in _asmCmd, changed extension for
10504         object file from '.rel' to '.o' in port->linker structure,
10505         changed size of fptr from 2 to 3 in port structure
10506
10507 2004-01-07  Borut Razem <borut.razem AT siol.net>
10508
10509         * support/scripts/sdcc.nsi: update PATH
10510         * support/scripts/sdcc.ico: craeted
10511
10512 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
10513
10514         * device/include/Makefile.in: fix install
10515         * doc/Makefile: fix install
10516
10517 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10518
10519         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
10520         in bug #860505
10521         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
10522         how the function variable allocation summary is displayed; also
10523         include information about variables allocated to the overlay
10524         segment
10525
10526 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10527
10528         * as/mcs51/lkmain.c: Help about -Y option
10529         * as/mcs51/lkarea.c: Fixed gcc warnings
10530
10531 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
10532
10533         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
10534         fixed warning
10535         * support/valdiag/tests/overflow.c: added
10536         * src/SDCCast.c (decorateType),
10537         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
10538         LEFT_OP (left shift)
10539
10540 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10541
10542         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
10543         (default behaviour).
10544
10545 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10546
10547         A python script to validate compiler diagnostic messages. It can be
10548         used to verify that sdcc complains about bad c source code and
10549         gives a good location of the error.
10550         * support/valdiag/Makefile,
10551         * support/valdiag/valdiag.py,
10552         * support/valdiag/tests/*
10553
10554 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10555
10556         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
10557         * src/SDCCsymt.c (newEnumType),
10558         * src/SDCCsymt.h
10559         * support/Util/SDCCerr.c,
10560         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
10561         enum related bugs.
10562         * support/regression/tests/enum.c: added test for enum values that
10563         require at least 2 bytes of storage.
10564
10565 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
10566
10567         * src/common.h: added ifndef/define/endif macros
10568         around the header file.
10569         Bug reported from Jesus Calvino-Fraga
10570
10571 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
10572
10573         * sdcc.spec: updated
10574         * device/include/Makefile.in: don't install CVS directories
10575         * device/lib/Makefile.in: added removal of CVS directories after install
10576         * doc/Makefile: fixed install, added local_icons
10577         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
10578         * src/mcs51/gen.c (genRightShift): fixed bug #870788
10579         * src/ds390/gen.c (genRightShift): fixed bug #870788
10580         * src/SDCCast.c (decorateType): fixed bug #870781
10581
10582 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
10583
10584         PIC16 port related changes:
10585         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
10586         added variable stackPos,
10587
10588         * gen.c: genCall, assignResultValue: added support for
10589         pushing/retrieving function parameters to/from stack,
10590         genFunction,genEndFunction: setup stack frame for the
10591         generated function,
10592         genAddrOf: will be changed according to bug 863624
10593
10594         * added files genutils.c and genutils.h which contain gen*
10595         debugged and optimised functions extracted from gen.c
10596
10597         * glue.c: added variable 'externs' which holds extern symbols,
10598         pic16emitRegularMap: is modified to properly handle relocatable
10599          symbols under the new scheme,
10600         pic16createInterruptVect: is modified
10601         pic16printPublics: is modified to emit 'global' assembler directives,
10602         added pic16_printExterns to print extern symbols,
10603         pic16glue: initializes stack/frame pointer in the beginning of
10604         the assembly output. Temporary hack, will be corrected later,
10605         because gplink yet does not support stack and SDCC does not
10606         yet support a type of crt0.o object to create the final binary.
10607
10608         * Removed many lines that contain 8051 legacy code.
10609         * The code is finally placed under a 'code' directive.
10610         * Added port specific options.
10611
10612         * _process_pragma: simplified since now we do not need *special*
10613         include file to define SFR registers. But a separate header
10614         will be needed. This will be developed later.
10615         * _pic16_parseOptions: added, parses port specific options:
10616         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
10617         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
10618         --preplace-udata-with=
10619
10620         * _pic16_setDefaultOptions: modified to initialize section names,
10621         but hack is temporarly out of order since it needs improvement.
10622         * _pic16_genAssemblerPreamble: configuration words are emitted by
10623         their address instead of their name. This part is incomplete and
10624         supports only the 18Fxx2 devices. Other devices will emit an error
10625         during assembly since they do not contain the same set of config
10626         registers
10627         * _pic16_genIVT: is modified,
10628
10629         * pcode.c: added definitions for some hardware registers that are needed
10630         for stack support
10631         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
10632         All PCI entries are updated. Now LFSR is supported.
10633         * Removed pic16_pciTRIS is mentioned by mdubuc in source
10634         * added pic16_newpCodeOpLit2 to support instructions with
10635         two literal arguments
10636         * pic16_pCode2str: corrected code that emits assembler instructions
10637         with two literal operands and those that have an access bit modifier
10638         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
10639         this fixes a bug which caused some labels to be lost, when an
10640         assembler directive was added, i.e. banksel,
10641         * pic16_FixRegisterBanking: improved logic that causes the insertion
10642         of bank switching,
10643         * InlineFunction: functions that are called once, are not any more
10644         inlined. This can be a port option in the future,
10645
10646         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
10647
10648         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
10649         hold the corresponding uninitialized symbols,
10650         * pic16_allocProcessorRegister: registers have explicit marked the
10651         accessBank field,
10652         * pic16_allocInternalRegister: registers are explicit marked as
10653         not used,
10654         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
10655         processing list, so bit registers were lost,
10656         *
10657
10658         * ralloc.h: added field 'accessBank' and original symbol operand
10659         in register definition,
10660         * removed the field isMapped from register definition,
10661
10662         ** Several functions have been removed from various sources:
10663         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
10664         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
10665         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
10666         pic16_assignRelocatableRegisters
10667
10668         ** others have been introduced:
10669         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
10670         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
10671
10672 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
10673
10674         * support/scripts/inc2h.pl: changed definition of BIT_AT
10675         to emit 'sbit at' instead of 'bit at'. This was a request.
10676
10677         PIC16 port related preliminary changes:
10678         * gen.c: prefixed function popRegFromString with
10679         pic16_ and all references to it corrected
10680         * pcode.c: all pic16_pc_* hardware registers prefixed
10681         with underscore (_),
10682         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
10683         * ralloc.c: newReg(): when register is REG_SFR then
10684         set address to rIdx,
10685         pic16_allocProcessorRegister(): marks register wasUsed=0
10686         pic16_writeUsedRegs(): added a call to assign processor
10687         registers via pic16_assignFixedRegisters
10688
10689 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10690
10691         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
10692         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
10693         variables in unused register banks.  Also the SSEG is placed
10694         wherever there is enough space for it, and IDATA can be anywhere
10695         in internal RAM.  For now compile using -Wl-Y[stack_size].
10696         The mem file is different for this option as well, since it
10697         makes no sense of talking about DSEG lenght.
10698
10699 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
10700
10701         * src/SDCClrange.c: fixed bug 869095 that caused segfault
10702         in certain cases, e.g. when ROM assignment, patch provided
10703         from Albert den Haan.
10704
10705 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
10706
10707         Many signedness and type propagation fixes:
10708         * src/SDCCicode.c: made geniCodeCast() static
10709         replaced SPEC_ by IS_ (cosmetic)
10710         (operandOperation): fixed div and mod operation
10711         (usualBinaryConversions): added support for promotion of char
10712         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
10713         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
10714         (geniCodeAdd): an array index will stay unsigned, even if promoted
10715         from char to int
10716         (geniCodeArray): ditto
10717         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
10718         * src/SDCCsymt.c (computeType): added more support for char;
10719         promotion of char is selectable by promoteCharToInt, fixed signedness
10720         for all cases
10721         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
10722         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
10723         * src/SDCCval (val*): replaced signedness calculation by
10724         computeType()
10725         rearranged if-branches (cosmetic)
10726         (valShift): added warning W_SHIFT_CHANGED
10727         (valCompare): fixed problem with different types
10728         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
10729         * support/regression/tests/literalop.c: added many cases
10730         * support/regression/tests/ast_constant_folding.c: changed finally to
10731         'unsigned int'
10732         * .version: new year, new version: 2.3.7
10733         * src/SDCCmain.c (main): applied patch #866468
10734         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
10735         provided by Scott Bronson
10736         * doc/sdccman.lyx: updated documentation for sdcdb
10737         updated and added chapter tips
10738
10739 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10740
10741         * src/SDCCsymt.h: missing from yesterday's commits
10742
10743 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10744
10745         * src/SDCC.y (struct_or_union_specifier),
10746         * support/Util/SDCCerr.c,
10747         * support/Util/SDCCerr.h: verify that struct & union tags are used
10748         as declared.
10749
10750 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10751
10752         * src/SDCCglobl.h: missing from yesterday's commits
10753
10754 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10755
10756         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
10757         sft_attributes, struct_declaration, parameter_declaration,
10758         type_name, start_block, declaration_list),
10759         * src/SDCC.lex (check_type): support redefinition of typedef names
10760
10761 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10762
10763         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
10764         aligned xdata arrays. Erik helped me with the if clause.
10765
10766 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10767
10768         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
10769         warning
10770
10771 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10772
10773         * src/SDCCast.h,
10774         * src/SDCCast.c (newAst_),
10775         * src/SDCCicode.h,
10776         * src/SDCCicode.c (ast2iCode, newiCode),
10777         * src/SDCCglobl.h,
10778         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
10779         expr, statement, expression_statement, selection_statement,
10780         iteration_statement, expr_opt, jump_statement): foundation for tracking
10781         sequence points
10782         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
10783         point code too)
10784
10785 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10786
10787         * support/Util/SDCCerr.c,
10788         * src/SDCCast.h,
10789         * src/SDCCast.c (createCase, createDefault, decorateType),
10790         * src/SDCClabel.c (labelUnreach),
10791         * src/SDCC.y (labeled_statement, jump_statement): More improvements
10792         to error messages.
10793         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
10794         (with thanks to Stas Sergeev)
10795         * device/include/time.h,
10796         * device/lib/time.c (CheckTime): suppress unreachable code warning
10797
10798 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10799
10800         * src/SDCCast.c (createIvalCharPtr),
10801         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
10802         bug #753752)
10803         * support/regression/tests/nullstring.c: tests for these two bugs
10804
10805 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10806
10807         * support/Util/SDCCerr.h,
10808         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
10809         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
10810         about storage class and 'at' used inside struct or union
10811         * src/SDCCBBlock.c (iCodeFromeBBlock),
10812         * src/SDCCcse.c (ifxOptimize),
10813         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
10814         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
10815         printIval, emitStaticSeg, emitOverlay),
10816         * src/SDCClabel.c (deleteIfx),
10817         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
10818         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
10819         gatherAutoInit, processParms),
10820         * support/Util/SDCCerr.h,
10821         * support/Util/SDCCerr.c (werrorfl): Support for better error location
10822         reporting for post-parse errors.
10823
10824 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10825
10826         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
10827         implicit casts via union; they don't work on big endian systems
10828         (possible fix for bug #861138)
10829
10830 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10831
10832         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
10833         * src/mcs51/main.c: fixed the fix for bug #737001
10834
10835 2003-12-15  Borut Razem <borut.razem AT siol.net>
10836
10837         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
10838
10839 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10840
10841         * support/makebin/makebin.c: put output in binary mode
10842
10843 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10844
10845         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
10846         xdata and data memory on startup. Set the environment variable
10847         SDCC_NOGENRAMCLEAR to disable this.
10848         * src/mcs51/peephole.def,
10849         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
10850         (allows non-interrupt and interrupt code to safely compete for a resource
10851         without the non-interrupt code having to disable interrupts)
10852
10853 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10854
10855         * src/SDCCicode.c (geniCodeAdd),
10856         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
10857         with valFromType if type might be a pointer and host is big endian).
10858         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
10859         types, not just integer types.
10860         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
10861         multiply defined with mismatching "at" address.
10862
10863 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10864
10865         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
10866         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
10867         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
10868         with embedded nulls (fixed bug #753752)
10869
10870 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10871
10872         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
10873         Apparently this did not see much testing (endless loop)
10874
10875 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10876
10877         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
10878
10879 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10880
10881         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
10882         gracefully handle NULL memmap pointers
10883
10884 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10885
10886         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
10887         instead of deleting the iCode when an operand is volatile
10888         * src/z80/gen.c (genDummyRead),
10889         * src/mcs51/gen.c (genDummyRead),
10890         * src/ds390/gen.c (genDummyRead),
10891         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
10892         not just IC_RIGHT
10893         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
10894         * src/SDCC.y: fixed bug #850420
10895
10896 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10897
10898         Applied z80 i/o port patch from Peter Townson and fixed some operators
10899         to better handle operands in A register.
10900         * device/include/z180.h
10901         * src/SDCC.y
10902         * src/SDCCglue.c
10903         * src/z80/gen.c
10904         * src/z80/gen.h
10905         * src/z80/main.c
10906         * src/z80/peeph-z80.def
10907         * src/z80/peeph.def
10908         * src/z80/z80.h
10909
10910 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10911
10912         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
10913
10914 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10915
10916         * device/lib/hc08/_mullong.c: Removed extra #endif
10917
10918 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10919
10920         * sim/ucsim/hc08.src/inst.cc,
10921         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
10922         carries from x to h
10923         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
10924         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
10925         * device/include/stdarg.h: fixed varargs for hc08
10926         * device/lib/Makefile.in,
10927         * device/lib/hc08/Makefile,
10928         * device/lib/hc08/_mulint.c,
10929         * device/lib/hc08/_mullong.c: fixed some endian problems
10930
10931 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10932
10933         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
10934         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
10935         * device/lib/_gptrget.c,
10936         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
10937
10938 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10939
10940         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
10941         * src/SDCCast.c (astErrors): fixed bug #846007
10942         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
10943
10944 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10945
10946         * src/SDCCast.c (decorateType): disabled a transformation I added in
10947         revision 1.188 (access to fields of a structure at an absolute address);
10948         it breaks with bitfields, extern declarations, and gcse analysis.
10949         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
10950         could be assigned through a pointer, so don't complain.
10951         * src/SDCCast.c (astErrors),
10952         * src/SDCCast.h,
10953         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
10954
10955 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
10956
10957         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
10958         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
10959         output of __config directives, since gpasm now supports them
10960         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
10961         pre-processor macro, i.e. -DMCU=p18f452
10962         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
10963         and modified to handle 'cast' icode similarly to '=' icode
10964         * src/pic16/device.h (typedef struct PIC_device): added field
10965         'extMIface' to indicate that chip has external memory interface
10966         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
10967         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
10968         18F8720
10969
10970 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10971
10972         * src/SDCC.y (pointer): fixed bug #846006
10973         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
10974         * src/SDCCast.c (decorateType): fixed bug #846009
10975         * src/ds390/peeph.def,
10976         * src/ds390/gen.c (genAnd, genOr),
10977         * src/mcs51/peeph.def,
10978         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
10979
10980 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10981
10982         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
10983         * src/SDCCdflow.c
10984         * src/SDCCcse.c
10985         * src/SDCCcse.h
10986         * src/SDCCBBlock.h
10987         * src/SDCCBBlock.c
10988
10989 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
10990
10991         fixed bug #845089
10992         * src/SDCCbitv.h,
10993         * src/SDCCbitv.c: added function to free a bitvector
10994         * src/SDCClrange.h,
10995         * src/SDCClrange.c: added function to recompute the liveranges
10996         * src/avr/ralloc.c,
10997         * src/ds390/ralloc.c,
10998         * src/hc08/ralloc.c,
10999         * src/mcs51/ralloc.c,
11000         * src/pic/ralloc.c,
11001         * src/pic16/ralloc.c,
11002         * src/xa51/ralloc.c,
11003         * src/z80/ralloc.c: recompute the liveranges after register packing
11004
11005 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
11006
11007         * src/SDCCloop.c (newInduction): fixed bug #845630
11008
11009 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11010
11011         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
11012         inadvertantly left behind from my 2003-11-12 change
11013
11014 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11015
11016         Updated headers I neglected to commit yesterday.
11017         * src/SDCClrange.h,
11018         * src/SDCCicode.h
11019
11020 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11021
11022         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
11023         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
11024         * src/SDCCopt.c (eBBlockFromiCode),
11025         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
11026         the creation of the key hash table from the sequencing so it can be used
11027         earlier (for some GCSE bug fixes still pending)
11028
11029 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11030
11031         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
11032         * support/regression/tests/addsub.c: testing genPlus shortcut
11033
11034 2003-11-15  Borut Razem <borut.razem AT siol.net>
11035
11036         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
11037
11038 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11039
11040         * src/SDCCcse.c (cseBBlock): fixed bug #527779
11041         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
11042         ordering is immaterial.
11043         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
11044
11045 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11046
11047         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
11048         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
11049         (SIGSEV) of bug #840381
11050         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
11051         unlink new file before rename if new and old filenames are the same)
11052
11053 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11054
11055         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
11056         uninitialized variables) for the mcs51. Set environment variable
11057         SDCC_GENRAMCLEAR to test.
11058         xdata initialization slightly shorter
11059
11060 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11061
11062         * src/SDCCsymt.h,
11063         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
11064         #838241 & 780691 (basicly the same bug)
11065         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
11066         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
11067
11068 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
11069
11070         * src/SDCCmain.c (linkEdit): "fix" #834252
11071
11072 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11073
11074         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
11075         * src/SDCCast.h,
11076         * src/SDCC.y: fixed bug #819403
11077
11078 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11079
11080         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
11081         the reentrant attribute.
11082         * src/hc08/gen.c (genPackBits): added missing stack readjustment
11083         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
11084         simulation
11085         * src/SDCCast.c (decorateType): fixed bug with storage class not being
11086         updated during pointer dereference; f.e. ~(((char *)1)*) was being
11087         erroneously reduced to a literal.
11088         * src/hc08/ralloc.c (packRegisters, rematStr),
11089         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
11090         some cases
11091
11092 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11093
11094         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
11095         * doc/sdccman.lyx: changed from 'article' to 'book'
11096         * doc/Makefile: readded test_suite_spec and cdbfileformat
11097
11098 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
11099
11100         * device/include/stdlib.h: include malloc.h to comply with ANSI
11101         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
11102
11103 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11104
11105         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
11106         * doc/clean.mk: also remove *.out files
11107         * doc/sdccman.lyx: some additions, larger top/bottom margins
11108
11109 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11110
11111         * src/SDCC.y: fixed bug #837365
11112         * support/regression/tests/bitopcse.c
11113         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
11114         a symbol (might be valop instead)
11115         * device/lib/Makefile.in: added errno.c to HC08SOURCES
11116         * device/lib/clean.mk: added hc08 to the cleaning list
11117
11118 2003-11-04  Borut Razem <borut.razem AT siol.net>
11119
11120         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
11121           made 2003-11-04
11122         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
11123           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
11124           malloc is declared in standard stdlib.h
11125
11126 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11127
11128         * device/lib/hc08/Makefile: need to clean .rel not .o files
11129         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
11130
11131 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11132
11133         * src/port.h,
11134         * src/hc08/main.c,
11135         * src/mcs51/main.c,
11136         * src/ds390/main.c,
11137         * src/z80/main.c,
11138         * src/avr/main.c,
11139         * src/pic/main.c,
11140         * src/pic16/main.c,
11141         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
11142         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
11143         tests (which uses the port's oclsExpense function)
11144         * src/SDCC.y,
11145         * src/SDCCast.c,
11146         * src/SDCCicode.c,
11147         * src/hc08/gen.c,
11148         * src/ds390/gen.c,
11149         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
11150
11151 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11152
11153         * src/SDCCcse.c (ifxOptimize),
11154         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
11155         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
11156         deleting the IFX iCode.
11157         * src/hc08/ralloc.c: reduced unneeded slocs
11158         * src/hc08/gen.c: fixed bug in asmopToBoolean
11159
11160 2003-11-04  Borut Razem <borut.razem AT siol.net>
11161
11162         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
11163           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
11164           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
11165           transferred to configure
11166
11167 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
11168
11169         Use headers defined in the C[++] standards:
11170         * sim/ucsim/gui.src/serio.src/fileio.cc
11171         * sim/ucsim/gui.src/serio.src/frontend.cc
11172         * sim/ucsim/gui.src/serio.src/main.cc
11173         * sim/ucsim/gui.src/serio.src/posix_signal.cc
11174         * support/Util/NewAlloc.c
11175         * as/hc08/lklibr.c
11176         * as/mcs51/lklibr.c
11177         * as/z80/aslist.c
11178         * as/z80/assym.c
11179
11180 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11181
11182         * Added MSVC projects for hc08 assembler and linker:
11183         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
11184         /as/hc08/link_hc08.dsp
11185
11186 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
11187
11188         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
11189
11190 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
11191
11192         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
11193
11194 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11195
11196         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
11197
11198 2003-10-31  Borut Razem <borut.razem AT siol.net>
11199
11200         * support/cpp2/cpplib.h,
11201           support/cpp2/cpplib.c,
11202           support/cpp2/cpplex.c,
11203           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
11204           to switch _asm block preprocessing on / off. Default is
11205           #pragma preproc_asm +
11206
11207 2003-10-31  Borut Razem <borut.razem AT siol.net>
11208
11209         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
11210           when outputting comment blocks (when executed with -C option) and
11211           _asm (SDCPP specific) blocks
11212
11213 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11214
11215         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
11216
11217 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
11218
11219         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
11220
11221 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
11222
11223         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
11224         * src/SDCCast.c (decorateType): fixed bug #832664
11225
11226 2003-10-31  Borut Razem <borut.razem AT siol.net>
11227
11228         * support/cpp2/cpplex.c: fixed for SDCPP:
11229           comments(when executed with -C option) and _asm blocks
11230           were included even if they where in skipped #if block.
11231           Applied solution from GCC cpp 3.3.2
11232
11233 2003-10-31  Borut Razem <borut.razem AT siol.net>
11234
11235         * src/SDCC.lex: sdcc now understands both formats:
11236           '# <line_number> <file_name>' and
11237           '#line <line_number> <file_name>'
11238         * support/cpp2/cppmain.c: sdcpp now generates the standard
11239           '# <line_number> <file_name>' instead of former
11240           '#line <line_number> <file_name>'
11241
11242 2003-10-30  Borut Razem <borut.razem AT siol.net>
11243
11244         * support/cpp2/cpphash.h,
11245         * support/cpp2/cpplib.h
11246         * support/cpp2/cpplex.c,
11247         * support/cpp2/cppmain.c,
11248         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
11249
11250 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11251
11252         Fixed a number of problems revealed by bug #827883.
11253         * src/SDCCloop.c (loopInvariants): Spill location of the
11254         result operand should be recomputed if extracted from
11255         a loop. Also, don't extract assignments of an iTemp
11256         from a literal.
11257         * src/SDCCast.c (isConformingBody): loop reversal should
11258         not occur if the control variable is involved with a
11259         relational operator.
11260
11261 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
11262
11263         * .version: bumped to 2.3.6 to reflect the big improvements
11264         made by Erik and Klaus. Thanks!
11265
11266 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
11267
11268         Replaced the livrange code.
11269         * src/SDCClrange.c: added new LR code
11270         * src/SDCCloop.c,
11271         * src/SDCCBBlock.h: removed remainig parts from old LR code
11272         * src/ds390/ralloc.c,
11273         * src/ds390/gen.c: minor fixes to make it work with new code
11274
11275 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11276
11277         * as/hc08/asm.h,
11278         * as/hc08/lkrloc.c,
11279         * src/hc08/gen.c,
11280         * src/hc08/ralloc.c: Fix various warnings related to the hc08
11281         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
11282         (tweaked fix for bug #818696)
11283
11284 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11285
11286         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
11287
11288 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11289
11290         * src/SDCCmain.c,
11291         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
11292         * src/mcs51/gen.c (gencjneshort),
11293         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
11294         more efficient (per Scott Bronson's suggestion)
11295
11296 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11297
11298         Extended the semantics of the critical keyword to include
11299         individual statements. See RFE #827755 and #799831
11300         * src/SDCC.y
11301         * src/SDCCicode.c
11302         * src/SDCCopt.c
11303         * src/SDCCast.c
11304         * support/Util/SDCCerr.c
11305         * support/Util/SDCCerr.h
11306         * src/mcs51/gen.c
11307         * src/ds390/gen.c
11308         * src/hc08/gen.c
11309
11310 2003-10-19  Borut Razem <borut.razem AT siol.net>
11311
11312         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
11313
11314 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11315
11316         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
11317         Fixed bug #818696
11318         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
11319         and predecrement operand is displayed
11320
11321 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
11322
11323         * src/SDCCval.c (valMinus): fixed bug #826041
11324
11325 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11326
11327         Some hc08 related updates that I missed earlier
11328         * sim/ucsim/stypes.h
11329         * support/regression/ports/hc08/spec.mk
11330
11331 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11332
11333         New target "hc08" for the Motorola 68hc08 family of micros
11334
11335         * configure
11336         * configure.in
11337         * Makefile
11338         * src/hc08/*
11339         * src/SDCCmain.c
11340         * src/port.h
11341         * sim/ucsim/hc08.src/*
11342         * sim/ucsim/configure.in
11343         * src/ucsim/configure
11344         * sim/ucsim/packages_in.mk
11345         * as/hc08/*
11346         * as/Makefile
11347         * device/include/mc68hc908qy.h
11348         * device/lib/hc08/*
11349         * device/lib/Makefile.in
11350         * support/regression/ports/hc08/*
11351         * support/regression/Makefile
11352
11353 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11354
11355         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
11356         regression test
11357         * src/ds390/gen.c (genCast): fixed bug #821957
11358
11359 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
11360
11361         * device/lib/logf.c: "fixed" overlay bug
11362         * support/regression/ports/host/spec.mk: added m library
11363         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
11364         * support/regression/tests/float_trans: added (for Eric)
11365
11366 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
11367
11368         * src/mcs51/gen.c (genCpl): fixed bug
11369         http://sf.net/mailarchive/message.php?msg_id=6263915
11370
11371 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
11372
11373         * src/SDCCast.c (decorateType): added extended constant folding
11374         * src/SDCCsymt.c (computeType): cleanup
11375         * src/SDCCval.c (valShift): minor optimization
11376         * support/regression/tests/ast_constant_folding.c: added
11377
11378 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11379
11380         * src/SDCCmain.c: removed some unintended changes
11381
11382 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11383
11384         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
11385         * src/z80/gen.c: fixed part of bug #817589
11386         * src/SDCCsymt.c (checkFunction): fixed bug #817895
11387
11388 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
11389
11390         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
11391         * src/SDCCcflow.c
11392         * src/SDCCcse.c
11393         * src/SDCCdflow.c
11394         * src/SDCClabel.c
11395         * src/SDCClrange.c
11396         * src/SDCCmem.c
11397         * src/SDCCopt.c
11398         * src/SDCCpeeph.c
11399         * src/SDCCset.c
11400         * src/avr/ralloc.c
11401         * src/ds390/ralloc.c
11402         * src/izt/ralloc.c
11403         * src/mcs51/ralloc.c
11404         * src/pic/ralloc.c
11405         * src/pic16/ralloc.c
11406         * src/xa51/ralloc.c
11407         * src/z80/ralloc.c
11408         * src/z80/gen.c: removed unused label "release:"
11409
11410 2003-10-06  Borut Razem <borut.razem AT siol.net>
11411
11412         * src/SDCC.lex: removed definition of unused variables
11413           save_optimize and save_options
11414
11415 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
11416
11417         * clean.mk: removed '=' in "-maxdepth=1"
11418         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
11419         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
11420
11421 2003-10-06  Borut Razem <borut.razem AT siol.net>
11422
11423         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
11424           my_unput() replaced by unput()
11425
11426 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
11427
11428         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
11429         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
11430         type-punned pointer will break strict-aliasing rules"
11431         Old LR behaviour is again default; Klaus' LR can be choosen by
11432         defining the environment variable LRKLAUS
11433         * src/SDCCBBlock.h
11434         * src/SDCCloop.c
11435         * src/SDCClrange.c
11436         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
11437         * clean.mk: fixed removal of files in bin/CVS/
11438         * device/lib/clean.mk: fixed removal of directories small and large
11439         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
11440         * src/SDCCicode.c,
11441         * src/SDCCval.c: removed superflous test for pedantic
11442
11443 2003-10-05  Borut Razem <borut.razem AT siol.net>
11444
11445         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
11446           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
11447           message "unmatched #pragma SAVE and #pragma RESTORE"
11448
11449 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11450
11451         * doc/sdccman.lyx: various additions and updates (interrupts, inline
11452           assembly, critical functions, atomic, nojtbound)
11453
11454 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
11455
11456         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
11457         * src/SDCCBBlock.h
11458         * src/SDCCloop.c
11459         * src/SDCCloop.h
11460         * src/SDCClrange.c
11461
11462 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11463
11464         * src/z80/gen.h,
11465         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11466         * src/mcs51/gen.h
11467         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11468         * src/ds390/gen.h
11469         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11470         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
11471         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
11472
11473 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11474
11475         * src/z80/gen.c (genRet): fixed bug #524753
11476         * src/z80/gen.c (genCast): fixed internal error on cast from
11477         pointer to long
11478         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
11479         fix for bug #477835 to the z80
11480         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
11481         for tracking iCodes in the peephole optimizer for z80
11482
11483 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11484
11485         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
11486         the other part of bug #814548
11487         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
11488
11489 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
11490
11491         * src/SDCCcse.c: fixed part of bug #814548
11492
11493 2003-09-28  Borut Razem <borut.razem AT siol.net>
11494
11495         * src/asm.c: rewrite of printILine() to use temporary file instead
11496           a pipe
11497         * src/xa51/main.c: commented out declaration of int rewinds
11498
11499 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11500
11501         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
11502
11503 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11504
11505         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
11506         * src/asm.c (printILine): Fixed bug #811015
11507
11508 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11509
11510         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
11511         freeing.
11512
11513 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11514
11515         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
11516         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
11517         to correctly handle general case of AOP_PAIRPTR
11518         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
11519
11520 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11521
11522         * src/mcs51/ralloc.c (fillGaps),
11523         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
11524         register positioning bug)
11525
11526 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
11527
11528         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
11529
11530 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11531
11532         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
11533         genCodePointerGet, genGenPointerGet, genFarPointerSet,
11534         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
11535         (ralloc doesn't intentionally do this now, but perhaps later)
11536         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
11537         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
11538         register positioning bugs (Fixed bug #762602 and #795325)
11539         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
11540         (Fixed bug #808779)
11541         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
11542         lines that --i-code-in-asm generates
11543
11544 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11545
11546         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
11547         trying to fclose a FILE* that was already closed.
11548
11549 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11550
11551         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
11552         of const struct should be treated as if const themselves)
11553
11554 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
11555
11556         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
11557
11558 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11559
11560         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
11561         Unix (/n) and DOS (/r/n) line terminations.
11562
11563 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11564
11565         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
11566         bug #613775
11567
11568 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11569
11570         * src/mcs51/gen.c (genFunction, genEndFunction),
11571         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
11572         and restore of EA so that stack offsets to parameters are
11573         correct when using both critical and reentrant/stack-auto.
11574         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
11575         size (can be triggered in error if sloc is shared between
11576         different sized objects)
11577         * device/include/float.h: fixed macros to explicitly use
11578         unsigned long where needed
11579
11580 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
11581
11582         Feature req. 799831: added code to allow nesting of critical functions
11583         * src/mcs51/gen.c (genFunction, genEndFunction)
11584         * src/ds390/gen.c (genFunction, genEndFunction)
11585
11586 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11587
11588         * src/SDCCsymt.c (sclsFromPtr),
11589         * src/SDCCsymt.h,
11590         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
11591         support for standard C idiom of memory mapped variables; for
11592         example, *((xdata int*)0x1234) = 1 is now internally equivalent
11593         to xdata int at 0x1234 tempvar = 1.
11594         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
11595         provided by Akiya ISHIDA
11596
11597 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
11598
11599         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
11600         * src/SDCCval.c (constVal): added reduction from int to char
11601         * src/SDCCval.c (valMult, valDiv): fixed sign handling
11602         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
11603         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
11604         to ignore the sign
11605         * support/regression/tests/shifts.c: fixed
11606
11607 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11608
11609         * src/z80/gen.c (genXor): Fixed bug #805445
11610
11611 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11612
11613         Fixed bug #621531 (const & volatile confusion in the type chain).
11614         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
11615         refer to the const or volatile state of the pointer itself.
11616
11617         * src/SDCCast.c
11618         * src/SDCCglue.c
11619         * src/SDCCicode.c
11620         * src/SDCCsymt.c
11621         * src/SDCCval.c
11622         * src/SDCC.y
11623         * src/SDCCsymt.h
11624         * src/pic/gen.c
11625         * src/pic/ralloc.c
11626         * src/pic16/gen.c
11627         * src/pic16/ralloc.c
11628         * support/regression/tests/const.c
11629
11630 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11631
11632         When checking for duplicated modules, use absolute paths
11633         instead of relative paths.  Files changed:
11634
11635         * as/mcs51/lklib.c
11636         * link/z80/lklib.c
11637
11638 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11639
11640         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
11641
11642 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11643
11644         * device/include/string.h: added size_t typedef, changed
11645         prototypes to use size_t, eliminated separate reentrant and
11646         non-reentrant declarations, added _memmove declaration
11647         * device/lib/_memcpy.c: changed to use size_t instead of int,
11648         changed /4 to >>2 to avoid division library call
11649         * device/lib/_memcmp.c,
11650         * device/lib/_memset.c,
11651         * device/lib/_strncat.c,
11652         * device/lib/_strncpy.c,
11653         * device/lib/_strncmp.c: changed to use size_t instead of int
11654         * device/lib/_memmove.c: new file (fixed bug #772294)
11655         * device/lib/Makefile.in: added _memmove.c
11656         * device/lib/z80/asm_strings.s: fixed bug #772290
11657         * support/regression/tests/bitfields.c: attempt to fix host assertion
11658         failure on amd64-unknown-linux2.2
11659
11660 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11661
11662         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
11663         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
11664         * as/z80/asmain.c (main): fixed bug #801766
11665
11666 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
11667
11668         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
11669         compilers
11670
11671 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11672
11673         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
11674         reported in bug #800609
11675
11676 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
11677
11678         * Top header beautifications in src/pic16 directory:
11679           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
11680           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
11681           pcoderegs.h, ralloc.c, ralloc.h
11682         * main.c: added top header and GPL license notice
11683         * pcode.c: fixed the if-conditional warning
11684
11685 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
11686
11687         * device/lib/_mullong.c: replaced int by short for gcc
11688
11689 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11690
11691         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
11692         and JUMPTABLE iCodes properly now (worked by accident before)
11693         * src/mcs51/gen.c (leftRightUseAcc),
11694         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
11695         iCode properly now. Use getSize instead of nRegs since a & b
11696         aren't part of the nRegs tally.
11697
11698 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
11699
11700         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
11701         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
11702           before instructions that use the _STATUS register
11703
11704 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
11705
11706         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
11707         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
11708         fetching of the pointer
11709         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
11710         copied from genNearPointerSet()
11711         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
11712         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
11713         If they pop r0/r1 they must be called in the opposite order than aopOp().
11714         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
11715         (resp. --stack-auto), prepared for --xstack
11716
11717 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11718
11719         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
11720
11721 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
11722
11723         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
11724         these ports have their own __sdcc_external_start()
11725
11726 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
11727
11728         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
11729         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
11730         type for bits was changed. It resulted in bit variables becoming
11731         global, which is not permitted in PIC 14 assembly output.
11732
11733 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11734
11735         * doc/sdccman.lyx: various additions and updates. Rearranged sections
11736
11737 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11738
11739         Z80 and MCS51 linkers complaint if a public symbol is defined
11740         in more than one library module:
11741
11742         * as/mcs51/lklib.c
11743         * link/z80/lklib.c
11744         * as/mcs51/Makefile.in
11745
11746 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11747
11748         A few small changes that speed up the peephole optimizer.
11749
11750         * src/SDCCpeeph.c
11751
11752 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11753
11754         Try to make the peephole optimizer smarter by maintaining
11755         an association between the assembly source code and the
11756         iCodes that originated them. Put this information to use
11757         with a new peephole rule condition "notVolatile" so that
11758         the rules can be aggressive yet still safe.
11759
11760         * src/SDCCpeeph.c
11761         * src/SDCCpeeph.h
11762         * src/mcs51/gen.c
11763         * src/mcs51/peeph.def
11764
11765 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11766
11767         Fixed bug #741761
11768
11769         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
11770         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
11771         if the left or right operand symbols have the accuse flag set.
11772
11773 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11774
11775         Changed the type of the result of the ! (NOT) operator to char;
11776         previously it returned the same type as the source. This allows
11777         us to eliminate all the genFloatNot functions (all of its target
11778         implementations were very buggy) since !float can use the same
11779         code as !long now.
11780
11781         * src/SDCCicode.c (ast2iCode): ! returns char
11782         * src/mcs51/gen.c (genNot, genNotFloat),
11783         * src/ds390/gen.c (genNot, genNotFloat),
11784         * src/z80/gen.c (genNot, genNotFloat),
11785         * src/pic/gen.c (genNot, genNotFloat),
11786         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
11787
11788 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
11789
11790         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
11791         1. Interrupt would not compile properly. Ensure PCLATH register is saved
11792            during interrupts. Ensure WSAVE is located at a shared bank address.
11793         2. Fixed page selection in some places
11794         3. Fixed BTFSS/C to where necessary use registers directly and not simply
11795            the registers name strings.
11796         4. Fixed "signed / unsigned compare" compiler warnings.
11797         5. The PIC port manages its own allocation of the general purpose
11798            registers, but makes no attempt to reuse them. As a result when
11799            compiling it soon runs out of general purpose registers. Some
11800            additional code was added to the files pcode.c and device.c to walk
11801            through the function call tree and rename the registers so that they
11802            get reused.
11803
11804         * src/pic/device.c
11805         * src/pic/gen.c
11806         * src/pic/glue.c
11807         * src/pic/pcode.c
11808         * src/pic/pcode.h
11809         * src/pic/ralloc.c
11810         * src/pic/ralloc.h
11811         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
11812         genPlus() & genMinus() when the result is the same as left or right
11813
11814 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11815
11816         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
11817
11818 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11819
11820         Made bitfield a distinct type from bit so that bitfields
11821         convert as per ANSI C and bits retain their traditional
11822         boolean style behaviour. Implemented bitfield support in
11823         the z80 port.
11824
11825         * src/SDCCsymt.h,
11826         * src/SDCCsymt.c,
11827         * src/SDCCast.c,
11828         * src/cdbFile.c,
11829         * src/mcs51/gen.c,
11830         * src/ds390/gen.c: bit v bitfield split
11831         * src/z80/gen.c: New support for bitfields
11832         * support/regression/tests/bitfields.c: reenabled z80,
11833         added more tests
11834
11835 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11836
11837         Rules 246.x, 247.x relate to bitfields, the others speed up
11838         access to xdata mapped I/O devices.
11839
11840         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
11841
11842 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11843
11844         Cleaned up genPackBits and genUnpackBits and added two helper
11845         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
11846         for literal assignments in genPackBits (thanks to Frieder for
11847         reminding me).
11848
11849         * src/mcs51/gen.c
11850         * src/ds390/gen.c
11851
11852 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11853
11854         Fixed bug #748310 (pointer to function type mishandled when the
11855         function name is omitted). Also fixed a SIGSEGV when a function
11856         attribute (reentrant, etc) is used on a non-function or on a
11857         function but misplaced before the parameter list.
11858
11859         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
11860         bug #748310
11861         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
11862         * support/Util/SDCCerr.h,
11863         * support/Util/SDCCerr.c: Added func attr misuse error msg
11864
11865 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
11866
11867         Fixed bug #787649 by anonymous
11868         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
11869         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
11870
11871 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11872
11873         Fixed numerous bitfield problems.
11874
11875         * src/SDCC.y: More bitfield related error checking
11876         * src/SDCCsymt.h,
11877         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
11878         * support/Util/SDCCerr.h,
11879         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
11880         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
11881         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
11882         * support/regression/tests/bitfields.c: tests added
11883
11884 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11885
11886         Made the constant following the "interrupt" keyword optional. If
11887         omitted, the function will not automatically be given an entry
11888         in the interrupt vector table (similar to #pragma NOIV, but
11889         less syntacticly kludgy). The interrupt number is also now
11890         range checked. Also fixed a bug in the high order bit example
11891         in the manual.
11892
11893         * src/SDCC.y
11894         * src/SDCCmem.c
11895         * src/SDCCglue.c
11896         * src/SDCCsymt.h
11897         * support/Util/SDCCerr.c
11898         * support/Util/SDCCerr.h
11899         * doc/sdccman.lyx
11900
11901 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
11902
11903         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
11904         * src/SDCCicode.c (operandOperation): rewritten some ops
11905         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
11906         * src/SDCCsymt.c (computeType): literals are handled the same way as any
11907         other type
11908         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
11909         be re-activated by defining REDUCE_LITERALS)
11910         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
11911         unsigned, but are signed by default
11912         * src/SDCCval.c (constVal): rearranged
11913         * src/SDCCval.c (valMod): preliminary fix
11914         * src/SDCCval.c (valCastLiteral): use TYPE_* types
11915         * support/regression/literalop.c: added, work in progress
11916
11917 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11918
11919         Generate warnings for useless declarations like "char data;"
11920         that don't do what new users expect.
11921
11922         * src/SDCC.y
11923         * support/Util/SDCCerr.h
11924         * support/Util/SDCCerr.c
11925
11926 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
11927
11928         * src/SDCCval.c (valMult): fix overflow detection of negative int
11929
11930 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11931
11932         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
11933
11934         Changes to support big endian targets:
11935
11936         * src/ports.h
11937         * src/SDCCglue.c
11938         * src/avr/main.c
11939         * src/ds390/main.c
11940         * src/izt/i186.c
11941         * src/mcs51/main.c
11942         * src/pic/main.c
11943         * src/pic16/main.c
11944         * src/xa51/main.c
11945         * src/z80/main.c
11946
11947 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
11948
11949         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
11950         * device/lib/time.c: fixed warning "integer overflow in expression"
11951
11952 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
11953
11954         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
11955         * src/SDCCval.c (constVal): changed default to signed; hex and octal
11956         constants are unsigned; added recognition of "u" flag for unsigned
11957         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
11958         * src/SDCCval.c (valDiv, valMod): fixed signdness
11959         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
11960         signedness of modulo, left and right shift
11961         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
11962         * support/Util/SDCCerr.h: added warning W_INT_OVL
11963         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
11964         * src/SDCCast.c (ast_print): improved output of constants
11965
11966 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11967
11968         Fixed some warnings when building with MSVC:
11969
11970         * as/mcs51/asdata.c
11971         * as/z80/asdata.c
11972         * as/mcs51/asm.h
11973         * as/z80/asm.h
11974         * link/z80/aslink.h
11975         * link/z80/lkdata.c
11976         * link/z80/lkeval.c
11977         * link/z80/lkgb.c
11978         * link/z80/lkihx.c
11979         * link/z80/lks19.c
11980         * link/z80/lksym.c
11981         * support/cpp2/cpplib.c
11982         * src/ds390/gen.c
11983         * src/mcs51/gen.c
11984
11985 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
11986
11987         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
11988
11989 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11990
11991         * support/librarian/clean.mk: Do not remove Makefile.
11992         * support/librarian/Makefile: added.
11993
11994 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11995
11996         Added librarian to MSVC build:
11997         * all.dsp
11998         * sdcc.dsw
11999         * support/librarian/librarian.dsp
12000
12001         'configure' not needed for librarian, removed:
12002         * support/librarian/configure
12003         * support/librarian/configure.in
12004         * support/librarian/config_in.h
12005         * support/librarian/Makefile.in
12006
12007         Hopefully these ones built the librarian and the rest of sdcc properly:
12008         * Makefile
12009         * Makefile.common.in
12010
12011         Messed up 'configure', so revert to previous version:
12012         * configure
12013         * configure.in
12014
12015 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
12016
12017         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
12018         there, while the mantissa of a double is "only" 53 bits wide.
12019
12020 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12021
12022         Adding sdcclib to the build.  MSVC project coming soon.
12023         Files added/changed:
12024
12025         * support/librarian/clean.mk
12026         * support/librarian/configure
12027         * support/librarian/configure.in
12028         * support/librarian/config_in.h
12029         * support/librarian/Makefile.bcc
12030         * support/librarian/Makefile.in
12031         * support/librarian/sdcclib.c
12032         * Makefile.bcc
12033         * Makefile
12034         * Makefile.common.in
12035         * configure
12036         * configure.in
12037
12038 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12039
12040         Linker now complaints if linked modules have conflicting options, for
12041         example, one compiled using --model-large and another one compiled with
12042         --model-small.  The following files were modified:
12043
12044         * as/mcs51/asdata.c
12045         * as/mcs51/aslink.h
12046         * as/mcs51/asm.h
12047         * as/mcs51/asmain.c
12048         * as/mcs51/asout.c
12049         * as/mcs51/i51pst.c
12050         * as/mcs51/lkdata.c
12051         * as/mcs51/lklibr.c
12052         * as/mcs51/lkmain.c
12053         * as/z80/asdata.c
12054         * as/z80/asm.h
12055         * as/z80/asmain.c
12056         * as/z80/asout.c
12057         * as/z80/z80pst.c
12058         * link/z80/aslink.h
12059         * link/z80/lkdata.c
12060         * link/z80/lklibr.c
12061         * link/z80/lkmain.c
12062         * src/SDCCglue.c
12063
12064 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12065
12066         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
12067         as/mcs51/lklibr.c: Generate a warning when a library is not found.
12068
12069 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
12070
12071         * src/z80/mappings.i: fix _mul[us][int,long] entries
12072
12073 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12074
12075         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
12076
12077 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
12078
12079         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
12080         * support/regression/tests/bitopcse.c: added
12081         fixed warning:
12082         * src/avr/gen.c:
12083         * src/pic/gen.c:
12084         * src/pic16/gen.c:
12085         * src/z80/gen.c:
12086         * src/xa51/gen.c:
12087
12088 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12089
12090         added support for new library format to z80, gbz80 linkers:
12091         *link/z80/aslink.h
12092         *link/z80/lklex.c
12093         *link/z80/lklib.c
12094         *link/z80/lklist.c
12095
12096 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
12097
12098         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
12099         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
12100
12101 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
12102
12103         added DUMMY_READ_VOLATILE:
12104         * src/SDCC.y:
12105         * src/avr/gen.c:
12106         * src/xa51/gen.c:
12107         * src/z80/gen.c:
12108         * src/pic/gen.c:
12109         * src/pic16/gen.c:
12110         * src/mcs51/gen.c:
12111         * src/ds390/gen.c:
12112         * src/SDCCcse.c (algebraicOpts): many improvements
12113         * src/SDCCcse.h: removed algebraicOpts()
12114         * src/SDCCicode.c (picDummyRead): added
12115
12116 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12117
12118         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
12119         "Insufficient space in data memory".
12120
12121 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12122
12123         * src/mcs51/gen.c: fixed bug #771358
12124         * src/z80/gen.c: fixed bug #759087
12125
12126 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
12127
12128         * src/pic16/glue.c: minor cleanup by Vangelis
12129
12130 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12131
12132         * device/include/regc515c.h: fixed #758477
12133         * device/lib/_gptrget.c: saving some cycles in generic pointer get
12134         * device/lib/_gptrput.c: saved a few bytes
12135         * my tab spacing is 8, yours too?)
12136         * device/lib/_ser.c: process RX bytes earlier than TX bytes
12137         * device/lib/serial.c: process RX bytes earlier than TX bytes
12138         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
12139
12140 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12141
12142         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
12143
12144 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12145
12146     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
12147
12148 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
12149
12150         * device/lib/Makefile.in: bad fix, reverted to 1.43
12151
12152 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
12153
12154         * device/lib/Makefile.in: added missing z80 object files
12155
12156 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
12157
12158         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
12159         pic16 progress by Vangelis:
12160         * src/SDCCglobl.h:
12161         * src/SDCCmain.c:
12162         * src/pic/Makefile:
12163         * src/pic:
12164         * pic/Makefile:
12165         * pic16/device.c:
12166         * pic16/device.h:
12167         * pic16/gen.c:
12168         * pic16/gen.h:
12169         * pic16/genarith.c:
12170         * pic16/glue.c:
12171         * pic16/main.c:
12172         * pic16/pcode.c:
12173         * pic16/pcode.h:
12174         * pic16/pcodepeep.c:
12175         * pic16/peeph.def:
12176
12177 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12178
12179     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
12180
12181 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12182
12183     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
12184     added gbz80 build to MSVC project.
12185     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
12186     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
12187     from 8051 stuff and setup so it links using a .lnk file.
12188
12189 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12190
12191     * support/librarian/sdcclib.c: sdcc librarian.
12192     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
12193     with sdcclib.
12194
12195 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12196
12197     * as/mcs51/lkmain.c: properly handle extensions in function afile.
12198
12199 2003-07-02  Borut Razem <borut.razem AT siol.net>
12200
12201         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
12202         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
12203         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
12204         src/xa51/main.c, src/z80/main.c:
12205         virtualization of glue() function: each port has it's own glue function,
12206         which is accessed by do_glue function pointer in PORT.general structure
12207
12208 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
12209
12210         * DS800C400 fun, improved ROM interface and tinibios.
12211
12212 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
12213
12214         * More support for DS80C400. Now includes beginning of interface to ROM.
12215
12216 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
12217
12218         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
12219
12220 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12221
12222         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
12223
12224 2003-06-19  Borut Razem <borut.razem AT siol.net>
12225
12226         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
12227
12228 2003-06-19  Borut Razem <borut.razem AT siol.net>
12229
12230         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
12231         fixed Z80 port - crt0.o: cannot open.
12232
12233 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
12234
12235         * support/Util/MySystem.c (merge_command): revert bad fix
12236
12237 2003-06-18  Borut Razem <borut.razem AT siol.net>
12238
12239         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
12240
12241 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12242
12243         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
12244         option --use-stdout sends errors to stdout instead of stderr.
12245
12246 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
12247
12248         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
12249
12250 2003-06-15  Borut Razem <borut.razem AT siol.net>
12251
12252         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
12253         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
12254         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
12255         fixed width array of pointers replaced with sets;
12256         multiple include and lib paths ared transferred to preprocessor and linker
12257         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
12258         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
12259         fixed width array of pointers
12260         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
12261         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
12262         fixupPath(), getPathDifference()
12263         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
12264         fixed width array of pointers
12265
12266 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
12267
12268         * src/pic16/ralloc.c: fix warnings
12269         * src/pic16/pcode.c: fix warning
12270
12271 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
12272
12273          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
12274         know all the details, but essentially this set of changes enable
12275         the pic16 port to generate movff instructions and generate assembler
12276         directives,
12277         * src/SDCCmain.c:
12278         * src/pic16/gen.c:
12279         * src/pic16/glue.c:
12280         * src/pic16/pcode.c:
12281         * src/pic16/device.c:
12282         * src/pic16/main.c:
12283         * src/pic16/pcode.h:
12284         * src/pic16/pcoderegs.c:
12285         * src/pic16/ralloc.c:
12286         * src/pic16/ralloc.h:
12287
12288 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12289
12290         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
12291         added option --vc, so sdcc errors and warnings are compatible with
12292         Microsoft Visual Studio.
12293
12294 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12295
12296         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
12297           device/lib/libfloat.lib: added atof function.
12298
12299 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
12300
12301         * doc/sdccman.lyx: updated to Lyx 1.3
12302         * doc/cdbfileformat.lyx: updated to Lyx 1.3
12303         * doc/test_suite_spec.lyx: updated to Lyx 1.3
12304         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
12305
12306 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
12307
12308         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
12309
12310 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12311
12312         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
12313           additions to the "related tools/documentation" section
12314
12315 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
12316
12317         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
12318
12319 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
12320
12321         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
12322         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
12323
12324 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
12325
12326         * doc/sdccman.lyx: fix double dash and other minor things
12327         * doc/Makefile: fix double dash
12328
12329 2003-05-28  Karl Bongers(patches from Martin Helmling)
12330         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
12331           condition and ignore commands.
12332
12333 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12334
12335         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
12336           is in parts still quite out of date, I did changes as far as I felt makes sense
12337           for a non-native english speaker.
12338           Please feel free to add to the manual or to correct my changes.
12339         * doc/Makefile: undid touching the date of intermediate tex files.
12340
12341 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12342
12343         * doc/sdccman.lyx: Manual has an index now
12344
12345 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
12346
12347         Finalize muluint/mulsint and mululong/mulslong merging:
12348         * device/lib/_mulint.c
12349         * device/lib/_mullong.c
12350         * device/lib/gbz80/mul.s
12351         * device/lib/gbz80/stubs.s
12352         * device/lib/z80/mul.s
12353         * device/lib/z80/stubs.s
12354         * src/SDCCsymt.c (initCSupport)
12355
12356 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12357
12358         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
12359         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
12360           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
12361           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
12362           instead of /Zm500.
12363
12364 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12365
12366         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
12367           the regression tests I'm not brave enough to enable 245.b, 245.c
12368         * doc/sdccman.lyx: added latex preamble for hyperref package.
12369           Using pdflatex this will give you a hyperlinked pdf file with
12370           bookmarks. (prepend '%' before /usepackage if this breaks something)
12371
12372 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12373
12374          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
12375
12376 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
12377
12378         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
12379
12380 2003-05-21    <johan AT balder>
12381
12382         * src/SDCCglue.c (printIval): fixed bug #739934
12383
12384 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
12385
12386         Applied patch from bug 737905 (renamed yylineo to mylineno):
12387         * src/altlex.c
12388         * src/SDCCast.c
12389         * src/SDCglobl.h
12390         * src/SDCC.lex
12391         * src/SDCCsymt.c
12392         * src/SDCCval.c
12393         * src/pic16/pcode.c: Cleaned warnings
12394         * src/pic16/pcodeflow.c: Cleaned warnings
12395         * src/pic16/pcoderegs.c: Cleaned warnings
12396
12397 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
12398
12399         * src/pic16/pcode.c: Cleaned warnings
12400         * src/pic16/pcodepeep.c: Cleaned warnings
12401         * src/pic16/ralloc.c: Cleaned warnings
12402
12403 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
12404
12405         * doc/sdccman.lyx: fixed bug 739745
12406         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
12407
12408 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
12409
12410         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
12411         it can be defined with CFLAGS when running configure
12412         * src/SDCCmain.c: fixed compiling + linking with object files
12413
12414 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
12415
12416         * configure.in: configure for pic16 port,
12417             added --disable-pic16-port
12418         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
12419         * src/SDCCmain.c: linkOptions is changed to set *,
12420             added if/endif conditional macros to remove options help
12421             messages from optionsTable when a port is not configured, added
12422             support for the PIc16 port in the ports table, when executing
12423             the compiler with no port specified on command line, a default
12424             port is selected with the new macro DEFAULT_PORT which is
12425             defined in port.h, in setDefaultOptions() linkOptions is removed
12426             from initialization assignment, since now it is a set,
12427             parseCmdLine uses setParseWithComma for linkOptions, in
12428             linkEdit() linkOptions are accessed with new function indexSet()
12429             which returns the i'th item of a set variable. See SDCCset.c, in
12430             linkEdit() when calling buildCmdLine(), added linkOptions as
12431             last argument. Now users can pass arguments to gplink via the
12432             -Wl option, main() uses pic16glue() to glue up pic16 programs
12433         * src/SDCCpeeph.c: various changes to support pic16
12434         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
12435             return the i'th item of the set
12436         * src/SDCCset.h: added function prototype for indexSet()
12437         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
12438         * src/clean.mk: added pic16 in CLEANALLPORTS variable
12439         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
12440             added macro DEFAULT_PORT
12441         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
12442         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
12443             generated
12444         * src/pic16/glue.c: commented out some error producing lines
12445         * src/pic16/main.c: __config directives are commented out to stop
12446             gpasm complaining and test the linkage with gplink, _linkCmd and
12447             _asmCmd changed to be more gplink and gpasm friendly
12448         * src/pic16/peeph.def: peep rule 3 is commented out, since it
12449             produced an error when parsed, peep rule 12 is added to utilize
12450             movff, but it is commented out since the pCode does not support
12451             yet a command with 2 address arguments
12452
12453 2003-05-18    <johan AT balder>
12454
12455         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
12456         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
12457 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
12458
12459         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
12460   Added feature to script commands from file.
12461
12462 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
12463
12464         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
12465         * src/SDCCutil.c: include ctype.h for win32
12466
12467 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
12468
12469         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
12470
12471 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
12472
12473         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
12474   Fixed so you can set breakpoints prior to run, run does not stop
12475   on entry now.  Add tbreak.  Other enhancements and fixes for use
12476   with ddd.
12477
12478 2003-05-12  Borut Razem <borut.razem AT siol.net>
12479
12480         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
12481
12482 2003-05-11  Borut Razem <borut.razem AT siol.net>
12483
12484         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
12485         the path of bin directory, so that PATH is the only env. variable, which has to be set
12486         in case of standard installation.
12487         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
12488         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
12489         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
12490
12491 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
12492
12493         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
12494         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
12495         temp files are in the port dir; clean the gen/test directory when
12496         generating new test.c
12497         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
12498         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
12499         * support/regression/tests/zeropad.c: added
12500
12501 2003-05-09    <johan AT balder>
12502
12503         * src/SDCCglue.c: fixed bug #597940
12504
12505 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
12506
12507         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
12508   cache sfr, optimize next,step, fix off by one sourceline,
12509   support ddd list function.
12510         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
12511
12512 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
12513
12514         * support/regression/HTMLgen.py: added compare_s2f()
12515         * support/regression/Makefile: redo 1.27
12516         * support/regression/generate-cases.py: redo 1.5
12517
12518 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
12519
12520         * support/regression/tests/float.c: workaround 33 bit hex constant
12521         * support/regression/tests/simplefloat.c: fix division for host
12522
12523 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
12524
12525         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
12526         that tame's the PIC's over-aggressive optimizer.
12527
12528 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12529
12530          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
12531          support for MSVC.
12532
12533 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
12534
12535         Initial support for DS80C400. "Hello world" runs on TINIm400
12536         (with polled I/O).
12537
12538 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
12539
12540          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
12541          * Some notes on ddd usage added in debugger/README
12542          Martin Helmling adding more features and fixes for ddd GUI debugger.
12543          Code added for nexti, stepi, up, down, and other adjustments.
12544
12545 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
12546
12547         * src/pic/pCodepeep.c non-wildcard asmops are now handled
12548         * src/pic/peeph.def Added two rules to optimize carry manipulation
12549         * src/pic/* removed debug printfs
12550
12551 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
12552
12553         * debugger/mcs51/cmd.c: added header newalloc.h
12554
12555 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
12556
12557         * as/Makefile: new EXEEXT
12558         * as/z80/Makefile: remove trailing slash of BUILDIR
12559         * as/z80/clean.mk: new EXEEXT
12560         * Makefile.common.in: add to CFLAGS (and others), don't replace it
12561         * support/cpp2/Makefile.in: new EXEEXT
12562         * src/pic/glue.c (pic14emitRegularMap): fixed warning
12563
12564 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
12565
12566         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
12567         EXEEXT was introduced to fix all related problems with targets
12568         "clean", "install" and "uninstall"; a couple of further flaws
12569         especially with "clean" have been fixed too
12570         * as/mcs51/Makefile.in
12571         * as/mcs51/clean.mk
12572         * as/z80/Makefile
12573         * Makefile
12574         * clean.mk
12575         * debugger/mcs51/Makefile.in
12576         * debugger/mcs51/clean.mk
12577         * link/z80/Makefile
12578         * link/z80/Makefile.in
12579         * link/z80/clean.mk
12580         * link/Makefile
12581         * packihx/Makefile.in
12582         * packihx/clean.mk
12583         * sim/ucsim/Makefile
12584         * sim/ucsim/clean.mk
12585         * sim/ucsim/avr.src/Makefile.in
12586         * sim/ucsim/avr.src/clean.mk
12587         * sim/ucsim/s51.src/Makefile.in
12588         * sim/ucsim/s51.src/clean.mk
12589         * sim/ucsim/xa.src/Makefile.in
12590         * sim/ucsim/xa.src/clean.mk
12591         * sim/ucsim/z80.src/Makefile.in
12592         * sim/ucsim/z80.src/clean.mk
12593         * sim/ucsim/main_in.mk
12594         * sim/ucsim/packages_in.mk
12595         * sim/ucsim/gui.src/Makefile.in
12596         * sim/ucsim/gui.src/serio.src/Makefile.in
12597         * sim/ucsim/gui.src/serio.src/clean.mk
12598         * src/Makefile.in
12599         * src/clean.mk
12600         * support/cpp2/Makefile.in
12601         * support/cpp2/clean.mk
12602         * support/makebin/Makefile
12603         * support/makebin/clean.mk
12604         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
12605         * doc/sdccman.lyx: --program-suffix no longer needed
12606
12607 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
12608
12609          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
12610          Martin Helmling added support for ddd GUI debugger.
12611          Code added to display assembly, set variables, and other commands
12612          to interface to ddd.
12613
12614 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
12615
12616         * as/Makefile: fix target clean
12617         * as/clean.mk: fix target clean
12618         * as/z80/clean.mk: fix target clean
12619
12620 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
12621
12622         * Makefile.common.in: added  AT EXEEXT AT
12623         * configure.in: removed all mingw32 stuff
12624         * configure: rebuilt from configure.in
12625         * doc/sdccman.lyx: updated section "installation"
12626         * support/scripts/sdcc_mingw32: adapted to configure
12627         * support/scripts/sdcc_cygwin_mingw32: added
12628
12629 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
12630
12631         * src/pic Added object file support for the PIC port
12632         * src/pic Applied patch from Craig Franklin (this started the object file support)
12633         * src/regression Updated the PIC regression tests for object files
12634
12635 2003-04-20  Borut Razem <borut.razem AT siol.net>
12636
12637         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
12638           lklex.c: In function `getfid':
12639           lklex.c:203: warning: array subscript has type `char'
12640         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
12641           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
12642         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
12643           stack handling macros
12644
12645 2003-04-19  Borut Razem <borut.razem AT siol.net>
12646
12647         * "handling space characters in file path" task:
12648         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
12649         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
12650         * support/Util/MySystem.h: make it self-sufficient
12651         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
12652           src/z80/main.c, sdcc/as/mcs51/lklex.c:
12653           handling space characters in file path
12654         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
12655           (it will be used by assemblers, which have their own includes, e.g. gpasm)
12656         * support/Util/MySystem.c: handling space characters in executable's path
12657
12658 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
12659
12660         * as/z80/Makefile: fix permanent rebuild of z80
12661         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
12662         * support/regression/tests/bitfields.c: added Johan's bitfields.c
12663
12664 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
12665
12666         * src/SDCCopt.c: add special case optimization to replace modulo by
12667           a power of two with a bitwise AND.
12668
12669 2003-04-18    <johan AT balder>
12670
12671         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
12672
12673 2003-04-17    <johan AT balder>
12674
12675         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
12676         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
12677
12678 2003-04-13  Borut Razem <borut.razem AT siol.net>
12679
12680         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
12681         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
12682           fixed mingw problem in adl_NORMALIZE_PATH
12683
12684 2003-04-12  Borut Razem <borut.razem AT siol.net>
12685
12686         * fixed "#pragma SAVE/RESTORE can not be nested":
12687         * src/SDCC.lex: reworked pragma handling functions
12688         * sdcc/src/SDCCglobl.h: reworked stack handling macros
12689         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
12690
12691 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
12692
12693         * src/SDCCutil.c (pathEquivalent): defined but not used
12694         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
12695         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
12696         * configure: rebuilt from configure.in
12697         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
12698         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
12699         * device/include/Makefile.in: replace sdcc_datadir
12700         * device/lib/Makefile.in: replace sdcc_datadir
12701         * Makefile.common.in: add LDFLAGS from configure
12702         * packihx/Makefile.in: use LDFLAGS
12703         * src/Makefile.in: use LDFLAGS
12704         * support/cpp2/Makefile.in: add LDFLAGS from configure
12705         * support/makebin/Makefile: use LDFLAGS
12706         * .version: bumped version number to 2.3.5
12707
12708 2003-04-12  Borut Razem <borut.razem AT siol.net>
12709
12710         * completed "different paths" task:
12711         * src/SDCCmacro.c: fixed bug in handling quotes
12712         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
12713         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
12714
12715 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
12716
12717         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
12718
12719 2003-04-11 kevin Vigor <kevin AT vigor.nu>
12720
12721         * ds390/gen.c ds390/peeph.def: fix bug 706781
12722
12723 2003-04-11  Borut Razem <borut.razem AT siol.net>
12724
12725         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
12726
12727 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
12728
12729         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
12730         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
12731          set - this bit used to not be set...).
12732         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
12733           bad code in PIC Port
12734         * src/regression/and2.c added to test bug 609268
12735         * src/regression/Makefile added and2.c to regression test
12736
12737
12738 2003-04-08    <johan AT CP255758-A>
12739
12740         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
12741         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
12742         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
12743
12744 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
12745
12746         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
12747         fix bug #487815
12748         * support/cpp2/Makefile.in: fix bug #487815
12749         * configure: rebuilt from configure.in
12750         * Makefile.common.in: docdir changed, new path suffixes
12751         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
12752         * sdcc_vc_in.h: reflect changes from sdccconf.h
12753         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
12754         * src/SDCCutil.h: remove BINDIR hack
12755         * doc/sdccman.lyx: update new path hierarchy
12756
12757 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
12758
12759         * src/SDCCpeeph.c: added okToRemoveSLOC test
12760
12761 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
12762
12763         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
12764
12765 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
12766
12767         * src/SDCCpeeph.c: added labelIsReturnOnly test
12768         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
12769
12770 2003-04-05    <johan AT balder>
12771
12772         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
12773         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
12774         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
12775         * src/SDCCast.c: fixed a warning
12776         * src/SDCCast.h: fixed a warning
12777         * src/SDCCicode.c (operandFromAst): fixed a warning
12778
12779 2003-04-04    <johan AT balder>
12780
12781         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
12782         * src/SDCCast.c (decorateType): fixed bug #715076
12783         * src/SDCC.y: fixed bug #702907
12784
12785 2003-04-03    <johan AT balder>
12786
12787         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
12788         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
12789         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
12790         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
12791         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
12792
12793 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
12794
12795         * _decdptr.c: fix return values
12796         * _gptrget.c: fix return values
12797         * _gptrgetc.c: fix return values
12798         * _gptrput.c: fix return values
12799         * _mulint.c: fix return values
12800         * as/z80/Makefile: fix 'make -j' problem
12801
12802 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
12803
12804         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
12805         * configure.in: big cleanup, updated to autoconf 2.5x
12806         * configure: rebuilt from configure.in
12807         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
12808         * sdcc_vc_in.h: reflect changes from sdccconf.h
12809         * doc/Makefile: fixed a flaw in "make install"
12810
12811 2003-04-02    <johan AT balder>
12812
12813         * src/ds390/gen.c (genCmp): no comments
12814         * src/mcs51/gen.c (genCmp): no comments
12815         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
12816         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
12817
12818 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
12819
12820         * support/regression/generate-cases.py: place generated file in given sub directory
12821         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
12822         * support/regression/Makefile: improvements for 'make -j';
12823         side effect: it's simpler and faster now
12824
12825 2003-03-31  Borut Razem <borut.razem AT siol.net>
12826
12827         * src/z80/main.c: link-{port} and as-{port} defined without path
12828         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
12829
12830 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
12831
12832         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
12833
12834 2003-03-30  Borut Razem <borut.razem AT siol.net>
12835
12836         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
12837           changed type of list parameter to set
12838         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
12839         * src/port.h: changed type of do_assemble() parameter to set
12840         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
12841           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
12842           definition of "cppoutfilename" macro with NULL value in preProcess()
12843         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
12844         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
12845         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
12846           replaced with set *binPathSet
12847         * shash_add() deallocates the item, if allready exsists, before adding the new one
12848         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
12849
12850 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
12851
12852         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
12853           a nested for loop bug in the PIC port
12854         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
12855           for loops
12856
12857 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
12858
12859         * support/Util/dbuf.h: remove C++ stuff to make it portable
12860
12861 2003-03-28  Borut Razem <borut.razem AT siol.net>
12862
12863         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
12864           literal strings in stringLiteral()
12865         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
12866         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
12867           to the project
12868
12869 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
12870
12871         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
12872
12873 2003-03-26    <johan AT balder>
12874
12875         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
12876         * src/ds390/gen.c (saveRegisters): catched symbol abuse
12877         * src/SDCCast.c (decorateType): fixed " -v < 3"
12878
12879 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
12880
12881         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
12882         Added Lenny Story's debug infrastructure changes:
12883         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
12884         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
12885         * src/cdbFile.c: added
12886         * src/SDCCdebug.c: added
12887         * src/SDCCdebug.h: added
12888         * src/SDCCast.c (createFunction)
12889         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
12890         * src/SDCCmain.c (parseCmdLine, main)
12891         * src/SDCCmem.c (redoStackOffsets)
12892         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
12893         * src/SDCCsymt.h
12894         * src/common.h
12895         * src/avr/gen.c (genAVRCode)
12896         * src/ds390/gen.c (gen390Code)
12897         * src/mcs51/gen.c (gen51Code)
12898         * src/pic/gen.c (genpic14Code)
12899         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
12900         * src/xa51/gen.c (genXA51Code)
12901         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
12902
12903 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12904
12905         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
12906         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
12907
12908 2003-03-22    <johan AT balder>
12909
12910         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
12911
12912 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
12913
12914         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
12915         * doc/cdbfileformat.lyx: added, written by Lenny Story
12916         * doc/Makefile: added cdbfileformat.lyx
12917         * doc/clean.mk: added cdbfileformat.lyx
12918
12919 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
12920
12921         * src/mcs51/peeph.def: fix bug #705773
12922
12923 2003-03-20    <johan AT balder>
12924
12925         An sfr/sbit can have an "at #" AND an initializer
12926         * src/SDCCsymt.c (checkSClass):
12927         * src/SDCCmem.c (allocGlobal):
12928         * src/SDCCmem.c (allocLocal):
12929         * src/SDCCast.c (createBlock):
12930
12931 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
12932
12933         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
12934
12935 2003-03-16    <johan AT balder>
12936
12937         Undid the hackup of const and volatile, the problem is much bigger
12938         * src/SDCC.y:1.65
12939         * src/SDCCast.c:1.171
12940         * src/SDCCglue.c:1.138
12941         * src/SDCCicode.c:1.146
12942         * src/SDCCsymt.c:1.150
12943         * src/SDCCval.c:1.65
12944
12945 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
12946
12947         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
12948         * src/ds390/gen.c (genAddrOf): fixed bug #704087
12949
12950 2003-03-13    <johan AT balder>
12951
12952         Hackup const and volatile modifiers in type chains a bit:
12953         * src/SDCC.y:1.63
12954         * src/SDCCast.c:1.169
12955         * src/SDCCglue.c:1.136
12956         * src/SDCCicode.c:1.143
12957         * src/SDCCsymt.c1.146
12958         * src/SDCCsymt.h1.59
12959         * src/SDCCval.c:1.63
12960
12961 2003-03-12    <johan AT balder>
12962
12963         * src/SDCCBBlock.h: more LRH debugging junk
12964         * src/SDCCcflow.h: more LRH debugging junk
12965         * src/SDCCloop.c: more LRH debugging junk
12966         * src/SDCC.y (struct_declaration): fixed bug #697590
12967         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
12968         * src/ds390/gen.c (aopForRemat): fixed bug #700031
12969         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
12970
12971 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
12972         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
12973         test function names must now match exactly).
12974         * src/SDCCcse.c: added special case in findCheaperOp to allow
12975         extending a short integer. Makes less awful code for bug 700121 test case.
12976
12977 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12978
12979         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
12980         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
12981
12982 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
12983
12984         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
12985         actually called (operandsNotEqual() was called for all
12986         operandsNotEqualX tests).
12987
12988 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
12989
12990         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
12991         with shorter literals. Fixes bug 700121.
12992
12993 2003-03-11    <johan AT balder>
12994
12995         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
12996
12997 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
12998
12999         * src/SDCCloop.c (mergeRegions): an evil beast is dead
13000         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
13001
13002 2003-03-10  Borut Razem <borut.razem AT siol.net>
13003
13004         * src/SDCCmain.c: pipe preprocessor's output
13005         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
13006         * sdcc_vc_in.h: define pclose as _pclose for WIN32
13007         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
13008         which closes all pipes in pipeSet set
13009         * src/SDCCset.c: free deleted item in function deleteSetItem()
13010         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
13011         moved from z80 to src subproject
13012         * .version: increased version number to 2.3.4
13013
13014 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
13015
13016         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
13017         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
13018         * support/regression/ports/xa51/spec.mk: fix typo
13019
13020 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
13021
13022         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
13023
13024 2003-03-09  Borut Razem <borut.razem AT siol.net>
13025
13026         * src/SDCCmain.c: pipe preprocessor's output
13027         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
13028         * sdcc_vc_in.h: define pclose as _pclose for WIN32
13029         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
13030         which closes all pipes in pipeSet set
13031         * src/SDCCset.c: free deleted item in function deleteSetItem()
13032         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
13033         moved from z80 to src subproject
13034
13035 2003-03-09  Borut Razem <borut.razem AT siol.net>
13036
13037         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
13038         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
13039         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
13040         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
13041         * src/SDCCglobl.h: unification of WIN32 native definitions
13042
13043 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13044
13045         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
13046
13047 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
13048
13049         * src/configure.in:   check for endianess (even while cross-compiling)
13050         * src/configure:      check for endianess (even while cross-compiling)
13051         * src/configure_in.h: check for endianess (even while cross-compiling)
13052         * src/avr/gen.c:        remove old endianess stuff
13053         * src/mcs51/gen.c:      remove old endianess stuff
13054         * src/ds390/gen.c:      remove old endianess stuff
13055         * src/pic/gen.c:        remove old endianess stuff
13056         * src/pic/genarith.c:   remove old endianess stuff
13057         * src/pic/glue.c:       fix endianess check
13058         * src/pic16/gen.c:      remove old endianess stuff
13059         * src/pic16/genarith.c: remove old endianess stuff
13060         * src/pic16/glue.c:     fix endianess check
13061         * src/xa51/gen.c:       remove old endianess stuff
13062         * src/z80/gen.c:        fix endianess check
13063         * src/SDCCglue.c:       fix endianess check
13064         * src/ds390/peeph.def: fix bug 700036
13065
13066 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
13067
13068         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
13069         * src/configure: find appropriate data-types on host for SDCC's int and long
13070         * src/configure.in: find appropriate data-types on host for SDCC's int and long
13071         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
13072         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
13073
13074 2003-03-07    <johan AT balder>
13075
13076         Just a big NOOP:
13077                 some minor cleanups before the big shot
13078                 OP_DEFS and OP_USES now use Kevin's protection
13079                 new option --nolabelopt
13080
13081         * src/SDCCBBlock.c:
13082         * src/SDCCast.c,:
13083         * src/SDCCcflow.c:
13084         * src/SDCCcse.c:
13085         * src/SDCCicode.c:
13086         * src/SDCCicode.h:
13087         * src/SDCClabel.c:
13088         * src/SDCCloop.c:
13089         * src/SDCCmain.c:
13090         * src/ds390/ralloc.c:
13091         * src/mcs51/ralloc.c:
13092         * src/pic/ralloc.c:
13093         * src/xa51/ralloc.c:
13094         * src/z80/ralloc.c:
13095
13096 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
13097
13098         * src/pic/pcode.c (get_op): fix 64 bit warnings
13099         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
13100         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
13101         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
13102         * support/regression/tests/malloc.c: fix 64 bit warnings
13103
13104 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
13105
13106         * src/mcs51/gen.c (genMinus): fixed bug 696436
13107
13108 2003-03-02  Borut Razem <borut.razem AT siol.net>
13109
13110         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
13111
13112 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
13113
13114         * configure.in: test for mkstemp
13115         * sdccconf_in.h: add HAVE_MKSTEMP
13116
13117 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
13118
13119         * device/include/ctype.h: removed warning while using --stack-auto
13120         * device/include/malloc.h: removed warning while using --stack-auto
13121         * device/include/string.h: removed warning while using --stack-auto
13122
13123 2003-02-23  Borut Razem <borut.razem AT siol.net>
13124
13125         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
13126         because NDEBUG is defined (see man assert)
13127         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
13128
13129 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13130
13131         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
13132         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
13133
13134 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13135
13136         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
13137         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
13138
13139 2003-02-18    <johan AT balder>
13140
13141         * as/mcs51/asmain.c (asmbl): module can start with a digit
13142         * as/z80/asmain.c (asmbl): module can start with a digit
13143
13144 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
13145
13146         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
13147         * src/asm.c: fix pipe() for Mingw32
13148
13149 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
13150
13151         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
13152         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
13153         make -V work again; --c1mode reads now from stdin
13154         * doc/sdccman.lyx: added --c1mode
13155         * support/Util/SDCCerr.c: new messages for c1 mode
13156         * support/Util/SDCCerr.h: new messages for c1 mode
13157         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
13158
13159 2003-02-15    <johan AT balder>
13160
13161         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
13162
13163 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
13164
13165         * doc/sdccman.lyx: Environment variables, -o and other minor things
13166
13167 2003-02-14    <johan AT balder>
13168
13169         * src/xa51/main.c: before anyone really tries to use it :)
13170
13171         * Install doc's in share/sdcc/doc
13172         * removed some obsolete files
13173         * Do a proper make distclean and uninstall
13174         M Makefile.common.in
13175         R sdccbuild.sh
13176         M as/Makefile
13177         M device/include/Makefile.in
13178         M device/lib/Makefile.in
13179         M doc/sdccman.lyx
13180         M link/Makefile
13181         M sim/ucsim/doc/Makefile.in
13182         M src/clean.mk
13183         R src/avr/peeph.rul
13184         R src/xa51/peeph.rul
13185         M support/cpp2/Makefile.in
13186         M support/makebin/Makefile
13187
13188
13189 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
13190
13191         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
13192
13193 2003-02-10  Borut Razem <borut.razem AT siol.net>
13194
13195         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
13196         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
13197         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
13198         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
13199         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
13200         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
13201         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
13202         src/z80/Makefile.bcc: Borland Makefile cleanup
13203         * as/z80/Makefile.bcc: Added Borland Makefile
13204         * support/cpp2/borland.h: Removed
13205
13206 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
13207
13208         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
13209         * src/SDCC.lex: new pragma NOIV
13210         * src/SDCCglobl.h: new pragma NOIV
13211         * src/SDCCmem.c: new pragma NOIV
13212
13213 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
13214
13215         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
13216
13217 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
13218
13219         * src/SDCCmain.c: signal handling is switched off by --debug
13220         * doc/Makefile: small fix for install; use clean.mk again
13221         * doc/clean.mk: clean *.pdf and *.html too
13222
13223 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
13224
13225         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
13226         * device/lib/printfl.c: fix a ds390 bug by making it portable
13227         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
13228         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
13229         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
13230         * debugger/mcs51/cmd.c: converted multi-line string literals
13231         * sim/ucsim/globals.cc: converted multi-line string literals
13232         * src/SDCCmain.c: introduced signal handler to remove temp files
13233         * doc/Makefile: small tweaks, implement clean
13234         * doc: removed generated files
13235
13236 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13237
13238         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
13239         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
13240         Address Record is not correctly generated for DS390."
13241
13242 2003-02-02  Borut Razem <borut.razem AT siol.net>
13243
13244         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
13245         * as/mcs51/asm.h: fixed compilation with Borland C
13246         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
13247         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
13248         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
13249         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
13250         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
13251         src/z80/Makefile.bcc: delete $(LIB) only if exist
13252         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
13253
13254 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
13255
13256         * device/include/malloc.h: introduced NULL
13257         * device/include/string.h: introduced NULL
13258         * device/include/stdlib.h: introduced NULL
13259         * device/lib/_memcpy.c: removed NULL
13260         * device/lib/_strcat.c: removed NULL
13261         * device/lib/_strchr.c: removed NULL
13262         * device/lib/_strcmp.c: removed NULL
13263         * device/lib/_strcpy.c: removed NULL
13264         * device/lib/_strcspn.c: removed NULL
13265         * device/lib/_strlen.c: removed NULL
13266         * device/lib/_strncat.c: removed NULL
13267         * device/lib/_strncmp.c: removed NULL
13268         * device/lib/_strncpy.c: removed NULL
13269         * device/lib/_strpbrk.c: removed NULL
13270         * device/lib/_strrchr.c: removed NULL
13271         * device/lib/_strspn.c: removed NULL
13272         * device/lib/_strstr.c: removed NULL
13273         * device/lib/_strtok.c: removed NULL
13274         * device/lib/malloc.c: removed NULL, include own header
13275
13276 2003-02-02    <johan AT balder>
13277
13278         * 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
13279         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
13280         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
13281         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
13282         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
13283         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
13284
13285 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13286
13287         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
13288         area 'DATA'"
13289
13290 2003-02-01    <johan AT balder>
13291
13292         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
13293
13294 2003-01-31    <johan AT CP255758-A>
13295
13296         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
13297
13298 2003-01-30    <johan AT balder>
13299
13300         * src/SDCCBBlock.c: automatic bug detection
13301         * src/SDCCicode.c: automatic bug detection
13302
13303 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13304
13305         * src/SDCCglobl.h:   now --xram-size 0 works
13306         * src/SDCCmain.c:    now --xram-size 0 works
13307
13308 2003-01-29    <johan AT balder>
13309
13310         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
13311
13312 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13313
13314         * as/mcs51/aslink.h: Added options --xram-size and --code-size
13315         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
13316         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
13317         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
13318         * src/SDCCglobl.h:   Added options --xram-size and --code-size
13319         * src/SDCCmain.c:    Added options --xram-size and --code-size
13320
13321 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
13322
13323         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
13324         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
13325
13326 2003-01-27    <johan AT balder>
13327
13328         * src/SDCC.y: fixed bug #613764
13329
13330 2003-01-26    <johan AT balder>
13331
13332         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
13333         * src/SDCCsymt.h: fixed bug #673374
13334         * src/SDCCglue.c: fixed bug #661910
13335         * src/SDCCast.c: fixed bug #458099 and 673374
13336
13337 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
13338
13339         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
13340         * as/mcs51/strcmpi.h: added
13341         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
13342         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
13343         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
13344         * as/mcs51/assym.c: strcmpi -> as_strcmpi
13345         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
13346         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
13347         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
13348         * as/mcs51/Makefile.aslink: new module strcmpi
13349         * as/mcs51/Makefile.asx8051: new module strcmpi
13350         * as/mcs51/Makefil.bcc: new module strcmpi
13351         * as/mcs51/Makefile.in: new module strcmpi
13352         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
13353
13354 2003-01-26    <johan AT balder>
13355
13356         * src/SDCCglue.c: reverted back to 1.124
13357         * src/SDCCast.c: reverted back to 1.156
13358         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
13359
13360 2003-01-25    <johan AT balder>
13361
13362         * src/SDCCglue.c: A better fix for bug #661910
13363         * src/SDCCast.c: A better fix for bug #661910
13364         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
13365
13366 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
13367
13368         * src/Makefile.in: remove spawn.o
13369         * src/SDCCmain.c: remove spawn.h
13370         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
13371         * src/spawn.c: removed
13372         * src/spawn.h: removed
13373         * support/regression/ports/ds390/spec.mk: link with -r
13374
13375 2003-01-24    <johan AT CP255758-A>
13376
13377         * src/ds390/gen.c (aopOp): fixed bug #667458
13378         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
13379         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
13380         (createIvalCharPtr): an ival doesn't always have a storage class anymore
13381
13382 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
13383
13384         * src/mcs51/peeph.def: better assembler identation by Frieder
13385         * src/mcs51/gen.c: better assembler identation by Frieder
13386
13387 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
13388
13389         * as/z80/string.h: removed for gcc 3.2
13390         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
13391         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
13392
13393 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
13394
13395         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
13396         * src/SDCCpeeph.c (replaceRule): fix bug #663503
13397         * support/regression/Makefile: separate temp files for ports
13398         * support/regression/generate-cases.py: separate temp files for ports
13399         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
13400         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
13401
13402 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
13403
13404         * moved tinitalk to device/examples/ds390
13405
13406 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
13407
13408         * as/mcs51/lkmem.c: rflag is for DS390
13409         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
13410         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
13411                          (linkEdit): move mem- and map-files the same way as ihx-files
13412         * src/z80/main.c (_setDefaultOptions): removed --generic
13413         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
13414         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
13415         * src/pic/glue.c (picglue): --c1mode works again
13416         * src/pic16/glue.c (pic16glue): --c1mode works again
13417         * src/asm.c (printCLine): fix #660034
13418
13419 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
13420
13421         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
13422         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
13423         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
13424         * as/mcs51/lkmem (summary): better fix for sp problem
13425         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
13426         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
13427         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
13428                                               remove --stack-after-data
13429
13430 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
13431
13432         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
13433         * src/SDCCutil.c (join): ugly bug: missing '\0'
13434         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
13435
13436 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
13437
13438         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
13439         * src/port.h: typo
13440         * src/pic/main.c (_asmCmd): gpasm supports -o
13441         * src/z80/main.c: more general macros
13442         * device/lib/Makefile.in: remove intermediate files
13443
13444 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
13445
13446         * .version: Bumped version number to 2.3.3
13447         * src/SDCCBBlock.c: new option -o
13448         * src/SDCCglobl.h: new option -o
13449         * src/SDCCglue.c: new option -o
13450         * src/SDCCmain.c: new option -o
13451         * src/asm.c: new option -o
13452         * src/ds390/main.c: new option -o
13453         * src/pic/glue.c: new option -o
13454         * src/pic/pcode.c: new option -o
13455         * src/pic/ralloc.c: new option -o
13456         * src/pic16/glue.c: new option -o
13457         * src/pic16/pcode.c: new option -o
13458         * src/pic16/ralloc.c: new option -o
13459         * src/z80/main.c: new option -o
13460         * device/lib/Makefile.in: use -o
13461         * support/regression/ports/ds390/spec.mk: use -o
13462         * support/regression/ports/gbz80/spec.mk: use -o
13463         * support/regression/ports/mcs51/spec.mk: use -o
13464         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
13465         * support/regression/ports/z80/spec.mk: use -o
13466         * support/regression/ports/ucz80/spec.mk: use -o
13467         * support/regression/ports/xa51/spec.mk: use -o
13468         * support/regression/fwk/lib/timeout.c: fix usage string
13469
13470 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
13471         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
13472
13473 2003-01-07    <johan AT balder>
13474
13475         * src/SDCCast.c (decorateType): fixed bug #600035
13476
13477 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
13478         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
13479         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
13480         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
13481         * src/pic/pcode.c: outcommented unused variable to remove warnings
13482         * src/pic/ralloc.c: outcommented unused variable to remove warnings
13483
13484 2003-01-06    <karl AT turbobit.com>
13485         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
13486    regression tests.
13487
13488 2003-01-06    <johan AT balder>
13489
13490         * src/SDCCicode.c: fixed array add
13491
13492 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
13493         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
13494         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
13495
13496 2003-01-04    <johan AT balder>
13497
13498         * src/SDCCval.c (getNelements): fixed the initialized array of structures
13499
13500 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13501         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
13502
13503 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
13504         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
13505         * support/regression/tests/bug-524697.c: fit mem usage into 8032
13506
13507 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
13508         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
13509
13510 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
13511         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
13512
13513 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
13514         * src/mcs51/main.c: removed {bindir}{sep} from aslink
13515
13516 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13517
13518     * in /sdcc/as/mcs51/ changed these files in order to create an
13519     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
13520     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
13521     following files to include the previous two files: aslink.dsp,
13522     Makefile.aslink, Makefile.bcc, and Makefile.in.
13523
13524     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
13525     .adb instead of .cdb
13526
13527 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13528
13529         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
13530         value from option --iram-size.
13531
13532 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13533
13534         * /sdcc/as/mcs51/lklist.c: added boundary check before using
13535         dram[] array.
13536
13537 2002-09-18    <wiml AT hhhh.org>
13538
13539         * SDCClrange.h: exposed setFromRange() and setToRange()
13540         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
13541           packRegsForAccUse() (bug 542397)
13542         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
13543           multiple times and emitting the fetch operations more than once
13544           added aopGetUsesAcc() function to allow binary operators to
13545           fetch their operands in the correct order; made genMinus() emit
13546           compact code for X = LITERAL - Y
13547
13548 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13549         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
13550         sprintf() in line 1267.
13551
13552 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13553         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
13554         like ports.
13555
13556 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13557         Changes to aslink (All the changes are marked with 'JCF'):
13558
13559         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
13560         summary().
13561
13562         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
13563         area BSEG.  Also moves, if possible, the DATA area down into the internal
13564         ram so more space is available.
13565
13566         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
13567         sflag.
13568
13569         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
13570         not bytes.  Function summary() which creates a memory usage summary
13571         file with extension .mem.  Reports of overlaping stack and small stack
13572         size.  If the space for the stack is less than 16 bytes aslink trows a
13573         warning.
13574
13575         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
13576         the 8051.  Option 'y' for memory summary output file.
13577
13578         Changes to sdcc (All the changes are marked with 'JCF'):
13579
13580         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
13581
13582         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
13583         overlaying area for it (uses RegBankUsed[4]).
13584
13585         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
13586         bank zero as used by default.  By default aslink locates the stack
13587         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
13588         the creation of the .mem file.  Delegates the allocation of data area
13589         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
13590         the begining of the stack area to aslink.
13591
13592         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
13593         glue() in SDCCglue.c creates an area for it.
13594
13595 2002-09-03  Borut Razem <borut.razem AT siol.net>
13596         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
13597         sdcc/src/pic/glue.c:
13598         introduced atexit() handler for teporay files removal in case of
13599         errors, assertions, ...
13600
13601 2002-08-29  Borut Razem <borut.razem AT siol.net>
13602         * sdcc/support/cpp2/auto-host_vc_in.h:
13603         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
13604         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
13605         Maybe there is a similar problem with BORLANDC? It should be checked!
13606
13607         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
13608         corrected improper use of assert: the assignment to clr variable was done inside the assert.
13609         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
13610         was not executed, and the compiler (cl) launched a warning:
13611         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
13612
13613 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
13614         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
13615
13616 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
13617         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
13618
13619         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
13620           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
13621           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
13622           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
13623           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
13624           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
13625           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
13626         - added Release configuration in VS projects
13627         - review of compiler an linker options
13628         - VC .exe files are generated in bin_vc directory, not to interfere
13629           with binaries generated from other projects (cygwin, mingw, bcc ...)
13630
13631         * sdcc/src/yacc.dsp: added
13632
13633         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
13634         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
13635         and insert the version number definitions from .version
13636
13637         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
13638
13639         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
13640         added - genarate auto-host.h using auto-host_vc_in.h as template
13641
13642         * sdcc/sdcc_vc.h,
13643         removed from CVS, generated automatically
13644
13645 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
13646         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
13647
13648 2002-08-11  Borut Razem <borut.razem AT siol.net>
13649         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
13650
13651 2002-08-10  Borut Razem <borut.razem AT siol.net>
13652         * src/SDCCmain.c (main):
13653         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
13654         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
13655         The consequence was that some temporary files were not removed.
13656
13657         * src/SDCCglue.c:
13658         unification of code in functions tempfilename() and tempfile():
13659         function tempnam() is defined in Visual Studio 6.0 and .NET
13660
13661         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
13662
13663         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
13664           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
13665         - removed compiler command line option /WX: Treats all warnings as errors
13666         - update a list of source files, included into the project
13667
13668         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
13669           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
13670         changed project type to Generic Project so that can be correcly converted to VS.NET project
13671
13672         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
13673
13674         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
13675
13676         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
13677
13678         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
13679         added return 0 statements after assert() to make compiler happy
13680
13681         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
13682         added newline in the def file to keep MSC compiler satisfied
13683
13684         * sdcc/src/z80/gen.c:
13685         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
13686           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
13687         - solved MSC error in function aopDump()
13688
13689         * sdcc_vc.h: define PREFIX as "\\sdcc"
13690
13691 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
13692         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
13693
13694 2002-06-22  Scott Dattalo <scott AT dattalo.com>
13695         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
13696         - Rewrote the register banking algorithm.
13697         - Added pCode live-range analysis to registers (for now, only non-used and
13698         singly-used registers optimized away)
13699
13700         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
13701
13702         * 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.
13703
13704 2002-05-10  Scott Dattalo <scott AT dattalo.com>
13705         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
13706
13707 2002-04-22  Michael Hope  <michaelh AT vroom>
13708
13709         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
13710
13711         * configure.in (DD_COPT): Added include support required for gbdk.
13712
13713         * .version: Bumped version number just to increase it.
13714
13715         * src/SDCCmain.c: Added -nostdinc to the default options.
13716
13717 2002-04-15  Michael Hope  <michaelh AT vroom>
13718
13719         * device/lib/z80/printf.c (sprintf): Added.
13720
13721         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
13722
13723         * src/z80/peeph.def: Added transpose redundent load rule.
13724
13725         * src/z80/main.c: Added force callee saves for jaune.
13726
13727         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
13728
13729         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
13730
13731 2002-03-28  Johan Knol  <johan AT balder>
13732
13733         * src/SDCCval.c: fixed bug #532436
13734
13735 2002-03-14  Scott Dattalo <scott AT dattalo.com>
13736         * /src/port.h:
13737         Added "char *Processor" field to the port structure.
13738
13739         * /src/SDCCmain.c:
13740         Added -p option. Allows port dependent processor to be specified.
13741
13742         * all ports:
13743         Initialized the new field char *Processor field to NULL in all ports
13744
13745         * /src/pic/*:
13746         Compiler generated registers for interrupt context saving
13747         were not getting allocated.
13748
13749 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
13750
13751         * /src/SDCCast.c:
13752         Fixed left shift. Will promote the left side of a left shift
13753         if a) left shifting more than size of operand or b) when assigned
13754         to something size > size of left side
13755
13756 2002-03-14  Scott Dattalo <scott AT dattalo.com>
13757         * src/pic/*
13758         tons of changes. Register allocation has been
13759         rewritten. Added customization for the various PICs. Flow
13760         analysis is restructured. ...
13761
13762         * src/pic/device.h:
13763         Added
13764
13765         * src/pic/device.c:
13766         Added. device.c is a PIC port hack to accomodate variations
13767         in PIC devices.
13768
13769 2002-03-13  Michael Hope  <michaelh AT vroom>
13770
13771         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
13772
13773 2002-03-04  johanknol  <johanknol AT manik>
13774
13775         * /src/SDCCval.c: fixed
13776
13777         const unsigned char arr[][2] = { { 0, 1 } };
13778         t18.c:1: error: Initializer element is not constant
13779
13780 2002-03-04  bela  <bela AT manik>
13781
13782         * /device/include/mcs51reg.h:
13783         ds89c420 register definition update
13784
13785 2002-03-03    <johan AT FRIJA>
13786
13787         * support/Util/SDCCerr.c: did something, but don't no why anymore
13788
13789         * support/regression/tests/bug-524691.c: made it a little less shy
13790
13791         * src/SDCCast.c (decorateType): fixed bug #524697
13792
13793         * src/SDCCast.c: made some lineno improvements
13794
13795         * src/SDCCval.c (getNelements): changed warning to error
13796
13797         * src/SDCCglue.c (printIvalArray): changed warning to error
13798
13799         * src/SDCCicode.c: fixed a warning for mingw
13800
13801         * src/SDCCast.c (decorateType): fixed the << promotion for ops
13802
13803         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
13804
13805 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
13806
13807         * src/ds390/peeph.def:
13808         Added some more peephole rules
13809
13810         * src/ds390/gen.c: Various fixes & enhancements
13811
13812         * src/SDCClrange.c, src/SDCClrange.h:
13813         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
13814
13815         * src/ds390/ralloc.c:
13816         various fixes & enhancements (ds390) specific
13817
13818         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
13819         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
13820         from rallocs.
13821
13822         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
13823
13824 2002-03-02    <johan AT FRIJA>
13825
13826         * src/SDCCast.c (decorateType): fixed bug #524708
13827
13828         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
13829
13830         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
13831
13832 2002-03-01  Michael Hope  <michaelh AT vroom>
13833
13834         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
13835
13836         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
13837
13838 2002-03-01    <johan AT FRIJA>
13839
13840         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
13841
13842         * src/SDCCast.c (decorateType): fixed bug #524209
13843
13844         * src/SDCCval.c (valNot): fixed bug #524195
13845
13846 2002-02-26    <johan AT balder>
13847
13848         * src/xa51/gen.c: fixed a warning
13849
13850         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
13851
13852         * src/SDCCast.c (decorateType): fixed bug #522534
13853
13854 2002-02-23    <johan AT balder>
13855
13856         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
13857
13858 2002-02-22    <johan AT balder>
13859
13860         * src/SDCCast.c: fixed bug #514865
13861
13862         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
13863
13864 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
13865
13866         * sdcc/src/SDCCloop.c:
13867         Previous fix was not good. basic blocks that have "break" or "return" are
13868         not really partof a loop , but live ranges used in these blocks should
13869         be live thru the entire loop, so set partOfLoop but don't add them to
13870         loop region
13871
13872 2002-02-21    <johan AT FRIJA>
13873
13874         * src/SDCCcse.c: fixed bug #514308
13875
13876 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
13877
13878         * src/SDCCloop.c:
13879         Fixed BUG #519583. If a conditional block ended in a return/break
13880         statement inside a loop, it was not being considered part of the loop.
13881
13882         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
13883
13884 2002-02-10  Karl Bongers <karl AT turbobit.com>
13885
13886         * debugger/*:
13887         Fixed up SDCDB debugger somewhat.  Updated debugger/README
13888         with lots of comments and notes.
13889
13890         * device/examples/test2.c:
13891         Fix bug, "red" variable not being initialized(compiler complained).
13892
13893         * device/examples/Makefile, examples/test3.c:
13894         Add Makefile in device/examples folder, compiles test3.c
13895         for use as a multiple module SDCDB test case.
13896
13897         * sim/ucsim/cmd.src/cmdset.cc:
13898         Took out debug printfs in ucsim "next" command.
13899
13900         * sim/ucsim/xa.src:
13901         Karl and Johan start ucsim XA support.  Most dissassembly working,
13902         about 75% emulation done(plenty of work remaining).
13903
13904         * sim/ucsim/z80.src:
13905         Add Z80 support to ucsim, add test-ucz80 regression test,
13906         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
13907         Notice z80 compiler fails on examples/test3.c/crc code.
13908
13909 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
13910
13911         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
13912         Added support for --parms-in-bank1
13913
13914         * src/ds390/peeph.def:
13915         added a few more peephole optimzations
13916
13917         * src/ds390/main.c:
13918         1) added __builtin_inp & __builtin_outp used to read in data of given length
13919            from a memory mapped port
13920         2) added __builtin_memcmp
13921         3) added __builtin_swapw swap bytes of a short
13922
13923         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
13924         1) handle multiple send & receives from register bank1
13925         2) ralloc can now allocate DPTR1 to some liveRanges
13926
13927         * src/SDCCsymt.c, src/SDCCsymt.h:
13928         changes to handle multiple sends & receives
13929
13930         * src/SDCCptropt.h:
13931         added some pointer arithmetic optimization
13932
13933         * src/SDCCptropt.c:
13934         added some pointer arithmetic optimizations but not stable yet so not
13935         called from anywhere (will get this working shortly)
13936
13937         * src/SDCCopt.c: fixed for multiple sends & receives
13938
13939         * src/SDCCmain.c:
13940         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
13941         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
13942            set preprocessor defines (depending on options)
13943
13944         * src/SDCCicode.c, src/SDCCicode.h:
13945         changes made to handle multiple sends & receives
13946
13947         * src/SDCCglobl.h:
13948         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
13949
13950         * src/SDCCcse.c, src/SDCCcse.h:
13951         added function findbackward def (to be used in upcoming optimization)
13952
13953         * src/SDCCcflow.c, src/SDCCcflow.h:
13954         added function returnAtEnd - to determine if a basic block terminates with
13955         a RETURN iCode
13956
13957         * src/SDCCast.c, src/SDCCast.h:
13958         added option parms-in-bank1
13959
13960         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
13961         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
13962         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
13963         adjusted for --parms-in-bank1 option
13964
13965         * device/include/string.h:
13966         donot redefine "reentrant" keyword
13967
13968         * device/include/ds80c390.h: Added some more SFRs
13969
13970 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
13971
13972         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
13973
13974 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
13975
13976         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
13977
13978 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
13979
13980         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
13981
13982 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
13983
13984         * Added --xram-movc option
13985
13986 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
13987
13988         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
13989
13990 2002-01-11  Johan Knol
13991
13992         * Added math lib of Jesus Calvino-Fraga
13993
13994 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
13995
13996         * src/SDCCmain.c (processFile): fix processing of ../../src.c
13997         * support/regression/Makefile: new target test-mcs51-stack-auto
13998         * support/regression/ports/mcs51-stack-auto/spec.mk: added
13999
14000 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
14001
14002         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
14003
14004 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
14005
14006         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
14007
14008 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
14009
14010         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
14011
14012         * src/SDCCglue.h: add definition for printIvalChar()
14013
14014 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
14015
14016         * src/SDCCast.c: fix #498138 by Johan
14017
14018         * src/SDCCglue.c: fix #498138 by Johan
14019
14020 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
14021
14022         * support/regression/Makefile: fix clean
14023
14024         * support/regression/ports/ds390/support.c: fix transmission of last character
14025
14026 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
14027
14028         * /sdcc/src/ds390/gen.c:
14029         a) improved computing address of stack variable
14030         b) took out some #if 0 code
14031         c) improved parmBytes adjustment
14032         d) improved genPlusIncr & genMinusIncr
14033         e) genCmp could generate bad code (when left assigned to DPTR)
14034         f) Fixed bug in hasInc
14035
14036         * /sdcc/src/ds390/ralloc.c:
14037         a) packRegsForSupport could mess up live information (Fixed)
14038         b) packRegsDPTRuse could be incorrect for left & right shift
14039
14040         * /sdcc/src/mcs51/ralloc.c:
14041         packRegsForSupport could mess up the live information (Fixed)
14042
14043         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
14044
14045         * /sdcc/src/SDCCast.c:
14046         can reverse a loop even if function call is present as long
14047         as the loop control variable is local & is not passed as parameter
14048
14049 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
14050
14051         * /sdcc/ChangeLog: *** empty log message ***
14052
14053         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
14054         More builtin function additions for TININative
14055
14056         * /sdcc/src/ds390/ralloc.c:
14057         Had broken the regression testsuite
14058
14059         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
14060
14061         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
14062         Added funcattr hasStackParms will be set for reentrant functions when there
14063         are paramteres on the stack, this helps in minimizing frame pointer generation
14064         typeFromStr can handle function pointers now
14065
14066         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
14067         *** empty log message ***
14068
14069 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
14070
14071         * /src/ds390/gen.c, /src/ds390/main.c:
14072         More builtin function additions for TININative
14073
14074         * /src/ds390/ralloc.c:
14075         Had broken the regression testsuite
14076
14077         * /src/SDCCast.c: Fixed a bug in dumptree
14078
14079         * /src/SDCCsymt.c, /src/SDCCsymt.h:
14080         Added funcattr hasStackParms will be set for reentrant functions when there
14081         are paramteres on the stack, this helps in minimizing frame pointer generation
14082         typeFromStr can handle function pointers now
14083
14084         * /doc/builtins.txt, /doc/TININative.txt:
14085         *** empty log message ***
14086
14087
14088 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
14089
14090         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
14091         ALPHA version for -mTININative
14092
14093         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
14094         updated to reflect changes in the port structure
14095
14096         * /src/port.h:
14097         added function do_assemble (similar to do_link) if non-null this function
14098         will be called to do assembly (-mTININative) requires a multi command
14099         assembly
14100         added function genAssemblerEnd will be called to generate assembler Epilogue
14101
14102         * /src/SDCCsymt.c:
14103         added _JavaNative to debug info printing
14104
14105         * /src/SDCCmain.c: added option --tini-libid
14106         added port->do_assemble function (-mTININative) has a multi command assemble
14107
14108         * /src/SDCCglue.c: Disabled "constExpr" check
14109         added port->genAssemblerEnd function
14110
14111         * /src/SDCCglobl.h: Added option --tini-libid value
14112
14113         * /src/SDCCast.h:
14114         tookout optimizeCompare from the header (has no external references)
14115
14116         * /src/SDCCast.c: made one more function "static"
14117
14118 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
14119
14120         * src/z80/mappings.i: Added z80asm support.
14121
14122         * src/z80/main.c: Added z80asm support on --asm=z80asm
14123
14124         * src/z80/gen.c: Fixed asm portability issues.
14125
14126         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
14127
14128         * src/SDCCglue.c (printExterns): Added global/extern split.
14129
14130 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
14131
14132         * support/regression/Makefile: added test for mcs51 model large
14133
14134         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
14135
14136         * support/regression/ports/gbz80/spec.mk: added -mgbz80
14137
14138 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
14139
14140         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
14141
14142 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
14143
14144         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
14145
14146         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
14147
14148 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
14149
14150         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
14151
14152         * support/regression/tests/simplefloat.c: Port to mcs51.
14153
14154 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
14155         * support/regression/tests/bug-485362.c: Added.
14156
14157         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
14158
14159         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
14160
14161         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
14162
14163         * src/z80/gen.c (aopDump): Added a dump function.
14164
14165 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
14166         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
14167
14168         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
14169
14170         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
14171
14172         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
14173
14174         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
14175
14176         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
14177
14178         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
14179
14180         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
14181
14182         * support/regression/ports/ds390/support.c: Use tinibios.
14183
14184         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
14185
14186 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
14187
14188         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
14189         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
14190
14191         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
14192
14193         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
14194
14195 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
14196
14197         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
14198
14199         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
14200         (packRegsForIYUse): Created and optimised.
14201
14202 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
14203
14204         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
14205 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
14206
14207         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
14208
14209         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
14210
14211         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
14212
14213 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
14214
14215         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
14216
14217         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
14218
14219 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
14220
14221         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
14222
14223         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
14224
14225         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
14226
14227 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
14228
14229         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
14230         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
14231         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
14232
14233         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
14234
14235         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
14236         (genNotFloat): Added.
14237         (genUminusFloat): Added.
14238
14239         * device/lib/z80/Makefile: Added floating pt stubs.
14240
14241         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
14242
14243         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
14244
14245         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
14246
14247 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
14248
14249         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
14250
14251         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
14252
14253         * sdcc/support/regression/Makefile: Add port ds390.
14254
14255         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
14256
14257         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
14258
14259         * sdcc/support/regression/ports/ds390/spec.mk: Added.
14260
14261         * sdcc/support/regression/ports/ds390/support.c: Added.
14262
14263         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
14264
14265         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
14266
14267         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
14268
14269 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
14270
14271         * device/include/malloc.h: Added z80 and gbz80 support.
14272
14273         * device/lib/gbz80/heap.s: Added.
14274
14275         * device/lib/z80/heap.s: Added.
14276
14277         * device/lib/malloc.c: Added z80 and gbz80 support.
14278
14279         * support/regression/tests/malloc.c (testMalloc): Added.
14280
14281         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
14282
14283         * support/regression/tests/bug-478094.c: Added.
14284
14285         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
14286
14287 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
14288
14289         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
14290
14291         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
14292
14293         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
14294
14295         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
14296
14297         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
14298
14299 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
14300
14301         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
14302
14303 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
14304
14305         * support/regression/tests/bug-477927.c: Added.
14306
14307         * src/z80/peeph.def: Added minor rules.
14308
14309         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
14310
14311         * src/z80/peeph.def: Added jump optimisation modification.
14312
14313 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
14314
14315         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
14316
14317 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
14318
14319         * support/regression/tests/funptrs.c: Added.
14320
14321 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
14322
14323         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
14324
14325 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
14326
14327         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
14328
14329         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
14330
14331         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
14332         (movLeft2ResultLong): Created.
14333
14334         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
14335         (joinPushes): Added.  Joins two char pushes into a word push.
14336
14337 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
14338
14339         * support/cpp2/Makefile.in (install): Added creation of dest dir.
14340
14341         * support/makebin/Makefile (install): Added creation of dest dir.
14342
14343 2001-10-24 Karl Bongers <karl AT turbobit.com>
14344
14345         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
14346
14347 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
14348
14349         * src/z80/ralloc.c: Turned off faulty pack for one use.
14350
14351         * src/z80/peeph-gbz80.def: Removed redundent restart options.
14352
14353         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
14354
14355 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
14356
14357         * support/regression/Makefile: Improved clean
14358
14359         * support/regression/ports/gbz80/spec.mk: Added clean
14360
14361         * support/regression/ports/host/spec.mk: Added clean
14362
14363         * support/regression/ports/z80/spec.mk: Added clean
14364
14365         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
14366
14367         * support/regression/ports/mcs51/timeout.c: little improvements
14368
14369 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
14370
14371         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
14372
14373         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
14374
14375         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
14376
14377 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
14378
14379         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
14380
14381         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
14382
14383 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
14384         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
14385
14386         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
14387
14388         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
14389
14390         * src/mcs51/main.c (_linkCmd): Added bin path to command.
14391
14392         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
14393
14394         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
14395
14396         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
14397
14398         * support/regression/tests/longor.c: Added.
14399
14400 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
14401
14402         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
14403
14404         * as/mcs51/aslink.h: define PATH_MAX
14405
14406         * as/mcs51/asm.h: define PATH_MAX
14407
14408         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
14409
14410         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
14411
14412         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
14413
14414         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
14415
14416         * src/SDCCglobl.h: define PATH_MAX
14417
14418         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
14419
14420         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
14421
14422 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
14423
14424         * src/z80/gen.c (gencjneshort): Fixed
14425
14426         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
14427
14428 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
14429
14430         * support/regression/tests/bug-469671.c: Added.
14431
14432         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
14433
14434 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
14435
14436         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
14437
14438         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
14439
14440 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
14441
14442         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
14443
14444         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
14445
14446         * src/device/lib/_mullong.c : removed hint: nooverlay bug
14447
14448         * src/device/lib/_divuint.c : removed hint: nooverlay bug
14449
14450         * src/device/lib/_divulong.c: removed hint: nooverlay bug
14451
14452         * src/device/lib/_moduint.c : removed hint: nooverlay bug
14453
14454         * src/device/lib/_modulong.c: removed hint: nooverlay bug
14455
14456 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
14457
14458         * 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.
14459
14460         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
14461
14462         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
14463
14464 2001-10-07    <johan AT FRIJA>
14465
14466         * device/lib/gets.c (gets): fixed the return value.
14467
14468 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
14469         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
14470
14471         * 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.
14472
14473         * 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.
14474
14475         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
14476
14477         * src/pic/gen.c: Removed Safe_strdup.
14478
14479         * configure.in: Added option to enable libgc support.
14480
14481         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
14482         (bitVectUnion): Optimised.
14483         (bitVectIntersect): Optimised.
14484         (bitVectBitsInCommon): Optimised.
14485         (bitVectCplAnd): Optimised.
14486
14487         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
14488
14489 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14490
14491         * src/SDCCmain.c: distinguish between assembler debug and plain options
14492
14493         * src/avr/main.c:   remove standard assembler options
14494
14495         * src/ds390/main.c: remove standard assembler options
14496
14497         * src/mcs51/main.c: remove standard assembler options
14498
14499         * src/port.h: removed "PENDING" comment
14500
14501 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14502
14503         * src/device/lib/_mulint.c  : new, with assember functions
14504
14505         * src/device/lib/_mullong.c : new, with assember functions
14506
14507         * src/device/lib/_divuint.c : with assember functions
14508
14509         * src/device/lib/_divsint.c : with assember functions
14510
14511         * src/device/lib/_divulong.c: with assember functions
14512
14513         * src/device/lib/_divslong.c: with assember functions
14514
14515         * src/device/lib/_moduint.c : with assember functions
14516
14517         * src/device/lib/_modsint.c : with assember functions
14518
14519         * src/device/lib/_modulong.c: with assember functions
14520
14521         * src/device/lib/_modslong.c: with assember functions
14522
14523         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
14524
14525         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
14526
14527         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
14528                                       replaced _mululong.c and _mulslong.c by _mullong.c
14529
14530 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14531
14532         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
14533
14534 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
14535
14536         * src/SDCCglue.c: test, if win32api is available for MINGW
14537
14538 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
14539
14540         * src/SDCCsymt.c: no more _modifier in printTypeChain()
14541         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
14542         * support/regression/ports/gbz80/spec.mk: removed GENERIC
14543         * support/regression/ports/host/spec.mk: removed GENERIC
14544         * support/regression/ports/mcs51/spec.mk: removed GENERIC
14545         * support/regression/ports/z80/spec.mk: removed GENERIC
14546
14547 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
14548
14549         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
14550
14551         * support/regression/tests/bug-467035.c: Created.
14552
14553 2001-10-01    <johan AT FRIJA>
14554
14555         * src/SDCC.y: fixed bug #466586 part 1
14556
14557 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
14558
14559         * SDCCicode.c: z80 has no generic pointers
14560         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
14561
14562 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
14563
14564         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
14565
14566 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
14567
14568         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
14569
14570         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
14571
14572 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
14573
14574         * configure.in: Fixed up so that ucsim is only configured once.
14575
14576         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
14577
14578         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
14579         (getPathDifference): As above.
14580
14581         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
14582
14583         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
14584
14585 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
14586         * .version: Updated to 2.3.1
14587
14588         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
14589         Added copyright header.
14590
14591         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
14592         (assemble): Added support for macro based assembler commands.
14593         (linkEdit): Added support for macro based linker commands.
14594         (preProcess): Changed the pre-processor to use macros.
14595         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
14596         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
14597
14598         * device/lib/z80/crt0.s: Added module name for debugging.
14599
14600 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
14601
14602         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
14603
14604         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
14605
14606         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
14607
14608         * src/Makefile.in: Added SDCCmacro and SDCCutil
14609
14610 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
14611
14612         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
14613
14614 2001-09-16    <johan AT FRIJA>
14615
14616         * 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.
14617
14618 2001-09-15    <johan AT FRIJA>
14619
14620         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
14621         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
14622
14623 2001-09-11    <johan AT FRIJA>
14624
14625         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
14626
14627 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
14628
14629         * support/regression/tests/bug-460444.c: Added test case.
14630
14631         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
14632         (genCast): Added justification for all of the asserts.
14633
14634 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
14635
14636         * support/regression/support.c: _xdata replaced by xdata
14637
14638         * support/regression/spec.mk: removed _generic
14639
14640 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
14641
14642         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
14643
14644         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
14645         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
14646
14647         * src/z80/peeph.def: Added a rule to optimise shift then compare.
14648
14649         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
14650
14651         * support/regression/tests/bug-460010.c: Added test case.
14652
14653         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
14654
14655 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
14656
14657         * support/regression/Makefile: inter-port-clean adjusted for mcs51
14658
14659         * support/regression/testfwk.c: removed workaround for bug #436344
14660
14661         * support/regression/tests/bp.c: use less memory with mcs51
14662
14663         * support/regression/tests/bug-441448.c: use less memory
14664
14665         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
14666
14667         * support/regression/collate-results.py: typo
14668
14669 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
14670
14671         * support/regression/tests/fetchoverlap.c: Added new test case.
14672
14673         * support/regression/tests/bp.c: Added new test case.
14674
14675         * support/regression/tests/bug-448984.c: Added new test case.
14676
14677         * support/regression/tests/pow2shifts.c: Added new test case.
14678
14679         * src/z80/gen.c: Turned off the noise it normally generates for the release.
14680         (genlshTwo): Fixed right shift for count > 8.
14681
14682         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
14683
14684 2001-09-08    <johan AT FRIJA>
14685
14686         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
14687
14688 2001-09-07    <johan AT FRIJA>
14689
14690         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
14691
14692         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
14693
14694 2001-09-06    <johan AT FRIJA>
14695
14696         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
14697         * bernhard noted me at this: "() equals to (void)" (1.38)
14698
14699 2001-09-05    <johan AT FRIJA>
14700
14701         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
14702
14703 2001-09-04    <johan AT FRIJA>
14704
14705         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
14706
14707
14708 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
14709
14710         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
14711
14712 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
14713
14714         * link/z80/aslink.h: Fixed path for PATH_MAX
14715
14716 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
14717
14718         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
14719
14720         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
14721
14722         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
14723
14724         * 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.
14725
14726 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
14727
14728         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
14729         (genCmp): Fixed up genCmp for the GB with longs.
14730
14731         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
14732
14733         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
14734
14735         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
14736
14737         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
14738
14739 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
14740
14741         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
14742
14743 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
14744
14745         * 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.
14746
14747         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
14748
14749 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
14750
14751         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
14752
14753         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
14754
14755 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
14756
14757   * sim/ucsim/configure:    little improvement of Cygwin-detection
14758   * sim/ucsim/configure.in: little improvement of Cygwin-detection
14759   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
14760   * support/regression/tests/bug-221100.c: small changes for mcs51
14761   * support/regression/tests/bug-221168.c: small changes for mcs51
14762   * support/regression/tests/bug-227710.c: small changes for mcs51
14763   * support/regression/tests/staticinit.c: small changes for mcs51
14764   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
14765   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
14766   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
14767
14768 $Revision$