* as/link/z80/lklibr.c: fixed mingw build warning
[fw/sdcc] / ChangeLog
1 2007-06-10 Borut Razem <borut.razem AT siol.net>
2
3         * as/link/z80/lklibr.c: fixed mingw build warning
4           lklibr.c:575: warning: implicit declaration of function 'tolower'
5
6 2007-06-09 Borut Razem <borut.razem AT siol.net>
7
8         * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
9           removed unused swap_sense; removed outBitCLong, replaced with outBitC
10         * support/regression/tests/bug-1294691.c: added
11
12 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
13
14         * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
15           can also be static, fixes bug 1733438
16         * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
17           have absolute address too
18           (computeType): added optimization for 'cond ? true : false'
19         * support/regression/tests/absolute.c: added test for static absolute var
20
21 2007-06-08 Raphael Neider <rneider AT web.de>
22
23         * src/regression/Makefile: suppress parallel builds, allow easy
24           switching between pic14/pic16 ports
25         * src/regression/picregs.h: added pic14/16 header file switch
26         * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
27           inline.c,nestfor.c,string1.c}: include "picregs.h"
28
29 2007-06-07 Borut Razem <borut.razem AT siol.net>
30
31         * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
32           permanent solution to suppress GCC 4.2.0 c++ warning:
33           deprecated conversion from string constant to `char *'
34           use 'const char *' where ever required
35         * support/regression/generate-cases.py: implemented more flexible rule
36           for detection of testing functions, allowing white-spaces surrounding
37           the function name and the 'void' parameter.
38         * support/regression/tests/constantRange.c,
39           support/regression/tests/scott-compare3.c: fixed failing regression
40           tests, uncovered by implementation of more flexible rule for detection
41           of testing functions
42
43 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
44
45         * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
46
47 2007-06-04 Borut Razem <borut.razem AT siol.net>
48
49         * configure.in, configure, config_vc.awk: sdcc version number is now
50           stored in configure.in; removed .version
51         * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
52           doc/INSTALL.txt: version bumped to 2.7.2
53         * sim/ucsim/configure.in, sim/ucsim/configure:
54           use "read" to read from .version
55
56 2007-06-03 Borut Razem <borut.razem AT siol.net>
57
58         * */Makefile.in: removed annoying warning:
59           Makefile:xx: Makefile.dep: No such file or directory
60
61 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
62
63         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
64           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
65         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
66         * src/SDCCast.c (resultTypePropagate): propagate for '!',
67           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
68           bugfix: only use newBoolLink for bit result type
69         * src/SDCCicode.c (geniCodeLogic): added param tree,
70           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
71           (geniCodeLogicAndOr): use IS_BIT,
72           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
73           (ast2iCode): added tree param to geniCodeLogic for comparisons
74         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
75         * support/regression/tests/bug1723128.c: added test NotZero
76
77 2007-06-01 Borut Razem <borut.razem AT siol.net>
78
79         * SDCPP synchronized with GCC CPP release version 4.2.0,
80           currently the latest release:
81         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
82           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
83           support/cpp2/cppdefault.h, support/cpp2/except.h,
84           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
85           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
86           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
87           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
88           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
89           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
90           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
91           support/cpp2/opts.h, support/cpp2/output.h,
92           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
93           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
94           support/cpp2/system.h, support/cpp2/version.c,
95           support/cpp2/Makefile.in: modified
96         * support/cpp2/opts-common.c: added
97         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
98         * device/lib/pic16/libdev/pic18f[24]5j10.c:
99           search for included source file in local directory
100         * sim/ucsim/configure, sim/ucsim/configure.in:
101           temporary solution to suppress GCC 4.2.0 c++ warning:
102           deprecated conversion from string constant to `char *'
103
104 2007-06-01 Raphael Neider <rneider AT web.de>
105
106         * device/lib/pic/libdev/pic12f683.c,
107         * device/include/pic/pic12f683.h: added GPIO bits
108
109 2007-06-01 Raphael Neider <rneider AT web.de>
110
111         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
112           quotation marks, clarified role of PIC14 vs. PIC16 ports
113         * src/pic16/devices.inc,
114         * device/include/pic16/pic18fregs.h,
115         * device/include/pic16/pic18f[24][45]j10.h,
116         * device/lib/pic16/pics.all,
117         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
118           18f24j10, 18f25j10, 18f44j10, and 18f45j10
119         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
120           for new devices as they are not yet supported by gputils
121
122 2007-05-31 Borut Razem <borut.razem AT siol.net>
123
124         * Small Device C Compiler 2.7.0 released
125         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
126           changed sdcc version to 2.7.1
127         * support/scripts/sdcc.nsi: added How to create WIN32 release
128           setup.exe package
129
130 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
131
132         * doc/sdccman.lyx: documented initialization and allocation of absolute
133           variables, bit parameter passing, the need for function pointers to be
134           reentrant and alpha quality support of inline and retrict
135
136 2007-05-26 Borut Razem <borut.razem AT siol.net>
137
138         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
139           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
140         * docs/knownbugs.html: updated
141
142 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
143
144         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
145           thanks Jan Waclawek
146         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
147           AOP_CRY and ruonly
148           (gencjneshort): optimized when left is AOP_DIR
149         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
150           initializing unions in a struct/array
151         * support/regression/fwk/include/testfwk.h: added defines for data, near
152           and far for host and z80
153         * support/regression/tests/bug1723128.c: new, added
154
155 2007-05-22 Borut Razem <borut.razem AT siol.net>
156
157         * doc/knownbugs.html: updated
158
159 2007-05-21 Raphael Neider <rneider AT web.de>
160
161         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
162           error message instead
163         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
164
165 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
166
167         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
168
169 2007-05-21 Raphael Neider <rneider AT web.de>
170
171         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
172           closes #1722392
173         * src/regression/gpsim_assert.h,
174         * src/regression/Makefile,
175         * src/regression/pcodeopt.c: regression test for the above fix
176
177 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
178
179         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
180           jumps to self, fixed bug 1717281
181
182 2007-05-10 Borut Razem <borut.razem AT siol.net>
183
184         * support/scripts/gen_known_bugs.pl: cosmetic fix
185         * doc/knownbugs.html: generated by gen_known_bugs.pl
186
187 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
188
189         * src/SDCCast.c (createFunction): also generate non-inlined version of
190           function for functions declared as "static inline"
191         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
192           function can be inlined after non-inlined version generated.
193
194 2007-05-10 Borut Razem <borut.razem AT siol.net>
195
196         * support/scripts/gen_known_bugs.pl: added script
197           which generates knownbugs.html
198
199 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
200
201         * doc/knownbugs.html: updated for release 2.7.0
202
203 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
204
205         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
206
207 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
208
209         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
210           (throughout): updated generating comments
211         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
212           (throughout): updated generating comments
213         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
214           rule instead of at the second, or it might skip lines when removing the
215           complete match
216         * support/regression/tests/bug1714204.c: changed test to foo
217
218 2007-05-08 Borut Razem <borut.razem AT siol.net>
219
220         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
221           thanks to SDCC Distributed Compile Farm members,
222           added Z80 and GBZ80 command line options
223         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
224
225 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
226
227         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
228         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
229         * support/regression/tests/longlit.c: modified to be tested at all and
230           to pass the actual test
231
232 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
233
234         * device/include/mcs51/uPSD33xx.h: Added.
235
236 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
237
238         * device/lib/_gptrput.c,
239         * device/lib/_gptrget.c: removed old code,
240          (_gptrgetWord),
241         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
242         * support/regression/tests/bug1714204.c: new, added
243
244 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
245
246         * support/regression/tests/regtrack.c: test was never executed
247           because of the regression test being picky about white spaces.
248         * device/lib/mcs51/crtclear.asm: added comment
249
250 2007-05-06 Raphael Neider <rneider AT web.de>
251
252         * device/lib/pic/Makefile.rules,
253         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
254           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
255
256 2007-05-06 Raphael Neider <rneider AT web.de>
257
258         * src/pic16/device.h,
259         * src/pic16/main.h,
260         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
261           _pic16_setDefaultOptions): removed/reordered command-line args
262         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
263           devices, regrouped command line args, environment variables),
264           clarified sone points, added sections on how to add devices to the
265           PIC14/PIC16 ports
266
267 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
268
269         * src/z80/peeph.def: fixed bug in rule 2
270
271 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
272
273         * src/port.h: added TARGET_MCS51_LIKE
274         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
275           take advantage of it too
276         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
277           (shiftR2Left2Result): Optimized: don't check shifting by 0
278         * src/z80/peeph-z80.def,
279         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
280           modifications, see patch 1700823
281         * src/mcs51/peep.c (): fixed bug 1712928
282         * support/regression/tests/bug1712928.c: new, added
283
284 2007-05-05 Borut Razem <borut.razem AT siol.net>
285
286         * device/lib/pic16/Makefile.common.in,
287           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
288           removed bash dependencies
289
290 2007-05-01 Borut Razem <borut.razem AT siol.net>
291
292         * src/SDCCicode.c:
293           fixed bug #1710507: --i-code-in-asm makes compile fail
294           all iCode comments are now one liners
295         * src/mcs51/gen.c: fixed memory leak
296
297 2007-05-01 Raphael Neider <rneider AT web.de>
298
299         * device/lib/pic/libdev/*.c
300         * device/include/pic/*.h: regenerated all device libs from updated
301           .inc files
302         * support/scripts/inc2h.pl: documented usage, now uses strict to
303           catch more bugs
304
305 2007-04-30 Borut Razem <borut.razem AT siol.net>
306
307         * doc/sdccman.lyx:
308           fixed bug #1669175: Problem with space in output paths
309           documented how to use paths with spaces for Windows users
310
311 2007-04-29 Borut Razem <borut.razem AT siol.net>
312
313         * Fixed svn:eol-style and svn:keywords properties
314         * src/SDCCval.c: fixed bug
315           #1592871: Segfault with "large" const arrays of characters
316           replaced recursion with iteration
317         * Removed svn:executable property from non-executable files
318
319 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
320
321         * src/mcs51/gen.c (genRet): fixed bug 1707003
322
323 2007-04-27 Raphael Neider <rneider AT web.de>
324
325         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
326           createReachingDefinitions,assignValnums,pic16_destructDF,
327           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
328           prevent NULL pointer dereferences
329         * device/lib/pic/libdev/pic16f886.c,
330         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
331           prevent building them, gputils do not really support them yet
332
333 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
334
335         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
336           helps printf_small. 32 bytes more __idata mem.
337
338 2007-04-27 Raphael Neider <rneider AT web.de>
339
340         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
341           return early when pb or pb->pcHead is NULL (patch #1708427)
342         * src/regression/empty.c,
343         * src/regression/Makefile: added test with empty functions
344         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
345
346 2007-04-27 Borut Razem <borut.razem AT siol.net>
347
348         * src/SDCCast.c: fixed feature request
349           #1547512: Redundant strings linked when using sizeof("abc")
350
351 2007-04-23 Borut Razem <borut.razem AT siol.net>
352
353         * doc/sdccman.lyx, src/SDCCmain.c:
354           peep-hole comments are generated only if --fverbose-asm option is
355           specified and --no-peep-comments is not, as proposed by Frieder.
356         * support/regression/Makefile.in: compile regression tests with
357           --fverbose-asm option so one can "grep" whether a new (or an old)
358           peephole is (still) applied; requested by Frieder.
359
360 2007-04-23 Kevin Buettner <kevin AT buettner.to>
361
362         * device/include/pic/pic16f886.h,
363         * device/include/pic/pic16f887.h,
364         * device/lib/pic/libdev/pic16f886.c,
365         * device/lib/pic/libdev/pic16f887.c,
366         * device/include/pic/pic14devices.txt,
367         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
368
369 2007-04-23 Kevin Buettner <kevin AT buettner.to>
370
371         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
372           fixes #1704666
373
374 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
375
376         * device/lib/_memset.c: assembler version for mcs51
377
378 2007-04-22 Borut Razem <borut.razem AT siol.net>
379
380         * support/scripts/listerr.c: program to create the list of errors and
381           warnings list from - added
382         * doc/sdccman.lyx: removed the note
383           "For list of warnings and corresponding codes, see err_warn.txt"
384         * src/SDCCsymt.c: fixed bug #1699804:
385           Bug with some uses of sizeof(static local array) (MCS51)
386         * support/regression/tests/bug-1699804.c: added
387
388 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
389
390         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
391           (main): added option -i,
392           (asmbl, case S_INCL): use search_path_fopen,
393           mostly from patch 1579668 by Peter Miller, thanks
394         * src/z80/main.c: fixed typo --callee-saves-bc
395         * device/include/mcs51/compiler.h: added sfrword for Tasking
396
397 2007-04-20 Borut Razem <borut.razem AT siol.net>
398
399         * src/z80/main.c: replaced reserved keyword asm with asmblr
400
401 2007-04-19 Borut Razem <borut.razem AT siol.net>
402
403         * src/port.h: use const pointers to strings
404         * src/SDCCargs.h: declared getStringArg() and getIntArg()
405         * src/pic16/main.c: include SDCCargs.h
406         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
407           const char, since the strings are dynamically allocated
408         * src/SDCCmain.c: options.code_seg and options.const_seg are
409           dynamically allocated; check port specific command line options
410           before the general ones
411         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
412
413 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
414
415         * device/include/ds400rom.h,
416         * device/lib/ds390/lcd390.c,
417         * device/lib/ds390/memcpyx.c,
418         * device/lib/ds390/rtc390.c,
419         * device/lib/ds400/ds400rom.c,
420         * device/lib/ds400/memcpyx.c,
421         * device/lib/hc08/_ret.c: more replacements of keywords with their
422           double underscore equivalents
423         * device/lib/ds390/Makefile.in,
424         * device/lib/ds400/Makefile.in,
425         * device/lib/gbz80/Makefile.in,
426         * device/lib/hc08/Makefile.in,
427         * device/lib/mcs51/Makefile.in,
428         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
429
430 2007-04-17 Borut Razem <borut.razem AT siol.net>
431
432         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
433           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
434           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
435           to --fverbose-asm, to be gcc'ish
436
437 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
438
439         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
440
441 2007-04-17 Borut Razem <borut.razem AT siol.net>
442
443         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
444         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
445           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
446           with their double underscore equivalent
447
448 2007-04-14 Borut Razem <borut.razem AT siol.net>
449
450         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
451           source"
452
453 2007-04-13 Borut Razem <borut.razem AT siol.net>
454
455         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
456           C99 standard
457         * device/examples/serialcomm/windows/serial.[ch],
458           device/examples/serialcomm/windows/test_serialcomm.cpp:
459           updated by Bela Torok
460         * device/examples/serialcomm/windows/serialcomm.dsw,
461           device/examples/serialcomm/windows/serialcomm.dsp: added
462
463 2007-04-13 Jan Waclawek <wek AT efton.sk>
464
465         * doc/sdccman.lyx: additions and changes at various places
466           (submitted as #1697136).
467           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
468
469 2007-04-10 Borut Razem <borut.razem AT siol.net>
470
471         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
472           LyX file format changed to 245
473         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
474           "FreeWare" replaced with "free open source"
475
476 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
477
478         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
479
480 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
481
482         * device/include/pic16/pic18fregs.h,
483         * device/lib/_bp.c,
484         * device/lib/_decdptr.c,
485         * device/lib/_divsint.c,
486         * device/lib/_divslong.c,
487         * device/lib/_divuint.c,
488         * device/lib/_divulong.c,
489         * device/lib/_fs2schar.c,
490         * device/lib/_fs2sint.c,
491         * device/lib/_fs2slong.c,
492         * device/lib/_fs2uchar.c,
493         * device/lib/_fs2uint.c,
494         * device/lib/_fs2ulong.c,
495         * device/lib/_fsadd.c,
496         * device/lib/_fscmp.c,
497         * device/lib/_fsdiv.c,
498         * device/lib/_fseq.c,
499         * device/lib/_fsget1arg.c,
500         * device/lib/_fsget2args.c,
501         * device/lib/_fsgt.c,
502         * device/lib/_fslt.c,
503         * device/lib/_fsmul.c,
504         * device/lib/_fsneq.c,
505         * device/lib/_fsnormalize.c,
506         * device/lib/_fsreturnval.c,
507         * device/lib/_fsrshift.c,
508         * device/lib/_fssub.c,
509         * device/lib/_fsswapargs.c,
510         * device/lib/_gptrget.c,
511         * device/lib/_gptrgetc.c,
512         * device/lib/_gptrput.c,
513         * device/lib/_logexpf.c,
514         * device/lib/_modsint.c,
515         * device/lib/_modslong.c,
516         * device/lib/_moduint.c,
517         * device/lib/_modulong.c,
518         * device/lib/_mulint.c,
519         * device/lib/_mullong.c,
520         * device/lib/_schar2fs.c,
521         * device/lib/_ser.c,
522         * device/lib/_setjmp.c,
523         * device/lib/_sint2fs.c,
524         * device/lib/_slong2fs.c,
525         * device/lib/_spx.c,
526         * device/lib/_uchar2fs.c,
527         * device/lib/_uint2fs.c,
528         * device/lib/_ulong2fs.c,
529         * device/lib/asincosf.c,
530         * device/lib/atanf.c,
531         * device/lib/calloc.c,
532         * device/lib/ds390/tinibios.c,
533         * device/lib/ds400/tinibios.c,
534         * device/lib/expf.c,
535         * device/lib/free.c,
536         * device/lib/hc08/_mulint.c,
537         * device/lib/logf.c,
538         * device/lib/malloc.c,
539         * device/lib/printf_fast.c,
540         * device/lib/printf_tiny.c,
541         * device/lib/printfl.c,
542         * device/lib/realloc.c,
543         * device/lib/ser_ir.c,
544         * device/lib/serial.c,
545         * support/regression/tests/libmullong.c: replaced all special keywords
546           with their double underscore equivalent
547         * support/regression/ports/mcs51-xstack-auto/spec.mk,
548         * device/lib/Makefile.in: compile libs with --std-c99 instead of
549           --std-sdcc99
550         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
551           (genRet): if the bit-symbol is ruonly it already is in the carry
552         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
553         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
554         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
555           type UCHAR if dest is not bit
556
557 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
558
559         * device/include/math.h,
560         * device/lib/cotf.c,
561         * device/lib/expf.c,
562         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
563
564 2007-04-01 Borut Razem <borut.razem AT siol.net>
565
566         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
567           fixed bug #1692042: input buffer overflow...scanner uses REJECT
568         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
569           gcc_unreachable() called internal_error()...
570
571 2007-03-30 Raphael Neider <rneider AT web.de>
572
573         * src/pic/ralloc.c (isData): suppress garbage debug output
574
575 2007-03-28 Borut Razem <borut.razem AT siol.net>
576
577         * doc/sdccman.lyx:
578           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
579           is developed, built and used worldwide, and the word "night" doesn't
580           make any sense.
581
582 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
583
584         * device/include/mcs51/C8051F360.h: new, added
585         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
586
587 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
588
589         * src/SDCC.y (declaration_specifiers, function_specifier),
590         * support/Util/SDCCerr.c,
591         * support/Util/SDCCerr.h,
592         * src/SDCCsymt.h,
593         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
594           inline keyword
595         * src/SDCCmem.c (deallocParms),
596         * src/SDCCast.c: support for function inlining, not quite complete
597         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
598           'restrict' qualifier
599
600 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
601
602         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
603           (saveRBank, unsaveRBank): don't save bits,
604           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
605         * support/regression/tests/bug1535242.c: new, added
606         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
607           thanks Alexey Shamrin <shamrin AT gmail.com>,
608           made assert.h header ANSI compliant (added a check for NDEBUG macro,
609           removed header guard)
610         * .version,
611         * sdcc.spec: bumped version to 2.6.5
612         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
613
614 2007-03-22 Borut Razem <borut.razem AT siol.net>
615
616         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
617           fixed bug #1653671: sdcdb integration into ddd is broken
618
619 2007-03-22 Raphael Neider <rneider AT web.de>
620
621         * src/pic/gen.c (popGetExternal): augmented to also create references
622           to external variables (not only labels),
623           (genCall): comment on plan to reduce PAGESEL overhead,
624           (genFunction, genEndFunction): also save/restore FSR around interrupt
625           handling code, removed lots of unused code
626           (genDivOneByte): release acquired temp register
627         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
628           of popGetExternal
629         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
630           for registers that need to be saved during interrupts (FSR, STATUS,
631           PCLATH; W needs special handling), currently only FSR is used
632
633 2007-03-22 Raphael Neider <rneider AT web.de>
634
635         * device/include/pic/pic14devices.txt: 16f688 has only one config word
636
637 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
638
639         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
640
641 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
642
643         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
644
645 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
646
647         * as/link/aslink.h: added LKOBJEXT
648         * as/link/hc08/link_hc08.dsp,
649         * as/link/hc08/Makefile.bcc,
650         * as/link/hc08/Makefile.in,
651         * as/link/mcs51/aslink.dsp,
652         * as/link/mcs51/Makefile.bcc,
653         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
654         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
655         * as/link/lkaomf51.c: merged and moved
656         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
657         * as/link/z80/lkdata.c,
658         * as/link/lkdata.c: merged and moved
659         * as/link/hc08/lkmain.c,
660         * as/link/mcs51/lkmain.c: cosmetic changes
661         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
662         * as/link/lklex.c: use LKOBJEXT
663         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
664           ANSI-fied functions, removed bubble-sorts
665         * as/link/z80/lksym.c           as/link/lksym.c: merged,
666           ANSI-fied functions
667         * as/link/z80/linkgbz80.dsp,
668         * as/link/z80/linkz80.dsp,
669         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
670           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
671         * as/link/z80/lkhead.c,
672         * as/link/z80/lklex.c: deleted
673         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
674         * as/link/z80/lkmain.c: added copyfile()
675
676 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
677
678         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
679
680 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
681
682         * device/lib/_strlen.c: assembler version for mcs51
683
684 2007-03-13 Raphael Neider <rneider AT web.de>
685
686         * device/include/pic16/pic18f2221.h,
687         * device/include/pic16/pic18f2321.h,
688         * device/include/pic16/pic18f2331.h,
689         * device/include/pic16/pic18f4221.h,
690         * device/include/pic16/pic18f4321.h,
691         * device/include/pic16/pic18f4331.h: fixed config byte location names
692         * support/scripts/inc2h-pic16.pl: removed debug output, emit
693           consistently named config byte locations
694
695 2007-03-13 Borut Razem <borut.razem AT siol.net>
696
697         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
698           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
699           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
700           as/link/z80/Makefile.in, as/z80/Makefile.in:
701           introduced LDFLAGS
702
703 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
704
705         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
706         * device/lib/printf_large.c: pointer was converted to generic
707         pointer for mcs51 models other than model-small (Maarten noticed)
708
709 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
710
711         * device/include/mcs51/ADuC84x.h: Added.
712
713 2007-03-10 Borut Razem <borut.razem AT siol.net>
714
715         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
716           fixed RFE #1624219: double backslashes in filenames;
717           functions hexEscape(), octalEscape() and copyStr() moved from
718           SDCCval.c to SDCCutil.c and made them glovbally available
719
720 2007-03-09 Borut Razem <borut.razem AT siol.net>
721
722         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
723           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
724           1673361: Missaligned comments in output files
725
726 2007-03-09 Raphael Neider <rneider AT web.de>
727
728         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
729
730 2007-03-09 Raphael Neider <rneider AT web.de>
731
732         * src/pic/gen.c,
733         * src/pic/glue.c,
734         * src/pic/ralloc.c: suppress undesired debug output
735         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
736
737 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
738
739         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
740
741 2007-03-07 Borut Razem <borut.razem AT siol.net>
742
743         * device/lib/pic16/libdev/pic18f[24][34]31.c:
744           search include files in the current directory
745
746 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
747
748         * src/SDCCglue.c (emitMaps, glue),
749         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
750           absolute xdata
751         * support/regression/tests/absolute.c: added xdata test
752
753 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
754
755         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
756           added condition to macro, fixes bug 1666080
757
758 2007-03-02 Raphael Neider <rneider AT web.de>
759
760         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
761
762 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
763
764         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
765         be cleared. Unconditionally set __XPAGE
766         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
767
768 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
769
770         * src/SDCCglobl.h,
771         * src/SDCCmain.c,
772         * src/mcs51/gen.c,
773         * src/mcs51/rtrack.c,
774         * src/ds390/gen.c,
775         * doc/sdccman.lyx: added --no-gen-comments
776         * src/mcs51/peeph.def: added 192.b, disabled 185
777
778 2007-02-25 Raphael Neider <rneider AT web.de>
779
780         * src/pic16/gen.c (genCast): fixed typo
781         * device/lib/pic16/Makefile.subdir: only install existing files
782         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
783
784 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
785
786         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
787         * device/lib/mcs51/crtclear.asm,
788         * device/lib/mcs51/crtxclear.asm: renumbered labels
789         * device/lib/mcs51/Makefile.in: added crtcall.asm
790         * doc/sdccman.lyx: documented mcs51 crt* library startup code
791         * src/mcs51/gen.c (movc): removed,
792           (aopGet, genPlusBits): clear a after loading the carry (possibly from
793             acc.x or psw.x),
794           (toCarry, genSend, genRet): added function toCarry,
795           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
796           (assignBit, genAssign, genCast): added function assignBit
797         * src/mcs51/Makefile.bcc: added rtrack.c
798         * src/mcs51/ralloc.h: made valueKnown a bitfield
799         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
800           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
801           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
802         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
803         * src/z80/gen.c: added AOP_IS_PAIRPTR,
804           (_pop): only pop valid pairs, see gencjneshort,
805           (gencjneshort): return pair that still needs to be popped, restructured,
806           (gencjne, genCmpEq): call _pop
807
808 2007-02-23 Raphael Neider <rneider AT web.de>
809
810         * device/include/pic/pic14devices.txt: 16f684 has only one config word
811
812 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
813
814         * device/include/mcs51/P89LPC925.h: Added.
815
816 2007-02-18 Raphael Neider <rneider AT web.de>
817
818         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
819
820 2007-02-17 Borut Razem <borut.razem AT siol.net>
821
822         * support/cpp2/directives.c, support/cpp2/version.c:
823           synchronized with GCC CPP 4.1.2
824
825 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
826
827         * src/mcs51/rtrack.h,
828         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
829           by checking the strings passed by emitcode() to the assembler.
830           Feel free to change. This in part addresses RFE #482179.
831           Set environment variable SDCC_RTRACK to enable.
832         * src/mcs51/gen.c: inserted hooks
833         * src/mcs51/ralloc.h: added two members to struct regs
834         * support/regression/tests/regtrack.c: added
835
836 2007-02-14 Borut Razem <borut.razem AT siol.net>
837
838         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
839         * Makefile.in: applied patch from Makefile related part of
840           #1469393: Compiler does not initialize static data
841
842 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
843
844         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
845           for better fix of bug 1273984, compiles pic16 rand.c
846
847 2007-02-12 Borut Razem <borut.razem AT siol.net>
848
849         * src/pic16/main.c: fixed pic16 standard library directory bug
850
851 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
852
853         * src/hc08/gen.c (genSwap): fix swap regression test
854
855 2007-02-10 Borut Razem <borut.razem AT siol.net>
856
857         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
858           with same scope
859         * support/regression/tests/bug-1654060.c: added regression test for
860           #1654060
861
862 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
863
864         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
865         bit moves in return statement
866
867 2007-02-09 Borut Razem <borut.razem AT siol.net>
868
869         * src/SDCC.y: fixed bug #1654060 typedef within function causes
870           syntax error
871
872 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
873
874         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
875         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
876
877 2007-02-07 Raphael Neider <rneider AT web.de>
878
879         * src/pic16/devices.inc,
880         * device/include/pic16/pic18fregs.h,
881         * device/include/pic16/pic18f[24][34]31.h,
882         * device/lib/pic16/libdev/pic18f[24][34]31.c,
883         * device/lib/pic16/pics.all: added 18f[24][34]31 family
884         * device/lib/pic16/libio/i2c.ignore: do not build i2c
885
886 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
887
888         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
889           can this have lived here for so many years?
890         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
891           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
892         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
893
894 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
895
896         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
897         appended by loop induction must be at the very end of the eBBlock
898
899 2007-02-05 Kevin Vigor
900
901         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
902
903 2007-02-05 Borut Razem <borut.razem AT siol.net>
904
905         * support/regression/fwk/lib/timeout.c: native WIN32 port,
906           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
907
908 2007-02-03 Borut Razem <borut.razem AT siol.net>
909
910         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
911           applied patch #1646602 option to set default signedness of char to
912           unsigned, added -funsigned-char command line option,
913           thanks to Gunther Jehle
914         * device/lib/Makefile.in: added the -f option to rm so it doesn't
915           prompt for file deletion a few hundred times (especially the
916           subversion files, which have ro permissions so it asks for
917           confirmation), thanks to Simon McAuliffe;
918           added {} + option to find in order to remove multiple files from a
919           single rm commad
920
921 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
922
923         * device/include/mcs51/SST89x5xRDx.h: Added.
924
925 2007-02-02 Raphael Neider <rneider AT web.de>
926
927         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
928         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
929
930 2007-02-01 Raphael Neider <rneider AT web.de>
931
932         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
933           config words again
934
935 2007-01-31 Borut Razem <borut.razem AT siol.net>
936
937         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
938           if compiled with GCC. Thanks to Raphael Neider
939
940 2007-01-31 Raphael Neider <rneider AT web.de>
941
942         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
943             operand names, handles name and (name + n) for all n,
944           (sameBank): restructured, also check bank allocation policy,
945         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
946           (pic14_operandsAllocatedInSameBank): check whether to operands
947             will be allocated into the same bank (i.e., section) to reduce
948             BANKSEL overhead, queried from pcode.c:sameBank,
949           (pic14printLocals): reintroduced clustering registers into a single
950             section: all compiler generated symbols will now reside in one
951             bank (per file), reducing BANKSEL overhead and code size,
952           (showAllMemmaps): use local dbuf where possible
953
954 2007-01-29 Raphael Neider <rneider AT web.de>
955
956         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
957           (call_libraryfunc): retrieve/create symbol and mark as used,
958           (genFunction): mark defined functions as non-extern and add again
959            to code memmap for later output
960         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
961           (pic14printLocals): reworked for new symbol emission,
962           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
963           showAllMemmaps): reworked symbol output using dbufs, added handling
964             of string literals (still incomplete),
965           (picglue): removed symbol emission, moved into showAllMemmaps,
966           (emitSymbolSet): new workhorse for symbol output,
967           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
968
969 2007-01-29 Borut Razem <borut.razem AT siol.net>
970
971         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
972           component contains the extension separator.
973
974 2007-01-28 Borut Razem <borut.razem AT siol.net>
975
976         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
977           on WIN32
978         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
979           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
980           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
981           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
982           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
983           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
984           src/z80/gen.c, support/Util/MySystem.c:
985           accept slash and backslash as directory separator on WIN32 and
986           Cygwin ports
987
988 2007-01-28 Raphael Neider <rneider AT web.de>
989
990         * src/pic16/devices.inc,
991         * device/include/pic16/pic18f[24][23]21.h,
992         * device/include/pic16/pic18fregs.h,
993         * device/lib/pic16/libdev/pic18f[24][23]21.c,
994         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
995         * device/lib/pic16/libio/adc.ignore,
996         * device/lib/pic16/libio/i2c.ignore,
997         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
998           family, as gputils do not yet support the devices
999         * device/lib/pic16/Makefile.subdir: ignore errors on install
1000         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
1001           headers and libraries from gputils .inc files
1002
1003 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
1004
1005         * doc/sdccman.lyx: add printf_fast_f precision limitation note
1006
1007 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
1008
1009         * doc/sdccman.lyx: add printf benchmarks
1010
1011 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
1012
1013         * device/lib/printf_fast.c: fix %c, char promoted to int
1014         * device/lib/printf_tiny.c: fix %c, char promoted to int
1015
1016 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
1017
1018         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
1019
1020 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1021
1022         * support/regression/tests/swap.c: 64 bit hosts failed
1023         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
1024
1025 2007-01-25 Raphael Neider <rneider AT web.de>
1026
1027         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
1028           based on absolute register address, patch by Alex Blond
1029
1030 2007-01-22 Raphael Neider <rneider AT web.de>
1031
1032         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
1033           emitted, do not emit them again...
1034
1035 2007-01-22 Raphael Neider <rneider AT web.de>
1036
1037         * src/regression/bank1.c, src/regression/compare6.c,
1038           src/regression/add.c: cosmetic changes
1039         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
1040         * src/pic/gen.c: fixed global zero and one,
1041           (aopForSym): removed unued code,
1042           (aopGet): assert aop is defined, check and use `index' of
1043             pCodeImmd operands (fixes #1630908),
1044         * src/pic/pcode.c (get_op): added output of generic pointer tag,
1045           (register_reassign): prevent accidental register unification,
1046           (ReuseReg): cosmetic changes (also above)
1047         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
1048           pic14emitStaticSeg): do not emit initialized data,
1049           (printIval*): replaced with working versions,
1050           (pic14createInterruptVect,picglue): use idata for initialized data,
1051             now init data should work in all modules (not only main()),
1052         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
1053
1054 2007-01-21 Borut Razem <borut.razem AT siol.net>
1055
1056         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
1057           use -fPIC or -fpic if they are supported and not ignored
1058         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
1059         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
1060
1061 2007-01-20 Borut Razem <borut.razem AT siol.net>
1062
1063         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
1064           implemented RFE #1470316: allow "$" in variable names
1065
1066 2007-01-20 Raphael Neider <rneider AT web.de>
1067
1068         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
1069
1070 2007-01-20 Raphael Neider <rneider AT web.de>
1071
1072         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
1073         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
1074         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
1075         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
1076           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
1077         * device/lib/pic/libdev/pic*.c,
1078         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
1079         * device/lib/pic/libdev/Makefile.in: show progress
1080
1081 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
1082
1083         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
1084         * support/scripts/sdcc_cygwin_mingw32,
1085         * support/scripts/sdcc_mingw32,
1086         * support/scripts/build.mak: replaced --datadir by --datarootdir for
1087         conformance with autoconf 2.6
1088
1089 2007-01-19 Raphael Neider <rneider AT web.de>
1090
1091         * src/pic/device.c (register_map): fixed list construction
1092         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
1093           (genMod): removed case for genModbits,
1094           (genModbits): removed as now unused/unimplemented
1095         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
1096
1097 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1098
1099         * support/regression/tests/swap.c: added in response to #1638622
1100         * doc/sdccman.lyx: synced version, minor changes
1101
1102 2007-01-18 Borut Razem <borut.razem AT siol.net>
1103
1104         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
1105           thanks to Gunther Jehle
1106         * src/asm.c: don't die if the file drfined in #line couldn't be opened
1107         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
1108           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
1109           use filename in lineno instead.
1110         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
1111           print the file name in ast_print()
1112
1113 2007-01-18 Borut Razem <borut.razem AT siol.net>
1114
1115         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
1116           defined in MSVC
1117         * src/SDCC.lex: stringLiteral() returns const char pointer,
1118           EOF detection in stringLiteral(), fixed asmbuf memory leak,
1119           fixed column counting
1120         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
1121           accept const char pointer as parameter
1122         * src/SDCCdwarf2.c: corrected buffer size
1123
1124 2007-01-17 Borut Razem <borut.razem AT siol.net>
1125
1126         * support/Util/dbuf_string.c: fixed for amd64
1127
1128 2007-01-15 Borut Razem <borut.razem AT siol.net>
1129
1130         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
1131           removed terminal symbol ELIPSIS, since it was never generated by the
1132           lexer and it was wrongly used in parameter_identifier_list rule
1133
1134 2007-01-15 Raphael Neider <rneider AT web.de>
1135
1136         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
1137             code page and data banking description
1138         * src/pic/genarith.c,
1139         * src/pic/gen.h: removed bit arithmetic functions,
1140             updated exit(1) to exit(EXIT_FAILURE)
1141         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
1142         * device/include/pic16/pic18f2455.h,
1143         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
1144             TRISD and TRISE, fixed/added some bit names
1145         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
1146         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
1147             updated pic18f2455.{c,h} instead of duplicating them
1148
1149 2007-01-14 Borut Razem <borut.razem AT siol.net>
1150
1151         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
1152           Cannot debug files that contain spaces in the path name
1153           by converting spaces in asm file name to underscores
1154
1155 2007-01-13 Borut Razem <borut.razem AT siol.net>
1156
1157         * doc/sdccman.lyx: fixed format errors
1158
1159 2007-01-10 Borut Razem <borut.razem AT siol.net>
1160
1161         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
1162           codeseg/constseg #pragma fail
1163         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
1164         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
1165           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
1166           suppoprt/cpp2/sdcpp.[ch]: house cleaning
1167
1168 2007-01-09 Borut Razem <borut.razem AT siol.net>
1169
1170         * get rid of diagnistic.[ch], pretty-print.[ch],
1171           c-pretty-print.[ch], ... used just for error, warning, ...
1172           message formatting
1173         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
1174           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
1175           suppoprt/cpp2/pretty-print.[ch]:
1176           removed
1177         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
1178           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
1179           suppoprt/cpp2/sdcpp.dsp:
1180           changed
1181
1182 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
1183
1184         * device/lib/printf_large.c (output_float): removed recursion,
1185           use smaller buffer on stack for mcs51,
1186           fixed bug printing 1.96
1187         * support/regression/tests/snprintf.c: added test
1188
1189 2007-01-07 Borut Razem <borut.razem AT siol.net>
1190
1191         * use dynamic memory buffers instead temporary files
1192         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
1193           added
1194         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
1195           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
1196           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
1197           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
1198           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
1199           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
1200           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
1201           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
1202           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
1203           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
1204           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
1205           support/Util/dbuf.c, support/Util/dbuf.h:
1206           modified
1207         * .version, sdcc.spec: bumped version to 2.6.4
1208
1209 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
1210
1211         * src/port.h: added TARGET_Z80_LIKE macro
1212         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
1213           output PSEG location if --xram-loc or --xstack-loc was used
1214         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
1215
1216 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
1217
1218         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
1219         * as/as_z80.dsp,   as/z80/as_z80.dsp,
1220         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
1221         * sdcc.dsw: moved project files into subdir
1222         * as/hc08/as_hc08.dsp,
1223         * as/hc08/Makefile.bcc,
1224         * as/hc08/Makefile.in,
1225         * as/mcs51/Makefile.bcc,
1226         * as/mcs51/Makefile.in,
1227         * as/z80/Makefile.bcc,
1228         * as/z80/Makefile.in,
1229         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
1230         * as/hc08/asm.h,
1231         * as/mcs51/asm.h,
1232         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
1233         * as/hc08/asmain.c,
1234         * as/hc08/assym.c,
1235         * as/mcs51/asmain.c,
1236         * as/mcs51/assym.c,
1237         * as/z80/assym.c: removed include "strcmpi.h"
1238         * as/hc08/strcmpi.c,
1239         * as/hc08/strcmpi.h,
1240         * as/mcs51/strcmpi.c,
1241         * as/mcs51/strcmpi.h,
1242         * support/Util/strcmpi.c,
1243         * support/Util/strcmpi.h: removed files
1244         * as/strcmpi.c: added as_strncmpi()
1245
1246 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1247
1248         * sdcc.dsw: Added some dependencies on project config.dsp
1249
1250 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
1251
1252         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
1253           with [di]ram_start to fix a regresion
1254
1255 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
1256
1257         * configure.in: added missing mcs51 in status output
1258         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
1259         directory
1260         * debugger/mcs51/clean.mk (distclean): remove config.h
1261         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
1262         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
1263         options.h, s-options-h and options.c
1264         * support/cpp2/clean.mk: unused, removed
1265         * Makefile.common.in,
1266         * main_in.mk,
1267         * as/Makefile.in,
1268         * as/hc08/Makefile.in,
1269         * as/hc08/clean.mk,
1270         * as/mcs51/Makefile.in,
1271         * as/mcs51/clean.mk,
1272         * as/z80/clean.mk,
1273         * as/z80/conf.mk,
1274         * as/z80/Makefile.in,
1275         * as/z80/clean.mk,
1276         * as/link/Makefile.in,
1277         * as/link/hc08/Makefile.in,
1278         * as/link/hc08/clean.mk,
1279         * as/link/mcs51/Makefile.in,
1280         * as/link/mcs51/clean.mk,
1281         * as/link/z80/Makefile.in,
1282         * as/link/z80/clean.mk,
1283         * as/link/z80/conf.mk,
1284         * debugger/mcs51/Makefile.in,
1285         * debugger/mcs51/clean.mk,
1286         * device/include/Makefile.in,
1287         * device/lib/Makefile.in,
1288         * device/lib/mcs51/Makefile.in,
1289         * device/lib/pic/Makefile.in,
1290         * device/lib/pic/Makefile.common.in,
1291         * device/lib/pic/Makefile.subdir,
1292         * device/lib/pic/Makefile.rules,
1293         * device/lib/pic16/libio/Makefile.in,
1294         * device/lib/pic16/Makefile.subdir,
1295         * device/lib/pic16/libdev/Makefile.in,
1296         * device/lib/pic16/Makefile.rules,
1297         * device/lib/pic16/Makefile.common.in,
1298         * sim/ucsim/avr.src/Makefile.in,
1299         * sim/ucsim/main_in.mk,
1300         * sim/ucsim/cmd.src/Makefile.in,
1301         * sim/ucsim/doc/Makefile.in,
1302         * sim/ucsim/gui.src/Makefile.in,
1303         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
1304         * sim/ucsim/gui.src/serio.src/Makefile.in,
1305         * sim/ucsim/hc08.src/Makefile.in,
1306         * sim/ucsim/libltdl/Makefile.in,
1307         * sim/ucsim/s51.src/Makefile.in,
1308         * sim/ucsim/sim.src/Makefile.in,
1309         * sim/ucsim/sim.src/conf.mk,
1310         * sim/ucsim/xa.src/Makefile.in,
1311         * sim/ucsim/z80.src/Makefile.in,
1312         * src/Makefile.in,
1313         * src/clean.mk,
1314         * src/port.mk,
1315         * support/cpp2/Makefile.in,
1316         * support/librarian/Makefile.in,
1317         * support/librarian/clean.mk,
1318         * support/makebin/Makefile.in,
1319         * support/makebin/clean.mk,
1320         * support/packihx/Makefile.in,
1321         * support/regression/Makefile.in,
1322         * support/regression/ports/ds390/spec.mk,
1323         * support/regression/ports/gbz80/spec.mk,
1324         * support/regression/ports/hc08/spec.mk,
1325         * support/regression/ports/mcs51/spec.mk,
1326         * support/regression/ports/mcs51-large/spec.mk,
1327         * support/regression/ports/mcs51-medium/spec.mk,
1328         * support/regression/ports/mcs51-xstack-auto/spec.mk,
1329         * support/regression/ports/pic14/spec.mk,
1330         * support/regression/ports/pic16/spec.mk,
1331         * support/regression/ports/mcs51-stack-auto/spec.mk,
1332         * support/regression/ports/ucz80/spec.mk,
1333         * support/regression/ports/xa51/spec.mk,
1334         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
1335         adding a slash after $(top_builddir) and/or adding @datarootdir@
1336         * configure.in,
1337         * debugger/mcs51/configure.in,
1338         * device/lib/pic/configure.in,
1339         * device/lib/pic16/configure.in,
1340         * sim/ucsim/configure.in,
1341         * support/cpp2/configure.in,
1342         * support/packihx/configure.in: changed AC_PREREQ to 2.60
1343         * configure,
1344         * debugger/mcs51/configure,
1345         * device/lib/pic/configure,
1346         * device/lib/pic16/configure,
1347         * sim/ucsim/configure,
1348         * support/cpp2/configure,
1349         * support/packihx/configure: generated with autoconf 2.60
1350
1351 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
1352
1353         * as/link/hc08/lkihx.c (newArea),
1354         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
1355
1356 2007-01-02 Borut Razem <borut.razem AT siol.net>
1357
1358         * doc/sdccman.lyx: documented #pragma sdcc_hash
1359         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
1360           initialized to 0
1361         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
1362
1363 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
1364
1365         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
1366         empty 'while'-loop to work correctly, see regression test 'while.c'
1367         * support/regression/tests/while.c: added
1368
1369 2007-01-01 Borut Razem <borut.razem AT siol.net>
1370
1371         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
1372           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
1373           support/cpp2/libcpp/sdcpp.c:
1374           sdcpp specific pragma/directive/option handling moved to sdcpp.c
1375         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
1376         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
1377
1378 2006-12-31 Borut Razem <borut.razem AT siol.net>
1379
1380         * SDCPP synchronized with GCC CPP release version 4.1.1,
1381           currently the latest release:
1382         * support/cpp2/libcpp, support/cpp2/libcpp/include,
1383           support/cpp2/libcpp/include/cpp-id-data.h
1384           support/cpp2/libiberty/fopen_unlocked.c
1385           support/cpp2/libiberty/md5.c
1386           support/cpp2/md5.h
1387           support/cpp2/opt-functions.awk
1388           support/cpp2/opt-gather.awk
1389           support/cpp2/optc-gen.awk
1390           support/cpp2/opth-gen.awk:
1391           added
1392         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
1393           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1394           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
1395           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
1396           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
1397           support/cpp2/diagnostic.h, support/cpp2/except.h,
1398           support/cpp2/hwint.h, support/cpp2/input.h,
1399           support/cpp2/intl.h, support/cpp2/move-if-change,
1400           support/cpp2/opts.c, support/cpp2/opts.h,
1401           support/cpp2/output.h, support/cpp2/prefix.c,
1402           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
1403           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
1404           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
1405           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
1406           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
1407           support/cpp2/version.c:
1408           modified
1409         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
1410           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
1411           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
1412           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
1413           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
1414           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
1415           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
1416           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
1417           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
1418           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
1419           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
1420           moved
1421         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
1422           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
1423           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
1424           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
1425           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
1426           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
1427           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
1428           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
1429           support/cpp2/hashtable.h, support/cpp2/line-map.c,
1430           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
1431           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
1432           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
1433           support/cpp2/system.h:
1434           deleted / moved
1435
1436 2006-12-31 Borut Razem <borut.razem AT siol.net>
1437
1438         * configure.in, configure: fixed bug #1538756: configure dies if bison
1439           and flex are not installed, 2nd try
1440
1441 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
1442
1443         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
1444         400.x for better code in RFE 899102
1445
1446 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
1447
1448         * src/SDCCpeeph.c (deadMove),
1449         * src/port.h,
1450         * src/mcs51/peep.h: renamed 'op' by 'reg'
1451         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
1452         (scan4op): small change for removeDeadMove(), added support for
1453         'callee saves' and/or PACLL function calls,
1454         (removeDeadMove): added, removes superflous 'mov r%1,%2',
1455         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
1456         left in new dispatcher mcs51DeadMove()
1457         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
1458         removeDeadMove()
1459         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
1460
1461 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1462
1463         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
1464           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
1465
1466 2006-12-30 Borut Razem <borut.razem AT siol.net>
1467
1468         * support/cpp2/spacs.h: deleted from svn
1469         * configure.in, configure: fixed bug #1538756: configure dies if bison
1470           and flex are not installed
1471
1472 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
1473
1474         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
1475           with this z80 passes printf float test when enabled
1476         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
1477
1478 2006-12-28 Borut Razem <borut.razem AT siol.net>
1479
1480         * support/cpp2/config.in, support/cpp2/configure.in,
1481           support/cpp2/configure, support/cpp2/Makefile.in:
1482           fix for the solaris build
1483
1484 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1485
1486         * src/SDCC.y (type_specifier2, pointer),
1487         * src/SDCCsymt.h,
1488         * src/SDCCsymt.c (mergeSpec, checkSClass),
1489         * support/Util/SDCCerr.c,
1490         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
1491         * support/valdiag/valdiag.py: Allow test cases to specify
1492           required language standard
1493         * support/valdiag/tests/restrict.c: New file to test restrict keyword
1494         * support/valdiag/tests/tentdecl.c: Supress empty source file error
1495
1496 2006-12-27 Borut Razem <borut.razem AT siol.net>
1497
1498         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
1499         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
1500           mbchar removed
1501         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
1502           fixed for borland C
1503         * support/cpp2/libiberty/Makefile.bcc: updated
1504         * src/pic16/main.c: fixed #pragma udata handling
1505         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
1506
1507 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
1508
1509         * src/SDCCpeeph.c: made labelHashEntry global,
1510         made pcDistance, FBYNAME static,
1511         (pcDistance): made static, use isComment and isLabel,
1512         (deadMove): added,
1513         (getLabelRef): added, extracted from labelRefCount(),
1514         (labelRefCount): use new getLabelRef(),
1515         (callFuncByName): made static, added deadMove,
1516         use isComment and isLabel,
1517         (newPeepRule): made static, set isLabel,
1518         (isLabelDefinition): added parameter isPeepRule to allow '%' in
1519         labels from peephole rules,
1520         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
1521         when isComment or isLabel is set
1522         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
1523         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
1524         to make them global
1525         * src/mcs51/peep.h: added
1526         * src/mcs51/peep.c: added, implements mcs51DeadMove()
1527         * src/port.h: added peep->deadMove to port structure
1528         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
1529         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
1530         deadMove, finally removed no. 1 and 2
1531         * src/mcs51/gen.c,
1532         * src/pic/gen.c,
1533         * src/z80/gen.c,
1534         * src/z80/ralloc.c,
1535         * src/pic16/gen.c,
1536         * src/ds390/gen.c,
1537         * src/hc08/gen.c: mark lines with isComment or isLabel
1538         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
1539         * .version,
1540         * sdcc.spec: bumped version to 2.6.3
1541
1542 2006-12-26 Borut Razem <borut.razem AT siol.net>
1543
1544         * support/cpp2/Makefile.in: added dependency on options.h
1545         * configure: regenerated
1546         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
1547         * support/cpp2/Makefile.in: added vasprintf.c
1548
1549 2006-12-25 Borut Razem <borut.razem AT siol.net>
1550
1551         * SDCPP synchronized with GCC CPP release version 3.4.6,
1552           the latest release before 4.x:
1553         * support/cpp2/Makefile.in, support/cpp2/config.h,
1554           support/cpp2/configure, support/cpp2/configure.in,
1555           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
1556           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
1557           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
1558           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
1559           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
1560           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
1561           support/cpp2/cpptrad.c, support/cpp2/except.h,
1562           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
1563           support/cpp2/hwint.h, support/cpp2/intl.h,
1564           support/cpp2/line-map.c, support/cpp2/line-map.h,
1565           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
1566           support/cpp2/output.h, support/cpp2/prefix.c,
1567           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
1568           support/cpp2/system.h, support/cpp2/version.c:
1569           modified
1570         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1571           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
1572           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
1573           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
1574           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
1575           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
1576           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
1577           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
1578           support/cpp2/move-if-change, support/cpp2/opts.c,
1579           support/cpp2/opts.h, support/cpp2/opts.sh,
1580           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
1581           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
1582           support/cpp2/win32, support/cpp2/win32/dirent.c,
1583           support/cpp2/win32/dirent.h:
1584           added
1585         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
1586         * support/cpp2/sdcpp.h: renamed from sdcc.h
1587         * sdcppinit.c: deleted
1588
1589 2006-12-23 Borut Razem <borut.razem AT siol.net>
1590
1591         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
1592           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
1593           preproc.c: an other try to fix bug #982435: introduced
1594           -pedantic-parse-number command line option and pedantic_parse_number
1595           pragma
1596
1597 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
1598
1599         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
1600            BSEG handling,
1601           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
1602            corrected overlayed areax addresses, warn about memory overlaps
1603         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
1604         * src/avr/main.c,
1605         * src/ds390/main.c,
1606         * src/hc08/main.c,
1607         * src/mcs51/main.c,
1608         * src/pic16/main.c,
1609         * src/pic/main.c,
1610         * src/xa51/main.c,
1611         * src/z80/main.c,
1612         * src/port.h: added xabs_name and iabs_name
1613         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
1614           (glue, emitMaps): create and emit maps d_abs and i_abs
1615         * src/SDCCglue.h: cosmetic changes
1616         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
1617         * src/SDCCmem.h,
1618         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
1619           (allocDefault): put absolute, initialized globals in them
1620         * support/regression/tests/absolute.c: added absolute bdata test
1621         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
1622
1623 2006-12-20 Borut Razem <borut.razem AT siol.net>
1624
1625         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
1626         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
1627           added regression test for bug #982435
1628
1629 2006-12-18 Borut Razem <borut.razem AT siol.net>
1630
1631         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
1632         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
1633           small cosmetic changes
1634         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
1635         * support/regression/tests/bug-1351710.c: added regression test
1636
1637 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1638
1639         * doc/sdccman.lyx: added the long missed iCode table
1640           "<where is figure II?>", added links to wiki
1641
1642 2006-12-17 Borut Razem <borut.razem AT siol.net>
1643
1644         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
1645           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
1646           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
1647           unified table driven pragma handling, pragma argument type checking
1648         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
1649           current one - version 1.1.3
1650         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
1651
1652 2006-12-13 Raphael Neider <rneider AT web.de>
1653
1654         * src/pic/device.h: removed AssignedMemory structure and macros
1655         * src/pic/device.c: removed global finalMapping (linker assigns
1656             memory locations),
1657           (register_map): add SFRs to remembered memRanges
1658           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
1659           assignFixedRegisters,assignRelocatableRegisters): removed,
1660           (setMaxRAM,validAddress): adapted accordingly,
1661           (pic14_hasSharebank,pic14_getSharedStack): only report and use
1662             reasonably sized sharebanks,
1663         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
1664           (allDefsOutOfRange): removed unused code,
1665         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
1666             handling
1667         * src/pic/pcode.c (register_reassign): removed recursion warning,
1668             fired far too often,
1669         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
1670             to use existing pic14_stringInSet() to avoid duplicate symbols,
1671             tidied up the code a bit,
1672           (pic14printLocals): added in symmetry to printExterns, replaces
1673             writeUsedRegs more or less,
1674           (picglue): call new pic14_printLocals(),
1675         * device/include/pic/pic*.h: removed #pragma memmap directives,
1676             information gathered from include/pic/pic14devices.txt
1677         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
1678
1679 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
1680
1681         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
1682
1683 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1684
1685         * device/include/mcs51/cc2430.h: fixed missing ';'
1686
1687 2006-12-10 Raphael Neider <rneider AT web.de>
1688
1689         * device/lib/pic16/libc/stdio/vfprintf.c,
1690         * device/lib/pic16/libc/stdio/printf_small.c,
1691         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
1692           char arguments, as char varargs are cast to int by the caller,
1693           hopefully fixes #1604915 (other device libraries are still affected)
1694
1695 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1696
1697         * src/mcs51/ralloc.c (packRegsForAssign),
1698         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
1699
1700 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
1701
1702         * device/include/malloc.h: removed init_dynamic_memory
1703         * device/lib/malloc.c: made init_dynamic_memory static and automatically
1704           call it once from malloc. Also use _sdcc_heap[] from _heap.c
1705         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
1706         * device/lib/libsdcc.lib,
1707         * device/lib/Makefile.in,
1708         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
1709         * doc/sdccman.lyx: documented use of new _heap.c
1710         * support/regression/tests/malloc.c: removed init_dynamic_memory
1711         * src/cdbFile.c(spacesToUnderscores): new function,
1712           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
1713           1068030
1714         * device/include/tinibios.h: removed defines for putchar and getchar
1715         * device/lib/ds390/Makefile.in: added putchar.c
1716         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
1717
1718 2006-12-09 Borut Razem <borut.razem AT siol.net>
1719
1720         * support/cpp2/sdcc.h: prevent multiple inclusion
1721         * support/cpp2/options.h: deleted
1722
1723 2006-12-08 Borut Razem <borut.razem AT siol.net>
1724
1725         * support/cpp2/sdcc.h: removed x*alloc() macros
1726         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
1727         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
1728           support/cpp2/sdcpp.sdc: x*alloc files added to the project
1729         * support/cpp2/system.h: moved #include "sdcc.h"
1730         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
1731           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
1732           added
1733         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
1734           -funsigned-char options
1735         * support/cpp2/sdcppmain.c: fixed bug 1611411
1736
1737 2006-12-07 Borut Razem <borut.razem AT siol.net>
1738
1739         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
1740           directive
1741
1742 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
1743
1744         * src/SDCCsymt.c (addDecl): fixed bug 1609244
1745         * src/SDCCmain.c (linkEdit): fixed bug 1609279
1746         * doc/sdccman.lyx,
1747         * .version: bumped to 2.6.2 because a) it's been a while
1748           b) the linker sources have moved c) the preprocessor is upgraded
1749
1750 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1751
1752         * support/regression/tests/snprintf.c: some checks
1753         * lib/src/printf_large.c: %bc: read char instead of int from stack
1754
1755 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
1756
1757         * device/include/mcs51/cc2430.h: inserted _XPAGE
1758
1759 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1760
1761         * device/include/mcs51/cc2430.h: added
1762
1763 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
1764
1765         * device/include/asm/default/features.h,
1766         * device/include/asm/ds390/features.h,
1767         * device/include/mcs51/at89s53.h,
1768         * device/include/ser.h,
1769         * device/include/ser_ir.h,
1770         * device/include/serial.h: changed keywords to double underscore variants,
1771           fixes bug 1590261 some more, thanks Steven Borley
1772
1773 2006-12-01 Raphael Neider <rneider AT web.de>
1774
1775         * src/pic/pcode.c (register_reassign): do not crash on recursive code
1776           but emit warning (recursion is not supported for pic14)
1777
1778 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1779
1780         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
1781         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
1782
1783 2006-11-30 Raphael Neider <rneider AT web.de>
1784
1785         * src/pic/device.c (dump_sfr): always emit symbols
1786         * src/pic/glue.c (pic14printPublics): fixed typo
1787
1788 2006-11-30 Raphael Neider <rneider AT web.de>
1789
1790         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
1791           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
1792           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
1793            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
1794            a sharebank, use a non-shared bank for the stack if none available
1795         * src/pic/device.h (struct memRange): added linked list next field,
1796           added prototypes for above functions
1797         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
1798           (typeRegWithIdx): accept fixed and unfixed stack registers
1799         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
1800           the stack, handle shared and banked stack (except for WSAVE),
1801           (insertBankSel): removed useless optimization (will never fire),
1802           (FixRegisterBanking): added optimization for devices with only one
1803           possibly aliased bank of memory, like 16f84
1804         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
1805           devices have no SHAREBANK in the linker script
1806         * device/include/pic/pic14devices.txt: documented memmap
1807         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
1808
1809 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1810
1811         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
1812           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
1813           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
1814           genhc08Code): switched most of the D (debug) macros to DD (detailed
1815           debug) macros to better control clutter in the generated .asm file.
1816         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
1817           genRightShift): fixed bug with non-constant bit shift stored to
1818           a volatile result (SF Open Discussion forum thread #1616749).
1819           Single byte case is not yet optimized.
1820
1821 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
1822
1823         * device/include/asm/mcs51/features.h,
1824         * device/include/malloc.h,
1825         * device/include/stdio.h: changed keywords to double underscore variants,
1826           fixes bug 1590261
1827
1828 2006-11-27 Borut Razem <borut.razem AT siol.net>
1829
1830         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
1831           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
1832           support/cpp2/output.h, support/cpp2/cppinit.c,
1833           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
1834           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
1835           support/cpp2/cppdefault.c, support/cpp2/system.h,
1836           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
1837           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
1838           support/cpp2/prefix.c, support/cpp2/except.h,
1839           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
1840           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
1841           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
1842           support/cpp2/version.c, support/cpp2/cppmain.c,
1843           support/cpp2/version.h, support/cpp2/hashtable.c,
1844           support/cpp2/cpperror.c:
1845           synchronized with GCC CPP release version 3.3.6,
1846           the latest where cppmain.c still exists.
1847         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
1848           support/cpp2/sdcppinit.c: added
1849
1850 2006-11-27 Borut Razem <borut.razem AT siol.net>
1851
1852         * support/cpp2/cpplex.c:
1853           fixed _asm ... _endasm handling bug, introduce with GCC CPP
1854           synchronization
1855         * support/cpp2/cpplib.c: removed definitions of unused variables
1856
1857 2006-11-26 Borut Razem <borut.razem AT siol.net>
1858
1859         * support/cpp2/libiberty.h: commented out x*alloc() declarations
1860           since they are redefined by macros in support/cpp2/sdcc.h
1861         * support/cpp2/sdcc.h: x*alloc macro redefinition
1862
1863 2006-11-25 Borut Razem <borut.razem AT siol.net>
1864
1865         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
1866           support/cpp2/configure, support/cpp2/Makefile.in,
1867           support/cpp2/cppfiles.c, support/cpp2/output.h,
1868           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
1869           support/cpp2/config.h, support/cpp2/cpplib.h,
1870           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
1871           support/cpp2/cppdefault.c, support/cpp2/config.in,
1872           support/cpp2/system.h, support/cpp2/cpplex.c,
1873           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
1874           support/cpp2/cppdefault.h, support/cpp2/prefix.c
1875           support/cpp2/hwint.h, support/cpp2/mbchar.h,
1876           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
1877           support/cpp2/configure.in, support/cpp2/intl.h,
1878           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
1879           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
1880           support/cpp2/version.c, support/cpp2/cppmain.c,
1881           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
1882           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
1883           support/cpp2/cpperror.c,
1884           support/cpp2/libiberty/safe-ctype.c,
1885           support/cpp2/libiberty/safe-ctype.h,
1886           support/cpp2/libiberty/splay-tree.c,
1887           support/cpp2/libiberty/obstack.c,
1888           support/cpp2/libiberty/lbasename.c,
1889           support/cpp2/libiberty/splay-tree.h,
1890           support/cpp2/libiberty/obstack.h:
1891           synchronized with GCC CPP release version 3.2.3,
1892           the latest before integration of cpp into gcc
1893         * support/cpp2/except.h, support/cpp2/line-map.c,
1894           support/cpp2/line-map.h,
1895           support/cpp2/libiberty/hex.c,
1896           support/cpp2/libiberty/concat.c,
1897           support/cpp2/libiberty/filenames.h: added
1898         * support/cpp2/intl.c: deleted
1899
1900 2006-11-24 Borut Razem <borut.razem AT siol.net>
1901
1902         * src/SDCC.y: enabled compilation of empty source file
1903         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
1904           "ISO C forbids an empty source file"
1905         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
1906           if all the code is ifdefed out.
1907
1908 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1909
1910         * src/hc08/gen.c (genPcall): fix for bug #1601032
1911
1912 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
1913
1914         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
1915         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
1916         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
1917         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
1918         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
1919         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
1920         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
1921         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
1922         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
1923         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
1924         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
1925         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
1926         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
1927         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
1928         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
1929           Renamed to all upper case as per the standard set by SiLabs
1930
1931 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
1932
1933         * device/include/mcs51/C8051F520.h: new, added
1934         * device/include/mcs51/compiler.h: added link about predefined macros
1935
1936 2006-11-23 Raphael Neider <rneider AT web.de>
1937
1938         * src/regression/Makefile: add -L path to fresh library
1939         * src/regression/simulate: emphasize FAILED output
1940         * src/regression/create_stc: output _failures from gpsim
1941         * src/regression/compare4.c,
1942         * src/regression/rotate6.c: fixed char literals,
1943           all compile, all run =8-D
1944
1945         * src/pic/pcode.h: added isPCASMDIR macro
1946         * src/pic/gen.c (genAnd): fixed bit offset
1947         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
1948           packBits): unified register numbering schemes,
1949           (newReg): do not insert stack registers into hash table,
1950           (initStack): unpinned pseudo stack, simplified,
1951           (typeRegWithIdx): fixed retrieval of stack registers,
1952         * src/pic/pcode.c (addpCodeComment,sameBank): added,
1953           (pCodeReplace): removed invalid assertion,
1954           (insertPCodeInstruction): fixed newly added labels,
1955           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
1956           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
1957           DumpFlow): removed unsed (broken?) code,
1958           (insertBankSel): prevent STATUS from being BANKSELed,
1959           (FixRegisterBanking): rewritten from scratch, implemented generic
1960             optimizations (suppress BANKSELs to same register and to registers
1961             present in all banks),
1962           (AnalyzeBanking): update flow after BANKSELection
1963
1964         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
1965             sharebank, let linker place it, mark STKxx symbols as emitted
1966
1967 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1968
1969         * src/regression/arrays.c,
1970         * src/regression/bank1.c,
1971         * src/regression/bool2.c,
1972         * src/regression/compare7.c,
1973         * src/regression/compare8.c,
1974         * src/regression/compare9.c,
1975         * src/regression/compare10.c,
1976         * src/regression/configword.c,
1977         * src/regression/for.c,
1978         * src/regression/mult1.c,
1979         * src/regression/pointer1.c,
1980         * src/regression/rotate6.c,
1981         * src/regression/string1.c,
1982         * src/regression/struct1.c,
1983         * src/regression/Makefile: make PIC14 regression tests run again
1984           (3 fail, 6 won't compile)
1985
1986 2006-11-21 Raphael Neider <rneider AT web.de>
1987
1988         * device/include/pic16/pic18f4550.h,
1989         * device/include/pic16/pic18f4455.h,
1990         * device/lib/pic16/libdev/pic18f4550.c,
1991         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
1992         * configure.in: removed superfluous closing bracket
1993
1994 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1995
1996         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
1997           always positive.
1998
1999 2006-11-21 Raphael Neider <rneider AT web.de>
2000
2001         * src/pic/device.{c,h}: added pic14_getPIC()
2002         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
2003           (genAnd): added PIC code for one case, fixes #1597044
2004         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
2005           SFRs that are present in all banks (e.g., STATUS)
2006
2007 2006-11-20 Raphael Neider <rneider AT web.de>
2008
2009         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
2010           INCFSZ/INCFSZW and declared them as changing Z bit,
2011           (insertPCodeInstruction): correctly invert the above instructions,
2012           fixes #1599333,
2013           (DoBankSelect): don't panic on po_immediates
2014
2015 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
2016
2017         * as/link/aslink.h,
2018         * as/link/mcs51/lkihx.c (newArea),
2019         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
2020         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
2021
2022 2006-11-11 Raphael Neider <rneider AT web.de>
2023
2024         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
2025           bitfield symbols, fixes #1579535 (once more...).
2026
2027 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2028
2029         * support/regression/generate-cases.py,
2030         * support/regression/fwk/include/testfwk.h,
2031         * support/regression/fwk/lib/testfwk.c: used code pointers,
2032           (about 50kByte less code generated for mcs51)
2033
2034 2006-11-06 Borut Razem <borut.razem AT siol.net>
2035
2036         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
2037           debugger/mcs51/configure: fixed failed check because the function
2038           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
2039           who submitted the patch for gpsim.
2040         * debugger/mcs51/configure.in: removed the result message
2041         * debugger/mcs51/Makefile.in: fixed the config.status warning
2042           "... seems to ignore the --datarootdir setting"
2043
2044 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
2045
2046         * device/include/mcs51/c8051f020.h,
2047         * device/include/mcs51/c8051f040.h,
2048         * device/include/mcs51/c8051f060.h,
2049         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
2050         * src/z80/gen.c (gencjneshort),
2051         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
2052
2053 2006-10-31 Borut Razem <borut.razem AT siol.net>
2054
2055         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
2056           debugger/mcs51/configure: get readline version
2057
2058 2006-10-30 Borut Razem <borut.razem AT siol.net>
2059
2060         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
2061         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
2062           debugger/mcs51/configure: locate readline even when cross compiling
2063         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
2064
2065 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2066
2067         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
2068           serial port.
2069
2070 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
2071
2072         * device/include/malloc.h,
2073         * device/lib/calloc.c,
2074         * device/lib/free.c,
2075         * device/lib/malloc.c,
2076         * device/lib/realloc.c: moved definition of struct into sources
2077         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
2078
2079 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
2080
2081         * as/asx8051.dsp: corrected output directories
2082         * as/link/hc08: new directory for hc08 linker
2083         * as/hc08/aslink.h,             as/link/aslink.h,
2084         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
2085         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
2086         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
2087         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
2088         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
2089         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
2090         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
2091         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
2092         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
2093         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
2094         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
2095         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
2096         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
2097         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
2098         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
2099         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
2100         * as/link/hc08/conf.mk,
2101         * configure,
2102         * configure.in,
2103         * Makefile.in,
2104         * sdcc.dsw: moved hc08 linker to as/link/hc08
2105         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
2106         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
2107         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
2108         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
2109         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
2110         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
2111         * as/link/mcs51/aslink.dsp,
2112         * as/link/mcs51/Makefile.in: factored out the common files
2113         * as/hc08/lkstore.c: deleted, use the one already in as/link/
2114         * as/clean.mk: extra cleaning common files
2115         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
2116         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
2117         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
2118
2119 2006-10-29 Raphael Neider <rneider AT web.de>
2120
2121         * src/pic/ralloc.c (newReg): create aliases for registers with
2122           multiple names to fix #1579535 and #1584001,
2123           (regWithIdx,dirregWithName): resolve aliases on lookup
2124         * src/pic/pcode.c (DoBankSelect): die with error message on failing
2125           bankselect
2126         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
2127           to prevent build errors on small devices
2128
2129 2006-10-28 Raphael Neider <rneider AT web.de>
2130
2131         * src/pic/gen.c (genFunction,genCall): drop "same code page"
2132           assumption within interrupt handlers, fixes #1584940
2133         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
2134           "emitted" to avoid emitting them again in udata
2135
2136 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2137
2138         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
2139         Removed.
2140
2141 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2142
2143         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
2144         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
2145         on/off CR to CRLF conversion.
2146
2147 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2148
2149         * doc/sdccman.lyx: updated IRQ section
2150
2151 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2152
2153         * device/lib/serial_io.c: removed
2154         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
2155         replacements for serial_io.c
2156
2157 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
2158
2159         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
2160
2161 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2162
2163         * device/lib/serial_io.c: Default putchar() and getchar() for
2164           mcs51 uses serial port.
2165
2166 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
2167
2168         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
2169
2170 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2171
2172         * support/regression/ports/mcs51/support.c: smaller
2173         _sdcc_external_startup()
2174         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
2175
2176 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
2177
2178         * device/lib/gbz80/crt0.s,
2179         * device/lib/gbz80/crt0_rle.s,
2180         * device/lib/gbz80/div.s,
2181         * device/lib/gbz80/fstubs.s,
2182         * device/lib/gbz80/heap.s,
2183         * device/lib/gbz80/mul.s,
2184         * device/lib/gbz80/putchar.s,
2185         * device/lib/gbz80/stubs.s,
2186         * device/lib/z80/crt0.s,
2187         * device/lib/z80/crt0_rle.s,
2188         * device/lib/z80/div.s,
2189         * device/lib/z80/fstubs.s,
2190         * device/lib/z80/heap.s,
2191         * device/lib/z80/mul.s,
2192         * device/lib/z80/putchar.s,
2193         * device/lib/z80/stubs.s: reverted, I was mistaken
2194
2195 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2196
2197         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
2198         * support/regression/ports/mcs51/support.c: removed race
2199         condition on TI in _putchar allowing to use serial port mode 0
2200
2201 2006-10-20 Borut Razem <borut.razem AT siol.net>
2202
2203         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
2204
2205 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
2206
2207         * device/lib/gbz80/crt0.s,
2208         * device/lib/gbz80/crt0_rle.s,
2209         * device/lib/gbz80/div.s,
2210         * device/lib/gbz80/fstubs.s,
2211         * device/lib/gbz80/heap.s,
2212         * device/lib/gbz80/mul.s,
2213         * device/lib/gbz80/putchar.s,
2214         * device/lib/gbz80/stubs.s,
2215         * device/lib/z80/crt0.s,
2216         * device/lib/z80/crt0_rle.s,
2217         * device/lib/z80/div.s,
2218         * device/lib/z80/fstubs.s,
2219         * device/lib/z80/heap.s,
2220         * device/lib/z80/mul.s,
2221         * device/lib/z80/putchar.s,
2222         * device/lib/z80/stubs.s: removed all leading underscores from area names
2223
2224 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
2225
2226         * support/regression/ports/mcs51/support.c: use highest baudrate so the
2227           regression tests are not waiting in the simulator for simulated
2228           transmission of debug output
2229
2230 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2231
2232         * device/lib/printf_large.c: slightly smaller
2233         * doc/sdccman.lyx: do not use spaces within html links
2234
2235 2006-10-16 Borut Razem <borut.razem AT siol.net>
2236
2237         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
2238           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
2239           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
2240           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
2241           debugger/mcs51/configure:
2242           [ 1185668 ] add gnu readline support to sdcdb - enabled
2243
2244 2006-10-16 Raphael Neider <rneider AT web.de>
2245
2246         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
2247           fixes #1577882, removes close to all banking optimizations
2248
2249 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
2250
2251         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
2252           variables in code memory
2253         * support/regression/tests/absolute.c: added test for this
2254
2255 2006-10-15 Raphael Neider <rneider AT web.de>
2256
2257         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
2258           devices,
2259           (BankSelect): emit BANKSEL before touching linker-placed regs,
2260           fixes #1570934
2261
2262 2006-10-10 Raphael Neider <rneider AT web.de>
2263
2264         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
2265         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
2266         * src/pic/main.c (_pic14_parseOptions),
2267         * src/pic/main.h: mostly reverted to previous state, now use results
2268             from SDCCmain.c's argument parsing
2269
2270 2006-10-10 Borut Razem <borut.razem AT siol.net>
2271
2272         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
2273           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
2274           [ 1185668 ] add gnu readline support to sdcdb -
2275           prepared for READLINE, not enabled yet,
2276           thanks to <tal.bav AT gmail.com>
2277
2278 2006-10-10 Raphael Neider <rneider AT web.de>
2279
2280         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
2281         * src/pic16/devices.inc,
2282         * device/include/pic16 (pic18f[24]620.h),
2283         * device/include/pic18fregs.h,
2284         * device/lib/pic16/pics.all,
2285         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
2286             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
2287             Gary Plumbridge and Anton Strobl
2288
2289 2006-10-10 Raphael Neider <rneider AT web.de>
2290
2291         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
2292           --stack-siz=NUM options to configure the argument passing stack
2293         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
2294         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
2295           (pic14_getSharebankSize): obey --stack-siz=NUM,
2296           (pic14_getSharebankAddress): obey --stack-loc=NUM
2297
2298 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2299
2300         * doc/sdccman.lyx: added to the manual
2301         * doc/figures/ddd_example.png: added (neither pdflatex nor
2302         most browsers seem to like the .eps file)
2303
2304 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
2305
2306         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
2307         to /tmp and /var/tmp acc. LSB
2308         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
2309         RESULT_TYPE_IFX
2310         * support/regression/tests/onebyte.c: added test
2311
2312 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2313
2314         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
2315
2316 2006-10-05 Borut Razem <borut.razem AT siol.net>
2317
2318         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
2319           thanks to dfulab:
2320           - sdcc.dsw: changed property eol-style to CRLF
2321           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
2322
2323 2006-10-04 Raphael Neider <rneider AT web.de>
2324
2325         * device/include/pic/{pic16f84.h,pic16f84a.h},
2326         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
2327           from patch #1522504, thanks to Robas Teodor
2328
2329 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
2330
2331         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
2332           fixes bug 1566015
2333
2334 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
2335
2336         * src/pic16/glue.c (pic16emitMaps),
2337         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
2338         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
2339         * device/lib/pic16/libc/string/memcpypgm2ram.c,
2340         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
2341           Philipp Krause
2342         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
2343         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
2344
2345 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2346
2347         * support/librarian/sdcclib.c: Added option -l.
2348         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
2349           usage totals.
2350         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
2351           using Windows command prompt.
2352
2353 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
2354
2355         * device/lib/libsdcc.lib: added module rand
2356         * src/ds390/ralloc.c (rematStr),
2357         * src/hc08/ralloc.c (rematStr),
2358         * src/mcs51/ralloc.c (rematStr),
2359         * src/z80/ralloc.c (rematStr): made output more consistent
2360         * src/mcs51/gen.c: cosmetic changes
2361
2362 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
2363
2364         * src/port.h: added mem.cabs_name to PORT
2365         * src/ds390/main.c,
2366         * src/hc08/main.c,
2367         * src/mcs51/main.c,
2368         * src/pic16/main.c,
2369         * src/pic/main.c,
2370         * src/xa51/main.c,
2371         * src/z80/main.c: added cabs_name initializers
2372         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
2373           constants
2374           (emitMaps): emit absolutes in code memory into cabs_name
2375         * src/SDCCmem.c,
2376         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
2377         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
2378         * support/regression/fwk/include/testfwk.h: added define for at
2379         * support/regression/tests/absolute.c: added, new
2380
2381 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
2382
2383         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
2384           optimizations, see also patch 887161 by Stas Sergeev
2385         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
2386           to be necessary anymore,
2387           (102, 103, 104, 127): renamed all occurances of bp to _bp
2388
2389 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
2390
2391         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
2392           thanks Weston T. Schmidt for patch 1555221
2393         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
2394         * src/SDCCicode.c(geniCodeMultiply): small optimization
2395
2396 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
2397
2398         * device/include/stdlib.h: added rand prototypes
2399         * device/lib/rand.c: new, added
2400         * device/lib/Makefile.in: added rand.c
2401         * src/z80/peeph.def,
2402         * src/z80/peeph-gbz80.def,
2403         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
2404
2405 2006-09-20 Raphael Neider <rneider AT web.de>
2406
2407         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
2408
2409 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
2410
2411         * as/link/aslink.h: cosmetic changes
2412         * as/link/mcs51/Makefile.in,
2413         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
2414
2415 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
2416
2417         * as/link/aslink.h,
2418         * as/link/mcs51/aslink.h,
2419         * as/link/z80/aslink.h: merged and moved to as/link/
2420         * as/link/lkstore.c,
2421         * as/link/mcs51/lkstore.c: moved to as/link/
2422         * as/link/clean.mk: remove *.o
2423         * as/link/mcs51/alloc.h: deleted
2424         * as/link/mcs51/lkarea.c: added lnksect prototype
2425         * as/link/mcs51/lkdata.c,
2426         * as/link/mcs51/lklex.c,
2427         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
2428         * as/link/mcs51/lkmem.c,
2429         * as/link/mcs51/lknoice.c: removed include strcmpi.h
2430         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
2431         * as/link/mcs51/aslink.dsp,
2432         * as/link/mcs51/Makefile.aslink,
2433         * as/link/mcs51/Makefile.bcc,
2434         * as/link/mcs51/Makefile.in: updated for moved files
2435         * as/link/z80/lkarea.c,
2436         * as/link/z80/lkhead.c,
2437         * as/link/z80/lklex.c,
2438         * as/link/z80/lklibr.c,
2439         * as/link/z80/lklist.c,
2440         * as/link/z80/lkmain.c,
2441         * as/link/z80/lkrloc.c,
2442         * as/link/z80/lksym.c: synced with mcs51
2443         * as/link/z80/lkdata.c,
2444         * as/link/z80/lkeval.c,
2445         * as/link/z80/lkihx.c,
2446         * as/link/z80/lks19.c: cosmetic changes
2447         * as/link/z80/Makefile.in,
2448         * as/link/z80/linkgbz80.dsp,
2449         * as/link/z80/linkz80.dsp: updated for moved files
2450
2451 2006-09-16 Borut Razem <borut.razem AT siol.net>
2452
2453         * debugger/mcs51/sdcdb.c: partially fixed
2454           [ 1203664 ] sdcdb fails to open files w. two "." periods
2455         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
2456           debugger/mcs51/symtab.h: fixed indenting
2457         * configure.in, configure: up to date with latest Maarten's changes
2458
2459 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
2460
2461         as/link/mcs51
2462         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
2463         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
2464         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
2465         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
2466         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
2467         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
2468         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
2469         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
2470         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
2471         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
2472         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
2473         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
2474         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
2475         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
2476         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
2477         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
2478         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
2479         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
2480         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
2481         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
2482         as/link/mcs51/alloc.h,
2483         as/link/mcs51/clean.mk,
2484         as/link/mcs51/conf.mk,
2485         as/link/mcs51/Makefile.bcc,
2486         as/link/mcs51/Makefile.in,
2487         as/link/mcs51/readme.390,
2488         as/link/mcs51/strcmpi.c,
2489         as/link/mcs51/strcmpi.h,
2490         as/mcs51/clean.mk,
2491         as/mcs51/Makefile.bcc,
2492         as/mcs51/Makefile.in,
2493         configure,
2494         Makefile.in,
2495         sdcc.dsw: moved mcs51 linker to as/link/mcs51
2496
2497 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
2498
2499         * as/link,
2500         * as/link/Makefile.in,
2501         * as/link/z80/linkgbz80.dsp,
2502         * as/link/z80/linkz80.dsp,
2503         * configure,
2504         * link,
2505         * link/clean.mk,
2506         * link/Makefile.in,
2507         * link/README,
2508         * link/z80,
2509         * link/z80/aslink.h,
2510         * link/z80/clean.mk,
2511         * link/z80/conf.mk,
2512         * link/z80/linkgbz80.dsp,
2513         * link/z80/linkz80.dsp,
2514         * link/z80/lkarea.c,
2515         * link/z80/lkdata.c,
2516         * link/z80/lkeval.c,
2517         * link/z80/lkgb.c,
2518         * link/z80/lkgg.c,
2519         * link/z80/lkhead.c,
2520         * link/z80/lkihx.c,
2521         * link/z80/lklex.c,
2522         * link/z80/lklibr.c,
2523         * link/z80/lklist.c,
2524         * link/z80/lkmain.c,
2525         * link/z80/lkrloc.c,
2526         * link/z80/lks19.c,
2527         * link/z80/lksym.c,
2528         * link/z80/Makefile.in,
2529         * Makefile.in,
2530         * sdcc.dsw: moved link/ to as/link/
2531
2532 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
2533
2534         * as/mcs51/i51mch.c (machine): fixed warning
2535
2536 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
2537
2538         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
2539
2540 2006-09-09 Borut Razem <borut.razem AT siol.net>
2541
2542         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
2543           sdcdb WIN32 native port
2544         * src/clean.mk: fixed
2545
2546 2006-09-08 Borut Razem <borut.razem AT siol.net>
2547
2548         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
2549
2550 2006-09-08 Raphael Neider <rneider AT web.de>
2551
2552         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
2553         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
2554             to gplink to disable processor mismatch warning and to allow
2555             the use of devices with only aliased (shared) memory banks,
2556           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
2557
2558 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2559
2560         * doc/sdccman.lyx: Some re-formating plus example on using
2561           #pragma preproc_asm +/-
2562
2563 2006-09-07 Borut Razem <borut.razem AT siol.net>
2564
2565         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
2566           section
2567
2568 2006-09-06 Borut Razem <borut.razem AT siol.net>
2569
2570         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
2571           line at sdcc.nsi:153
2572         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
2573
2574 2006-09-05 Borut Razem <borut.razem AT siol.net>
2575
2576         * configure.in, configure: support for winsock2
2577         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
2578           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
2579           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
2580           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
2581           debugger/mcs51/symtab.h: sdcdb WIN32 native port
2582
2583 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
2584
2585         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
2586           and OP_DEFS
2587         * support/regression/tests/bug1551947.c: new, added
2588         * src/SDCCsymt.h: strings are char* not byte*
2589
2590 2006-09-05 Raphael Neider <rneider AT web.de>
2591
2592         * device/lib/pic16/libdev/pic18f4550.c,
2593           device/include/pic16/pic18f4550.h: added PORTD/TRISD
2594             declarations/definitions from patch #1520949
2595
2596 2006-09-05 Raphael Neider <rneider AT web.de>
2597
2598         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
2599           byte-aligned bitfields, fixes #1539278
2600
2601 2006-09-05 Raphael Neider <rneider AT web.de>
2602
2603         * src/pic/gen.c (genReceive): skip unreferenced arguments,
2604           fixes #1544120
2605
2606 2006-09-04 Borut Razem <borut.razem AT siol.net>
2607
2608         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
2609         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
2610           -mno-cygwin is a part of the compiler name
2611         * support/scripts/sdcc_mingw32: don't disable ucsim
2612
2613 2006-09-03 Borut Razem <borut.razem AT siol.net>
2614
2615         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
2616         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
2617
2618 2006-09-03 Raphael Neider <rneider AT web.de>
2619
2620         * src/pic/ralloc.c,
2621         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
2622           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
2623           fixes #1550049
2624
2625 2006-09-01 Borut Razem <borut.razem AT siol.net>
2626
2627         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
2628           to make ppc-osx happy
2629
2630 2006-08-31 Borut Razem <borut.razem AT siol.net>
2631
2632         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
2633         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
2634         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
2635         * support/regression/ports/ds390/spec.mk,
2636           support/regression/ports/mcs51/spec.mk,
2637           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
2638           To run regression tests in mingw environment:
2639           make DEV_NULL=NUL CC=gcc
2640
2641 2006-08-30 Borut Razem <borut.razem AT siol.net>
2642
2643         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
2644           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
2645           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
2646           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
2647           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
2648           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
2649           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
2650           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
2651           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
2652           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
2653           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
2654           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
2655           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
2656           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
2657           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
2658           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
2659           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
2660           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
2661           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
2662           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
2663           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
2664           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
2665           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
2666           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
2667           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
2668           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
2669           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
2670           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
2671           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
2672           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
2673           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
2674           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
2675           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
2676           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
2677           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
2678           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
2679           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
2680           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
2681           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
2682           ucsim WIN32 native port
2683
2684 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2685
2686         * doc/sdccman.lyx: added note on dynamic memory heap initialization
2687
2688 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
2689
2690         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
2691         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
2692
2693 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
2694
2695         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
2696         * support/regression/tests/bug1546986.c: new, added
2697         * as/mcs51/.cvsignore,
2698         * debugger/mcs51/.cvsignore,
2699         * src/.cvsignore: deleted
2700
2701 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2702
2703         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
2704           definitions)
2705
2706 2006-08-20 Borut Razem <borut.razem AT siol.net>
2707
2708         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
2709           removed cl_listen_console::match(), cl_console::match(),
2710           restructured cl_commander::proc_input()
2711
2712 2006-08-16 Borut Razem <borut.razem AT siol.net>
2713
2714         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
2715           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
2716           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
2717
2718 2006-08-14 Borut Razem <borut.razem AT siol.net>
2719
2720         * support/regression/Makefile.in,
2721           support/regression/ports/pic14/gpsim.cmd,
2722           support/regression/ports/pic14/spec.mk,
2723           support/regression/ports/pic14/support.c:
2724           added pic14 regression test
2725
2726 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
2727
2728         * as/doc/asxhtm.html: documented changed ABS behaviour
2729         * as/doc/README: fixed some typos
2730
2731 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
2732
2733         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
2734           not defined on host
2735
2736 2006-08-12 Borut Razem <borut.razem AT siol.net>
2737
2738         * support/regression/fwk/include/testfwk.h,
2739           support/regression/fwk/lib/testfwk.c,
2740           support/regression/generate-cases.py,
2741           support/regression/Makefile.in:
2742           regression test framework does not depend on function pointers and
2743           variable arguments
2744
2745 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
2746
2747         * device/include/stddef.h: c temporary hack to fix bug 1518273
2748
2749 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2750
2751         * device/include/mcs51/cc2510fx.h: added
2752         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
2753           to projects.
2754
2755 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
2756
2757         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
2758         * as/z80/Makefile.in: added strcmpi.c
2759         * as/z80/z80adr.c: added upper case registers and lower case conditionals
2760         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
2761
2762 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
2763
2764         * device/lib/gbz80/asm_strings.s,
2765         * device/lib/gbz80/crt0_rle.s,
2766         * device/lib/gbz80/div.s,
2767         * device/lib/gbz80/mul.s,
2768         * device/lib/gbz80/shift.s,
2769         * device/lib/z80/asm_strings.s,
2770         * device/lib/z80/crt0_rle.s,
2771         * device/lib/z80/div.s,
2772         * device/lib/z80/mul.s,
2773         * device/lib/z80/shift.s: changed to all lower case menmonics except the
2774           flags which are all upper case
2775
2776 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
2777
2778         * as/z80/asm.h: made CASE_SENSITIVE 1
2779         * link/z80/aslink.h: made CASE_SENSITIVE 1
2780         * src/z80/gen.c (throughout): made all conditionals upper case
2781         * support/regression/tests/bug1503067.c: new
2782
2783 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
2784
2785         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
2786           (shiftIntoPair): added case 2 for PAIR_IY,
2787           (setupToPreserveCarry): replaced parameters with iCode and check if
2788            PAIR_DE is in use to fix bug 1399290,
2789           (genPlus, genMinus): updated call to setupToPreserveCarry
2790         * support/regression/tests/bug1399290.c: new
2791
2792 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
2793
2794         * device/lib/Makefile.in (Z80SOURCES): enabled float support
2795         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
2796         * src/ds390/gen.c (shiftRLong),
2797         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
2798         * src/mcs51/gen.c (sameReg): changed to sameByte,
2799           (xch_a_aopGet): new,
2800           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
2801            shiftRLong): fixed bug 1533966
2802         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
2803           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
2804         * support/regression/Makefile.in: disabled z80, enabled ucz80
2805         * support/regression/tests/float_trans.c: enabled test for z80 and host
2806         * support/regression/tests/shifts2.c: new, for testing bug 1533966
2807
2808 2006-08-01 Borut Razem <borut.razem AT siol.net>
2809
2810         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
2811           comparison is always false due to limited range of data type
2812           on PPC64 machine (openpower-linux1) where "char = unsigned char"
2813
2814 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
2815
2816         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
2817         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
2818         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
2819         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
2820
2821 2006-07-31 Borut Razem <borut.razem AT siol.net>
2822
2823         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
2824           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
2825           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
2826           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
2827           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
2828           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
2829           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
2830           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
2831           enable ucsim mingw compilation. Serial port is disabled,
2832           since it uses termios.h API, which is not available on native
2833           WIN32
2834
2835 2006-07-31 Borut Razem <borut.razem AT siol.net>
2836
2837         * Small Device C Compiler 2.6.0 released
2838         * support/scripts/sdcc.nsi: added FULL_DOC option
2839         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
2840
2841 2006-07-28 Borut Razem <borut.razem AT siol.net>
2842
2843         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
2844         * doc/INSTALL.txt: updated
2845
2846 2006-07-27 Borut Razem <borut.razem AT siol.net>
2847
2848         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
2849           device/lib/pic/libdev/Makefile.in: fixed bug
2850           [ 1438354 ] pic libsdcc: distclean doesn't work
2851         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
2852           device/lib/pic16/libio/Makefile.in: fixed bug
2853           [ 1438344 ] pic16 lib: clean doesn't work properly
2854         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
2855
2856 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
2857
2858         * device/lib/pic/libsdcc/fsdiv.c,
2859         * device/lib/pic/libsdcc/fsmul.c,
2860         * device/lib/pic16/libsdcc/float/fsdiv.c,
2861         * device/lib/pic16/libsdcc/float/fsmul.c,
2862         * device/lib/_fsdiv.c,
2863         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
2864         * support/regression/tests/bug1520966.c: added
2865         * doc/knownbugs.html: removed [ 1520966 ] from the list
2866
2867 2006-07-25 Borut Razem <borut.razem AT siol.net>
2868
2869         * configure.in, configure, sdccconf_in.h: fixed bug
2870           [ 1519095 ] regression test onebyte.c fails on ppc64 host
2871         * doc/knownbugs.html: removed [ 1519095 ] from the list
2872
2873 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
2874
2875         * doc/knownbugs.html: added, contains list of known bugs at release
2876         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
2877
2878 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
2879
2880         * device/include/mcs51/compiler.h: added SFRX for xdata based special
2881           function registers and corrected defaults with additional warning
2882         * device/lib/malloc.c: cosmetic changes
2883         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
2884         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
2885           (fillGaps): and used it
2886
2887 2006-07-20 Raphael Neider <rneider AT web.de>
2888
2889         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
2890           output unless SDCCPICDEBUG is set
2891         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
2892           output if SILENT is set
2893
2894 2006-07-11 Borut Razem <borut.razem AT siol.net>
2895
2896         * doc/README.txt: updated
2897
2898 2006-07-10 Borut Razem <borut.razem AT siol.net>
2899
2900         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
2901           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
2902           in WIN32 installation
2903         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
2904           release candidate 1
2905
2906 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
2907
2908         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
2909         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
2910
2911 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
2912
2913         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
2914
2915 2006-07-06 Borut Razem <borut.razem AT siol.net>
2916
2917         * support/regression/tests/bitfields.c:
2918           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
2919         * support/regression/tests/constantRange.c:
2920           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
2921
2922 2006-07-04 Borut Razem <borut.razem AT siol.net>
2923
2924         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
2925           src/port.mk,
2926           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
2927           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
2928           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
2929           reverted changes from 2006-07-03
2930         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
2931         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
2932           added CPPFLAGS, used by the host port
2933
2934 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
2935
2936         * support/regression/valdiag/tests/switch.c,
2937         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
2938         * support/regression/tests/libmullong.c: fixed for host
2939         * support/regression/ports/host/spec.mk: disable all warnings for host,
2940         SDCC runs with --less-pedantic too
2941
2942 2006-07-03 Borut Razem <borut.razem AT siol.net>
2943
2944         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
2945           defined CPPFLAGS
2946         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
2947         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
2948           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
2949           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
2950           include ../port.mk
2951         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
2952           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
2953           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
2954           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
2955
2956 2006-07-02 Raphael Neider <rneider AT web.de>
2957
2958         * src/pic16/devices.inc,
2959         * device/include/pic16/pic18fregs.h,
2960         * device/include/pic16/pic18f4550.h,
2961         * device/lib/pic16/pics.all,
2962         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
2963
2964 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
2965
2966         * as/hc08/lkaomf51.c (OutputName),
2967         * as/mcs51/lkaomf51.c (OutputName),
2968         * as/z80/asmain.c (asmbl),
2969         * src/ds390/main.c (asmLineNodeFromLineNode),
2970         * src/hc08/ralloc.c (hc08_assignRegisters),
2971         * src/mcs51/main.c (asmLineNodeFromLineNode),
2972         * src/xa51/ralloc.c (checkRegMask),
2973         * src/xa51/gen.c (emitcode),
2974         * src/z80/gen.c (_emit2),
2975         * src/SDCCast.c (searchLitOp),
2976         * src/SDCCglobl.h,
2977         * support/packihx/packihx.c,
2978         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
2979         * src/ds390/gen.c (aopPutUsesAcc),
2980         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
2981         * support/regression/tests/libmullong.c (mullong_wrapper),
2982         * src/SDCCsymt.c (powof2),
2983         * src/SDCCast.c,
2984         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
2985         * src/SDCCsymt.h: added TYPE_TARGET_*
2986         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
2987         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
2988         SDCCast because 1) header problems 2) this is the right place
2989         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
2990         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
2991         prototype
2992
2993 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
2994
2995         * src/SDCCicode.h: removed buggy semicolon in unused macro
2996         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
2997         search for previous definiton of auto symbols too,
2998         (findPrevUse): fixed logic of emitWarnings
2999
3000 2006-06-26 Raphael Neider <rneider AT web.de>
3001
3002         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
3003           PCLATH and PCLATU on interrupts, potentially fixes #1505141
3004
3005 2006-06-25 Raphael Neider <rneider AT web.de>
3006
3007         * device/lib/pic/libm: NEW, added math library functions
3008         * device/lib/pic/libsdcc: NEW; added float support functions
3009         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
3010         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
3011           NEW, added math related headers
3012         * device/include/asm/pic/features.h: NEW
3013         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
3014           (popGet): allow larger offsets for AOP_PCODE,
3015           (genDataPointerSet): handle literals explicitly, more debug output,
3016           (genAssign): fixed for float using aopLiteral ;-)
3017         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
3018           GOTO initialisation routine
3019         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
3020           flag on registers, fixes #1469043 (local variables do not work)
3021         * src/pic/main.c (_pic14_do_link),
3022         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
3023           available
3024
3025 2006-06-25 Borut Razem <borut.razem AT siol.net>
3026
3027         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
3028           characters printed (not including the trailing '\0' used to end
3029           output to strings). Problem detected in regression test bug-927659.c.
3030           NOTE: printf() family functions should return int instead
3031           unsigned int!
3032         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
3033           specifier are printed as themselves
3034         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
3035           support flags, width and precision specifiers
3036
3037 2006-06-24 Borut Razem <borut.razem AT siol.net>
3038
3039         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
3040           to the list of sdcc tagrets not supporting bit type
3041         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
3042           testfor pic16 due to bug:
3043           [ 1511794 ] pic16: regression test bug-895992.c fails
3044
3045 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
3046
3047         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
3048         * src/SDCCglue.c (initPointer), fixed bug 1496419
3049         * support/regression/tests/bug1496419.c: new, added
3050
3051 2006-06-22 Borut Razem <borut.razem AT siol.net>
3052
3053         * support/regression/ports/pic16/support.c: use gpsim usart module from
3054           libgpsim_modules library
3055
3056 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3057
3058         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
3059         IP0H to IPH0.
3060
3061 2006-06-19 Raphael Neider <rneider AT web.de>
3062
3063         * src/pic/glue.h,src/pic16/glue.h: added prototypes
3064         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
3065           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
3066           (pic14printExterns,pic14printPublics,pic16printPublics,
3067           pic16_printExterns): use new functions to emit symbols
3068           (picglue,pic16glue): emit publics before emitting externs
3069         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
3070           locally defined functions to avoid bug #1443651
3071         * support/regression/tests/bug-716242.c: removed pic16 workaround
3072         * support/regression/ports/pic16/spec.mk: ignore errors during build
3073
3074 2006-06-19 Raphael Neider <rneider AT web.de>
3075
3076         * src/pic/glue.h: added pic14aopLiteral prototype
3077         * src/pic/glue.c (pic14aopLiteral): return unsigned int
3078         * src/pic/gen.c: removed stdint.h dependency
3079           (aopGet): use Safe_strdup()
3080           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
3081           (genDataPointerSet): use pic14aopLiteral()
3082         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
3083           for pic16; thanks to Bernhard and Maarten
3084
3085 2006-06-18 Borut Razem <borut.razem AT siol.net>
3086
3087         * support/regression/tests/structflexarray.c: flexible array members
3088           not supported by gcc < 3
3089         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
3090           GUI tool by default
3091         * src/pic/gen.c: don't include [p]strdin.h on solaris
3092         * support/Util/pstdint.h: addad svn attributes
3093         * support/regression/tests/constantRange.c,
3094           support/regression/tests/rotate.c: include inttypes.h instead
3095           stdint.h on solaris, addad svn attributes
3096
3097 2006-06-18 Raphael Neider <rneider AT web.de>
3098
3099         * src/SDCCsymt.c (initCSupport): change return type of divschar to
3100           int for PIC16
3101         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
3102           (pic16_genMinusBits): simplified sign-extension
3103           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
3104             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
3105             adjusted to correctly handle mixed-signed operands, disabled
3106             now unused multiplciation routines
3107         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
3108           (assignResultValue): added argument denoting the size of the result
3109             as returned by the function (fixes upcasts in assigning from
3110             function calls: char foo(); int i = foo();)
3111           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
3112             function result to assignResultValue
3113           (genMult): disabled inlined multiplication code
3114           (genDiv): augmented to also handle the modulus operator, fixed to
3115             handle mixed-signed operands correctly
3116           (genMod): simply call genDiv, disabled unused code
3117           (genAssign): fixed missing (sign-)extension on result
3118         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
3119             valid char operands, allow signed operands for native code, added
3120             division and modulo operator handling
3121         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
3122
3123         As a consequence, onebyte.c (if split into two files) and muldiv.c
3124         pass regression tests.
3125
3126 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3127
3128         * doc/Makefile.in: two runs of makeindex seem needed to get
3129         correct page references in the index of sdccman.pdf
3130         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
3131
3132 2006-06-17 Borut Razem <borut.razem AT siol.net>
3133
3134         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
3135
3136 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3137
3138         * doc/sdccman.lyx: updated, added (porting source code, debugging),
3139         mentioned ec2drv and paulmon
3140
3141 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
3142
3143         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
3144           consecutive abs areas
3145           (find_empty_space, allocate_space): added map to handle codemap or
3146            xdatamap,
3147           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
3148            absolute idata and xdata
3149         * as/mcs51/lkmem.c (summary2): updated legend
3150
3151 2006-06-16 Raphael Neider <rneider AT web.de>
3152
3153         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
3154
3155 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
3156
3157         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
3158           1208515
3159         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
3160
3161 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
3162
3163         * src/port.h (struct PORT): added field gp_tags, to hold the tag
3164         value of generic pointers,
3165         * src/avr/main.c,
3166           src/ds390/main.c,
3167           src/hc08/main.c,
3168           src/izt/i186.c,
3169           src/izt/tlcs900h.c,
3170           src/mcs51/main.c,
3171           src/pic/main.c,
3172           src/pic16/main.c,
3173           src/xa51/main.c,
3174           src/z80/main.c: PORT structure, added elements for gp_tags field,
3175         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
3176         fields in the PORT structure of each port,
3177         * src/SDCCast.c (decorateType): allow processing of generic pointers
3178         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
3179         S_FIXED symbols
3180
3181 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
3182
3183         * link/z80/lkgb.c,
3184         * link/z80/lkgg.c,
3185         * src/pic16/gen.c,
3186         * src/pic16/main.c,
3187         * src/pic16/pcode.c,
3188         * src/pic/main.c,
3189         * src/pic/pcoderegs.c,
3190         * src/SDCCicode.c,
3191         * src/SDCCmain.c,
3192         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
3193           bug 1504689 on minGW
3194
3195 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3196
3197         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
3198
3199 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
3200
3201         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
3202
3203 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
3204
3205         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
3206           for optimization
3207
3208 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
3209
3210         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
3211         to a char variable. Fixed bug #1504211
3212         * device/include/pic16/adc.h,
3213         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
3214         and fixed bug #1364390
3215
3216 2006-06-10 Borut Razem <borut.razem AT siol.net>
3217
3218         * CVSROOT: removed the CVS left-over
3219
3220 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
3221
3222         * as/hc08/asmain.c (asexit),
3223         * as/hc08/lkmain.c (lkexit),
3224         * as/mcs51/asmain.c (asexit),
3225         * as/mcs51/lkmain.c (lkexit),
3226         * src/SDCCglue.c (DEFSETFUNC),
3227         * src/SDCCmain.c (linkEdit, assemble),
3228         * support/librarian/sdcclib.c (AddRel),
3229           replaced unlink() by standard C remove()
3230         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
3231         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
3232           gatherImplicitVariables): new, added to fix bug 608752,
3233           (createFunction): added gatherImplicitVariables()
3234         * src/SDCCast.h: added createRMW prototype
3235         * src/SDCCsymt.h (struct symbol): added infertype
3236         * support/regression/tests/bug608752.c: new, added
3237
3238 2006-06-10 Raphael Neider <rneider AT web.de>
3239
3240         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
3241           multibyte dummy reads (fixes #1503234)
3242
3243 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
3244
3245         * device/include/mcs51/compiler.h: new, added header file to enable
3246           creating common sfr definition header files for different compilers
3247
3248 2006-06-05 Raphael Neider <rneider AT web.de>
3249
3250         * src/pic16/{pcode.h,genarith.c}:
3251           introduced pCodeOp combining any two pCodeOps (previously only
3252           two register operands could be combined), removed pcop2 from
3253           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
3254         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
3255         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
3256           rewritten to use new PO_TWO_OPS
3257         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
3258         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
3259           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
3260           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
3261           (pic16_get_op): embraced return arg to allow #define return(x),
3262             added new case for combined opcodes
3263           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
3264           (pic16_pCode2str,pic16_getRegFrompCodeOp,
3265            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
3266
3267 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
3268
3269         * src/SDCCval.c (checkConstantRange): added
3270         * src/SDCCval.h: added checkConstantRange
3271         * support/Util/SDCCerr.c,
3272         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
3273         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
3274         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
3275         * src/SDCCast.c (decorateType): added checkConstantRange,
3276         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
3277         can be emitted with the correct always true/false warning,
3278         added optimization for double '!';
3279         result of decorateType() must be assigned back to the tree, because
3280         decorateType() can change the tree
3281         * src/SDCCicode.c (geniCodeLogic),
3282         (geniCodeAssign): replaced new checkConstantRange, added warnings,
3283         (checkConstantRange): removed, it was only a fragment which never
3284         emitted a warning
3285         * src/SDCCsymt.c (computeType): fixed promotion for
3286         "-1 < (unsigned bit) b"
3287         * src/pic/ralloc.c (packRegsForAssign),
3288         * src/pic16/ralloc.c (packRegsForAssign),
3289         * src/hc08/ralloc.c (packRegsForAssign),
3290         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
3291         from mcs51
3292         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
3293         * support/regression/tests/constantRange.c: added
3294         * support/valdiag/tests/constantRange.c: added
3295         * support/valdiag/valdiag.py: added -DPORT_HOST=1
3296
3297 2006-06-02 Borut Razem <borut.razem AT siol.net>
3298
3299         * support/regression/ports/pic16/support.c: increase stack size
3300           to 255 bytes
3301         * support/regression/Makefile.in: sort tests by name so that the
3302           resutlts can be compared on different machines / platforms
3303
3304 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
3305
3306         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
3307         * src/ds390/gen.c (emitLabel): new, added,
3308           (genDjnz): fixed stack overflow bug,
3309           (throughout): cosmetic changes to sync with mcs51/gen.c,
3310           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
3311         * src/mcs51/gen.c (genEndFunction): small optimization,
3312           (throughout): cosmetic changes to sync with ds390/gen.c
3313
3314 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
3315
3316         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
3317           (_print_format): fixed printing pointers
3318         * src/mcs51/gen.c (emitLabel, movb): new, added,
3319           (genAssign): small optimization,
3320           (genDjnz): fixed stack overflow bug,
3321           (throughout): replaced sprintf with SNPRINTF,
3322           replaced mcs51_regWithIdx with REG_WITH_INDEX,
3323           replaced emitcode("mov", "b,...") with MOVB(...),
3324           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
3325           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
3326         * src/mcs51/peeph.def: added rules 140 and 264
3327         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
3328           so they may get optimized into registers
3329
3330 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
3331
3332         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
3333           immediately when encountered,
3334           (printUsage): always use stderr even on windows
3335
3336 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
3337
3338         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
3339         (processParms): fixed bug #1247551
3340         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
3341         parseCmdLine, main): print '--version' to stdout,
3342         print 'help' to stdout if --help is given,
3343         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
3344         arguments are given; fixed --help
3345
3346 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
3347
3348         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
3349         * support/regression/tests/bug-1493710.c: added
3350
3351 2006-05-27 Borut Razem <borut.razem AT siol.net>
3352
3353         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
3354           static instead auto
3355         * support/regression/ports/pic16/support.c: increase stack size
3356           from default 64 bytes to 128 bytes
3357         * support/regression/tests/staticinit.c,
3358           support/regression/tests/float.c: regression tests fully enabled
3359           for pic16 port by putting the initialized data arrays into the code
3360           section
3361         * support/regression/ports/pic16/spec.mk: don't link default libraries.
3362           This was changed by mistake in the previous version.
3363
3364 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
3365
3366         * src/pic16/gen.c (genFunction, genEndFunction): some
3367         beautifications, fixed bug with falsely restoring FSR2 in large
3368         stack model, thanks to Beau E. Cox for reporting the bug
3369
3370 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
3371
3372         * debugger/mcs51/break.c,
3373         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
3374           use %p to print pointers, made address variables unsigned
3375         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
3376         * debugger/mcs51/symtab.c (parseSymbol): must return something
3377         * src/mcs51/gen.c (aopForSym): small optimization,
3378            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
3379           (freeAsmop): added missing break,
3380           (aopPut): removed parameter bvolatile, determine it inside the function,
3381           (saveRegisters, unsaveRegisters): small optimization,
3382           (genIpush): removed pointless check,
3383           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
3384           replaced sprintf with SNPRINTF,
3385           replaced strcpy with strncpyz,
3386           updated aopPut calls,
3387           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
3388         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
3389
3390 2006-05-24 Borut Razem <borut.razem AT siol.net>
3391
3392         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
3393           modification of test for the pic16 port, put the array to the code
3394           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
3395
3396 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3397
3398         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
3399         * support/Util/pstdint.h: added
3400
3401 2006-05-22 Borut Razem <borut.razem AT siol.net>
3402
3403         * src/regression/Makefile: removed bool2.c test, added -q linker option
3404         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
3405           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
3406           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
3407           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
3408           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
3409           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
3410           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
3411           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
3412           define SUPPORT_BIT_TYPES 0, removed unused bit variables
3413
3414 2006-05-22 Raphael Neider <rneider AT web.de>
3415
3416         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
3417           bug #1492360 (problematic due to generic pointers, see code)
3418
3419 2006-05-22 Borut Razem <borut.razem AT siol.net>
3420
3421         * support/regression/ports/pic16/specs.mk: removed stack size linker
3422           directive
3423         * support/regression/tests/array.c,
3424           support/regression/tests/bitopcse.c,
3425           support/regression/tests/bug-908454.c,
3426           support/regression/tests/malloc.c: modified for pic16 regression test
3427         * support/regression/tests/bitfields.c:
3428           pic16 - excluded bitfileds of size > 8
3429         * support/regression/tests/bp.c: pic16 - reduced data size
3430         * support/regression/tests/bug-221100.c: pic16 - reduced data size
3431         * support/regression/tests/bug-460010.c:
3432           pic16 - used the absolute address the fits in memory
3433         * support/regression/tests/bug-716242.c:
3434           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
3435         * support/regression/tests/float.c:
3436           pic16 - excluded - data size too big
3437         * support/regression/tests/onebyte.c:
3438           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
3439         * support/regression/tests/shifts.c:
3440           pic16 - function names probably have to differ in first X characters
3441           (gpasm limitation?)
3442         * support/regression/tests/staticinit.c:
3443           pic16 - excluded some tests due error: no target memory available for
3444           section ".idata"
3445
3446 2006-05-22 Borut Razem <borut.razem AT siol.net>
3447
3448         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
3449           second try. Thanks Stas Sergeev once more.
3450
3451 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
3452
3453         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
3454           (genLeftShift, genRightShift): fixed bug 1491627
3455         * src/hc08/peeph.def (rules 7, 8.x): added
3456         * support/regression/tests/shifts.c (ShiftLeftByParam,
3457           ShiftRightByParam, testShiftByParam): added to test variable shifting
3458
3459 2006-05-20 Raphael Neider <rneider AT web.de>
3460
3461         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
3462         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
3463           (allocReg): add only new registers to dynAllocRegs,
3464           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
3465             #1489055, #1445850, and probably #1483693
3466
3467 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
3468
3469         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
3470         bug in for-loop that didn't emit the last of CONFIG and ID registers
3471
3472 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
3473
3474         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
3475           with offset
3476         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
3477           1489016, 1434401 and 1490124
3478         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
3479           1489016, 1434401 and 1490124
3480
3481 2006-05-17 Borut Razem <borut.razem AT siol.net>
3482
3483         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
3484           thanks Stas Sergeev
3485
3486 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
3487
3488         * device/include/mcs51/P89c51RD2.h,
3489         * device/include/mcs51/P89LPC901.h,
3490         * device/include/mcs51/P89LPC922.h,
3491         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
3492
3493 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
3494
3495         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
3496         to fix missing stack pragma in compiled binary object file,
3497
3498 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
3499
3500         * support/packihx/configure.in,
3501         * support/packihx/configure: removed warning, autoconf >= 2.5x can
3502         determine sizeof basic types even while cross compiling
3503
3504 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
3505
3506         * src/avr/gen.c (aopop),
3507         * src/ds390/gen.c (aopOp),
3508         * src/hc08/gen.c (aopOp),
3509         * src/mcs51/gen.c (aopop),
3510         * src/pic16/gen.c (pic16_aopOp),
3511         * src/pic/gen.c (aopOp),
3512         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
3513         if size of operand is smaller than spill location
3514
3515 2006-05-12 Borut Razem <borut.razem AT siol.net>
3516
3517         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
3518           have to have CR/LF line endings even if they are checked out on *nix
3519           or on WIN32 in cygwin binmode
3520
3521 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
3522
3523         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
3524         * device/include/ds80c390.h: added sfr16 definitions
3525         * src/ds390/gen.c,
3526         * src/ds390/gen.h,
3527         * src/ds390/main.c,
3528         * src/ds390/ralloc.c,
3529         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
3530           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
3531           bit returning functions
3532         * support/regression/tests/sfr16.c: enabled test on ds390
3533
3534 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3535
3536         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
3537         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
3538
3539 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
3540
3541         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
3542         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
3543           (cl_address_space constructor): removed expensive initialization,
3544           (cl_address_space::get_cell): extended for late initialization,
3545           (cl_address_space::*): use late initialization,
3546           (cl_address_decoder::activate): removed expensive initialization,
3547           This reduced regression test running time by 25%
3548
3549 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
3550
3551         * packihx/,
3552         * configure.in,
3553         * configure,
3554         * sdcc.dsw,
3555         * Makefile.bcc,
3556         * Makefile.in,
3557         * support/packihx/Makefile.in,
3558         * support/packihx/clean.mk,
3559         * support/packihx/Makefile.bcc,
3560         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
3561
3562 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3563
3564         * src/SDCCval.c (valNot): fix for regression test failure
3565           of not.c on big endian hosts
3566
3567 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
3568
3569         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
3570
3571 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3572
3573         * device/lib/mcs51/Makefile.in: changed string comparison operator
3574           to = for POSIX compliance; == is bash extension
3575
3576 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
3577
3578         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
3579           kosmonaut_pirx
3580
3581 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
3582
3583         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
3584         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
3585         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
3586         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
3587         bug report #1478657,
3588
3589 2006-05-05 Borut Razem <borut.razem AT siol.net>
3590
3591         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
3592           making the html
3593
3594 2006-05-02 Borut Razem <borut.razem AT siol.net>
3595
3596         * doc/Makefile.in: removed *.ind dependency since there is no rule to
3597           create *.ind, which made make to fail if invoked with -j 2
3598
3599 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
3600
3601         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
3602           Hubert Sack for patch 1479782
3603
3604 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
3605
3606         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
3607
3608 2006-05-01 Raphael Neider <rneider AT web.de>
3609
3610         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
3611           (create_pic): store only prefix-free device name,
3612           (init_pic): check for device names with "16" prefix,
3613           (list_valid_pics),
3614         * src/pic/device.h (struct PIC_device),
3615         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
3616             stored device name,
3617         * device/include/pic/pic12f{635,675,629,683}.h,
3618         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
3619         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
3620         * device/include/pic/pic16f505.h,
3621         * device/lib/pic/libdev/pic16f505.c: removed
3622         * device/include/pic/pic14devices.txt: added support for pic12f
3623             devices, removed unsupported non 16-bit devices
3624             [above changes provided by patch from Zik Saleeba]
3625         * src/pic/*, src/pic16/*, device/include/pic16/*,
3626           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
3627
3628 2006-05-01 Borut Razem <borut.razem AT siol.net>
3629
3630         * configure.in, configure, doc/Makefile.in:
3631           sync with nightly build makefile - latex, dvipdf and dvips
3632           not needed any more
3633
3634 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
3635
3636         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
3637         in the library source
3638
3639 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
3640
3641         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
3642
3643 2006-04-28 Raphael Neider <rneider AT web.de>
3644
3645         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
3646         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
3647           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
3648         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
3649
3650 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
3651
3652         * device/lib/pic/libdev/Makefile.in,
3653         * device/lib/hc08/Makefile.in,
3654         * device/lib/gbz80/Makefile.in,
3655         * device/lib/z80/Makefile.in,
3656         * device/lib/ds390/Makefile.in,
3657         * device/lib/ds400/Makefile.in: added srcdir to include search path,
3658         thanks to Borut for the bug report
3659         * configure.in,
3660         * configure: always create doc/Makefile independent from --enable-doc
3661         * Makefile.in: always install from directory doc independent from
3662         --enable-doc
3663         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
3664         removed
3665         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
3666         * doc/Makefile.in: install *.txt if present
3667         * device/include/Makefile.in (install): added installation of pic/*.inc
3668         and pic/*.txt files again, they were erroneously removed
3669
3670 2006-04-28 Raphael Neider <rneider AT web.de>
3671
3672         * src/pic/{gen.c,main.h,pcode.c},
3673         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
3674             concerning signedness with casts
3675
3676 2006-04-28 Raphael Neider <rneider AT web.de>
3677
3678         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
3679             definition of an interrupt handler,
3680         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
3681             interrupt handler stuff from picglue() to separate routine,
3682           (picglue): enabled definition of intr handlers in files w/o main()
3683
3684 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
3685
3686         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
3687           compilation with MSVC 2005 Express Edition (VC8)
3688
3689 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
3690
3691         * device/lib/Makefile: fixed build of gbz80 lib
3692
3693 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
3694
3695         * support/regression/tests/bug-460010.c,
3696         * support/regression/tests/bug-524691.c,
3697         * support/regression/tests/bug-716242.c: removed conditional defines
3698           that are already in testfwk.h
3699
3700 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
3701
3702         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
3703           (AccAXRsh1): added, shift right by 1,
3704           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
3705            AccAXLrl1
3706         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
3707
3708 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
3709
3710         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
3711         remove cast to same type
3712         * src/SDCCast.c (decorateType): fix for RFE 1475742,
3713         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
3714         * as/z80/Makefile,
3715         * link/z80/Makefile: removed, they have moved to
3716         Makefile.in files
3717         * configure,
3718         * configure.in: replaced duplicate message about ucsim by missing sdcpp
3719         * install-sh: fix bug #1204398 by setting umask 0022
3720         * device/lib/Makefile: separate build of z80 and gbz80 lib
3721
3722 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
3723
3724         Enabled VPATH feature: changed nearly all Makefiles (149 files).
3725         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
3726
3727         One basic decision: e.g. src/clean.mk includes further files. In order
3728         to make this work there are two solutions:
3729         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
3730           run configure on them. This way they can use
3731           'include $(srcdir)/port-clean.mk'
3732         - always include clean.mk by the Makefile at the same level. To avoid
3733           that `make clean` tries to include and build Makefile.dep the
3734           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
3735           implemented, because now even `make uninstall` doesn't create
3736           Makefile.in. clean.mk could be eliminated by pasting it in
3737           Makefile.in.
3738
3739         * debugger/mcs51/Makefile.in: build own objects from library sources
3740         (SLIB, SDCC) in current directory
3741
3742         * configure, configure.in: renamed --disable-device-lib-build in
3743         --disable-device-lib; added --enable-doc, the required tools are
3744         searched by configure; added result message; the toolchain for the
3745         belonging ports are now only built, if the port is enabled.
3746
3747         * support/regression/*: all output is written in directory gen, because
3748         the fwk and ports directories don't livet in the build tree using vpath
3749
3750         * doc/sdccman.lyx: renamed --disable-device-lib-build to
3751         --disable-device-lib, added --enable-doc, added section VPATH
3752
3753         * sim/ucsim/configure.in,
3754         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
3755         z80 are enabled by default
3756
3757 2006-04-24 Raphael Neider <rneider AT web.de>
3758
3759         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
3760             to config word, "pic14_"-prefixed some extern functions
3761           (pic14_emitConfigWord): emit __config directive(s) if assignment to
3762             config word has been found
3763         * src/pic/device.h: added prototypes
3764         * src/pic/pcode.c: added "pic14_"-prefix where needed
3765         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
3766             fixup
3767         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
3768             words,
3769           (pic14emitRegularMap): ignore config words,
3770           (pic14createInterruptVect): moved generating __config directives away
3771           (picglue): have __config directives emitted
3772
3773 2006-04-24 Borut Razem <borut.razem AT siol.net>
3774
3775         * doc/Makefile: sync with nightly build makefile
3776
3777 2006-04-24 Raphael Neider <rneider AT web.de>
3778
3779         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
3780             registers that have not been assigned proper liveranges,
3781             fixes #1469504 and #1474602,
3782           (pCodeRegOptimizeRegUsage): fixed typo in comment
3783
3784 2006-04-24 Borut Razem <borut.razem AT siol.net>
3785
3786         * device/examples/main8051.c: deleted - it was removed from CVS
3787           24.mar.2000 and after that modified 18.feb.2001, so it reappered
3788           after the transition to Subversion
3789         * src/SDCCalloc.h: deleted - it was removed  from CVS
3790           3.feb.2001 and after that modified 18.feb.2001, so it reappered
3791           after the transition to Subversion
3792         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
3793           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
3794           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
3795           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
3796
3797 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
3798
3799         * as/asx8051.dsp: added mcs51/strcmpi.h
3800         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
3801         * as/hc08/aslink.h: updated lnksect prototype
3802         * as/hc08/asm.h,
3803         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
3804         * as/hc08/asmain.c,
3805         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
3806           (newdot): handle A_ABS
3807         * as/hc08/asout.c,
3808         * as/mcs51/asout.c (outarea): output address
3809         * as/hc08/lkaomf51.c,
3810         * as/mcs51/lkaomf51.c: disabled unused array UsageType
3811         * as/hc08/m08pst.c,
3812         * as/mcs51/i51pst.c,
3813         * as/z80/z80pst.c: "ABS" is not A_OVR
3814         * as/hc08/lkarea.c (newarea): read a_addr,
3815           (lnkarea): added codemap array, sort absolute areas to the front,
3816            combine all GSINITx/GSFINAL,
3817           (find_empty_space, allocate_space): new functions,
3818           (lnksect): return next address, handle absolute sections
3819         * as/mcs51/lkarea.c (newarea): read a_addr,
3820           lnksect2 prototype changed,
3821           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
3822           (find_empty_space, allocate_space): new, factored out of lnksect2,
3823           (lnksect2): return next address, handle absolute sections
3824         * as/hc08/lkhead.c,
3825         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
3826         * as/hc08/lklibr.c (addfile, fndsym),
3827         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
3828           index out of range and detect both '\' and '/'
3829         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
3830         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
3831           regression tests (ds390 cannot return bool yet)
3832         * doc/sdccman.lyx: changed version number, document changed --no-peep,
3833           document critical interrupts on z80, document changed SDCC define
3834         * src/asm.c (_asxxxx_mapping): fixed .org directive,
3835           (_a390_mapping): added .org directive
3836         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
3837           (genMultOneByte): fixed warnings
3838         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
3839           ones
3840         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
3841         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
3842           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
3843         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
3844         * src/pic16/main.c: removed newReg prototype
3845         * src/pic16/pcode.c,
3846         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
3847           warnings
3848         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
3849           ones
3850         * src/pic16/ralloc.c
3851         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
3852           to fix warnings
3853         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
3854           from short to PIC_OPTYPE
3855         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
3856         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
3857           optype from short to PIC_OPTYPE
3858         * src/port.h: made int_size unsigned to fix warnings
3859         * src/SDCC.y: fixed warning on MSVC
3860         * src/SDCCicode.c (getArraySizePtr): return unsigned int
3861         * src/SDCCopt.c (convertToFcall): fixed warnings
3862         * src/SDCCsymt.h: removed double prototype for genSymName
3863         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
3864           offset int to fix warnings
3865
3866 2006-04-22 Borut Razem <borut.razem AT siol.net>
3867
3868         * doc/sdccman.lyx, */Makefile, */Makefile.in:
3869           references to CVS replaced with Subversion
3870
3871 2006-04-21 Borut Razem <borut.razem AT siol.net>
3872
3873         * doc/sdccman.lyx, */Makefile, */Makefile.in:
3874           references to CVS replaced with Subversion
3875
3876 2006-04-19 Borut Razem <borut.razem AT siol.net>
3877
3878         * src/version.awk: adapted for svn
3879         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
3880           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
3881           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
3882           /binutils-avr/etc/*.vi, *.jin: removed all properties
3883           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
3884
3885 2006-04-19 Borut Razem <borut.razem AT siol.net>
3886
3887         * CVS to Subversion migration completed
3888
3889 2006-04-18 Borut Razem <borut.razem AT siol.net>
3890
3891         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
3892           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
3893
3894 2006-04-17 Borut Razem <borut.razem AT siol.net>
3895
3896         * device/include/Makefile.in: added pic/*.inc to the installation
3897
3898 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
3899
3900         * support/regression/collate-results.py: fixed output in case of
3901         a valdiag error
3902         * support/regression/generate-cases.py: fixed splitting of pathnames
3903         with dots
3904         * as/hc08/lklibr.c (addfile),
3905         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
3906
3907 2006-04-11 Raphael Neider <rneider AT web.de>
3908
3909         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
3910         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
3911         * src/pic16/pcode.c (assignValnums): fixed #1460578
3912
3913 2006-04-11 Raphael Neider <rneider AT web.de>
3914
3915         * device/lib/pic/libdev/*.c,
3916         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
3917           fixes #1468739, enables compilation in --std-c99 mode
3918         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
3919
3920 2006-04-11 Raphael Neider <rneider AT web.de>
3921
3922         * src/pic/device.c (find_device): removed debug output
3923           (list_valid_pics): enabled verbose listing of supported devices
3924         * device/include/stdbool.h: define bool as char for pic14/16 as well
3925
3926 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3927
3928         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
3929
3930 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
3931
3932         * .version: bumped version to 2.5.6
3933         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
3934
3935 2006-04-06 Raphael Neider <rneider AT web.de>
3936
3937         * .version: bumped version to 2.5.6 (pic14 ABI changed)
3938         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
3939         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
3940           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
3941             pic14_constructAbsMap
3942           (pic14printPublics): declare absolute global symbols as global
3943           (pic14createInterruptVect),
3944         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
3945           (newReg): assume new registers unused, use correct name in
3946             hashtable (reg->name instead of name), more debugLog output
3947         * src/pic/device.h (PIC_device): added fields for verbose output
3948         * src/pic/device.c: moved device definition to pic14devices.txt,
3949             added routines for runtime parsing of pic14devices.txt,
3950             added support for second config word
3951         * src/pic/main.c (_process_pragma): removed #pragma maxram,
3952           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
3953           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
3954           (_pic14_parseOptions): moved pCodeInitRegisters here
3955           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
3956         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
3957           (pCodeInitRegisters): rewrapped comments, perpared new approach to
3958             handling the pseudo stack
3959         * device/lib/Makefile.in: ignore failures in objects-pic16,
3960         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
3961         * device/lib/pic/NEWS: document new dependency on picXXX.lib
3962         * device/lib/pic/Makefile.subdir,
3963         * device/lib/pic16/Makefile.subdir: improved clean rules
3964         * device/lib/pic/libdev/: NEW, pic14 device libraries
3965         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
3966         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
3967         * device/include/Makefile.in: create subdir and install pic14 headers
3968         * device/include/pic/p16f_common.inc: removed unused declarations
3969         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
3970             PICs from inc2h.pl v1.6,
3971             replaced BIT_AT macros with struct declarations
3972         * device/include/pic/pic14devices.txt: definition of supported devices,
3973             all above improvements contributed by Zik Saleeba, thanks
3974         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
3975         * support/scripts/sdcc.nsi: also install pic14 device libraries and
3976             headers
3977
3978 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
3979
3980         * device/include/mcs51/c8051f410.h: added interrupt numbers,
3981         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
3982           thanks to Charles Olds
3983
3984 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3985
3986         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
3987
3988 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
3989
3990         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
3991         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
3992         * support/regression/bug1464657.c: added, new test
3993
3994 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
3995
3996         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
3997           version number
3998
3999 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
4000
4001         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
4002           --no-peep and --peep-file <file> are used don't use default rules but
4003           do use the <file>
4004
4005 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
4006
4007         * src/mcs51/gen.c (genCall): fixed bug 1457608
4008
4009 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4010
4011         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
4012         changes seem to cause (trigger?) problems with the build system.
4013
4014 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
4015
4016         * src/SDCCpeeph.c (operandsLiteral): new, added,
4017           (callFuncByName): inserted operandsLiteral
4018         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
4019
4020 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4021
4022         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
4023         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
4024
4025 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
4026
4027         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
4028           implemented patch 1120823 Thanks to Willy De la Court (normal
4029           interrupts need an interrupt number now if they are made critical),
4030           and enabled nesting of critical functions though not for gbz80
4031           (genCritical, genEndCritical): added functions
4032           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
4033         * src/z80/mappings.i: added "ei" to all mappings
4034
4035 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4036
4037         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
4038         submitted by the Debian SDCC maintainer Aurelien Jarno:
4039         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
4040         archive with gcc 4.1 on mips and wrote the patch"
4041
4042 2006-03-16 Raphael Neider <rneider AT web.de>
4043
4044         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
4045           the left operand is shorter than the result (c* = lit-c* + int),
4046           fixes bug #1450796
4047         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
4048           OP_SYMBOL
4049
4050 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
4051
4052         * src/.version: increased version number to 2.5.5
4053         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
4054         linking is done manually in pic16 port's _linkEdit,
4055         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
4056         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
4057         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
4058         allocate asmop as AOP_ACC,
4059         (aopForRemat): added parameter 'bool result' in function declaration,
4060         (pic16_aopGet): return AOP_ACC when accessing WREG,
4061         (pic16_popGetTempReg): minor modification,
4062         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
4063         'pic16_allocWithIdx',
4064         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
4065         calling function in absolute addresses,
4066         (genAssign): take into account AOP_ACC asmop,
4067         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
4068         * src/pic16/pcoderegs.c: some debug functions and lines added,
4069         * src/pic16/ralloc.c (decodeRegType): added but commented out,
4070         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
4071         register too,
4072         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
4073         call to allocReg, not by manually allocating a new one,
4074         (pic16_assignRegisters): now before going through the register
4075         allocating functions mark all registers as free. This eliminates some
4076         side effects resulting from peephole parser done earlier in the backbone
4077
4078 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
4079
4080         * src/SDCCicode.c (geniCodeLogic),
4081         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
4082
4083 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
4084
4085         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
4086           (genSend): bugfix, do not allocate and free twice,
4087           (shiftRLong): handle partially overlapping aops
4088         * support/regression/tests/bitopcse.c: fixed warning redefined idata
4089
4090 2006-03-08 Borut Razem <borut.razem AT siol.net>
4091
4092         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
4093           for pic16
4094
4095 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
4096
4097         * support/regression/tests/bug1409955.c: new, added
4098         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
4099         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
4100           (aopForSym, aopOp): increment asmop.allocated if reused,
4101           (freeAsmop): decrement asmop.allocated and check for zero instead of
4102           using asmop.freed,
4103           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
4104           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
4105            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
4106            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
4107            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
4108            genSignedRightShift, genRightShift, genDataPointerGet,
4109            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
4110            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
4111             in reverse order from allocation,
4112           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
4113             added swappedLR to keep track
4114         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
4115           pdata & code for GCC, z80, gbz80 & hc08
4116         * support/regression/tests/zeropad.c: moved defines to testfwk.h
4117
4118 2006-03-08 Raphael Neider <rneider AT web.de>
4119
4120         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
4121
4122 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
4123
4124         * device/include/mcs51/c8051f410.h: new SiLabs mcu
4125         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
4126         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
4127
4128 2006-03-06 Borut Razem <borut.razem AT siol.net>
4129
4130         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
4131           made the linker quiet
4132
4133 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
4134
4135         * src/pic16/gen.c (genPcall): fixed bug #1443644
4136         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
4137         which dumps before the function entry point a data byte which represents
4138         the number of the local variables used by the specified function, added
4139         'xinst' for initial support for Extended Instruction Support,
4140         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
4141         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
4142         port->fun_prefix anymore (may change later),
4143         (genFunction, genEndFunction): do not store/restore local registers for
4144         _main (this should take care the --main-return command line option in
4145         the future),
4146         (genOr): removed some legacy pic-port instructions,
4147         * src/pic16/genarith.c (genAddLit): re-enabled old code because
4148         performing operations with SFR's causes data to be written more than
4149         once to each SFR. Perhaps SFRs should be handled in special cases...
4150         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
4151         pcode.h
4152         * src/pic16/main.c (_process_pragma): stack bound checking did not take
4153         into account for stack starting position,
4154         (struct OPTIONS pic16_optionsTable): added command line argument
4155         --extended or -y for Extended Instruction Support,
4156         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
4157         (deassignLRs): *** perhaps the most important change, old 'for' code
4158         (commented out for reference), didn't account for some registers which
4159         were left marked 'not free' after a pointer operation. The change
4160         reduces register usage a lot in some cases
4161
4162 2006-03-04 Borut Razem <borut.razem AT siol.net>
4163
4164         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
4165           _clean
4166         * support/regression/tests/bug-524697.c: decreased array size for
4167           mcs51 to fit into the internal RAM
4168         * support/regression/Makefile.in: a little bit more verbose
4169
4170 2006-03-03 Borut Razem <borut.razem AT siol.net>
4171
4172         * support/regression/fwk/lib/testfwk.c,
4173           support/regression/fwk/include/testfwk.h: introduced function
4174           _prints(), nonrecursive _printn(), call _initEmu() from main()
4175         * support/regression/ports/gbz80/support.asm,
4176           support/regression/ports/ucz80/support.asm,
4177           support/regression/ports/z80/support.asm,
4178           support/regression/ports/ds390/support.c,
4179           support/regression/ports/hc08/support.c,
4180           support/regression/ports/host/support.c,
4181           support/regression/ports/mcs51/support.c,
4182           support/regression/ports/xa51/support.c: added empty _initEmu()
4183           function
4184         * support/regression/ports/pic16/gpsim.cmd,
4185           support/regression/ports/pic16/spec.mk,
4186           support/regression/ports/pic16/support.c,
4187           support/regression/Makefile.in: added pic16 regression test
4188
4189 2006-03-01 Raphael Neider <rneider AT web.de>
4190
4191         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
4192           genConstPointerGet): use safe way of generating MOVFF to cover
4193             literals as well as registers, fixes bug #1440527
4194         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
4195             dereference
4196           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
4197             more correctly, fixes bug #1232186
4198           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
4199         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
4200             gplink guess the correct processor in more cases, applied patch
4201             from Till Riedel attached to and fixing bug #1436552
4202
4203 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4204
4205         * support/regression/tests/array.c: added, contains check for #1434401
4206         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
4207
4208 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
4209
4210         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
4211         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
4212         * device/include/mcs51/c8051f326.h,
4213         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
4214         * device/include/mcs51/c8051f000.h,
4215         * device/include/mcs51/c8051f018.h,
4216         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
4217           PCON_IDLE,PCON_STOP and added sfr16 definitions
4218
4219 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
4220
4221         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
4222           genGetWord): fixed bug 1409955
4223
4224 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
4225
4226         * device/include/hc08/mc68hc908gp32.h,
4227         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
4228
4229 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
4230
4231         * src/SDCCast.c (constExprValue): return NULL if not a value
4232         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
4233         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
4234         * support/regression/tests/bitfields.c: enabled signed bitfield for all
4235
4236 2006-02-13 Borut Razem <borut.razem AT siol.net>
4237
4238         * src/regression/ptrarg.c: added, fails due to bug #1430967
4239         * src/regression/Makefile: ptrarg.c added, ...
4240
4241 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
4242
4243         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
4244         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
4245
4246 2006-02-11 Borut Razem <borut.razem AT siol.net>
4247
4248         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
4249           print "Processor: xxx" message to stdout only if --verbose
4250
4251 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
4252
4253         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
4254         * support/regression/tests/bug1426356.c: added
4255         * support/regression/tests/bitfields.c: removed 2 tests
4256
4257 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
4258
4259         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
4260         * device/include/mcs51/c8051f330.h,
4261         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
4262           PCON_IDLE,PCON_STOP and added sfr16 definitions
4263         * device/lib/_divsint.c,
4264         * device/lib/_divuint.c,
4265         * device/lib/_divulong.c,
4266         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
4267           register bank bug for small stackauto
4268
4269 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
4270
4271         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
4272
4273 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
4274
4275         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
4276         * all.dsp: corrected several bin paths
4277         * device/include/mcs51/c8051f120.h,
4278         * device/include/mcs51/c8051f300.h,
4279         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
4280           to PCON_IDLE,PCON_STOP
4281         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
4282         * device/lib/printf_large.c (output_float): fixed bug 1388703
4283         * support/regression/tests/bug1057979.c: added test for bug 1388703
4284
4285 2006-02-08 Raphael Neider <rneider AT web.de>
4286
4287         * src/pic/pcode.c (pciTRIS): fixed typo,
4288           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
4289           (LinkFlow): fixed handling of flows that end in a call,
4290           (ReuseReg): perform safety check earlier
4291         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
4292             to work with flows at the beginning of a pBlock,
4293             fixes #1426557 (Symbol not previously defined),
4294           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
4295             usage information
4296           (RemoveUnusedRegisters): update register usage info
4297         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
4298             created, reuse existing ones instead
4299         * src/pic/gen.c (genPcall): fixed #1424719
4300
4301 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
4302
4303         * link/z80/lkmain.c,
4304         * link/z80/lklex.c,
4305         * link/z80/lkdata.c,
4306         * link/z80/aslink.h: fixed build on current cygwin:
4307         replaced getline() by lk_getline()
4308
4309 2006-02-01 Borut Razem <borut.razem AT siol.net>
4310
4311         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
4312           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
4313           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
4314           src/regression/bool1.c, src/regression/bool2.c,
4315           src/regression/bool3.c, src/regression/call1.c,
4316           src/regression/compare.c, src/regression/compare10.c,
4317           src/regression/compare2.c, src/regression/compare3.c,
4318           src/regression/compare4.c, src/regression/compare5.c,
4319           src/regression/compare6.c, src/regression/compare7.c,
4320           src/regression/compare8.c, src/regression/compare9.c,
4321           src/regression/configword.c, src/regression/for.c,
4322           src/regression/inline.c, src/regression/mult1.c,
4323           src/regression/nestfor.c, src/regression/or1.c,
4324           src/regression/pointer1.c, src/regression/ptrfunc.c,
4325           src/regression/rotate1.c, src/regression/rotate2.c,
4326           src/regression/rotate3.c, src/regression/rotate4.c,
4327           src/regression/rotate5.c, src/regression/rotate6.c,
4328           src/regression/rotate7.c, src/regression/string1.c,
4329           src/regression/struct1.c, src/regression/sub.c,
4330           src/regression/sub2.c, src/regression/switch1.c,
4331           src/regression/while.c, src/regression/xor.c,
4332           src/regression/create_stc, src/regression/simulate,
4333           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
4334           regression tests
4335         * src/regression/gpsim_assert.h: added
4336
4337 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
4338
4339         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
4340         ((void (code *) (void)) 0) ();
4341         * as/hc08/aslex.c,
4342         * as/hc08/aslink.h,
4343         * as/hc08/asm.h,
4344         * as/hc08/asmain.c,
4345         * as/hc08/lkdata.c,
4346         * as/hc08/lklex.c,
4347         * as/hc08/lkmain.c,
4348         * as/mcs51/aslex.c,
4349         * as/mcs51/aslink.h,
4350         * as/mcs51/asm.h,
4351         * as/mcs51/asmain.c,
4352         * as/mcs51/lkdata.c,
4353         * as/mcs51/lklex.c,
4354         * as/mcs51/lkmain.c,
4355         * as/z80/aslex.c,
4356         * as/z80/asm.h,
4357         * as/z80/asmain.c: fixed build on current cygwin:
4358         replaced getline() by as_getline()
4359
4360 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
4361
4362         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
4363         declarator in the symbol chain
4364         * src/SDCCsymt.h,
4365         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
4366         parameter list for function pointers
4367         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
4368         * support/regression/tests/bug-716242.c: added
4369
4370 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
4371
4372         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
4373         offset if possible
4374         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
4375
4376 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
4377
4378         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
4379         inifinitely recurseable, added static
4380         * support/regression/tests/bug-1408066.c: added
4381
4382 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
4383
4384         * src/SDCCicode.h,
4385         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
4386         renamed, added possibility to create "postLoopLbl"-labels
4387         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
4388         newiTempLoopHeaderLabel
4389         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
4390         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
4391         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
4392         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
4393         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
4394         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
4395         (basicInduction): fixed bug #136564, made static,
4396         (loopInduction): changed parameter of basicInduction, made static,
4397         (addPostLoopBlock): added
4398         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
4399         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
4400         findLoopEndSeq
4401         * support/regression/tests/bug-136564.c: added
4402         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
4403         --std-sdcc99 to LIBSDCCFLAGS
4404
4405 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
4406
4407         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
4408         while loop
4409         * support/regression/tests/bug-1406131.c: added
4410
4411 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
4412
4413         * src/SDCCast.c (decorateType): fix promotion of unary minus
4414         * src/SDCCsymt.c (computeType): beautified
4415         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
4416         (valUnaryPM, valComplement): fix sign and promotion,
4417         (valNot): ANSI: result type is int (SDCC: unsigned char)
4418         * support/regression/tests/uminus.c: speedup by removing superflous
4419         test case 'int'
4420         * support/regression/tests/onebyte.c: added promotion and signedness
4421         tests for unary minus
4422         * support/regressions/tests/bug-477927.c: disable warning about
4423         uninitialized variables
4424         * support/regression/tests/not.c: added
4425
4426 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
4427
4428         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
4429         * src/mcs51/gen.c (gen51Code): show final register usage after
4430         fillGaps in asm with --i-code-in-asm
4431         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
4432         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
4433         incUsed, rliveClear, adjustIChain): made static,
4434         (setFromRange): excluded because it's unused,
4435         (findPrevUseSym, markWholeLoop): added,
4436         (findPrevUse): rewritten; fixes bug 895992; now a complete search
4437         through all branches of predecessors enables sdcc to emit the warning
4438         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
4439         (rlivePoint): made static, added parameter emitWarnings which is only
4440         true during the first run out of two,
4441         (findRecursiveSucc, findRecursivePred): removed,
4442         (computeLiveRanges): made static, added parameter emitWarnings,
4443         (dumpIcRlive): added for debugging only
4444         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
4445         removed prototype of setFromRange()
4446         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
4447         in call of computeLiveRanges()
4448         * support/regression/tests/bug-895992.c: added
4449         * support/regression/tests/bug-971834.c: added
4450         * support/valdiag/tests/bug-895992.c: added
4451         * support/valdiag/tests/bug-971834.c: added
4452
4453 2005-12-18 Raphael Neider <rneider AT web.de>
4454
4455         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
4456           (genUnpackBits): improved code for direct operands,
4457           (genPackBits): improved code for literal assignment to bitfields
4458             and for direct destination operands (no FSR indirection),
4459             prevented redundant AND, fixes #1362800,
4460           (AccLsh): added parameter to disable masking of the result
4461         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
4462           skip instructions with side-effects (like incfsz),
4463           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
4464         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
4465         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
4466           fixes #1375263
4467
4468 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
4469
4470         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
4471         volatile variables as spill location
4472
4473 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
4474
4475         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
4476         replacing literals
4477         * support/regression/tests/bug-1376320.c: added
4478
4479 2005-12-08 Raphael Neider <rneider AT web.de>
4480
4481         * src/pic/device.c: renamed is_shared to pic14_is_shared
4482         * src/pic/gen.c (genIfx): re-enabled handling of sbits
4483         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
4484           (is_valid_identifier): added for above workaround
4485
4486 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
4487
4488         * device/lib/Makefile.in: fixed to enable port-specific-objects
4489         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
4490           char, thanks Hubert Sack
4491         * doc/sdccman.lyx: documented --xstack-loc,
4492           elaborated a bit more on interrupts and pitfalls,
4493           removed "setjmp/longjmp unsupported",
4494           documented some unsupported C99 features
4495         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
4496         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
4497           if, thanks Hubert Sack
4498         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
4499         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
4500           make make_library
4501         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
4502           regression tests can report resource usage (rfe 700441)
4503         * support/regression/collate-results.py: report resource usage
4504         * support/regression/ports/ds390/spec.mk,
4505         * support/regression/ports/hc08/spec.mk,
4506         * support/regression/ports/mcs51/spec.mk,
4507         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
4508         * support/regression/ports/ds390/uCsim.cmd,
4509         * support/regression/ports/hc08/uCsim.cmd,
4510         * support/regression/ports/mcs51/uCsim.cmd,
4511         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
4512         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
4513           library, use the default one
4514         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
4515           building the library
4516
4517 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
4518
4519         * config.dsp: added dependency on .version and configure_vc.awk
4520         * device/include/setjmp.h: updated for --stack-auto and --xstack
4521         * device/include/mcs51/at89c51snd1c.h: corrected line endings
4522         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
4523         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
4524         * device/lib/libsdcc.lib: added _setjmp
4525         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
4526           (decorateType): fixed bug 1372851,
4527           (optimizeGetHbit): fixed warning
4528         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
4529           array initialisation
4530         * support/regression/tests/bug1057979.c: added test for bug 1358192
4531         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
4532
4533 2005-12-03 Borut Razem <borut.razem AT siol.net>
4534
4535         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
4536           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
4537
4538 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
4539
4540         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
4541         createIval): implement symbol independant "flexible array member",
4542         (createIvalCharPtr): implemented flexible array initialisation with a
4543         string
4544         * src/SDCCsymt.c (copyStruct): removed,
4545         (getSize): fixed misleading comment,
4546         (getAllocSize): removed, the additional allocation size is now in
4547         sym->flexArrayLength,
4548         (checkStructFlexArray): new, syntax checks for flexible array members,
4549         (compStructSize): added syntax checks for "flexible array members"
4550         (copyStruct): removed,
4551         (copyLinkChain): removed inefficient fix for bug 770487
4552         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
4553         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
4554         symbol->flexArrayLength
4555         * src/SDCCerr.c,
4556         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
4557         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
4558         * support/regression/tests/structflexarray.c: added
4559         * support/valdiag/tests/structflexiblearray.c: added
4560
4561 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
4562
4563         * src/SDCCast.c (decorateType): fixed bug 1368489
4564         * support/Util/SDCCerr.c,
4565         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
4566
4567 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4568
4569         * device/include/mcs51/at89c51snd1c.h: added file submitted by
4570           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
4571
4572 2005-11-27 Borut Razem <borut.razem AT siol.net>
4573
4574         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
4575           support/cpp2/mkdeps.h: added command line option
4576           -obj-ext=<extension> to SDCPP to define object file externion, used
4577           for generation of make dependencies (-M)
4578         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
4579
4580 2005-11-26 Borut Razem <borut.razem AT siol.net>
4581
4582         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
4583           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
4584           added pic and pic16 libraries
4585
4586 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4587
4588         * device/include/float.h: Corrected typo in prototype of __fsgt
4589
4590 2005-11-25 Borut Razem <borut.razem AT siol.net>
4591
4592         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
4593           added creation of model-mcs51-stack-auto libraries
4594
4595 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
4596
4597         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
4598         and fields-list too
4599         * src/SDCCast.c (createIvalArray): removed obsolete comment
4600
4601 2005-11-24 Borut Razem <borut.razem AT siol.net>
4602
4603         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
4604           added missing device/lib/mcs51/crt*.asm sources
4605
4606 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
4607
4608         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
4609
4610 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
4611
4612         * device/lib/_fs2schar.c,
4613         * device/lib/_fs2sint.c,
4614         * device/lib/_fs2slong.c: optimized inline asm
4615
4616 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4617
4618         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
4619           Better handling of floats between -1.0 and 0.0.
4620
4621 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4622
4623         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
4624           (the missing "if"s prohibited removal of redundant labels)
4625
4626 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4627
4628         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
4629           Properly convert floats between -1.0 and 0.0 to long, int, and char
4630           types (max integer value of negative floats tends to zero).
4631         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
4632           Removed changes made so to work properly with floats between
4633           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
4634           and _fs2char.c
4635
4636 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
4637
4638         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
4639         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
4640         (genCast) cosmetic change
4641         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
4642         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
4643         from mcs51
4644         * support/regression/tests/bitfields (testSignedBitfields): added
4645
4646 2005-11-18 Borut Razem <borut.razem AT siol.net>
4647
4648         * sdcc/device/lib/Makefile.in: remove all unnecessary files
4649         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
4650           introduced SILENT option to make building of pic16 libraries less
4651
4652 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4653
4654         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
4655           Now they work properly with floats between -1.0 and 0.0
4656         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
4657
4658 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
4659
4660         * src/SDCCicode.c (printOperand): added missing else
4661
4662 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
4663
4664         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
4665         reformatted for better readability
4666         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
4667         signed bitfields
4668
4669 2005-11-17 Borut Razem <borut.razem AT siol.net>
4670
4671         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
4672           introduced SILENT option to make building of pic16 libraries less
4673           verbose - used for nightly snapshot build
4674         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
4675           available on Win32 platforms.
4676         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
4677           medium, large, pic and pic16
4678
4679 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4680
4681         * device/lib/printf_large.c: Temporary patch for bug 1358192:
4682           printf("%f"...) sets fraction to zero.
4683
4684 2005-11-16 Raphael Neider <rneider AT web.de>
4685
4686         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
4687           fixes #1357221
4688         * src/pic/gen.c (genIfx): implemented for CARRY bit
4689         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
4690           to generic pointers, fixes #1357332,
4691           (pic16_movLit2f): NEW,
4692           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
4693
4694 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4695
4696         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
4697
4698 2005-11-11 Raphael Neider <rneider AT web.de>
4699
4700         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
4701         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
4702           compute pointer's type from operand,
4703           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
4704           improved single bit reads, fixes bug #1353379
4705
4706 2005-11-09 Borut Razem <borut.razem AT siol.net>
4707
4708         * support/scripts/sdcc.nsi: added lib/pic to the package
4709
4710 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
4711
4712         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
4713
4714 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
4715
4716         * support/regression/tests/bug1348008.c: added
4717         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
4718         * support/regression/tests/bug1337835.c: updated comment
4719
4720 2005-11-06 Borut Razem <borut.razem AT siol.net>
4721
4722         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
4723           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
4724           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4725           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
4726           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
4727           dynamic construction of cl_error_class and derivates - 2.nd try
4728
4729 2005-11-05 Borut Razem <borut.razem AT siol.net>
4730
4731         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
4732           bug, which caused Bus Errors on sparc solaris
4733
4734 2005-11-04 Borut Razem <borut.razem AT siol.net>
4735
4736         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
4737           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
4738           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4739           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
4740           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
4741           and derivates to resolve the initialization problem on OSX
4742
4743 2005-11-02 Borut Razem <borut.razem AT siol.net>
4744
4745         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
4746           corrected typo - #include <winsock2.h>
4747
4748 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
4749
4750         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
4751           (_asxxxx_mapping): added org directive for future enhancements
4752
4753 2005-11-01 Borut Razem <borut.razem AT siol.net>
4754
4755         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
4756           enabled sockets on WIN32
4757         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
4758
4759 2005-10-31 Borut Razem <borut.razem AT siol.net>
4760
4761         * support/regression/generate-cases.py: escape backslashes in {testcase}:
4762           WIN32 backslash path delimiters should be escaped when used in C strings
4763         * support/regression/tests/bitfields.c: exclude failing assertions for
4764           __CYGWIN32__ and __MINGW32__ hosts
4765
4766 2005-10-30 Borut Razem <borut.razem AT siol.net>
4767
4768         * src/SDCCutil.c: corrected double comparison typo
4769
4770 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
4771
4772         * device/lib/medium/Makefile: added for new memory model medium
4773         * device/include/asm/mcs51/features.h: updated for medium/pdata
4774         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
4775           added Multiply & Accumulate sbit's and MAC0_PAGE define
4776         * device/include/mcs51/c8051f300.h: added sfr16 definitions
4777         * device/include/mcs51/c8051f310.h: added sfr16 definitions
4778         * device/lib/_mullong.c: update for medium model
4779         * device/lib/incl.mk: added medium model
4780         * doc/sdccman.lyx: documented medium model
4781         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
4782         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
4783         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
4784         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
4785           (allocParms): set SCLS and OCLS to pdata for medium model
4786         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
4787           for pdata,
4788           (powof2): return <0 if not power of 2
4789         * src/avr/gen.c (genBitWise): use updated powof2
4790         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
4791           (shiftR2Left2Result): small optimization in setup, save acc when storing,
4792           (shiftLLeftOrResult): use B if necessary
4793         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
4794         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
4795         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
4796         * support/regression/Makefile.in: added test-mcs51-medium
4797         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
4798
4799 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
4800
4801         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
4802         specifier unsigned
4803         * device/lib/time.c (mktime): fixed bug 1334315
4804
4805 2005-10-28 Raphael Neider <rneider AT web.de>
4806
4807         * device/include/pic/p16f_common.inc: added common declarations
4808         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
4809
4810 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
4811
4812         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
4813           (aopPutUsesAcc): added to predict accumulator use,
4814           (assignResultValue): save acc if necessary,
4815           (genMinusDec): store result if indirectly addressed,
4816           (genDivOneByte):  save acc if necessary,
4817           (movLeft2Result): bugfix if left already in acc,
4818           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
4819             attention to accumulator use (esp. pdata),
4820           (genReceive): receive pdata correctly
4821         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
4822         * src/SDCCicode.h: added isOperandInPagedSpace prototype
4823
4824 2005-10-27 Raphael Neider <rneider AT web.de>
4825
4826         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
4827
4828 2005-10-27 Raphael Neider <rneider AT web.de>
4829
4830         * .version: changed version to 2.5.4
4831         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
4832         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
4833           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
4834             arithmetics support routines
4835         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
4836         * device/lib/Makefile.in: also create installdir for pic
4837
4838         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
4839           pic14 port as well
4840         * src/pic/device.c (dump_sfr): rewritten to delegate register
4841           placement to the linker (use `extern sym' rather than sym EQU addr),
4842           (validAddress): fixed to check last specified address
4843         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
4844           (popGetLit): truncate literal value to 8 bit,
4845           (popGet): moved assert to more appropriate place
4846           (popGetExternal): create pCode operand from and mark the according
4847             symbol as being `extern'
4848           (popGetAddr): added sanity check on immediate's offset, provide
4849             GPOINTER tag on demand
4850           (aopPut): fixed for immediates,
4851           (mov2w_op): move operand's address or contents to WREG (depending on
4852             operand type), safer variant of mov2w,
4853           (movwf,call_libraryfunc): NEW, handy abbreviations,
4854           (get_argument_pcop,get_return_val_pcop,pass_argument,
4855           get_returnvalue): interface for accessing function parameters and
4856             return values,
4857           (assignResultValuei,genRet): use new parameter/return value interface
4858           (pic14_getDataSize): back to old version handling generic pointers,
4859           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
4860             provided implementation and/or fixed old one,
4861           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
4862             calls, removed legacy 8051 reference code
4863           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
4864           (loadSignToC): NEW, move the operands sign bit to CARRY,
4865           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
4866             genRightShiftSigned, accepts negative shift counts,
4867           (setup_fsr): load FSR and adjust IRP (indirect memory access),
4868           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
4869             generic pointers, __data pointers and __code pointers,
4870           (genUnpackBits,genPackBits): rewritten to work with generic pointers
4871             and signed bitfields, limit bitfields to 8 bit,
4872           (genDataPointerGet): fixed number of bytes read,
4873           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
4874           (genPointerGet,genPointerSet): fixed handling of __code pointers,
4875             pointers to constant data are no longer assumed to point to __code
4876             space, removed invalid pointer types,
4877           (bitpatternFromVal): retrieve the PICs representation of an integer
4878             or float literal,
4879           (genDataPointerSet): fixed assigning to po_immediate operands,
4880           (genGenPointerSet): implemented as library call,
4881           (genIfx): fixed incorrect condition,
4882           (genAddrOf): limit generic pointers' addresses to 2 bytes,
4883             provide GPOINTER tag according to destination's storage class,
4884           (genCast): added code to handle casting to generic pointers, added
4885             sign-/zero extension of the result
4886           (aop_isLitLike,op_isLitLike): fixed handling of immediates
4887         * src/pic/gen.h: added macros to access IRP bit in STATUS register
4888         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
4889           extend the result
4890         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
4891           address/register resides in the shared banks
4892           (emitSymbolToFile): improved to handle global and `pinned' symbols,
4893             put all variables into separate sections (have the linker arrange
4894             them)
4895           (picglue): put init code and interrupt handlers in separate sections
4896         * src/pic/main.c: added port specific options table, modified to PORT
4897           structure to make GPOINTERs 3 byte, added pic14_options
4898           (_pic14_do_link): private linking routine (update paths to libraries,
4899             add libsdcc.lib by default)
4900         * src/pic/main.h: declare pic14_options
4901         * src/pic/pcode.c: fixed instructions i/o relations,
4902           (RegCond): reverted to correct version,
4903           (newpCodeOpLit): truncate literals to 8 bit,
4904           (genericPrint): added debug output,
4905           (getRegFromInstruction): fixed for various operand types, simplified
4906           (BuildFlow): fixed broken handling of isntructions with labels
4907           (LinkFlow): start at last instruction in flow (skip trailing comments),
4908             pass the flow on to the next instruction after CALL
4909           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
4910           (insertPCodeInstruction): fixed inserting after a skip instruction,
4911           (DoBankSelect): fixed for labeled instructions
4912           (OptimizepBlock): honor --nopeep switch
4913           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
4914         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
4915         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
4916           (pCodeOptime2pCodes): allow disabling this optimization via
4917             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
4918             but is still buggy), started implementation of a dataflow based
4919             pCode optimization (CSE + dead code elimination)
4920           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
4921         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
4922           names are independant of the stack location and therefore portable across
4923           devices
4924
4925 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
4926
4927         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
4928           (selectSpil): fixed bug 1337835 by not spilling bit variables
4929         * support/regression/tests/bug1337835.c: added test for this bug
4930         * src/mcs51/peeph.def: restart after rule 3.c,
4931           addded rules 263.x to optimize loading constants
4932
4933 2005-10-26 Raphael Neider <rneider AT web.de>
4934
4935         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
4936         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
4937           (genAssign): emit warning when casting literals to generic pointer
4938             type, also applies when taking the address of a fixed variable,
4939           (genCast): improved casting to generic pointers
4940         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
4941           extern variables, added verbose error message
4942         * device/include/pic16/{string.h,errno.h}: added #pragma library c
4943
4944 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
4945
4946         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
4947         carry must be complemented too
4948         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
4949         could be emitted by genMinus
4950         * src/SDCCval.c (constVal): fixed bug 1305065
4951
4952 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
4953
4954         * src/SDCCast.c (addCast): added promotion for bit variables
4955         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
4956         promotion casts + optimisation
4957         (optimizeGetWord): fix warning 'i' might be used uninitialized
4958         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
4959         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
4960
4961 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
4962
4963         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
4964         all chars are promoted to int; promotion should be handled in SDCCast.c
4965
4966 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4967
4968         * device/lib/_strcmp.c: Fixed bug 1326457
4969
4970 2005-10-11 Raphael Neider <rneider AT web.de>
4971
4972         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
4973         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
4974
4975 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
4976
4977         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
4978         * support/regression/tests/sfr16.c: added test for the sfr32 bug
4979
4980 2005-10-04 Raphael Neider <rneider AT web.de>
4981
4982         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
4983           device/lib/pic16/pics.all: added pic18f1320
4984         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
4985
4986 2005-09-30 Raphael Neider <rneider AT web.de>
4987
4988         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
4989         * src/pic16/devices.inc: NEW, provides device descriptions
4990         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
4991
4992 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
4993
4994         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
4995           GETHBIT
4996
4997 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
4998
4999         * doc/sdccman.lyx: updated Highest Order Bit documentation,
5000           documented Any Order Bit, Higher Order Byte and Higher Order Word
5001         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
5002         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
5003           (optimizeGetAbit): new, to get any bit, not only the high bit,
5004           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
5005           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
5006           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
5007           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
5008             RIGHT_OP: also try GETBYTE, GETWORD optimization,
5009             GETABIT, GETBYTE, GETWORD: decorate them,
5010           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
5011           (ast_print): added GETABIT, GETBYTE, GETWORD
5012         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
5013         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
5014           (geniCodeBinary): new generic binary icode,
5015           (ast2iCode): added GETABIT, GETBYTE, GETWORD
5016         * src/port.h: updated comment for PORT.hasExtBitOp
5017         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
5018           (genGetByte): new, to get a single byte,
5019           (genGetWord): new, to get a word from a long,
5020           (gen51Code): added GETABIT, GETBYTE, GETWORD
5021         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
5022
5023 2005-09-23 Raphael Neider <rneider AT web.de>
5024
5025         * configure.in, configure: have device/lib/pic configured
5026         * device/lib/Makefile.in: added model-pic14
5027         * device/lib/clean.mk: added pic/ to clean rule
5028         * device/lib/pic: added rudimentary pic14 library providing support
5029           functions for multiplication/division/generic pointer access
5030         * src/SDCCopt.c (convilong): mark support functions as extern
5031           for pic14 port as well
5032         * src/pic/gen.c (genMult): added assertions,
5033           (genpic14Code): emit warning on unhandled iCodes
5034         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
5035         * src/pic/pcode.c (pCodeOpCopy),
5036         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
5037           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
5038           SFR_REGISTER}), made safe for future extensions
5039         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
5040           instructions even if preceeded by SKIP instructions (also remove
5041           them); removed unused code
5042         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
5043           prevents leaving parts of the structure uninitialized after copying
5044
5045 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
5046
5047         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
5048           ago by me
5049         * support/regression/tests/addsub.c: added test for the bug
5050
5051 2005-09-21 Raphael Neider <rneider AT web.de>
5052
5053         * device/include/pic16/pic18f1220.h,
5054           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
5055         * device/lib/pic16/Makefile.rules: added missing opening paren
5056         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
5057           are provided in genutils.c,
5058           (genUminusFloat,genUminus,genCmpEq): added asserts on different
5059           operand/result sizes,
5060           (genCmp): assert on NULL pointers first, then check deref'ed values
5061         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
5062           result size
5063
5064 2005-09-18 Raphael Neider <rneider AT web.de>
5065
5066         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
5067           as these are now unused,
5068           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
5069         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
5070           local, avoids uninitialized pointer dereference on r->name
5071         * src/pic16/ralloc.c (newReg): fixed indentation
5072
5073 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
5074
5075         * src/SDCCval.c (constVal): fixed bug 730366
5076         * support/Util/SDCCerr.c,
5077         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
5078
5079 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
5080
5081         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
5082
5083 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
5084
5085         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
5086
5087 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
5088
5089         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
5090           (hex2dec): made hex_digit unsigned char, removed ascii dependance
5091         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
5092           (hex2dec): made hex_digit unsigned char, removed ascii dependance
5093         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
5094         * packihx/packihx.c (hexDigit): made c unsigned char
5095         * as/mcs51/lklibr.c (fndsym),
5096         * link/z80/lkgb.c (gb),
5097         * link/z80/lklibr.c (fndsym),
5098         * link/z80/lkrloc.c (relr),
5099         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
5100         * src/SDCC.lex (checkCurrFile, process_pragma),
5101         * src/SDCCglue.c (spacesToUnderscores),
5102         * src/SDCCmain.c (setParseWithComma, processFile),
5103         * src/asm.c (tvsprintf, printCLine),
5104         * src/avr/gen.c (emitcode, aopPut),
5105         * src/ds390/gen.c (emitcode),
5106         * src/hc08/gen.c (emitcode, emitinline),
5107         * src/mcs51/gen.c (emitcode, genInline),
5108         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
5109           tokenizeLineNode),
5110         * src/pic/ralloc.c (debugLog),
5111         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
5112           tokenizeLineNode),
5113         * src/pic16/ralloc.c (debugLog),
5114         * src/z80/main.c (_process_pragma):
5115            made all ctype.h function calls safe
5116         * src/SDCCopt.c: include math.h for fabs
5117         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
5118           and used them throughout the code to make ctype.h function calls safe
5119         * src/ds390/main.c (asmLineNodeFromLineNode),
5120         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
5121         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
5122            unsigned char*
5123         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
5124           (newpCodeAsmDir): made ctype.h function calls safe
5125         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
5126           pic16_emitcode):  made lbp unsigned char*
5127         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
5128           (pic16_newpCodeAsmDir): made ctype.h function calls safe
5129         * src/xa51/gen.c (emitcode),
5130         * src/z80/gen.c (_emit2): made lbp unsigned char*
5131         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
5132            char*
5133
5134 2005-09-05 Raphael Neider <rneider AT web.de>
5135
5136         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
5137           access bank splitpoint
5138
5139 2005-09-05 Raphael Neider <rneider AT web.de>
5140
5141         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
5142
5143 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
5144
5145         * .version: changed to version 2.5.3
5146         * doc/sdccman.lyx: changed version to 2.5.3,
5147           documented --codeseg and --constseg and pragma codeseg and constseg,
5148           documented bit parameters (reentrant) and bit returning
5149         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
5150            currFunc->recvSize, but is this ok for all ports?
5151           (ast2iCode): result of ~ on unsigned char must be cast to int for
5152            bool to work
5153         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
5154           function pointers in bit space
5155         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
5156           (processFuncArgs): call port.reg_parm() with reentrancy info
5157         * src/port.h,
5158         * src/avr/main.c,
5159         * src/ds390/main.c,
5160         * src/hc08/main.c,
5161         * src/pic/main.c,
5162         * src/pic16/main.c,
5163         * src/xa51/main.c,
5164         * src/z80/main.c: port.reg_parm prototype extended with
5165           "bool reentrant" parameter
5166         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
5167           options.stackAuto for allocating bit register parameters
5168         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
5169           (genSend): set BitBankUsed if it is,
5170           (selectRegBank): factored out of genCall for use in genPcall,
5171           (genCall): removed redundant dtype assignmen, use selectRegBank,
5172           (genPcall): handle returning in Carry properly, save in F0 if needed,
5173           (genReceive): handle bit register parameters
5174         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
5175           (mcs51_assignRegisters): enable bit registers for all reentrant
5176            functions and don't set BitBankUsed unconditionally
5177         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
5178         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
5179         * support/regression/tests/funptrs.c: added tests for BOOL and for return
5180
5181 2005-08-27 Borut Razem <borut.razem AT siol.net>
5182
5183         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
5184         ppc-osx (Darwin) does not support -u option. It seems that it is
5185         supported only on Linux - GNU cp
5186
5187 2005-08-25 Borut Razem <borut.razem AT siol.net>
5188
5189         * sim/ucsim/gui.src/serio.src/Makefile.in,
5190           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
5191           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5192           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
5193           install and strip, since the strip at /usr/ccs/bin should be used
5194           on solaris
5195
5196 2005-08-24 Borut Razem <borut.razem AT siol.net>
5197
5198         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
5199
5200 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
5201
5202         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
5203         ffffffffu
5204
5205 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
5206
5207         * as/mcs51/aslink.h: completed lkrloc.c prototypes
5208         * as/mcs51/lkmain.c (link_main): fixed warning
5209         * device/include/stdbool.h: ds390 has no advanced bit support yet
5210         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
5211         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
5212         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
5213           and updated their macros
5214         * src/SDCCval.c (constVal): updated comment for renamed b_long
5215
5216 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
5217
5218         * as/mcs51/asdata.c: changed ctype['['] to BINOP
5219         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
5220           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
5221           (oprio): set priority for '['
5222         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
5223            and adb_24_bit
5224         * as/mcs51/asm.h: added defines R_BIT and S_BIT
5225         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
5226         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
5227         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
5228           added overlayable BIT_BANK area
5229         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
5230           (summary2): explain 'T' in legenda
5231         * as/mcs51/lkrloc.c: replaced old K&R style,
5232           (relr): added R_BIT processing,
5233           (errmsg): added "Bit-addressable relocation error",
5234           (adb_bit): added for converting from byte- to bit-addressable space,
5235           (adb_24_bit): added for converting from byte- to bit-addressable space
5236         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
5237            used in reentrant functions now even as return value
5238         * device/lib/_gptrput.c (_gptrput): removed obsolete code
5239         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
5240           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
5241         * src/SDCCglobl.h: added indicator BitBankUsed
5242         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
5243            the bit registers b0-b7
5244         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
5245           (geniCodeCast): fixed bug 1263853,
5246           (geniCodeLogicAndOr): put result in bool or char,
5247           (geniCodeReceive): added parameter func for accessing the return type,
5248           (geniCodeFunctionBody): pass func to geniCodeReceive
5249         * src/SDCCmain.c: added indicator BitBankUsed
5250         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
5251         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
5252           (checkSClass): don't put automatic bool/bit on stack,
5253           (checkFunction): removed check on function cannot return bit
5254         * src/SDCCsymt.h: added newBoolLink prototype
5255         * src/mcs51/gen.c (rb1regs): added bit registers,
5256           (movc): created for assigning to carry,
5257           (pushReg, popReg): created for pushing registers,
5258           (sameRegs): check both AOP_REG and AOP_CRY types,
5259           (aopOp): handle bit registers,
5260           (aopPut): optimization no self-assign,
5261           (saveRegisters): push reg->base (bits) only once for bit registers,
5262            and use pushReg,
5263           (unsaveRegisters): pop reg->base only once and use popReg,
5264           (assignResultValue): added parameter func and return in carry for bits,
5265           (genIpush): optimization no reload in A if not changed,
5266           (genSend): bit parameters in reentrant functions are passed in bit
5267            registers by first assigning to bits in B, then save registers and
5268            copy B to bits,
5269           (genCall): handle returning in Carry properly, save it in F0 if needed,
5270           (genPcall): updated assignResultValue call, this is not safe yet for bit
5271            returning function !!!
5272           (genFunction): don't generate equ's for bit registers and use pushReg,
5273           (genEndFunction): take care of bit returning functions and use popReg,
5274           (genRet): return bit in Carry,
5275           (genIfx): optimize bit registers and other directly addressable bits,
5276           (genReceive): updated assignResultValue call
5277         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
5278           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
5279            registers when using stack-auto
5280         * src/mcs51/ralloc.c (_G): added allBitregs,
5281           (regs8051): added the bit registers,
5282           (createStackSpil): use macro IS_BIT,
5283           (getRegBit): added to allocate a bit register, else spill,
5284           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
5285           (updateRegUsage): factored out to ease stepping while debugging,
5286           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
5287            also allocate bit registers,
5288           (fillGaps): handle bit registers,
5289           (findAllBitregs): added to create bit vector with all bit registers,
5290           (mcs51_allBitregs): returns this bit vector,
5291           (mcs51_assignRegisters): when using stack-auto use bit registers for
5292            passing parameters and creating local variables
5293         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
5294
5295 2005-08-22 Borut Razem <borut.razem AT siol.net>
5296
5297         * device/lib/Makefile.in: replaced find option -or with -o
5298           to make it run on solaris
5299
5300 2005-08-22 Raphael Neider <rneider AT web.de>
5301
5302         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
5303           fixes #1265442 (crash on Solaris)
5304
5305 2005-08-20 Borut Razem <borut.razem AT siol.net>
5306
5307         * configure, configure.in: added tests for libsocket and libnsl libraries,
5308           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
5309           from support/regression/Makefile.in
5310         * support/regression/Makefile.in: added
5311         * device/lib/pic16/Makefile.common.in: force make to use bash shell
5312         * sim/ucsim/libtool: regenerated on sparc-solaris
5313         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5314           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
5315           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
5316           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
5317           sparc-solaris, which doesn't use GNU ld linker
5318         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
5319         * as/Makefile: find on sparc-solaris does not support -maxdepth option
5320
5321 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
5322
5323         * src/mcs51/peeph.def: updated comments
5324
5325 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5326
5327         * device/lib/_gptrget.c,
5328         * device/lib/_gptrput.c: slightly shorter
5329         * doc/sdccman.lyx: incremented version
5330         * src/mcs51/peeph.def: moved peephole comments to the line of first
5331           change to better keep line correlation, reanimated 186.e
5332         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
5333
5334 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
5335
5336         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
5337           David Saxton with quotes around file name.
5338
5339 2005-08-15 Borut Razem <borut.razem AT siol.net>
5340
5341         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
5342           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
5343           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
5344           make tests run on x86_64 platform
5345
5346 2005-08-13 Raphael Neider <rneider AT web.de>
5347
5348         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
5349           as it might be executed DURING a build (parallel make is wonderful)
5350
5351 2005-08-13 Raphael Neider <rneider AT web.de>
5352
5353         * device/lib/Makefile.in (port-specific-objects-pic16):
5354           revert to cp $(PORT)/bin/*.* $(PORTDIR)
5355         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
5356           dependency
5357         * device/lib/pic16/Makefile.rules: build subdirs before creating
5358           the library, removed builddir rule, create $(builddir) early in
5359           recurse rule, use empty recurse rule for leaf directories
5360         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
5361           mkdir errors (race condition), removed duplicate suffix "hex"
5362           from clean rules
5363         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
5364         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
5365           prevents mkdir -p from aborting on Alpha
5366
5367 2005-08-12 Raphael Neider <rneider AT web.de>
5368
5369         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
5370           db-statements in order to allow for arrays of pointers in code
5371           sections to be placed without interspersed 0-padding, fixes
5372           bug #1256215
5373         * (emitStatistics): fixed division by zero for pic18f1220
5374         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
5375           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
5376         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
5377         * (pic16_pCodeConstString): keep track of already emitted string
5378           literals to prevent "duplicate definitions of symbol _str_NR"
5379         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
5380           debug message
5381         * device/lib/Makefile.in: ignore failing PIC16 library builds
5382         * device/lib/pic16/Makefile: do not build if gputils are missing
5383         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
5384
5385 2005-08-10 Raphael Neider <rneider AT web.de>
5386
5387         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
5388           my last commit)
5389
5390 2005-08-10 Raphael Neider <rneider AT web.de>
5391
5392         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
5393           Rokas' patch to add the new fixed point type "__fixed16x16"
5394         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
5395           functions for __fixed16x16 arithmetics
5396         * device/lib/pic16: reimplemented the build system to support
5397           a separate build directory, better handling of libio (create
5398           the library in a separate subdir for each architecture) and
5399           easier configuration (centralized in Makefile.common)
5400
5401 2005-08-07 Raphael Neider <rneider AT web.de>
5402
5403         * src/pic16/gen.c (genrshTwo): fixed sign extension
5404         * src/pic16/device.c: added pic18f2320, 4220 and 4320
5405         * device/include/pic16/pic18f2220.h: changed some bit definitions,
5406           added T0CONbits
5407         * device/include/pic16/pic18f4220.h: NEW, header for
5408           pic18f4220 and pic18f4320
5409         * device/include/pic16/pic18fregs.h: added new devices,
5410           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
5411         * device/include/pic16/signal.h: resolved name clashes
5412           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
5413           to also allow testing for interrupt enable bits, added
5414           comments on how to use the macros
5415         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
5416         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
5417           register definitions for the devices
5418         * device/lib/pic16/pics.all: added new devices
5419         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
5420           allocated memory
5421         * device/lib/pic16/libc/stdlib/memfree: do not count
5422           the block header as free memory
5423         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
5424           simplified and added missing end-of-blocklist-marker
5425           (reported by Peter Onion, fixes #1252814)
5426         * (_mergeHeapBlock): fixed loop condition
5427         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
5428           len==0, restructured code
5429         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
5430           up a bit, reduced bitfield accesses, prevent endless loops
5431           in case of heap corruption
5432         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
5433           "unreferenced arguments/must return a value" warnings
5434         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
5435           replaced BAUDREG with SPBRG
5436         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
5437           device/lib/pic16/debug/gstack/gstack.c: replaced
5438           _naked, _asm, _endasm with __naked, __asm, __endasm
5439
5440 2005-08-05 Raphael Neider <rneider AT web.de>
5441
5442         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
5443           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
5444
5445 2005-08-05 Borut Razem <borut.razem AT siol.net>
5446
5447         * device/lib/Makefile.in: added missing ';'
5448         * configure: removed ^M characters
5449
5450 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5451
5452         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
5453           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
5454           License
5455
5456 2005-08-04 Borut Razem <borut.razem AT siol.net>
5457
5458         * configure.in: pic16 libraries build 2nd try - enable running
5459           configure in device/lib/pic16
5460         * configure: regenerated from configure.in
5461         * device/lib/Makefile.in: create $(PORT)/bin directory
5462
5463 2005-08-03 Raphael Neider <rneider AT web.de>
5464
5465         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
5466           to get/set values via pointers
5467         * (genUnpackBits,genPackBits): changed detection of
5468           ptr->bitfield vs. sym.bitfield, fixed access via generic
5469           pointers, removed dead (wrong) code for multibyte bitfields
5470         * (genNearPointerGet, genGenPointerGet): removed useless code,
5471           fixed bitfield detection, fixes #1250594
5472         * (genNearPointerSet): removed useless code
5473         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
5474           and introduced macro pic16_emitpcode that conditionally emits
5475           the origin of the following pCode (useful for debugging SDCC)
5476         * src/pic16/pcode.c: changed (and disabled) some debug outputs
5477         * (createDefmap): fixed handling of LFSR for --optimize-df
5478
5479 2005-08-02 Borut Razem <borut.razem AT siol.net>
5480
5481         * device/lib/Makefile.in: pic16 libraries build enabled since
5482           gputils-0.13.2 are now localy installed at sourceforge's compile farm
5483
5484 2005-08-02 Raphael Neider <rneider AT web.de>
5485
5486         * src/pic16/gen.c (genPackBits): removed deprecated warning
5487         * (genGenPointerSet): fixed bitfield detection
5488
5489 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5490
5491         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
5492
5493 2005-07-31 Raphael Neider <rneider AT web.de>
5494
5495         * device/lib/pic16/libdev/pic18f458.c,
5496           device/include/pic16/pic18f458.h: added missing T0CONbits
5497
5498 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
5499
5500         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
5501
5502 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
5503
5504         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
5505
5506 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5507
5508         * device/include/mcs51/at89c51ed2.h: added.
5509
5510 2005-07-23 Raphael Neider <rneider AT web.de>
5511
5512         * src/pic/gen.h: added emitpcode macro for debugging
5513         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
5514           and replace by macro adding debug information on demand
5515         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
5516         * (gencjne): tried to fix; replaced with correct (slower) code
5517         * (gen{Unp,P}ackBits): fixed single bit access
5518         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
5519         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
5520           previous instruction
5521         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
5522           register has to be handled with care (forbidding movement
5523           of assignments/uses, removing assignments completely, ...)
5524         * (pCodeOptime2pCodes): make use of regIsSpecial
5525         * added lots of debugging output (commented out)
5526         * src/pic/rallloc.c (deassignLRs): prevent operand registers
5527           from being reused as result UNLESS it is known to work
5528
5529 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
5530
5531         * support/Util/dbuf.h: include <stddef.h> for size_t
5532         * .version: changed to version 2.5.2
5533
5534 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5535
5536         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
5537
5538 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5539
5540         * src/hc08/gen.c (genMinus): fixed bug #1241835,
5541           (genModOneByte): removed needless psha/pula
5542
5543 2005-07-22 Raphael Neider <rneider AT web.de>
5544
5545         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
5546           have PIC14 handled like PIC16, fixes broken pic14 linker calls
5547         * src/pic/gen.c (resolveIfx): do not "invent" labels
5548         * (genSkipc): changed to positive logic
5549         * (genSkipCond): removed as no longer needed
5550         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
5551           backport from PIC16
5552         * (genLeftShift): check operands are in different registers
5553         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
5554           INCF does not update CARRY...
5555         * src/pic/main.c: fixed _linkCmd
5556         * src/pic/pcode.c (unlinkpCode): added inactive code
5557         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
5558           alive (do not assign result and operand overlapping registers)
5559
5560 2005-07-22 Raphael Neider <rneider AT web.de>
5561
5562         * src/pic/device.c (dump_sfr): replaced register declaration with
5563           call to emitSymbolToFile() to avoid duplicate symbols
5564         * (assignRelocatableRegisters): do not declare external symbols
5565         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
5566           right (take size of type, not etype)
5567         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
5568         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
5569         * (packRegsForAccUse): disabled assignment of WREG as
5570           the result reg to prevent occurence of just fixed #1235003,
5571           fixes #1242954
5572         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
5573           symbols (avoids duplicate symbols in .asm file)
5574         * (pic14emitRegularMap): use emitSymbolToFile()
5575         * src/pic/gen.c (aopOp): fixed spillLocation handling
5576         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
5577         * (genDataPointerSet): removed unneccessary variables/output
5578
5579 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
5580
5581         * as/mcs51/lkarea.c: enlarged codemap for banked memory
5582         * device/lib/mcs51/crtbank.asm: added # to 0x0F
5583
5584 2005-07-21 Raphael Neider <rneider AT web.de>
5585
5586         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
5587           architecture cannot handle them efficiently, fixes bug #1235003
5588         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
5589           check for empty sets before using them (fixes bug #1232190)
5590
5591 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
5592
5593         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
5594           (lnksect2): generate warnings for memory overlap
5595         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
5596           constseg to set the name of these segments so you can instruct the linker
5597           to place them in banks
5598         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
5599         * src/SDCCglobl.h: added MODEL_HUGE to enum,
5600           added code_seg and const_seg to options
5601         * src/SDCCglue.c (emitMaps): use options.const_seg,
5602           (createInterruptVect): put interrupt vectors in segment HOME,
5603           (glue): put HOME before static segment and put the main glue in HOME,
5604           (glue): use options.code_seg
5605         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
5606         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
5607           these segments so you can instruct the linker to place them in banks
5608           (linkEdit): use code_loc for HOME segment which should be the first
5609           segment in code memory now
5610         * src/SDCCmem.c: fixed more stuff like bug 1238386
5611         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
5612           (changePointer): don't change function pointers to code pointers for
5613           banked functions,
5614           (compareType): added exceptional check for banked function pointers
5615         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
5616         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
5617           after static in code memory
5618         * src/mcs51/gen.c: added aopLiteralLong prototype,
5619           (aopForSym): use getSize for functions,
5620           (genCall): generate banked calls over one trampoline __sdcc_banked_call
5621           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
5622           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
5623           the segment,
5624           (genPcall): use call for literal function pointers and generate banked
5625           calls over the one trampoline so there's only one place for the user to
5626           modify according to his/hers hardware,
5627           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
5628           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
5629         * src/mcs51/main.c: added keyword banked,
5630           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
5631         * support/Util/SDCCerr.c,
5632         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
5633           needed for passing the bank and address to the trampoline
5634         * device/lib/mcs51/crtbank.asm: added for bankswitching
5635         * device/lib/mcs51/Makefile: added crtbank
5636
5637 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5638
5639         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
5640           for fields at offset 0 of a struct or union as reported
5641           on 2005-07-07 in the developer mailing list.
5642
5643 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
5644
5645         * src/SDCCmem.c: fixed bug 1238386
5646
5647 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5648
5649         * src/mcs51/peeph.def: added labelrefcounting for peepholes
5650           (patch #1144962), added peephole 300, enabled 259.x
5651         * doc/sdccman.lyx: removed screenshot and provided link instead
5652
5653 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5654
5655         * doc/sdccman.lyx: added section about debugging with ddd
5656         * doc/figures/ddd_example.eps: screenshot of debugging session
5657
5658 2005-07-04 Raphael Neider <rneider AT web.de>
5659
5660         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
5661           like CODE pointers, fixes #1115683
5662         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
5663           call, fixes bugs #1232211, #1228110,
5664           fixed wrong casts to pCodeFlow from pCodeInstructions
5665
5666 2005-07-04 Raphael Neider <rneider AT web.de>
5667
5668         * src/pic/gen.c (popGet): changed assert to allow for
5669           bit operands
5670         * (popGetAddr): changed signature to provide
5671           an additional index, patched all call sites
5672         * (genCmpEq): handle literal-like operands correctly
5673         * (genAddrOf): added sanity checks on __code/__data pointers
5674         * (genAssign): added handling of symbols from __code section
5675         * (gencjne): do not generate code for comparisons whose result
5676           is neither stored nor used, fixes bug #1171114
5677         * (AccLsh, AccRsh): operate on operand instead of WREG
5678         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
5679           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
5680           by known count
5681         * rewrote complete shift-by-literal logic, commented unused
5682           functions out
5683         * (genConstPointerGet): get multiple bytes (if result size > 1),
5684           fixed handling of non-immediate addresses
5685         * (genPointerGet): handle CODE pointers like CONST pointers
5686         * (genpic14Code): insert C-SRC lines as Cource-pCodes
5687         * ({aop,op}_isLitLike): NEW, single place to decide whether an
5688           operand is to be treated as a literal or not
5689         * (mov2w,genPcall,genCmpEq),
5690           src/pic/genarith.c: use aop_isLitLike() to decide between
5691           literal/register contents
5692         * (addSign): added missing offset
5693         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
5694           only emit comment in debug-mode,
5695           use {aop,op}_isLitLike throughout the file
5696         * src/pic/glue.c: fix initializers for pointers (work in progress)
5697         * src/pic/pcode.c (get_op): honor index on _const symbols
5698         * ({reset,dump}pCodeStatistics): NEW, estimate code size
5699         * (dumppBlock): added pCode size estimation
5700         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
5701           check for IS_SYMOP before OP_SYMBOL'ing
5702         * fixed indentation, compacted switch-statements
5703         * (allocReg): find free register and allocate it instead of
5704           allocating new registers all the time
5705         * (deassignLRs): prevent POINTER_GET's from being assigned the same
5706           registers as its operands (necessary only for multibyte GETs)
5707
5708 2005-07-01 Raphael Neider <rneider AT web.de>
5709
5710         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
5711           debugging .asm-output macros FENTRY + FEXIT
5712         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
5713           way... I wonder...
5714         * (emitpComment): NEW, printf to pCode
5715         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
5716           offset handling
5717         * (popGetAddr): NEW, variant of popGet to access an immediates
5718           high(er) bytes instead of the n'th byte of memory they reference,
5719           replaced popGet with popGetAddr where neccessary
5720         * (genDataPointerGet): reactivated and fixed implementation
5721         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
5722           accesses
5723         * (genDataPointerSet): fixed multibyte assignments
5724         * (genpic14Code): fixed --i-code-in-asm handling
5725         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
5726         * (genPlus): fixed index-out-of-bounds error
5727         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
5728         * src/pic/ralloc.c: added debugging output macro FENTRY2
5729         * (spillThis): fixed indentation, enbraced for-body for clarity
5730         * (rematStr): commented out as now unused
5731         * (regTypeNum): commented out special spill case (overwrites
5732           arbitrary values)
5733         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
5734
5735 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
5736
5737         * doc/sdccman.lyx: documented sfr16/sfr32,
5738           added example for using storage class with function pointers
5739         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
5740
5741 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
5742
5743         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
5744         * device/lib/_itoa.c,
5745         * device/lib/_ltoa.c: optimized codesize
5746         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
5747           but don't know how to suppress the double warning.
5748         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
5749         * support/Util/SDCCerr.c,
5750         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
5751
5752 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
5753
5754         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
5755           fixed old K&R prototypes
5756         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
5757         * device/lib/_gptrget.c,
5758         * device/lib/_gptrgetc.c,
5759         * device/lib/_gptrput.c: changed versions for new memory indicator values,
5760           also new versions for small generic pointers and banked generic pointers
5761         * src/port.h: added const_name
5762         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
5763         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
5764         * src/SDCCcse.c (findPrevIc): check all associative operators
5765         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
5766         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
5767         * src/SDCCmem.c: updated comments,
5768           set far-space to 0 for pdata, results in optimized code
5769         * src/SDCCmem.h: added macro CONST_NAME
5770         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
5771           moving the info into the highest bits, see also gptrget/gptrput
5772         * src/src.dsp: added sdcc.ico to project files
5773         * src/avr/gen.c (genCast): fixed bug 0x%d
5774         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
5775         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
5776           relation between ptr_type and DCL_TYPE,
5777           (genCast): fixed bug 0x%d
5778         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
5779           (CODE)" for const_name
5780         * src/hc08/gen.c (genCast): fixed bug 0x%d
5781         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
5782           (hc08_port): added "CONST (CODE)" for const_name
5783         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
5784           (aopForRemat, adjustArithmeticResult): disconnected direct relation
5785           between ptr_type and DCL_TYPE,
5786           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
5787           operand* and took AOP() inside function so sfr-ness can be checked,
5788           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
5789           new prototype,
5790           (genFunction, genEndFunction): optimized stack setup,
5791           (genMinus): optimized for literals with ending zeroes (in bytes),
5792           (genCast): fixed bug 0x%d
5793         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
5794           (mcs51_port): added "CONST (CODE)" for const_name
5795         * src/mcs51/peeph.def: made rule 226 more generic
5796         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
5797         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
5798         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
5799         * src/z80/main.c (z80_port): added NULL for const_name,
5800           (gbz80_port): added NULL for const_name
5801         * support/regression/tests/bug663539.c,
5802         * support/regression/tests/sfr16.c: new tests
5803
5804 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5805
5806         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
5807
5808 2005-06-24 Raphael Neider <rneider AT web.de>
5809
5810         * device/lib/pic16/libdev/pic18f[68][567]20.c:
5811           corrected typos...
5812         * device/include/pic16/signal.h: added USBIF
5813           and SIG_USB
5814
5815 2005-06-24 Raphael Neider <rneider AT web.de>
5816
5817         * device/lib/pic16/libdev/pic18f2455.c,
5818           device/include/pic16/pic18f2455.h: NEW
5819         * device/include/pic16/pic18fregs.h,
5820           device/lib/pic16/pics.all,
5821           src/pic16/device.c: added 18f2455
5822         * device/lib/pic16/libdev/pic18f[68][567]20.c,
5823           device/include/pic16/{pic18f[68][567].h,usart.h}:
5824           replaced MULTIPLE_USARTS define with more relaible
5825           compatibility sfrs (for USART access)
5826
5827 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
5828
5829         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
5830           and the output asm file line is printed on two lines.
5831
5832 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5833
5834         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
5835           BGT, BLE, BHI, and BLS instructions
5836         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
5837           genCmpEq): removed
5838         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
5839           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
5840           fixes bug #1216342
5841         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
5842
5843 2005-06-15 Raphael Neider <rneider AT web.de>
5844
5845         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
5846         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
5847         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
5848           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
5849           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
5850
5851 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5852
5853         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
5854           Marcel Telka in bug #1215704
5855
5856 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
5857
5858         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
5859           located in shared memory bank.
5860
5861 2005-05-31 Raphael Neider <rneider AT web.de>
5862
5863         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
5864           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
5865           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
5866
5867 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
5868
5869         * device/lib/_strncpy.c: fixed the fix
5870
5871 2005-05-26 Raphael Neider <rneider AT web.de>
5872
5873         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
5874           initializers with \0, bug #1208187
5875         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
5876           intializers with \0, bug #1208187
5877
5878 2005-05-26 Raphael Neider <rneider AT web.de>
5879
5880         * src/pic16/glue.c (pic16_printIvalChar): fixed string
5881           initializers with \0, bug #1208187
5882         * src/pic16/main.c (_process_pragma): added sanity checks
5883           for stack position and size, emit warnings when appropriate
5884
5885 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
5886
5887         * device/lib/_strncpy.c: fixed not filling with \0
5888
5889 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5890
5891         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
5892           createFunction),
5893         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
5894           compound_statement),
5895         * src/SDCCsymt.h,
5896         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
5897
5898 2005-05-24 Raphael Neider <rneider AT web.de>
5899
5900         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
5901
5902 2005-05-24 Raphael Neider <rneider AT web.de>
5903
5904         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
5905           TRISE definitions, closes bug #1162453
5906
5907 2005-05-22 Raphael Neider <rneider AT web.de>
5908
5909         * src/pic16/main.c (_process_pragma): check for missing
5910           arguments to pragmas code and udata
5911         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
5912           consistency fixes to match other headers (thanks to Jim Paris)
5913         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
5914
5915 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
5916
5917         * src/SDCCicode.c (isOperandEqual): fixed missing ;
5918
5919 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
5920
5921         * support/regression/tests/bug1198642.c: new test
5922         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
5923         * src/SDCCcse.c (findPrevIc): added comment, please have a look
5924         * support/scripts/resource.h,
5925         * support/scripts/resource.rc,
5926         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
5927         * support/scripts/sdcc.ico: added 32x32 icon
5928
5929 2005-05-18 Raphael Neider <rneider AT web.de>
5930
5931         * device/lib/pic16/libdev/pic18f*.c,
5932         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
5933           keywords to "__sfr" and "__at (X)"
5934         * device/include/pic16/pic18fregs.h: added pic18f4520
5935         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
5936           #1203088 (MPLAB compatibility)
5937
5938 2005-05-17 Raphael Neider <rneider AT web.de>
5939
5940         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
5941         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
5942         * device/lib/pic16/pics.all: added new devices
5943         * src/pic16/device.c: added support for pic18f4520
5944
5945 2005-05-16 Raphael Neider <rneider AT web.de>
5946         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
5947         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
5948         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
5949           convenience function for bit access
5950
5951 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
5952
5953         * device/lib/printf_large.c: fixed bug 1193299
5954         * support/regression/tests/bug1057979.c: added test %3.3s
5955
5956 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5957
5958         * device/include/mcs51/8051.h,
5959         * device/include/mcs51/8052.h: made parseable with lint
5960         * device/include/mcs51/lint.h: added include file for (sp)lint
5961         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
5962         * doc/cdbfileformat.lyx,
5963         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
5964
5965 2005-05-14 Raphael Neider <rneider AT web.de>
5966
5967         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
5968         * device/lib/pic16/libc/stdlib/itoa.c (new)
5969         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
5970         * device/lib/pic16/libio/Makefile: exclude subdir according to
5971           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
5972         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
5973         * src/pic16/gen.c (genFunction): prevent annoying warning
5974         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
5975           nameclashes on BeOS
5976         * support/cpp2/cppmain.c (cpp_output_string): new
5977         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
5978           fixes bug 1116802
5979
5980 2005-05-13 Borut Razem <borut.razem AT siol.net>
5981
5982         * src/SDCCmain.c (linkEdit): fixed bug 1195202
5983
5984 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5985
5986         * .version: changed to version 2.5.1; back to bleeding edge development
5987
5988 2005-05-11 Borut Razem <borut.razem AT siol.net>
5989
5990         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
5991           generate PDF version 1.3 documents
5992
5993 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5994
5995         * .version: changed to version 2.5.0
5996
5997 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5998
5999         * doc/sdccman.lyx: updated weblinks, index and smaller updates
6000
6001 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6002
6003         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
6004         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
6005         well as many smaller updates.
6006         * .version: changed to version 2.5.0-pre1
6007
6008 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6009
6010         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
6011
6012 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
6013
6014         * support/regression/tests/bug1185672.c: added
6015         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
6016           bug 1185672
6017         * src/mcs51/gen.c (genCall): added comments, made it look safer
6018         * src/mcs51/gen.c (genEndFunction): simplified
6019
6020 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
6021
6022         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
6023
6024 2005-04-14 Borut Razem <borut.razem AT siol.net>
6025
6026         * fixed bug 1045046 - SIGSEGV with really simple code?:
6027           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
6028           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
6029
6030 2005-04-14 Borut Razem <borut.razem AT siol.net>
6031
6032         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
6033           src/pic16/device.h: temporarily disabled experimental #inline pragma
6034           for 2.5.0 release
6035
6036 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
6037
6038         * device/include/z80/stdio.h,
6039         * device/include/z80/string.h: removed these highly incomplete files so
6040           SDCC can use the default ones in device/include/
6041
6042 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6043
6044         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
6045         gcc warning.
6046         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
6047         fix sdcpp warnings.
6048
6049 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
6050
6051         * device/include/malloc.h: removed redundant __reentrant prototypes
6052         * device/lib/_mullong.c: added working xstack variant in asm (C version
6053           doesn't pass regression tests)
6054         * device/lib/bpx.c: used __data and made bpx char for mcs51
6055         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
6056           (createFunction): fixed bug with xstackPtr
6057         * src/SDCCcse.c: corrected comments
6058         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
6059           (killDeadCode, eBBlockFromiCode): removed unused code
6060         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
6061           corrected comments
6062         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
6063           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
6064           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
6065           (genModOneByte): fixed warning in MSVC
6066         * src/mcs51/main.c (): added comments
6067         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
6068
6069 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
6070
6071         * src/SDCCmain.c (linkEdit): oops, changed one line too many
6072
6073 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
6074
6075         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
6076
6077 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
6078
6079         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
6080         characters arrays of larger size than the declared one.
6081
6082 2005-04-10 Borut Razem <borut.razem AT siol.net>
6083
6084         * src/pic/gen.c (genInline),
6085           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
6086           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
6087           (findNextInstruction), (findPrevInstruction),
6088           (findInstructionUsingLabel),
6089           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
6090         * src/pic/pcode.c (findLabel): added missing '\n'
6091         * src/src.dsp: added SDCCdwarf2.c to the project
6092
6093 2005-04-09 Borut Razem <borut.razem AT siol.net>
6094
6095         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
6096
6097 2005-04-08 Raphael Neider <rneider AT web.de>
6098
6099         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
6100           into the chain after a given one) and mergeDefmapSymbols (combine
6101           defmap entries for each symbol per pcode)
6102         * (createDefmap): have defmap entries merged in the end
6103         * (defmapReplaceSymRef): split defmap entries covering two accesses to
6104           a symbol before replacing one access type's symbol, merge symbols in
6105           the end (replacement symbol might already have an entry)
6106         * (assignValnums): keep reference to written WREG intact
6107
6108 2005-04-08 Raphael Neider <rneider AT web.de>
6109
6110         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
6111           Alpha)
6112
6113 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
6114
6115         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
6116         bytes
6117
6118 2005-04-07 Raphael Neider <rneider AT web.de>
6119
6120         * device/include/pic16/usart.h: added compatibility defines for
6121           devices with more than one USART
6122         * device/include/pic16/pic18f[68][567]20.h: activated above defines
6123
6124 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6125
6126         * device/lib/Makefile.in: updated for port specific include
6127
6128 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6129
6130         * support/regression/ports/mcs51/spec.mk: added mcs51 include
6131
6132 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6133
6134         * device/include/8051.h,
6135         * device/include/8052.h,
6136         * device/include/at89S8252.h,
6137         * device/include/at89c55.h,
6138         * device/include/at89x051.h,
6139         * device/include/at89x51.h,
6140         * device/include/at89x52.h,
6141         * device/include/mcs51reg.h,
6142         * device/include/reg51.h,
6143         * device/include/reg764.h,
6144         * device/include/regc515c.h,
6145         * device/include/sab80515.h: (re)moved these 12 files
6146         * device/include/mcs51/8051.h,
6147         * device/include/mcs51/8052.h,
6148         * device/include/mcs51/at89S8252.h,
6149         * device/include/mcs51/at89c55.h,
6150         * device/include/mcs51/at89x051.h,
6151         * device/include/mcs51/at89x51.h,
6152         * device/include/mcs51/at89x52.h,
6153         * device/include/mcs51/mcs51reg.h,
6154         * device/include/mcs51/reg51.h,
6155         * device/include/mcs51/reg764.h,
6156         * device/include/mcs51/regc515c.h,
6157         * device/include/mcs51/sab80515.h: and added them here
6158
6159 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6160
6161         * device/include/stdarg.h: changed SDCC specific keywords to double
6162           underlined form.
6163         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
6164           mcs51 and ds390.
6165         * device/include/hc08/mc68hc908gp32.h,
6166         * device/include/hc08/mc68hc908jb8.h,
6167         * device/include/hc08/mc68hc908jkjl.h,
6168         * device/include/hc08/mc68hc908qy.h: fixed comments
6169         * device/include/mcs51/README: updated
6170         * device/include/mcs51/c8051f120.h: added PINRSF
6171         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
6172         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
6173           amidst code. Also inline is not supported.
6174
6175 2005-04-06 Raphael Neider <rneider AT web.de>
6176
6177         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
6178         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
6179           callers stack/frame pointers
6180
6181 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
6182
6183         * device/include/pic16/usart.h: added, missing in previous commit,
6184         * device/include/pic16/adc.h: fixed typo,
6185         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
6186         commit,
6187         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
6188         <p18fxxx.inc>
6189         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
6190         uninitialized because a bug appears with gplink
6191         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
6192         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
6193         complains for unrecognised option
6194
6195 2005-04-05 Raphael Neider <rneider AT web.de>
6196
6197         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
6198           structs as well (using memcpy)
6199         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
6200           on ISRs (GOTO has no label)
6201         * src/pic16/device.h: added OF_OPTIMIZE_DF
6202         * src/pic16/main.c: added compiler switch --optimize-df to enable the
6203           new data flow analysis/optimization
6204         * src/pic16/pcode.c: added (prototypes for and implementation of)
6205           dataflow analysis functions, fixed pCodeInstructions' inCond and
6206           outCond values, made RCALL a branch instruction
6207         * (pic16_unlinkpCode): keep C line if possible
6208         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
6209           C line moved if possible
6210         * (pic16_getRegFrompCodeOp): NEW, improved version of...
6211         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
6212           to use new pic16_getRegFrompCodeOp (works for more SFRs)
6213         * (pic16_BuildFlow): fixed skip instructions with label (did not start
6214           new flow)
6215         * (pic16_getJumptabpCode): NEW, needed in...
6216         * (LinkFlow): fixed handling of jumptables, calls and conditional
6217           branches
6218         * (pic16_InsertCommentAfter): NEW
6219         * (pic16_pCodeReplace): made verbose and flow preserving
6220         * (AnalyzeFlow): added call to data flow analysis
6221         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
6222         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
6223         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
6224
6225 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6226
6227         * src/SDCCast.c (decorateType): fixed bug #1105626
6228
6229 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
6230
6231         * device/include/asm/pic16/features.h,
6232         * pic18f*.h headers,
6233         * device/include/pic16/adc.h,
6234         * device/include/pic16/delay.h,
6235         * device/include/pic16/i2c.h,
6236         * device/include/pic16/malloc.h,
6237         * device/include/pic16/stdio.h,
6238         * device/include/pic16/stdlib.h,
6239         * device/include/pic16/string.h,
6240         * device/lib/pic16/libc/stdio/printf_tiny.c,
6241         * device/lib/pic16/libc/stdio/printf_small.c,
6242         * device/lib/pic16/libc/stdio/strmgpsim.c,
6243         * device/lib/pic16/libc/stdio/strmmssp.c,
6244         * device/lib/pic16/libc/stdio/strmusart.c,
6245         * device/lib/pic16/libc/stdio/vfprintf.c,
6246         * device/lib/pic16/libc/stdlib/ltoa.c,
6247         * device/lib/pic16/libc/stdlib/putchar.c,
6248         * device/lib/pic16/libc/stdlib/x_ftoa.c,
6249         * device/lib/pic16/libc/stdlib/memchrpgm.c,
6250         * device/lib/pic16/libc/stdlib/memchrram.c,
6251         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
6252         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
6253         * device/lib/pic16/libio/adc/adcbusy.c,
6254         * device/lib/pic16/libio/adc/adcread.c,
6255         * device/lib/pic16/libio/adc/adcsetch.c,
6256         * device/lib/pic16/libio/usart/ubaud.c,
6257         * device/lib/pic16/libio/usart/ubusy.c,
6258         * device/lib/pic16/libio/usart/udrdy.c,
6259         * device/lib/pic16/libio/usart/uopen.c,
6260         * device/lib/pic16/libio/usart/uputc.c,
6261         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
6262         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
6263         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
6264         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
6265         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
6266         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
6267         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
6268         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
6269         specific keywords to double underlined form,
6270         * device/lib/pic16/libc/Makefile.rules,
6271         * device/lib/pic16/libsdcc/Makefile.rules,
6272         * device/lib/pic16/libm/Makefile,
6273         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
6274         to compile with C standard set in Makefile.common
6275         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
6276         rand.c and crc.c in compilation process,
6277         * device/lib/pic16/libsdcc/int/divuint.c,
6278         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
6279         `c' from signed to unsigned,
6280         * device/lib/pic16/startup/crt0.c,
6281         * device/lib/pic16/startup/crt0i.c,
6282         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
6283         keywords to double underlined form, bug fixes in _do_cinit function
6284         which prevented the correct initialization of the .idata segment,
6285         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
6286         core to enter a infinite loop
6287         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
6288
6289 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6290
6291         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
6292
6293 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6294
6295         * device/include/Makefile.in: add support for hc08 subdirectory
6296         * device/include/hc08/: new subdirectory
6297         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
6298         Lucas Loizaga, thanks!
6299         * device/include/hc08/mc68hc908qy.h,
6300         * device/include/hc08/mc68hc908gp32.h,
6301         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
6302         their own directory. Changed internal macro names to use the compiler
6303         reserved namespace. Changed SDCC specific keywords to double
6304         underlined form.
6305         * device/include/math.h,
6306         * device/include/malloc.h,
6307         * device/include/stdarg.h,
6308         * device/include/stdbool.h
6309         * device/include/string.h,
6310         * device/include/tinibios.h,
6311         * device/include/ds400rom.h,
6312         * device/include/8051.h,
6313         * device/include/8052.h,
6314         * device/include/80c51xa.h,
6315         * device/include/at89c55.h,
6316         * device/include/at89S8252.h,
6317         * device/include/at89x51.h,
6318         * device/include/at89x52.h,
6319         * device/include/ds80c390.h,
6320         * device/include/reg764.h,
6321         * device/include/regc515c.h,
6322         * device/include/sab80515.h,
6323         * device/include/mcs51/c8051f000.h,
6324         * device/include/mcs51/c8051f018.h,
6325         * device/include/mcs51/c8051f020.h,
6326         * device/include/mcs51/c8051f040.h,
6327         * device/include/mcs51/c8051f060.h,
6328         * device/include/mcs51/c8051f120.h,
6329         * device/include/mcs51/c8051f300.h,
6330         * device/include/mcs51/c8051f310.h,
6331         * device/include/mcs51/c8051f320.h,
6332         * device/include/mcs51/c8051f330.h,
6333         * device/include/mcs51/c8051f350.h,
6334         * device/include/z180.h: Changed SDCC specific keywords to double
6335         underlined form.
6336
6337 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
6338
6339         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
6340         18F4455,
6341         * (pic16_assignConfigWordValue): disable testing of configuration
6342         register value with config mask,
6343         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
6344         function with port->fun_prefix,
6345         * (genFunction): when generating a naked interrupt function never
6346         create an absolute segment placed in interrupt vector address, place
6347         the actual interrupt function at IVA instead, when an interrupt
6348         function is generated with unspecified interrupt then do not create
6349         the absolute section,
6350         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
6351         code for generating a call to generic pointer get/put function with
6352         a call to function pic16_callGenericPointer(),
6353         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
6354         the call to the generic pointer get/put functions with prefixing the
6355         function name with port->fun_prefix,
6356         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
6357         * src/pic16/main.c (_process_pragma): prefix function with
6358         port->fun_prefix,
6359         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
6360         calling assembler, old 18Fxxxx macro is deprecated,
6361         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
6362         PC_ASMDIR in while condition,
6363         * (findInstruction): add PC_ASMDIR in while condition,
6364         * (buildCallTree): prefix main with port->fun_prefix,
6365         * (pic16_pCode2str): fixed bug that didn't emit the memory access
6366         identifier for variable with banked access in instructions BTFSS,
6367         BTFSC, BCF, BSF, BTG
6368         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
6369         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
6370         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
6371         perform optimization when enviroment variable NO_REG_OPT is set,
6372         * (insideLRBlock): NEW, return 1 if register is inside an
6373         INF_LOCALREGS block,
6374         * (RemoveRegFromLRBlock): remove a register that is completely
6375         eliminated by register optimization, but it is still left in local
6376         register store/restore in/from stack block,
6377         * (Remove2pcodes): after removing register, check to see if it
6378         should be removed from local register store/restore in/from stack
6379         block,
6380         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
6381         DUMMY_READ_VOLATILE,
6382
6383         * device/include/pic16/adc.h: minor prototype modifications and
6384         update,
6385         * device/include/pic16/malloc.h: added GPL notice various
6386         modifications,
6387         * device/include/pic16/stdint.h: NEW, standard header for ints
6388         * device/include/pic16/delay.h: NEW, header for delay functions,
6389         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
6390         delay1mtcy,
6391         * device/include/pic16/signal.h: NEW, header providing helper macros
6392         for implementing signal handlers,
6393         * device/include/pic16/stdio.h: added prototypes for functions,
6394         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
6395         prototypes for stdin and stdout, added macro PUTCHAR to
6396         automatically implement putchar function prototype,
6397         * device/include/pic16/usart.h: modified and updated USART library,
6398         * device/lib/pic16/libio/adc/,
6399         * device/lib/pic16/libio/i2c: some modifications to improve library
6400         performance,
6401         * device/lib/pic16/libc/stdio/: modifications for the new printf*
6402         family of functions,
6403         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
6404         family of functions and other sources,
6405         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
6406         of the PIC18Fxx[28] devices,
6407         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
6408         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
6409         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
6410         _do_cinit function, because the previous failed when local variables
6411         where not placed in the same memory bank,
6412         * device/lib/pic16/libsdcc/char/: various modifications to improve
6413         library performance,
6414         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
6415         information on the new functions of the c library and more...
6416
6417 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6418
6419         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
6420
6421 2005-03-26 Raphael Neider <rneider AT web.de>
6422
6423         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
6424           if condition == CARRY)
6425         * (genCmp): adapted to new genSkipc semantics
6426         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
6427           on rIfx (genCmp was broken)
6428
6429 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6430
6431         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
6432         * src/z80/main.c (_keywords[]),
6433         * src/SDCCglobal.h (struct options),
6434         * src/SDCC.y,
6435         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
6436         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
6437         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
6438         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
6439         always available in leading double underscore form. The C99 support is
6440         mostly missing, but it's a start.
6441         * support/regression/tests/bug-227710.c: fixed nonconforming use of
6442         reserved identifier "__data".
6443
6444 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
6445
6446         * src/mcs51/peeph.def: fixed bug 1170013
6447
6448 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
6449
6450         * device/include/mcs51reg.h: fixed bug 842007
6451
6452 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6453
6454         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
6455         last time.
6456
6457 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6458
6459         * src/port.h (struct PORT),
6460         * src/avr/ralloc.c (avr_assignRegisters),
6461         * src/avr/main.c,
6462         * src/ds390/ralloc.c (ds390_assignRegisters),
6463         * src/ds390/main.c,
6464         * src/hc08/ralloc.c (hc08_assignRegisters),
6465         * src/hc08/main.c,
6466         * src/mcs51/ralloc.c (mcs51_assignRegisters),
6467         * src/mcs51/main.c,
6468         * src/pic/ralloc.c (pic14_assignRegisters),
6469         * src/pic/main.c,
6470         * src/pic16/ralloc.c (pic16_assignRegisters),
6471         * src/pic16/main.c,
6472         * src/xa51/ralloc.c (xa51_assignRegisters),
6473         * src/xa51/main.c,
6474         * src/z80/ralloc.c (z80_assignRegisters),
6475         * src/z80/ralloc.h,
6476         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
6477         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
6478         * src/SDCCcse.h,
6479         * src/SDCCdflow.c (computeDataFlow),
6480         * src/SDCCdflow.h,
6481         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
6482         * src/SDCCloop.h,
6483         * src/SDCCcflow.c (*),
6484         * src/SDCCcflow.h,
6485         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
6486         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
6487         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
6488         immedDom() returning wrong block; probably fixes bug #1160833)
6489
6490 2005-03-20 Borut Razem <borut.razem AT siol.net>
6491
6492         * support/scripts/inc2h.pl: WIN32 port
6493
6494 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
6495
6496         * device/lib/makefile.in: added abs.c and labs.c
6497
6498 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
6499
6500         * device/include/stdint.h: added
6501         * device/lib/abs.c: added
6502         * device/lib/labs.c: added
6503         * device/include/stdlib.h: added abs() and labs() prototypes
6504         * device/lib/libsdcc.lib: added abs and labs
6505         * device/include/float.h,
6506         * device/lib/_fsmul.c,
6507         * device/lib/printf_fast.c,
6508         * device/lib/printf_tiny.c: updated comments
6509
6510 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6511
6512         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
6513         bug #1164313
6514
6515 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6516
6517         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
6518         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
6519
6520 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
6521
6522         * device/lib/printf_large.c: removed inline assembly for portability and
6523           readability. Use printf_fast if speed or size are more important.
6524         * src/pic16/gen.c: removed conditions around use of DEBUGpc
6525         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
6526
6527 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
6528
6529         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
6530         prevent compiler warning
6531
6532 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6533
6534         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
6535         moved to level 0 and declared as static. Also they are explicit
6536         placed in access bank. This was necessery because some times they
6537         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
6538         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
6539         optimizations. Currently only compare to unsigned char is implemented,
6540         * src/pic16/gen.c: added fReturnIdx array,
6541         * (struct resolvedIfx) is moved to gen.h and made public,
6542         * (struct _G): added sregsAlloc and sregsAllocSet fields,
6543         * (aopForSym): added an optimization to directly store in stack of
6544         the operand of a SEND iCode,
6545         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
6546         but as registers instead (AOP_REG) using the fReturnIdx array,
6547         * (pic16_freeAsmop): remove the freed register from the
6548         _G.sregsAlloc field,
6549         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
6550         a compare of 'WREG',
6551         * (pic16_popGetTempRegCond): changed function prototype, now
6552         function takes also a bitVector argument v which holds the current
6553         set of registers that are allocated for stack access by aopForSym,
6554         registers allocated in aopForSym for accessing stack symbols are not
6555         any more part of the functions usedRegs field,
6556         * (genCall): some times aopOp is called for a stack variable to be
6557         send, aopForSym might perform the push, if this is true make sure
6558         that genCall doesn't push the variable twice by testing _G.resDirect,
6559         * (genFunction): changed testing for unspecified interrupt number
6560         from 256 to INTNO_UNSPEC,
6561         * modified selection scheme of frame pointer generation. Previously
6562         if function did use local registers a frame pointer was generated,
6563         now a frame pointer is generated only if function has arguments
6564         (that need PLUSW2 register access), or has stack arguments, or the
6565         compiler is not instructed to omit the frame pointer,
6566         * (genEndFunction): before restoring local registers that were saved
6567         in the function preamble, also restore the registers that *might*
6568         have been allocated for stack access,
6569         * (genRet): removed some old comments,
6570         * (genCmp, the active (RN's) version): added a call to the
6571         pic16_genCmp_special function to perform the compare with a more
6572         robust and optimized way,
6573         * (genInline): a feature has been added in inline code generation,
6574         which allows a wildcard variable substitution when writing inline
6575         assembly. Code is incomplete and experimental therefore undocumented,
6576         * (genCast): changed order of aopOp for result and right to allow
6577         aopForSym to directly load the result if possible,
6578         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
6579         perform an optimized compare on some selected special occasions,
6580         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
6581         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
6582         generate an IVT any more,
6583         * src/pic16/main.c (pic16_optionsTable): added command line option
6584         --optimize-cmp,
6585         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
6586         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
6587         macros,
6588         * src/pic16/NOTES: Raphael Neider added in list of active developers
6589         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
6590         jumptable_end to prevent bug #,
6591         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
6592         inCond and outCond fields,
6593         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
6594         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
6595         turn off register spilling,
6596         * (packRegsForOneUse): synced with other ports' versions although it
6597         is not used currently,
6598         * (pic16_packRegisters): added an optimization while reading
6599         structure bitfields, some registers may be saved (malloc code is
6600         decreased by 80 bytes)
6601
6602 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
6603
6604         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
6605         left is a bitfield, if yes, then don't optimize assignment. Perhaps
6606         this can be optimized more?
6607
6608 2005-03-10 Raphael Neider <rneider AT web.de>
6609
6610         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
6611           genNearPointerGet): (hopefully) fixed access to bitfields via
6612           pointers (p->bitN = x; and x = p->bitN; failed)
6613
6614 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
6615
6616         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
6617
6618 2005-03-09 Raphael Neider <rneider AT web.de>
6619
6620         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
6621
6622 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
6623
6624         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
6625         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
6626           (regTypeNum): set REG_BIT type if necessary
6627         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
6628         * support/regression/tests/critical.c: check bug 1144613
6629
6630 2005-03-02 Raphael Neider <rneider AT web.de>
6631
6632         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
6633
6634 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6635
6636         * src/avr/ralloc.c (serialRegAssign),
6637         * src/ds390/ralloc.c (serialRegAssign),
6638         * src/hc08/ralloc.c (serialRegAssign),
6639         * src/mcs51/ralloc.c (serialRegAssign),
6640         * src/pic/ralloc.c (serialRegAssign),
6641         * src/pic16/ralloc.c (serialRegAssign),
6642         * src/xa51/ralloc.c (serialRegAssign),
6643         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
6644
6645 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
6646
6647         * src/SDCCast.c (decorateType): fixed bug 1124787
6648
6649 2005-02-20 Hubert Sack <sack AT digiplan.de>
6650         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6651
6652         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
6653         patch #1121755
6654
6655 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6656
6657         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
6658         to keep the correct label reference count when adding/removing references
6659         to labels. A peephole file using this is appended to patch #1144962.
6660
6661 2005-02-14 Raphael Neider <rneider AT web.de>
6662
6663         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
6664         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
6665         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
6666           retrievals of result operand's value on assignment
6667
6668 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
6669
6670         * device/include/pic16/string.h: modified prototype for memccpy()
6671         to memccpy(void *, void *, char, size_t)
6672         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
6673         check whether to omit frame pointer or not,
6674         * (genInline): convert all occurences of "\n" to LF in inline
6675         assembler blocks, this helps formatting the inline text,
6676         * (pic16_loadFSR0): modified prototype,
6677         * (genNearPointerGet, genNearPointerSet): reorganization of code,
6678         removed some 8051 legacy code,
6679         * (genPackBits): enabled handling bitfields exceeding one byte in size,
6680         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
6681         before allocating temporary registers in functions,
6682
6683 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
6684
6685         * support/regression/tests/bitvars.c: corrected the "fix"
6686
6687 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
6688
6689         * support/regression/tests/bitvars.c,
6690         * support/regression/tests/bitwise.c,
6691         * support/regression/tests/rotate.c: "fixed" problems on Alpha
6692
6693 2005-02-10 Raphael Neider <rneider AT web.de>
6694
6695         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
6696           different size for Alpha
6697         * src/pic16/gen.c (genCmpEq) : improved compare with 0
6698
6699 2005-02-09 Raphael Neider <rneider AT web.de>
6700
6701         * src/SDCC.lex(doPragma) : save and restore warning options as well
6702           (also added new stack plus clone- and copyAndFreeSDCCERRG())
6703         * have #pragma less_pedantic set the errorlevel to WARNING
6704           (fixes #1117001)
6705         * (cloneOptimize) : fixed wrong malloc's size
6706         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
6707           facilitate correct handling of #pragma (save|restore)
6708
6709 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
6710
6711         * src/mcs51/gen.c: removed non-standard C nameless struct/union
6712
6713 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
6714
6715         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
6716
6717 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
6718
6719         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
6720
6721 2005-02-02 Raphael Neider <rneider AT web.de>
6722
6723         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
6724         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
6725         * (pic16_storeForReturn): fixed to allow returning function pointers
6726         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
6727         * device/include/pic16/{stddef.h,stdbool.h}: added
6728
6729 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
6730
6731         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
6732
6733 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
6734
6735         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
6736         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
6737          appeared to be required
6738
6739 2005-01-31 Borut Razem <borut.razem AT siol.net>
6740
6741         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
6742           include/mcs51 and include/z80 directories to the package
6743
6744 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6745
6746         * src/hc08/gen.c (genFunction): fixed bug #1112752
6747
6748 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6749
6750         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
6751
6752 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6753
6754         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
6755
6756 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
6757
6758         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
6759
6760 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
6761
6762         * device/include/c8051fxxx.h: removed these 6 files
6763         * device/include/mcs51/c8051fxxx.h: added these 11 new files
6764
6765 2005-01-26 Raphael Neider <rneider AT web.de>
6766
6767         * src/pic16/gen.c (genAssign): fixed assignment from longs
6768           in codespace (were cut to three bytes)
6769         * (genDummyRead): implemented (except for CODESPACE...),
6770           fixed bug #1108575
6771         * src/pic16/glue.c (emitStatistics): beautified
6772         * device/lib/pic16/libm/Makefile: added include path
6773
6774 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6775
6776         * src/z80/gen.c (aopPut): fixed bug #1103902
6777
6778 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6779
6780         * device/lib/expf.c: fixed bug #1095792
6781
6782 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
6783
6784         * device/lib/pic16/libm: added Math library sources
6785
6786 2005-01-24 Raphael Neider <rneider AT web.de>
6787
6788         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
6789           to enable upcast to pCodeOpReg2 (there is no type tag to
6790           differenciate the two and pic16_popGet2p cast into PCOR2)
6791         * src/pic16/main.c (_process_pragma): fixed another malloc bug
6792           (sizeof(sectNames) changed to sizeof(sectName))
6793           Both patches fix segfaults under MinGW.
6794
6795 2005-01-23 Raphael Neider <rneider AT web.de>
6796
6797         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
6798           Safe_[mc]?alloc()'ed variables
6799         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
6800           of (byte sized) temporaries (assign them to WREG for now)
6801         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
6802           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
6803           this might fix SIGSEGVs on MinGW...
6804         * src/SDCCopt.c (killDeadCode): restored original behaviour
6805           (volatile operands might get thrown away though)
6806
6807 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
6808
6809         * src/pic16/gen.c: fixed bug #1106975,
6810         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
6811         pointer update, INTCON is saved, global interrupts are disabled and
6812         restored after updateing TOS.
6813         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
6814         * added function attribute 'shadowregs' to take advantage of shadow
6815         registers,
6816         * added function attribute 'wparam' as an alternative to the wparam
6817         pragma,
6818         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
6819         user declares a non-ISR function as 'shadowregs',
6820         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
6821
6822 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
6823
6824         * .version: bumped version number to 2.4.8
6825         * device/lib/pic16/pics.all: list of PIC18F devices supported by
6826         pic16 port,
6827         * device/lib/pic16/libio/i2c/: I2C module support library,
6828         * device/include/pic16/i2c.h: I2C support library header,
6829         * device/lib/pic16/libc/stdio/: standard IO support sources,
6830         * (printf_small.c): printf_small() source, supports float print,
6831         * (printf_tiny.c): printf_tiny() source, does not support floats,
6832         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
6833         enable global optimizations for entire library source, other
6834         Makefiles in the source tree are also modified to reflect this,
6835         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
6836         function,
6837         * doc/sdccman.lyx: updated to reflect new changes,
6838         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
6839         sym->onStack if-case,
6840         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
6841         sbit, idata, _idata, xdata, _xdata,
6842         * added pragma library, to link an external library, (see doc),
6843         * removed command line options, --pomit-config-words, --pomit-ivt,
6844         --pleave-reset-vector,
6845         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
6846         when calling assembler to reflect memory model used, also define
6847         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
6848         reflect stack model used,
6849         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
6850         on stack return NULL,
6851
6852 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
6853
6854         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
6855           of the operands is volatile. Fixes #1020220
6856
6857 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
6858
6859         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
6860         * (OptimizeRegUsage): make sure that there is really no other flow where
6861           the first pCode is used
6862
6863 2005-01-22 Raphael Neider <rneider AT web.de>
6864
6865         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
6866           to fix #1106967 (pCode->seq are not set up correctly)
6867
6868 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6869
6870         * src/SDCCglue.c (glue): make sure code area is declared before the
6871         static initialization area.
6872
6873 2005-01-21 Raphael Neider <rneider AT web.de>
6874
6875         * device/lib/Makefile.in: fixed test for pic16 install dir
6876         * device/lib/pic16/*/Makefile*: modified compile flags to enable
6877           optimizations
6878         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
6879           added --optimize-goto compiler switch and pragma wparam documentation
6880         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
6881         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
6882           and PRODH closing bug #1071770 (peephole optimizer)
6883
6884 2005-01-19 Raphael Neider <rneider AT web.de>
6885
6886         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
6887           cmdLine buffers (used when calling sdcpp...) are large enough
6888           (MAX_PATH=256 truncates arguments leading to system halts when
6889           used in MinGW...)
6890         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
6891         * (genUminus): rewritten to for efficiency
6892         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
6893           used uninitialized in some cases)
6894         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
6895           copy the third byte from the int -- now assumes 0x80 (data memory)
6896         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
6897           operands (genAddLit expects the iCode's operands to swapped as
6898           well), fixed leftover bytes (crashed for short left operands)
6899         * (pic16_genMinusDec): performance improvements, removed false
6900           PIC14 emitSKPNCs
6901         * (pic16_genMinus): fixed to cope with differently sized operands
6902         * src/pic16/glue.c (pic16_glue): added new banksel optimization
6903           for --obanksel > 1
6904         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
6905         * src/pic16/graph.[ch]: implementation of directed graphs, used by
6906           new banksel optimization
6907         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
6908           analysis for temporary registers (segfaults...)
6909         * src/pic16/peeph.def: added rule
6910
6911 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
6912
6913         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
6914         which converts a float number to its ASCII representation
6915         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
6916         functions to convert the fractional and integer part of a float to ASCII,
6917         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
6918         realloc.c): added _MALLOC_SPEC to explicit place variables in data
6919         ram
6920         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
6921         _STATMEM macros,
6922         * device/include/pic16/adc.h: added GPL info,
6923         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
6924         a pCodeOp as tested operand,
6925         * (genNearPointerGet): optimized bit testing, does not use
6926         intermediate register for bit value, test directly instead with
6927         BTFSS, BTFSC, works only for single bits,
6928         * (genpic16Code): dump the name of the iCode in the asm,
6929         * src/pic16/ralloc.c (decodeOp): removed static declaration and
6930         renamed to pic16_decodeOp,
6931         * (serialRegAssign): do not allocate a temporary register for iCode
6932         sequences that test a single bit for 1/0
6933
6934 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
6935
6936         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
6937         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
6938         access stack and frame pointers. They are initially assigned to
6939         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
6940         accessing SFRs. Updated all occurences of modification of stack or
6941         frame pointer in gen.c and pcode.c,
6942         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
6943         assigning of a literal value to pointers,
6944         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
6945         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
6946         selected
6947
6948 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
6949
6950         * doc/sdccman.lyx: update documentation about stack pragma, added
6951         some info for stack memory models
6952
6953 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6954
6955         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
6956
6957 2005-01-08 Raphael Neider <rneider AT web.de>
6958
6959         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
6960           udata sections to fix bug #1097823
6961
6962 2005-01-05 Raphael Neider <rneider AT web.de>
6963
6964         * src/pic16/gen.c (genGenericShift): added handling of differently
6965           sized left operand and result
6966
6967 2005-01-04 Raphael Neider <rneider AT web.de>
6968
6969         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
6970         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
6971           to hold the condition bit)
6972         * added new version of genCmp (old code available via #define)
6973         * added new version of genShiftLeft/genShiftRight in a generic
6974           way, now supports shifting by negative values
6975         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
6976           shiftCount (expected by genGenericShift)
6977         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
6978         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
6979           dump
6980         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
6981           is an invalid literal too...)
6982
6983 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
6984
6985         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
6986         from Raphael Neider,
6987         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
6988         for 8-bit literals. This fixes some literal operands which are sign
6989         extended to 16-bits ints when instruction needs only 8-bits.
6990
6991 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
6992
6993         * device/lib/logf.c: added mcs51 assembly version
6994         * device/lib/expf.c: added mcs51 assembly version
6995         * device/lib/_logexpf.c: new shared asm code for expf and logf
6996         * device/include/math.h: add defines for assembly math library
6997         * device/lib/Makefile.in: build new _logexpf.c
6998         * device/lib/libfloat.lib: use new _logexpf.c
6999
7000 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
7001
7002         * src/pic/device.c
7003         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
7004           device types which have less than 0x7f registers.
7005
7006 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
7007
7008         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
7009
7010 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
7011
7012         * device/lib/printf_fast.c: only build on supported arch.
7013         * device/lib/printf_tiny.c: only build on supported arch.
7014         * device/lib/printf_fast_f.c: only build if asm float lib
7015         * device/lib/_fsget1arg.c: only build if asm float lib
7016         * device/lib/_fsget2args.c: only build if asm float lib
7017         * device/lib/_fsnormalize.c: only build if asm float lib
7018         * device/lib/_fsreturnval.c: only build if asm float lib
7019         * device/lib/_fsrshift.c: only build if asm float lib
7020         * device/lib/_fsswapargs.c: only build if asm float lib
7021         * device/include/stdio.h: don't provide print_fast,
7022           print_fast_f, print_tiny prototypes if --xstack used
7023
7024 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
7025
7026         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
7027         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
7028           to the SOURCES
7029
7030 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
7031
7032         * device/lib/printf_fast_f.c: same as printf_fast, but
7033           with floating point enabled
7034         * device/lib/printf_fast.c: minor tweaks
7035         * device/include/stdio.h: add printf_fast_f
7036
7037 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
7038
7039         * src/SDCCmain.c: make --float-reent default for mcs51
7040         * device/lib/_fsadd.c: added mcs51 assembly version
7041         * device/lib/_fssub.c: added mcs51 assembly version
7042         * device/lib/_fsmul.c: added mcs51 assembly version
7043         * device/lib/_fsdiv.c: added mcs51 assembly version
7044         * device/lib/_fseq.c: added mcs51 assembly version
7045         * device/lib/_fsneq.c: added mcs51 assembly version
7046         * device/lib/_fsgt.c: added mcs51 assembly version
7047         * device/lib/_fslt.c: added mcs51 assembly version
7048         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
7049         * device/lib/Makefile.in: add _fscmp to build
7050         * device/lib/libfloat.lib: add _fscmp to build
7051
7052 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
7053
7054         * device/lib/_fs2slong.c: added mcs51 assembly version
7055         * device/lib/_fs2sint.c: added mcs51 assembly version
7056         * device/lib/_fs2schar.c: added mcs51 assembly version
7057         * device/lib/_fs2ulong.c: added mcs51 assembly version
7058         * device/lib/_fs2uint.c: added mcs51 assembly version
7059         * device/lib/_fs2uchar.c: added mcs51 assembly version
7060         * device/lib/_slong2fs.c: added mcs51 assembly version
7061         * device/lib/_sint2fs.c: added mcs51 assembly version
7062         * device/lib/_schar2fs.c: added mcs51 assembly version
7063         * device/lib/_ulong2fs.c: added mcs51 assembly version
7064         * device/lib/_uint2fs.c: added mcs51 assembly version
7065         * device/lib/_uchar2fs.c: added mcs51 assembly version
7066         * device/include/float.h: added #define to select asm vs c
7067
7068 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
7069
7070         * device/lib/printf_fast.c: improvements to float output
7071         * device/include/float.h: add defines for assembly float library
7072         * device/lib/_fsget1arg.c: receive 1 float arg
7073         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
7074         * device/lib/_fsnormalize.c: normalize a float
7075         * device/lib/_fsreturnval.c: return float, various helper routines
7076         * device/lib/_fsrshift.c: right shift a float's mantissa
7077         * device/lib/_fsswapargs.c: swap 2 floats
7078         * device/lib/Makefile.in: build these 6 new files for mcs51
7079         * device/lib/libfloat.lib: add these 6 files to the library
7080
7081 2004-12-26 Borut Razem <borut.razem AT siol.net>
7082
7083         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
7084           built by gcc 3.4.2
7085
7086 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
7087
7088         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
7089           and fully reentrant and register bank neutral.
7090         * device/lib/printf_fast.c: added float (not enabled by default),
7091           added compact/slower integer (also not enabled by default),
7092           improved size/speed of fast integer code, other minor changes
7093         * device/include/stdio.h, device/lib/Makefile.in,
7094           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
7095
7096 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
7097
7098         * src/pic16/pcode.c: declaring variables other than at the start of a
7099           block is not supported in C by VC6.
7100
7101 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
7102
7103         * applied a previous patch from Raphael Neider that wasn't included
7104         in the previous commits, which fixes infinite loops within jumptable
7105         improvements,
7106         * made some fixes that previous patches introduced
7107
7108 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
7109
7110         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
7111         that fixes an issue with AOP_PCODE asmop's offset,
7112         * (pic16_popCopyReg): update instance field too,
7113         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
7114         function of pic port,
7115         * (genCmp, genAnd, genAssign),
7116         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
7117
7118 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
7119
7120         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
7121         variables initial values to idata section,
7122         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
7123         variables in some functions. This utilizes parmBytes field of iCode
7124         structure to hold the offset of the variable in stack. (might be
7125         able to use the stack field too?)
7126         * applied patch from Raphael Neider # ### , # ###
7127         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
7128         variable initial values in idata section,
7129         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
7130         for static variables with initial value
7131         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
7132         applied fix in while loop from Raphael Neider.
7133
7134 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
7135
7136         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
7137         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
7138         * src/ds390/ralloc.c (serialRegAssign): spill bits
7139         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
7140         * support/Util/SDCCerr.c,
7141         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
7142         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
7143         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
7144
7145 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
7146
7147         * device/include/sdcc-lib.h: inserted LGPL, added includes
7148           asm/ds390/features.h and asm/mcs51/features.h
7149         * device/include/asm/default/features.h,
7150         * device/include/asm/gbz80/features.h,
7151         * device/include/asm/z80/features.h: added empty _AUTOMEM
7152           and _STATMEM
7153         * device/include/asm/ds390/features.h,
7154         * device/include/asm/mcs51/features.h: added files with defines for
7155           _AUTOMEM and _STATMEM indicating automatic and static storage class
7156         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
7157         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
7158         * src/SDCCicode.c (geniCodeCast),
7159         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
7160         * src/SDCCloop.c (loopInduction): removed unused variable lr
7161         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
7162           to convertToFcall to include char modulo (RFE 1065037), added check
7163           if left operand is unsigned and use abs of literal value
7164         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
7165           as it doesn't work after conversion from peephole.def to peephole.rul
7166         * src/mcs51/gen.c (toBoolean): added check for size,
7167           (genModOneByte): optimized code for signed char modulo a literal
7168           power of 2 (thanks to Hubert Sack),
7169           (genRRC): removed unnecessary "clr c",
7170           (genRLC): replaced "add a,acc" with cheaper "rlc a"
7171         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
7172           jump optimization,
7173           swapped rules 256.c and 256.d,
7174           extended 256.d by using new multiple checks (thanks Erik),
7175           added rules 256.e and 256.f,
7176           updated rule 261.a and 261.b to new generated code
7177         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
7178
7179 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7180
7181         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
7182           induction related bugs, including first part of bug #1074377
7183
7184 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
7185
7186         * applied patch from bug-report #1076292,
7187         * applied patches for genAnd and Goto-optimizations for Raphael
7188         Neider,
7189         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
7190         dump a less iCode information,
7191         * src/pic16/device.h (pic16_options_t): added field debgen,
7192         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
7193         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
7194         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
7195         puclic,
7196         * (various functions): added macros FENTRY and FENTRY2 to functions,
7197         to emit function prologue,
7198         * (various functions): fixed indentation,
7199         * (genNearPointerGet): fixed loading of FSR0,
7200         * (genPackBits): applied patch from Raphael Neider to fix updating
7201         of FSR0 and touching only the modified bits,
7202         * src/pic16/genarith.c (various functions): added macros FENTRY to
7203         emit function prologue in comments,
7204         * src/pic16/pcode.h: added functions debugf2, debugf3,
7205         * src/pic16/ralloc.c: partial fix for packForPush caused
7206         segmentation fault,
7207
7208 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7209
7210         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
7211           <stsp AT users.sourceforge.net> with reversed byte order
7212         * support/regression/tests/rotate.c: added (ds390 skips some tests)
7213
7214 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7215
7216         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
7217           bug #1074377
7218         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
7219         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
7220
7221 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
7222
7223         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
7224
7225 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7226
7227         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
7228           conditions,
7229           (setFromConditionArgs): friendly operand parser for peephole rules,
7230           (operandBaseName, operandsNotRelated): new peephole condition
7231           "operandsNotRelated" -- similar to "operandsNotSame", but takes
7232           architecture specific register naming into account, handles n-way
7233           comparisons, and supports quoted literals
7234         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
7235
7236 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7237
7238         * src/mcs51/peeph.def: fixed bug #1076940
7239
7240 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
7241
7242         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
7243
7244 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7245
7246         Adding support for replacing ljmps with sjmps in jumptables
7247         generated for switch statements. For now you need to set the
7248         environment variable SDCC_SJMP_JUMPTABLE to enable this.
7249         Now 4 algorithms for mcs51 jumptable generation are used:
7250         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
7251         addresses loaded pc-relative for up to 112 cases and stack-pushing
7252         target addresses loaded with offset from dptr for up to 256 cases.
7253
7254         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
7255         * src/mcs51/main.c: adapted constants for switch table generation
7256         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
7257
7258 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
7259
7260         * device/lib/printf_large.c (_print_format): fixed bug 1073386
7261         * support/regression/tests/bug1057979.c: added test for bug 1073386
7262
7263 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
7264
7265         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
7266         compilers
7267
7268 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
7269
7270         * src/pic16/device.h,
7271         * src/pic16/genarith.c,
7272         * src/pic16/glue.c,
7273         * src/pic16/main.c,
7274         * src/pic16/pcode.c: applied patches #1068154 and #1070213
7275
7276 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
7277
7278         Large cummulative patch for pic16 port.
7279         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
7280         to call when a stack overflow occurs,
7281         * (malloc.h): added CVS Id tag,
7282         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
7283         variable,
7284         * added libc directory. The current version of LibC contains string
7285         functions, ctype functions and macros and some functions of the
7286         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
7287         be extensively tested in the future. Standard disclaimer here.
7288         Library is not automatically build yet. But one can build it by
7289         invoking 'make' inside the libc directory.
7290         * added ADC library under libio. Preliminary version yet.
7291
7292         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
7293         * src/pic16/gen.c (aopForRemat): asmop size is filled by
7294         aopForRemat() now and not by pic16_aopOp(),
7295         * (pic16_popGetTempReg): removed warning messgae when allocating
7296         temporary registers, its a buggy feature and will be removed,
7297         * (pic16_popGet): set register instance field in AOP_CRY,
7298         * (pic16_outBitC): fixed for results in size greater than 1,
7299         * (genUminusFloat): fixed for pic16, ported code from mcs51,
7300         * (pic16_storeForReturn): optimized return of 0,
7301         * (genCmp): experimental code for new genCmp which uses PIC18's
7302         special compare&skip instructions. Initial tests fail some times
7303         with variables grater than 1 byte in size, so new code is disabled,
7304         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
7305         a single bit,
7306         * (genCast): began a fix to optimize the casting of a bit to another
7307         bit, now assigning a bitfield to another bitfield will fail, sorry,
7308         * src/pic16/main.c: disabled the use of lr-support feature,
7309         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
7310         * added some function prototypes, added function _debugf prototype,
7311         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
7312         bits with offset (case PO_GPR_BIT),
7313         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
7314         command line,
7315         * (isBankInstruction): modified to return 0 for no banking instruction,
7316         and 1 for banking instruction,
7317         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
7318         caused stop processing pCodes after a inline assembly block,
7319         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
7320         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
7321         registers when it shouldn't,
7322         * src/pic16/ralloc.c (allocReg): add preliminary support for
7323         supporting a limited set of temporary registers,
7324
7325 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7326
7327         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
7328           genDataPointerSet): ensure assignments always copy in MSB to LSB
7329           order,
7330           (loadRegFromAop): recognize CLRH optimization,
7331           (genFunction): optimize RECEIVE iCodes in reentrant functions
7332
7333 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7334
7335         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
7336           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
7337           selected.
7338         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
7339         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
7340           contiguous with data
7341
7342 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7343
7344         * device/lib/_gptrget.c (_gptrget),
7345         * device/lib/_gptrgetc.c (_gptrgetc),
7346         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
7347           instead of sjmp to ret
7348         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
7349           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
7350
7351 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
7352
7353         * .version: bumped version to 2.4.7
7354         * device/lib/_gptrget.c (_gptrget): is now _naked
7355         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
7356         * device/lib/_gptrput.c (_gptrput): is now _naked
7357         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
7358           (createFunction): fixed xstack
7359         * src/SDCCglue.c (emitMaps): set allocation required for bit area
7360         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
7361           or bit either,
7362           (geniCodeCritical): store original interrupt state in an iTemp bit
7363           var unless stack-auto
7364         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
7365         * src/SDCCmain.c (setIncludePath): added include/target to search path
7366         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
7367         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
7368           prototype,
7369           (processFuncArgs): put bit vars in bit area
7370         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
7371           unsaveRBank): fixed xstack,
7372           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
7373           (genFunction, genEndFunction): fixed xstack,
7374           (genAssign): optimization don't walk backwards through mem
7375         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
7376         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
7377         * support/regression/Makefile: also make library (for stack-auto) when
7378           making "all" and added "test-mcs51-xstack-auto"
7379         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
7380         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
7381         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
7382         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
7383         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
7384           make-library by MAKE_LIBRARY
7385         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
7386           regression tests for xstack
7387         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
7388         * support/regression/tests/critical.c: test for critical on mcs51
7389
7390 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7391
7392         * support/regression/ports/ucz80/spec.mk: use include and lib files from
7393           built version of sdcc instead of installed version
7394
7395 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
7396
7397         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
7398         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
7399           vprintf.c now
7400         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
7401         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
7402           WARNING: remove device/lib/build/z80/printf.o by hand when
7403           updating from previous build!
7404         * device/lib/z80/printf.c: updated comment
7405         * support/regression/tests/bug1057979.c: test all ports now
7406         * support/regression/tests/bug1065458.c: file added
7407
7408 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7409
7410         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
7411           *_start and *_end symbols for static functions
7412
7413 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
7414
7415         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
7416           and search crt0.o in all library paths,
7417           (setIncludePath): proper handling of --nostdinc,
7418           (setLibPath): proper handling of --nostdlib
7419         * support/regression/Makefile,
7420         * support/regression/ports/ds390/spec.mk,
7421         * support/regression/ports/gbz80/spec.mk,
7422         * support/regression/ports/hc08/spec.mk,
7423         * support/regression/ports/mcs51/spec.mk,
7424         * support/regression/ports/mcs51-large/spec.mk,
7425         * support/regression/ports/mcs51-stack-auto/spec.mk,
7426         * support/regression/ports/z80/spec.mk: use include and lib files from
7427           built version of sdcc instead of installed version
7428         * doc/sdccman.lyx: fixed typo in --nostdinc
7429
7430 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
7431
7432         * src/pic/pcode.c,
7433         * src/pic/device.c,
7434         * src/pic/ralloc.c,
7435         * src/pic/gen.c : added support to generate code for struct bit fields.
7436
7437 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
7438
7439         * as/xa51/xa_version.h,
7440         * device/include/errno.h,
7441         * device/include/regc515c.h,
7442         * device/lib/_itoa.c,
7443         * device/lib/_ltoa.c,
7444         * device/lib/ser_ir_cts_rts.c,
7445         * sim/ucsim/xa.src/glob.cc,
7446         * sim/ucsim/xa.src/inst_gen.cc,
7447         * sim/ucsim/xa.src/xa_bit.cc,
7448         * sim/ucsim/xa.src/xa_sfr.cc,
7449         * sim/ucsim/z80.src/inst_dd.cc,
7450         * sim/ucsim/z80.src/inst_fdcb.cc,
7451         * support/scripts/keil2sdcc.pl,
7452         * src/pic16/pic16.dsp,
7453         * src/pic16/pic16a.dsp: corrected cvs line endings
7454         * device/lib/printf_large.c: fixed bug 1057979
7455         * src/pic16/gen.c: fixed non-C standard code
7456         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
7457         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
7458         * support/regression/ports/mcs51/support.c: reload T1 asap
7459         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
7460           pdata use and clear idata startup behaviour
7461         * support/regression/tests/bug1057979.c: added
7462
7463 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
7464
7465         * device/examples/ds390/ow390/ad26.h,
7466         * device/examples/ds390/ow390/cnt1d.h,
7467         * device/examples/ds390/ow390/crcutil.c,
7468         * device/examples/ds390/ow390/ownet.h,
7469         * device/examples/ds390/ow390/owsesu.c,
7470         * device/examples/ds390/ow390/swt12.h,
7471         * device/examples/ds390/ow390/swtoper.c,
7472         * device/examples/ds390/ow390/temp10.h,
7473         * device/examples/ds390/ow390/thermodl.c,
7474         * device/examples/ds390/tinitalk/tinitalk.dsp,
7475         * device/examples/ds390/tinitalk/tinitalk.dsw,
7476         * device/examples/mcs51/clock/hw.h,
7477         * device/examples/mcs51/simple2/go.bat,
7478         * device/examples/serialcomm/windows/serial.h,
7479         * device/examples/xa51/dummy.c,
7480         * device/examples/xa51/hello.c,
7481         * device/include/80c51xa.h,
7482         * device/include/at89x051.h: corrected cvs line endings
7483
7484 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
7485
7486         * src/pic16/main.c (options): added command line --gstack, to trace
7487         stack over/under flows,
7488         * added pragma 'wparam' to allow passing first byte of function
7489         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
7490         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
7491         call to __gstack_test function and sets up the symbol as extern,
7492         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
7493         * popaop): added call to pic16_testStackOverflow,
7494         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
7495         wparamList list,
7496         * (genCall, genPcall): now all parameters are passed via stack
7497         except in functions that are pass to wparam pragma in which WREG is
7498         used too,
7499         * (genPcall): REENTRANT flag is checked to see if variable prototype
7500         contains reentrant keyword, don't call a non-reentrant function, via
7501         a reentrant function pointer or vice versa, functions are never
7502         passed via WREG,
7503         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
7504         D.Winkler,
7505         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
7506         SIGSEGV when accessing a NULL register stucture,
7507         * (pic16_printGPointerType): modified to handle UPPER modifier for
7508         function initializers, changed prototype of function to simpler one,
7509         * (pic16_printIvalFuncPtr): check to see if function is already
7510         added in externs list,
7511         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
7512         optimized a move from W to SFR with a move to the same register
7513         later after a CALL,
7514         * device/lib/pic16/debug: NEW directory, contains debug features
7515         which are enabled when linking with libdebug.lib, currently command
7516         line option --gstack enables stack pointer tracing for over/under
7517         flow, corresponding sources are in debug/gstack
7518
7519 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
7520
7521         * doc/sdccman.lyx: updated SDCC version,
7522         * (PIC16 port): update list of command line options,
7523         * src/pic16/device.h (structure pic16_options_t): added field gstack
7524         to enable stack overflow tracing on push/pops,
7525         * src/pic16/device.c (statistics structure): added statistics
7526         structure,
7527         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
7528         pic16_dump_int_registers): increase statistics counters for each
7529         * variable which is encountered
7530         * (pic16_dump_usection): emit each .udata variable to its own udata
7531         section,
7532         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
7533         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
7534         parameters via stack, otherwise use old scheme,
7535         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
7536         assembler output file,
7537         * src/pic16/main.c: added command line options --gstack to enable
7538         push/pop tracing for stack overflow,
7539         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
7540         instructions): added size of each instruction,
7541         * (pic16_countInstruction): estimate size of instructions in
7542         the_pFile list, inline assembly blocks are not counted,
7543         * (pic16_FixRegisterBanking): trace previous register usage, when
7544         banksel optimizations is greater than 0, don't emit a redudant
7545         banksel directive,
7546
7547 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
7548
7549         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
7550         * src/pic16/ralloc.c : applied same fix for pic16.
7551         * src/pic/gen.c : tidied it up a little.
7552
7553 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7554
7555         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
7556         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
7557
7558 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7559
7560         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
7561
7562 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7563
7564         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
7565         non-reentrant function __modsint in the interrupt function (thus
7566         corrupting math operations during serial I/O)
7567         * device/lib/ser_ir.c: as above, changed buffersize
7568         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
7569         256.c,d for zeroing
7570         * doc/Makefile: added option -t for rsync
7571
7572 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7573
7574         * src/SDCCast.h (struct ast),
7575         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
7576
7577 2004-10-20 Borut Razem <borut.razem AT siol.net>
7578
7579         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
7580         package
7581
7582 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
7583
7584         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
7585         makefile targets,
7586         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
7587         support functions to replace long sequences of MOVFF's from access
7588         bank registers to stack and vice versa,
7589         * src/pic16/device.h: added new field opt_flags, where optimization
7590         flags can be set to enable certain features,
7591         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
7592         * pBlock, (genFunction, genEndFunction): surroung loop for
7593         saving/loading used registers in stack with PC_INFO pCodes,
7594         INF_LREGS. Code in between can then be optimized by pCode optimizer
7595         to support function calls,
7596         * (genDataPointerSet): fixed bug which loaded float fields in
7597         structures with corrupt data,
7598         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
7599         in a standard way debug info on stderr. Feature used for developing
7600         and debugging only,
7601         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
7602         obsolete chunks of code,
7603         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
7604         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
7605         * pic16/src/pcode.c (pic16_newpCodeInfo,
7606         * (pic16_newpCodeOpLocalRegs),
7607         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
7608         feature,
7609         * (pic16_pCodeConstString): printing of the initial value of a
7610         symbol as a comment is inhibited since parsing was already done by
7611         copyStr and output is corrupt,
7612         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
7613
7614 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7615
7616         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
7617
7618 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
7619
7620         * as/mcs51/lkarea.c: removed old K&R style,
7621           (lnksect): changed check on boundary error,
7622           (lnksect2): changed check on boundary error,
7623           (lnksect2): extend XSTK to end of page if size = 1
7624         * as/mcs51/lkmain.c: removed old K&R style,
7625           (Areas51): create l_IRAM symbol
7626         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
7627         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
7628           model-mcs51-stack-auto, added model-mcs51-xstack-auto
7629         * device/lib/_mullong.c: added version to be compiled with xstack
7630         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
7631         * device/lib/mcs51/crtxclear.asm: clear pdata as well
7632         * device/lib/mcs51/crtxstack.asm: fixed comment
7633         * src/SDCCglue.c: maxInterrupts defaults to 0,
7634           (emitMaps): added pdata,
7635           (createInterruptVect): (re)moved default,
7636           (glue): added pdata,
7637           (glue): moved __start__xstack to XSTK with default size 1
7638         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
7639           and options.float_rent when options.stackAuto is set,
7640           (linkEdit): only write XDATA_NAME if provided on command line
7641         * src/SDCCmem.h,
7642         * src/SDCCmem.c: added pdata
7643         * src/port.h: added pdata_name to PORT
7644         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
7645           (saveRegisters, unsaveRegisters): removed usage of B,
7646           (genMinus): fixed accumulator clash,
7647           (genJumpTab): added comment, this needs another look
7648         * src/mcs51/gen.c: added check for "B in use" paranoia,
7649           added pushB() and popB()
7650         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
7651           chance
7652         * src/avr/main.c,
7653         * src/ds390/main.c,
7654         * src/hc08/main.c,
7655         * src/mcs51/main.c,
7656         * src/pic/main.c,
7657         * src/pic16/main.c,
7658         * src/xa51/main.c,
7659         * src/z80/main.c: (reset_regparms) made void parameter explicit and
7660           added PSEG (PAG,XDATA) or NULL to port specifier
7661         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
7662         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
7663           (_mcs51_genInitStartup): removed __start__xstack equ,
7664           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
7665         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
7666         * src/z80/gen.c (_rleAppend): fixed warnings
7667         * support/regression/tests/zeropad.c: added pdata test
7668         * .version: bumped to 2.4.6
7669
7670 2004-10-17 Borut Razem <borut.razem AT siol.net>
7671
7672         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
7673         as a part of nightly build
7674
7675 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
7676
7677         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
7678         WREG holds the first byte function parameters,
7679         * (aopForSym): take special case for symbols which are in FARSPACE
7680         but in CODESPACE too,
7681         * (assignResultValue): modified to take into account _G.useWreg,
7682         * (genCall): don't use wreg for parameter passing when function is
7683         declared as reentrant, too, added optimization INCF to stack
7684         pointer when stack parameter count is 1,
7685         * (genFunction, genEndFunction): refurnished and fixed to not using
7686         wreg for passing parameters when function has varargs or is
7687         reentrant, fixed bug with symbol name compare for generating
7688         functions in absolute address,
7689         * (pic16_storeForReturn): refurnished,
7690         * (genCmp): began writing a new version of the function, not ready
7691         yet, therefore it is disabled,
7692         * (genAssign): do not read code memory when assigning a function to
7693         a pointer function,
7694         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
7695         array of characters, not pointer,
7696         * (pic16initialComments): in debug mode emit an .ident directive for
7697         the assembler,
7698         * (_process_pragma): emit a new warning type (internal to pic16)
7699         when setting stack to default length, emit a similar warning when
7700         placing a function at absolute address and address is not word aligned
7701         * (_pic16_parseOptions): added 'return TRUE' statement,
7702         * (_pic16_linkEdit): if compiling a source, then add the source's
7703         file object, first in the list of objects to link,
7704
7705 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
7706
7707         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
7708         * src/pic/main.c : removed VC warning.
7709         * src/pic/gen.c : changed comment.
7710
7711 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
7712
7713         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
7714         reference to a deprecated symbol _GPTRREG was causing failure to
7715         link. Thanks G. M. Gallant for the info.
7716
7717 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
7718
7719         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
7720         comments for Bugs item #954788.
7721
7722 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
7723
7724         * src/pic16/device.c (pic16_dump_gsection,
7725         * pic16_groupRegistersInSection): handle symbols declared to be in
7726         access bank differently,
7727         * src/pic16/gen.c (struct _G): added field resDirect,
7728         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
7729         send values read from stack directly to result and don't allocate
7730         temporary values,
7731         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
7732         same registers,
7733         * (pic16_sameRegsOfs): NEW,
7734         * (freeAsmop): if _G.resDirect is set then do not mark registers as
7735         free because they were not allocated from temporary pool,
7736         * pic16_popRegFromString): workaround to fix a problem with
7737         allocating variables twice or never,
7738         * (genGenPointerGet): using PRODL instead of FSR0H,
7739         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
7740         instead of FSR0H,
7741         * (genAssign): take advantage of the _G.resDirect flag,
7742         * (genCast): around line 11844, use mov2f instead of directly
7743         MOVFF'ing between operands to account for literal values,
7744         * src/pic16/genutils.c: some new debug functions for gpsim have been
7745         added,
7746         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
7747         float with integer part only,
7748         * src/pic16/main.c (_process_pragma): handle pragma udata access to
7749         place variables in access bank
7750         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
7751         updated sources to reflect recent changes in gen.c
7752
7753 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
7754
7755         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
7756         sources that searched for headers in installation path, now the
7757         device/include/pic16 is used,
7758         * src/pic16/glue.c (pic16glue),
7759         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
7760         .line directives if not in debug mode, this suppresses assembler's
7761         warnings for ignored directives
7762
7763 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
7764
7765         * src/port.h: made reset_regparms prototype void parameter explicit.
7766         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
7767         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
7768         * doc/sdccman.lyx: documented warning disabling and how to use
7769           printf_large to make it print floats.
7770         * device/include/stdbool.h: NEW
7771         * device/lib/_atof.c,
7772         * device/lib/_divuint.c,
7773         * device/lib/_divulong.c,
7774         * device/lib/expf.c,
7775         * device/lib/printf_large.c,
7776         * device/lib/sincosf.c,
7777         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
7778         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
7779           a completely reentrant lib.
7780
7781 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
7782
7783         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
7784         * device/include/pic16/stdio.h: fixed bug with colon
7785
7786 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
7787
7788         * device/include/pic16/stdio.h,
7789         * device/include/pic16/stdlib.h,
7790         * device/include/pic16/math.h: NEW
7791         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
7792         declared as _naked to reduce overhead
7793         * device/lib/Makefile.in (target port-specific-objects-pic16):
7794         changed * to *.* so to ignore the CVS directory,
7795         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
7796         stacked variables back in stack,
7797         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
7798         corruption
7799
7800 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
7801
7802         * .version: bumped version number to 2.4.5
7803         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
7804         * support/Util/SDCCerr.c (messages structure): added entry for
7805         W_POSSBUG2
7806
7807         Large cumulative patch for pic16 port and libraries.
7808         * device/include/pic16/sdcc-lib.h,
7809         * device/include/pic16/stdarg.h,
7810         * device/include/asm/pic16/features.h,
7811         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
7812         * device/include/pic16/float.h: changes reentrant keyword with
7813         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
7814         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
7815         updated target build-libraries to include objects from gptr,
7816         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
7817         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
7818         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
7819         all function headings,
7820         * src/SDCCmain.c: added global parameter userIncDirsSet,
7821         * (parseCmdLine): when option -I is encountered add directory to
7822         userIncDirsSet too,
7823         * src/version.awk: added space between control and long,
7824         * src/pic16/NOTES: added some notes for the port,
7825         * src/pic16/gen.c: added prototype for mov2fp function,
7826         * (fReturnpic16[]): properly named return value registers,
7827         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
7828         * (aopForSym): added code to handle symbols with onStack flag set,
7829         symbols onStack are allocated PTRSIZE bytes,
7830         * (aopFreeAsmop): handles special case where asmops are stack objects,
7831         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
7832         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
7833         added argument lock to trace flaws in allocating temporary registers
7834         when developing port,
7835         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
7836         * (pic16_popRegFromString): reenabled allocating a direct register
7837         from string,
7838         * (assignResultValue): various beautifications,
7839         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
7840         referenced function argument,
7841         * (genIpush): reenabled to allow stacked arguments, handles only
7842         ic->parmPush iCodes,
7843         * (genCall, genPcall): major changes to allow for variable argument
7844         functions, fixed a bug with falsely restoring stack pointer after
7845         returning from call,
7846         * (genFunction): pending code for critical function,
7847         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
7848         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
7849         * (genNearPointerGet): fixed bug with indirect reading, was always
7850         reading from INDF0
7851         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
7852         pointers,
7853         * (genAddrOf): rewrote code to take address of a stacked function parameter
7854         * (genCast): fixed casting to generic pointer type,
7855         * src/pic16/gen.h: added AOP_STA,
7856         * (struct asmop): added field stk,
7857         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
7858         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
7859         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
7860         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
7861         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
7862         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
7863         generic pointers,
7864         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
7865         and library paths,
7866         * (pic16_port structure): generic pointer size is set to 3,
7867         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
7868         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
7869         compiler warning,
7870         * src/pic16/ralloc.c (allocReg): prevent allocating register when
7871         operand is an iTemp,
7872
7873 2004-09-24 Martin Helmling <mh AT octo-soft.de>
7874
7875         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
7876         * debugger/mcs51/simi.c: addapt new syntax of s51
7877
7878 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
7879
7880         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
7881         * src/pic16/pcode.c: commented out some calls to free() in order to
7882         fix bug #989576,
7883
7884 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7885
7886         * src/SDCCicode.h,
7887         * src/SDCCicode.c (isiCodeInFunctionCall),
7888         * src/avr/ralloc.c (selectSpil),
7889         * src/pic/ralloc.c (selectSpil),
7890         * src/pic16/ralloc.c (selectSpil),
7891         * src/ds390/ralloc.c (selectSpil),
7892         * src/hc08/ralloc.c (selectSpil),
7893         * src/xa51/ralloc.c (selectSpil),
7894         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
7895         stack in the middle of a function call sequence (fixes bug #1020268)
7896         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
7897         costs associated with the minimum switch case.
7898
7899 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7900
7901         * src/SDCC.lex: fixed bug #1030549
7902
7903 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7904
7905         * src/SDCCcse.h (struct cseDef),
7906         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
7907         over a function call if the CSE is derived from a symbol whose
7908         address has been taken (fixes bug #1029883)
7909         * support/regression/tests/bug-1029883: a new regression test for
7910         this bug
7911
7912 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7913
7914         * src/hc08/gen.c (emitinline): fixed bug #1029778
7915         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
7916         to a cast object is no longer a syntax error ("fixes" bug #1030006,
7917         and starts toward RFE #905167)
7918
7919 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
7920
7921         * src/pic16/gen.c (mov2f): New function to move an operand to
7922         another without considering if it is a literal or a register,
7923         * (pic16_sameRegs): don't check if they are both AOP_REG,
7924         * (AccRsh): removed andmask=0 lines,
7925         * (genLeftShift): duplicated to be improved in future versions,
7926         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
7927         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
7928         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
7929         * (pic16initMnemonics): added initialization for POC_INFSNZW,
7930         * (insertBankSwitch): fixed inserting banksel directives algorithm
7931         for instructions that follow a skip instruction, this fixes a report
7932         for broken subtraction code generation,
7933         * src/pic16/ralloc.c (deassignLRs): do not free register if current
7934         iCode is a left op, just in case result and right share the same
7935         registers
7936
7937 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7938
7939         * src/hc08/main.c,
7940         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
7941         preservation of HX
7942         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
7943         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
7944         on 2004-09-12; it was buggy
7945
7946 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
7947
7948         * src/SDCCsymt.h: removed RESULT_CHECK
7949         * src/SDCCast.c,
7950         * src/SDCCglue.c,
7951         * src/SDCCval.c,
7952         * src/pic/glue.c,
7953         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
7954
7955 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
7956
7957         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
7958         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
7959         configuration values no more rejected by compiler, they are assigned
7960         to configuration registers with a warning message instead,
7961         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
7962         the for-loop so last conf register is emitted too,
7963         * (_pic16_initPaths): link library libsdcc.lib by default,
7964         * (_hasNativeMulFor): modified test for multiplication according to
7965         Raphael Neider's remarks. Integer multiplication is also done with
7966         support functions,
7967         * device/include/pic16/pic18fregs.h: corrected type error in while
7968         testing and including 18f6720 header file
7969
7970 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
7971
7972         * src/pic16/device.h (pic16_options): removed field use_crt,
7973         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
7974         until an optimization to handle single bits is added,
7975         * (pic16_loadFSR0): moved before genUnpackBits,
7976         * (genAnd): some white lines removed,
7977         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
7978         leave_reset flags in pic16_options when using crt modules,
7979
7980 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
7981
7982         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
7983           for bugs 898889 & 979599. Also used some safer print instructions.
7984
7985 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
7986
7987         * src/pic16/device.h (pic16_options_t): added field use_crt,
7988         crt_name, no_crt,
7989         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
7990         catch a probable future bug,
7991         * src/pic16/gen.c: aopIdx function commented out,
7992         * (genAssign): commented out old code which used aopIdx,
7993         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
7994         code, added if conditionals to take into account the --use-crt
7995         command line options,
7996         * src/pic16/main.c (pic16_optionsTable): added new command line
7997         options, --use-crt= and --no-crt,
7998         * (_pic16_linkEdit): now the proper crt object is added in the
7999         linker command line except than when --no-crt is specified,
8000         * src/pic16/pcode.c,
8001         * src/pic16/pcode.h: added some structures and functions for a new
8002         optimization scheme to compansate for instruction overhead between
8003         same iCodes, this scheme is currently under development and is not
8004         working in any way,
8005         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
8006         to && operator,
8007         * device/lib/pic16/startup/crt0i.c,
8008         * device/lib/pic16/startup/crt0iz.c: added global char variable
8009         __uflags to force the generation of an idata section
8010
8011 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
8012
8013         * doc/Makefile,
8014         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
8015         * doc/sdccman.lyx: updated sdcc version to 2.4.4
8016
8017 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8018
8019         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
8020         Frieder) and clarified the default code optimization mode
8021
8022 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8023
8024         * src/SDCC.lex (doPragma, process_pragma),
8025         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
8026         "opt_code_size", and "opt_code_balanced"
8027         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
8028         regrouped options by category, added support for category headers
8029         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
8030         and "--opt-code-size"
8031         * doc/sdccman.lyx: documented these new options and pragmas
8032         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
8033         preference into account
8034
8035 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
8036
8037         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
8038           geniCodePreDec): Fixed bug 904237 by generating a warning
8039         * src/SDCCerr.h,
8040         * src/SDCCerr.c: added warning W_SIZEOF_VOID
8041
8042 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
8043
8044         * src/pic/device.c : When no max ram set validate full memory range.
8045         * src/pic/pcode.c,
8046         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
8047
8048 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
8049
8050         * device/lib/_gptrget.c,
8051         * device/lib/_gptrput.c: updated comment
8052         * device/lib/calloc.c,
8053         * device/lib/free.c,
8054         * device/lib/malloc.c,
8055         * device/lib/realloc.c: added LGPL, made them reentrant-safe
8056         * src/SDCCcse.c (cseBBlock),
8057         * src/SDCCicode.c (printOperand, geniCodeArray),
8058         * src/SDCCicode.h (struct operand): fixed bug 868103
8059         * support/regression/tests/bug-868103.c: added
8060         * src/SDCCast.c (searchLitOp),
8061         * src/SDCCcse.h (struct cseDef),
8062         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
8063         * src/SDCCicode.h (struct operand),
8064         * src/SDCCsymt.h (struct sym_link),
8065         * src/avr/gen.c (hasInc),
8066         * src/ds390/gen.c (hasInc),
8067         * src/hc08/gen.c (genPlusIncr, hasInc),
8068         * src/mcs51/gen.c (hasInc),
8069         * src/pic16/glue.c (pic16_printIvalChar),
8070         * src/pic16/ralloc.c (regWithIdx),
8071         * src/xa51/gen.c (hasInc) : removed warnings
8072         * src/SDCCast.c (createBlock): added comment ???
8073         * src/hc08/ralloc.c: updated comments
8074
8075 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8076
8077         * doc/sdccman.lyx: updated section on switch statements, added
8078         section about semaphore locking
8079         * doc/Makefile: added option -info for latex2html
8080         * device/lib/_gptrget.c,
8081         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
8082
8083 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
8084
8085         * src/pic/device.h,
8086         * src/pic/device.c,
8087         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
8088          maxram is less than 0x100.
8089
8090 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
8091
8092         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
8093
8094 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8095
8096         * src/port.h,
8097         * src/mcs51/main.c,
8098         * src/ds390/main.c,
8099         * src/z80/main.c,
8100         * src/hc08/main.c,
8101         * src/pic/main.c,
8102         * src/pic16/main.c,
8103         * src/avr/main.c,
8104         * src/xa51/main.c
8105         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
8106         a jump table is the best form for a switch statement, including
8107         automatic insertion of missing cases to make the case range
8108         continuous. Developed in collaboration with Frieder Ferlemann.
8109
8110 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8111
8112         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
8113         accumulator result if it needs sign extension
8114
8115 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
8116
8117         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
8118
8119 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
8120
8121         * device/lib/gbz80/printf.c,
8122         * device/lib/z80/printf.c: removed define for NULL
8123
8124 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
8125
8126         * as/xa51/xa_link.c,
8127         * device/examples/ds390/ow390/ad26.c,
8128         * device/examples/ds390/ow390/cnt1d.c,
8129         * device/examples/ds390/ow390/counter.c,
8130         * device/examples/ds390/ow390/ds2480.h,
8131         * device/examples/ds390/ow390/ds2480ut.c,
8132         * device/examples/ds390/ow390/findtype.c,
8133         * device/examples/ds390/ow390/gethumd.c,
8134         * device/examples/ds390/ow390/owllu.c,
8135         * device/examples/ds390/ow390/ownetu.c,
8136         * device/examples/ds390/ow390/swt12.c,
8137         * device/examples/ds390/ow390/swtloop.c,
8138         * device/examples/ds390/ow390/temp.c,
8139         * device/examples/ds390/ow390/temp10.c,
8140         * device/examples/ds390/ow390/thermo21.c,
8141         * device/examples/ds390/ow390/tinilnk.c,
8142         * device/examples/ds390/ow390/tstfind.c,
8143         * device/examples/serialcomm/windows/serial.cpp,
8144         * device/examples/serialcomm/windows/test_serialcomm.cpp,
8145         * device/include/reg51.h: fixed line endings for cvs
8146
8147 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8148
8149         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
8150         packRegsForAccUse, packRegisters): new accumulator register
8151         packing algorithm
8152         * support/regression/ports/hc08/support.c (_putchar): suppress
8153         warning of unused variable
8154         * src/SDCCicode.c: added SWAP entry to codeTable
8155
8156 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
8157
8158         * device/lib/sprintf.c: forgot to add this file before previous commit
8159
8160 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
8161
8162         * src/pic16/gen.c (genPackBits): added operand right in function
8163         parameters, load result directly if p_type is POINTER (that is
8164         called by genNearPointerSet)
8165         * (genUnPackBits): added operand left in function parameters,
8166         * (genNearPointerGet, genNearPointerSet): prevent the loading of
8167         FSR0 if accessing bitfields,
8168
8169 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
8170
8171         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
8172           _print_format; updated printf, sprintf, vsprintf
8173         * device/include/asm/default/features.h: corrected comment/define
8174         * device/lib/Makefile.in: added sprintf.c
8175         * device/lib/libsdcc.lib: added sprintf module
8176         * device/lib/printf_large.c,
8177         * device/lib/vprintf.c,
8178         * device/lib/sprintf.c: totally refactored printf_large and vprintf
8179           into these 3 files
8180         * support/regression/Makefile: changed ALL_PORTS into a usefull default
8181         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
8182         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
8183           hc08 test
8184         * support/regression/tests/zeropad.c: define idata as data for hc08
8185
8186 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8187
8188         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
8189         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
8190         labels are referenced at least once (even if a reference is not found)
8191         * src/hc08/gen.c (emitcode): set isComment flag for comments
8192         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
8193         loads), rules 6a..6b (optimize jumps to return)
8194
8195 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8196
8197         * device/lib/acosf.c (acosf),
8198         * device/lib/asinf.c (asinf),
8199         * device/lib/atanf.c (atanf),
8200         * device/lib/ceilf.c (ceilf),
8201         * device/lib/cosf.c (cosf),
8202         * device/lib/coshf.c (coshf),
8203         * device/lib/cotf.c (cotf),
8204         * device/lib/fabsf.c (fabsf),
8205         * device/lib/floorf.c (floorf),
8206         * device/lib/log10f.c (log10f),
8207         * device/lib/logf.c (logf),
8208         * device/lib/sinf.c (sinf),
8209         * device/lib/sinhf.c (sinhf),
8210         * device/lib/sqrtf.c (sqrtf),
8211         * device/lib/tanf.c (tanf),
8212         * device/lib/tanhf.c (tanhf),
8213         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
8214         replaced all instances of "reentrant" in the library functions
8215         defined in math.h with this macro.
8216         * support/regression/tests/float_trans.c: reenabled test for hc08
8217
8218 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
8219
8220         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
8221         erroneously deleted
8222
8223 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8224
8225         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
8226         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
8227         multi-byte volatile operands are used
8228         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
8229         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
8230         initialization to area GSINIT0 so that it would always precede
8231         any static initializers in GSINIT
8232         * support/regression/tests/zeropad.c: fixed idata define for hc08
8233         * support/regression/tests/bug-927659.c,
8234         * support/regression/tests/float_trans.c: disabled tests for hc08
8235         pending missing library routines
8236         * .version: increased version number to 2.4.4 - hc08 port now passes
8237         regression tests
8238
8239
8240 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
8241
8242         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
8243         * Makefile.common.in,
8244         * as/Makefile,
8245         * as/hc08/Makefile.in,
8246         * as/mcs51/Makefile.in,
8247         * as/z80/Makefile.in,
8248         * debugger/mcs51/Makefile.in,
8249         * device/include/Makefile.in,
8250         * device/lib/Makefile.in,
8251         * doc/Makefile,
8252         * link/Makefile,
8253         * link/z80/Makefile.in,
8254         * packihx/Makefile.in,
8255         * sim/ucsim/main_in.mk,
8256         * sim/ucsim/avr.src/Makefile.in,
8257         * sim/ucsim/doc/Makefile.in,
8258         * sim/ucsim/gui.src/serio.src/Makefile.in,
8259         * sim/ucsim/hc08.src/Makefile.in,
8260         * sim/ucsim/s51.src/Makefile.in,
8261         * sim/ucsim/xa.src/Makefile.in,
8262         * sim/ucsim/z80.src/Makefile.in,
8263         * src/Makefile.in,
8264         * support/cpp2/Makefile.in,
8265         * support/librarian/Makefile,
8266         * support/makebin/Makefile: added DESTDIR to the install path proposed
8267         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
8268         * doc/sdccman.lyx: added DESTDIR documentation
8269
8270 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
8271
8272         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
8273         instruction for interrupt handlers, use fast returns when returning
8274         from high priority interrupts
8275
8276 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8277
8278         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
8279         code generation
8280         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
8281         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
8282         bugs, ported much of Bernhard's code from mcs51
8283         * src/mcs51/gen.c (genSend),
8284         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
8285         than one when calling a reentrant function
8286         * device/lib/_mullong.c: defined an alternate struct layout for big
8287         endian ports (hc08)
8288
8289 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8290
8291         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
8292         test
8293
8294 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8295
8296         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
8297         are sane and complete before asking the port its prefered parameter
8298         passing method (fixes bug #1017633)
8299         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
8300         and _ret3
8301
8302 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8303
8304         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
8305         problem in bitfields >= 8 bits.
8306
8307 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
8308
8309         * src/SDCCsymt.c: undid changes that were not meant to be committed
8310
8311 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
8312
8313         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
8314
8315 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
8316
8317         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
8318           copied and wrong bit got inverted
8319
8320 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8321
8322         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
8323         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
8324         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
8325         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
8326         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
8327         assignments to bitfields at known addresses
8328         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
8329         reads from bitfields at known addresses
8330         * src/hc08/ralloc.c (packRegisters),
8331         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
8332         genhc08Code): optimize pointer get values used as conditionals
8333         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
8334         and branch
8335
8336 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8337
8338         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
8339         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
8340         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
8341         as conditionals
8342
8343 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8344
8345         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
8346
8347 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8348
8349         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
8350         related problems
8351
8352 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
8353
8354         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
8355
8356 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8357
8358         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
8359         mcs51 port
8360
8361 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
8362
8363         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
8364
8365 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8366
8367         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
8368         cases use more compact code.
8369
8370 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
8371
8372         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
8373
8374 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8375
8376         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
8377
8378 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8379
8380         * src/SDCCsymt.h,
8381         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
8382         parameter of changePointer() from symbol* to sym_link*
8383         * src/SDCCast.c (decorateType): call changePointer() for CAST op
8384         * src/SDCCsymt.c (compareType): void* type is castable to other
8385         pointers, but not necesarily an exact match.
8386         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
8387         is no longer blindly treated as an exact match.
8388         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
8389
8390 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
8391
8392         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
8393
8394 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
8395
8396         * src/pic/gen.c,
8397         * src/pic/pcode.c,
8398         * src/pic/ralloc.h,
8399         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
8400
8401 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
8402
8403         * src/pic/device.c,
8404         * src/pic/device.h,
8405         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
8406
8407 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8408
8409         * src/mcs51/gen.c (emitcode): fixed bug #992819
8410
8411 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
8412
8413         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
8414           there's no need to make it worse
8415
8416 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8417
8418         * src/mcs51/ralloc.c (deassignLR),
8419         * src/ds390/ralloc.c (deassignLR),
8420         * src/hc08/ralloc.c (deassignLR),
8421         * src/z80/ralloc.c (deassignLR),
8422         * src/pic/ralloc.c (deassignLR),
8423         * src/pic16/ralloc.c (deassignLR),
8424         * src/avr/ralloc.c (deassignLR),
8425         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
8426         rlivePoint): fixed another part of bug #971834
8427
8428 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8429
8430         * src/z80/main.c: enabled "critical" keyword
8431         * src/z80/mappings.i,
8432         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
8433         functions (fixes bug #979646)
8434         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
8435
8436 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8437
8438         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
8439           such as c:\mydir.
8440
8441 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
8442
8443         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
8444           doesn't disable too much optimizations
8445
8446 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
8447
8448         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
8449
8450 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
8451
8452         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
8453
8454 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
8455
8456         * src/pic/gen.c tidied up tabs
8457         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
8458         * src/pic/main.c tidied up tabs
8459         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
8460         * src/pic/pcoderegs.c tidied up tabs
8461         * src/pic/ralloc.c tidied up tabs
8462
8463 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
8464
8465         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
8466         to S_FIXED for pic16 port and when symbol is not in level 0,
8467         allocate for S_REGISTER storage class and pic16 port, too,
8468         * src/pic16/device.h: prototype for checkSym,
8469         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
8470         * (pic16_assignConfigWordValue): test the value and the mask to
8471         validate that the value is suitable for the configuration word,
8472         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
8473         collect extern declared symbols, don't emit symbol twice, check
8474         first if symbol is in publics set first,
8475         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
8476         * added command line '--fstack' which enables an experimental
8477         feature for stack access, too buggy to be used yet...
8478         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
8479         * (pic16_allocDirReg): when register has storage class S_REGISTER
8480         allocate in pic16_dynAccessRegs,
8481         * device/include/pic16/pic18f????.h: modified configuration word
8482         naming convention, words started as CONFIG0H but should be CONFIG1H
8483
8484 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
8485
8486         * device/include/mcs51reg.h: fixed bug 970993
8487
8488 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
8489
8490         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
8491         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
8492         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
8493         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
8494         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
8495         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
8496           error/warning numbers,
8497           added function setWarningDisabled()
8498         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
8499         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
8500           _memcmp.c _memmove.c calloc.c realloc.c free.c
8501         * support/regression/tests/malloc.c: added tests for new functionality
8502         * support/regression/tests/zeropad.c: added tests for truncated initializers
8503           and initialized char arrays starting with '\x0'
8504         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
8505
8506 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
8507
8508         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
8509
8510 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8511
8512         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
8513         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
8514         peephole 177.e. Thanks to anonymous
8515
8516 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
8517
8518         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
8519         function isn't used in the source but referenced as a
8520         variable initializer then declare it as extern in .asm file
8521
8522 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
8523
8524         * .version: increased version number to 2.4.3
8525
8526         Adding version extension according to ChangeLog CVS revision
8527         * src/Makefile.in (target all): added dependency 'version.h'
8528         * (rule version.h): added rule to create version.h from ChangeLog,
8529         * (rule dep): added dependency version.h,
8530         * src/version.awk: AWK script to create version.h
8531         * src/SDCCdwarf2.c (dwWriteModule),
8532         * src/SDCCglue.c (initialComments),
8533         * src/SDCCmain.c (printVersionInfo): modified to write after
8534         version string the version extension number,
8535         * src/SDCCutil.c: included "version.h"
8536         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
8537         number,
8538         * src/SDCCutil.h: added prototype for getBuildNumber
8539
8540         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
8541         includeDirsSet, too,
8542         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
8543         const char [] is found in function prototype...
8544
8545         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
8546         moving to WREG with source is already in WREG,
8547         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
8548         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
8549         * (aopForSym): stack'ed symbols are partially supported, added
8550         if-clause to support symbols in FARSPACE,
8551         * (sameRegs): added test for AOP_ACC to see if registers are same,
8552         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
8553         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
8554         * (pic16_popRegFromString): will not allocate a new register if it
8555         doesn't find one by name, bug may have introduced...
8556         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
8557         * (genIpush): revived to use pic16 port's stack,
8558         * (genAddrOf): added incomplete case for stack'ed operand,
8559         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
8560         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
8561         can handle multibyte operands,
8562         * src/pic16/glue.c (pic16_printIval*): some debug info added,
8563         * (pic16initialComments): added message for MPLAB compatibility
8564         mode enabled,
8565         * src/pic16/main.h: prototype for pic16_mplab_comp,
8566         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
8567         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
8568         * (_pic16_linkEdit): NEW, handles link stage, transferred here
8569         because of increased complexity of procedure,
8570         * (_process_pragma): stack pragma changed to format 'stack pos len',
8571         emit symbol '_stack_end' to conform with gplink,
8572         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
8573         to search for register,
8574         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
8575         PO_GPR_REGISTER,
8576         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
8577         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
8578         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
8579         case for PO_GPR_REGISTER,
8580         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
8581         dies, the new era is ahead !...
8582         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
8583         pic16_dynInternalRegs,
8584         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
8585         * (pic16_allocDirReg): minor optimizations and bug fixes,
8586         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
8587
8588         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
8589         load stack and frame pointer with address of 'stack_end' symbol
8590
8591 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
8592
8593         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
8594         without source code but only variable initializers
8595
8596 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
8597
8598         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
8599         external are not declared as extern to reduce overhead while linking
8600
8601 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
8602
8603         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
8604
8605 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
8606
8607         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
8608           Yee Keat for the patch
8609         * src/SDCCast.c (decorateType): fixed bug #979599
8610         * src/ds390/gen.h: removed local fReturnSizeDS390
8611         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
8612         * src/ds390/gen.c (genAnd, genOr, genXor),
8613         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
8614
8615 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
8616
8617         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
8618         add relFilesSet to $3, manipulate $2 to handle linking of object
8619         files without source files in command line,
8620         * device/include/pic16 (all headers): added ID location macros,
8621         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
8622         entries for ID location bytes,
8623         * (pic16_assignIdByteValue): NEW,
8624         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
8625         added field dumpcalltree to pic16_options_t,
8626         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
8627         is used instead of pic16_Gstack_base_addr, check if (ifx) before
8628         emitting rFalseIfx label after check_carry label,
8629         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
8630         pic16_emitDIRegs), NEW
8631         * (pic16glue): dump .calltree file when option --calltree found,
8632         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
8633         * (_pic16_genAssemblerPreamble): emit ID locations after
8634         configuration registers,
8635         * (pic16_linkCmd): modifications of the link command,
8636         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
8637         * (pic16_pCodeInitRegisters): don't init stack registers,
8638         * (pic16_findPrevInstruction): fixed bug,
8639         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
8640         bug with immediate registers,
8641         * (buildCallTree): traces stack push and pop,
8642         * (pct2): dump also stack usage for each function,
8643         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
8644         * (pic16_allocDirReg): various modifications,
8645         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
8646         fixed to 1,
8647
8648 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
8649
8650         * src/pic16/pcode.c: removed buggy double colon
8651
8652 2004-07-01 Borut Razem <borut.razem AT siol.net>
8653
8654         * support/scripts/sdcc.nsi: added include/pic16 to setup
8655
8656 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
8657
8658         * device/lib/Makefile.in: fixed bug in target objects-pic16,
8659         * device/lib/pic16/Makefile: prefixed with dash (-) command under
8660         target 'clean',
8661         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
8662         specific command line arguments. Also added sample lkr script
8663         for placing a variable at a specific memory bank.
8664         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
8665         at a specific memory bank,
8666         * (pic16_dump_isection): fixed bug which caused string literals to
8667         be omitted when dumping idata section,
8668         * (pic16_groupRegistersInSection): added code to handle registers
8669         in specific memory banks,
8670         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
8671         public, all references are renamed too,
8672         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
8673         AOP_DPTR2,
8674         * (pic16_storeForReturn): added case to handle when dest is WREG,
8675         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
8676         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
8677         pic16_rel_udata, check to see if that register is marked as being
8678         a member of a specific memory bank,
8679         * (pic16_printIvalCharPtr): added code to add string literals either
8680         to code or the idata sections,
8681         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
8682         also accept the 'udata' pragma,
8683         * src/pic16/main.h: new structure types sectName and sectSym
8684         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
8685         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
8686         * (pic16_findPrevInstruction): fixed, it returned nothing,
8687         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
8688         instruction combinations,
8689         * (pic16_FixRegisterBanking): heavily reorganised,
8690         * (pic16_AnalyzeBanking): if generating banksel directives is
8691         disabled, then don't call FixRegisterBanking at all,
8692         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
8693         completely removed,
8694         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
8695
8696 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
8697
8698         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
8699         Phuah Yee Keat <yk.phuah AT nestac.com>
8700
8701 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
8702
8703         * src/pic16/glue.c (pic16createInterruptVect): function now emits
8704         correctly the IVT even if it is relocated to some other location
8705
8706 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
8707
8708         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
8709         * device/include/pic16/pic18f2220.h: NEW,
8710         * device/lib/pic16/libdev/pic18f2220.c: NEW,
8711         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
8712         * src/pic16/device.c (struct Pics16): added info for 18f2220,
8713         * src/pic16/device.h (struct pic16_options): added ivt_loc and
8714         nodefaultlibs, ivt_loc is the location of the interrupt vector
8715         table, and nodefaultlibs signs that default libraries should not be
8716         linked in link stage,
8717         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
8718         according to --ivt-loc argument,
8719         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
8720         when pragma stack is found,
8721
8722 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8723
8724         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
8725         256 (range check), 257 (do while), 258.a-f (bit banging
8726         f.e. on 3-wire SPI bus)
8727
8728 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8729
8730         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
8731         variables used exclusively within a loop
8732
8733 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
8734
8735         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
8736
8737 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8738
8739         * src/SDCClrange.c (computeClash): fixed bug #971834
8740
8741 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8742
8743         * src/mcs51/gen.c (genCmp): fixed bug #975903
8744         * src/hc08/gen.c (operandsEqu),
8745         * src/ds390/gen.c (operandsEqu),
8746         * src/z80/gen.c (operandsEqu),
8747         * src/pic/gen.c (operandsEqu),
8748         * src/pic16/gen.c (operandsEqu),
8749         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
8750         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
8751
8752 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8753
8754         * src/SDCCcse.c (cseBBlock): fixed bug #966963
8755
8756 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
8757
8758         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
8759         default case in switch statement,
8760         * glue.c (pic16_initPointer): expr is initialised via decoarteType
8761         to eliminate problem with initialisation of pointers, but problem
8762         still exists,
8763         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
8764         * (emitStaticSegment): removed various lines emitting debug info,
8765         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
8766         added processor registers for utilizing EEPROM,
8767         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
8768         configurable and set 8
8769
8770 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
8771
8772         * .version: increased version number to 2.4.2,
8773
8774         Cumulative patch for pic16 port
8775         * src/pic16/device.c: changed scheme to dump initial values for
8776         variables in idata segment, all print_idata* functions were removed,
8777         now the pic16_printIval* will be called,
8778         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
8779         * _pic16_printPointerType, pic16_printPointerType,
8780         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
8781         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
8782         NEW, similar to the respective functions in SDCCglue.c,
8783         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
8784         way, emitting hex bytes,
8785         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
8786
8787 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8788
8789         * src/avr/ralloc.c (serialRegAssign),
8790         * src/xa51/ralloc.c (serialRegAssign),
8791         * src/pic/ralloc.c (serialRegAssign),
8792         * src/pic16/ralloc.c (serialRegAssign),
8793         * src/hc08/ralloc.c (serialRegAssign),
8794         * src/z80/ralloc.c (serialRegAssign),
8795         * src/ds390/ralloc.c (serialRegAssign),
8796         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
8797
8798 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8799
8800         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
8801         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
8802
8803 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
8804
8805         Cumulative patch for pic16 port:
8806         * src/pic16/device.h (typedef PIC16_device) modified fields for
8807         defining microcontrollers,
8808         * src/pic16/device.c: added new info for all devices in Pics16 array,
8809         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
8810         to be optimised out by the pCode optimiser,
8811         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
8812         specially, bug reported by G.M. Gallant,
8813         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
8814         as force'd so that cannot be optimised out by pCode optimiser,
8815         * src/pic16/pcode.c,
8816         * src/pic16/pcodepeeph.c,
8817         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
8818         they are disabled by default, but can be enabled explicit with
8819         command argument --denable-peeps, for testing,
8820         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
8821         --pomit-ivt in COMPILE_FLAGS
8822
8823 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
8824
8825         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
8826           compilation on MSVC
8827
8828 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
8829
8830         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
8831
8832 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8833
8834         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
8835         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
8836
8837 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
8838
8839         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
8840         would only assign 0x300001 register.
8841
8842 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
8843
8844         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
8845         in COMPILE_FLAGS. Thanks to G. Gallant for report.
8846
8847 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8848
8849         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
8850         for ds80c400
8851         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
8852         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
8853         added peephole 254 (left shift), 255 (jump table)
8854
8855 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
8856
8857         * device/lib/Makefile.in: removed comment line with model-pic16,
8858         * (target port-specific-objects-pic16): the libraries and objects
8859         are copied to the build directory form the device/lib/pic16/bin
8860         directory
8861
8862         Cumulative patch concerning pic16 port:
8863         * library directory has been re-organized,
8864         * added support for PIC18F1220,
8865         * added headers and library sources for chips 18f1220,18f6520,
8866         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
8867
8868         * configuration registers setting has changed, now each supported
8869         device has a complete description of the registers it uses,
8870         * all initialisations are moved to idata sections, these section
8871         can be absolute or relocatable,
8872         * fixed initialisation of codespace variables,
8873         * fixed warning about PCLATU and gpsim,
8874         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
8875         * (genAssign): use table reads when assigning from variables in codespace,
8876         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
8877         char/int variables placed in codespace,
8878         * (pic16_emitConfigRegs): NEW, emits a list with configuration
8879         registers set in .asm file, no need for --pomit-config-words anymore,
8880         * (pic16glue): some 8051 legacy segments are commented out
8881         (to be removed completely),
8882         * added support for alternative assembler and linker with --asm=
8883         and --link= command line arguments,
8884         * peepholes are disabled automatically in the port, no need to
8885         specify on command line,
8886         * port supports natively char/int/long multiplication, but converts
8887         all divisions to support functions,
8888         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
8889         to the file set in variable $2,
8890         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
8891         strings in ASCII format and not in hex,
8892         * ralloc.c (serialRegAssign): added a triplet of conditional calls
8893         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
8894         allocate proper register if iCodes aren't temporary,
8895
8896 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
8897
8898         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
8899
8900 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
8901
8902         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
8903         is commented out
8904
8905 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8906
8907         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
8908         computed address is reused
8909         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
8910         multi-byte bitfields
8911
8912 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
8913
8914         * src/z80/gen.c: (genArrayInit): must check for pointers too
8915
8916 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
8917
8918         * support/regression/tests/zeropad.c: never meant to commit the
8919           nestedstruct test: removed, added check for GCC version
8920
8921 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
8922
8923         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
8924         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
8925         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
8926           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
8927           bugs 928906 and 954082 half-empty initializers
8928         * src/SDCCsymt.h,
8929         * src/SDCCsymt.c (getAllocSize): added for above fix
8930         * src/z80/gen.c (genArrayInit): fixed bug 741044
8931         * support/regression/tests/zeropad.c: added tests
8932
8933 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
8934
8935         * src/pic16/device.c (pic16_dump_section): corrected bug which
8936         caused some symbols of the libraries to be misplaced
8937
8938 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
8939
8940         * src/pic16/glue.c,
8941         * src/pic16/ralloc.h,
8942         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
8943         to fix conflict with pic port
8944
8945 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
8946
8947         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
8948         externs configuration variables,
8949         * src/pic16/ralloc.h,
8950         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
8951         prototype in header, commented out some debug messages
8952
8953 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
8954
8955         * src/pic16/glue.c,
8956         * src/pic16/main.c,
8957         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
8958         for gpasm COFF object generation. Thanks to D. Hawkins for
8959         his patch info
8960
8961 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8962
8963         * src/ds390/main.c,
8964         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
8965         Brock for spotting this)
8966         * src/ds390/gen.c (genEndFunction),
8967         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
8968         interrupt handler and critical. Disable push/pop optimizations when
8969         peephole optimizations disabled.
8970
8971 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
8972
8973         Updated pic16 library sources and headers.
8974         * device/lib/pic16/pic18f*/ ,
8975         * device/include/pic16/*.h: modified to handle structured SFR
8976         definitions
8977
8978 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
8979
8980         * src/port.h (PORT structure): added hook initPaths, now each
8981         port can declare its own default search paths,
8982         which can been seen with the --print-search-dirs option,
8983         see pic16 port for example,
8984         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
8985         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
8986         * (doPrintSearchDirs): NEW, replaces in a central manner the
8987         printing of search dirs which was split in set*Paths functions,
8988         * (main): added call to port->initPaths and doPrintSearchDirs,
8989         * src/avr/main.c,
8990         * src/ds390/main.c,
8991         * src/hc08/main.c,
8992         * src/izt/i186.c,
8993         * src/izt/tlcs900h.c,
8994         * src/mcs51/main.c,
8995         * src/pic/main.c,
8996         * src/pic16/main.c: modified port structures to reflect addition of
8997         initPaths hook,
8998
8999         * src/pic16/device.c (regCompare): registers are finally sorted by name,
9000         * (pic16_dump_section): for registers in same address reserve memory once,
9001         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
9002         to no_banksel,
9003         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
9004         result is greater in size than right or left,
9005         * (pic16_genUMult8X8_8): there are some cases where the result can
9006         be 16 bits size, so handle these,
9007         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
9008         * (pic16_outBitC): modified to emit pcodes,
9009         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
9010         or not,
9011         * (genDivOneByte): implemented algorithm to divide 8-bits,
9012         * (genCmp): uncommented goto, but issues still exist,
9013         * (genAnd): fixed a bug with variables >8bits,
9014         * (genPackBits): optimization added that uses BCF/BSF to change a
9015         single bit,
9016         * (genAssign): fixed bug when assigning floating point literals,
9017         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
9018         __sdcc_gsinit_startup label,
9019         * src/pic16/main.c (_pic16_init): removed search directory
9020         initialisations,
9021         * (_pic16_initPaths): NEW, used to initialise search directories,
9022         * (_hasNativeMulFor): support functions for all except char/int
9023         multiplication, and char division,
9024         * (PIC16_port struct): modified entry for native mul support,
9025         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
9026         no_banksel option,
9027         * (buildCallTree): call to register_usage is ifdef'ed out,
9028
9029 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9030
9031         * device/include/string.h: applied Stas Sergeev's patch to make this
9032         header file compatible with the preprocessor -Wundef option
9033         * src/SDCCmain.c (main): abort compilation if preprocessor reports
9034         failure (fixes bug #941458)
9035
9036 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9037
9038         * src/SDCCopt.c (killDeadCode): fixed bug #907733
9039         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
9040         that the variable, not the function, should be static
9041         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
9042         to be consistent with non-literal case
9043
9044 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9045
9046         * src/SDCCast.c (isConformingBody): fixed bug #949967
9047         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
9048         convilong): fixed bug #952086
9049
9050 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9051
9052         * src/SDCCmem.c (allocVariables): fixed bug #955321
9053
9054 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9055
9056         * src/hc08/main.c (_hc08_genAssemblerEnd),
9057         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
9058         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
9059         completely eliminated the use of a temporary file
9060         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
9061         when more than one file linked
9062         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
9063
9064 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9065
9066         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
9067         which fixes bug #543481
9068         * support/regression/tests/bug-751703.c: fixed comments left from a
9069         cut and paste error
9070         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
9071         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
9072         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
9073         scopes
9074         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
9075         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
9076         are now changed to underscores in moduleName
9077
9078 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9079
9080         * as/mcs51/lkmem.c: better fix for bug #954173
9081
9082 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
9083         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9084
9085         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
9086         * device/include/c8051f000.h,
9087         * device/include/c8051f120.h,
9088         * device/include/c8051f300.h,
9089         * device/include/c8051f310.h,
9090         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
9091         PWM16) and detab'ed
9092
9093 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9094
9095         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
9096         and mailing lists, doc'ed --no-peep-comments, removed reference
9097         to knoppix (newest version has no LyX/LaTeX), other minor changes
9098         * src/SDCCglue.c (glue): save 2 bytes stack space with
9099         option --main-return. The ljmp could probably be avoided too
9100
9101 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9102
9103         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
9104
9105 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9106
9107         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
9108         * src/SDCCopt.c (isLocalWithoutDef),
9109         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
9110         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
9111         (credit to Maarten Brock for patch #949363, on which this is based)
9112         * support/regression/tests/bug-751703.c: some test cases of extern used
9113         within inner scopes.
9114
9115 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9116
9117         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
9118         SPEC_STRUCT
9119         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
9120         struct definitions
9121         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
9122         dwWriteLabel): fix to create valid debugger symbols even when
9123         the module name has non-alphanumeric symbols in it
9124         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
9125         when a variable's allocation has been optimized away
9126
9127
9128 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9129
9130         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
9131         * src/hc08/main.c,
9132         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
9133         * src/mcs51/main.c,
9134         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
9135         * src/ds390/main.c,
9136         * src/z80/gen.c (z80_emitDebuggerSymbol),
9137         * src/z80/main.c,
9138         * src/pic/gen.c (pic14_emitDebuggerSymbol),
9139         * src/pic/main.c,
9140         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
9141         * src/pic16/main.c,
9142         * src/avr/gen.c (avr_emitDebuggerSymbol),
9143         * src/avr/main.c,
9144         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
9145         * src/xa51/main.c,
9146         * src/SDCCdebug.c (emitDebuggerSymbol),
9147         * src/SDCCdebug.h,
9148         * src/port.h: added a debugger struct to the port struct. Added a
9149         callback for defining debugger symbols
9150
9151         * src/SDCCast.c (createLabel),
9152         * src/SDCC.y (labeled_statement): mark all compiler generated labels
9153         with isitmp = 1
9154         * src/SDCCicode.h,
9155         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
9156         iCode back to the ast for the function
9157
9158         * src/hc08/ralloc.c (hc08_assignRegisters),
9159         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
9160         unneeded fields from the regs struct.
9161         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
9162         pushReg() & pullReg() functions instead of emitcode()
9163
9164         * src/hc08/gen.c (genLabel, genhc08Code),
9165         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
9166
9167         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
9168         debugger hooks
9169
9170         * src/hc08/gen.c (genEndFunction, genhc08Code),
9171         * src/hc08/gen.h,
9172         * src/mcs51/gen.c (genEndFunction, gen51Code),
9173         * src/mcs51/gen.h,
9174         * src/ds390/gen.c (genEndFunction, gen390Code),
9175         * src/ds390/gen.h,
9176         * src/z80/gen.c (genEndFunction, genZ80Code),
9177         * src/z80/gen.h,
9178         * src/z80/z80.h,
9179         * src/pic/gen.c (genEndFunction, genpic14Code),
9180         * src/pic/gen.h,
9181         * src/pic16/gen.c (genEndFunction, genpic16Code),
9182         * src/pic16/gen.h,
9183         * src/avr/gen.c (genEndFunction, genAVRCode),
9184         * src/avr/gen.h,
9185         * src/xa51/gen.c (genEndFunction, genXA51Code),
9186         * src/xa51/gen.h,
9187         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
9188         specific code to cdbFile.c and out of the backend code generators
9189
9190         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
9191         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
9192         starting address is now 0
9193
9194         * as/hc08/asm.h,
9195         * as/hc08/m08pst.c,
9196         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
9197         assembler directive for DWARF support
9198         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
9199
9200         * src/src.dsp,
9201         * src/Makefile.in,
9202         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
9203
9204 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9205
9206         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
9207         and inappropriate peephole optimization in jump tables
9208
9209 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9210
9211         * as/hc08/m08pst.c,
9212         * src/SDCCglue.c: sdccopt works for the hc08 port now
9213
9214 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
9215
9216         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
9217
9218 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9219
9220         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
9221
9222 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9223
9224         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
9225         rules
9226         * src/SDCCmain.c,
9227         * src/SDCCglobl.h,
9228         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
9229         comments from the peephole optimizer replacement rules
9230         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
9231         symbols
9232         * src/SDCCcse.c (updateSpillLocation),
9233         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
9234         equivalents
9235         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
9236         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
9237         objects far pointers
9238
9239 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9240
9241         * src/SDCCsymt.h: a missing part of my last change
9242         * src/pic/ralloc.c (regTypeNum),
9243         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
9244
9245 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9246
9247         * src/SDCCicode.h,
9248         * src/SDCCicode.c (aggrToPtrDclType),
9249         * src/SDCCptropt.h,
9250         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
9251         ptrPseudoSymConvert),
9252         * src/pic/ralloc.c (regTypeNum),
9253         * src/pic16/ralloc.c (regTypeNum),
9254         * src/hc08/ralloc.c (regTypeNum),
9255         * src/ds390/ralloc.c (regTypeNum),
9256         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
9257         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
9258
9259 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9260
9261         * link/z80/lkmain.c (afile),
9262         * as/hc08/lkmain.c (afile),
9263         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
9264         prevent a pointer problem when a filename has no directory and
9265         no extension specified.
9266
9267 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9268
9269         * link/z80/lkmain.c (afile): allow periods in directory names
9270         * link/z80/lkmain.c (afile),
9271         * as/mcs51/lkmain.c (afile),
9272         * as/hc08/lkmain.c (afile): allow linker script file to have an
9273         extension other than ".lnk"
9274         * link/z80/lklex.c (getfid),
9275         * link/z80/lkmain.c (parse),
9276         * as/mcs51/lklex.c (getfid),
9277         * as/mcs51/lkmain.c (parse),
9278         * as/hc08/lklex.c (getfid),
9279         * as/hc08/lkmain.c (parse): Support comments in the linker script
9280         file on lines by themselves and after filenames
9281
9282 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9283
9284         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
9285
9286 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9287
9288         * src/z80/peeph-z80.def: removed some peephole rules that don't
9289         work with multibyte arithmetic (fixed bug #937126)
9290         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
9291         to registers and not global variables
9292         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
9293         geniCodePreInc, geniCodePostDec, geniCodePreDec,
9294         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
9295         checking for assignments not internally generated (fixed bug #931895)
9296         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
9297         structure member (fixed bug #930072)
9298
9299 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9300
9301         * src/SDCCmain.c (linkEdit),
9302         * src/hc08/main.c (_hc08_parseOptions),
9303         * as/hc08/Makefile.in,
9304         * as/hc08/aslink.h,
9305         * as/hc08/asm.h,
9306         * as/hc08/m08pst.c,
9307         * as/hc08/lkrloc.c (relr, rele),
9308         * as/hc08/lkarea.c (lnkarea)
9309         * as/hc08/lkmain.c (afile, parse),
9310         * as/hc08/lkelf.c: support for ELF output
9311         * as/hc08/lks19.c (s19),
9312         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
9313
9314 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9315
9316         * as/mcs51/lkihx.c: Fixed bug #899105.
9317
9318 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9319
9320         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
9321         .dsp files from Unix to DOS.
9322
9323 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9324
9325         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
9326         function pointers; we have been compliant for several months now.
9327         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
9328         change that was accidently commented out
9329         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
9330         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
9331         bug #922319
9332
9333 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9334
9335         * src/hc08/gen.c: output of all of the internal debugging information
9336         is now controlled by the D() macro; it is disabled by default
9337
9338 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9339
9340         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
9341         harder to keep the same registers during a CAST iCode
9342         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
9343         long via int can be done in a single cast, if the signedness is
9344         correct.
9345         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
9346         putchar() in tinibios.c in ds390's library
9347
9348 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
9349
9350         * src/SDCCast.c (decorateType): fixed bug #898889,
9351         cast result of a literal complement too
9352         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
9353         fixed check for bitfields
9354
9355 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
9356
9357         * src/SDCCicode.c (geniCodeLogic): made it static,
9358         (geniCodeLogicAndOr): added in order to fix bug #905492,
9359         (ast2iCode): fixed bug #905492
9360         * support/regression/tests/bug-905492.c: added
9361         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
9362         (processParms): fixed bug #927659: don't copy parms, this will clear
9363         decorated flag
9364         * support/regression/tests/bug-927659.c: added
9365
9366 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
9367
9368         * src/SDCCast.c (addCast): don't cast float to char
9369         * device/lib/libsdcc.lib: added _memmove
9370
9371 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
9372
9373         * device/lib/large/Makefile: fixed parallel execution by
9374         replacing `make` by `$(MAKE)`
9375
9376 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9377
9378         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
9379         offsets (fixes bug #923936)
9380
9381 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
9382
9383         * device/lib/small/Makefile: fixed parallel execution by
9384         replacing `make` by `$(MAKE)`
9385
9386 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
9387
9388         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
9389
9390 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
9391
9392         * src/pic/gen.c (genCpl): multi-byte complements were not working.
9393         * src/regression/Makefile: Regression test was not running.
9394
9395 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
9396
9397         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
9398         complement if possible
9399         * src/SDCCval.c (valComplement),
9400         * src/SDCCicode.c (operandOperation): fixed complement of literal
9401         * support/regression/tests/onebyte.c (testComplement): added
9402
9403 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
9404
9405         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
9406         return an optimized tree; actually replace actParm with the new tree
9407         * src/SDCCast.h: added some parantheses to remove side effects
9408         * support/regression/tests/bug-920866.c
9409
9410 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
9411         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
9412         Bit operands were not being handled properly in the pic14 port.
9413         (now src/regression/add.c passes again).
9414
9415 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9416
9417         * src/SDCC.y (labeled_statement): case and default no longer require
9418         a following statement (RFE #893037)
9419
9420 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9421
9422         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
9423         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
9424         disabled (fixes bug #916294)
9425         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
9426         "mov a,acc"; patch provided by Lenny Story
9427         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
9428
9429 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9430
9431         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
9432         functions
9433         * src/ds390/gen.c (genFunction, genEndFunction),
9434         * src/ds390/ralloc.c (ds390_assignRegisters),
9435         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
9436         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
9437         pushed if there are parameters passed on the stack. Also, a cleaner
9438         way to decide if r0/r1 should be pushed/popped. (Together they fix
9439         bug #918693)
9440
9441 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9442
9443         * doc/sdccman.lyx,
9444         * device/lib/mcs51/crtpagesfr.asm,
9445         * device/lib/mcs51/crtxinit.asm,
9446         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
9447         to avoid confusion with Si Lab's SFRPAGE register.
9448
9449 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9450
9451         * src/SDCCglue.c (emitMaps): allow public sfr variables
9452         * src/SDCCglue.c (initialComments): include compiler build date
9453         with compiler version and put the timestamp of the generated
9454         assembly file on a serperate line to be less confusing.
9455         * src/port.h: added genInitStartup hook
9456         * src/avr/main.c,
9457         * src/ds390/main.c,
9458         * src/hc08/main.c,
9459         * src/pic/main.c,
9460         * src/pic16/main.c,
9461         * src/xa51/main.c,
9462         * src/z80/main.c: genInitStartup initialize as NULL (default to
9463         historical behaviour)
9464         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
9465         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
9466         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
9467         library instead of hard coding it into the compiler.
9468         * support/regression/ports/mcs51-stack-auto/spec.mk,
9469         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
9470         * device/lib/mcs51/Makefile,
9471         * device/lib/small/Makefile,
9472         * device/lib/large/Makefile,
9473         * device/lib/mcs51/crtpagesfr.asm,
9474         * device/lib/mcs51/crtstart.asm,
9475         * device/lib/mcs51/crtxclear.asm,
9476         * device/lib/mcs51/crtxinit.asm,
9477         * device/lib/mcs51/crtclear.asm,
9478         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
9479         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
9480         and into user configurable files.
9481         * device/lib/clean.mk: clean mcs51 directory too
9482         * support/regression/tests/longlit.c: added static to T1 declaration
9483         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
9484         accesses in the initialization code
9485
9486 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9487
9488         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
9489         OSCTRIMVAL as noted in bug #916008
9490
9491 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9492
9493         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
9494         in loops with multiple exits (reported as incorrect registers
9495         used by Martin Helmling in Sdcc-user list)
9496
9497 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9498
9499         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
9500         made ds390 register extensions look less like error messages
9501
9502 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9503
9504         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
9505         reported by Adam Wozniak in Sdcc-user list
9506
9507 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
9508
9509         * src/SDCCast.c (decorateType): fixed with bug and promotion in
9510         arithmetic optimizations, added debug output
9511
9512 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
9513
9514         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
9515         * sdcc.spec: updated and split sdcc into 3 rpms
9516         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
9517         needed for literals of LEFT_OP and '+'
9518         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
9519         introduced RESULT_TYPE_NOPROM
9520         (geniCodeMultiply): fixed logic for decision if mul is optimized to
9521         left shift
9522         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
9523         limited promotion to int only for '*'
9524         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
9525
9526 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
9527
9528         * src/pic16/gen.c (genSkip),
9529         (genc16bit2lit), (gencjneshort): commented out
9530         (is_LitOp): new helper function, checks operand type
9531         (genCmpEq): rewritten
9532
9533 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
9534
9535         * support/regression/tests/bug-908454.c: added
9536
9537 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
9538
9539         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
9540         * src/SDCCicode.c (usualBinaryConversions): op needs int type
9541         (geniCodeCast): cosmetic, don't preserve bit storage class
9542         (geniCodeLeftShift): added promotion
9543         (geniCodeLogic): fixed regression
9544         * src/SDCCsymt.c (computeTypeOr): accept bits too
9545         (compareType): 2nd part of fix for bug #908454, needed for bitfields
9546
9547 2004-03-07  Borut Razem <borut.razem AT siol.net>
9548
9549         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
9550
9551 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
9552
9553         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
9554         version of pic16_genPackRegisters which does not check if ic is a
9555         CAST operator,
9556         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
9557         function cause string1.c regression test fails
9558
9559 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
9560
9561         * sim/ucsim/configure.in,
9562         * sim/ucsim/configure,
9563         * sim/ucsim/doc/Makefile.in: use docdir
9564         * src/SDCC.y: fixed sbit atrributes
9565         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
9566         * src/SDCCast.c (decorateType): |^& need special promotion handling
9567         * src/SDCCast.h,
9568         * src/SDCCsymt.h: moved definition of RESULT_TYPE
9569         * src/SDCCsymt.h (computeType),
9570         * src/SDCCicode.c: computeType() needs op
9571         * src/SDCCsymt.c (checkTypeSanity),
9572         * doc/sddman.lyx: "plain" bitfields are unsigned
9573         * src/SDCCsymt.c (computeTypeOr): added
9574         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
9575         |^& ops
9576         * src/SDCCval.c (val*): computeType() needs op
9577         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
9578         * support/regression/tests/onebyte.c: added tests for |^&
9579
9580 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
9581
9582         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
9583         for writing icode into asm output.
9584
9585 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
9586
9587         * src/pic16/device.c: added some debug lines enabled
9588         with macro DEBUG_CHECK,
9589         * src/pic16/genarith.c: more debug in genPlus,
9590         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
9591         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
9592         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
9593         * (aopForSym): onStack symbols are re-placed in data memspace,
9594         and onStack flag is cleared,
9595         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
9596         copy temporary pcodeop,
9597         * (genPcall): added warning for not updating PCLATU,
9598         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
9599         always true for pic16 port,
9600         * (genMultOneWord): NEW, supports integer multiplication,
9601         * (genMult): modified to call genMultOneWord,
9602         * (ifxForOp): added warning when return NULL,
9603         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
9604         flag is set before call to operandFromSymbol for implicit
9605         added structures,
9606         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
9607         options.intlong_rent are set by default,
9608         * (_hasNativeMulFor): modified to allow port generation of integer
9609         multiplication,
9610         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
9611         set regtype to REG_SFR for all registers, restricting seting the
9612         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
9613
9614 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9615
9616         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
9617         more than 500 times in the regression tests
9618
9619 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9620
9621         * support/Util/SDCCerr.h,
9622         * support/Util/SDCCerr.c,
9623         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
9624         enumerator_list),
9625         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
9626         for symbol conflicts.
9627         * support/valdiags/tests/enum.c,
9628         * support/valdiags/tests/tentdecl.c,
9629         * support/valdiags/tests/struct.c: expect possible error messages
9630         referring to original symbol definitions.
9631         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
9632         * src/SDCCsymt.h,
9633         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
9634
9635 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
9636
9637         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
9638
9639 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
9640
9641         * src/pic16/ralloc.c (newReg): fixed bug #908929
9642
9643 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9644
9645         * src/ds390/gen.c: added missing #include "main.h"
9646
9647 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
9648
9649         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
9650         checking if symbol is already in set,
9651         * src/pic16/device.h: prototype for checkAddSym,
9652         * src/pic16/gen.c: (_G): added entry interruptvector,
9653         * (assignResultValue): removed some commented out lines,
9654         * (genFunction): check for ISR via sym->type, absolute section for
9655         interrupt code is created via a new pBlock, the goto instruction is
9656         placed now correctly at the interrupt vector position, changed all
9657         references from ivec to _G.interruptvector,
9658         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
9659         is the interrupt is a high priority one, same for return from ISR,
9660         * src/pic16/glue.c: changed all calls of addSetHead for publics and
9661         externs to calls of checkAddSym,
9662         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
9663         pic16_pcode_verbose flag is set,
9664         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
9665         * src/pic16/pcoderegs.c: message about how many registers are saved
9666         will only be emitted if pic16_pcode_verbose flag is set,
9667
9668 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9669
9670         * src/ds390/ralloc.h,
9671         * src/ds390/ralloc.c (ds390_regWithIdx),
9672         * src/ds390/gen.c (emitcode),
9673         * src/ds390/main.h,
9674         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
9675         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
9676         ds390operandCompare, getRegsRead, getRegsWritten,
9677         initializeAsmLineNode): customized instruction size calculation for
9678         ds390, started basis for some register optimizations
9679         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
9680         corresponding assembly output
9681         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
9682         missing push/pop of r0/r1. Optimized push/pops
9683
9684 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9685
9686         * src/mcs51/main.c (instructionSize): fixed ACALL size
9687         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
9688
9689 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
9690
9691         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
9692         the sorting of rlist with NULL elements
9693         * (print_idataType, print_idata): NEW to create idata sections
9694         * src/pic16/device.h: idataSymSet new variable
9695         * src/pic16/gen.c (genFunction): fixed some bugs in string
9696         comparing, improved the absolute section creation for ISRs,
9697         added FSR0L/FSR0H in registers that are saved in an ISR,
9698         * (genInline): fixed the processing of inline snippets,
9699         now they undergo no process by the peephole optimizer
9700         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
9701         are placed in idataSymSet,
9702         * (pic16emitStaticSeg): extern symbols are added in externs,
9703         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
9704         switching when aboslute variables are placed in access bank memory
9705         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
9706         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
9707         commented out with #if,
9708         * (pic16_packRegisters): reintroduce the check for CAST because some
9709         symbols are not correctly handled,
9710         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
9711         pCodeInstruction instead of pCode,
9712         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
9713         pCodeAsmDir definition,
9714         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
9715         directive, then the argument directive is emitted without the leading
9716         tab, hack for inline labels which must be in the first column,
9717         * (compareLabel,pic16_findNextInstruction),
9718         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
9719         * (insertBankSwitch): modified for the new pCodeAsmDir,
9720
9721 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9722         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
9723
9724         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
9725         instance,
9726         * (pushSide): commented out with #if,
9727         * (assignResultValue): fixed some typos in saving
9728         registers,
9729         * (genPcall): FIXED and sync'ed with genCall,
9730         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
9731         * (genNearPointerGet): fixed to handle some more cases,
9732         implementation scheme via table reads,
9733         * (genConstPointerGet): modified to access code memory correct,
9734         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
9735         and improved to handle some cases
9736         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
9737         instead of "RETLW" for init data
9738         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
9739         not IN_DIRSPACE, work around to reduce bank switching when aboslute
9740         variables are placed in access bank memory (<0x80 and >=0xf80),
9741         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
9742         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
9743         TBLWT_POSTDEC,TBLWT_PREINC
9744         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
9745         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
9746         directives
9747         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
9748         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
9749         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
9750         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
9751
9752 2004-02-29  Borut Razem <borut.razem AT siol.net>
9753
9754         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
9755         support/Util/findme.h, support/Util/system.h: enhance binary relative
9756         search for lib and include by using findProgramPath()
9757
9758 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9759
9760         * src/SDCCpeeph.h,
9761         * src/SDCCpeeph.c (pcDistance),
9762         * src/port.h,
9763         * src/mcs51/ralloc.h,
9764         * src/mcs51/ralloc.c (mcs51_regWithIdx),
9765         * src/mcs51/main.h,
9766         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
9767         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
9768         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
9769         size calculation port specific, started basis for some register
9770         optimizations
9771         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
9772         missing push/pop of r0/r1. Optimized push/pops
9773         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
9774         * device/lib/_modsint.c (_modsint),
9775         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
9776         and stack version so regression tests pass
9777
9778 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
9779
9780         * src/Makefile.in (dep): include SLIBOBJS in dependency check
9781         * src/SDCCast.c (decorateType): catch another small optimization
9782         with '?' operator
9783         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
9784         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
9785         modified to finally use computeType() all over SDCC,
9786         see Feature Request #877103
9787         * src/SDCCval.h: cosmetic
9788         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
9789         valCompare(); regression tested in muldiv.c
9790         * support/regression/tests/muldiv.c (testMod): mod sign follows
9791         dividend only
9792
9793 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
9794
9795         * src/SDCCast.c (decorateType): fixed bug #902362
9796         * doc/INSTALL.txt: fixed install instructions for win32
9797
9798 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
9799
9800         * device/include/Makefile.in (install): fixed by replacing spaces
9801         by tabs
9802         * doc/README.txt,
9803         * doc/INSTALL.txt: updated for release
9804         * doc/sdccman.lyx: added warning for --xstack being buggy
9805
9806 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
9807
9808         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
9809         to eliminate build warnings.
9810         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
9811
9812 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
9813            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9814
9815         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
9816         removed -penable-stack, added comment for stack pragma, added
9817         warning for not initializing the stack/frame registers, removed
9818         comment at interrupts section
9819
9820         Stack is made permanent, there is no ability to disable stack usage.
9821         * src/pic16/device.h,
9822         * src/pic16/device.c: removed all references to USE_STACK macro,
9823         * src/pic16/device.c (pic16_dump_section): when no elements in
9824         rlist, free rlist before return,
9825         * (pic16_dump_int_registers): NEW, internal registers are a new set
9826         of general purpose registers reused by each function,
9827         * (checkAddReg): returns 1 if registers is added to set,
9828         * (pic16_groupRegistersInSection): when a registers is of type
9829         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
9830         * src/pic16/device.h: memRange and Assigned Memory are deleted,
9831         SRCASECMP macro is moved here from device.c
9832         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
9833         PO_PCLATU, PO_PRODL, PO_PRODH,
9834         * (pic16_pCodeOpType, genMinus,
9835         changed compares to "a" register, with AOP_ACC,
9836         * (pic16_genPlus): fixed some bugs and indented properly,
9837         * (pic16_addSign): changed size to size+offset in the MOVWF
9838         instruction,
9839         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
9840         multiply 8-bit operand by literal, result is 8-bit,
9841         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
9842         multiply 2 8-bit operand, result is 8-bit,
9843         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
9844         genUMult8X*_16,
9845         * src/pic16/gen.c: changed accUse to contain WREG only,
9846         * (pic16_emitcomment): renamed to pic16_emitpcomment,
9847         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
9848         true, do not use immediate addressing any more unless sym is a
9849         pointer in codespace,
9850         * (aopForRemat): do not use immediate addressing when symbol not in
9851         codespace and when symbol's address is requested,
9852         * (aopOp): for-loop in if(sym->accUse) is modified for the new
9853         accUse size (= 1),
9854         * (aopGet): added case for AOP_ACC and don't return "accumulator
9855         bug" but WREG instead,
9856         * (popGetTempReg): pushes contents of temporary register in stack,
9857         * (popReleaseTempReg): pops contents of temporary register from
9858         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
9859         * (pic16_popGet): separated case AOP_ACC to return register WREG
9860         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
9861         or PO_IMMEDIATE and initializes their instance/offset appropriately,
9862         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
9863         the use of immediate pointers to certain cases only.
9864
9865         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
9866         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
9867         * (assignResultValue, genCall, genRet): modified to use the new
9868         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
9869         genPcall is still broken,
9870         * (genFunction): added code to create 'A' type pBlocks when
9871         interrupt functions are generated, code not extensively tested yet,
9872         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
9873         * (genEndFunction): modified so ISRs pop stored registers from stack,
9874         * (genMultOneByte): cleanup,
9875         * (AccRsh): added flag andmask, to and result with appropriate mask,
9876         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
9877         * (genDataPointerGet): fixed and reenabled its use,
9878         * (genNearDataPointerGet): bugs fixed,
9879         * (genDataPointerSet): bugs fixed,
9880         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
9881         pic16_DumpSymbol, pic16_DumpOp,
9882         * src/pic16/genutils.h: function prototypes for the above functions,
9883         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
9884         pointers,
9885         * (pic16emitRegularMap): many many many improvements, but needs a
9886         major cleanup,
9887         * src/pic16/main.c: enable_stack in pic16_options is removed,
9888         * (_pic16_parseOptions): removed command line options -penable-stack,
9889         * (_process_pragma): emit stack symbol only when stack pragma is
9890         processed,
9891         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
9892         redirected to FSR0L/FSR0H pair,
9893         * (pic16_get_op, pic16_get_op2): modifications and improvements,
9894         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
9895         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
9896         for immediates,
9897         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
9898         * (dumpPicOptype): NEW,
9899         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
9900         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
9901         with movff instruction,
9902         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
9903         added pic16_int_regs, some packRegsFor* functions are commented out,
9904         because produce errors,
9905         * src/pic16/NOTES: minor modifications
9906
9907 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9908
9909         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
9910         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
9911         --pack-iram.
9912         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
9913         * as/mcs51/lkaomf51.c: fixed bug #895763
9914
9915 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
9916
9917         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
9918
9919 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9920
9921         * doc/sdccman.lyx: added details about the HC08 storage classes and
9922         interrupts, fixed the register usage info for z80 & gbz80
9923
9924 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
9925
9926         * doc/sdccman.lyx: added more pic16 port documentation
9927         * device/include/pic16/: added header pic18fregs.h
9928
9929 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
9930
9931         * doc/sdccman.lyx: added Vangelis' contribution
9932
9933 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9934
9935         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
9936         extend to the next CALL or PCALL, not just to the next CALL.
9937
9938 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
9939
9940         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
9941
9942 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9943
9944         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
9945         bug #895752 and a better fix for bug #716790
9946
9947 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9948
9949         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
9950
9951 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9952
9953         * doc/sdccman.lyx: minor changes, minor changed
9954
9955 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
9956
9957         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
9958         which can't handle SDCC_NEWONEBYTEOPS,
9959         (geniCodeMultiply): removed conversion from mult to shift for pic14
9960         and pic16
9961
9962 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9963
9964         * src/hc08/gen.h,
9965         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
9966         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
9967         thus fixing bug #895406
9968
9969 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
9970
9971         * device/lib/_modsint.c,
9972         * device/lib/_modslong.c: sign follows divisor only
9973         * src/hc08/gen.c (genMultOneByte): if result size is 1,
9974         signs or signedness can be ignored
9975         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
9976         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
9977         added optimization for IFX,
9978         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
9979         arguments;
9980         reenabled optimization for IFX, which was removed on 2004-01-11
9981         * src/SDCCast.h: added return type IFX
9982         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
9983         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
9984         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
9985         SDCC_OLDONEBYTEOPS selects the old behaviour
9986         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
9987         changed again and commented promotion rule
9988         * src/SDCCval.c (valDiv): promotion no longer necessary
9989         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
9990         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
9991         rewritten
9992         * support/regression/tests/onebyte.c: added
9993
9994 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
9995
9996         * gen.c (genInline): reverted to old code for assemnling inline
9997         code because of bug reported James Chadd
9998
9999 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
10000
10001         * ralloc.h: missing declarations from previous patch,
10002         seems that patch for ralloc.h was never applied, fixed
10003
10004 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
10005            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
10006
10007         * pcode.c,
10008         * pcode.h,
10009         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
10010         indirect addressing. Marked FSR0 as deprecated
10011         * gen.c (pointerCode): commented out, not needed now
10012         (pic16_popGet2p): new MOVFF helper function
10013         (genGenPointerGet),
10014         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
10015         (shiftRLong): removed duplicate debugging info
10016
10017 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10018
10019         * src/ds390/gen.c (genNearPointerGet),
10020         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
10021         optimization with bits, but not bitfields.
10022         * src/ds390/ralloc.c (packRegisters),
10023         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
10024
10025 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
10026
10027         * src/SDCCcse.c (algebraicOpts): copy operands before modification
10028
10029 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10030
10031         * src/SDCCsymt.h,
10032         * src/SDCCicode.c (operandFromSymbol),
10033         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
10034         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
10035         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
10036         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
10037         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
10038         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
10039         bug #892038
10040         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
10041         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
10042         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
10043         * src/SDCCsymt.c (newSymbol),
10044         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
10045         enumerator_list),
10046         * src/SDCCval.h,
10047         * src/SDCCval.c (newiList): fixed bug #885705
10048
10049 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10050
10051         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
10052         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
10053
10054 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10055
10056         * device/include/c8051f120.h,
10057         * device/include/c8051f300.h,
10058         * device/include/c8051f310.h: added/updated header files for Silicon
10059         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
10060         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
10061         in new section Submitting patches
10062
10063 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10064
10065         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
10066         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10067         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10068         genGenPointerSet),
10069         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
10070         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10071         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10072         genGenPointerSet),
10073         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
10074         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10075         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10076         genGenPointerSet),
10077         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
10078         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10079         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10080         genGenPointerSet): fixed bug #892400
10081         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
10082         to eliminate build warnings.
10083         * src/SDCCast.c (processParms),
10084         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
10085         fixed bug 751859
10086         * support/valdiag/valdiag.py: added GCC to the list of defines active
10087         when compiling with gcc
10088
10089 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10090
10091         * support/Util/SDCCerr.h,
10092         * support/Util/SDCCerr.c,
10093         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
10094         with an incomplete type (fixed bug #883734)
10095         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
10096
10097 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10098
10099         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
10100
10101 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10102
10103         * src/SDCCast.c (decorateType),
10104         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
10105         function pointer implementation
10106         * support/regression/tests/funptrs.c: added tests to verify both forms
10107         of function pointers work correctly. Added tests to verify parameters
10108         are passed in the correct order.
10109
10110 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
10111
10112         * device.c (regCompare): registers are sorted by ascending
10113         address and increasing size,
10114         * main.c (_pic16_finaliseOptions): removed the declaration
10115         of compiler macro MCU. Now a macro of the format pic18fxxxx
10116         will be defined from the command line
10117
10118 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
10119             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
10120
10121         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
10122         PCOP_RLCF was overwritten!
10123         * gen.c (genSkip): commented out calls to pic16_emitcode,
10124         * (genCmpEQ): fixed "long" compares, only high word did get compared,
10125         * (genlshTwo),
10126         * (genRRC): added debugging info,
10127         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
10128         overwritten while shifting,
10129         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
10130         overwritten while shifting,
10131         * (AccLsh),
10132         * (AccRsh),
10133         * (shiftLLeftOrResult),
10134         * (shiftRLeftOrResult),
10135         * (shiftRLong),
10136         * (shiftLLong): Implemented with pic16_emitpcode
10137         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
10138         * (genLeftShift): Fixed bug, operand for shift by variable always
10139         was "and"ed with 0x0f,
10140         * (genLeftShiftLiteral),
10141         * (genrshTwo),
10142         * (genRightShiftLiteral): added debugging info,
10143         * (genrshFour): added comment,
10144         * (genRightShift): determined signedness from operand "left"
10145         instead of "result"
10146
10147 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10148
10149         * src/SDCCicode.c (geniCodeParms),
10150         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
10151         function pointers, fixed function pointer bugs #861242 and #861896
10152
10153 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10154
10155         * device/include/c8051f000.h,
10156         * device/include/c8051f120.h,
10157         * device/include/c8051f300.h: added header files for Silicon
10158         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
10159
10160 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
10161
10162         * src/SDCCast.c (processParams): added new type flow and restructured
10163         (gatherAutoInit): added new type flow
10164         (addCast): cosmetic changes
10165         (getLeftResultType): added new type flow for array indices, patch
10166         provided by Stas, see FR #877103
10167         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
10168         array index patch by Stas
10169         * src/SDCCast.h: added prototype getResultTypeFromType()
10170         * src/SDCCval.h,
10171         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
10172         * src/pic/glue.c (pic14emitStaticSeg),
10173         * src/pic16/glue.c (pic16emitStaticSeg),
10174         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
10175         for initialization of symbols
10176         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
10177         * support/Util/SDCCerr.h:
10178         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
10179         * .version: bumped version number to 2.3.8
10180         * device/include/Makefile.in (install),
10181         * doc/Makefile (install): changed to 'rm `find ...`' construct to
10182         avoid warnings
10183
10184 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
10185
10186         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
10187         Slade Rich fixed an optimization bug
10188         * src/pic/pcodepeep.c,
10189         * src/pic/pcoderegs.c
10190         * doc/Makefile (install): added test for directory
10191
10192 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10193
10194         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
10195         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
10196         * src/pic/ralloc.c (getRegPtr, getRegGpr),
10197         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
10198         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
10199         * as/mcs51/asexpr.c (term),
10200         * as/hc08/asexpr.c (term): fixed bug #887146
10201
10202 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10203
10204         * src/z80/gen.c (genMult): handle single byte result product
10205         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
10206         DUMMY_READ_VOLATILE (fixed bug #886367)
10207
10208 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
10209
10210         * support/regression/tests/libmullong.c: fixed logic, on little endian
10211         hosts we ended without a mullong_wrapper()
10212
10213 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10214
10215         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
10216         virus/worm forged address usage.
10217
10218 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
10219
10220         Fixed promotion, it should be done on AST level:
10221         * src/SDCCast.c (addCast): added promotion to int
10222         (decorateType): updated call to upCast()
10223         * src/SDCCicode.c (geniCodeLeftShift): removed call to
10224         usualUnaryConversions()
10225
10226 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
10227
10228         * support/regression/tests/literalop.c (mulWrapper): Added a
10229         wrapper to remove integer overflow warnings.
10230
10231         * support/regression/tests/float_trans.c: Made work on host.
10232
10233         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
10234         location of sz80.
10235
10236         * support/regression/generate-cases.py (main): Changed from inline
10237         to a main method.
10238
10239         * doc/Makefile (install): Changed to depth first to get rid of
10240         missing directory install warning.
10241
10242         * as/Makefile (install-doc): Made work on Mac.
10243
10244 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
10245
10246         * src/SDCCast.c: added an additional type flow in decorateType() of
10247         opposite direction, see feature request #860006; it's enabled at runtime
10248         by setting the environment variable SDCC_NEWTYPEFLOW
10249         * src/SDCCast.h: changed prototype of decorateType()
10250         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
10251         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
10252         'char' to 'int' can be omitted, if both operands are 'unsigned char';
10253         see feature request #877103
10254         * src/SDCCval.c: updated call of decorateType()
10255         (valBitwise): fixed bug #882876
10256         (valMinus): added promotion
10257         (valLogicAndOr): result is unsigned
10258         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
10259         * src/SDCCsymt.c (computeType),
10260         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
10261         must not cause an unsigned operation
10262         * src/pic/glue (pic14emitRegularMap),
10263         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
10264
10265 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
10266
10267         * src/pic/pcode.c (PCodeID): commented out left over debug code
10268
10269 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
10270
10271         * support/valdiag/tests/overflow.c: added shift tests
10272         * src/pic/device.c,
10273         * src/pic/gen.c,
10274         * src/pic/gen.h,
10275         * src/pic/glue.c,
10276         * src/pic/main.c,
10277         * src/pic/pcode.c,
10278         * src/pic/pcode.h,
10279         * src/pic/pcodepeep.c,
10280         * src/pic/pcoderegs.c,
10281         * src/pic/ralloc.c,
10282         * src/pic/ralloc.h: applied patch from Slade Rich;
10283         added support for multiple code pages and multiple RAM banks on the
10284         PIC 14 port. The ASM files now no longer simply assume all the
10285         code / RAM are in the same page / bank. This means the linker can
10286         safely allocate code/RAM of separate ASM files to different pages/banks.
10287         * doc/sdccman.lyx: added Slade's tips
10288         * src/mcs51/peeph.def: fixed bug #880768
10289
10290 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10291
10292         * src/hc08/ralloc.c (rematStr): fixed bug #879282
10293         * src/SDCCast.c (decorateType): fixed bug #880197
10294
10295 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
10296
10297         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
10298         getopt.h.
10299
10300         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
10301         strtof is not part of C89 and isn't included with Mac OS X.
10302
10303 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10304
10305         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
10306         shiftL2Left2Result): fixed bug #879326
10307         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
10308         (genMultOneByte): fixed bug in signed vs unsigned multiplication
10309         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
10310         address fetch for clr instruction
10311         * device/lib/hc08/_mulint.c: created optimized assembly version
10312         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
10313
10314 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
10315
10316         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
10317         proposed in FR #877103
10318
10319 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
10320
10321         * src/SDCCval.c (cheapestVal): added missing checks
10322         * src/SDCCicode.c (usualBinaryConversions): fixed condition
10323         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
10324
10325 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
10326
10327         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
10328         equal operands
10329
10330 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
10331
10332         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
10333         loaded with the linker search paths (-L arguments) and the libraries
10334         to be linked with the current source (-l arguments). Changes
10335         currently will affect only the pic16 port.
10336         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
10337         include path the port specific paths and port specific libraries,
10338         * gplink command now contains the $3 argument,
10339         * src/pic16/device.h,
10340         * src/pic16/device.c,: structure PIC_device is made public and
10341         renamed to PIC16_device, the same for variable Pics which is renamed
10342         to Pics16. Updated all references to them.
10343         * src/pic16/glue.c (pic16glue): corrected bug with code
10344         initialization which bypassed the variable initializations block.
10345
10346         * device/lib/pic16/Makefile.rules: removed --penable-stack from
10347         COMPILE_FLAGS and added the --nostdinc option
10348
10349 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10350
10351         * device/include/mc68hc908jb8.h: Register defs for another member
10352         of the hc08 family. Contributed by Bjorn Bringert - thanks!
10353
10354 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
10355
10356         Documenting changes from previous commits.
10357         * configure.in (version 1.56),
10358         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
10359         when generating output files to configure the pic16 library,
10360         but now I've commented it out, since gputils aren't installed in the
10361         SF compile farm, so library won't compile
10362
10363         * device/lib/Makefile.in (version 1.56): initially I've added in
10364         target 'all' the prerequestive 'model-pic16' so it compiled the
10365         pic16 library, but now I've commented it out for the same reasons
10366         above,
10367         * added targets 'model-pic16' and 'objects-pic16' to compile the
10368         library
10369         * added target 'port-specific-objects-pic16' to handle the
10370         generated libraries and copy them into the build/ directory
10371         * added target 'clean-intermediate-pic16' to clean intermediate
10372         files into pic16 directory
10373         * in target 'installdirs' added line to create directory pic16 in
10374         the installation path
10375
10376         * device/include/Makefile.in (version 1.11): in target 'install'
10377         added lines to copy all header files to installation path,
10378         * in target 'installdirs' added line create directory for pic16
10379         headers in the installation path
10380
10381 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
10382
10383         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
10384          a function call
10385
10386 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
10387
10388         * configure,
10389         * device/lib/configure.in,
10390         * device/lib/configure: fixed for autoconf 2.57
10391
10392 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10393
10394         * src/z80/main.c (_parseOptions): fixed the portmode= command line
10395         option so that it actually works. Made it specific to the z80, since
10396         the gbz80 doesn't have these kinds of I/O ports.
10397
10398 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10399
10400         * device/include/z180.h,
10401         * device/lib/_memcpy.c,
10402         * device/lib/_memmove.c,
10403         * device/lib/_mulint.c,
10404         * device/lib/ser_ir.c,
10405         * device/lib/ser_ir_cts_rts.c,
10406         * device/lib/_strcmp.c,
10407         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
10408         * src/z80/main.c (_process_pragma): add support for pragmas bank and
10409         portmode; added deprecation warning for bank= and protmode= forms.
10410         Also, guard against buffer overflow.
10411         * src/z80/gen.c (aopGet): generate better code for sfr banked read
10412
10413 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10414
10415         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
10416         changed interrupt vector table generation to only emit declared vectors.
10417         * device/include/Makefile.in: added missing backslash
10418         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
10419
10420 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
10421
10422         Mainly changes to support compilation of the device libraries
10423         * src/pic16/device.c: stack is allocated via symbol and not
10424         via literal number. The symbol is placed in the corresponding
10425         position of the data ram
10426         * (pic16_dump_section): relocatable and absolute uninitialized
10427         data are now emitted in sorted order to reduce section naming,
10428         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
10429         weren't marked as being in the access bank,
10430
10431 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
10432
10433         Added portion of GNU PIC Library under the directory
10434         device/include/pic16 and device/lib/pic16. These files
10435         contain the declarations of SFRs for the PIC18Fxx2 devices.
10436         The directory is initialized via configure from toplevel.
10437
10438 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
10439
10440         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
10441         the spilllocations to be compared correctly
10442
10443 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
10444
10445         * src/SDCCast.c (decorateType): fixed bug introduced today
10446
10447 2004-01-12  Borut Razem <borut.razem AT siol.net>
10448
10449         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
10450         doc/sdccman.lyx: upper case pragmas are deprecated
10451
10452 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
10453
10454         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
10455         in simpler and even better code
10456
10457 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
10458
10459         * src/SDCCicode.c (operandOperation): fixed bug #874819
10460         * src/SDCCast.c (decorateType): fixed
10461         char foo (unsigned long ul) { return ul > 0; }
10462
10463 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10464
10465         * doc/sdccman.lyx: Moved and added some sections, small changes
10466         all over. Telling LaTeX to be less strict with word spacing
10467         to better keep the right margin. Changed some notes about
10468         maintainance of the ports in section 3.2.1 - is it OK like this?
10469
10470 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
10471
10472         SDCC source changes:
10473         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
10474         convilong): modified to inform the pic16 port that builtin functions
10475         are external
10476
10477         PIC16 PORT specific changes:
10478         * src/pic16/device.c pic16_dump_equates() added,
10479         processor registers declared internally by the port are emitted in
10480         the translation as equates,
10481         * src/pic16/gen.c: inline code is passed unprocessed to the
10482         translation,
10483         * (pic16_popGetLit2): fnuction modified to take second operand as
10484         pCodeOp pointer and not as literal,
10485         * (popRegFromIdx): prefixed with pic16_,
10486         * (pic16_popCombine2): modified to receive already allocated pCode
10487         operands,
10488         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
10489         * (genFunction): initializes local stack frame and pushes on stack
10490         all the registers used by this function,
10491         * (genEndFunction): restores all registers from stack and restores
10492         stack frame,
10493         * src/pic16/glue.c (pic16emitRegularMap): various changes and
10494         improvements,
10495         * (pic16glue): changed the program startup sequence,
10496         * added new dbName code 'A' for functions placed in absolute section
10497         * src/pic16/main.c: added function attribute _naked,
10498         * added pragma 'code' to place a fnuction at an absolute address,
10499         * added command line arguments --debug-ralloc and --pcode-verbose,
10500         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
10501         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
10502         * (pic16_newpCodeOpLit2): modified to take the second operand as
10503         pCodeOp pointer,
10504         * (pic16_printpBlock): modified to emit each function in a separate
10505         section,
10506         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
10507         UPPER for immediate operands,
10508         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
10509         instruction,
10510         * src/pic16/peeph.def: all peepholes with movff are commented out,
10511         because there is a problem in the pcode peep optimizer,
10512         * src/pic16/ralloc.c: the register allocator can now reuse local
10513         function symbols for another function. This saves register usage.
10514         * src/pic16/ralloc.h: added flag isLocal in structure regs,
10515
10516         Added file src/pic16/NOTES with information about program writing on
10517         the current port version.
10518
10519 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10520
10521         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
10522         and peephole 252 (array access)
10523
10524 2004-01-09  Borut Razem <borut.razem AT siol.net>
10525
10526         * src/SDCCmain.c : fixed #872250: -l command line defined library
10527           files are scanned before standard library files
10528
10529 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10530
10531         * src/SDCCast.c (decorateType): fixed bug #874046
10532
10533 2004-01-09  Borut Razem <borut.razem AT siol.net>
10534
10535         * support/scripts/sdcc.nsi: remove previous installation
10536
10537 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10538
10539         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
10540         bytes for last interrupt vector (mcs51)
10541         * sdcc.spec: fixed typo
10542
10543 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10544
10545         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
10546         gen51Code): more efficient parameter receive for --model-large
10547         ("bug" #845294)
10548
10549 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10550
10551         * src/ds390/main.c,
10552         * src/z80/main.c: added missed needLinkerScript flags (more than
10553         one port structure defined in these file)
10554         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
10555         bug #795325
10556
10557 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
10558
10559         * src/SDCCmain.c: removed various references to DEFAULT_PORT
10560         * src/port.h: added flag needLinkerScript in port->linker
10561         structure to inform whether to create a .lnk file or not,
10562         * src/avr/main.c,
10563         * src/ds390/main.c,
10564         * src/hc08/main.c,
10565         * src/mcs51/main.c,
10566         * src/pic/main.c,
10567         * src/pic16/main.c,
10568         * src/xa51/main.c,
10569         * src/z80/main.c: changed appropriately to configure
10570         needLinkerScript flag
10571         * src/pic/gen.c,
10572         * src/pic16/gen.c (genAddrOf): fixed bug #863624
10573         * src/pic/glue.c: added variable udata_section_name to
10574         override default uninitialized data segment definition for
10575         devices only with SHAREBANK memory (reported from Erik Epetrich)
10576         * (pic14emitOverlay): modified to emit a commented overlay segment
10577         directive when no overlay data exist
10578         * (picglue): modified to emit uninitialized data segment
10579         according to udata_section_name
10580         * src/pic/main.c (_pic14_parseOptions): added command line
10581         options --udata-section-name=[name] to override default
10582         udata definition name
10583         * modified _linkCmd and _asmCmd to include compiler passed
10584         arguments via -W option
10585         * src/pic16/main.c: added $l in _asmCmd, changed extension for
10586         object file from '.rel' to '.o' in port->linker structure,
10587         changed size of fptr from 2 to 3 in port structure
10588
10589 2004-01-07  Borut Razem <borut.razem AT siol.net>
10590
10591         * support/scripts/sdcc.nsi: update PATH
10592         * support/scripts/sdcc.ico: craeted
10593
10594 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
10595
10596         * device/include/Makefile.in: fix install
10597         * doc/Makefile: fix install
10598
10599 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10600
10601         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
10602         in bug #860505
10603         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
10604         how the function variable allocation summary is displayed; also
10605         include information about variables allocated to the overlay
10606         segment
10607
10608 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10609
10610         * as/mcs51/lkmain.c: Help about -Y option
10611         * as/mcs51/lkarea.c: Fixed gcc warnings
10612
10613 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
10614
10615         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
10616         fixed warning
10617         * support/valdiag/tests/overflow.c: added
10618         * src/SDCCast.c (decorateType),
10619         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
10620         LEFT_OP (left shift)
10621
10622 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10623
10624         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
10625         (default behaviour).
10626
10627 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10628
10629         A python script to validate compiler diagnostic messages. It can be
10630         used to verify that sdcc complains about bad c source code and
10631         gives a good location of the error.
10632         * support/valdiag/Makefile,
10633         * support/valdiag/valdiag.py,
10634         * support/valdiag/tests/*
10635
10636 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10637
10638         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
10639         * src/SDCCsymt.c (newEnumType),
10640         * src/SDCCsymt.h
10641         * support/Util/SDCCerr.c,
10642         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
10643         enum related bugs.
10644         * support/regression/tests/enum.c: added test for enum values that
10645         require at least 2 bytes of storage.
10646
10647 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
10648
10649         * src/common.h: added ifndef/define/endif macros
10650         around the header file.
10651         Bug reported from Jesus Calvino-Fraga
10652
10653 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
10654
10655         * sdcc.spec: updated
10656         * device/include/Makefile.in: don't install CVS directories
10657         * device/lib/Makefile.in: added removal of CVS directories after install
10658         * doc/Makefile: fixed install, added local_icons
10659         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
10660         * src/mcs51/gen.c (genRightShift): fixed bug #870788
10661         * src/ds390/gen.c (genRightShift): fixed bug #870788
10662         * src/SDCCast.c (decorateType): fixed bug #870781
10663
10664 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
10665
10666         PIC16 port related changes:
10667         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
10668         added variable stackPos,
10669
10670         * gen.c: genCall, assignResultValue: added support for
10671         pushing/retrieving function parameters to/from stack,
10672         genFunction,genEndFunction: setup stack frame for the
10673         generated function,
10674         genAddrOf: will be changed according to bug 863624
10675
10676         * added files genutils.c and genutils.h which contain gen*
10677         debugged and optimised functions extracted from gen.c
10678
10679         * glue.c: added variable 'externs' which holds extern symbols,
10680         pic16emitRegularMap: is modified to properly handle relocatable
10681          symbols under the new scheme,
10682         pic16createInterruptVect: is modified
10683         pic16printPublics: is modified to emit 'global' assembler directives,
10684         added pic16_printExterns to print extern symbols,
10685         pic16glue: initializes stack/frame pointer in the beginning of
10686         the assembly output. Temporary hack, will be corrected later,
10687         because gplink yet does not support stack and SDCC does not
10688         yet support a type of crt0.o object to create the final binary.
10689
10690         * Removed many lines that contain 8051 legacy code.
10691         * The code is finally placed under a 'code' directive.
10692         * Added port specific options.
10693
10694         * _process_pragma: simplified since now we do not need *special*
10695         include file to define SFR registers. But a separate header
10696         will be needed. This will be developed later.
10697         * _pic16_parseOptions: added, parses port specific options:
10698         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
10699         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
10700         --preplace-udata-with=
10701
10702         * _pic16_setDefaultOptions: modified to initialize section names,
10703         but hack is temporarly out of order since it needs improvement.
10704         * _pic16_genAssemblerPreamble: configuration words are emitted by
10705         their address instead of their name. This part is incomplete and
10706         supports only the 18Fxx2 devices. Other devices will emit an error
10707         during assembly since they do not contain the same set of config
10708         registers
10709         * _pic16_genIVT: is modified,
10710
10711         * pcode.c: added definitions for some hardware registers that are needed
10712         for stack support
10713         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
10714         All PCI entries are updated. Now LFSR is supported.
10715         * Removed pic16_pciTRIS is mentioned by mdubuc in source
10716         * added pic16_newpCodeOpLit2 to support instructions with
10717         two literal arguments
10718         * pic16_pCode2str: corrected code that emits assembler instructions
10719         with two literal operands and those that have an access bit modifier
10720         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
10721         this fixes a bug which caused some labels to be lost, when an
10722         assembler directive was added, i.e. banksel,
10723         * pic16_FixRegisterBanking: improved logic that causes the insertion
10724         of bank switching,
10725         * InlineFunction: functions that are called once, are not any more
10726         inlined. This can be a port option in the future,
10727
10728         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
10729
10730         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
10731         hold the corresponding uninitialized symbols,
10732         * pic16_allocProcessorRegister: registers have explicit marked the
10733         accessBank field,
10734         * pic16_allocInternalRegister: registers are explicit marked as
10735         not used,
10736         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
10737         processing list, so bit registers were lost,
10738         *
10739
10740         * ralloc.h: added field 'accessBank' and original symbol operand
10741         in register definition,
10742         * removed the field isMapped from register definition,
10743
10744         ** Several functions have been removed from various sources:
10745         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
10746         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
10747         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
10748         pic16_assignRelocatableRegisters
10749
10750         ** others have been introduced:
10751         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
10752         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
10753
10754 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
10755
10756         * support/scripts/inc2h.pl: changed definition of BIT_AT
10757         to emit 'sbit at' instead of 'bit at'. This was a request.
10758
10759         PIC16 port related preliminary changes:
10760         * gen.c: prefixed function popRegFromString with
10761         pic16_ and all references to it corrected
10762         * pcode.c: all pic16_pc_* hardware registers prefixed
10763         with underscore (_),
10764         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
10765         * ralloc.c: newReg(): when register is REG_SFR then
10766         set address to rIdx,
10767         pic16_allocProcessorRegister(): marks register wasUsed=0
10768         pic16_writeUsedRegs(): added a call to assign processor
10769         registers via pic16_assignFixedRegisters
10770
10771 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10772
10773         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
10774         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
10775         variables in unused register banks.  Also the SSEG is placed
10776         wherever there is enough space for it, and IDATA can be anywhere
10777         in internal RAM.  For now compile using -Wl-Y[stack_size].
10778         The mem file is different for this option as well, since it
10779         makes no sense of talking about DSEG lenght.
10780
10781 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
10782
10783         * src/SDCClrange.c: fixed bug 869095 that caused segfault
10784         in certain cases, e.g. when ROM assignment, patch provided
10785         from Albert den Haan.
10786
10787 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
10788
10789         Many signedness and type propagation fixes:
10790         * src/SDCCicode.c: made geniCodeCast() static
10791         replaced SPEC_ by IS_ (cosmetic)
10792         (operandOperation): fixed div and mod operation
10793         (usualBinaryConversions): added support for promotion of char
10794         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
10795         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
10796         (geniCodeAdd): an array index will stay unsigned, even if promoted
10797         from char to int
10798         (geniCodeArray): ditto
10799         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
10800         * src/SDCCsymt.c (computeType): added more support for char;
10801         promotion of char is selectable by promoteCharToInt, fixed signedness
10802         for all cases
10803         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
10804         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
10805         * src/SDCCval (val*): replaced signedness calculation by
10806         computeType()
10807         rearranged if-branches (cosmetic)
10808         (valShift): added warning W_SHIFT_CHANGED
10809         (valCompare): fixed problem with different types
10810         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
10811         * support/regression/tests/literalop.c: added many cases
10812         * support/regression/tests/ast_constant_folding.c: changed finally to
10813         'unsigned int'
10814         * .version: new year, new version: 2.3.7
10815         * src/SDCCmain.c (main): applied patch #866468
10816         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
10817         provided by Scott Bronson
10818         * doc/sdccman.lyx: updated documentation for sdcdb
10819         updated and added chapter tips
10820
10821 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10822
10823         * src/SDCCsymt.h: missing from yesterday's commits
10824
10825 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10826
10827         * src/SDCC.y (struct_or_union_specifier),
10828         * support/Util/SDCCerr.c,
10829         * support/Util/SDCCerr.h: verify that struct & union tags are used
10830         as declared.
10831
10832 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10833
10834         * src/SDCCglobl.h: missing from yesterday's commits
10835
10836 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10837
10838         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
10839         sft_attributes, struct_declaration, parameter_declaration,
10840         type_name, start_block, declaration_list),
10841         * src/SDCC.lex (check_type): support redefinition of typedef names
10842
10843 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10844
10845         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
10846         aligned xdata arrays. Erik helped me with the if clause.
10847
10848 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10849
10850         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
10851         warning
10852
10853 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10854
10855         * src/SDCCast.h,
10856         * src/SDCCast.c (newAst_),
10857         * src/SDCCicode.h,
10858         * src/SDCCicode.c (ast2iCode, newiCode),
10859         * src/SDCCglobl.h,
10860         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
10861         expr, statement, expression_statement, selection_statement,
10862         iteration_statement, expr_opt, jump_statement): foundation for tracking
10863         sequence points
10864         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
10865         point code too)
10866
10867 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10868
10869         * support/Util/SDCCerr.c,
10870         * src/SDCCast.h,
10871         * src/SDCCast.c (createCase, createDefault, decorateType),
10872         * src/SDCClabel.c (labelUnreach),
10873         * src/SDCC.y (labeled_statement, jump_statement): More improvements
10874         to error messages.
10875         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
10876         (with thanks to Stas Sergeev)
10877         * device/include/time.h,
10878         * device/lib/time.c (CheckTime): suppress unreachable code warning
10879
10880 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10881
10882         * src/SDCCast.c (createIvalCharPtr),
10883         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
10884         bug #753752)
10885         * support/regression/tests/nullstring.c: tests for these two bugs
10886
10887 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10888
10889         * support/Util/SDCCerr.h,
10890         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
10891         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
10892         about storage class and 'at' used inside struct or union
10893         * src/SDCCBBlock.c (iCodeFromeBBlock),
10894         * src/SDCCcse.c (ifxOptimize),
10895         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
10896         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
10897         printIval, emitStaticSeg, emitOverlay),
10898         * src/SDCClabel.c (deleteIfx),
10899         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
10900         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
10901         gatherAutoInit, processParms),
10902         * support/Util/SDCCerr.h,
10903         * support/Util/SDCCerr.c (werrorfl): Support for better error location
10904         reporting for post-parse errors.
10905
10906 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10907
10908         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
10909         implicit casts via union; they don't work on big endian systems
10910         (possible fix for bug #861138)
10911
10912 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10913
10914         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
10915         * src/mcs51/main.c: fixed the fix for bug #737001
10916
10917 2003-12-15  Borut Razem <borut.razem AT siol.net>
10918
10919         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
10920
10921 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10922
10923         * support/makebin/makebin.c: put output in binary mode
10924
10925 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10926
10927         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
10928         xdata and data memory on startup. Set the environment variable
10929         SDCC_NOGENRAMCLEAR to disable this.
10930         * src/mcs51/peephole.def,
10931         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
10932         (allows non-interrupt and interrupt code to safely compete for a resource
10933         without the non-interrupt code having to disable interrupts)
10934
10935 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10936
10937         * src/SDCCicode.c (geniCodeAdd),
10938         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
10939         with valFromType if type might be a pointer and host is big endian).
10940         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
10941         types, not just integer types.
10942         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
10943         multiply defined with mismatching "at" address.
10944
10945 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10946
10947         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
10948         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
10949         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
10950         with embedded nulls (fixed bug #753752)
10951
10952 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10953
10954         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
10955         Apparently this did not see much testing (endless loop)
10956
10957 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10958
10959         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
10960
10961 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10962
10963         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
10964         gracefully handle NULL memmap pointers
10965
10966 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10967
10968         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
10969         instead of deleting the iCode when an operand is volatile
10970         * src/z80/gen.c (genDummyRead),
10971         * src/mcs51/gen.c (genDummyRead),
10972         * src/ds390/gen.c (genDummyRead),
10973         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
10974         not just IC_RIGHT
10975         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
10976         * src/SDCC.y: fixed bug #850420
10977
10978 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10979
10980         Applied z80 i/o port patch from Peter Townson and fixed some operators
10981         to better handle operands in A register.
10982         * device/include/z180.h
10983         * src/SDCC.y
10984         * src/SDCCglue.c
10985         * src/z80/gen.c
10986         * src/z80/gen.h
10987         * src/z80/main.c
10988         * src/z80/peeph-z80.def
10989         * src/z80/peeph.def
10990         * src/z80/z80.h
10991
10992 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10993
10994         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
10995
10996 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10997
10998         * device/lib/hc08/_mullong.c: Removed extra #endif
10999
11000 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11001
11002         * sim/ucsim/hc08.src/inst.cc,
11003         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
11004         carries from x to h
11005         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
11006         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
11007         * device/include/stdarg.h: fixed varargs for hc08
11008         * device/lib/Makefile.in,
11009         * device/lib/hc08/Makefile,
11010         * device/lib/hc08/_mulint.c,
11011         * device/lib/hc08/_mullong.c: fixed some endian problems
11012
11013 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11014
11015         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
11016         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
11017         * device/lib/_gptrget.c,
11018         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
11019
11020 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11021
11022         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
11023         * src/SDCCast.c (astErrors): fixed bug #846007
11024         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
11025
11026 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11027
11028         * src/SDCCast.c (decorateType): disabled a transformation I added in
11029         revision 1.188 (access to fields of a structure at an absolute address);
11030         it breaks with bitfields, extern declarations, and gcse analysis.
11031         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
11032         could be assigned through a pointer, so don't complain.
11033         * src/SDCCast.c (astErrors),
11034         * src/SDCCast.h,
11035         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
11036
11037 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
11038
11039         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
11040         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
11041         output of __config directives, since gpasm now supports them
11042         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
11043         pre-processor macro, i.e. -DMCU=p18f452
11044         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
11045         and modified to handle 'cast' icode similarly to '=' icode
11046         * src/pic16/device.h (typedef struct PIC_device): added field
11047         'extMIface' to indicate that chip has external memory interface
11048         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
11049         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
11050         18F8720
11051
11052 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11053
11054         * src/SDCC.y (pointer): fixed bug #846006
11055         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
11056         * src/SDCCast.c (decorateType): fixed bug #846009
11057         * src/ds390/peeph.def,
11058         * src/ds390/gen.c (genAnd, genOr),
11059         * src/mcs51/peeph.def,
11060         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
11061
11062 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11063
11064         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
11065         * src/SDCCdflow.c
11066         * src/SDCCcse.c
11067         * src/SDCCcse.h
11068         * src/SDCCBBlock.h
11069         * src/SDCCBBlock.c
11070
11071 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
11072
11073         fixed bug #845089
11074         * src/SDCCbitv.h,
11075         * src/SDCCbitv.c: added function to free a bitvector
11076         * src/SDCClrange.h,
11077         * src/SDCClrange.c: added function to recompute the liveranges
11078         * src/avr/ralloc.c,
11079         * src/ds390/ralloc.c,
11080         * src/hc08/ralloc.c,
11081         * src/mcs51/ralloc.c,
11082         * src/pic/ralloc.c,
11083         * src/pic16/ralloc.c,
11084         * src/xa51/ralloc.c,
11085         * src/z80/ralloc.c: recompute the liveranges after register packing
11086
11087 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
11088
11089         * src/SDCCloop.c (newInduction): fixed bug #845630
11090
11091 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11092
11093         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
11094         inadvertantly left behind from my 2003-11-12 change
11095
11096 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11097
11098         Updated headers I neglected to commit yesterday.
11099         * src/SDCClrange.h,
11100         * src/SDCCicode.h
11101
11102 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11103
11104         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
11105         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
11106         * src/SDCCopt.c (eBBlockFromiCode),
11107         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
11108         the creation of the key hash table from the sequencing so it can be used
11109         earlier (for some GCSE bug fixes still pending)
11110
11111 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11112
11113         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
11114         * support/regression/tests/addsub.c: testing genPlus shortcut
11115
11116 2003-11-15  Borut Razem <borut.razem AT siol.net>
11117
11118         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
11119
11120 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11121
11122         * src/SDCCcse.c (cseBBlock): fixed bug #527779
11123         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
11124         ordering is immaterial.
11125         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
11126
11127 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11128
11129         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
11130         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
11131         (SIGSEV) of bug #840381
11132         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
11133         unlink new file before rename if new and old filenames are the same)
11134
11135 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11136
11137         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
11138         uninitialized variables) for the mcs51. Set environment variable
11139         SDCC_GENRAMCLEAR to test.
11140         xdata initialization slightly shorter
11141
11142 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11143
11144         * src/SDCCsymt.h,
11145         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
11146         #838241 & 780691 (basicly the same bug)
11147         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
11148         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
11149
11150 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
11151
11152         * src/SDCCmain.c (linkEdit): "fix" #834252
11153
11154 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11155
11156         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
11157         * src/SDCCast.h,
11158         * src/SDCC.y: fixed bug #819403
11159
11160 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11161
11162         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
11163         the reentrant attribute.
11164         * src/hc08/gen.c (genPackBits): added missing stack readjustment
11165         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
11166         simulation
11167         * src/SDCCast.c (decorateType): fixed bug with storage class not being
11168         updated during pointer dereference; f.e. ~(((char *)1)*) was being
11169         erroneously reduced to a literal.
11170         * src/hc08/ralloc.c (packRegisters, rematStr),
11171         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
11172         some cases
11173
11174 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11175
11176         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
11177         * doc/sdccman.lyx: changed from 'article' to 'book'
11178         * doc/Makefile: readded test_suite_spec and cdbfileformat
11179
11180 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
11181
11182         * device/include/stdlib.h: include malloc.h to comply with ANSI
11183         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
11184
11185 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11186
11187         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
11188         * doc/clean.mk: also remove *.out files
11189         * doc/sdccman.lyx: some additions, larger top/bottom margins
11190
11191 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11192
11193         * src/SDCC.y: fixed bug #837365
11194         * support/regression/tests/bitopcse.c
11195         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
11196         a symbol (might be valop instead)
11197         * device/lib/Makefile.in: added errno.c to HC08SOURCES
11198         * device/lib/clean.mk: added hc08 to the cleaning list
11199
11200 2003-11-04  Borut Razem <borut.razem AT siol.net>
11201
11202         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
11203           made 2003-11-04
11204         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
11205           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
11206           malloc is declared in standard stdlib.h
11207
11208 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11209
11210         * device/lib/hc08/Makefile: need to clean .rel not .o files
11211         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
11212
11213 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11214
11215         * src/port.h,
11216         * src/hc08/main.c,
11217         * src/mcs51/main.c,
11218         * src/ds390/main.c,
11219         * src/z80/main.c,
11220         * src/avr/main.c,
11221         * src/pic/main.c,
11222         * src/pic16/main.c,
11223         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
11224         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
11225         tests (which uses the port's oclsExpense function)
11226         * src/SDCC.y,
11227         * src/SDCCast.c,
11228         * src/SDCCicode.c,
11229         * src/hc08/gen.c,
11230         * src/ds390/gen.c,
11231         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
11232
11233 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11234
11235         * src/SDCCcse.c (ifxOptimize),
11236         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
11237         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
11238         deleting the IFX iCode.
11239         * src/hc08/ralloc.c: reduced unneeded slocs
11240         * src/hc08/gen.c: fixed bug in asmopToBoolean
11241
11242 2003-11-04  Borut Razem <borut.razem AT siol.net>
11243
11244         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
11245           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
11246           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
11247           transferred to configure
11248
11249 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
11250
11251         Use headers defined in the C[++] standards:
11252         * sim/ucsim/gui.src/serio.src/fileio.cc
11253         * sim/ucsim/gui.src/serio.src/frontend.cc
11254         * sim/ucsim/gui.src/serio.src/main.cc
11255         * sim/ucsim/gui.src/serio.src/posix_signal.cc
11256         * support/Util/NewAlloc.c
11257         * as/hc08/lklibr.c
11258         * as/mcs51/lklibr.c
11259         * as/z80/aslist.c
11260         * as/z80/assym.c
11261
11262 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11263
11264         * Added MSVC projects for hc08 assembler and linker:
11265         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
11266         /as/hc08/link_hc08.dsp
11267
11268 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
11269
11270         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
11271
11272 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
11273
11274         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
11275
11276 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11277
11278         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
11279
11280 2003-10-31  Borut Razem <borut.razem AT siol.net>
11281
11282         * support/cpp2/cpplib.h,
11283           support/cpp2/cpplib.c,
11284           support/cpp2/cpplex.c,
11285           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
11286           to switch _asm block preprocessing on / off. Default is
11287           #pragma preproc_asm +
11288
11289 2003-10-31  Borut Razem <borut.razem AT siol.net>
11290
11291         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
11292           when outputting comment blocks (when executed with -C option) and
11293           _asm (SDCPP specific) blocks
11294
11295 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11296
11297         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
11298
11299 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
11300
11301         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
11302
11303 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
11304
11305         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
11306         * src/SDCCast.c (decorateType): fixed bug #832664
11307
11308 2003-10-31  Borut Razem <borut.razem AT siol.net>
11309
11310         * support/cpp2/cpplex.c: fixed for SDCPP:
11311           comments(when executed with -C option) and _asm blocks
11312           were included even if they where in skipped #if block.
11313           Applied solution from GCC cpp 3.3.2
11314
11315 2003-10-31  Borut Razem <borut.razem AT siol.net>
11316
11317         * src/SDCC.lex: sdcc now understands both formats:
11318           '# <line_number> <file_name>' and
11319           '#line <line_number> <file_name>'
11320         * support/cpp2/cppmain.c: sdcpp now generates the standard
11321           '# <line_number> <file_name>' instead of former
11322           '#line <line_number> <file_name>'
11323
11324 2003-10-30  Borut Razem <borut.razem AT siol.net>
11325
11326         * support/cpp2/cpphash.h,
11327         * support/cpp2/cpplib.h
11328         * support/cpp2/cpplex.c,
11329         * support/cpp2/cppmain.c,
11330         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
11331
11332 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11333
11334         Fixed a number of problems revealed by bug #827883.
11335         * src/SDCCloop.c (loopInvariants): Spill location of the
11336         result operand should be recomputed if extracted from
11337         a loop. Also, don't extract assignments of an iTemp
11338         from a literal.
11339         * src/SDCCast.c (isConformingBody): loop reversal should
11340         not occur if the control variable is involved with a
11341         relational operator.
11342
11343 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
11344
11345         * .version: bumped to 2.3.6 to reflect the big improvements
11346         made by Erik and Klaus. Thanks!
11347
11348 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
11349
11350         Replaced the livrange code.
11351         * src/SDCClrange.c: added new LR code
11352         * src/SDCCloop.c,
11353         * src/SDCCBBlock.h: removed remainig parts from old LR code
11354         * src/ds390/ralloc.c,
11355         * src/ds390/gen.c: minor fixes to make it work with new code
11356
11357 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11358
11359         * as/hc08/asm.h,
11360         * as/hc08/lkrloc.c,
11361         * src/hc08/gen.c,
11362         * src/hc08/ralloc.c: Fix various warnings related to the hc08
11363         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
11364         (tweaked fix for bug #818696)
11365
11366 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11367
11368         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
11369
11370 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11371
11372         * src/SDCCmain.c,
11373         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
11374         * src/mcs51/gen.c (gencjneshort),
11375         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
11376         more efficient (per Scott Bronson's suggestion)
11377
11378 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11379
11380         Extended the semantics of the critical keyword to include
11381         individual statements. See RFE #827755 and #799831
11382         * src/SDCC.y
11383         * src/SDCCicode.c
11384         * src/SDCCopt.c
11385         * src/SDCCast.c
11386         * support/Util/SDCCerr.c
11387         * support/Util/SDCCerr.h
11388         * src/mcs51/gen.c
11389         * src/ds390/gen.c
11390         * src/hc08/gen.c
11391
11392 2003-10-19  Borut Razem <borut.razem AT siol.net>
11393
11394         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
11395
11396 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11397
11398         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
11399         Fixed bug #818696
11400         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
11401         and predecrement operand is displayed
11402
11403 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
11404
11405         * src/SDCCval.c (valMinus): fixed bug #826041
11406
11407 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11408
11409         Some hc08 related updates that I missed earlier
11410         * sim/ucsim/stypes.h
11411         * support/regression/ports/hc08/spec.mk
11412
11413 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11414
11415         New target "hc08" for the Motorola 68hc08 family of micros
11416
11417         * configure
11418         * configure.in
11419         * Makefile
11420         * src/hc08/*
11421         * src/SDCCmain.c
11422         * src/port.h
11423         * sim/ucsim/hc08.src/*
11424         * sim/ucsim/configure.in
11425         * src/ucsim/configure
11426         * sim/ucsim/packages_in.mk
11427         * as/hc08/*
11428         * as/Makefile
11429         * device/include/mc68hc908qy.h
11430         * device/lib/hc08/*
11431         * device/lib/Makefile.in
11432         * support/regression/ports/hc08/*
11433         * support/regression/Makefile
11434
11435 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11436
11437         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
11438         regression test
11439         * src/ds390/gen.c (genCast): fixed bug #821957
11440
11441 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
11442
11443         * device/lib/logf.c: "fixed" overlay bug
11444         * support/regression/ports/host/spec.mk: added m library
11445         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
11446         * support/regression/tests/float_trans: added (for Eric)
11447
11448 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
11449
11450         * src/mcs51/gen.c (genCpl): fixed bug
11451         http://sf.net/mailarchive/message.php?msg_id=6263915
11452
11453 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
11454
11455         * src/SDCCast.c (decorateType): added extended constant folding
11456         * src/SDCCsymt.c (computeType): cleanup
11457         * src/SDCCval.c (valShift): minor optimization
11458         * support/regression/tests/ast_constant_folding.c: added
11459
11460 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11461
11462         * src/SDCCmain.c: removed some unintended changes
11463
11464 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11465
11466         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
11467         * src/z80/gen.c: fixed part of bug #817589
11468         * src/SDCCsymt.c (checkFunction): fixed bug #817895
11469
11470 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
11471
11472         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
11473         * src/SDCCcflow.c
11474         * src/SDCCcse.c
11475         * src/SDCCdflow.c
11476         * src/SDCClabel.c
11477         * src/SDCClrange.c
11478         * src/SDCCmem.c
11479         * src/SDCCopt.c
11480         * src/SDCCpeeph.c
11481         * src/SDCCset.c
11482         * src/avr/ralloc.c
11483         * src/ds390/ralloc.c
11484         * src/izt/ralloc.c
11485         * src/mcs51/ralloc.c
11486         * src/pic/ralloc.c
11487         * src/pic16/ralloc.c
11488         * src/xa51/ralloc.c
11489         * src/z80/ralloc.c
11490         * src/z80/gen.c: removed unused label "release:"
11491
11492 2003-10-06  Borut Razem <borut.razem AT siol.net>
11493
11494         * src/SDCC.lex: removed definition of unused variables
11495           save_optimize and save_options
11496
11497 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
11498
11499         * clean.mk: removed '=' in "-maxdepth=1"
11500         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
11501         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
11502
11503 2003-10-06  Borut Razem <borut.razem AT siol.net>
11504
11505         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
11506           my_unput() replaced by unput()
11507
11508 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
11509
11510         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
11511         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
11512         type-punned pointer will break strict-aliasing rules"
11513         Old LR behaviour is again default; Klaus' LR can be choosen by
11514         defining the environment variable LRKLAUS
11515         * src/SDCCBBlock.h
11516         * src/SDCCloop.c
11517         * src/SDCClrange.c
11518         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
11519         * clean.mk: fixed removal of files in bin/CVS/
11520         * device/lib/clean.mk: fixed removal of directories small and large
11521         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
11522         * src/SDCCicode.c,
11523         * src/SDCCval.c: removed superflous test for pedantic
11524
11525 2003-10-05  Borut Razem <borut.razem AT siol.net>
11526
11527         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
11528           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
11529           message "unmatched #pragma SAVE and #pragma RESTORE"
11530
11531 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11532
11533         * doc/sdccman.lyx: various additions and updates (interrupts, inline
11534           assembly, critical functions, atomic, nojtbound)
11535
11536 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
11537
11538         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
11539         * src/SDCCBBlock.h
11540         * src/SDCCloop.c
11541         * src/SDCCloop.h
11542         * src/SDCClrange.c
11543
11544 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11545
11546         * src/z80/gen.h,
11547         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11548         * src/mcs51/gen.h
11549         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11550         * src/ds390/gen.h
11551         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11552         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
11553         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
11554
11555 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11556
11557         * src/z80/gen.c (genRet): fixed bug #524753
11558         * src/z80/gen.c (genCast): fixed internal error on cast from
11559         pointer to long
11560         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
11561         fix for bug #477835 to the z80
11562         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
11563         for tracking iCodes in the peephole optimizer for z80
11564
11565 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11566
11567         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
11568         the other part of bug #814548
11569         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
11570
11571 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
11572
11573         * src/SDCCcse.c: fixed part of bug #814548
11574
11575 2003-09-28  Borut Razem <borut.razem AT siol.net>
11576
11577         * src/asm.c: rewrite of printILine() to use temporary file instead
11578           a pipe
11579         * src/xa51/main.c: commented out declaration of int rewinds
11580
11581 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11582
11583         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
11584
11585 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11586
11587         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
11588         * src/asm.c (printILine): Fixed bug #811015
11589
11590 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11591
11592         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
11593         freeing.
11594
11595 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11596
11597         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
11598         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
11599         to correctly handle general case of AOP_PAIRPTR
11600         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
11601
11602 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11603
11604         * src/mcs51/ralloc.c (fillGaps),
11605         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
11606         register positioning bug)
11607
11608 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
11609
11610         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
11611
11612 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11613
11614         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
11615         genCodePointerGet, genGenPointerGet, genFarPointerSet,
11616         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
11617         (ralloc doesn't intentionally do this now, but perhaps later)
11618         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
11619         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
11620         register positioning bugs (Fixed bug #762602 and #795325)
11621         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
11622         (Fixed bug #808779)
11623         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
11624         lines that --i-code-in-asm generates
11625
11626 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11627
11628         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
11629         trying to fclose a FILE* that was already closed.
11630
11631 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11632
11633         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
11634         of const struct should be treated as if const themselves)
11635
11636 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
11637
11638         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
11639
11640 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11641
11642         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
11643         Unix (/n) and DOS (/r/n) line terminations.
11644
11645 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11646
11647         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
11648         bug #613775
11649
11650 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11651
11652         * src/mcs51/gen.c (genFunction, genEndFunction),
11653         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
11654         and restore of EA so that stack offsets to parameters are
11655         correct when using both critical and reentrant/stack-auto.
11656         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
11657         size (can be triggered in error if sloc is shared between
11658         different sized objects)
11659         * device/include/float.h: fixed macros to explicitly use
11660         unsigned long where needed
11661
11662 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
11663
11664         Feature req. 799831: added code to allow nesting of critical functions
11665         * src/mcs51/gen.c (genFunction, genEndFunction)
11666         * src/ds390/gen.c (genFunction, genEndFunction)
11667
11668 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11669
11670         * src/SDCCsymt.c (sclsFromPtr),
11671         * src/SDCCsymt.h,
11672         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
11673         support for standard C idiom of memory mapped variables; for
11674         example, *((xdata int*)0x1234) = 1 is now internally equivalent
11675         to xdata int at 0x1234 tempvar = 1.
11676         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
11677         provided by Akiya ISHIDA
11678
11679 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
11680
11681         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
11682         * src/SDCCval.c (constVal): added reduction from int to char
11683         * src/SDCCval.c (valMult, valDiv): fixed sign handling
11684         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
11685         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
11686         to ignore the sign
11687         * support/regression/tests/shifts.c: fixed
11688
11689 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11690
11691         * src/z80/gen.c (genXor): Fixed bug #805445
11692
11693 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11694
11695         Fixed bug #621531 (const & volatile confusion in the type chain).
11696         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
11697         refer to the const or volatile state of the pointer itself.
11698
11699         * src/SDCCast.c
11700         * src/SDCCglue.c
11701         * src/SDCCicode.c
11702         * src/SDCCsymt.c
11703         * src/SDCCval.c
11704         * src/SDCC.y
11705         * src/SDCCsymt.h
11706         * src/pic/gen.c
11707         * src/pic/ralloc.c
11708         * src/pic16/gen.c
11709         * src/pic16/ralloc.c
11710         * support/regression/tests/const.c
11711
11712 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11713
11714         When checking for duplicated modules, use absolute paths
11715         instead of relative paths.  Files changed:
11716
11717         * as/mcs51/lklib.c
11718         * link/z80/lklib.c
11719
11720 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11721
11722         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
11723
11724 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11725
11726         * device/include/string.h: added size_t typedef, changed
11727         prototypes to use size_t, eliminated separate reentrant and
11728         non-reentrant declarations, added _memmove declaration
11729         * device/lib/_memcpy.c: changed to use size_t instead of int,
11730         changed /4 to >>2 to avoid division library call
11731         * device/lib/_memcmp.c,
11732         * device/lib/_memset.c,
11733         * device/lib/_strncat.c,
11734         * device/lib/_strncpy.c,
11735         * device/lib/_strncmp.c: changed to use size_t instead of int
11736         * device/lib/_memmove.c: new file (fixed bug #772294)
11737         * device/lib/Makefile.in: added _memmove.c
11738         * device/lib/z80/asm_strings.s: fixed bug #772290
11739         * support/regression/tests/bitfields.c: attempt to fix host assertion
11740         failure on amd64-unknown-linux2.2
11741
11742 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11743
11744         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
11745         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
11746         * as/z80/asmain.c (main): fixed bug #801766
11747
11748 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
11749
11750         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
11751         compilers
11752
11753 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11754
11755         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
11756         reported in bug #800609
11757
11758 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
11759
11760         * Top header beautifications in src/pic16 directory:
11761           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
11762           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
11763           pcoderegs.h, ralloc.c, ralloc.h
11764         * main.c: added top header and GPL license notice
11765         * pcode.c: fixed the if-conditional warning
11766
11767 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
11768
11769         * device/lib/_mullong.c: replaced int by short for gcc
11770
11771 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11772
11773         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
11774         and JUMPTABLE iCodes properly now (worked by accident before)
11775         * src/mcs51/gen.c (leftRightUseAcc),
11776         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
11777         iCode properly now. Use getSize instead of nRegs since a & b
11778         aren't part of the nRegs tally.
11779
11780 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
11781
11782         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
11783         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
11784           before instructions that use the _STATUS register
11785
11786 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
11787
11788         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
11789         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
11790         fetching of the pointer
11791         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
11792         copied from genNearPointerSet()
11793         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
11794         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
11795         If they pop r0/r1 they must be called in the opposite order than aopOp().
11796         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
11797         (resp. --stack-auto), prepared for --xstack
11798
11799 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11800
11801         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
11802
11803 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
11804
11805         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
11806         these ports have their own __sdcc_external_start()
11807
11808 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
11809
11810         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
11811         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
11812         type for bits was changed. It resulted in bit variables becoming
11813         global, which is not permitted in PIC 14 assembly output.
11814
11815 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11816
11817         * doc/sdccman.lyx: various additions and updates. Rearranged sections
11818
11819 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11820
11821         Z80 and MCS51 linkers complaint if a public symbol is defined
11822         in more than one library module:
11823
11824         * as/mcs51/lklib.c
11825         * link/z80/lklib.c
11826         * as/mcs51/Makefile.in
11827
11828 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11829
11830         A few small changes that speed up the peephole optimizer.
11831
11832         * src/SDCCpeeph.c
11833
11834 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11835
11836         Try to make the peephole optimizer smarter by maintaining
11837         an association between the assembly source code and the
11838         iCodes that originated them. Put this information to use
11839         with a new peephole rule condition "notVolatile" so that
11840         the rules can be aggressive yet still safe.
11841
11842         * src/SDCCpeeph.c
11843         * src/SDCCpeeph.h
11844         * src/mcs51/gen.c
11845         * src/mcs51/peeph.def
11846
11847 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11848
11849         Fixed bug #741761
11850
11851         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
11852         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
11853         if the left or right operand symbols have the accuse flag set.
11854
11855 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11856
11857         Changed the type of the result of the ! (NOT) operator to char;
11858         previously it returned the same type as the source. This allows
11859         us to eliminate all the genFloatNot functions (all of its target
11860         implementations were very buggy) since !float can use the same
11861         code as !long now.
11862
11863         * src/SDCCicode.c (ast2iCode): ! returns char
11864         * src/mcs51/gen.c (genNot, genNotFloat),
11865         * src/ds390/gen.c (genNot, genNotFloat),
11866         * src/z80/gen.c (genNot, genNotFloat),
11867         * src/pic/gen.c (genNot, genNotFloat),
11868         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
11869
11870 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
11871
11872         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
11873         1. Interrupt would not compile properly. Ensure PCLATH register is saved
11874            during interrupts. Ensure WSAVE is located at a shared bank address.
11875         2. Fixed page selection in some places
11876         3. Fixed BTFSS/C to where necessary use registers directly and not simply
11877            the registers name strings.
11878         4. Fixed "signed / unsigned compare" compiler warnings.
11879         5. The PIC port manages its own allocation of the general purpose
11880            registers, but makes no attempt to reuse them. As a result when
11881            compiling it soon runs out of general purpose registers. Some
11882            additional code was added to the files pcode.c and device.c to walk
11883            through the function call tree and rename the registers so that they
11884            get reused.
11885
11886         * src/pic/device.c
11887         * src/pic/gen.c
11888         * src/pic/glue.c
11889         * src/pic/pcode.c
11890         * src/pic/pcode.h
11891         * src/pic/ralloc.c
11892         * src/pic/ralloc.h
11893         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
11894         genPlus() & genMinus() when the result is the same as left or right
11895
11896 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11897
11898         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
11899
11900 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11901
11902         Made bitfield a distinct type from bit so that bitfields
11903         convert as per ANSI C and bits retain their traditional
11904         boolean style behaviour. Implemented bitfield support in
11905         the z80 port.
11906
11907         * src/SDCCsymt.h,
11908         * src/SDCCsymt.c,
11909         * src/SDCCast.c,
11910         * src/cdbFile.c,
11911         * src/mcs51/gen.c,
11912         * src/ds390/gen.c: bit v bitfield split
11913         * src/z80/gen.c: New support for bitfields
11914         * support/regression/tests/bitfields.c: reenabled z80,
11915         added more tests
11916
11917 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11918
11919         Rules 246.x, 247.x relate to bitfields, the others speed up
11920         access to xdata mapped I/O devices.
11921
11922         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
11923
11924 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11925
11926         Cleaned up genPackBits and genUnpackBits and added two helper
11927         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
11928         for literal assignments in genPackBits (thanks to Frieder for
11929         reminding me).
11930
11931         * src/mcs51/gen.c
11932         * src/ds390/gen.c
11933
11934 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11935
11936         Fixed bug #748310 (pointer to function type mishandled when the
11937         function name is omitted). Also fixed a SIGSEGV when a function
11938         attribute (reentrant, etc) is used on a non-function or on a
11939         function but misplaced before the parameter list.
11940
11941         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
11942         bug #748310
11943         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
11944         * support/Util/SDCCerr.h,
11945         * support/Util/SDCCerr.c: Added func attr misuse error msg
11946
11947 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
11948
11949         Fixed bug #787649 by anonymous
11950         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
11951         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
11952
11953 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11954
11955         Fixed numerous bitfield problems.
11956
11957         * src/SDCC.y: More bitfield related error checking
11958         * src/SDCCsymt.h,
11959         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
11960         * support/Util/SDCCerr.h,
11961         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
11962         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
11963         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
11964         * support/regression/tests/bitfields.c: tests added
11965
11966 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11967
11968         Made the constant following the "interrupt" keyword optional. If
11969         omitted, the function will not automatically be given an entry
11970         in the interrupt vector table (similar to #pragma NOIV, but
11971         less syntacticly kludgy). The interrupt number is also now
11972         range checked. Also fixed a bug in the high order bit example
11973         in the manual.
11974
11975         * src/SDCC.y
11976         * src/SDCCmem.c
11977         * src/SDCCglue.c
11978         * src/SDCCsymt.h
11979         * support/Util/SDCCerr.c
11980         * support/Util/SDCCerr.h
11981         * doc/sdccman.lyx
11982
11983 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
11984
11985         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
11986         * src/SDCCicode.c (operandOperation): rewritten some ops
11987         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
11988         * src/SDCCsymt.c (computeType): literals are handled the same way as any
11989         other type
11990         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
11991         be re-activated by defining REDUCE_LITERALS)
11992         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
11993         unsigned, but are signed by default
11994         * src/SDCCval.c (constVal): rearranged
11995         * src/SDCCval.c (valMod): preliminary fix
11996         * src/SDCCval.c (valCastLiteral): use TYPE_* types
11997         * support/regression/literalop.c: added, work in progress
11998
11999 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12000
12001         Generate warnings for useless declarations like "char data;"
12002         that don't do what new users expect.
12003
12004         * src/SDCC.y
12005         * support/Util/SDCCerr.h
12006         * support/Util/SDCCerr.c
12007
12008 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
12009
12010         * src/SDCCval.c (valMult): fix overflow detection of negative int
12011
12012 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12013
12014         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
12015
12016         Changes to support big endian targets:
12017
12018         * src/ports.h
12019         * src/SDCCglue.c
12020         * src/avr/main.c
12021         * src/ds390/main.c
12022         * src/izt/i186.c
12023         * src/mcs51/main.c
12024         * src/pic/main.c
12025         * src/pic16/main.c
12026         * src/xa51/main.c
12027         * src/z80/main.c
12028
12029 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
12030
12031         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
12032         * device/lib/time.c: fixed warning "integer overflow in expression"
12033
12034 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
12035
12036         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
12037         * src/SDCCval.c (constVal): changed default to signed; hex and octal
12038         constants are unsigned; added recognition of "u" flag for unsigned
12039         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
12040         * src/SDCCval.c (valDiv, valMod): fixed signdness
12041         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
12042         signedness of modulo, left and right shift
12043         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
12044         * support/Util/SDCCerr.h: added warning W_INT_OVL
12045         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
12046         * src/SDCCast.c (ast_print): improved output of constants
12047
12048 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12049
12050         Fixed some warnings when building with MSVC:
12051
12052         * as/mcs51/asdata.c
12053         * as/z80/asdata.c
12054         * as/mcs51/asm.h
12055         * as/z80/asm.h
12056         * link/z80/aslink.h
12057         * link/z80/lkdata.c
12058         * link/z80/lkeval.c
12059         * link/z80/lkgb.c
12060         * link/z80/lkihx.c
12061         * link/z80/lks19.c
12062         * link/z80/lksym.c
12063         * support/cpp2/cpplib.c
12064         * src/ds390/gen.c
12065         * src/mcs51/gen.c
12066
12067 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
12068
12069         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
12070
12071 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12072
12073         * support/librarian/clean.mk: Do not remove Makefile.
12074         * support/librarian/Makefile: added.
12075
12076 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12077
12078         Added librarian to MSVC build:
12079         * all.dsp
12080         * sdcc.dsw
12081         * support/librarian/librarian.dsp
12082
12083         'configure' not needed for librarian, removed:
12084         * support/librarian/configure
12085         * support/librarian/configure.in
12086         * support/librarian/config_in.h
12087         * support/librarian/Makefile.in
12088
12089         Hopefully these ones built the librarian and the rest of sdcc properly:
12090         * Makefile
12091         * Makefile.common.in
12092
12093         Messed up 'configure', so revert to previous version:
12094         * configure
12095         * configure.in
12096
12097 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
12098
12099         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
12100         there, while the mantissa of a double is "only" 53 bits wide.
12101
12102 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12103
12104         Adding sdcclib to the build.  MSVC project coming soon.
12105         Files added/changed:
12106
12107         * support/librarian/clean.mk
12108         * support/librarian/configure
12109         * support/librarian/configure.in
12110         * support/librarian/config_in.h
12111         * support/librarian/Makefile.bcc
12112         * support/librarian/Makefile.in
12113         * support/librarian/sdcclib.c
12114         * Makefile.bcc
12115         * Makefile
12116         * Makefile.common.in
12117         * configure
12118         * configure.in
12119
12120 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12121
12122         Linker now complaints if linked modules have conflicting options, for
12123         example, one compiled using --model-large and another one compiled with
12124         --model-small.  The following files were modified:
12125
12126         * as/mcs51/asdata.c
12127         * as/mcs51/aslink.h
12128         * as/mcs51/asm.h
12129         * as/mcs51/asmain.c
12130         * as/mcs51/asout.c
12131         * as/mcs51/i51pst.c
12132         * as/mcs51/lkdata.c
12133         * as/mcs51/lklibr.c
12134         * as/mcs51/lkmain.c
12135         * as/z80/asdata.c
12136         * as/z80/asm.h
12137         * as/z80/asmain.c
12138         * as/z80/asout.c
12139         * as/z80/z80pst.c
12140         * link/z80/aslink.h
12141         * link/z80/lkdata.c
12142         * link/z80/lklibr.c
12143         * link/z80/lkmain.c
12144         * src/SDCCglue.c
12145
12146 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12147
12148         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
12149         as/mcs51/lklibr.c: Generate a warning when a library is not found.
12150
12151 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
12152
12153         * src/z80/mappings.i: fix _mul[us][int,long] entries
12154
12155 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12156
12157         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
12158
12159 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
12160
12161         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
12162         * support/regression/tests/bitopcse.c: added
12163         fixed warning:
12164         * src/avr/gen.c:
12165         * src/pic/gen.c:
12166         * src/pic16/gen.c:
12167         * src/z80/gen.c:
12168         * src/xa51/gen.c:
12169
12170 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12171
12172         added support for new library format to z80, gbz80 linkers:
12173         *link/z80/aslink.h
12174         *link/z80/lklex.c
12175         *link/z80/lklib.c
12176         *link/z80/lklist.c
12177
12178 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
12179
12180         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
12181         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
12182
12183 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
12184
12185         added DUMMY_READ_VOLATILE:
12186         * src/SDCC.y:
12187         * src/avr/gen.c:
12188         * src/xa51/gen.c:
12189         * src/z80/gen.c:
12190         * src/pic/gen.c:
12191         * src/pic16/gen.c:
12192         * src/mcs51/gen.c:
12193         * src/ds390/gen.c:
12194         * src/SDCCcse.c (algebraicOpts): many improvements
12195         * src/SDCCcse.h: removed algebraicOpts()
12196         * src/SDCCicode.c (picDummyRead): added
12197
12198 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12199
12200         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
12201         "Insufficient space in data memory".
12202
12203 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12204
12205         * src/mcs51/gen.c: fixed bug #771358
12206         * src/z80/gen.c: fixed bug #759087
12207
12208 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
12209
12210         * src/pic16/glue.c: minor cleanup by Vangelis
12211
12212 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12213
12214         * device/include/regc515c.h: fixed #758477
12215         * device/lib/_gptrget.c: saving some cycles in generic pointer get
12216         * device/lib/_gptrput.c: saved a few bytes
12217         * my tab spacing is 8, yours too?)
12218         * device/lib/_ser.c: process RX bytes earlier than TX bytes
12219         * device/lib/serial.c: process RX bytes earlier than TX bytes
12220         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
12221
12222 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12223
12224         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
12225
12226 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12227
12228     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
12229
12230 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
12231
12232         * device/lib/Makefile.in: bad fix, reverted to 1.43
12233
12234 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
12235
12236         * device/lib/Makefile.in: added missing z80 object files
12237
12238 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
12239
12240         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
12241         pic16 progress by Vangelis:
12242         * src/SDCCglobl.h:
12243         * src/SDCCmain.c:
12244         * src/pic/Makefile:
12245         * src/pic:
12246         * pic/Makefile:
12247         * pic16/device.c:
12248         * pic16/device.h:
12249         * pic16/gen.c:
12250         * pic16/gen.h:
12251         * pic16/genarith.c:
12252         * pic16/glue.c:
12253         * pic16/main.c:
12254         * pic16/pcode.c:
12255         * pic16/pcode.h:
12256         * pic16/pcodepeep.c:
12257         * pic16/peeph.def:
12258
12259 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12260
12261     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
12262
12263 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12264
12265     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
12266     added gbz80 build to MSVC project.
12267     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
12268     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
12269     from 8051 stuff and setup so it links using a .lnk file.
12270
12271 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12272
12273     * support/librarian/sdcclib.c: sdcc librarian.
12274     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
12275     with sdcclib.
12276
12277 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12278
12279     * as/mcs51/lkmain.c: properly handle extensions in function afile.
12280
12281 2003-07-02  Borut Razem <borut.razem AT siol.net>
12282
12283         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
12284         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
12285         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
12286         src/xa51/main.c, src/z80/main.c:
12287         virtualization of glue() function: each port has it's own glue function,
12288         which is accessed by do_glue function pointer in PORT.general structure
12289
12290 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
12291
12292         * DS800C400 fun, improved ROM interface and tinibios.
12293
12294 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
12295
12296         * More support for DS80C400. Now includes beginning of interface to ROM.
12297
12298 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
12299
12300         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
12301
12302 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12303
12304         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
12305
12306 2003-06-19  Borut Razem <borut.razem AT siol.net>
12307
12308         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
12309
12310 2003-06-19  Borut Razem <borut.razem AT siol.net>
12311
12312         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
12313         fixed Z80 port - crt0.o: cannot open.
12314
12315 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
12316
12317         * support/Util/MySystem.c (merge_command): revert bad fix
12318
12319 2003-06-18  Borut Razem <borut.razem AT siol.net>
12320
12321         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
12322
12323 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12324
12325         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
12326         option --use-stdout sends errors to stdout instead of stderr.
12327
12328 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
12329
12330         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
12331
12332 2003-06-15  Borut Razem <borut.razem AT siol.net>
12333
12334         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
12335         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
12336         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
12337         fixed width array of pointers replaced with sets;
12338         multiple include and lib paths ared transferred to preprocessor and linker
12339         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
12340         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
12341         fixed width array of pointers
12342         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
12343         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
12344         fixupPath(), getPathDifference()
12345         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
12346         fixed width array of pointers
12347
12348 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
12349
12350         * src/pic16/ralloc.c: fix warnings
12351         * src/pic16/pcode.c: fix warning
12352
12353 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
12354
12355          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
12356         know all the details, but essentially this set of changes enable
12357         the pic16 port to generate movff instructions and generate assembler
12358         directives,
12359         * src/SDCCmain.c:
12360         * src/pic16/gen.c:
12361         * src/pic16/glue.c:
12362         * src/pic16/pcode.c:
12363         * src/pic16/device.c:
12364         * src/pic16/main.c:
12365         * src/pic16/pcode.h:
12366         * src/pic16/pcoderegs.c:
12367         * src/pic16/ralloc.c:
12368         * src/pic16/ralloc.h:
12369
12370 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12371
12372         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
12373         added option --vc, so sdcc errors and warnings are compatible with
12374         Microsoft Visual Studio.
12375
12376 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12377
12378         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
12379           device/lib/libfloat.lib: added atof function.
12380
12381 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
12382
12383         * doc/sdccman.lyx: updated to Lyx 1.3
12384         * doc/cdbfileformat.lyx: updated to Lyx 1.3
12385         * doc/test_suite_spec.lyx: updated to Lyx 1.3
12386         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
12387
12388 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
12389
12390         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
12391
12392 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12393
12394         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
12395           additions to the "related tools/documentation" section
12396
12397 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
12398
12399         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
12400
12401 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
12402
12403         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
12404         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
12405
12406 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
12407
12408         * doc/sdccman.lyx: fix double dash and other minor things
12409         * doc/Makefile: fix double dash
12410
12411 2003-05-28  Karl Bongers(patches from Martin Helmling)
12412         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
12413           condition and ignore commands.
12414
12415 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12416
12417         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
12418           is in parts still quite out of date, I did changes as far as I felt makes sense
12419           for a non-native english speaker.
12420           Please feel free to add to the manual or to correct my changes.
12421         * doc/Makefile: undid touching the date of intermediate tex files.
12422
12423 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12424
12425         * doc/sdccman.lyx: Manual has an index now
12426
12427 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
12428
12429         Finalize muluint/mulsint and mululong/mulslong merging:
12430         * device/lib/_mulint.c
12431         * device/lib/_mullong.c
12432         * device/lib/gbz80/mul.s
12433         * device/lib/gbz80/stubs.s
12434         * device/lib/z80/mul.s
12435         * device/lib/z80/stubs.s
12436         * src/SDCCsymt.c (initCSupport)
12437
12438 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12439
12440         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
12441         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
12442           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
12443           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
12444           instead of /Zm500.
12445
12446 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12447
12448         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
12449           the regression tests I'm not brave enough to enable 245.b, 245.c
12450         * doc/sdccman.lyx: added latex preamble for hyperref package.
12451           Using pdflatex this will give you a hyperlinked pdf file with
12452           bookmarks. (prepend '%' before /usepackage if this breaks something)
12453
12454 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12455
12456          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
12457
12458 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
12459
12460         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
12461
12462 2003-05-21    <johan AT balder>
12463
12464         * src/SDCCglue.c (printIval): fixed bug #739934
12465
12466 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
12467
12468         Applied patch from bug 737905 (renamed yylineo to mylineno):
12469         * src/altlex.c
12470         * src/SDCCast.c
12471         * src/SDCglobl.h
12472         * src/SDCC.lex
12473         * src/SDCCsymt.c
12474         * src/SDCCval.c
12475         * src/pic16/pcode.c: Cleaned warnings
12476         * src/pic16/pcodeflow.c: Cleaned warnings
12477         * src/pic16/pcoderegs.c: Cleaned warnings
12478
12479 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
12480
12481         * src/pic16/pcode.c: Cleaned warnings
12482         * src/pic16/pcodepeep.c: Cleaned warnings
12483         * src/pic16/ralloc.c: Cleaned warnings
12484
12485 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
12486
12487         * doc/sdccman.lyx: fixed bug 739745
12488         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
12489
12490 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
12491
12492         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
12493         it can be defined with CFLAGS when running configure
12494         * src/SDCCmain.c: fixed compiling + linking with object files
12495
12496 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
12497
12498         * configure.in: configure for pic16 port,
12499             added --disable-pic16-port
12500         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
12501         * src/SDCCmain.c: linkOptions is changed to set *,
12502             added if/endif conditional macros to remove options help
12503             messages from optionsTable when a port is not configured, added
12504             support for the PIc16 port in the ports table, when executing
12505             the compiler with no port specified on command line, a default
12506             port is selected with the new macro DEFAULT_PORT which is
12507             defined in port.h, in setDefaultOptions() linkOptions is removed
12508             from initialization assignment, since now it is a set,
12509             parseCmdLine uses setParseWithComma for linkOptions, in
12510             linkEdit() linkOptions are accessed with new function indexSet()
12511             which returns the i'th item of a set variable. See SDCCset.c, in
12512             linkEdit() when calling buildCmdLine(), added linkOptions as
12513             last argument. Now users can pass arguments to gplink via the
12514             -Wl option, main() uses pic16glue() to glue up pic16 programs
12515         * src/SDCCpeeph.c: various changes to support pic16
12516         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
12517             return the i'th item of the set
12518         * src/SDCCset.h: added function prototype for indexSet()
12519         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
12520         * src/clean.mk: added pic16 in CLEANALLPORTS variable
12521         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
12522             added macro DEFAULT_PORT
12523         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
12524         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
12525             generated
12526         * src/pic16/glue.c: commented out some error producing lines
12527         * src/pic16/main.c: __config directives are commented out to stop
12528             gpasm complaining and test the linkage with gplink, _linkCmd and
12529             _asmCmd changed to be more gplink and gpasm friendly
12530         * src/pic16/peeph.def: peep rule 3 is commented out, since it
12531             produced an error when parsed, peep rule 12 is added to utilize
12532             movff, but it is commented out since the pCode does not support
12533             yet a command with 2 address arguments
12534
12535 2003-05-18    <johan AT balder>
12536
12537         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
12538         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
12539 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
12540
12541         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
12542   Added feature to script commands from file.
12543
12544 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
12545
12546         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
12547         * src/SDCCutil.c: include ctype.h for win32
12548
12549 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
12550
12551         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
12552
12553 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
12554
12555         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
12556   Fixed so you can set breakpoints prior to run, run does not stop
12557   on entry now.  Add tbreak.  Other enhancements and fixes for use
12558   with ddd.
12559
12560 2003-05-12  Borut Razem <borut.razem AT siol.net>
12561
12562         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
12563
12564 2003-05-11  Borut Razem <borut.razem AT siol.net>
12565
12566         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
12567         the path of bin directory, so that PATH is the only env. variable, which has to be set
12568         in case of standard installation.
12569         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
12570         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
12571         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
12572
12573 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
12574
12575         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
12576         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
12577         temp files are in the port dir; clean the gen/test directory when
12578         generating new test.c
12579         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
12580         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
12581         * support/regression/tests/zeropad.c: added
12582
12583 2003-05-09    <johan AT balder>
12584
12585         * src/SDCCglue.c: fixed bug #597940
12586
12587 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
12588
12589         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
12590   cache sfr, optimize next,step, fix off by one sourceline,
12591   support ddd list function.
12592         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
12593
12594 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
12595
12596         * support/regression/HTMLgen.py: added compare_s2f()
12597         * support/regression/Makefile: redo 1.27
12598         * support/regression/generate-cases.py: redo 1.5
12599
12600 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
12601
12602         * support/regression/tests/float.c: workaround 33 bit hex constant
12603         * support/regression/tests/simplefloat.c: fix division for host
12604
12605 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
12606
12607         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
12608         that tame's the PIC's over-aggressive optimizer.
12609
12610 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12611
12612          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
12613          support for MSVC.
12614
12615 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
12616
12617         Initial support for DS80C400. "Hello world" runs on TINIm400
12618         (with polled I/O).
12619
12620 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
12621
12622          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
12623          * Some notes on ddd usage added in debugger/README
12624          Martin Helmling adding more features and fixes for ddd GUI debugger.
12625          Code added for nexti, stepi, up, down, and other adjustments.
12626
12627 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
12628
12629         * src/pic/pCodepeep.c non-wildcard asmops are now handled
12630         * src/pic/peeph.def Added two rules to optimize carry manipulation
12631         * src/pic/* removed debug printfs
12632
12633 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
12634
12635         * debugger/mcs51/cmd.c: added header newalloc.h
12636
12637 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
12638
12639         * as/Makefile: new EXEEXT
12640         * as/z80/Makefile: remove trailing slash of BUILDIR
12641         * as/z80/clean.mk: new EXEEXT
12642         * Makefile.common.in: add to CFLAGS (and others), don't replace it
12643         * support/cpp2/Makefile.in: new EXEEXT
12644         * src/pic/glue.c (pic14emitRegularMap): fixed warning
12645
12646 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
12647
12648         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
12649         EXEEXT was introduced to fix all related problems with targets
12650         "clean", "install" and "uninstall"; a couple of further flaws
12651         especially with "clean" have been fixed too
12652         * as/mcs51/Makefile.in
12653         * as/mcs51/clean.mk
12654         * as/z80/Makefile
12655         * Makefile
12656         * clean.mk
12657         * debugger/mcs51/Makefile.in
12658         * debugger/mcs51/clean.mk
12659         * link/z80/Makefile
12660         * link/z80/Makefile.in
12661         * link/z80/clean.mk
12662         * link/Makefile
12663         * packihx/Makefile.in
12664         * packihx/clean.mk
12665         * sim/ucsim/Makefile
12666         * sim/ucsim/clean.mk
12667         * sim/ucsim/avr.src/Makefile.in
12668         * sim/ucsim/avr.src/clean.mk
12669         * sim/ucsim/s51.src/Makefile.in
12670         * sim/ucsim/s51.src/clean.mk
12671         * sim/ucsim/xa.src/Makefile.in
12672         * sim/ucsim/xa.src/clean.mk
12673         * sim/ucsim/z80.src/Makefile.in
12674         * sim/ucsim/z80.src/clean.mk
12675         * sim/ucsim/main_in.mk
12676         * sim/ucsim/packages_in.mk
12677         * sim/ucsim/gui.src/Makefile.in
12678         * sim/ucsim/gui.src/serio.src/Makefile.in
12679         * sim/ucsim/gui.src/serio.src/clean.mk
12680         * src/Makefile.in
12681         * src/clean.mk
12682         * support/cpp2/Makefile.in
12683         * support/cpp2/clean.mk
12684         * support/makebin/Makefile
12685         * support/makebin/clean.mk
12686         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
12687         * doc/sdccman.lyx: --program-suffix no longer needed
12688
12689 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
12690
12691          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
12692          Martin Helmling added support for ddd GUI debugger.
12693          Code added to display assembly, set variables, and other commands
12694          to interface to ddd.
12695
12696 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
12697
12698         * as/Makefile: fix target clean
12699         * as/clean.mk: fix target clean
12700         * as/z80/clean.mk: fix target clean
12701
12702 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
12703
12704         * Makefile.common.in: added  AT EXEEXT AT
12705         * configure.in: removed all mingw32 stuff
12706         * configure: rebuilt from configure.in
12707         * doc/sdccman.lyx: updated section "installation"
12708         * support/scripts/sdcc_mingw32: adapted to configure
12709         * support/scripts/sdcc_cygwin_mingw32: added
12710
12711 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
12712
12713         * src/pic Added object file support for the PIC port
12714         * src/pic Applied patch from Craig Franklin (this started the object file support)
12715         * src/regression Updated the PIC regression tests for object files
12716
12717 2003-04-20  Borut Razem <borut.razem AT siol.net>
12718
12719         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
12720           lklex.c: In function `getfid':
12721           lklex.c:203: warning: array subscript has type `char'
12722         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
12723           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
12724         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
12725           stack handling macros
12726
12727 2003-04-19  Borut Razem <borut.razem AT siol.net>
12728
12729         * "handling space characters in file path" task:
12730         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
12731         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
12732         * support/Util/MySystem.h: make it self-sufficient
12733         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
12734           src/z80/main.c, sdcc/as/mcs51/lklex.c:
12735           handling space characters in file path
12736         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
12737           (it will be used by assemblers, which have their own includes, e.g. gpasm)
12738         * support/Util/MySystem.c: handling space characters in executable's path
12739
12740 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
12741
12742         * as/z80/Makefile: fix permanent rebuild of z80
12743         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
12744         * support/regression/tests/bitfields.c: added Johan's bitfields.c
12745
12746 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
12747
12748         * src/SDCCopt.c: add special case optimization to replace modulo by
12749           a power of two with a bitwise AND.
12750
12751 2003-04-18    <johan AT balder>
12752
12753         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
12754
12755 2003-04-17    <johan AT balder>
12756
12757         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
12758         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
12759
12760 2003-04-13  Borut Razem <borut.razem AT siol.net>
12761
12762         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
12763         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
12764           fixed mingw problem in adl_NORMALIZE_PATH
12765
12766 2003-04-12  Borut Razem <borut.razem AT siol.net>
12767
12768         * fixed "#pragma SAVE/RESTORE can not be nested":
12769         * src/SDCC.lex: reworked pragma handling functions
12770         * sdcc/src/SDCCglobl.h: reworked stack handling macros
12771         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
12772
12773 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
12774
12775         * src/SDCCutil.c (pathEquivalent): defined but not used
12776         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
12777         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
12778         * configure: rebuilt from configure.in
12779         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
12780         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
12781         * device/include/Makefile.in: replace sdcc_datadir
12782         * device/lib/Makefile.in: replace sdcc_datadir
12783         * Makefile.common.in: add LDFLAGS from configure
12784         * packihx/Makefile.in: use LDFLAGS
12785         * src/Makefile.in: use LDFLAGS
12786         * support/cpp2/Makefile.in: add LDFLAGS from configure
12787         * support/makebin/Makefile: use LDFLAGS
12788         * .version: bumped version number to 2.3.5
12789
12790 2003-04-12  Borut Razem <borut.razem AT siol.net>
12791
12792         * completed "different paths" task:
12793         * src/SDCCmacro.c: fixed bug in handling quotes
12794         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
12795         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
12796
12797 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
12798
12799         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
12800
12801 2003-04-11 kevin Vigor <kevin AT vigor.nu>
12802
12803         * ds390/gen.c ds390/peeph.def: fix bug 706781
12804
12805 2003-04-11  Borut Razem <borut.razem AT siol.net>
12806
12807         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
12808
12809 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
12810
12811         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
12812         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
12813          set - this bit used to not be set...).
12814         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
12815           bad code in PIC Port
12816         * src/regression/and2.c added to test bug 609268
12817         * src/regression/Makefile added and2.c to regression test
12818
12819
12820 2003-04-08    <johan AT CP255758-A>
12821
12822         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
12823         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
12824         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
12825
12826 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
12827
12828         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
12829         fix bug #487815
12830         * support/cpp2/Makefile.in: fix bug #487815
12831         * configure: rebuilt from configure.in
12832         * Makefile.common.in: docdir changed, new path suffixes
12833         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
12834         * sdcc_vc_in.h: reflect changes from sdccconf.h
12835         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
12836         * src/SDCCutil.h: remove BINDIR hack
12837         * doc/sdccman.lyx: update new path hierarchy
12838
12839 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
12840
12841         * src/SDCCpeeph.c: added okToRemoveSLOC test
12842
12843 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
12844
12845         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
12846
12847 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
12848
12849         * src/SDCCpeeph.c: added labelIsReturnOnly test
12850         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
12851
12852 2003-04-05    <johan AT balder>
12853
12854         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
12855         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
12856         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
12857         * src/SDCCast.c: fixed a warning
12858         * src/SDCCast.h: fixed a warning
12859         * src/SDCCicode.c (operandFromAst): fixed a warning
12860
12861 2003-04-04    <johan AT balder>
12862
12863         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
12864         * src/SDCCast.c (decorateType): fixed bug #715076
12865         * src/SDCC.y: fixed bug #702907
12866
12867 2003-04-03    <johan AT balder>
12868
12869         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
12870         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
12871         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
12872         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
12873         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
12874
12875 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
12876
12877         * _decdptr.c: fix return values
12878         * _gptrget.c: fix return values
12879         * _gptrgetc.c: fix return values
12880         * _gptrput.c: fix return values
12881         * _mulint.c: fix return values
12882         * as/z80/Makefile: fix 'make -j' problem
12883
12884 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
12885
12886         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
12887         * configure.in: big cleanup, updated to autoconf 2.5x
12888         * configure: rebuilt from configure.in
12889         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
12890         * sdcc_vc_in.h: reflect changes from sdccconf.h
12891         * doc/Makefile: fixed a flaw in "make install"
12892
12893 2003-04-02    <johan AT balder>
12894
12895         * src/ds390/gen.c (genCmp): no comments
12896         * src/mcs51/gen.c (genCmp): no comments
12897         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
12898         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
12899
12900 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
12901
12902         * support/regression/generate-cases.py: place generated file in given sub directory
12903         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
12904         * support/regression/Makefile: improvements for 'make -j';
12905         side effect: it's simpler and faster now
12906
12907 2003-03-31  Borut Razem <borut.razem AT siol.net>
12908
12909         * src/z80/main.c: link-{port} and as-{port} defined without path
12910         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
12911
12912 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
12913
12914         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
12915
12916 2003-03-30  Borut Razem <borut.razem AT siol.net>
12917
12918         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
12919           changed type of list parameter to set
12920         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
12921         * src/port.h: changed type of do_assemble() parameter to set
12922         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
12923           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
12924           definition of "cppoutfilename" macro with NULL value in preProcess()
12925         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
12926         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
12927         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
12928           replaced with set *binPathSet
12929         * shash_add() deallocates the item, if allready exsists, before adding the new one
12930         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
12931
12932 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
12933
12934         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
12935           a nested for loop bug in the PIC port
12936         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
12937           for loops
12938
12939 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
12940
12941         * support/Util/dbuf.h: remove C++ stuff to make it portable
12942
12943 2003-03-28  Borut Razem <borut.razem AT siol.net>
12944
12945         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
12946           literal strings in stringLiteral()
12947         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
12948         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
12949           to the project
12950
12951 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
12952
12953         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
12954
12955 2003-03-26    <johan AT balder>
12956
12957         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
12958         * src/ds390/gen.c (saveRegisters): catched symbol abuse
12959         * src/SDCCast.c (decorateType): fixed " -v < 3"
12960
12961 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
12962
12963         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
12964         Added Lenny Story's debug infrastructure changes:
12965         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
12966         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
12967         * src/cdbFile.c: added
12968         * src/SDCCdebug.c: added
12969         * src/SDCCdebug.h: added
12970         * src/SDCCast.c (createFunction)
12971         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
12972         * src/SDCCmain.c (parseCmdLine, main)
12973         * src/SDCCmem.c (redoStackOffsets)
12974         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
12975         * src/SDCCsymt.h
12976         * src/common.h
12977         * src/avr/gen.c (genAVRCode)
12978         * src/ds390/gen.c (gen390Code)
12979         * src/mcs51/gen.c (gen51Code)
12980         * src/pic/gen.c (genpic14Code)
12981         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
12982         * src/xa51/gen.c (genXA51Code)
12983         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
12984
12985 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12986
12987         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
12988         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
12989
12990 2003-03-22    <johan AT balder>
12991
12992         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
12993
12994 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
12995
12996         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
12997         * doc/cdbfileformat.lyx: added, written by Lenny Story
12998         * doc/Makefile: added cdbfileformat.lyx
12999         * doc/clean.mk: added cdbfileformat.lyx
13000
13001 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
13002
13003         * src/mcs51/peeph.def: fix bug #705773
13004
13005 2003-03-20    <johan AT balder>
13006
13007         An sfr/sbit can have an "at #" AND an initializer
13008         * src/SDCCsymt.c (checkSClass):
13009         * src/SDCCmem.c (allocGlobal):
13010         * src/SDCCmem.c (allocLocal):
13011         * src/SDCCast.c (createBlock):
13012
13013 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
13014
13015         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
13016
13017 2003-03-16    <johan AT balder>
13018
13019         Undid the hackup of const and volatile, the problem is much bigger
13020         * src/SDCC.y:1.65
13021         * src/SDCCast.c:1.171
13022         * src/SDCCglue.c:1.138
13023         * src/SDCCicode.c:1.146
13024         * src/SDCCsymt.c:1.150
13025         * src/SDCCval.c:1.65
13026
13027 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
13028
13029         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
13030         * src/ds390/gen.c (genAddrOf): fixed bug #704087
13031
13032 2003-03-13    <johan AT balder>
13033
13034         Hackup const and volatile modifiers in type chains a bit:
13035         * src/SDCC.y:1.63
13036         * src/SDCCast.c:1.169
13037         * src/SDCCglue.c:1.136
13038         * src/SDCCicode.c:1.143
13039         * src/SDCCsymt.c1.146
13040         * src/SDCCsymt.h1.59
13041         * src/SDCCval.c:1.63
13042
13043 2003-03-12    <johan AT balder>
13044
13045         * src/SDCCBBlock.h: more LRH debugging junk
13046         * src/SDCCcflow.h: more LRH debugging junk
13047         * src/SDCCloop.c: more LRH debugging junk
13048         * src/SDCC.y (struct_declaration): fixed bug #697590
13049         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
13050         * src/ds390/gen.c (aopForRemat): fixed bug #700031
13051         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
13052
13053 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
13054         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
13055         test function names must now match exactly).
13056         * src/SDCCcse.c: added special case in findCheaperOp to allow
13057         extending a short integer. Makes less awful code for bug 700121 test case.
13058
13059 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13060
13061         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
13062         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
13063
13064 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
13065
13066         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
13067         actually called (operandsNotEqual() was called for all
13068         operandsNotEqualX tests).
13069
13070 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
13071
13072         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
13073         with shorter literals. Fixes bug 700121.
13074
13075 2003-03-11    <johan AT balder>
13076
13077         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
13078
13079 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
13080
13081         * src/SDCCloop.c (mergeRegions): an evil beast is dead
13082         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
13083
13084 2003-03-10  Borut Razem <borut.razem AT siol.net>
13085
13086         * src/SDCCmain.c: pipe preprocessor's output
13087         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
13088         * sdcc_vc_in.h: define pclose as _pclose for WIN32
13089         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
13090         which closes all pipes in pipeSet set
13091         * src/SDCCset.c: free deleted item in function deleteSetItem()
13092         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
13093         moved from z80 to src subproject
13094         * .version: increased version number to 2.3.4
13095
13096 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
13097
13098         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
13099         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
13100         * support/regression/ports/xa51/spec.mk: fix typo
13101
13102 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
13103
13104         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
13105
13106 2003-03-09  Borut Razem <borut.razem AT siol.net>
13107
13108         * src/SDCCmain.c: pipe preprocessor's output
13109         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
13110         * sdcc_vc_in.h: define pclose as _pclose for WIN32
13111         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
13112         which closes all pipes in pipeSet set
13113         * src/SDCCset.c: free deleted item in function deleteSetItem()
13114         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
13115         moved from z80 to src subproject
13116
13117 2003-03-09  Borut Razem <borut.razem AT siol.net>
13118
13119         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
13120         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
13121         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
13122         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
13123         * src/SDCCglobl.h: unification of WIN32 native definitions
13124
13125 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13126
13127         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
13128
13129 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
13130
13131         * src/configure.in:   check for endianess (even while cross-compiling)
13132         * src/configure:      check for endianess (even while cross-compiling)
13133         * src/configure_in.h: check for endianess (even while cross-compiling)
13134         * src/avr/gen.c:        remove old endianess stuff
13135         * src/mcs51/gen.c:      remove old endianess stuff
13136         * src/ds390/gen.c:      remove old endianess stuff
13137         * src/pic/gen.c:        remove old endianess stuff
13138         * src/pic/genarith.c:   remove old endianess stuff
13139         * src/pic/glue.c:       fix endianess check
13140         * src/pic16/gen.c:      remove old endianess stuff
13141         * src/pic16/genarith.c: remove old endianess stuff
13142         * src/pic16/glue.c:     fix endianess check
13143         * src/xa51/gen.c:       remove old endianess stuff
13144         * src/z80/gen.c:        fix endianess check
13145         * src/SDCCglue.c:       fix endianess check
13146         * src/ds390/peeph.def: fix bug 700036
13147
13148 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
13149
13150         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
13151         * src/configure: find appropriate data-types on host for SDCC's int and long
13152         * src/configure.in: find appropriate data-types on host for SDCC's int and long
13153         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
13154         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
13155
13156 2003-03-07    <johan AT balder>
13157
13158         Just a big NOOP:
13159                 some minor cleanups before the big shot
13160                 OP_DEFS and OP_USES now use Kevin's protection
13161                 new option --nolabelopt
13162
13163         * src/SDCCBBlock.c:
13164         * src/SDCCast.c,:
13165         * src/SDCCcflow.c:
13166         * src/SDCCcse.c:
13167         * src/SDCCicode.c:
13168         * src/SDCCicode.h:
13169         * src/SDCClabel.c:
13170         * src/SDCCloop.c:
13171         * src/SDCCmain.c:
13172         * src/ds390/ralloc.c:
13173         * src/mcs51/ralloc.c:
13174         * src/pic/ralloc.c:
13175         * src/xa51/ralloc.c:
13176         * src/z80/ralloc.c:
13177
13178 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
13179
13180         * src/pic/pcode.c (get_op): fix 64 bit warnings
13181         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
13182         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
13183         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
13184         * support/regression/tests/malloc.c: fix 64 bit warnings
13185
13186 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
13187
13188         * src/mcs51/gen.c (genMinus): fixed bug 696436
13189
13190 2003-03-02  Borut Razem <borut.razem AT siol.net>
13191
13192         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
13193
13194 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
13195
13196         * configure.in: test for mkstemp
13197         * sdccconf_in.h: add HAVE_MKSTEMP
13198
13199 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
13200
13201         * device/include/ctype.h: removed warning while using --stack-auto
13202         * device/include/malloc.h: removed warning while using --stack-auto
13203         * device/include/string.h: removed warning while using --stack-auto
13204
13205 2003-02-23  Borut Razem <borut.razem AT siol.net>
13206
13207         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
13208         because NDEBUG is defined (see man assert)
13209         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
13210
13211 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13212
13213         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
13214         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
13215
13216 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13217
13218         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
13219         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
13220
13221 2003-02-18    <johan AT balder>
13222
13223         * as/mcs51/asmain.c (asmbl): module can start with a digit
13224         * as/z80/asmain.c (asmbl): module can start with a digit
13225
13226 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
13227
13228         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
13229         * src/asm.c: fix pipe() for Mingw32
13230
13231 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
13232
13233         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
13234         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
13235         make -V work again; --c1mode reads now from stdin
13236         * doc/sdccman.lyx: added --c1mode
13237         * support/Util/SDCCerr.c: new messages for c1 mode
13238         * support/Util/SDCCerr.h: new messages for c1 mode
13239         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
13240
13241 2003-02-15    <johan AT balder>
13242
13243         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
13244
13245 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
13246
13247         * doc/sdccman.lyx: Environment variables, -o and other minor things
13248
13249 2003-02-14    <johan AT balder>
13250
13251         * src/xa51/main.c: before anyone really tries to use it :)
13252
13253         * Install doc's in share/sdcc/doc
13254         * removed some obsolete files
13255         * Do a proper make distclean and uninstall
13256         M Makefile.common.in
13257         R sdccbuild.sh
13258         M as/Makefile
13259         M device/include/Makefile.in
13260         M device/lib/Makefile.in
13261         M doc/sdccman.lyx
13262         M link/Makefile
13263         M sim/ucsim/doc/Makefile.in
13264         M src/clean.mk
13265         R src/avr/peeph.rul
13266         R src/xa51/peeph.rul
13267         M support/cpp2/Makefile.in
13268         M support/makebin/Makefile
13269
13270
13271 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
13272
13273         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
13274
13275 2003-02-10  Borut Razem <borut.razem AT siol.net>
13276
13277         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
13278         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
13279         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
13280         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
13281         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
13282         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
13283         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
13284         src/z80/Makefile.bcc: Borland Makefile cleanup
13285         * as/z80/Makefile.bcc: Added Borland Makefile
13286         * support/cpp2/borland.h: Removed
13287
13288 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
13289
13290         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
13291         * src/SDCC.lex: new pragma NOIV
13292         * src/SDCCglobl.h: new pragma NOIV
13293         * src/SDCCmem.c: new pragma NOIV
13294
13295 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
13296
13297         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
13298
13299 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
13300
13301         * src/SDCCmain.c: signal handling is switched off by --debug
13302         * doc/Makefile: small fix for install; use clean.mk again
13303         * doc/clean.mk: clean *.pdf and *.html too
13304
13305 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
13306
13307         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
13308         * device/lib/printfl.c: fix a ds390 bug by making it portable
13309         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
13310         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
13311         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
13312         * debugger/mcs51/cmd.c: converted multi-line string literals
13313         * sim/ucsim/globals.cc: converted multi-line string literals
13314         * src/SDCCmain.c: introduced signal handler to remove temp files
13315         * doc/Makefile: small tweaks, implement clean
13316         * doc: removed generated files
13317
13318 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13319
13320         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
13321         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
13322         Address Record is not correctly generated for DS390."
13323
13324 2003-02-02  Borut Razem <borut.razem AT siol.net>
13325
13326         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
13327         * as/mcs51/asm.h: fixed compilation with Borland C
13328         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
13329         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
13330         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
13331         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
13332         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
13333         src/z80/Makefile.bcc: delete $(LIB) only if exist
13334         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
13335
13336 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
13337
13338         * device/include/malloc.h: introduced NULL
13339         * device/include/string.h: introduced NULL
13340         * device/include/stdlib.h: introduced NULL
13341         * device/lib/_memcpy.c: removed NULL
13342         * device/lib/_strcat.c: removed NULL
13343         * device/lib/_strchr.c: removed NULL
13344         * device/lib/_strcmp.c: removed NULL
13345         * device/lib/_strcpy.c: removed NULL
13346         * device/lib/_strcspn.c: removed NULL
13347         * device/lib/_strlen.c: removed NULL
13348         * device/lib/_strncat.c: removed NULL
13349         * device/lib/_strncmp.c: removed NULL
13350         * device/lib/_strncpy.c: removed NULL
13351         * device/lib/_strpbrk.c: removed NULL
13352         * device/lib/_strrchr.c: removed NULL
13353         * device/lib/_strspn.c: removed NULL
13354         * device/lib/_strstr.c: removed NULL
13355         * device/lib/_strtok.c: removed NULL
13356         * device/lib/malloc.c: removed NULL, include own header
13357
13358 2003-02-02    <johan AT balder>
13359
13360         * 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
13361         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
13362         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
13363         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
13364         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
13365         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
13366
13367 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13368
13369         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
13370         area 'DATA'"
13371
13372 2003-02-01    <johan AT balder>
13373
13374         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
13375
13376 2003-01-31    <johan AT CP255758-A>
13377
13378         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
13379
13380 2003-01-30    <johan AT balder>
13381
13382         * src/SDCCBBlock.c: automatic bug detection
13383         * src/SDCCicode.c: automatic bug detection
13384
13385 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13386
13387         * src/SDCCglobl.h:   now --xram-size 0 works
13388         * src/SDCCmain.c:    now --xram-size 0 works
13389
13390 2003-01-29    <johan AT balder>
13391
13392         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
13393
13394 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13395
13396         * as/mcs51/aslink.h: Added options --xram-size and --code-size
13397         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
13398         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
13399         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
13400         * src/SDCCglobl.h:   Added options --xram-size and --code-size
13401         * src/SDCCmain.c:    Added options --xram-size and --code-size
13402
13403 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
13404
13405         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
13406         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
13407
13408 2003-01-27    <johan AT balder>
13409
13410         * src/SDCC.y: fixed bug #613764
13411
13412 2003-01-26    <johan AT balder>
13413
13414         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
13415         * src/SDCCsymt.h: fixed bug #673374
13416         * src/SDCCglue.c: fixed bug #661910
13417         * src/SDCCast.c: fixed bug #458099 and 673374
13418
13419 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
13420
13421         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
13422         * as/mcs51/strcmpi.h: added
13423         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
13424         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
13425         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
13426         * as/mcs51/assym.c: strcmpi -> as_strcmpi
13427         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
13428         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
13429         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
13430         * as/mcs51/Makefile.aslink: new module strcmpi
13431         * as/mcs51/Makefile.asx8051: new module strcmpi
13432         * as/mcs51/Makefil.bcc: new module strcmpi
13433         * as/mcs51/Makefile.in: new module strcmpi
13434         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
13435
13436 2003-01-26    <johan AT balder>
13437
13438         * src/SDCCglue.c: reverted back to 1.124
13439         * src/SDCCast.c: reverted back to 1.156
13440         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
13441
13442 2003-01-25    <johan AT balder>
13443
13444         * src/SDCCglue.c: A better fix for bug #661910
13445         * src/SDCCast.c: A better fix for bug #661910
13446         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
13447
13448 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
13449
13450         * src/Makefile.in: remove spawn.o
13451         * src/SDCCmain.c: remove spawn.h
13452         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
13453         * src/spawn.c: removed
13454         * src/spawn.h: removed
13455         * support/regression/ports/ds390/spec.mk: link with -r
13456
13457 2003-01-24    <johan AT CP255758-A>
13458
13459         * src/ds390/gen.c (aopOp): fixed bug #667458
13460         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
13461         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
13462         (createIvalCharPtr): an ival doesn't always have a storage class anymore
13463
13464 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
13465
13466         * src/mcs51/peeph.def: better assembler identation by Frieder
13467         * src/mcs51/gen.c: better assembler identation by Frieder
13468
13469 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
13470
13471         * as/z80/string.h: removed for gcc 3.2
13472         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
13473         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
13474
13475 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
13476
13477         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
13478         * src/SDCCpeeph.c (replaceRule): fix bug #663503
13479         * support/regression/Makefile: separate temp files for ports
13480         * support/regression/generate-cases.py: separate temp files for ports
13481         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
13482         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
13483
13484 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
13485
13486         * moved tinitalk to device/examples/ds390
13487
13488 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
13489
13490         * as/mcs51/lkmem.c: rflag is for DS390
13491         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
13492         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
13493                          (linkEdit): move mem- and map-files the same way as ihx-files
13494         * src/z80/main.c (_setDefaultOptions): removed --generic
13495         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
13496         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
13497         * src/pic/glue.c (picglue): --c1mode works again
13498         * src/pic16/glue.c (pic16glue): --c1mode works again
13499         * src/asm.c (printCLine): fix #660034
13500
13501 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
13502
13503         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
13504         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
13505         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
13506         * as/mcs51/lkmem (summary): better fix for sp problem
13507         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
13508         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
13509         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
13510                                               remove --stack-after-data
13511
13512 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
13513
13514         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
13515         * src/SDCCutil.c (join): ugly bug: missing '\0'
13516         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
13517
13518 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
13519
13520         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
13521         * src/port.h: typo
13522         * src/pic/main.c (_asmCmd): gpasm supports -o
13523         * src/z80/main.c: more general macros
13524         * device/lib/Makefile.in: remove intermediate files
13525
13526 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
13527
13528         * .version: Bumped version number to 2.3.3
13529         * src/SDCCBBlock.c: new option -o
13530         * src/SDCCglobl.h: new option -o
13531         * src/SDCCglue.c: new option -o
13532         * src/SDCCmain.c: new option -o
13533         * src/asm.c: new option -o
13534         * src/ds390/main.c: new option -o
13535         * src/pic/glue.c: new option -o
13536         * src/pic/pcode.c: new option -o
13537         * src/pic/ralloc.c: new option -o
13538         * src/pic16/glue.c: new option -o
13539         * src/pic16/pcode.c: new option -o
13540         * src/pic16/ralloc.c: new option -o
13541         * src/z80/main.c: new option -o
13542         * device/lib/Makefile.in: use -o
13543         * support/regression/ports/ds390/spec.mk: use -o
13544         * support/regression/ports/gbz80/spec.mk: use -o
13545         * support/regression/ports/mcs51/spec.mk: use -o
13546         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
13547         * support/regression/ports/z80/spec.mk: use -o
13548         * support/regression/ports/ucz80/spec.mk: use -o
13549         * support/regression/ports/xa51/spec.mk: use -o
13550         * support/regression/fwk/lib/timeout.c: fix usage string
13551
13552 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
13553         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
13554
13555 2003-01-07    <johan AT balder>
13556
13557         * src/SDCCast.c (decorateType): fixed bug #600035
13558
13559 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
13560         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
13561         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
13562         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
13563         * src/pic/pcode.c: outcommented unused variable to remove warnings
13564         * src/pic/ralloc.c: outcommented unused variable to remove warnings
13565
13566 2003-01-06    <karl AT turbobit.com>
13567         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
13568    regression tests.
13569
13570 2003-01-06    <johan AT balder>
13571
13572         * src/SDCCicode.c: fixed array add
13573
13574 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
13575         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
13576         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
13577
13578 2003-01-04    <johan AT balder>
13579
13580         * src/SDCCval.c (getNelements): fixed the initialized array of structures
13581
13582 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13583         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
13584
13585 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
13586         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
13587         * support/regression/tests/bug-524697.c: fit mem usage into 8032
13588
13589 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
13590         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
13591
13592 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
13593         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
13594
13595 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
13596         * src/mcs51/main.c: removed {bindir}{sep} from aslink
13597
13598 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13599
13600     * in /sdcc/as/mcs51/ changed these files in order to create an
13601     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
13602     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
13603     following files to include the previous two files: aslink.dsp,
13604     Makefile.aslink, Makefile.bcc, and Makefile.in.
13605
13606     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
13607     .adb instead of .cdb
13608
13609 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13610
13611         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
13612         value from option --iram-size.
13613
13614 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13615
13616         * /sdcc/as/mcs51/lklist.c: added boundary check before using
13617         dram[] array.
13618
13619 2002-09-18    <wiml AT hhhh.org>
13620
13621         * SDCClrange.h: exposed setFromRange() and setToRange()
13622         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
13623           packRegsForAccUse() (bug 542397)
13624         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
13625           multiple times and emitting the fetch operations more than once
13626           added aopGetUsesAcc() function to allow binary operators to
13627           fetch their operands in the correct order; made genMinus() emit
13628           compact code for X = LITERAL - Y
13629
13630 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13631         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
13632         sprintf() in line 1267.
13633
13634 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13635         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
13636         like ports.
13637
13638 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13639         Changes to aslink (All the changes are marked with 'JCF'):
13640
13641         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
13642         summary().
13643
13644         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
13645         area BSEG.  Also moves, if possible, the DATA area down into the internal
13646         ram so more space is available.
13647
13648         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
13649         sflag.
13650
13651         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
13652         not bytes.  Function summary() which creates a memory usage summary
13653         file with extension .mem.  Reports of overlaping stack and small stack
13654         size.  If the space for the stack is less than 16 bytes aslink trows a
13655         warning.
13656
13657         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
13658         the 8051.  Option 'y' for memory summary output file.
13659
13660         Changes to sdcc (All the changes are marked with 'JCF'):
13661
13662         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
13663
13664         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
13665         overlaying area for it (uses RegBankUsed[4]).
13666
13667         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
13668         bank zero as used by default.  By default aslink locates the stack
13669         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
13670         the creation of the .mem file.  Delegates the allocation of data area
13671         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
13672         the begining of the stack area to aslink.
13673
13674         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
13675         glue() in SDCCglue.c creates an area for it.
13676
13677 2002-09-03  Borut Razem <borut.razem AT siol.net>
13678         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
13679         sdcc/src/pic/glue.c:
13680         introduced atexit() handler for teporay files removal in case of
13681         errors, assertions, ...
13682
13683 2002-08-29  Borut Razem <borut.razem AT siol.net>
13684         * sdcc/support/cpp2/auto-host_vc_in.h:
13685         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
13686         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
13687         Maybe there is a similar problem with BORLANDC? It should be checked!
13688
13689         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
13690         corrected improper use of assert: the assignment to clr variable was done inside the assert.
13691         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
13692         was not executed, and the compiler (cl) launched a warning:
13693         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
13694
13695 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
13696         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
13697
13698 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
13699         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
13700
13701         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
13702           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
13703           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
13704           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
13705           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
13706           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
13707           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
13708         - added Release configuration in VS projects
13709         - review of compiler an linker options
13710         - VC .exe files are generated in bin_vc directory, not to interfere
13711           with binaries generated from other projects (cygwin, mingw, bcc ...)
13712
13713         * sdcc/src/yacc.dsp: added
13714
13715         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
13716         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
13717         and insert the version number definitions from .version
13718
13719         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
13720
13721         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
13722         added - genarate auto-host.h using auto-host_vc_in.h as template
13723
13724         * sdcc/sdcc_vc.h,
13725         removed from CVS, generated automatically
13726
13727 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
13728         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
13729
13730 2002-08-11  Borut Razem <borut.razem AT siol.net>
13731         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
13732
13733 2002-08-10  Borut Razem <borut.razem AT siol.net>
13734         * src/SDCCmain.c (main):
13735         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
13736         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
13737         The consequence was that some temporary files were not removed.
13738
13739         * src/SDCCglue.c:
13740         unification of code in functions tempfilename() and tempfile():
13741         function tempnam() is defined in Visual Studio 6.0 and .NET
13742
13743         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
13744
13745         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
13746           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
13747         - removed compiler command line option /WX: Treats all warnings as errors
13748         - update a list of source files, included into the project
13749
13750         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
13751           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
13752         changed project type to Generic Project so that can be correcly converted to VS.NET project
13753
13754         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
13755
13756         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
13757
13758         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
13759
13760         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
13761         added return 0 statements after assert() to make compiler happy
13762
13763         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
13764         added newline in the def file to keep MSC compiler satisfied
13765
13766         * sdcc/src/z80/gen.c:
13767         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
13768           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
13769         - solved MSC error in function aopDump()
13770
13771         * sdcc_vc.h: define PREFIX as "\\sdcc"
13772
13773 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
13774         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
13775
13776 2002-06-22  Scott Dattalo <scott AT dattalo.com>
13777         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
13778         - Rewrote the register banking algorithm.
13779         - Added pCode live-range analysis to registers (for now, only non-used and
13780         singly-used registers optimized away)
13781
13782         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
13783
13784         * 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.
13785
13786 2002-05-10  Scott Dattalo <scott AT dattalo.com>
13787         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
13788
13789 2002-04-22  Michael Hope  <michaelh AT vroom>
13790
13791         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
13792
13793         * configure.in (DD_COPT): Added include support required for gbdk.
13794
13795         * .version: Bumped version number just to increase it.
13796
13797         * src/SDCCmain.c: Added -nostdinc to the default options.
13798
13799 2002-04-15  Michael Hope  <michaelh AT vroom>
13800
13801         * device/lib/z80/printf.c (sprintf): Added.
13802
13803         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
13804
13805         * src/z80/peeph.def: Added transpose redundent load rule.
13806
13807         * src/z80/main.c: Added force callee saves for jaune.
13808
13809         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
13810
13811         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
13812
13813 2002-03-28  Johan Knol  <johan AT balder>
13814
13815         * src/SDCCval.c: fixed bug #532436
13816
13817 2002-03-14  Scott Dattalo <scott AT dattalo.com>
13818         * /src/port.h:
13819         Added "char *Processor" field to the port structure.
13820
13821         * /src/SDCCmain.c:
13822         Added -p option. Allows port dependent processor to be specified.
13823
13824         * all ports:
13825         Initialized the new field char *Processor field to NULL in all ports
13826
13827         * /src/pic/*:
13828         Compiler generated registers for interrupt context saving
13829         were not getting allocated.
13830
13831 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
13832
13833         * /src/SDCCast.c:
13834         Fixed left shift. Will promote the left side of a left shift
13835         if a) left shifting more than size of operand or b) when assigned
13836         to something size > size of left side
13837
13838 2002-03-14  Scott Dattalo <scott AT dattalo.com>
13839         * src/pic/*
13840         tons of changes. Register allocation has been
13841         rewritten. Added customization for the various PICs. Flow
13842         analysis is restructured. ...
13843
13844         * src/pic/device.h:
13845         Added
13846
13847         * src/pic/device.c:
13848         Added. device.c is a PIC port hack to accomodate variations
13849         in PIC devices.
13850
13851 2002-03-13  Michael Hope  <michaelh AT vroom>
13852
13853         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
13854
13855 2002-03-04  johanknol  <johanknol AT manik>
13856
13857         * /src/SDCCval.c: fixed
13858
13859         const unsigned char arr[][2] = { { 0, 1 } };
13860         t18.c:1: error: Initializer element is not constant
13861
13862 2002-03-04  bela  <bela AT manik>
13863
13864         * /device/include/mcs51reg.h:
13865         ds89c420 register definition update
13866
13867 2002-03-03    <johan AT FRIJA>
13868
13869         * support/Util/SDCCerr.c: did something, but don't no why anymore
13870
13871         * support/regression/tests/bug-524691.c: made it a little less shy
13872
13873         * src/SDCCast.c (decorateType): fixed bug #524697
13874
13875         * src/SDCCast.c: made some lineno improvements
13876
13877         * src/SDCCval.c (getNelements): changed warning to error
13878
13879         * src/SDCCglue.c (printIvalArray): changed warning to error
13880
13881         * src/SDCCicode.c: fixed a warning for mingw
13882
13883         * src/SDCCast.c (decorateType): fixed the << promotion for ops
13884
13885         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
13886
13887 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
13888
13889         * src/ds390/peeph.def:
13890         Added some more peephole rules
13891
13892         * src/ds390/gen.c: Various fixes & enhancements
13893
13894         * src/SDCClrange.c, src/SDCClrange.h:
13895         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
13896
13897         * src/ds390/ralloc.c:
13898         various fixes & enhancements (ds390) specific
13899
13900         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
13901         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
13902         from rallocs.
13903
13904         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
13905
13906 2002-03-02    <johan AT FRIJA>
13907
13908         * src/SDCCast.c (decorateType): fixed bug #524708
13909
13910         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
13911
13912         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
13913
13914 2002-03-01  Michael Hope  <michaelh AT vroom>
13915
13916         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
13917
13918         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
13919
13920 2002-03-01    <johan AT FRIJA>
13921
13922         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
13923
13924         * src/SDCCast.c (decorateType): fixed bug #524209
13925
13926         * src/SDCCval.c (valNot): fixed bug #524195
13927
13928 2002-02-26    <johan AT balder>
13929
13930         * src/xa51/gen.c: fixed a warning
13931
13932         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
13933
13934         * src/SDCCast.c (decorateType): fixed bug #522534
13935
13936 2002-02-23    <johan AT balder>
13937
13938         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
13939
13940 2002-02-22    <johan AT balder>
13941
13942         * src/SDCCast.c: fixed bug #514865
13943
13944         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
13945
13946 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
13947
13948         * sdcc/src/SDCCloop.c:
13949         Previous fix was not good. basic blocks that have "break" or "return" are
13950         not really partof a loop , but live ranges used in these blocks should
13951         be live thru the entire loop, so set partOfLoop but don't add them to
13952         loop region
13953
13954 2002-02-21    <johan AT FRIJA>
13955
13956         * src/SDCCcse.c: fixed bug #514308
13957
13958 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
13959
13960         * src/SDCCloop.c:
13961         Fixed BUG #519583. If a conditional block ended in a return/break
13962         statement inside a loop, it was not being considered part of the loop.
13963
13964         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
13965
13966 2002-02-10  Karl Bongers <karl AT turbobit.com>
13967
13968         * debugger/*:
13969         Fixed up SDCDB debugger somewhat.  Updated debugger/README
13970         with lots of comments and notes.
13971
13972         * device/examples/test2.c:
13973         Fix bug, "red" variable not being initialized(compiler complained).
13974
13975         * device/examples/Makefile, examples/test3.c:
13976         Add Makefile in device/examples folder, compiles test3.c
13977         for use as a multiple module SDCDB test case.
13978
13979         * sim/ucsim/cmd.src/cmdset.cc:
13980         Took out debug printfs in ucsim "next" command.
13981
13982         * sim/ucsim/xa.src:
13983         Karl and Johan start ucsim XA support.  Most dissassembly working,
13984         about 75% emulation done(plenty of work remaining).
13985
13986         * sim/ucsim/z80.src:
13987         Add Z80 support to ucsim, add test-ucz80 regression test,
13988         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
13989         Notice z80 compiler fails on examples/test3.c/crc code.
13990
13991 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
13992
13993         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
13994         Added support for --parms-in-bank1
13995
13996         * src/ds390/peeph.def:
13997         added a few more peephole optimzations
13998
13999         * src/ds390/main.c:
14000         1) added __builtin_inp & __builtin_outp used to read in data of given length
14001            from a memory mapped port
14002         2) added __builtin_memcmp
14003         3) added __builtin_swapw swap bytes of a short
14004
14005         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
14006         1) handle multiple send & receives from register bank1
14007         2) ralloc can now allocate DPTR1 to some liveRanges
14008
14009         * src/SDCCsymt.c, src/SDCCsymt.h:
14010         changes to handle multiple sends & receives
14011
14012         * src/SDCCptropt.h:
14013         added some pointer arithmetic optimization
14014
14015         * src/SDCCptropt.c:
14016         added some pointer arithmetic optimizations but not stable yet so not
14017         called from anywhere (will get this working shortly)
14018
14019         * src/SDCCopt.c: fixed for multiple sends & receives
14020
14021         * src/SDCCmain.c:
14022         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
14023         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
14024            set preprocessor defines (depending on options)
14025
14026         * src/SDCCicode.c, src/SDCCicode.h:
14027         changes made to handle multiple sends & receives
14028
14029         * src/SDCCglobl.h:
14030         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
14031
14032         * src/SDCCcse.c, src/SDCCcse.h:
14033         added function findbackward def (to be used in upcoming optimization)
14034
14035         * src/SDCCcflow.c, src/SDCCcflow.h:
14036         added function returnAtEnd - to determine if a basic block terminates with
14037         a RETURN iCode
14038
14039         * src/SDCCast.c, src/SDCCast.h:
14040         added option parms-in-bank1
14041
14042         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
14043         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
14044         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
14045         adjusted for --parms-in-bank1 option
14046
14047         * device/include/string.h:
14048         donot redefine "reentrant" keyword
14049
14050         * device/include/ds80c390.h: Added some more SFRs
14051
14052 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
14053
14054         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
14055
14056 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
14057
14058         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
14059
14060 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
14061
14062         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
14063
14064 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
14065
14066         * Added --xram-movc option
14067
14068 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
14069
14070         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
14071
14072 2002-01-11  Johan Knol
14073
14074         * Added math lib of Jesus Calvino-Fraga
14075
14076 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
14077
14078         * src/SDCCmain.c (processFile): fix processing of ../../src.c
14079         * support/regression/Makefile: new target test-mcs51-stack-auto
14080         * support/regression/ports/mcs51-stack-auto/spec.mk: added
14081
14082 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
14083
14084         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
14085
14086 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
14087
14088         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
14089
14090 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
14091
14092         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
14093
14094         * src/SDCCglue.h: add definition for printIvalChar()
14095
14096 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
14097
14098         * src/SDCCast.c: fix #498138 by Johan
14099
14100         * src/SDCCglue.c: fix #498138 by Johan
14101
14102 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
14103
14104         * support/regression/Makefile: fix clean
14105
14106         * support/regression/ports/ds390/support.c: fix transmission of last character
14107
14108 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
14109
14110         * /sdcc/src/ds390/gen.c:
14111         a) improved computing address of stack variable
14112         b) took out some #if 0 code
14113         c) improved parmBytes adjustment
14114         d) improved genPlusIncr & genMinusIncr
14115         e) genCmp could generate bad code (when left assigned to DPTR)
14116         f) Fixed bug in hasInc
14117
14118         * /sdcc/src/ds390/ralloc.c:
14119         a) packRegsForSupport could mess up live information (Fixed)
14120         b) packRegsDPTRuse could be incorrect for left & right shift
14121
14122         * /sdcc/src/mcs51/ralloc.c:
14123         packRegsForSupport could mess up the live information (Fixed)
14124
14125         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
14126
14127         * /sdcc/src/SDCCast.c:
14128         can reverse a loop even if function call is present as long
14129         as the loop control variable is local & is not passed as parameter
14130
14131 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
14132
14133         * /sdcc/ChangeLog: *** empty log message ***
14134
14135         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
14136         More builtin function additions for TININative
14137
14138         * /sdcc/src/ds390/ralloc.c:
14139         Had broken the regression testsuite
14140
14141         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
14142
14143         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
14144         Added funcattr hasStackParms will be set for reentrant functions when there
14145         are paramteres on the stack, this helps in minimizing frame pointer generation
14146         typeFromStr can handle function pointers now
14147
14148         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
14149         *** empty log message ***
14150
14151 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
14152
14153         * /src/ds390/gen.c, /src/ds390/main.c:
14154         More builtin function additions for TININative
14155
14156         * /src/ds390/ralloc.c:
14157         Had broken the regression testsuite
14158
14159         * /src/SDCCast.c: Fixed a bug in dumptree
14160
14161         * /src/SDCCsymt.c, /src/SDCCsymt.h:
14162         Added funcattr hasStackParms will be set for reentrant functions when there
14163         are paramteres on the stack, this helps in minimizing frame pointer generation
14164         typeFromStr can handle function pointers now
14165
14166         * /doc/builtins.txt, /doc/TININative.txt:
14167         *** empty log message ***
14168
14169
14170 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
14171
14172         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
14173         ALPHA version for -mTININative
14174
14175         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
14176         updated to reflect changes in the port structure
14177
14178         * /src/port.h:
14179         added function do_assemble (similar to do_link) if non-null this function
14180         will be called to do assembly (-mTININative) requires a multi command
14181         assembly
14182         added function genAssemblerEnd will be called to generate assembler Epilogue
14183
14184         * /src/SDCCsymt.c:
14185         added _JavaNative to debug info printing
14186
14187         * /src/SDCCmain.c: added option --tini-libid
14188         added port->do_assemble function (-mTININative) has a multi command assemble
14189
14190         * /src/SDCCglue.c: Disabled "constExpr" check
14191         added port->genAssemblerEnd function
14192
14193         * /src/SDCCglobl.h: Added option --tini-libid value
14194
14195         * /src/SDCCast.h:
14196         tookout optimizeCompare from the header (has no external references)
14197
14198         * /src/SDCCast.c: made one more function "static"
14199
14200 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
14201
14202         * src/z80/mappings.i: Added z80asm support.
14203
14204         * src/z80/main.c: Added z80asm support on --asm=z80asm
14205
14206         * src/z80/gen.c: Fixed asm portability issues.
14207
14208         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
14209
14210         * src/SDCCglue.c (printExterns): Added global/extern split.
14211
14212 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
14213
14214         * support/regression/Makefile: added test for mcs51 model large
14215
14216         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
14217
14218         * support/regression/ports/gbz80/spec.mk: added -mgbz80
14219
14220 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
14221
14222         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
14223
14224 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
14225
14226         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
14227
14228         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
14229
14230 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
14231
14232         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
14233
14234         * support/regression/tests/simplefloat.c: Port to mcs51.
14235
14236 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
14237         * support/regression/tests/bug-485362.c: Added.
14238
14239         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
14240
14241         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
14242
14243         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
14244
14245         * src/z80/gen.c (aopDump): Added a dump function.
14246
14247 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
14248         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
14249
14250         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
14251
14252         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
14253
14254         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
14255
14256         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
14257
14258         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
14259
14260         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
14261
14262         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
14263
14264         * support/regression/ports/ds390/support.c: Use tinibios.
14265
14266         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
14267
14268 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
14269
14270         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
14271         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
14272
14273         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
14274
14275         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
14276
14277 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
14278
14279         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
14280
14281         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
14282         (packRegsForIYUse): Created and optimised.
14283
14284 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
14285
14286         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
14287 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
14288
14289         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
14290
14291         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
14292
14293         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
14294
14295 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
14296
14297         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
14298
14299         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
14300
14301 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
14302
14303         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
14304
14305         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
14306
14307         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
14308
14309 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
14310
14311         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
14312         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
14313         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
14314
14315         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
14316
14317         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
14318         (genNotFloat): Added.
14319         (genUminusFloat): Added.
14320
14321         * device/lib/z80/Makefile: Added floating pt stubs.
14322
14323         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
14324
14325         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
14326
14327         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
14328
14329 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
14330
14331         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
14332
14333         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
14334
14335         * sdcc/support/regression/Makefile: Add port ds390.
14336
14337         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
14338
14339         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
14340
14341         * sdcc/support/regression/ports/ds390/spec.mk: Added.
14342
14343         * sdcc/support/regression/ports/ds390/support.c: Added.
14344
14345         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
14346
14347         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
14348
14349         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
14350
14351 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
14352
14353         * device/include/malloc.h: Added z80 and gbz80 support.
14354
14355         * device/lib/gbz80/heap.s: Added.
14356
14357         * device/lib/z80/heap.s: Added.
14358
14359         * device/lib/malloc.c: Added z80 and gbz80 support.
14360
14361         * support/regression/tests/malloc.c (testMalloc): Added.
14362
14363         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
14364
14365         * support/regression/tests/bug-478094.c: Added.
14366
14367         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
14368
14369 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
14370
14371         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
14372
14373         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
14374
14375         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
14376
14377         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
14378
14379         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
14380
14381 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
14382
14383         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
14384
14385 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
14386
14387         * support/regression/tests/bug-477927.c: Added.
14388
14389         * src/z80/peeph.def: Added minor rules.
14390
14391         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
14392
14393         * src/z80/peeph.def: Added jump optimisation modification.
14394
14395 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
14396
14397         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
14398
14399 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
14400
14401         * support/regression/tests/funptrs.c: Added.
14402
14403 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
14404
14405         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
14406
14407 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
14408
14409         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
14410
14411         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
14412
14413         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
14414         (movLeft2ResultLong): Created.
14415
14416         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
14417         (joinPushes): Added.  Joins two char pushes into a word push.
14418
14419 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
14420
14421         * support/cpp2/Makefile.in (install): Added creation of dest dir.
14422
14423         * support/makebin/Makefile (install): Added creation of dest dir.
14424
14425 2001-10-24 Karl Bongers <karl AT turbobit.com>
14426
14427         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
14428
14429 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
14430
14431         * src/z80/ralloc.c: Turned off faulty pack for one use.
14432
14433         * src/z80/peeph-gbz80.def: Removed redundent restart options.
14434
14435         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
14436
14437 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
14438
14439         * support/regression/Makefile: Improved clean
14440
14441         * support/regression/ports/gbz80/spec.mk: Added clean
14442
14443         * support/regression/ports/host/spec.mk: Added clean
14444
14445         * support/regression/ports/z80/spec.mk: Added clean
14446
14447         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
14448
14449         * support/regression/ports/mcs51/timeout.c: little improvements
14450
14451 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
14452
14453         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
14454
14455         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
14456
14457         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
14458
14459 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
14460
14461         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
14462
14463         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
14464
14465 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
14466         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
14467
14468         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
14469
14470         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
14471
14472         * src/mcs51/main.c (_linkCmd): Added bin path to command.
14473
14474         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
14475
14476         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
14477
14478         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
14479
14480         * support/regression/tests/longor.c: Added.
14481
14482 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
14483
14484         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
14485
14486         * as/mcs51/aslink.h: define PATH_MAX
14487
14488         * as/mcs51/asm.h: define PATH_MAX
14489
14490         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
14491
14492         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
14493
14494         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
14495
14496         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
14497
14498         * src/SDCCglobl.h: define PATH_MAX
14499
14500         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
14501
14502         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
14503
14504 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
14505
14506         * src/z80/gen.c (gencjneshort): Fixed
14507
14508         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
14509
14510 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
14511
14512         * support/regression/tests/bug-469671.c: Added.
14513
14514         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
14515
14516 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
14517
14518         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
14519
14520         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
14521
14522 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
14523
14524         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
14525
14526         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
14527
14528         * src/device/lib/_mullong.c : removed hint: nooverlay bug
14529
14530         * src/device/lib/_divuint.c : removed hint: nooverlay bug
14531
14532         * src/device/lib/_divulong.c: removed hint: nooverlay bug
14533
14534         * src/device/lib/_moduint.c : removed hint: nooverlay bug
14535
14536         * src/device/lib/_modulong.c: removed hint: nooverlay bug
14537
14538 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
14539
14540         * 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.
14541
14542         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
14543
14544         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
14545
14546 2001-10-07    <johan AT FRIJA>
14547
14548         * device/lib/gets.c (gets): fixed the return value.
14549
14550 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
14551         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
14552
14553         * 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.
14554
14555         * 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.
14556
14557         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
14558
14559         * src/pic/gen.c: Removed Safe_strdup.
14560
14561         * configure.in: Added option to enable libgc support.
14562
14563         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
14564         (bitVectUnion): Optimised.
14565         (bitVectIntersect): Optimised.
14566         (bitVectBitsInCommon): Optimised.
14567         (bitVectCplAnd): Optimised.
14568
14569         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
14570
14571 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14572
14573         * src/SDCCmain.c: distinguish between assembler debug and plain options
14574
14575         * src/avr/main.c:   remove standard assembler options
14576
14577         * src/ds390/main.c: remove standard assembler options
14578
14579         * src/mcs51/main.c: remove standard assembler options
14580
14581         * src/port.h: removed "PENDING" comment
14582
14583 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14584
14585         * src/device/lib/_mulint.c  : new, with assember functions
14586
14587         * src/device/lib/_mullong.c : new, with assember functions
14588
14589         * src/device/lib/_divuint.c : with assember functions
14590
14591         * src/device/lib/_divsint.c : with assember functions
14592
14593         * src/device/lib/_divulong.c: with assember functions
14594
14595         * src/device/lib/_divslong.c: with assember functions
14596
14597         * src/device/lib/_moduint.c : with assember functions
14598
14599         * src/device/lib/_modsint.c : with assember functions
14600
14601         * src/device/lib/_modulong.c: with assember functions
14602
14603         * src/device/lib/_modslong.c: with assember functions
14604
14605         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
14606
14607         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
14608
14609         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
14610                                       replaced _mululong.c and _mulslong.c by _mullong.c
14611
14612 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14613
14614         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
14615
14616 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
14617
14618         * src/SDCCglue.c: test, if win32api is available for MINGW
14619
14620 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
14621
14622         * src/SDCCsymt.c: no more _modifier in printTypeChain()
14623         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
14624         * support/regression/ports/gbz80/spec.mk: removed GENERIC
14625         * support/regression/ports/host/spec.mk: removed GENERIC
14626         * support/regression/ports/mcs51/spec.mk: removed GENERIC
14627         * support/regression/ports/z80/spec.mk: removed GENERIC
14628
14629 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
14630
14631         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
14632
14633         * support/regression/tests/bug-467035.c: Created.
14634
14635 2001-10-01    <johan AT FRIJA>
14636
14637         * src/SDCC.y: fixed bug #466586 part 1
14638
14639 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
14640
14641         * SDCCicode.c: z80 has no generic pointers
14642         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
14643
14644 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
14645
14646         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
14647
14648 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
14649
14650         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
14651
14652         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
14653
14654 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
14655
14656         * configure.in: Fixed up so that ucsim is only configured once.
14657
14658         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
14659
14660         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
14661         (getPathDifference): As above.
14662
14663         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
14664
14665         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
14666
14667 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
14668         * .version: Updated to 2.3.1
14669
14670         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
14671         Added copyright header.
14672
14673         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
14674         (assemble): Added support for macro based assembler commands.
14675         (linkEdit): Added support for macro based linker commands.
14676         (preProcess): Changed the pre-processor to use macros.
14677         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
14678         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
14679
14680         * device/lib/z80/crt0.s: Added module name for debugging.
14681
14682 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
14683
14684         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
14685
14686         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
14687
14688         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
14689
14690         * src/Makefile.in: Added SDCCmacro and SDCCutil
14691
14692 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
14693
14694         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
14695
14696 2001-09-16    <johan AT FRIJA>
14697
14698         * 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.
14699
14700 2001-09-15    <johan AT FRIJA>
14701
14702         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
14703         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
14704
14705 2001-09-11    <johan AT FRIJA>
14706
14707         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
14708
14709 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
14710
14711         * support/regression/tests/bug-460444.c: Added test case.
14712
14713         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
14714         (genCast): Added justification for all of the asserts.
14715
14716 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
14717
14718         * support/regression/support.c: _xdata replaced by xdata
14719
14720         * support/regression/spec.mk: removed _generic
14721
14722 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
14723
14724         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
14725
14726         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
14727         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
14728
14729         * src/z80/peeph.def: Added a rule to optimise shift then compare.
14730
14731         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
14732
14733         * support/regression/tests/bug-460010.c: Added test case.
14734
14735         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
14736
14737 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
14738
14739         * support/regression/Makefile: inter-port-clean adjusted for mcs51
14740
14741         * support/regression/testfwk.c: removed workaround for bug #436344
14742
14743         * support/regression/tests/bp.c: use less memory with mcs51
14744
14745         * support/regression/tests/bug-441448.c: use less memory
14746
14747         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
14748
14749         * support/regression/collate-results.py: typo
14750
14751 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
14752
14753         * support/regression/tests/fetchoverlap.c: Added new test case.
14754
14755         * support/regression/tests/bp.c: Added new test case.
14756
14757         * support/regression/tests/bug-448984.c: Added new test case.
14758
14759         * support/regression/tests/pow2shifts.c: Added new test case.
14760
14761         * src/z80/gen.c: Turned off the noise it normally generates for the release.
14762         (genlshTwo): Fixed right shift for count > 8.
14763
14764         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
14765
14766 2001-09-08    <johan AT FRIJA>
14767
14768         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
14769
14770 2001-09-07    <johan AT FRIJA>
14771
14772         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
14773
14774         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
14775
14776 2001-09-06    <johan AT FRIJA>
14777
14778         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
14779         * bernhard noted me at this: "() equals to (void)" (1.38)
14780
14781 2001-09-05    <johan AT FRIJA>
14782
14783         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
14784
14785 2001-09-04    <johan AT FRIJA>
14786
14787         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
14788
14789
14790 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
14791
14792         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
14793
14794 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
14795
14796         * link/z80/aslink.h: Fixed path for PATH_MAX
14797
14798 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
14799
14800         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
14801
14802         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
14803
14804         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
14805
14806         * 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.
14807
14808 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
14809
14810         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
14811         (genCmp): Fixed up genCmp for the GB with longs.
14812
14813         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
14814
14815         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
14816
14817         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
14818
14819         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
14820
14821 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
14822
14823         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
14824
14825 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
14826
14827         * 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.
14828
14829         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
14830
14831 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
14832
14833         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
14834
14835         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
14836
14837 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
14838
14839   * sim/ucsim/configure:    little improvement of Cygwin-detection
14840   * sim/ucsim/configure.in: little improvement of Cygwin-detection
14841   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
14842   * support/regression/tests/bug-221100.c: small changes for mcs51
14843   * support/regression/tests/bug-221168.c: small changes for mcs51
14844   * support/regression/tests/bug-227710.c: small changes for mcs51
14845   * support/regression/tests/staticinit.c: small changes for mcs51
14846   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
14847   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
14848   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
14849
14850 $Revision$